openai-whisper-api
openai-whisper-api copied to clipboard
Invalid file format on mobile devices
It seems to work on my desktop PC and android devices but as soon as I try it on a iOS devices, the server gets this error from OpenAI:
{
error: {
message: "Invalid file format. Supported formats: ['flac', 'm4a', 'mp3', 'mp4', 'mpeg', 'mpga', 'oga', 'ogg', 'wav', 'webm']",
type: 'invalid_request_error',
param: null,
code: null
}
}
The file is created successfully in the directory and I can play it with a media player.
I will check but I think I will be updating this soon for the updated OpenAI module
I updated the code and tested in mobile. It should probably fix your issue. Please check the README for the updates.