Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux/ubuntu下面读取音频流报错 #1410

Open
robo-z opened this issue Oct 10, 2024 · 0 comments
Open

linux/ubuntu下面读取音频流报错 #1410

robo-z opened this issue Oct 10, 2024 · 0 comments

Comments

@robo-z
Copy link

robo-z commented Oct 10, 2024

运行python-api-examples/online-websocket-client-microphone.py文件时,

报以下错误
File "/home/david/miniconda3/envs/nlp/lib/python3.11/site-packages/sounddevice.py", line 1429, in __init__ _StreamBase.__init__(self, kind='input', wrap_callback='array', File "/home/david/miniconda3/envs/nlp/lib/python3.11/site-packages/sounddevice.py", line 906, in __init__ _check(_lib.Pa_OpenStream(self._ptr, iparameters, oparameters, File "/home/david/miniconda3/envs/nlp/lib/python3.11/site-packages/sounddevice.py", line 2774, in _check raise PortAudioError(errormsg, err) sounddevice.PortAudioError: Error opening InputStream: Invalid sample rate [PaErrorCode -9997]

辛苦大佬解决一下!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant