diff --git a/astrbot/core/provider/sources/whisper_api_source.py b/astrbot/core/provider/sources/whisper_api_source.py index 8f6d9e292..8cc43d2aa 100644 --- a/astrbot/core/provider/sources/whisper_api_source.py +++ b/astrbot/core/provider/sources/whisper_api_source.py @@ -72,6 +72,6 @@ class ProviderOpenAIWhisperAPI(STTProvider): result = await self.client.audio.transcriptions.create( model=self.model_name, - file=open(audio_url, "rb"), + file=("audio.wav", open(audio_url, "rb")), ) return result.text