#[non_exhaustive]pub struct TurnInfo {
pub sample_rate: i32,
pub max_audio_ms: i32,
pub frame_samples: i32,
pub has_speech: bool,
pub threshold: f64,
}Expand description
Static facts about an end-of-turn model (Model::turn_info).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sample_rate: i32Input PCM rate (16000).
max_audio_ms: i32The longest audio TurnSession::run looks at; longer audio is scored
on its last max_audio_ms. 0 = no limit.
frame_samples: i32Samples per frame for streaming; 0 = the model cannot stream (the
stream_* calls return Error::NotImplemented).
has_speech: boolWhether the model also returns a speech probability per frame
(TurnResult::speech_probs).
threshold: f64The model’s recommended cut-off: the default for
TurnOptions::threshold.
Trait Implementations§
impl Copy for TurnInfo
impl StructuralPartialEq for TurnInfo
Auto Trait Implementations§
impl Forget for TurnInfo
impl Freeze for TurnInfo
impl Move for TurnInfo
impl RefUnwindSafe for TurnInfo
impl Send for TurnInfo
impl Sync for TurnInfo
impl Unpin for TurnInfo
impl UnsafeUnpin for TurnInfo
impl UnwindSafe for TurnInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more