Cloud Speech V1p1beta1 Client - Class RecognitionMetadata (1.8.0)

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

__construct

Constructor.

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

getInteractionType

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

Generated from protobuf field .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1;

Returns
TypeDescription
int

setInteractionType

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

Generated from protobuf field .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getIndustryNaicsCodeOfAudio

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

Generated from protobuf field uint32 industry_naics_code_of_audio = 3;

Returns
TypeDescription
int

setIndustryNaicsCodeOfAudio

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

Generated from protobuf field uint32 industry_naics_code_of_audio = 3;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMicrophoneDistance

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

Generated from protobuf field .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;

Returns
TypeDescription
int

setMicrophoneDistance

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

Generated from protobuf field .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getOriginalMediaType

The original media the speech was recorded on.

Generated from protobuf field .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;

Returns
TypeDescription
int

setOriginalMediaType

The original media the speech was recorded on.

Generated from protobuf field .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRecordingDeviceType

The type of device the speech was recorded with.

Generated from protobuf field .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;

Returns
TypeDescription
int

setRecordingDeviceType

The type of device the speech was recorded with.

Generated from protobuf field .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRecordingDeviceName

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

Generated from protobuf field string recording_device_name = 7;

Returns
TypeDescription
string

setRecordingDeviceName

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

Generated from protobuf field string recording_device_name = 7;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getOriginalMimeType

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

Generated from protobuf field string original_mime_type = 8;

Returns
TypeDescription
string

setOriginalMimeType

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

Generated from protobuf field string original_mime_type = 8;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getObfuscatedId

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

Generated from protobuf field int64 obfuscated_id = 9 [deprecated = true];

Returns
TypeDescription
int|string

setObfuscatedId

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

Generated from protobuf field int64 obfuscated_id = 9 [deprecated = true];

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getAudioTopic

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

Generated from protobuf field string audio_topic = 10;

Returns
TypeDescription
string

setAudioTopic

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

Generated from protobuf field string audio_topic = 10;

Parameter
NameDescription
var string
Returns
TypeDescription
$this