openai_struct/models/create_transcription_response_verbose_json.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 CreateTranscriptionResponseVerboseJson : Represents a verbose json transcription response returned by model, based on the provided input.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct CreateTranscriptionResponseVerboseJson {
18 /// The duration of the input audio.
19 #[serde(rename = "duration")]
20 pub duration: f32,
21 /// The language of the input audio.
22 #[serde(rename = "language")]
23 pub language: String,
24 /// Segments of the transcribed text and their corresponding details.
25 #[serde(rename = "segments")]
26 pub segments: Option<Vec<crate::models::TranscriptionSegment>>,
27 /// The transcribed text.
28 #[serde(rename = "text")]
29 pub text: String,
30 /// Extracted words and their corresponding timestamps.
31 #[serde(rename = "words")]
32 pub words: Option<Vec<crate::models::TranscriptionWord>>,
33}