pub enum DictateOutcome {
Landed {
text: String,
truncated: bool,
},
Empty,
NoAudio {
peak_db: f32,
seconds: u64,
},
Refused {
message: String,
},
Failed,
Cancelled,
}Expand description
What one finished dictation take produced. Plain data rather than
forge_dictate::Outcome: a view words the notices, so it gets
the observations and keeps the crate’s error shapes.
Variants§
Landed
Words to insert at the composer’s caret. truncated means the
take hit the capture cap or the decode budget and is partial.
Empty
The audio normalised to nothing - a valid answer, not a failure.
NoAudio
Nothing rose above the silence floor. A finite peak_db is a
quiet room and a retry is reasonable; negative infinity means
every sample was exactly zero, which is structural and sticky.
Refused
The take never happened. Covers a busy microphone, a device that would not open, and dictation not being ready.
Failed
Recognition failed. The response is the same whichever way.
Cancelled
The user abandoned the take. Resets silently.
Trait Implementations§
Source§impl Clone for DictateOutcome
impl Clone for DictateOutcome
Source§fn clone(&self) -> DictateOutcome
fn clone(&self) -> DictateOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DictateOutcome
impl Debug for DictateOutcome
Source§impl<'de> Deserialize<'de> for DictateOutcome
impl<'de> Deserialize<'de> for DictateOutcome
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DictateOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DictateOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for DictateOutcome
impl PartialEq for DictateOutcome
Source§impl Serialize for DictateOutcome
impl Serialize for DictateOutcome
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for DictateOutcome
Auto Trait Implementations§
impl Freeze for DictateOutcome
impl RefUnwindSafe for DictateOutcome
impl Send for DictateOutcome
impl Sync for DictateOutcome
impl Unpin for DictateOutcome
impl UnsafeUnpin for DictateOutcome
impl UnwindSafe for DictateOutcome
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more