Skip to content

Issues with sound card ? #1

@PabloCarco

Description

@PabloCarco

when i run the script i get the following error:
Traceback (most recent call last): File "/home/pi/Documents/voice_chat.py", line 164, in <module> main() File "/home/pi/Documents/voice_chat.py", line 146, in main record_wav() File "/home/pi/Documents/voice_chat.py", line 105, in record_wav stream = audio.open(format = form_1,rate = samp_rate,channels = chans, \ File "/home/pi/.local/lib/python3.9/site-packages/pyaudio/__init__.py", line 639, in open stream = PyAudio.Stream(self, *args, **kwargs) File "/home/pi/.local/lib/python3.9/site-packages/pyaudio/__init__.py", line 441, in __init__ self._stream = pa.open(**arguments) OSError: [Errno -9998] Invalid number of channels

it seems to me that pyaudio is installed correctly, maybe something with the configuration of the sound card? I'm using an external usb card with a microphone

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions