Although the OpenAI API supports audio file formats of:
- m4a
- mp3
- webm
- mp4
- mpga
- wav
- mpeg
and apparently according to the current API failure messages as of now,
Invalid file format. Supported formats: ['flac', 'm4a', 'mp3', 'mp4', 'mpeg', 'mpga', 'oga', 'ogg', 'wav', 'webm']
so additionally:
as well,
the current code seems to hardcode the filename in as audio.mp3, which causes a problem when trying to send audio data with different format aside from mp3. Right now, I'm experiencing trouble trying to send m4a data with this API.
It would be nice if there was a way to accept an available file extension of choice for these audio API wrappers.