# Microphone attribute error

**URL:** <https://discourse.psychopy.org/t/microphone-attribute-error/31030>\
**Category:** Builder\
**Created:** [September 21, 2022, 8:48pm UTC](https://discourse.psychopy.org/t/microphone-attribute-error/31030 "2022-09-21T20:48:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![deh10](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/deh10/32/35212_2.png) [@deh10](https://discourse.psychopy.org/u/deh10)\
**Post date:** [September 21, 2022, 8:48pm UTC](https://discourse.psychopy.org/t/microphone-attribute-error/31030/1 "2022-09-21T20:48:27Z")

</div>

Hi. I am trying to record voice using microphone, but I get below error and experiment crashes. I was able to run my experiment just fine with another microphone, so I am not sure what’s wrong.

**OS** (e.g. Win10): Win10  
**PsychoPy version** (e.g. 1.84.x): v2022.2.3  
**Standard Standalone? (y/n)** If not then what?: y  
\*\*What are you trying to achieve?: I am trying to record voice and get voice onset timing

\*\*What did you try to make it work?:I connected microphone and used mic component. I have enabled the microphone in sound setting, correctly set the sample rate, and even upgraded the sound driver.

**What specifically went wrong when you tried that?:**  
I got this error message below:  
tmpmic = sound.microphone.AudioCapture(name = ‘tmpMic’, filename = ‘’)  
AttributeError: module ‘psychopy.sound.microphone’ has no attribute ‘AudioCapture’

---

<div class="post-metadata">

**Author:** ![suelynnmah](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@suelynnmah](https://discourse.psychopy.org/u/suelynnmah)\
**Post date:** [September 22, 2022, 12:14pm UTC](https://discourse.psychopy.org/t/microphone-attribute-error/31030/2 "2022-09-22T12:14:41Z")

</div>

Hi, could you please share your psychopy task?

---

<div class="post-metadata">

**Author:** ![deh10](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/deh10/32/35212_2.png) [@deh10](https://discourse.psychopy.org/u/deh10)\
**Post date:** [September 22, 2022, 3:49pm UTC](https://discourse.psychopy.org/t/microphone-attribute-error/31030/3 "2022-09-22T15:49:50Z")

</div>

Hi suelynnmah. I’ve resolved the issue (It was a typo!). Thanks for asking!
