pub struct AssemblyAiTranscriber {Show 14 fields
pub provider: ProviderTrue,
pub language: Option<LanguageTrue>,
pub confidence_threshold: Option<f64>,
pub enable_universal_streaming_api: Option<bool>,
pub format_turns: Option<bool>,
pub end_of_turn_confidence_threshold: Option<f64>,
pub min_end_of_turn_silence_when_confident: Option<f64>,
pub word_finalization_max_wait_time: Option<f64>,
pub max_turn_silence: Option<f64>,
pub realtime_url: Option<String>,
pub word_boost: Option<Vec<String>>,
pub end_utterance_silence_threshold: Option<f64>,
pub disable_partial_transcripts: Option<bool>,
pub fallback_plan: Option<FallbackTranscriberPlan>,
}
Fields§
§provider: ProviderTrue
This is the transcription provider that will be used.
language: Option<LanguageTrue>
This is the language that will be set for the transcription.
confidence_threshold: Option<f64>
Transcripts below this confidence threshold will be discarded. @default 0.4
enable_universal_streaming_api: Option<bool>
Uses Assembly AI’s new Universal Streaming API. See: https://www.assemblyai.com/docs/speech-to-text/universal-streaming @default false
format_turns: Option<bool>
This enables formatting of transcripts. Only used when enableUniversalStreamingApi
is true. @default false
end_of_turn_confidence_threshold: Option<f64>
The confidence threshold to use when determining if the end of a turn has been reached. Only used when enableUniversalStreamingApi
is true. @default 0.7
min_end_of_turn_silence_when_confident: Option<f64>
The minimum amount of silence in milliseconds required to detect end of turn when confident. Only used when enableUniversalStreamingApi
is true. @default 160
word_finalization_max_wait_time: Option<f64>
The maximum wait time for word finalization. Only used when enableUniversalStreamingApi
is true. @default 160
max_turn_silence: Option<f64>
The maximum amount of silence in milliseconds allowed in a turn before end of turn is triggered. Only used when enableUniversalStreamingApi
is true. @default 400
realtime_url: Option<String>
The WebSocket URL that the transcriber connects to.
word_boost: Option<Vec<String>>
Add up to 2500 characters of custom vocabulary.
end_utterance_silence_threshold: Option<f64>
The duration of the end utterance silence threshold in milliseconds.
disable_partial_transcripts: Option<bool>
Disable partial transcripts. Set to true
to not receive partial transcripts. Defaults to false
.
fallback_plan: Option<FallbackTranscriberPlan>
This is the plan for voice provider fallbacks in the event that the primary voice provider fails.
Implementations§
Source§impl AssemblyAiTranscriber
impl AssemblyAiTranscriber
pub fn new(provider: ProviderTrue) -> AssemblyAiTranscriber
Trait Implementations§
Source§impl Clone for AssemblyAiTranscriber
impl Clone for AssemblyAiTranscriber
Source§fn clone(&self) -> AssemblyAiTranscriber
fn clone(&self) -> AssemblyAiTranscriber
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more