#[non_exhaustive]pub enum SpeechModelVariant {
Unspecified,
UseBestAvailable,
UseStandard,
UseEnhanced,
UnknownValue(UnknownValue),
}conversation-profiles or conversations or participants or sessions only.Expand description
Variant of the specified Speech model to use.
See the Cloud Speech documentation for which models have different variants. For example, the “phone_call” model has both a standard and an enhanced variant. When you use an enhanced model, you will generally receive higher quality results than for a standard model.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
No model variant specified. In this case Dialogflow defaults to USE_BEST_AVAILABLE.
UseBestAvailable
Use the best available variant of the [Speech model][model] that the caller is eligible for.
Please see the Dialogflow docs for how to make your project eligible for enhanced models.
UseStandard
Use standard model variant even if an enhanced model is available. See the Cloud Speech documentation for details about enhanced models.
UseEnhanced
Use an enhanced model variant:
-
If an enhanced variant does not exist for the given model and request language, Dialogflow falls back to the standard variant.
The Cloud Speech documentation describes which models have enhanced variants.
-
If the API caller isn’t eligible for enhanced models, Dialogflow returns an error. Please see the Dialogflow docs for how to make your project eligible.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using SpeechModelVariant::value or SpeechModelVariant::name.
Implementations§
Trait Implementations§
Source§impl Clone for SpeechModelVariant
impl Clone for SpeechModelVariant
Source§fn clone(&self) -> SpeechModelVariant
fn clone(&self) -> SpeechModelVariant
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SpeechModelVariant
impl Debug for SpeechModelVariant
Source§impl Default for SpeechModelVariant
impl Default for SpeechModelVariant
Source§impl<'de> Deserialize<'de> for SpeechModelVariant
impl<'de> Deserialize<'de> for SpeechModelVariant
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Display for SpeechModelVariant
impl Display for SpeechModelVariant
Source§impl From<&str> for SpeechModelVariant
impl From<&str> for SpeechModelVariant
Source§impl From<i32> for SpeechModelVariant
impl From<i32> for SpeechModelVariant
Source§impl PartialEq for SpeechModelVariant
impl PartialEq for SpeechModelVariant
Source§impl Serialize for SpeechModelVariant
impl Serialize for SpeechModelVariant
impl StructuralPartialEq for SpeechModelVariant
Auto Trait Implementations§
impl Freeze for SpeechModelVariant
impl RefUnwindSafe for SpeechModelVariant
impl Send for SpeechModelVariant
impl Sync for SpeechModelVariant
impl Unpin for SpeechModelVariant
impl UnwindSafe for SpeechModelVariant
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.