Google Cloud Dialogflow V2 Client - Class OutputAudio (1.0.1)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class OutputAudio.

Represents the natural language speech audio to be played to the end user.

Generated from protobuf message google.cloud.dialogflow.v2.OutputAudio

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ config Google\Cloud\Dialogflow\V2\OutputAudioConfig

Instructs the speech synthesizer how to generate the speech audio.

↳ audio string

The natural language speech audio.

getConfig

Instructs the speech synthesizer how to generate the speech audio.

Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig config = 1;

Returns
TypeDescription
Google\Cloud\Dialogflow\V2\OutputAudioConfig|null

hasConfig

clearConfig

setConfig

Instructs the speech synthesizer how to generate the speech audio.

Generated from protobuf field .google.cloud.dialogflow.v2.OutputAudioConfig config = 1;

Parameter
NameDescription
var Google\Cloud\Dialogflow\V2\OutputAudioConfig
Returns
TypeDescription
$this

getAudio

The natural language speech audio.

Generated from protobuf field bytes audio = 2;

Returns
TypeDescription
string

setAudio

The natural language speech audio.

Generated from protobuf field bytes audio = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this