Struct google_cognitive_apis::api::rest::google::cloud::speechtotext::v1::RecognitionConfig
source · [−]pub struct RecognitionConfig {Show 14 fields
pub encoding: AudioEncoding,
pub sample_rate_hertz: Option<i32>,
pub audio_channel_count: i32,
pub enable_separate_recognition_per_channel: bool,
pub language_code: String,
pub max_alternatives: i32,
pub profanity_filter: bool,
pub speech_contexts: Vec<SpeechContext>,
pub enable_word_time_offsets: bool,
pub enable_automatic_punctuation: bool,
pub diarization_config: Option<SpeakerDiarizationConfig>,
pub metadata: Option<RecognitionMetadata>,
pub model: RecognitionConfigModel,
pub use_enhanced: Option<bool>,
}
Fields
encoding: AudioEncoding
sample_rate_hertz: Option<i32>
audio_channel_count: i32
enable_separate_recognition_per_channel: bool
language_code: String
max_alternatives: i32
profanity_filter: bool
speech_contexts: Vec<SpeechContext>
enable_word_time_offsets: bool
enable_automatic_punctuation: bool
diarization_config: Option<SpeakerDiarizationConfig>
metadata: Option<RecognitionMetadata>
model: RecognitionConfigModel
use_enhanced: Option<bool>
Trait Implementations
sourceimpl Clone for RecognitionConfig
impl Clone for RecognitionConfig
sourcefn clone(&self) -> RecognitionConfig
fn clone(&self) -> RecognitionConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RecognitionConfig
impl Debug for RecognitionConfig
sourceimpl<'de> Deserialize<'de> for RecognitionConfig
impl<'de> Deserialize<'de> for RecognitionConfig
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Into<RecognitionConfig> for RecognitionConfig
impl Into<RecognitionConfig> for RecognitionConfig
sourcefn into(self) -> GrpcRecognitionConfig
fn into(self) -> GrpcRecognitionConfig
Converts this type into the (usually inferred) input type.
sourceimpl Serialize for RecognitionConfig
impl Serialize for RecognitionConfig
Auto Trait Implementations
impl RefUnwindSafe for RecognitionConfig
impl Send for RecognitionConfig
impl Sync for RecognitionConfig
impl Unpin for RecognitionConfig
impl UnwindSafe for RecognitionConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T
in a tonic::Request