ufal / whisper_streaming

Whisper realtime streaming for long speech-to-text transcription and translation
MIT License
1.98k stars 240 forks source link

Issue with Whisper Online: AttributeError for openai-api Backend #132

Open chriswangzheyi opened 4 days ago

chriswangzheyi commented 4 days ago

hi,

I’ve been working with the Whisper Online tool and encountered an issue while using the openai-api backend. I ran the following command:

python whisper_online.py bbc.wav --backend openai-api > out.txt

Unfortunately, I received the following error:

 raise AttributeError(f'{type(self).__name__!r} object has no attribute {item!r}')
AttributeError: 'TranscriptionWord' object has no attribute 'get'

I’ve tried this multiple times with different audio formats (including WAV and MP3), but I keep encountering the same error.

Could you please help me understand what might be causing this issue and how I can resolve it?

Thanks in advance for your assistance.

Gldkslfmsd commented 3 days ago

hi, please check other open issues. It seems like OpenAI has changed the API in newer versions. Investigations, fixes and PRs are needed.

Otherwise we can declare that OpenAI API is not maintained anymore.