openai_struct/models/realtime_transcription_session_create_response_input_audio_transcription.rs
1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11/// pub RealtimeTranscriptionSessionCreateResponseInputAudioTranscription : Configuration of the transcription model.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct RealtimeTranscriptionSessionCreateResponseInputAudioTranscription {
18 /// The language of the input audio. Supplying the input language in [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) (e.g. `en`) format will improve accuracy and latency.
19 #[serde(rename = "language")]
20 pub language: Option<String>,
21 /// The model to use for transcription. Can be `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, or `whisper-1`.
22 #[serde(rename = "model")]
23 pub model: Option<String>,
24 /// An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text#prompting) should match the audio language.
25 #[serde(rename = "prompt")]
26 pub prompt: Option<String>,
27}