Skip to content

Commit

Permalink
Added 'wav' and 'pcm' Audio Formats (#671)
Browse files Browse the repository at this point in the history
* Added 'wav' and 'pcm' Audio Formats

Added "wav" and "pcm" audio formats as per OpenAI API documentation for createSpeech endpoint. 
Ref: https://platform.openai.com/docs/api-reference/audio/createSpeech
Supported formats are mp3, opus, aac, flac, wav, and pcm.

* Removed Extra Newline for Sanity Check

* fix: run goimports to get accepted by the linter
  • Loading branch information
GopherGhaznix authored Mar 7, 2024
1 parent bb6149f commit 38b16a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions speech.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ const (
SpeechResponseFormatOpus SpeechResponseFormat = "opus"
SpeechResponseFormatAac SpeechResponseFormat = "aac"
SpeechResponseFormatFlac SpeechResponseFormat = "flac"
SpeechResponseFormatWav SpeechResponseFormat = "wav"
SpeechResponseFormatPcm SpeechResponseFormat = "pcm"
)

var (
Expand Down

0 comments on commit 38b16a3

Please sign in to comment.