openai_struct/models/
realtime_transcription_session_create_response.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 RealtimeTranscriptionSessionCreateResponse : A new Realtime transcription session configuration.  When a session is created on the server via REST API, the session object also contains an ephemeral key. Default TTL for keys is one minute. This  property is not present when a session is updated via the WebSocket API.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct RealtimeTranscriptionSessionCreateResponse {
18    #[serde(rename = "client_secret")]
19    pub client_secret: crate::models::RealtimeTranscriptionSessionCreateResponseClientSecret,
20    /// The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.
21    #[serde(rename = "input_audio_format")]
22    pub input_audio_format: Option<String>,
23    #[serde(rename = "input_audio_transcription")]
24    pub input_audio_transcription:
25        Option<crate::models::RealtimeTranscriptionSessionCreateResponseInputAudioTranscription>,
26    /// The set of modalities the model can respond with. To disable audio, set this to [\"text\"].
27    #[serde(rename = "modalities")]
28    pub modalities: Option<Value>,
29    #[serde(rename = "turn_detection")]
30    pub turn_detection: Option<crate::models::RealtimeSessionCreateResponseTurnDetection>,
31}