Struct google_cognitive_apis::api::grpc::google::cloud::speechtotext::v1::RecognitionMetadata
source · [−]pub struct RecognitionMetadata {
pub interaction_type: i32,
pub industry_naics_code_of_audio: u32,
pub microphone_distance: i32,
pub original_media_type: i32,
pub recording_device_type: i32,
pub recording_device_name: String,
pub original_mime_type: String,
pub audio_topic: String,
}
Expand description
Description of audio data to be recognized.
Fields
interaction_type: i32
The use case most closely describing the audio content to be recognized.
industry_naics_code_of_audio: u32
The industry vertical to which this speech recognition request most closely applies. This is most indicative of the topics contained in the audio. Use the 6-digit NAICS code to identify the industry vertical - see https://www.naics.com/search/.
microphone_distance: i32
The audio type that most closely describes the audio being recognized.
original_media_type: i32
The original media the speech was recorded on.
recording_device_type: i32
The type of device the speech was recorded with.
recording_device_name: String
The device used to make the recording. Examples ‘Nexus 5X’ or ‘Polycom SoundStation IP 6000’ or ‘POTS’ or ‘VoIP’ or ‘Cardioid Microphone’.
original_mime_type: String
Mime type of the original audio file. For example audio/m4a
,
audio/x-alaw-basic
, audio/mp3
, audio/3gpp
.
A list of possible audio mime types is maintained at
http://www.iana.org/assignments/media-types/media-types.xhtml#audio
audio_topic: String
Description of the content. Eg. “Recordings of federal supreme court hearings from 2012”.
Implementations
sourceimpl RecognitionMetadata
impl RecognitionMetadata
sourcepub fn interaction_type(&self) -> InteractionType
pub fn interaction_type(&self) -> InteractionType
Returns the enum value of interaction_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_interaction_type(&mut self, value: InteractionType)
pub fn set_interaction_type(&mut self, value: InteractionType)
Sets interaction_type
to the provided enum value.
sourcepub fn microphone_distance(&self) -> MicrophoneDistance
pub fn microphone_distance(&self) -> MicrophoneDistance
Returns the enum value of microphone_distance
, or the default if the field is set to an invalid enum value.
sourcepub fn set_microphone_distance(&mut self, value: MicrophoneDistance)
pub fn set_microphone_distance(&mut self, value: MicrophoneDistance)
Sets microphone_distance
to the provided enum value.
sourcepub fn original_media_type(&self) -> OriginalMediaType
pub fn original_media_type(&self) -> OriginalMediaType
Returns the enum value of original_media_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_original_media_type(&mut self, value: OriginalMediaType)
pub fn set_original_media_type(&mut self, value: OriginalMediaType)
Sets original_media_type
to the provided enum value.
sourcepub fn recording_device_type(&self) -> RecordingDeviceType
pub fn recording_device_type(&self) -> RecordingDeviceType
Returns the enum value of recording_device_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_recording_device_type(&mut self, value: RecordingDeviceType)
pub fn set_recording_device_type(&mut self, value: RecordingDeviceType)
Sets recording_device_type
to the provided enum value.
Trait Implementations
sourceimpl Clone for RecognitionMetadata
impl Clone for RecognitionMetadata
sourcefn clone(&self) -> RecognitionMetadata
fn clone(&self) -> RecognitionMetadata
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 RecognitionMetadata
impl Debug for RecognitionMetadata
sourceimpl Default for RecognitionMetadata
impl Default for RecognitionMetadata
sourceimpl Into<RecognitionMetadata> for RecognitionMetadata
impl Into<RecognitionMetadata> for RecognitionMetadata
sourcefn into(self) -> GrpcRecognitionMetadata
fn into(self) -> GrpcRecognitionMetadata
Converts this type into the (usually inferred) input type.
sourceimpl Message for RecognitionMetadata
impl Message for RecognitionMetadata
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message to a buffer. Read more
sourcefn encode_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn encode_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Encodes the message to a newly allocated buffer.
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message with a length-delimiter to a buffer. Read more
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Encodes the message with a length-delimiter to a newly allocated buffer.
sourcefn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self
. Read more
sourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
sourceimpl PartialEq<RecognitionMetadata> for RecognitionMetadata
impl PartialEq<RecognitionMetadata> for RecognitionMetadata
sourcefn eq(&self, other: &RecognitionMetadata) -> bool
fn eq(&self, other: &RecognitionMetadata) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for RecognitionMetadata
Auto Trait Implementations
impl RefUnwindSafe for RecognitionMetadata
impl Send for RecognitionMetadata
impl Sync for RecognitionMetadata
impl Unpin for RecognitionMetadata
impl UnwindSafe for RecognitionMetadata
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