@google-cloud/speech

  • Version 4.10.0
  • Published
  • 3.06 MB
  • 7 dependencies
  • Apache-2.0 license

Install

npm i @google-cloud/speech
yarn add @google-cloud/speech
pnpm add @google-cloud/speech

Overview

Cloud Speech Client Library for Node.js

Index

Variables

Type Aliases

Namespaces

Variables

variable _default

const _default: {
v1: typeof v1;
v1p1beta1: typeof v1p1beta1;
SpeechClient: typeof v1.SpeechClient;
};

    variable SpeechClient

    const SpeechClient: typeof v1.SpeechClient;

      Type Aliases

      type SpeechClient

      type SpeechClient = v1.SpeechClient;

        Namespaces

        namespace protos

        module 'build/protos/protos.d.ts' {}
        • Namespace google.

        namespace protos.google

        namespace protos.google {}
        • Namespace google.

        namespace protos.google.api

        namespace protos.google.api {}
        • Namespace api.

        class CustomHttpPattern

        class CustomHttpPattern implements ICustomHttpPattern {}
        • Represents a CustomHttpPattern.

        constructor

        constructor(properties?: ICustomHttpPattern);
        • Constructs a new CustomHttpPattern.

          Parameter properties

          Properties to set

        property kind

        kind: string;
        • CustomHttpPattern kind.

        property path

        path: string;
        • CustomHttpPattern path.

        method create

        static create: (
        properties?: google.api.ICustomHttpPattern
        ) => google.api.CustomHttpPattern;
        • Creates a new CustomHttpPattern instance using the specified properties.

          Parameter properties

          Properties to set

          Returns

          CustomHttpPattern instance

        method decode

        static decode: (
        reader: $protobuf.Reader | Uint8Array,
        length?: number
        ) => google.api.CustomHttpPattern;
        • Decodes a CustomHttpPattern message from the specified reader or buffer.

          Parameter reader

          Reader or buffer to decode from

          Parameter length

          Message length if known beforehand

          Returns

          CustomHttpPattern

          Throws

          {Error} If the payload is not a reader or valid buffer

          Throws

          {$protobuf.util.ProtocolError} If required fields are missing

        method decodeDelimited

        static decodeDelimited: (
        reader: $protobuf.Reader | Uint8Array
        ) => google.api.CustomHttpPattern;
        • Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.

          Parameter reader

          Reader or buffer to decode from

          Returns

          CustomHttpPattern

          Throws

          {Error} If the payload is not a reader or valid buffer

          Throws

          {$protobuf.util.ProtocolError} If required fields are missing

        method encode

        static encode: (
        message: google.api.ICustomHttpPattern,
        writer?: $protobuf.Writer
        ) => $protobuf.Writer;
        • Encodes the specified CustomHttpPattern message. Does not implicitly verify messages.

          Parameter message

          CustomHttpPattern message or plain object to encode

          Parameter writer

          Writer to encode to

          Returns

          Writer

        method encodeDelimited

        static encodeDelimited: (
        message: google.api.ICustomHttpPattern,
        writer?: $protobuf.Writer
        ) => $protobuf.Writer;
        • Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly verify messages.

          Parameter message

          CustomHttpPattern message or plain object to encode

          Parameter writer

          Writer to encode to

          Returns

          Writer

        method fromObject

        static fromObject: (object: {
        [k: string]: any;
        }) => google.api.CustomHttpPattern;
        • Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.

          Parameter object

          Plain object

          Returns

          CustomHttpPattern

        method toJSON

        toJSON: () => { [k: string]: any };
        • Converts this CustomHttpPattern to JSON.

          Returns

          JSON object

        method toObject

        static toObject: (
        message: google.api.CustomHttpPattern,
        options?: $protobuf.IConversionOptions
        ) => { [k: string]: any };
        • Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.

          Parameter message

          CustomHttpPattern

          Parameter options

          Conversion options

          Returns

          Plain object

        method verify

        static verify: (message: { [k: string]: any }) => string | null;
        • Verifies a CustomHttpPattern message.

          Parameter message

          Plain object to verify

          Returns

          null if valid, otherwise the reason why it is not

        class Http

        class Http implements IHttp {}
        • Represents a Http.

        constructor

        constructor(properties?: IHttp);
        • Constructs a new Http.

          Parameter properties

          Properties to set

        property fullyDecodeReservedExpansion

        fullyDecodeReservedExpansion: boolean;
        • Http fullyDecodeReservedExpansion.

        property rules

        rules: IHttpRule[];
        • Http rules.

        method create

        static create: (properties?: google.api.IHttp) => google.api.Http;
        • Creates a new Http instance using the specified properties.

          Parameter properties

          Properties to set

          Returns

          Http instance

        method decode

        static decode: (
        reader: $protobuf.Reader | Uint8Array,
        length?: number
        ) => google.api.Http;
        • Decodes a Http message from the specified reader or buffer.

          Parameter reader

          Reader or buffer to decode from

          Parameter length

          Message length if known beforehand

          Returns

          Http

          Throws

          {Error} If the payload is not a reader or valid buffer

          Throws

          {$protobuf.util.ProtocolError} If required fields are missing

        method decodeDelimited

        static decodeDelimited: (
        reader: $protobuf.Reader | Uint8Array
        ) => google.api.Http;
        • Decodes a Http message from the specified reader or buffer, length delimited.

          Parameter reader

          Reader or buffer to decode from

          Returns

          Http

          Throws

          {Error} If the payload is not a reader or valid buffer

          Throws

          {$protobuf.util.ProtocolError} If required fields are missing

        method encode

        static encode: (
        message: google.api.IHttp,
        writer?: $protobuf.Writer
        ) => $protobuf.Writer;
        • Encodes the specified Http message. Does not implicitly verify messages.

          Parameter message

          Http message or plain object to encode

          Parameter writer

          Writer to encode to

          Returns

          Writer

        method encodeDelimited

        static encodeDelimited: (
        message: google.api.IHttp,
        writer?: $protobuf.Writer
        ) => $protobuf.Writer;
        • Encodes the specified Http message, length delimited. Does not implicitly verify messages.

          Parameter message

          Http message or plain object to encode

          Parameter writer

          Writer to encode to

          Returns

          Writer

        method fromObject

        static fromObject: (object: { [k: string]: any }) => google.api.Http;
        • Creates a Http message from a plain object. Also converts values to their respective internal types.

          Parameter object

          Plain object

          Returns

          Http

        method toJSON

        toJSON: () => { [k: string]: any };
        • Converts this Http to JSON.

          Returns

          JSON object

        method toObject

        static toObject: (
        message: google.api.Http,
        options?: $protobuf.IConversionOptions
        ) => { [k: string]: any };
        • Creates a plain object from a Http message. Also converts values to other types if specified.

          Parameter message

          Http

          Parameter options

          Conversion options

          Returns

          Plain object

        method verify

        static verify: (message: { [k: string]: any }) => string | null;
        • Verifies a Http message.

          Parameter message

          Plain object to verify

          Returns

          null if valid, otherwise the reason why it is not

        class HttpRule

        class HttpRule implements IHttpRule {}
        • Represents a HttpRule.

        constructor

        constructor(properties?: IHttpRule);
        • Constructs a new HttpRule.

          Parameter properties

          Properties to set

        property additionalBindings

        additionalBindings: IHttpRule[];
        • HttpRule additionalBindings.

        property body

        body: string;
        • HttpRule body.

        property custom

        custom?: ICustomHttpPattern;
        • HttpRule custom.

        property delete

        delete?: string;
        • HttpRule delete.

        property get

        get?: string;
        • HttpRule get.

        property patch

        patch?: string;
        • HttpRule patch.

        property pattern

        pattern?: 'get' | 'put' | 'post' | 'delete' | 'patch' | 'custom';
        • HttpRule pattern.

        property post

        post?: string;
        • HttpRule post.

        property put

        put?: string;
        • HttpRule put.

        property responseBody

        responseBody: string;
        • HttpRule responseBody.

        property selector

        selector: string;
        • HttpRule selector.

        method create

        static create: (properties?: google.api.IHttpRule) => google.api.HttpRule;
        • Creates a new HttpRule instance using the specified properties.

          Parameter properties

          Properties to set

          Returns

          HttpRule instance

        method decode

        static decode: (
        reader: $protobuf.Reader | Uint8Array,
        length?: number
        ) => google.api.HttpRule;
        • Decodes a HttpRule message from the specified reader or buffer.

          Parameter reader

          Reader or buffer to decode from

          Parameter length

          Message length if known beforehand

          Returns

          HttpRule

          Throws

          {Error} If the payload is not a reader or valid buffer

          Throws

          {$protobuf.util.ProtocolError} If required fields are missing

        method decodeDelimited

        static decodeDelimited: (
        reader: $protobuf.Reader | Uint8Array
        ) => google.api.HttpRule;
        • Decodes a HttpRule message from the specified reader or buffer, length delimited.

          Parameter reader

          Reader or buffer to decode from

          Returns

          HttpRule

          Throws

          {Error} If the payload is not a reader or valid buffer

          Throws

          {$protobuf.util.ProtocolError} If required fields are missing

        method encode

        static encode: (
        message: google.api.IHttpRule,
        writer?: $protobuf.Writer
        ) => $protobuf.Writer;
        • Encodes the specified HttpRule message. Does not implicitly verify messages.

          Parameter message

          HttpRule message or plain object to encode

          Parameter writer

          Writer to encode to

          Returns

          Writer

        method encodeDelimited

        static encodeDelimited: (
        message: google.api.IHttpRule,
        writer?: $protobuf.Writer
        ) => $protobuf.Writer;
        • Encodes the specified HttpRule message, length delimited. Does not implicitly verify messages.

          Parameter message

          HttpRule message or plain object to encode

          Parameter writer

          Writer to encode to

          Returns

          Writer

        method fromObject

        static fromObject: (object: { [k: string]: any }) => google.api.HttpRule;
        • Creates a HttpRule message from a plain object. Also converts values to their respective internal types.

          Parameter object

          Plain object

          Returns

          HttpRule

        method toJSON

        toJSON: () => { [k: string]: any };
        • Converts this HttpRule to JSON.

          Returns

          JSON object

        method toObject

        static toObject: (
        message: google.api.HttpRule,
        options?: $protobuf.IConversionOptions
        ) => { [k: string]: any };
        • Creates a plain object from a HttpRule message. Also converts values to other types if specified.

          Parameter message

          HttpRule

          Parameter options

          Conversion options

          Returns

          Plain object

        method verify

        static verify: (message: { [k: string]: any }) => string | null;
        • Verifies a HttpRule message.

          Parameter message

          Plain object to verify

          Returns

          null if valid, otherwise the reason why it is not

        class ResourceDescriptor

        class ResourceDescriptor implements IResourceDescriptor {}
        • Represents a ResourceDescriptor.

        constructor

        constructor(properties?: IResourceDescriptor);
        • Constructs a new ResourceDescriptor.

          Parameter properties

          Properties to set

        property history

        history:
        | ResourceDescriptor.History
        | 'HISTORY_UNSPECIFIED'
        | 'ORIGINALLY_SINGLE_PATTERN'
        | 'FUTURE_MULTI_PATTERN';
        • ResourceDescriptor history.

        property nameField

        nameField: string;
        • ResourceDescriptor nameField.

        property pattern

        pattern: string[];
        • ResourceDescriptor pattern.

        property plural

        plural: string;
        • ResourceDescriptor plural.

        property singular

        singular: string;
        • ResourceDescriptor singular.

        property style

        style: ResourceDescriptor.Style[];
        • ResourceDescriptor style.

        property type

        type: string;
        • ResourceDescriptor type.

        method create

        static create: (
        properties?: google.api.IResourceDescriptor
        ) => google.api.ResourceDescriptor;
        • Creates a new ResourceDescriptor instance using the specified properties.

          Parameter properties

          Properties to set

          Returns

          ResourceDescriptor instance

        method decode

        static decode: (
        reader: $protobuf.Reader | Uint8Array,
        length?: number
        ) => google.api.ResourceDescriptor;
        • Decodes a ResourceDescriptor message from the specified reader or buffer.

          Parameter reader

          Reader or buffer to decode from

          Parameter length

          Message length if known beforehand

          Returns

          ResourceDescriptor

          Throws

          {Error} If the payload is not a reader or valid buffer

          Throws

          {$protobuf.util.ProtocolError} If required fields are missing

        method decodeDelimited

        static decodeDelimited: (
        reader: $protobuf.Reader | Uint8Array
        ) => google.api.ResourceDescriptor;
        • Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.

          Parameter reader

          Reader or buffer to decode from

          Returns

          ResourceDescriptor

          Throws

          {Error} If the payload is not a reader or valid buffer

          Throws

          {$protobuf.util.ProtocolError} If required fields are missing

        method encode

        static encode: (
        message: google.api.IResourceDescriptor,
        writer?: $protobuf.Writer
        ) => $protobuf.Writer;
        • Encodes the specified ResourceDescriptor message. Does not implicitly verify messages.

          Parameter message

          ResourceDescriptor message or plain object to encode

          Parameter writer

          Writer to encode to

          Returns

          Writer

        method encodeDelimited

        static encodeDelimited: (
        message: google.api.IResourceDescriptor,
        writer?: $protobuf.Writer
        ) => $protobuf.Writer;
        • Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly verify messages.

          Parameter message

          ResourceDescriptor message or plain object to encode

          Parameter writer

          Writer to encode to

          Returns

          Writer

        method fromObject

        static fromObject: (object: {
        [k: string]: any;
        }) => google.api.ResourceDescriptor;
        • Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.

          Parameter object

          Plain object

          Returns

          ResourceDescriptor

        method toJSON

        toJSON: () => { [k: string]: any };
        • Converts this ResourceDescriptor to JSON.

          Returns

          JSON object

        method toObject

        static toObject: (
        message: google.api.ResourceDescriptor,
        options?: $protobuf.IConversionOptions
        ) => { [k: string]: any };
        • Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.

          Parameter message

          ResourceDescriptor

          Parameter options

          Conversion options

          Returns

          Plain object

        method verify

        static verify: (message: { [k: string]: any }) => string | null;
        • Verifies a ResourceDescriptor message.

          Parameter message

          Plain object to verify

          Returns

          null if valid, otherwise the reason why it is not

        class ResourceReference

        class ResourceReference implements IResourceReference {}
        • Represents a ResourceReference.

        constructor

        constructor(properties?: IResourceReference);
        • Constructs a new ResourceReference.

          Parameter properties

          Properties to set

        property childType

        childType: string;
        • ResourceReference childType.

        property type

        type: string;
        • ResourceReference type.

        method create

        static create: (
        properties?: google.api.IResourceReference
        ) => google.api.ResourceReference;
        • Creates a new ResourceReference instance using the specified properties.

          Parameter properties

          Properties to set

          Returns

          ResourceReference instance

        method decode

        static decode: (
        reader: $protobuf.Reader | Uint8Array,
        length?: number
        ) => google.api.ResourceReference;
        • Decodes a ResourceReference message from the specified reader or buffer.

          Parameter reader

          Reader or buffer to decode from

          Parameter length

          Message length if known beforehand

          Returns

          ResourceReference

          Throws

          {Error} If the payload is not a reader or valid buffer

          Throws

          {$protobuf.util.ProtocolError} If required fields are missing

        method decodeDelimited

        static decodeDelimited: (
        reader: $protobuf.Reader | Uint8Array
        ) => google.api.ResourceReference;
        • Decodes a ResourceReference message from the specified reader or buffer, length delimited.

          Parameter reader

          Reader or buffer to decode from

          Returns

          ResourceReference

          Throws

          {Error} If the payload is not a reader or valid buffer

          Throws

          {$protobuf.util.ProtocolError} If required fields are missing

        method encode

        static encode: (
        message: google.api.IResourceReference,
        writer?: $protobuf.Writer
        ) => $protobuf.Writer;
        • Encodes the specified ResourceReference message. Does not implicitly verify messages.

          Parameter message

          ResourceReference message or plain object to encode

          Parameter writer

          Writer to encode to

          Returns

          Writer

        method encodeDelimited

        static encodeDelimited: (
        message: google.api.IResourceReference,
        writer?: $protobuf.Writer
        ) => $protobuf.Writer;
        • Encodes the specified ResourceReference message, length delimited. Does not implicitly verify messages.

          Parameter message

          ResourceReference message or plain object to encode

          Parameter writer

          Writer to encode to

          Returns

          Writer

        method fromObject

        static fromObject: (object: {
        [k: string]: any;
        }) => google.api.ResourceReference;
        • Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.

          Parameter object

          Plain object

          Returns

          ResourceReference

        method toJSON

        toJSON: () => { [k: string]: any };
        • Converts this ResourceReference to JSON.

          Returns

          JSON object

        method toObject

        static toObject: (
        message: google.api.ResourceReference,
        options?: $protobuf.IConversionOptions
        ) => { [k: string]: any };
        • Creates a plain object from a ResourceReference message. Also converts values to other types if specified.

          Parameter message

          ResourceReference

          Parameter options

          Conversion options

          Returns

          Plain object

        method verify

        static verify: (message: { [k: string]: any }) => string | null;
        • Verifies a ResourceReference message.

          Parameter message

          Plain object to verify

          Returns

          null if valid, otherwise the reason why it is not

        interface ICustomHttpPattern

        interface ICustomHttpPattern {}
        • Properties of a CustomHttpPattern.

        property kind

        kind?: string | null;
        • CustomHttpPattern kind

        property path

        path?: string | null;
        • CustomHttpPattern path

        interface IHttp

        interface IHttp {}
        • Properties of a Http.

        property fullyDecodeReservedExpansion

        fullyDecodeReservedExpansion?: boolean | null;
        • Http fullyDecodeReservedExpansion

        property rules

        rules?: google.api.IHttpRule[] | null;
        • Http rules

        interface IHttpRule

        interface IHttpRule {}
        • Properties of a HttpRule.

        property "delete"

        delete?: string | null;
        • HttpRule delete

        property additionalBindings

        additionalBindings?: google.api.IHttpRule[] | null;
        • HttpRule additionalBindings

        property body

        body?: string | null;
        • HttpRule body

        property custom

        custom?: google.api.ICustomHttpPattern | null;
        • HttpRule custom

        property get

        get?: string | null;
        • HttpRule get

        property patch

        patch?: string | null;
        • HttpRule patch

        property post

        post?: string | null;
        • HttpRule post

        property put

        put?: string | null;
        • HttpRule put

        property responseBody

        responseBody?: string | null;
        • HttpRule responseBody

        property selector

        selector?: string | null;
        • HttpRule selector

        interface IResourceDescriptor

        interface IResourceDescriptor {}
        • Properties of a ResourceDescriptor.

        property history

        history?:
        | google.api.ResourceDescriptor.History
        | keyof typeof google.api.ResourceDescriptor.History
        | null;
        • ResourceDescriptor history

        property nameField

        nameField?: string | null;
        • ResourceDescriptor nameField

        property pattern

        pattern?: string[] | null;
        • ResourceDescriptor pattern

        property plural

        plural?: string | null;
        • ResourceDescriptor plural

        property singular

        singular?: string | null;
        • ResourceDescriptor singular

        property style

        style?: google.api.ResourceDescriptor.Style[] | null;
        • ResourceDescriptor style

        property type

        type?: string | null;
        • ResourceDescriptor type

        interface IResourceReference

        interface IResourceReference {}
        • Properties of a ResourceReference.

        property childType

        childType?: string | null;
        • ResourceReference childType

        property type

        type?: string | null;
        • ResourceReference type

        enum FieldBehavior

        enum FieldBehavior {
        FIELD_BEHAVIOR_UNSPECIFIED = 0,
        OPTIONAL = 1,
        REQUIRED = 2,
        OUTPUT_ONLY = 3,
        INPUT_ONLY = 4,
        IMMUTABLE = 5,
        UNORDERED_LIST = 6,
        NON_EMPTY_DEFAULT = 7,
        }
        • FieldBehavior enum.

        member FIELD_BEHAVIOR_UNSPECIFIED

        FIELD_BEHAVIOR_UNSPECIFIED = 0

          member IMMUTABLE

          IMMUTABLE = 5

            member INPUT_ONLY

            INPUT_ONLY = 4

              member NON_EMPTY_DEFAULT

              NON_EMPTY_DEFAULT = 7

                member OPTIONAL

                OPTIONAL = 1

                  member OUTPUT_ONLY

                  OUTPUT_ONLY = 3

                    member REQUIRED

                    REQUIRED = 2

                      member UNORDERED_LIST

                      UNORDERED_LIST = 6

                        namespace protos.google.api.ResourceDescriptor

                        namespace protos.google.api.ResourceDescriptor {}

                          enum History

                          enum History {
                          HISTORY_UNSPECIFIED = 0,
                          ORIGINALLY_SINGLE_PATTERN = 1,
                          FUTURE_MULTI_PATTERN = 2,
                          }
                          • History enum.

                          member FUTURE_MULTI_PATTERN

                          FUTURE_MULTI_PATTERN = 2

                            member HISTORY_UNSPECIFIED

                            HISTORY_UNSPECIFIED = 0

                              member ORIGINALLY_SINGLE_PATTERN

                              ORIGINALLY_SINGLE_PATTERN = 1

                                enum Style

                                enum Style {
                                STYLE_UNSPECIFIED = 0,
                                DECLARATIVE_FRIENDLY = 1,
                                }
                                • Style enum.

                                member DECLARATIVE_FRIENDLY

                                DECLARATIVE_FRIENDLY = 1

                                  member STYLE_UNSPECIFIED

                                  STYLE_UNSPECIFIED = 0

                                    namespace protos.google.cloud

                                    namespace protos.google.cloud {}
                                    • Namespace cloud.

                                    namespace protos.google.cloud.speech

                                    namespace protos.google.cloud.speech {}
                                    • Namespace speech.

                                    namespace protos.google.cloud.speech.v1

                                    namespace protos.google.cloud.speech.v1 {}
                                    • Namespace v1.

                                    class CustomClass

                                    class CustomClass implements ICustomClass {}
                                    • Represents a CustomClass.

                                    constructor

                                    constructor(properties?: ICustomClass);
                                    • Constructs a new CustomClass.

                                      Parameter properties

                                      Properties to set

                                    property customClassId

                                    customClassId: string;
                                    • CustomClass customClassId.

                                    property items

                                    items: CustomClass.IClassItem[];
                                    • CustomClass items.

                                    property name

                                    name: string;
                                    • CustomClass name.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.ICustomClass
                                    ) => google.cloud.speech.v1.CustomClass;
                                    • Creates a new CustomClass instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      CustomClass instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.CustomClass;
                                    • Decodes a CustomClass message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      CustomClass

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.CustomClass;
                                    • Decodes a CustomClass message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      CustomClass

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.ICustomClass,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified CustomClass message. Does not implicitly verify messages.

                                      Parameter message

                                      CustomClass message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method encodeDelimited

                                    static encodeDelimited: (
                                    message: google.cloud.speech.v1.ICustomClass,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified CustomClass message, length delimited. Does not implicitly verify messages.

                                      Parameter message

                                      CustomClass message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method fromObject

                                    static fromObject: (object: {
                                    [k: string]: any;
                                    }) => google.cloud.speech.v1.CustomClass;
                                    • Creates a CustomClass message from a plain object. Also converts values to their respective internal types.

                                      Parameter object

                                      Plain object

                                      Returns

                                      CustomClass

                                    method toJSON

                                    toJSON: () => { [k: string]: any };
                                    • Converts this CustomClass to JSON.

                                      Returns

                                      JSON object

                                    method toObject

                                    static toObject: (
                                    message: google.cloud.speech.v1.CustomClass,
                                    options?: $protobuf.IConversionOptions
                                    ) => { [k: string]: any };
                                    • Creates a plain object from a CustomClass message. Also converts values to other types if specified.

                                      Parameter message

                                      CustomClass

                                      Parameter options

                                      Conversion options

                                      Returns

                                      Plain object

                                    method verify

                                    static verify: (message: { [k: string]: any }) => string | null;
                                    • Verifies a CustomClass message.

                                      Parameter message

                                      Plain object to verify

                                      Returns

                                      null if valid, otherwise the reason why it is not

                                    class LongRunningRecognizeMetadata

                                    class LongRunningRecognizeMetadata implements ILongRunningRecognizeMetadata {}
                                    • Represents a LongRunningRecognizeMetadata.

                                    constructor

                                    constructor(properties?: ILongRunningRecognizeMetadata);
                                    • Constructs a new LongRunningRecognizeMetadata.

                                      Parameter properties

                                      Properties to set

                                    property lastUpdateTime

                                    lastUpdateTime?: protobuf.ITimestamp;
                                    • LongRunningRecognizeMetadata lastUpdateTime.

                                    property progressPercent

                                    progressPercent: number;
                                    • LongRunningRecognizeMetadata progressPercent.

                                    property startTime

                                    startTime?: protobuf.ITimestamp;
                                    • LongRunningRecognizeMetadata startTime.

                                    property uri

                                    uri: string;
                                    • LongRunningRecognizeMetadata uri.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.ILongRunningRecognizeMetadata
                                    ) => google.cloud.speech.v1.LongRunningRecognizeMetadata;
                                    • Creates a new LongRunningRecognizeMetadata instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      LongRunningRecognizeMetadata instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.LongRunningRecognizeMetadata;
                                    • Decodes a LongRunningRecognizeMetadata message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      LongRunningRecognizeMetadata

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.LongRunningRecognizeMetadata;
                                    • Decodes a LongRunningRecognizeMetadata message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      LongRunningRecognizeMetadata

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.ILongRunningRecognizeMetadata,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified LongRunningRecognizeMetadata message. Does not implicitly verify messages.

                                      Parameter message

                                      LongRunningRecognizeMetadata message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method encodeDelimited

                                    static encodeDelimited: (
                                    message: google.cloud.speech.v1.ILongRunningRecognizeMetadata,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified LongRunningRecognizeMetadata message, length delimited. Does not implicitly verify messages.

                                      Parameter message

                                      LongRunningRecognizeMetadata message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method fromObject

                                    static fromObject: (object: {
                                    [k: string]: any;
                                    }) => google.cloud.speech.v1.LongRunningRecognizeMetadata;
                                    • Creates a LongRunningRecognizeMetadata message from a plain object. Also converts values to their respective internal types.

                                      Parameter object

                                      Plain object

                                      Returns

                                      LongRunningRecognizeMetadata

                                    method toJSON

                                    toJSON: () => { [k: string]: any };
                                    • Converts this LongRunningRecognizeMetadata to JSON.

                                      Returns

                                      JSON object

                                    method toObject

                                    static toObject: (
                                    message: google.cloud.speech.v1.LongRunningRecognizeMetadata,
                                    options?: $protobuf.IConversionOptions
                                    ) => { [k: string]: any };
                                    • Creates a plain object from a LongRunningRecognizeMetadata message. Also converts values to other types if specified.

                                      Parameter message

                                      LongRunningRecognizeMetadata

                                      Parameter options

                                      Conversion options

                                      Returns

                                      Plain object

                                    method verify

                                    static verify: (message: { [k: string]: any }) => string | null;
                                    • Verifies a LongRunningRecognizeMetadata message.

                                      Parameter message

                                      Plain object to verify

                                      Returns

                                      null if valid, otherwise the reason why it is not

                                    class LongRunningRecognizeRequest

                                    class LongRunningRecognizeRequest implements ILongRunningRecognizeRequest {}
                                    • Represents a LongRunningRecognizeRequest.

                                    constructor

                                    constructor(properties?: ILongRunningRecognizeRequest);
                                    • Constructs a new LongRunningRecognizeRequest.

                                      Parameter properties

                                      Properties to set

                                    property audio

                                    audio?: IRecognitionAudio;
                                    • LongRunningRecognizeRequest audio.

                                    property config

                                    config?: IRecognitionConfig;
                                    • LongRunningRecognizeRequest config.

                                    property outputConfig

                                    outputConfig?: ITranscriptOutputConfig;
                                    • LongRunningRecognizeRequest outputConfig.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.ILongRunningRecognizeRequest
                                    ) => google.cloud.speech.v1.LongRunningRecognizeRequest;
                                    • Creates a new LongRunningRecognizeRequest instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      LongRunningRecognizeRequest instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.LongRunningRecognizeRequest;
                                    • Decodes a LongRunningRecognizeRequest message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      LongRunningRecognizeRequest

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.LongRunningRecognizeRequest;
                                    • Decodes a LongRunningRecognizeRequest message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      LongRunningRecognizeRequest

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.ILongRunningRecognizeRequest,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified LongRunningRecognizeRequest message. Does not implicitly verify messages.

                                      Parameter message

                                      LongRunningRecognizeRequest message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method encodeDelimited

                                    static encodeDelimited: (
                                    message: google.cloud.speech.v1.ILongRunningRecognizeRequest,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified LongRunningRecognizeRequest message, length delimited. Does not implicitly verify messages.

                                      Parameter message

                                      LongRunningRecognizeRequest message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method fromObject

                                    static fromObject: (object: {
                                    [k: string]: any;
                                    }) => google.cloud.speech.v1.LongRunningRecognizeRequest;
                                    • Creates a LongRunningRecognizeRequest message from a plain object. Also converts values to their respective internal types.

                                      Parameter object

                                      Plain object

                                      Returns

                                      LongRunningRecognizeRequest

                                    method toJSON

                                    toJSON: () => { [k: string]: any };
                                    • Converts this LongRunningRecognizeRequest to JSON.

                                      Returns

                                      JSON object

                                    method toObject

                                    static toObject: (
                                    message: google.cloud.speech.v1.LongRunningRecognizeRequest,
                                    options?: $protobuf.IConversionOptions
                                    ) => { [k: string]: any };
                                    • Creates a plain object from a LongRunningRecognizeRequest message. Also converts values to other types if specified.

                                      Parameter message

                                      LongRunningRecognizeRequest

                                      Parameter options

                                      Conversion options

                                      Returns

                                      Plain object

                                    method verify

                                    static verify: (message: { [k: string]: any }) => string | null;
                                    • Verifies a LongRunningRecognizeRequest message.

                                      Parameter message

                                      Plain object to verify

                                      Returns

                                      null if valid, otherwise the reason why it is not

                                    class LongRunningRecognizeResponse

                                    class LongRunningRecognizeResponse implements ILongRunningRecognizeResponse {}
                                    • Represents a LongRunningRecognizeResponse.

                                    constructor

                                    constructor(properties?: ILongRunningRecognizeResponse);
                                    • Constructs a new LongRunningRecognizeResponse.

                                      Parameter properties

                                      Properties to set

                                    property outputConfig

                                    outputConfig?: ITranscriptOutputConfig;
                                    • LongRunningRecognizeResponse outputConfig.

                                    property outputError

                                    outputError?: rpc.IStatus;
                                    • LongRunningRecognizeResponse outputError.

                                    property results

                                    results: ISpeechRecognitionResult[];
                                    • LongRunningRecognizeResponse results.

                                    property totalBilledTime

                                    totalBilledTime?: protobuf.IDuration;
                                    • LongRunningRecognizeResponse totalBilledTime.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.ILongRunningRecognizeResponse
                                    ) => google.cloud.speech.v1.LongRunningRecognizeResponse;
                                    • Creates a new LongRunningRecognizeResponse instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      LongRunningRecognizeResponse instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.LongRunningRecognizeResponse;
                                    • Decodes a LongRunningRecognizeResponse message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      LongRunningRecognizeResponse

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.LongRunningRecognizeResponse;
                                    • Decodes a LongRunningRecognizeResponse message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      LongRunningRecognizeResponse

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.ILongRunningRecognizeResponse,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified LongRunningRecognizeResponse message. Does not implicitly verify messages.

                                      Parameter message

                                      LongRunningRecognizeResponse message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method encodeDelimited

                                    static encodeDelimited: (
                                    message: google.cloud.speech.v1.ILongRunningRecognizeResponse,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified LongRunningRecognizeResponse message, length delimited. Does not implicitly verify messages.

                                      Parameter message

                                      LongRunningRecognizeResponse message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method fromObject

                                    static fromObject: (object: {
                                    [k: string]: any;
                                    }) => google.cloud.speech.v1.LongRunningRecognizeResponse;
                                    • Creates a LongRunningRecognizeResponse message from a plain object. Also converts values to their respective internal types.

                                      Parameter object

                                      Plain object

                                      Returns

                                      LongRunningRecognizeResponse

                                    method toJSON

                                    toJSON: () => { [k: string]: any };
                                    • Converts this LongRunningRecognizeResponse to JSON.

                                      Returns

                                      JSON object

                                    method toObject

                                    static toObject: (
                                    message: google.cloud.speech.v1.LongRunningRecognizeResponse,
                                    options?: $protobuf.IConversionOptions
                                    ) => { [k: string]: any };
                                    • Creates a plain object from a LongRunningRecognizeResponse message. Also converts values to other types if specified.

                                      Parameter message

                                      LongRunningRecognizeResponse

                                      Parameter options

                                      Conversion options

                                      Returns

                                      Plain object

                                    method verify

                                    static verify: (message: { [k: string]: any }) => string | null;
                                    • Verifies a LongRunningRecognizeResponse message.

                                      Parameter message

                                      Plain object to verify

                                      Returns

                                      null if valid, otherwise the reason why it is not

                                    class PhraseSet

                                    class PhraseSet implements IPhraseSet {}
                                    • Represents a PhraseSet.

                                    constructor

                                    constructor(properties?: IPhraseSet);
                                    • Constructs a new PhraseSet.

                                      Parameter properties

                                      Properties to set

                                    property boost

                                    boost: number;
                                    • PhraseSet boost.

                                    property name

                                    name: string;
                                    • PhraseSet name.

                                    property phrases

                                    phrases: PhraseSet.IPhrase[];
                                    • PhraseSet phrases.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.IPhraseSet
                                    ) => google.cloud.speech.v1.PhraseSet;
                                    • Creates a new PhraseSet instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      PhraseSet instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.PhraseSet;
                                    • Decodes a PhraseSet message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      PhraseSet

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.PhraseSet;
                                    • Decodes a PhraseSet message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      PhraseSet

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.IPhraseSet,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified PhraseSet message. Does not implicitly verify messages.

                                      Parameter message

                                      PhraseSet message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method encodeDelimited

                                    static encodeDelimited: (
                                    message: google.cloud.speech.v1.IPhraseSet,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified PhraseSet message, length delimited. Does not implicitly verify messages.

                                      Parameter message

                                      PhraseSet message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method fromObject

                                    static fromObject: (object: {
                                    [k: string]: any;
                                    }) => google.cloud.speech.v1.PhraseSet;
                                    • Creates a PhraseSet message from a plain object. Also converts values to their respective internal types.

                                      Parameter object

                                      Plain object

                                      Returns

                                      PhraseSet

                                    method toJSON

                                    toJSON: () => { [k: string]: any };
                                    • Converts this PhraseSet to JSON.

                                      Returns

                                      JSON object

                                    method toObject

                                    static toObject: (
                                    message: google.cloud.speech.v1.PhraseSet,
                                    options?: $protobuf.IConversionOptions
                                    ) => { [k: string]: any };
                                    • Creates a plain object from a PhraseSet message. Also converts values to other types if specified.

                                      Parameter message

                                      PhraseSet

                                      Parameter options

                                      Conversion options

                                      Returns

                                      Plain object

                                    method verify

                                    static verify: (message: { [k: string]: any }) => string | null;
                                    • Verifies a PhraseSet message.

                                      Parameter message

                                      Plain object to verify

                                      Returns

                                      null if valid, otherwise the reason why it is not

                                    class RecognitionAudio

                                    class RecognitionAudio implements IRecognitionAudio {}
                                    • Represents a RecognitionAudio.

                                    constructor

                                    constructor(properties?: IRecognitionAudio);
                                    • Constructs a new RecognitionAudio.

                                      Parameter properties

                                      Properties to set

                                    property audioSource

                                    audioSource?: 'content' | 'uri';
                                    • RecognitionAudio audioSource.

                                    property content

                                    content?: string | Uint8Array;
                                    • RecognitionAudio content.

                                    property uri

                                    uri?: string;
                                    • RecognitionAudio uri.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.IRecognitionAudio
                                    ) => google.cloud.speech.v1.RecognitionAudio;
                                    • Creates a new RecognitionAudio instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      RecognitionAudio instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.RecognitionAudio;
                                    • Decodes a RecognitionAudio message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      RecognitionAudio

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.RecognitionAudio;
                                    • Decodes a RecognitionAudio message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      RecognitionAudio

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.IRecognitionAudio,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified RecognitionAudio message. Does not implicitly verify messages.

                                      Parameter message

                                      RecognitionAudio message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method encodeDelimited

                                    static encodeDelimited: (
                                    message: google.cloud.speech.v1.IRecognitionAudio,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified RecognitionAudio message, length delimited. Does not implicitly verify messages.

                                      Parameter message

                                      RecognitionAudio message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method fromObject

                                    static fromObject: (object: {
                                    [k: string]: any;
                                    }) => google.cloud.speech.v1.RecognitionAudio;
                                    • Creates a RecognitionAudio message from a plain object. Also converts values to their respective internal types.

                                      Parameter object

                                      Plain object

                                      Returns

                                      RecognitionAudio

                                    method toJSON

                                    toJSON: () => { [k: string]: any };
                                    • Converts this RecognitionAudio to JSON.

                                      Returns

                                      JSON object

                                    method toObject

                                    static toObject: (
                                    message: google.cloud.speech.v1.RecognitionAudio,
                                    options?: $protobuf.IConversionOptions
                                    ) => { [k: string]: any };
                                    • Creates a plain object from a RecognitionAudio message. Also converts values to other types if specified.

                                      Parameter message

                                      RecognitionAudio

                                      Parameter options

                                      Conversion options

                                      Returns

                                      Plain object

                                    method verify

                                    static verify: (message: { [k: string]: any }) => string | null;
                                    • Verifies a RecognitionAudio message.

                                      Parameter message

                                      Plain object to verify

                                      Returns

                                      null if valid, otherwise the reason why it is not

                                    class RecognitionConfig

                                    class RecognitionConfig implements IRecognitionConfig {}
                                    • Represents a RecognitionConfig.

                                    constructor

                                    constructor(properties?: IRecognitionConfig);
                                    • Constructs a new RecognitionConfig.

                                      Parameter properties

                                      Properties to set

                                    property adaptation

                                    adaptation?: ISpeechAdaptation;
                                    • RecognitionConfig adaptation.

                                    property alternativeLanguageCodes

                                    alternativeLanguageCodes: string[];
                                    • RecognitionConfig alternativeLanguageCodes.

                                    property audioChannelCount

                                    audioChannelCount: number;
                                    • RecognitionConfig audioChannelCount.

                                    property diarizationConfig

                                    diarizationConfig?: ISpeakerDiarizationConfig;
                                    • RecognitionConfig diarizationConfig.

                                    property enableAutomaticPunctuation

                                    enableAutomaticPunctuation: boolean;
                                    • RecognitionConfig enableAutomaticPunctuation.

                                    property enableSeparateRecognitionPerChannel

                                    enableSeparateRecognitionPerChannel: boolean;
                                    • RecognitionConfig enableSeparateRecognitionPerChannel.

                                    property enableSpokenEmojis

                                    enableSpokenEmojis?: protobuf.IBoolValue;
                                    • RecognitionConfig enableSpokenEmojis.

                                    property enableSpokenPunctuation

                                    enableSpokenPunctuation?: protobuf.IBoolValue;
                                    • RecognitionConfig enableSpokenPunctuation.

                                    property enableWordConfidence

                                    enableWordConfidence: boolean;
                                    • RecognitionConfig enableWordConfidence.

                                    property enableWordTimeOffsets

                                    enableWordTimeOffsets: boolean;
                                    • RecognitionConfig enableWordTimeOffsets.

                                    property encoding

                                    encoding:
                                    | RecognitionConfig.AudioEncoding
                                    | 'ENCODING_UNSPECIFIED'
                                    | 'LINEAR16'
                                    | 'FLAC'
                                    | 'MULAW'
                                    | 'AMR'
                                    | 'AMR_WB'
                                    | 'OGG_OPUS'
                                    | 'SPEEX_WITH_HEADER_BYTE'
                                    | 'WEBM_OPUS';
                                    • RecognitionConfig encoding.

                                    property languageCode

                                    languageCode: string;
                                    • RecognitionConfig languageCode.

                                    property maxAlternatives

                                    maxAlternatives: number;
                                    • RecognitionConfig maxAlternatives.

                                    property metadata

                                    metadata?: IRecognitionMetadata;
                                    • RecognitionConfig metadata.

                                    property model

                                    model: string;
                                    • RecognitionConfig model.

                                    property profanityFilter

                                    profanityFilter: boolean;
                                    • RecognitionConfig profanityFilter.

                                    property sampleRateHertz

                                    sampleRateHertz: number;
                                    • RecognitionConfig sampleRateHertz.

                                    property speechContexts

                                    speechContexts: ISpeechContext[];
                                    • RecognitionConfig speechContexts.

                                    property useEnhanced

                                    useEnhanced: boolean;
                                    • RecognitionConfig useEnhanced.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.IRecognitionConfig
                                    ) => google.cloud.speech.v1.RecognitionConfig;
                                    • Creates a new RecognitionConfig instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      RecognitionConfig instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.RecognitionConfig;
                                    • Decodes a RecognitionConfig message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      RecognitionConfig

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.RecognitionConfig;
                                    • Decodes a RecognitionConfig message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      RecognitionConfig

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.IRecognitionConfig,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified RecognitionConfig message. Does not implicitly verify messages.

                                      Parameter message

                                      RecognitionConfig message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method encodeDelimited

                                    static encodeDelimited: (
                                    message: google.cloud.speech.v1.IRecognitionConfig,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified RecognitionConfig message, length delimited. Does not implicitly verify messages.

                                      Parameter message

                                      RecognitionConfig message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method fromObject

                                    static fromObject: (object: {
                                    [k: string]: any;
                                    }) => google.cloud.speech.v1.RecognitionConfig;
                                    • Creates a RecognitionConfig message from a plain object. Also converts values to their respective internal types.

                                      Parameter object

                                      Plain object

                                      Returns

                                      RecognitionConfig

                                    method toJSON

                                    toJSON: () => { [k: string]: any };
                                    • Converts this RecognitionConfig to JSON.

                                      Returns

                                      JSON object

                                    method toObject

                                    static toObject: (
                                    message: google.cloud.speech.v1.RecognitionConfig,
                                    options?: $protobuf.IConversionOptions
                                    ) => { [k: string]: any };
                                    • Creates a plain object from a RecognitionConfig message. Also converts values to other types if specified.

                                      Parameter message

                                      RecognitionConfig

                                      Parameter options

                                      Conversion options

                                      Returns

                                      Plain object

                                    method verify

                                    static verify: (message: { [k: string]: any }) => string | null;
                                    • Verifies a RecognitionConfig message.

                                      Parameter message

                                      Plain object to verify

                                      Returns

                                      null if valid, otherwise the reason why it is not

                                    class RecognitionMetadata

                                    class RecognitionMetadata implements IRecognitionMetadata {}
                                    • Represents a RecognitionMetadata.

                                    constructor

                                    constructor(properties?: IRecognitionMetadata);
                                    • Constructs a new RecognitionMetadata.

                                      Parameter properties

                                      Properties to set

                                    property audioTopic

                                    audioTopic: string;
                                    • RecognitionMetadata audioTopic.

                                    property industryNaicsCodeOfAudio

                                    industryNaicsCodeOfAudio: number;
                                    • RecognitionMetadata industryNaicsCodeOfAudio.

                                    property interactionType

                                    interactionType:
                                    | RecognitionMetadata.InteractionType
                                    | 'INTERACTION_TYPE_UNSPECIFIED'
                                    | 'DISCUSSION'
                                    | 'PRESENTATION'
                                    | 'PHONE_CALL'
                                    | 'VOICEMAIL'
                                    | 'PROFESSIONALLY_PRODUCED'
                                    | 'VOICE_SEARCH'
                                    | 'VOICE_COMMAND'
                                    | 'DICTATION';
                                    • RecognitionMetadata interactionType.

                                    property microphoneDistance

                                    microphoneDistance:
                                    | RecognitionMetadata.MicrophoneDistance
                                    | 'MICROPHONE_DISTANCE_UNSPECIFIED'
                                    | 'NEARFIELD'
                                    | 'MIDFIELD'
                                    | 'FARFIELD';
                                    • RecognitionMetadata microphoneDistance.

                                    property originalMediaType

                                    originalMediaType:
                                    | RecognitionMetadata.OriginalMediaType
                                    | 'ORIGINAL_MEDIA_TYPE_UNSPECIFIED'
                                    | 'AUDIO'
                                    | 'VIDEO';
                                    • RecognitionMetadata originalMediaType.

                                    property originalMimeType

                                    originalMimeType: string;
                                    • RecognitionMetadata originalMimeType.

                                    property recordingDeviceName

                                    recordingDeviceName: string;
                                    • RecognitionMetadata recordingDeviceName.

                                    property recordingDeviceType

                                    recordingDeviceType:
                                    | RecognitionMetadata.RecordingDeviceType
                                    | 'RECORDING_DEVICE_TYPE_UNSPECIFIED'
                                    | 'SMARTPHONE'
                                    | 'PC'
                                    | 'PHONE_LINE'
                                    | 'VEHICLE'
                                    | 'OTHER_OUTDOOR_DEVICE'
                                    | 'OTHER_INDOOR_DEVICE';
                                    • RecognitionMetadata recordingDeviceType.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.IRecognitionMetadata
                                    ) => google.cloud.speech.v1.RecognitionMetadata;
                                    • Creates a new RecognitionMetadata instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      RecognitionMetadata instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.RecognitionMetadata;
                                    • Decodes a RecognitionMetadata message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      RecognitionMetadata

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.RecognitionMetadata;
                                    • Decodes a RecognitionMetadata message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      RecognitionMetadata

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.IRecognitionMetadata,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified RecognitionMetadata message. Does not implicitly verify messages.

                                      Parameter message

                                      RecognitionMetadata message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method encodeDelimited

                                    static encodeDelimited: (
                                    message: google.cloud.speech.v1.IRecognitionMetadata,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified RecognitionMetadata message, length delimited. Does not implicitly verify messages.

                                      Parameter message

                                      RecognitionMetadata message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method fromObject

                                    static fromObject: (object: {
                                    [k: string]: any;
                                    }) => google.cloud.speech.v1.RecognitionMetadata;
                                    • Creates a RecognitionMetadata message from a plain object. Also converts values to their respective internal types.

                                      Parameter object

                                      Plain object

                                      Returns

                                      RecognitionMetadata

                                    method toJSON

                                    toJSON: () => { [k: string]: any };
                                    • Converts this RecognitionMetadata to JSON.

                                      Returns

                                      JSON object

                                    method toObject

                                    static toObject: (
                                    message: google.cloud.speech.v1.RecognitionMetadata,
                                    options?: $protobuf.IConversionOptions
                                    ) => { [k: string]: any };
                                    • Creates a plain object from a RecognitionMetadata message. Also converts values to other types if specified.

                                      Parameter message

                                      RecognitionMetadata

                                      Parameter options

                                      Conversion options

                                      Returns

                                      Plain object

                                    method verify

                                    static verify: (message: { [k: string]: any }) => string | null;
                                    • Verifies a RecognitionMetadata message.

                                      Parameter message

                                      Plain object to verify

                                      Returns

                                      null if valid, otherwise the reason why it is not

                                    class RecognizeRequest

                                    class RecognizeRequest implements IRecognizeRequest {}
                                    • Represents a RecognizeRequest.

                                    constructor

                                    constructor(properties?: IRecognizeRequest);
                                    • Constructs a new RecognizeRequest.

                                      Parameter properties

                                      Properties to set

                                    property audio

                                    audio?: IRecognitionAudio;
                                    • RecognizeRequest audio.

                                    property config

                                    config?: IRecognitionConfig;
                                    • RecognizeRequest config.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.IRecognizeRequest
                                    ) => google.cloud.speech.v1.RecognizeRequest;
                                    • Creates a new RecognizeRequest instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      RecognizeRequest instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.RecognizeRequest;
                                    • Decodes a RecognizeRequest message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      RecognizeRequest

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.RecognizeRequest;
                                    • Decodes a RecognizeRequest message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      RecognizeRequest

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.IRecognizeRequest,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified RecognizeRequest message. Does not implicitly verify messages.

                                      Parameter message

                                      RecognizeRequest message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method encodeDelimited

                                    static encodeDelimited: (
                                    message: google.cloud.speech.v1.IRecognizeRequest,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified RecognizeRequest message, length delimited. Does not implicitly verify messages.

                                      Parameter message

                                      RecognizeRequest message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method fromObject

                                    static fromObject: (object: {
                                    [k: string]: any;
                                    }) => google.cloud.speech.v1.RecognizeRequest;
                                    • Creates a RecognizeRequest message from a plain object. Also converts values to their respective internal types.

                                      Parameter object

                                      Plain object

                                      Returns

                                      RecognizeRequest

                                    method toJSON

                                    toJSON: () => { [k: string]: any };
                                    • Converts this RecognizeRequest to JSON.

                                      Returns

                                      JSON object

                                    method toObject

                                    static toObject: (
                                    message: google.cloud.speech.v1.RecognizeRequest,
                                    options?: $protobuf.IConversionOptions
                                    ) => { [k: string]: any };
                                    • Creates a plain object from a RecognizeRequest message. Also converts values to other types if specified.

                                      Parameter message

                                      RecognizeRequest

                                      Parameter options

                                      Conversion options

                                      Returns

                                      Plain object

                                    method verify

                                    static verify: (message: { [k: string]: any }) => string | null;
                                    • Verifies a RecognizeRequest message.

                                      Parameter message

                                      Plain object to verify

                                      Returns

                                      null if valid, otherwise the reason why it is not

                                    class RecognizeResponse

                                    class RecognizeResponse implements IRecognizeResponse {}
                                    • Represents a RecognizeResponse.

                                    constructor

                                    constructor(properties?: IRecognizeResponse);
                                    • Constructs a new RecognizeResponse.

                                      Parameter properties

                                      Properties to set

                                    property results

                                    results: ISpeechRecognitionResult[];
                                    • RecognizeResponse results.

                                    property totalBilledTime

                                    totalBilledTime?: protobuf.IDuration;
                                    • RecognizeResponse totalBilledTime.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.IRecognizeResponse
                                    ) => google.cloud.speech.v1.RecognizeResponse;
                                    • Creates a new RecognizeResponse instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      RecognizeResponse instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.RecognizeResponse;
                                    • Decodes a RecognizeResponse message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      RecognizeResponse

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.RecognizeResponse;
                                    • Decodes a RecognizeResponse message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      RecognizeResponse

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.IRecognizeResponse,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified RecognizeResponse message. Does not implicitly verify messages.

                                      Parameter message

                                      RecognizeResponse message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method encodeDelimited

                                    static encodeDelimited: (
                                    message: google.cloud.speech.v1.IRecognizeResponse,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified RecognizeResponse message, length delimited. Does not implicitly verify messages.

                                      Parameter message

                                      RecognizeResponse message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method fromObject

                                    static fromObject: (object: {
                                    [k: string]: any;
                                    }) => google.cloud.speech.v1.RecognizeResponse;
                                    • Creates a RecognizeResponse message from a plain object. Also converts values to their respective internal types.

                                      Parameter object

                                      Plain object

                                      Returns

                                      RecognizeResponse

                                    method toJSON

                                    toJSON: () => { [k: string]: any };
                                    • Converts this RecognizeResponse to JSON.

                                      Returns

                                      JSON object

                                    method toObject

                                    static toObject: (
                                    message: google.cloud.speech.v1.RecognizeResponse,
                                    options?: $protobuf.IConversionOptions
                                    ) => { [k: string]: any };
                                    • Creates a plain object from a RecognizeResponse message. Also converts values to other types if specified.

                                      Parameter message

                                      RecognizeResponse

                                      Parameter options

                                      Conversion options

                                      Returns

                                      Plain object

                                    method verify

                                    static verify: (message: { [k: string]: any }) => string | null;
                                    • Verifies a RecognizeResponse message.

                                      Parameter message

                                      Plain object to verify

                                      Returns

                                      null if valid, otherwise the reason why it is not

                                    class SpeakerDiarizationConfig

                                    class SpeakerDiarizationConfig implements ISpeakerDiarizationConfig {}
                                    • Represents a SpeakerDiarizationConfig.

                                    constructor

                                    constructor(properties?: ISpeakerDiarizationConfig);
                                    • Constructs a new SpeakerDiarizationConfig.

                                      Parameter properties

                                      Properties to set

                                    property enableSpeakerDiarization

                                    enableSpeakerDiarization: boolean;
                                    • SpeakerDiarizationConfig enableSpeakerDiarization.

                                    property maxSpeakerCount

                                    maxSpeakerCount: number;
                                    • SpeakerDiarizationConfig maxSpeakerCount.

                                    property minSpeakerCount

                                    minSpeakerCount: number;
                                    • SpeakerDiarizationConfig minSpeakerCount.

                                    property speakerTag

                                    speakerTag: number;
                                    • SpeakerDiarizationConfig speakerTag.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.ISpeakerDiarizationConfig
                                    ) => google.cloud.speech.v1.SpeakerDiarizationConfig;
                                    • Creates a new SpeakerDiarizationConfig instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      SpeakerDiarizationConfig instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.SpeakerDiarizationConfig;
                                    • Decodes a SpeakerDiarizationConfig message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      SpeakerDiarizationConfig

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.SpeakerDiarizationConfig;
                                    • Decodes a SpeakerDiarizationConfig message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      SpeakerDiarizationConfig

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.ISpeakerDiarizationConfig,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified SpeakerDiarizationConfig message. Does not implicitly verify messages.

                                      Parameter message

                                      SpeakerDiarizationConfig message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method encodeDelimited

                                    static encodeDelimited: (
                                    message: google.cloud.speech.v1.ISpeakerDiarizationConfig,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified SpeakerDiarizationConfig message, length delimited. Does not implicitly verify messages.

                                      Parameter message

                                      SpeakerDiarizationConfig message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method fromObject

                                    static fromObject: (object: {
                                    [k: string]: any;
                                    }) => google.cloud.speech.v1.SpeakerDiarizationConfig;
                                    • Creates a SpeakerDiarizationConfig message from a plain object. Also converts values to their respective internal types.

                                      Parameter object

                                      Plain object

                                      Returns

                                      SpeakerDiarizationConfig

                                    method toJSON

                                    toJSON: () => { [k: string]: any };
                                    • Converts this SpeakerDiarizationConfig to JSON.

                                      Returns

                                      JSON object

                                    method toObject

                                    static toObject: (
                                    message: google.cloud.speech.v1.SpeakerDiarizationConfig,
                                    options?: $protobuf.IConversionOptions
                                    ) => { [k: string]: any };
                                    • Creates a plain object from a SpeakerDiarizationConfig message. Also converts values to other types if specified.

                                      Parameter message

                                      SpeakerDiarizationConfig

                                      Parameter options

                                      Conversion options

                                      Returns

                                      Plain object

                                    method verify

                                    static verify: (message: { [k: string]: any }) => string | null;
                                    • Verifies a SpeakerDiarizationConfig message.

                                      Parameter message

                                      Plain object to verify

                                      Returns

                                      null if valid, otherwise the reason why it is not

                                    class Speech

                                    class Speech extends $protobuf.rpc.Service {}
                                    • Represents a Speech

                                    constructor

                                    constructor(
                                    rpcImpl: $protobuf.RPCImpl,
                                    requestDelimited?: boolean,
                                    responseDelimited?: boolean
                                    );
                                    • Constructs a new Speech service.

                                      Parameter rpcImpl

                                      RPC implementation

                                      Parameter requestDelimited

                                      Whether requests are length-delimited

                                      Parameter responseDelimited

                                      Whether responses are length-delimited

                                    method create

                                    static create: (
                                    rpcImpl: $protobuf.RPCImpl,
                                    requestDelimited?: boolean,
                                    responseDelimited?: boolean
                                    ) => Speech;
                                    • Creates new Speech service using the specified rpc implementation.

                                      Parameter rpcImpl

                                      RPC implementation

                                      Parameter requestDelimited

                                      Whether requests are length-delimited

                                      Parameter responseDelimited

                                      Whether responses are length-delimited

                                      Returns

                                      RPC service. Useful where requests and/or responses are streamed.

                                    method longRunningRecognize

                                    longRunningRecognize: {
                                    (
                                    request: google.cloud.speech.v1.ILongRunningRecognizeRequest,
                                    callback: google.cloud.speech.v1.Speech.LongRunningRecognizeCallback
                                    ): void;
                                    (request: ILongRunningRecognizeRequest): Promise<longrunning.Operation>;
                                    };
                                    • Calls LongRunningRecognize.

                                      Parameter request

                                      LongRunningRecognizeRequest message or plain object

                                      Parameter callback

                                      Node-style callback called with the error, if any, and Operation

                                    • Calls LongRunningRecognize.

                                      Parameter request

                                      LongRunningRecognizeRequest message or plain object

                                      Returns

                                      Promise

                                    method recognize

                                    recognize: {
                                    (
                                    request: google.cloud.speech.v1.IRecognizeRequest,
                                    callback: google.cloud.speech.v1.Speech.RecognizeCallback
                                    ): void;
                                    (request: IRecognizeRequest): Promise<RecognizeResponse>;
                                    };
                                    • Calls Recognize.

                                      Parameter request

                                      RecognizeRequest message or plain object

                                      Parameter callback

                                      Node-style callback called with the error, if any, and RecognizeResponse

                                    • Calls Recognize.

                                      Parameter request

                                      RecognizeRequest message or plain object

                                      Returns

                                      Promise

                                    method streamingRecognize

                                    streamingRecognize: {
                                    (
                                    request: google.cloud.speech.v1.IStreamingRecognizeRequest,
                                    callback: google.cloud.speech.v1.Speech.StreamingRecognizeCallback
                                    ): void;
                                    (request: IStreamingRecognizeRequest): Promise<StreamingRecognizeResponse>;
                                    };
                                    • Calls StreamingRecognize.

                                      Parameter request

                                      StreamingRecognizeRequest message or plain object

                                      Parameter callback

                                      Node-style callback called with the error, if any, and StreamingRecognizeResponse

                                    • Calls StreamingRecognize.

                                      Parameter request

                                      StreamingRecognizeRequest message or plain object

                                      Returns

                                      Promise

                                    class SpeechAdaptation

                                    class SpeechAdaptation implements ISpeechAdaptation {}
                                    • Represents a SpeechAdaptation.

                                    constructor

                                    constructor(properties?: ISpeechAdaptation);
                                    • Constructs a new SpeechAdaptation.

                                      Parameter properties

                                      Properties to set

                                    property customClasses

                                    customClasses: ICustomClass[];
                                    • SpeechAdaptation customClasses.

                                    property phraseSetReferences

                                    phraseSetReferences: string[];
                                    • SpeechAdaptation phraseSetReferences.

                                    property phraseSets

                                    phraseSets: IPhraseSet[];
                                    • SpeechAdaptation phraseSets.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.ISpeechAdaptation
                                    ) => google.cloud.speech.v1.SpeechAdaptation;
                                    • Creates a new SpeechAdaptation instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      SpeechAdaptation instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.SpeechAdaptation;
                                    • Decodes a SpeechAdaptation message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      SpeechAdaptation

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.SpeechAdaptation;
                                    • Decodes a SpeechAdaptation message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      SpeechAdaptation

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.ISpeechAdaptation,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified SpeechAdaptation message. Does not implicitly verify messages.

                                      Parameter message

                                      SpeechAdaptation message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method encodeDelimited

                                    static encodeDelimited: (
                                    message: google.cloud.speech.v1.ISpeechAdaptation,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified SpeechAdaptation message, length delimited. Does not implicitly verify messages.

                                      Parameter message

                                      SpeechAdaptation message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method fromObject

                                    static fromObject: (object: {
                                    [k: string]: any;
                                    }) => google.cloud.speech.v1.SpeechAdaptation;
                                    • Creates a SpeechAdaptation message from a plain object. Also converts values to their respective internal types.

                                      Parameter object

                                      Plain object

                                      Returns

                                      SpeechAdaptation

                                    method toJSON

                                    toJSON: () => { [k: string]: any };
                                    • Converts this SpeechAdaptation to JSON.

                                      Returns

                                      JSON object

                                    method toObject

                                    static toObject: (
                                    message: google.cloud.speech.v1.SpeechAdaptation,
                                    options?: $protobuf.IConversionOptions
                                    ) => { [k: string]: any };
                                    • Creates a plain object from a SpeechAdaptation message. Also converts values to other types if specified.

                                      Parameter message

                                      SpeechAdaptation

                                      Parameter options

                                      Conversion options

                                      Returns

                                      Plain object

                                    method verify

                                    static verify: (message: { [k: string]: any }) => string | null;
                                    • Verifies a SpeechAdaptation message.

                                      Parameter message

                                      Plain object to verify

                                      Returns

                                      null if valid, otherwise the reason why it is not

                                    class SpeechContext

                                    class SpeechContext implements ISpeechContext {}
                                    • Represents a SpeechContext.

                                    constructor

                                    constructor(properties?: ISpeechContext);
                                    • Constructs a new SpeechContext.

                                      Parameter properties

                                      Properties to set

                                    property boost

                                    boost: number;
                                    • SpeechContext boost.

                                    property phrases

                                    phrases: string[];
                                    • SpeechContext phrases.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.ISpeechContext
                                    ) => google.cloud.speech.v1.SpeechContext;
                                    • Creates a new SpeechContext instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      SpeechContext instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.SpeechContext;
                                    • Decodes a SpeechContext message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      SpeechContext

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.SpeechContext;
                                    • Decodes a SpeechContext message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      SpeechContext

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.ISpeechContext,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified SpeechContext message. Does not implicitly verify messages.

                                      Parameter message

                                      SpeechContext message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method encodeDelimited

                                    static encodeDelimited: (
                                    message: google.cloud.speech.v1.ISpeechContext,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified SpeechContext message, length delimited. Does not implicitly verify messages.

                                      Parameter message

                                      SpeechContext message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method fromObject

                                    static fromObject: (object: {
                                    [k: string]: any;
                                    }) => google.cloud.speech.v1.SpeechContext;
                                    • Creates a SpeechContext message from a plain object. Also converts values to their respective internal types.

                                      Parameter object

                                      Plain object

                                      Returns

                                      SpeechContext

                                    method toJSON

                                    toJSON: () => { [k: string]: any };
                                    • Converts this SpeechContext to JSON.

                                      Returns

                                      JSON object

                                    method toObject

                                    static toObject: (
                                    message: google.cloud.speech.v1.SpeechContext,
                                    options?: $protobuf.IConversionOptions
                                    ) => { [k: string]: any };
                                    • Creates a plain object from a SpeechContext message. Also converts values to other types if specified.

                                      Parameter message

                                      SpeechContext

                                      Parameter options

                                      Conversion options

                                      Returns

                                      Plain object

                                    method verify

                                    static verify: (message: { [k: string]: any }) => string | null;
                                    • Verifies a SpeechContext message.

                                      Parameter message

                                      Plain object to verify

                                      Returns

                                      null if valid, otherwise the reason why it is not

                                    class SpeechRecognitionAlternative

                                    class SpeechRecognitionAlternative implements ISpeechRecognitionAlternative {}
                                    • Represents a SpeechRecognitionAlternative.

                                    constructor

                                    constructor(properties?: ISpeechRecognitionAlternative);
                                    • Constructs a new SpeechRecognitionAlternative.

                                      Parameter properties

                                      Properties to set

                                    property confidence

                                    confidence: number;
                                    • SpeechRecognitionAlternative confidence.

                                    property transcript

                                    transcript: string;
                                    • SpeechRecognitionAlternative transcript.

                                    property words

                                    words: IWordInfo[];
                                    • SpeechRecognitionAlternative words.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.ISpeechRecognitionAlternative
                                    ) => google.cloud.speech.v1.SpeechRecognitionAlternative;
                                    • Creates a new SpeechRecognitionAlternative instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      SpeechRecognitionAlternative instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.SpeechRecognitionAlternative;
                                    • Decodes a SpeechRecognitionAlternative message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      SpeechRecognitionAlternative

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.SpeechRecognitionAlternative;
                                    • Decodes a SpeechRecognitionAlternative message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      SpeechRecognitionAlternative

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.ISpeechRecognitionAlternative,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified SpeechRecognitionAlternative message. Does not implicitly verify messages.

                                      Parameter message

                                      SpeechRecognitionAlternative message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method encodeDelimited

                                    static encodeDelimited: (
                                    message: google.cloud.speech.v1.ISpeechRecognitionAlternative,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified SpeechRecognitionAlternative message, length delimited. Does not implicitly verify messages.

                                      Parameter message

                                      SpeechRecognitionAlternative message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method fromObject

                                    static fromObject: (object: {
                                    [k: string]: any;
                                    }) => google.cloud.speech.v1.SpeechRecognitionAlternative;
                                    • Creates a SpeechRecognitionAlternative message from a plain object. Also converts values to their respective internal types.

                                      Parameter object

                                      Plain object

                                      Returns

                                      SpeechRecognitionAlternative

                                    method toJSON

                                    toJSON: () => { [k: string]: any };
                                    • Converts this SpeechRecognitionAlternative to JSON.

                                      Returns

                                      JSON object

                                    method toObject

                                    static toObject: (
                                    message: google.cloud.speech.v1.SpeechRecognitionAlternative,
                                    options?: $protobuf.IConversionOptions
                                    ) => { [k: string]: any };
                                    • Creates a plain object from a SpeechRecognitionAlternative message. Also converts values to other types if specified.

                                      Parameter message

                                      SpeechRecognitionAlternative

                                      Parameter options

                                      Conversion options

                                      Returns

                                      Plain object

                                    method verify

                                    static verify: (message: { [k: string]: any }) => string | null;
                                    • Verifies a SpeechRecognitionAlternative message.

                                      Parameter message

                                      Plain object to verify

                                      Returns

                                      null if valid, otherwise the reason why it is not

                                    class SpeechRecognitionResult

                                    class SpeechRecognitionResult implements ISpeechRecognitionResult {}
                                    • Represents a SpeechRecognitionResult.

                                    constructor

                                    constructor(properties?: ISpeechRecognitionResult);
                                    • Constructs a new SpeechRecognitionResult.

                                      Parameter properties

                                      Properties to set

                                    property alternatives

                                    alternatives: ISpeechRecognitionAlternative[];
                                    • SpeechRecognitionResult alternatives.

                                    property channelTag

                                    channelTag: number;
                                    • SpeechRecognitionResult channelTag.

                                    property languageCode

                                    languageCode: string;
                                    • SpeechRecognitionResult languageCode.

                                    property resultEndTime

                                    resultEndTime?: protobuf.IDuration;
                                    • SpeechRecognitionResult resultEndTime.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.ISpeechRecognitionResult
                                    ) => google.cloud.speech.v1.SpeechRecognitionResult;
                                    • Creates a new SpeechRecognitionResult instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      SpeechRecognitionResult instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.SpeechRecognitionResult;
                                    • Decodes a SpeechRecognitionResult message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      SpeechRecognitionResult

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.SpeechRecognitionResult;
                                    • Decodes a SpeechRecognitionResult message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      SpeechRecognitionResult

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.ISpeechRecognitionResult,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified SpeechRecognitionResult message. Does not implicitly verify messages.

                                      Parameter message

                                      SpeechRecognitionResult message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method encodeDelimited

                                    static encodeDelimited: (
                                    message: google.cloud.speech.v1.ISpeechRecognitionResult,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified SpeechRecognitionResult message, length delimited. Does not implicitly verify messages.

                                      Parameter message

                                      SpeechRecognitionResult message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method fromObject

                                    static fromObject: (object: {
                                    [k: string]: any;
                                    }) => google.cloud.speech.v1.SpeechRecognitionResult;
                                    • Creates a SpeechRecognitionResult message from a plain object. Also converts values to their respective internal types.

                                      Parameter object

                                      Plain object

                                      Returns

                                      SpeechRecognitionResult

                                    method toJSON

                                    toJSON: () => { [k: string]: any };
                                    • Converts this SpeechRecognitionResult to JSON.

                                      Returns

                                      JSON object

                                    method toObject

                                    static toObject: (
                                    message: google.cloud.speech.v1.SpeechRecognitionResult,
                                    options?: $protobuf.IConversionOptions
                                    ) => { [k: string]: any };
                                    • Creates a plain object from a SpeechRecognitionResult message. Also converts values to other types if specified.

                                      Parameter message

                                      SpeechRecognitionResult

                                      Parameter options

                                      Conversion options

                                      Returns

                                      Plain object

                                    method verify

                                    static verify: (message: { [k: string]: any }) => string | null;
                                    • Verifies a SpeechRecognitionResult message.

                                      Parameter message

                                      Plain object to verify

                                      Returns

                                      null if valid, otherwise the reason why it is not

                                    class StreamingRecognitionConfig

                                    class StreamingRecognitionConfig implements IStreamingRecognitionConfig {}
                                    • Represents a StreamingRecognitionConfig.

                                    constructor

                                    constructor(properties?: IStreamingRecognitionConfig);
                                    • Constructs a new StreamingRecognitionConfig.

                                      Parameter properties

                                      Properties to set

                                    property config

                                    config?: IRecognitionConfig;
                                    • StreamingRecognitionConfig config.

                                    property interimResults

                                    interimResults: boolean;
                                    • StreamingRecognitionConfig interimResults.

                                    property singleUtterance

                                    singleUtterance: boolean;
                                    • StreamingRecognitionConfig singleUtterance.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.IStreamingRecognitionConfig
                                    ) => google.cloud.speech.v1.StreamingRecognitionConfig;
                                    • Creates a new StreamingRecognitionConfig instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      StreamingRecognitionConfig instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.StreamingRecognitionConfig;
                                    • Decodes a StreamingRecognitionConfig message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      StreamingRecognitionConfig

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.StreamingRecognitionConfig;
                                    • Decodes a StreamingRecognitionConfig message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      StreamingRecognitionConfig

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.IStreamingRecognitionConfig,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified StreamingRecognitionConfig message. Does not implicitly verify messages.

                                      Parameter message

                                      StreamingRecognitionConfig message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method encodeDelimited

                                    static encodeDelimited: (
                                    message: google.cloud.speech.v1.IStreamingRecognitionConfig,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified StreamingRecognitionConfig message, length delimited. Does not implicitly verify messages.

                                      Parameter message

                                      StreamingRecognitionConfig message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method fromObject

                                    static fromObject: (object: {
                                    [k: string]: any;
                                    }) => google.cloud.speech.v1.StreamingRecognitionConfig;
                                    • Creates a StreamingRecognitionConfig message from a plain object. Also converts values to their respective internal types.

                                      Parameter object

                                      Plain object

                                      Returns

                                      StreamingRecognitionConfig

                                    method toJSON

                                    toJSON: () => { [k: string]: any };
                                    • Converts this StreamingRecognitionConfig to JSON.

                                      Returns

                                      JSON object

                                    method toObject

                                    static toObject: (
                                    message: google.cloud.speech.v1.StreamingRecognitionConfig,
                                    options?: $protobuf.IConversionOptions
                                    ) => { [k: string]: any };
                                    • Creates a plain object from a StreamingRecognitionConfig message. Also converts values to other types if specified.

                                      Parameter message

                                      StreamingRecognitionConfig

                                      Parameter options

                                      Conversion options

                                      Returns

                                      Plain object

                                    method verify

                                    static verify: (message: { [k: string]: any }) => string | null;
                                    • Verifies a StreamingRecognitionConfig message.

                                      Parameter message

                                      Plain object to verify

                                      Returns

                                      null if valid, otherwise the reason why it is not

                                    class StreamingRecognitionResult

                                    class StreamingRecognitionResult implements IStreamingRecognitionResult {}
                                    • Represents a StreamingRecognitionResult.

                                    constructor

                                    constructor(properties?: IStreamingRecognitionResult);
                                    • Constructs a new StreamingRecognitionResult.

                                      Parameter properties

                                      Properties to set

                                    property alternatives

                                    alternatives: ISpeechRecognitionAlternative[];
                                    • StreamingRecognitionResult alternatives.

                                    property channelTag

                                    channelTag: number;
                                    • StreamingRecognitionResult channelTag.

                                    property isFinal

                                    isFinal: boolean;
                                    • StreamingRecognitionResult isFinal.

                                    property languageCode

                                    languageCode: string;
                                    • StreamingRecognitionResult languageCode.

                                    property resultEndTime

                                    resultEndTime?: protobuf.IDuration;
                                    • StreamingRecognitionResult resultEndTime.

                                    property stability

                                    stability: number;
                                    • StreamingRecognitionResult stability.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.IStreamingRecognitionResult
                                    ) => google.cloud.speech.v1.StreamingRecognitionResult;
                                    • Creates a new StreamingRecognitionResult instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      StreamingRecognitionResult instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.StreamingRecognitionResult;
                                    • Decodes a StreamingRecognitionResult message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      StreamingRecognitionResult

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.StreamingRecognitionResult;
                                    • Decodes a StreamingRecognitionResult message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      StreamingRecognitionResult

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.IStreamingRecognitionResult,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified StreamingRecognitionResult message. Does not implicitly verify messages.

                                      Parameter message

                                      StreamingRecognitionResult message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method encodeDelimited

                                    static encodeDelimited: (
                                    message: google.cloud.speech.v1.IStreamingRecognitionResult,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified StreamingRecognitionResult message, length delimited. Does not implicitly verify messages.

                                      Parameter message

                                      StreamingRecognitionResult message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method fromObject

                                    static fromObject: (object: {
                                    [k: string]: any;
                                    }) => google.cloud.speech.v1.StreamingRecognitionResult;
                                    • Creates a StreamingRecognitionResult message from a plain object. Also converts values to their respective internal types.

                                      Parameter object

                                      Plain object

                                      Returns

                                      StreamingRecognitionResult

                                    method toJSON

                                    toJSON: () => { [k: string]: any };
                                    • Converts this StreamingRecognitionResult to JSON.

                                      Returns

                                      JSON object

                                    method toObject

                                    static toObject: (
                                    message: google.cloud.speech.v1.StreamingRecognitionResult,
                                    options?: $protobuf.IConversionOptions
                                    ) => { [k: string]: any };
                                    • Creates a plain object from a StreamingRecognitionResult message. Also converts values to other types if specified.

                                      Parameter message

                                      StreamingRecognitionResult

                                      Parameter options

                                      Conversion options

                                      Returns

                                      Plain object

                                    method verify

                                    static verify: (message: { [k: string]: any }) => string | null;
                                    • Verifies a StreamingRecognitionResult message.

                                      Parameter message

                                      Plain object to verify

                                      Returns

                                      null if valid, otherwise the reason why it is not

                                    class StreamingRecognizeRequest

                                    class StreamingRecognizeRequest implements IStreamingRecognizeRequest {}
                                    • Represents a StreamingRecognizeRequest.

                                    constructor

                                    constructor(properties?: IStreamingRecognizeRequest);
                                    • Constructs a new StreamingRecognizeRequest.

                                      Parameter properties

                                      Properties to set

                                    property audioContent

                                    audioContent?: string | Uint8Array;
                                    • StreamingRecognizeRequest audioContent.

                                    property streamingConfig

                                    streamingConfig?: IStreamingRecognitionConfig;
                                    • StreamingRecognizeRequest streamingConfig.

                                    property streamingRequest

                                    streamingRequest?: 'streamingConfig' | 'audioContent';
                                    • StreamingRecognizeRequest streamingRequest.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.IStreamingRecognizeRequest
                                    ) => google.cloud.speech.v1.StreamingRecognizeRequest;
                                    • Creates a new StreamingRecognizeRequest instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      StreamingRecognizeRequest instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.StreamingRecognizeRequest;
                                    • Decodes a StreamingRecognizeRequest message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      StreamingRecognizeRequest

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.StreamingRecognizeRequest;
                                    • Decodes a StreamingRecognizeRequest message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      StreamingRecognizeRequest

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.IStreamingRecognizeRequest,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified StreamingRecognizeRequest message. Does not implicitly verify messages.

                                      Parameter message

                                      StreamingRecognizeRequest message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method encodeDelimited

                                    static encodeDelimited: (
                                    message: google.cloud.speech.v1.IStreamingRecognizeRequest,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified StreamingRecognizeRequest message, length delimited. Does not implicitly verify messages.

                                      Parameter message

                                      StreamingRecognizeRequest message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method fromObject

                                    static fromObject: (object: {
                                    [k: string]: any;
                                    }) => google.cloud.speech.v1.StreamingRecognizeRequest;
                                    • Creates a StreamingRecognizeRequest message from a plain object. Also converts values to their respective internal types.

                                      Parameter object

                                      Plain object

                                      Returns

                                      StreamingRecognizeRequest

                                    method toJSON

                                    toJSON: () => { [k: string]: any };
                                    • Converts this StreamingRecognizeRequest to JSON.

                                      Returns

                                      JSON object

                                    method toObject

                                    static toObject: (
                                    message: google.cloud.speech.v1.StreamingRecognizeRequest,
                                    options?: $protobuf.IConversionOptions
                                    ) => { [k: string]: any };
                                    • Creates a plain object from a StreamingRecognizeRequest message. Also converts values to other types if specified.

                                      Parameter message

                                      StreamingRecognizeRequest

                                      Parameter options

                                      Conversion options

                                      Returns

                                      Plain object

                                    method verify

                                    static verify: (message: { [k: string]: any }) => string | null;
                                    • Verifies a StreamingRecognizeRequest message.

                                      Parameter message

                                      Plain object to verify

                                      Returns

                                      null if valid, otherwise the reason why it is not

                                    class StreamingRecognizeResponse

                                    class StreamingRecognizeResponse implements IStreamingRecognizeResponse {}
                                    • Represents a StreamingRecognizeResponse.

                                    constructor

                                    constructor(properties?: IStreamingRecognizeResponse);
                                    • Constructs a new StreamingRecognizeResponse.

                                      Parameter properties

                                      Properties to set

                                    property error

                                    error?: rpc.IStatus;
                                    • StreamingRecognizeResponse error.

                                    property results

                                    results: IStreamingRecognitionResult[];
                                    • StreamingRecognizeResponse results.

                                    property speechEventType

                                    speechEventType:
                                    | StreamingRecognizeResponse.SpeechEventType
                                    | 'SPEECH_EVENT_UNSPECIFIED'
                                    | 'END_OF_SINGLE_UTTERANCE';
                                    • StreamingRecognizeResponse speechEventType.

                                    property totalBilledTime

                                    totalBilledTime?: protobuf.IDuration;
                                    • StreamingRecognizeResponse totalBilledTime.

                                    method create

                                    static create: (
                                    properties?: google.cloud.speech.v1.IStreamingRecognizeResponse
                                    ) => google.cloud.speech.v1.StreamingRecognizeResponse;
                                    • Creates a new StreamingRecognizeResponse instance using the specified properties.

                                      Parameter properties

                                      Properties to set

                                      Returns

                                      StreamingRecognizeResponse instance

                                    method decode

                                    static decode: (
                                    reader: $protobuf.Reader | Uint8Array,
                                    length?: number
                                    ) => google.cloud.speech.v1.StreamingRecognizeResponse;
                                    • Decodes a StreamingRecognizeResponse message from the specified reader or buffer.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Parameter length

                                      Message length if known beforehand

                                      Returns

                                      StreamingRecognizeResponse

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method decodeDelimited

                                    static decodeDelimited: (
                                    reader: $protobuf.Reader | Uint8Array
                                    ) => google.cloud.speech.v1.StreamingRecognizeResponse;
                                    • Decodes a StreamingRecognizeResponse message from the specified reader or buffer, length delimited.

                                      Parameter reader

                                      Reader or buffer to decode from

                                      Returns

                                      StreamingRecognizeResponse

                                      Throws

                                      {Error} If the payload is not a reader or valid buffer

                                      Throws

                                      {$protobuf.util.ProtocolError} If required fields are missing

                                    method encode

                                    static encode: (
                                    message: google.cloud.speech.v1.IStreamingRecognizeResponse,
                                    writer?: $protobuf.Writer
                                    ) => $protobuf.Writer;
                                    • Encodes the specified StreamingRecognizeResponse message. Does not implicitly verify messages.

                                      Parameter message

                                      StreamingRecognizeResponse message or plain object to encode

                                      Parameter writer

                                      Writer to encode to

                                      Returns

                                      Writer

                                    method