spatialaudio / python-sounddevice

:sound: Play and Record Sound with Python :snake:
https://python-sounddevice.readthedocs.io/
MIT License
1.02k stars 149 forks source link

Have to Put WebCam Very Close to Mouth to Wire #413

Open leimao opened 2 years ago

leimao commented 2 years ago

Hello,

I tried python-sounddevice for playing audio and recording audio using the play_file.py and the rec_unlimited.py examples with minor modification and they all worked fine.

However, when I tried the wire.py example, I will have to put my input device very close to my mouth so that I could hear a little bit poor sound from the speaker.

Does anyone know what's happening and how to fix the wire problem? Thank you.

PS: my input device is a Logitech C930e webcam and I think I have set the input and output device correctly.

mgeier commented 2 years ago

I don't know, sorry. The signal values are provided by the underlying PortAudio library, they are not changed by the Python bindings.

Did you check your OS mixer settings?