Skip to main content

Stt

pub struct Stt {
Show 13 fields pub wer: Option<f32>, pub words: Option<u32>, pub word_errors: Option<u32>, pub cer: Option<f32>, pub chars: Option<u32>, pub char_errors: Option<u32>, pub stt_delay_ms: Option<u32>, pub entity_recognition: Option<f32>, pub entities_uttered: Option<u32>, pub entities_recognized: Option<u32>, pub entity_recall: Option<f32>, pub entities_acquired_uttered: Option<u32>, pub entities_acquired_recognized: Option<u32>,
}
Expand description

The agent’s perception of the caller. Audio only.

Fields§

§wer: Option<f32>

needs the RemoteSession; word_errors / words

§words: Option<u32>

needs the RemoteSession

§word_errors: Option<u32>

needs the RemoteSession

§cer: Option<f32>

needs the RemoteSession; char_errors / chars

§chars: Option<u32>

needs the RemoteSession

§char_errors: Option<u32>

needs the RemoteSession

§stt_delay_ms: Option<u32>

needs the RemoteSession; agent-reported STT/endpointing delay

§entity_recognition: Option<f32>

Key entities (names, IDs, amounts) the caller said. Needs the text judge.

recognized / uttered

§entities_uttered: Option<u32>§entities_recognized: Option<u32>§entity_recall: Option<f32>

Retention: an entity is acquired at the first saying heard right, and these count only the sayings after that, so recall separates keeping an entity from ever getting it.

acquired_recognized / acquired_uttered

§entities_acquired_uttered: Option<u32>§entities_acquired_recognized: Option<u32>

Implementations§

Source§

impl Stt

Source

pub fn wer(&self) -> f32

Returns the value of wer, or the default value if wer is unset.

Source

pub fn words(&self) -> u32

Returns the value of words, or the default value if words is unset.

Source

pub fn word_errors(&self) -> u32

Returns the value of word_errors, or the default value if word_errors is unset.

Source

pub fn cer(&self) -> f32

Returns the value of cer, or the default value if cer is unset.

Source

pub fn stt_delay_ms(&self) -> u32

Returns the value of stt_delay_ms, or the default value if stt_delay_ms is unset.

Source

pub fn chars(&self) -> u32

Returns the value of chars, or the default value if chars is unset.

Source

pub fn char_errors(&self) -> u32

Returns the value of char_errors, or the default value if char_errors is unset.

Source

pub fn entity_recognition(&self) -> f32

Returns the value of entity_recognition, or the default value if entity_recognition is unset.

Source

pub fn entities_uttered(&self) -> u32

Returns the value of entities_uttered, or the default value if entities_uttered is unset.

Source

pub fn entities_recognized(&self) -> u32

Returns the value of entities_recognized, or the default value if entities_recognized is unset.

Source

pub fn entity_recall(&self) -> f32

Returns the value of entity_recall, or the default value if entity_recall is unset.

Source

pub fn entities_acquired_uttered(&self) -> u32

Returns the value of entities_acquired_uttered, or the default value if entities_acquired_uttered is unset.

Source

pub fn entities_acquired_recognized(&self) -> u32

Returns the value of entities_acquired_recognized, or the default value if entities_acquired_recognized is unset.

Trait Implementations§

Source§

impl Clone for Stt

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Stt

Source§

impl Debug for Stt

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Stt

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Stt

§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Message for Stt

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
Source§

fn encode_to_vec(&self) -> Vec<u8> ⓘ
where Self: Sized,

Encodes the message to a newly allocated buffer.
Source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
Source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘ
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
Source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
Source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
Source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
Source§

impl PartialEq for Stt

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl Serialize for Stt

§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Stt

Auto Trait Implementations§

§

impl Freeze for Stt

§

impl RefUnwindSafe for Stt

§

impl Send for Stt

§

impl Sync for Stt

§

impl Unpin for Stt

§

impl UnsafeUnpin for Stt

§

impl UnwindSafe for Stt

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.