nvidia-riva / python-clients

Riva Python client API and CLI utils
MIT License
63 stars 22 forks source link

Error while running transcribe_mic.py #26

Closed neso613 closed 1 year ago

neso613 commented 1 year ago

HI I have Riva 2.7 version installed on jetson xavier nx. I am trying to run transcribe_mic.py script but failed with the below error-

Traceback (most recent call last): File "transcribe_mic.py", line 75, in <module> main() File "transcribe_mic.py", line 60, in main with riva.client.audio_io.MicrophoneStream( File "/usr/local/lib/python3.8/dist-packages/riva/client/audio_io.py", line 24, in __enter__ self._audio_stream = self._audio_interface.open( File "/usr/lib/python3/dist-packages/pyaudio.py", line 750, in open stream = Stream(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/pyaudio.py", line 441, in __init__ self._stream = pa.open(**arguments) OSError: [Errno -9997] Invalid sample rate Please help to figure it out. @PeganovAnton

virajkarandikar commented 1 year ago

Looks like Riva requested sample rate (16kHz) is not supported by your mic hardware? Can you check if simple microphone recording at 16kHz works?

virajkarandikar commented 1 year ago

Closing due to inactivity. Please reopen if required.