Skip to content

Audio API seems inflexible to different file extensions #21

@RulerOfCakes

Description

@RulerOfCakes

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:

  • flac
  • oga
  • ogg

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions