From 4e0cf87d9e23a2354df66a01c183a680849b6a46 Mon Sep 17 00:00:00 2001 From: Alex Rattray Date: Fri, 23 Feb 2024 18:24:03 -0500 Subject: [PATCH 1/3] Add wav to supported audio response_format --- openapi.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 04d8e095..5a7dacc9 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -6930,10 +6930,10 @@ components: type: string enum: ["alloy", "echo", "fable", "onyx", "nova", "shimmer"] response_format: - description: "The format to audio in. Supported formats are `mp3`, `opus`, `aac`, and `flac`." + description: "The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`, and `wav`." default: "mp3" type: string - enum: ["mp3", "opus", "aac", "flac"] + enum: ["mp3", "opus", "aac", "flac", "wav"] speed: description: "The speed of the generated audio. Select a value from `0.25` to `4.0`. `1.0` is the default." type: number From 10ccd10b5cdff18f7f30a4727e500da1cd3ab402 Mon Sep 17 00:00:00 2001 From: Alex Rattray Date: Fri, 23 Feb 2024 18:33:06 -0500 Subject: [PATCH 2/3] Add pcm too --- openapi.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 5a7dacc9..0ab3ad81 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -6930,10 +6930,10 @@ components: type: string enum: ["alloy", "echo", "fable", "onyx", "nova", "shimmer"] response_format: - description: "The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`, and `wav`." + description: "The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`, `pcm`, and `wav`." default: "mp3" type: string - enum: ["mp3", "opus", "aac", "flac", "wav"] + enum: ["mp3", "opus", "aac", "flac", "pcm", "wav"] speed: description: "The speed of the generated audio. Select a value from `0.25` to `4.0`. `1.0` is the default." type: number From 44306c2f4534144e169721e2ad160e00b6823bc7 Mon Sep 17 00:00:00 2001 From: Alex Rattray Date: Fri, 23 Feb 2024 18:49:02 -0500 Subject: [PATCH 3/3] Clarify pcm format --- openapi.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openapi.yaml b/openapi.yaml index 0ab3ad81..aa2f96a4 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -6930,7 +6930,11 @@ components: type: string enum: ["alloy", "echo", "fable", "onyx", "nova", "shimmer"] response_format: - description: "The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`, `pcm`, and `wav`." + description: |- + The format to return audio in. + Supported formats are `mp3`, `opus`, `aac`, `flac`, `pcm`, and `wav`. + + The `pcm` audio format, similar to `wav` but without a header, utilizes a 24kHz sample rate, mono channel, and 16-bit depth in signed little-endian format. default: "mp3" type: string enum: ["mp3", "opus", "aac", "flac", "pcm", "wav"]