pub struct GladiaTranscriber {
pub provider: ProviderTrue,
pub model: Option<ModelTrue>,
pub language_behaviour: Option<LanguageBehaviourTrue>,
pub language: Option<LanguageTrue>,
pub languages: Option<LanguagesTrue>,
pub transcription_hint: Option<String>,
pub prosody: Option<bool>,
pub audio_enhancer: Option<bool>,
pub confidence_threshold: Option<f64>,
pub fallback_plan: Option<FallbackTranscriberPlan>,
}
Fields§
§provider: ProviderTrue
This is the transcription provider that will be used.
model: Option<ModelTrue>
§language_behaviour: Option<LanguageBehaviourTrue>
§language: Option<LanguageTrue>
Defines the language to use for the transcription. Required when languageBehaviour is ‘manual’.
languages: Option<LanguagesTrue>
Defines the languages 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.
confidence_threshold: Option<f64>
Transcripts below this confidence threshold will be discarded. @default 0.4
fallback_plan: Option<FallbackTranscriberPlan>
This is the plan for voice provider fallbacks in the event that the primary voice provider fails.
Implementations§
Source§impl GladiaTranscriber
impl GladiaTranscriber
pub fn new(provider: ProviderTrue) -> 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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more