Skip to content

Commit 38b16a3

Browse files
Added 'wav' and 'pcm' Audio Formats (#671)
* 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
1 parent bb6149f commit 38b16a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

speech.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ const (
3333
SpeechResponseFormatOpus SpeechResponseFormat = "opus"
3434
SpeechResponseFormatAac SpeechResponseFormat = "aac"
3535
SpeechResponseFormatFlac SpeechResponseFormat = "flac"
36+
SpeechResponseFormatWav SpeechResponseFormat = "wav"
37+
SpeechResponseFormatPcm SpeechResponseFormat = "pcm"
3638
)
3739

3840
var (

0 commit comments

Comments
 (0)