Struct googapis::google::cloud::speech::v1::RecognitionMetadata [−][src]
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
Returns the enum value of interaction_type
, or the default if the field is set to an invalid enum value.
Sets interaction_type
to the provided enum value.
Returns the enum value of microphone_distance
, or the default if the field is set to an invalid enum value.
Sets microphone_distance
to the provided enum value.
Returns the enum value of original_media_type
, or the default if the field is set to an invalid enum value.
Sets original_media_type
to the provided enum value.
Returns the enum value of recording_device_type
, or the default if the field is set to an invalid enum value.
Sets recording_device_type
to the provided enum value.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more