Skip to content

Commit

Permalink
feat(api): add wav and pcm to response_format (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Feb 24, 2024
1 parent 4ca005b commit b1c6171
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/resources/audio/speech.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ export interface SpeechCreateParams {
voice: 'alloy' | 'echo' | 'fable' | 'onyx' | 'nova' | 'shimmer';

/**
* The format to audio in. Supported formats are `mp3`, `opus`, `aac`, and `flac`.
* 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.
*/
response_format?: 'mp3' | 'opus' | 'aac' | 'flac';
response_format?: 'mp3' | 'opus' | 'aac' | 'flac' | 'pcm' | 'wav';

/**
* The speed of the generated audio. Select a value from `0.25` to `4.0`. `1.0` is
Expand Down

0 comments on commit b1c6171

Please sign in to comment.