Enum gapi_grpc::google::cloud::dialogflow::v2beta1::SpeechModelVariant [−][src]
pub enum SpeechModelVariant { Unspecified, UseBestAvailable, UseStandard, UseEnhanced, }
Variant of the specified [Speech model][google.cloud.dialogflow.v2beta1.InputAudioConfig.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.
Variants
No model variant specified. In this case Dialogflow defaults to USE_BEST_AVAILABLE.
Use the best available variant of the [Speech model][InputAudioConfig.model] that the caller is eligible for.
Please see the Dialogflow docs for how to make your project eligible for enhanced models.
Use standard model variant even if an enhanced model is available. See the Cloud Speech documentation for details about enhanced models.
Use an enhanced model variant:
-
If an enhanced variant does not exist for the given [model][google.cloud.dialogflow.v2beta1.InputAudioConfig.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.
Implementations
impl SpeechModelVariant
[src][−]
pub fn is_valid(value: i32) -> bool
[src][−]
Returns true
if value
is a variant of SpeechModelVariant
.
pub fn from_i32(value: i32) -> Option<SpeechModelVariant>
[src][−]
Converts an i32
to a SpeechModelVariant
, or None
if value
is not a valid variant.
Trait Implementations
impl Clone for SpeechModelVariant
[src][+]
impl Copy for SpeechModelVariant
[src]
impl Debug for SpeechModelVariant
[src][+]
impl Default for SpeechModelVariant
[src][+]
impl Eq for SpeechModelVariant
[src]
impl From<SpeechModelVariant> for i32
[src][+]
impl Hash for SpeechModelVariant
[src][+]
impl Ord for SpeechModelVariant
[src][+]
impl PartialEq<SpeechModelVariant> for SpeechModelVariant
[src][+]
impl PartialOrd<SpeechModelVariant> for SpeechModelVariant
[src][+]
impl StructuralEq for SpeechModelVariant
[src]
impl StructuralPartialEq for SpeechModelVariant
[src]
Auto Trait Implementations
impl RefUnwindSafe for SpeechModelVariant
impl Send for SpeechModelVariant
impl Sync for SpeechModelVariant
impl Unpin for SpeechModelVariant
impl UnwindSafe for SpeechModelVariant
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src][+]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> IntoRequest<T> for T
[src][+]
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,