From 38b16a3c413a3ea076cf4082ea5cd1754b72c70f Mon Sep 17 00:00:00 2001 From: Bilal Hameed <68427058+LinuxSploit@users.noreply.github.com> Date: Thu, 7 Mar 2024 15:56:50 +0500 Subject: [PATCH] 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 --- speech.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/speech.go b/speech.go index be8950218..92b30b55b 100644 --- a/speech.go +++ b/speech.go @@ -33,6 +33,8 @@ const ( SpeechResponseFormatOpus SpeechResponseFormat = "opus" SpeechResponseFormatAac SpeechResponseFormat = "aac" SpeechResponseFormatFlac SpeechResponseFormat = "flac" + SpeechResponseFormatWav SpeechResponseFormat = "wav" + SpeechResponseFormatPcm SpeechResponseFormat = "pcm" ) var (