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

(static) InteractionType :number

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

(static) MicrophoneDistance :number

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

(static) OriginalMediaType :number

OriginalMediaType enum.

Properties:
Name Type Description
ORIGINAL_MEDIA_TYPE_UNSPECIFIED number

ORIGINAL_MEDIA_TYPE_UNSPECIFIED value

AUDIO number

AUDIO value

VIDEO number

VIDEO value

(static) RecordingDeviceType :number

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

audioTopic :string

RecognitionMetadata audioTopic.

industryNaicsCodeOfAudio :number

RecognitionMetadata industryNaicsCodeOfAudio.

interactionType :google.cloud.speech.v1.RecognitionMetadata.InteractionType

RecognitionMetadata interactionType.

microphoneDistance :google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance

RecognitionMetadata microphoneDistance.

originalMediaType :google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType

RecognitionMetadata originalMediaType.

originalMimeType :string

RecognitionMetadata originalMimeType.

recordingDeviceName :string

RecognitionMetadata recordingDeviceName.

recordingDeviceType :google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType

RecognitionMetadata recordingDeviceType.

Methods

(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

(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

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

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

(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

(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

(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

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

Verifies a RecognitionMetadata message.

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

Plain object to verify

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

Converts this RecognitionMetadata to JSON.