Cloud Speech V1p1beta1 Client - Class RecognitionMetadata (1.11.2)

Reference documentation and code samples for the Cloud Speech V1p1beta1 Client class RecognitionMetadata.

Description of audio data to be recognized.

Generated from protobuf message google.cloud.speech.v1p1beta1.RecognitionMetadata

Methods

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ interaction_type
int

The use case most closely describing the audio content to be recognized.

↳ industry_naics_code_of_audio
int

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
int

The audio type that most closely describes the audio being recognized.

↳ original_media_type
int

The original media the speech was recorded on.

↳ recording_device_type
int

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
int|string

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".

The use case most closely describing the audio content to be recognized.

Returns
Type
Description
int

The use case most closely describing the audio content to be recognized.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

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/ .

Returns
Type
Description
int

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/ .

Parameter
Name
Description
var
int
Returns
Type
Description
$this

The audio type that most closely describes the audio being recognized.

Returns
Type
Description
int

The audio type that most closely describes the audio being recognized.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

The original media the speech was recorded on.

Returns
Type
Description
int

The original media the speech was recorded on.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

The type of device the speech was recorded with.

Returns
Type
Description
int

The type of device the speech was recorded with.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

The device used to make the recording. Examples 'Nexus 5X' or 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or 'Cardioid Microphone'.

Returns
Type
Description
string

The device used to make the recording. Examples 'Nexus 5X' or 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or 'Cardioid Microphone'.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

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

Returns
Type
Description
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

Parameter
Name
Description
var
string
Returns
Type
Description
$this

Obfuscated (privacy-protected) ID of the user, to identify number of unique users using the service.

Returns
Type
Description
int|string

Obfuscated (privacy-protected) ID of the user, to identify number of unique users using the service.

Parameter
Name
Description
var
int|string
Returns
Type
Description
$this

Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".

Returns
Type
Description
string

Description of the content. Eg. "Recordings of federal supreme court hearings from 2012".

Parameter
Name
Description
var
string
Returns
Type
Description
$this