Closed JackieGLQ closed 4 months ago
The Whisper extension's been broken for weeks. There was a pull request about it, but it doesn't look like that was included in the most recent release.
Same with snapshot-2024-04-21. OS: Windows 10 GPU: NVIDIA Geforce RTX 2070 Super Max-Q (8G) RAM:32G
This issue has been closed due to inactivity for 2 months. If you believe it is still relevant, please leave a comment below. You can tag a developer in your comment.
This error is still happening to me and is still getting hits on a similar bug/ reddit thread leading me to think it has yet to be resolved in a pull request, correct me if I'm wrong, otherwise, update on the fix? Thanks!
Describe the bug
Traceback (most recent call last): File "E:\anaconda3\envs\TextgenCN\Lib\site-packages\gradio\queueing.py", line 527, in process_events response = await route_utils.call_process_api( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\anaconda3\envs\TextgenCN\Lib\site-packages\gradio\route_utils.py", line 261, in call_process_api output = await app.get_blocks().process_api( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\anaconda3\envs\TextgenCN\Lib\site-packages\gradio\blocks.py", line 1786, in process_api result = await self.call_function( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\anaconda3\envs\TextgenCN\Lib\site-packages\gradio\blocks.py", line 1338, in call_function prediction = await anyio.to_thread.run_sync( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\anaconda3\envs\TextgenCN\Lib\site-packages\anyio\to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\anaconda3\envs\TextgenCN\Lib\site-packages\anyio_backends_asyncio.py", line 2144, in run_sync_in_worker_thread return await future ^^^^^^^^^^^^ File "E:\anaconda3\envs\TextgenCN\Lib\site-packages\anyio_backends_asyncio.py", line 851, in run result = context.run(func, args) ^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\anaconda3\envs\TextgenCN\Lib\site-packages\gradio\utils.py", line 759, in wrapper response = f(args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "E:\GaoLLM\Test\TextgenCN\text-generation-webui\extensions\whisper_stt\script.py", line 48, in auto_transcribe transcription = do_stt(audio, whipser_model, whipser_language) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\GaoLLM\Test\TextgenCN\text-generation-webui\extensions\whisper_stt\script.py", line 36, in do_stt transcription = r.recognize_whisper(audio_data, language=whipser_language, model=whipser_model) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\anaconda3\envs\TextgenCN\Lib\site-packages\speech_recognition__init__.py", line 1486, in recognize_whisper wav_bytes = audio_data.get_wav_data(convert_rate=16000) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\anaconda3\envs\TextgenCN\Lib\site-packages\speech_recognition\audio.py", line 146, in get_wav_data raw_data = self.get_raw_data(convert_rate, convert_width) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\anaconda3\envs\TextgenCN\Lib\site-packages\speech_recognition\audio.py", line 91, in get_raw_data rawdata, = audioop.ratecv( ^^^^^^^^^^^^^^^ audioop.error: not a whole number of frames
Is there an existing issue for this?
Reproduction
audioop.error: not a whole number of frames
Screenshot
Logs
System Info