Skip to content

Commit 78ae354

Browse files
Language support added to batch response (#126)
* Language support added to batch response * Removed unnecessary white space
1 parent 89cabcb commit 78ae354

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/common/batch_response.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ pub struct ListenMetadata {
5959

6060
#[allow(missing_docs)]
6161
pub channels: usize,
62+
63+
#[allow(missing_docs)]
64+
pub language: Option<String>,
6265
}
6366

6467
/// Transcription results.
@@ -336,6 +339,10 @@ pub struct ResultAlternative {
336339

337340
#[allow(missing_docs)]
338341
pub entities: Option<Vec<Entity>>,
342+
343+
#[allow(missing_docs)]
344+
#[serde(default)]
345+
pub languages: Vec<String>,
339346
}
340347

341348
/// A single transcribed word.

0 commit comments

Comments
 (0)