MacPaw / OpenAI

Swift community driven package for OpenAI public API
MIT License
2.11k stars 353 forks source link

AudioTranscriptionQuery fails #195

Closed pradeepb28 closed 5 months ago

pradeepb28 commented 7 months ago

Describe the bug Try uploading .m4a to transcribe raw transcript it fails because of the following switch case where you can see .m4a is pointing to mp4 file type. CleanShot 2024-04-07 at 15 21 27

Expected behavior Able to successfully upload m4a file and then able to successfully retrieve the transcript

Demircivi commented 7 months ago

I created a PR that addresses this issue.

sauravexodus commented 7 months ago

The merged PR has another bug, the content type for .m4a files should be audio/mpeg instead of audio/m4a.