pub struct GladiaTranscriber {
pub provider: Provider,
pub model: Option<Box<GladiaTranscriberModel>>,
pub language_behaviour: Option<Box<GladiaTranscriberLanguageBehaviour>>,
pub language: Option<Language>,
pub transcription_hint: Option<String>,
pub prosody: Option<bool>,
pub audio_enhancer: Option<bool>,
}Fields§
§provider: ProviderThis is the transcription provider that will be used.
model: Option<Box<GladiaTranscriberModel>>§language_behaviour: Option<Box<GladiaTranscriberLanguageBehaviour>>§language: Option<Language>Defines the language to use for the transcription. Required when languageBehaviour is ‘manual’.
transcription_hint: Option<String>Provides a custom vocabulary to the model to improve accuracy of transcribing context specific words, technical terms, names, etc. If empty, this argument is ignored. ⚠️ Warning ⚠️: Please be aware that the transcription_hint field has a character limit of 600. If you provide a transcription_hint longer than 600 characters, it will be automatically truncated to meet this limit.
prosody: Option<bool>If prosody is true, you will get a transcription that can contain prosodies i.e. (laugh) (giggles) (malefic laugh) (toss) (music)… Default value is false.
audio_enhancer: Option<bool>If true, audio will be pre-processed to improve accuracy but latency will increase. Default value is false.
Implementations§
Source§impl GladiaTranscriber
impl GladiaTranscriber
pub fn new(provider: Provider) -> GladiaTranscriber
Trait Implementations§
Source§impl Clone for GladiaTranscriber
impl Clone for GladiaTranscriber
Source§fn clone(&self) -> GladiaTranscriber
fn clone(&self) -> GladiaTranscriber
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more