openai-whisper-api icon indicating copy to clipboard operation
openai-whisper-api copied to clipboard

Invalid file format on mobile devices

Open maddo7 opened this issue 2 years ago • 2 comments

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.

maddo7 avatar Nov 03 '23 12:11 maddo7

I will check but I think I will be updating this soon for the updated OpenAI module

supershaneski avatar Nov 07 '23 23:11 supershaneski

I updated the code and tested in mobile. It should probably fix your issue. Please check the README for the updates.

supershaneski avatar Dec 02 '23 02:12 supershaneski