RecognitionMetadata

google.cloud.speech.v1. RecognitionMetadata

Represents a RecognitionMetadata.

Constructor

new RecognitionMetadata(propertiesopt)

Constructs a new RecognitionMetadata.

Parameters:
Name Type Attributes Description
properties google.cloud.speech.v1.IRecognitionMetadata <optional>

Properties to set

Implements:
  • IRecognitionMetadata

Members

audioTopic

RecognitionMetadata audioTopic.

industryNaicsCodeOfAudio

RecognitionMetadata industryNaicsCodeOfAudio.

interactionType

RecognitionMetadata interactionType.

microphoneDistance

RecognitionMetadata microphoneDistance.

originalMediaType

RecognitionMetadata originalMediaType.

originalMimeType

RecognitionMetadata originalMimeType.

recordingDeviceName

RecognitionMetadata recordingDeviceName.

recordingDeviceType

RecognitionMetadata recordingDeviceType.

InteractionType

InteractionType enum.

Properties:
Name Type Description
INTERACTION_TYPE_UNSPECIFIED number

INTERACTION_TYPE_UNSPECIFIED value

DISCUSSION number

DISCUSSION value

PRESENTATION number

PRESENTATION value

PHONE_CALL number

PHONE_CALL value

VOICEMAIL number

VOICEMAIL value

PROFESSIONALLY_PRODUCED number

PROFESSIONALLY_PRODUCED value

VOICE_SEARCH number

VOICE_SEARCH value

VOICE_COMMAND number

VOICE_COMMAND value

DICTATION number

DICTATION value

MicrophoneDistance

MicrophoneDistance enum.

Properties:
Name Type Description
MICROPHONE_DISTANCE_UNSPECIFIED number

MICROPHONE_DISTANCE_UNSPECIFIED value

NEARFIELD number

NEARFIELD value

MIDFIELD number

MIDFIELD value

FARFIELD number

FARFIELD value

OriginalMediaType

OriginalMediaType enum.

Properties:
Name Type Description
ORIGINAL_MEDIA_TYPE_UNSPECIFIED number

ORIGINAL_MEDIA_TYPE_UNSPECIFIED value

AUDIO number

AUDIO value

VIDEO number

VIDEO value

RecordingDeviceType

RecordingDeviceType enum.

Properties:
Name Type Description
RECORDING_DEVICE_TYPE_UNSPECIFIED number

RECORDING_DEVICE_TYPE_UNSPECIFIED value

SMARTPHONE number

SMARTPHONE value

PC number

PC value

PHONE_LINE number

PHONE_LINE value

VEHICLE number

VEHICLE value

OTHER_OUTDOOR_DEVICE number

OTHER_OUTDOOR_DEVICE value

OTHER_INDOOR_DEVICE number

OTHER_INDOOR_DEVICE value

Methods

toJSON() → {Object.<string, *>}

Converts this RecognitionMetadata to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

(static) create(propertiesopt) → {google.cloud.speech.v1.RecognitionMetadata}

Creates a new RecognitionMetadata instance using the specified properties.

Parameters:
Name Type Attributes Description
properties google.cloud.speech.v1.IRecognitionMetadata <optional>

Properties to set

Returns:
Type Description
google.cloud.speech.v1.RecognitionMetadata

RecognitionMetadata instance

(static) decode(reader, lengthopt) → {google.cloud.speech.v1.RecognitionMetadata}

Decodes a RecognitionMetadata message from the specified reader or buffer.

Parameters:
Name Type Attributes Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

length number <optional>

Message length if known beforehand

Returns:
Type Description
google.cloud.speech.v1.RecognitionMetadata

RecognitionMetadata

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) decodeDelimited(reader) → {google.cloud.speech.v1.RecognitionMetadata}

Decodes a RecognitionMetadata message from the specified reader or buffer, length delimited.

Parameters:
Name Type Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

Returns:
Type Description
google.cloud.speech.v1.RecognitionMetadata

RecognitionMetadata

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) encode(message, writeropt) → {$protobuf.Writer}

Encodes the specified RecognitionMetadata message. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.cloud.speech.v1.IRecognitionMetadata

RecognitionMetadata message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}

Encodes the specified RecognitionMetadata message, length delimited. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.cloud.speech.v1.IRecognitionMetadata

RecognitionMetadata message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) fromObject(object) → {google.cloud.speech.v1.RecognitionMetadata}

Creates a RecognitionMetadata message from a plain object. Also converts values to their respective internal types.

Parameters:
Name Type Description
object Object.<string, *>

Plain object

Returns:
Type Description
google.cloud.speech.v1.RecognitionMetadata

RecognitionMetadata

(static) getTypeUrl(typeUrlPrefixopt) → {string}

Gets the default type url for RecognitionMetadata

Parameters:
Name Type Attributes Description
typeUrlPrefix string <optional>

your custom typeUrlPrefix(default "type.googleapis.com")

Returns:
Type Description
string

The default type url

(static) toObject(message, optionsopt) → {Object.<string, *>}

Creates a plain object from a RecognitionMetadata message. Also converts values to other types if specified.

Parameters:
Name Type Attributes Description
message google.cloud.speech.v1.RecognitionMetadata

RecognitionMetadata

options $protobuf.IConversionOptions <optional>

Conversion options

Returns:
Type Description
Object.<string, *>

Plain object

(static) verify(message) → {string|null}

Verifies a RecognitionMetadata message.

Parameters:
Name Type Description
message Object.<string, *>

Plain object to verify

Returns:
Type Description
string | null

null if valid, otherwise the reason why it is not