# Microphone component not working - a device handle issue?

**URL:** <https://discourse.psychopy.org/t/microphone-component-not-working-a-device-handle-issue/47870>\
**Category:** Builder\
**Created:** [September 10, 2026, 5:34pm UTC](https://discourse.psychopy.org/t/microphone-component-not-working-a-device-handle-issue/47870 "2026-09-10T17:34:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vkrull](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/vkrull/32/46741_2.png) [@vkrull](https://discourse.psychopy.org/u/vkrull)\
**Post date:** [September 10, 2026, 5:34pm UTC](https://discourse.psychopy.org/t/microphone-component-not-working-a-device-handle-issue/47870/1 "2026-09-10T17:34:33Z")

</div>

**OS** (e.g. Win10): macOS 26.6.2  
**PsychoPy version** (e.g. 2024.2.4 Py 3.8): v2026.2.3  
**Standard Standalone Installation? (y/n)** If not then what?: Yes, Standalone  
**Do you want it to also run online? (y/n) N**  
**What are you trying to achieve?: Record a sound (learn to use the mic component)**

**What did you try to make it work?:**

1. **Gave mic access to PsychoPy manually**

2. **Ensured that the Audio Library was Pyschtoolbox**

3. **Specified a duration (not infinite, although I note Esc key issue seems to have been resolved in recent versions)**

4. **Tried to specify Device and got error:**

5. 

```json
Traceback (most recent call last):
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.11/psychopy_app/builder/dialogs/paramCtrls.py”, line 1835, in openDeviceManager
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.11/psychopy_app/deviceManager/dialog.py”, line 66, in __init__
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.11/psychopy_app/deviceManager/dialog.py”, line 89, in populate
  File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.11/psychopy_app/deviceManager/panel.py”, line 129, in __init__
AttributeError: module ‘wx.propgrid’ has no attribute ‘PG_PROP_READONLY’

```

6. Tried to specify Device through Device Manager, and got the same error as above

7. Specified output file type, in case default was a problem

8. Checked Sync timing with screen refresh

9. When I run it, I get the following error in the Runner:

**Link to the most relevant existing thread you have found:**

> [@Mic recording but no sound files are saved](https://discourse.psychopy.org/t/mic-recording-but-no-sound-files-are-saved/38905):
>
> Hi, I have got a mic component within my study, however, no sound files are saved. The design of my study is below. The mic component is located within the Image routine. The second image shows what the image routine looks like, the code is to do with the loop and image component, and in no way should effect the mic component (to my knowledge). The audio library setting is set to PTB. I appreciate any help.

> **[Microphone - for recording sound — PsychoPy®](https://psychopy.org/api/sound/microphone.html)**

**What specifically went wrong when you tried that?:**  
Include pasted full error message if possible. “That didn’t work” is not enough information.

I’ve attached my script - it simply tries to run the mic component, to understand functionality. Thanks for any suggestions.

[microphoneRecord.psyexp](https://discourse.psychopy.org/uploads/short-url/11Hqzc6b3CH7ZYETvp1R9l6ZImw.psyexp) (6.9 KB)

My sincere apologies if this has been addressed elsewhere/before. I have not come across it in my search.

---

<div class="post-metadata">

**Author:** ![vkrull](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/vkrull/32/46741_2.png) [@vkrull](https://discourse.psychopy.org/u/vkrull)\
**Post date:** [September 11, 2026, 9:55pm UTC](https://discourse.psychopy.org/t/microphone-component-not-working-a-device-handle-issue/47870/2 "2026-09-11T21:55:41Z")

</div>

I changed the Audio library back to ‘sounddevice’ and now it works! I suppose `psychtoolbox`is not optimal for recording.

---

<div class="post-metadata">

**Author:** ![TParsons](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/tparsons/32/8301_2.png) [@TParsons](https://discourse.psychopy.org/u/TParsons)\
**Post date:** [September 16, 2026, 4:03pm UTC](https://discourse.psychopy.org/t/microphone-component-not-working-a-device-handle-issue/47870/3 "2026-09-16T16:03:56Z")

</div>

> [@vkrull](#):
>
> ```auto
> Traceback (most recent call last):
> File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.11/psychopy_app/builder/dialogs/paramCtrls.py”, line 1835, in openDeviceManager
> File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.11/psychopy_app/deviceManager/dialog.py”, line 66, in __init__
> File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.11/psychopy_app/deviceManager/dialog.py”, line 89, in populate
> File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.11/psychopy_app/deviceManager/panel.py”, line 129, in __init__
> AttributeError: module ‘wx.propgrid’ has no attribute ‘PG_PROP_READONLY’
> 
> ```

This is now fixed in 2026.2.4! The module we use for the interface of the standalone app released an update which removed some variables we were using, so we’ve now pinned it to the last compatible version.
