# Problem with recording audio files

**URL:** <https://forums.ankiweb.net/t/problem-with-recording-audio-files/5842>\
**Category:** Help\
**Created:** [December 17, 2020, 2:53am UTC](https://forums.ankiweb.net/t/problem-with-recording-audio-files/5842 "2020-12-17T02:53:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sasanadhaja](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@Sasanadhaja](https://forums.ankiweb.net/u/Sasanadhaja)\
**Post date:** [December 17, 2020, 2:53am UTC](https://forums.ankiweb.net/t/problem-with-recording-audio-files/5842/1 "2020-12-17T02:53:34Z")

</div>

Hey everyone!

I experience problems with recording audios for my cards on the desktop (Windows 10) version of Anki. As soon as I hit the recording button a window appears (pasted below), and the audio recording continues to run in the background, however, when I close the error window and want to save the audio recording, another error message pops up (pasted also below).

I have restarted the app, rebooted the PC, pressed the shift key while starting the app, removed all add-ons, reinstalled the app and then also installed the newest version after finding out that there is one. None of those solved the problem.

Here is the report:

Error  
An error occurred. Please use Tools \> Check Database to see if that fixes the problem.  
If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.  
Anki 2.1.35 (84dcaa86) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2  
Platform: Windows 10  
Flags: frz=True ao=False sv=1  
Add-ons, last update check: 2020-12-16 21:10:28

Exception in thread Thread-5:  
Traceback (most recent call last):  
File “threading.py”, line 932, in \_bootstrap\_inner  
File “aqt\sound.py”, line 483, in run  
File “pyaudio.py”, line 750, in open  
File “pyaudio.py”, line 441, in **init**  
OSError: [Errno -9999] Unanticipated host error  
Exception in threading.excepthook:  
Exception ignored in thread started by: \<bound method Thread.\_bootstrap of \<PyAudioThreadedRecorder(Thread-5, started 10568)\>\>  
Traceback (most recent call last):  
File “threading.py”, line 890, in \_bootstrap  
File “threading.py”, line 934, in \_bootstrap\_inner  
File “threading.py”, line 1212, in invoke\_excepthook  
AttributeError: ‘ErrorHandler’ object has no attribute ‘flush’  
Exception ignored in sys.unraisablehook:   
AttributeError: ‘ErrorHandler’ object has no attribute ‘flush’

The second error message when trying to save the audio file:

![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/a/a8faf4f5eb65e613112323ac352b8e114bbe9de1.png)

Thank you for your kind help and always appreciative for this wonderful application 🙂

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [December 17, 2020, 3:52am UTC](https://forums.ankiweb.net/t/problem-with-recording-audio-files/5842/2 "2020-12-17T03:52:38Z")

</div>

Please see [https://faqs.ankiweb.net/errors-when-recording.html](https://faqs.ankiweb.net/errors-when-recording.html)

---

<div class="post-metadata">

**Author:** ![Sasanadhaja](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@Sasanadhaja](https://forums.ankiweb.net/u/Sasanadhaja)\
**Post date:** [December 17, 2020, 7:56am UTC](https://forums.ankiweb.net/t/problem-with-recording-audio-files/5842/3 "2020-12-17T07:56:07Z")

</div>

That solved it, merci 😀

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 5:20am UTC](https://forums.ankiweb.net/t/problem-with-recording-audio-files/5842/4 "2023-05-01T05:20:15Z")

</div>

Closed on May 1, 2023, 5:20am UTC


