Class protos.google.cloud.dialogflow.v2.InputAudioConfig

Represents an InputAudioConfig.

Package

@google-cloud/dialogflow

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.dialogflow.v2.IInputAudioConfig);

Constructs a new InputAudioConfig.

Parameter
NameDescription
properties IInputAudioConfig

Properties to set

Properties

audioEncoding

public audioEncoding: (google.cloud.dialogflow.v2.AudioEncoding|keyof typeof google.cloud.dialogflow.v2.AudioEncoding);

InputAudioConfig audioEncoding.

Property Value
TypeDescription
(google.cloud.dialogflow.v2.AudioEncoding|keyof typeof google.cloud.dialogflow.v2.AudioEncoding)

disableNoSpeechRecognizedEvent

public disableNoSpeechRecognizedEvent: boolean;

InputAudioConfig disableNoSpeechRecognizedEvent.

Property Value
TypeDescription
boolean

enableWordInfo

public enableWordInfo: boolean;

InputAudioConfig enableWordInfo.

Property Value
TypeDescription
boolean

languageCode

public languageCode: string;

InputAudioConfig languageCode.

Property Value
TypeDescription
string

model

public model: string;

InputAudioConfig model.

Property Value
TypeDescription
string

modelVariant

public modelVariant: (google.cloud.dialogflow.v2.SpeechModelVariant|keyof typeof google.cloud.dialogflow.v2.SpeechModelVariant);

InputAudioConfig modelVariant.

Property Value
TypeDescription
(google.cloud.dialogflow.v2.SpeechModelVariant|keyof typeof google.cloud.dialogflow.v2.SpeechModelVariant)

phraseHints

public phraseHints: string[];

InputAudioConfig phraseHints.

Property Value
TypeDescription
string[]

sampleRateHertz

public sampleRateHertz: number;

InputAudioConfig sampleRateHertz.

Property Value
TypeDescription
number

singleUtterance

public singleUtterance: boolean;

InputAudioConfig singleUtterance.

Property Value
TypeDescription
boolean

speechContexts

public speechContexts: google.cloud.dialogflow.v2.ISpeechContext[];

InputAudioConfig speechContexts.

Property Value
TypeDescription
google.cloud.dialogflow.v2.ISpeechContext[]

Methods

create(properties)

public static create(properties?: google.cloud.dialogflow.v2.IInputAudioConfig): google.cloud.dialogflow.v2.InputAudioConfig;

Creates a new InputAudioConfig instance using the specified properties.

Parameter
NameDescription
properties IInputAudioConfig

Properties to set

Returns
TypeDescription
google.cloud.dialogflow.v2.InputAudioConfig

InputAudioConfig instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dialogflow.v2.InputAudioConfig;

Decodes an InputAudioConfig message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.cloud.dialogflow.v2.InputAudioConfig

InputAudioConfig

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dialogflow.v2.InputAudioConfig;

Decodes an InputAudioConfig message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.dialogflow.v2.InputAudioConfig

InputAudioConfig

encode(message, writer)

public static encode(message: google.cloud.dialogflow.v2.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified InputAudioConfig message. Does not implicitly messages.

Parameters
NameDescription
message IInputAudioConfig

InputAudioConfig message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.dialogflow.v2.IInputAudioConfig, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IInputAudioConfig

InputAudioConfig message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.dialogflow.v2.InputAudioConfig;

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

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
google.cloud.dialogflow.v2.InputAudioConfig

InputAudioConfig

toJSON()

public toJSON(): { [k: string]: any };

Converts this InputAudioConfig to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.dialogflow.v2.InputAudioConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };

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

Parameters
NameDescription
message google.cloud.dialogflow.v2.InputAudioConfig

InputAudioConfig

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies an InputAudioConfig message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not