Enum google_api_proto::google::cloud::dialogflow::cx::v3::SpeechModelVariant
source · #[repr(i32)]pub enum SpeechModelVariant {
Unspecified = 0,
UseBestAvailable = 1,
UseStandard = 2,
UseEnhanced = 3,
}
Expand description
Variant of the specified [Speech model][google.cloud.dialogflow.cx.v3.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§
Unspecified = 0
No model variant specified. In this case Dialogflow defaults to USE_BEST_AVAILABLE.
UseBestAvailable = 1
Use the best available variant of the [Speech model][InputAudioConfig.model] that the caller is eligible for.
UseStandard = 2
Use standard model variant even if an enhanced model is available. See the Cloud Speech documentation for details about enhanced models.
UseEnhanced = 3
Use an enhanced model variant:
-
If an enhanced variant does not exist for the given [model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] and request language, Dialogflow falls back to the standard variant.
The Cloud Speech documentation describes which models have enhanced variants.
Implementations§
source§impl SpeechModelVariant
impl SpeechModelVariant
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
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§fn default() -> SpeechModelVariant
fn default() -> SpeechModelVariant
source§impl From<SpeechModelVariant> for i32
impl From<SpeechModelVariant> for i32
source§fn from(value: SpeechModelVariant) -> i32
fn from(value: SpeechModelVariant) -> i32
source§impl Hash for SpeechModelVariant
impl Hash for SpeechModelVariant
source§impl Ord for SpeechModelVariant
impl Ord for SpeechModelVariant
source§fn cmp(&self, other: &SpeechModelVariant) -> Ordering
fn cmp(&self, other: &SpeechModelVariant) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for SpeechModelVariant
impl PartialEq for SpeechModelVariant
source§fn eq(&self, other: &SpeechModelVariant) -> bool
fn eq(&self, other: &SpeechModelVariant) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SpeechModelVariant
impl PartialOrd for SpeechModelVariant
source§fn partial_cmp(&self, other: &SpeechModelVariant) -> Option<Ordering>
fn partial_cmp(&self, other: &SpeechModelVariant) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for SpeechModelVariant
impl TryFrom<i32> for SpeechModelVariant
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<SpeechModelVariant, UnknownEnumValue>
fn try_from(value: i32) -> Result<SpeechModelVariant, UnknownEnumValue>
impl Copy for SpeechModelVariant
impl Eq 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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request