Struct google_api_proto::google::cloud::speech::v1p1beta1::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 obfuscated_id: i64,
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
obfuscated_id: i64
Obfuscated (privacy-protected) ID of the user, to identify number of unique users using the service.
audio_topic: String
Description of the content. Eg. “Recordings of federal supreme court hearings from 2012”.
Implementations§
source§impl 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§
source§impl Clone for RecognitionMetadata
impl Clone for RecognitionMetadata
source§fn clone(&self) -> RecognitionMetadata
fn clone(&self) -> RecognitionMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecognitionMetadata
impl Debug for RecognitionMetadata
source§impl Default for RecognitionMetadata
impl Default for RecognitionMetadata
source§impl Message for RecognitionMetadata
impl Message for RecognitionMetadata
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for RecognitionMetadata
impl PartialEq for RecognitionMetadata
source§fn eq(&self, other: &RecognitionMetadata) -> bool
fn eq(&self, other: &RecognitionMetadata) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RecognitionMetadata
Auto Trait Implementations§
impl Freeze for RecognitionMetadata
impl RefUnwindSafe for RecognitionMetadata
impl Send for RecognitionMetadata
impl Sync for RecognitionMetadata
impl Unpin for RecognitionMetadata
impl UnwindSafe for RecognitionMetadata
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<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