[][src]Struct houndify::DisambiguationChoice

pub struct DisambiguationChoice {
    pub transcription: String,
    pub confidence_score: i64,
    pub formatted_transcription: String,
    pub fixed_transcription: Option<String>,
}

Fields

transcription: String

This gives the transcription that led to the corresponding result in "AllResults". Sometimes, the different results in "AllResults" will come from different transcriptions of the audio and sometimes the different results will come from different parses of the same transcription. It is provided here so it can be presented to the user as one of the things we think he or she said.

confidence_score: i64

This gives an idea of how confident the server is that this particular interpretation of the query from the user is correct. It combines both information about how likely the server thinks it is the transcription is correct and how likely the server thinks it is that the parse of that transcription is correct.

formatted_transcription: String

This field contains a version of the transcription formatted for easier reading. This is in contrast to the "Transcription" field which only contains the raw words.

fixed_transcription: Option<String>

Under some circumstances, the server will make corrections to the transcription to give what it believes the user meant. This field contains this fixed transcription.

Trait Implementations

impl Debug for DisambiguationChoice[src]

impl<'de> Deserialize<'de> for DisambiguationChoice[src]

impl Serialize for DisambiguationChoice[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,