Skip to content

Commit 3bb45e8

Browse files
authored
added instructions to AudioSpeechParameters (tjardoo#131)
1 parent c8c95e9 commit 3bb45e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

openai_dive/src/v1/resources/audio.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ pub struct AudioSpeechParameters {
1818
pub input: String,
1919
/// The voice to use when generating the audio.
2020
pub voice: AudioVoice,
21+
/// Control the voice of your generated audio with additional instructions. Does not work with tts-1 or tts-1-hd
22+
#[serde(skip_serializing_if = "Option::is_none")]
23+
pub instructions: Option<String>,
2124
/// The format to audio in. Supported formats are mp3, opus, aac, flac, wav and pcm.
2225
#[serde(skip_serializing_if = "Option::is_none")]
2326
pub response_format: Option<AudioSpeechResponseFormat>,

0 commit comments

Comments
 (0)