B4PT0R / streamlit-mic-recorder

Streamlit component allowing to record audio from the user's microphone and/or perform speech to text easily
MIT License
148 stars 26 forks source link

Whisper STT error #10

Open yjlee1011 opened 7 months ago

yjlee1011 commented 7 months ago

When I tried the example (whisper_stt.py), I got the following error: Error code: 400 - {'error': {'message': "Invalid file format. Supported formats: ['flac', 'm4a', 'mp3', 'mp4', 'mpeg', 'mpga', 'oga', 'ogg', 'wav', 'webm']", 'type': 'invalid_request_error', 'param': None, 'code': None}}

Since I did not make any changes to the example, I don't understand why I got this error. The error message seems to incite that the file format is not supported, but the example code used "webm" and it is one of the supported formats.

Am I missing something?

showjim commented 1 month ago

Same problem, I have rolled back to 0.04 version