Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class PlayAudio.
Specifies an audio clip to be played by the client as part of the response.
Generated from protobuf message google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio
Namespace
Google \ Cloud \ Dialogflow \ Cx \ V3 \ ResponseMessageMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ audio_uri |
string
Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it. |
↳ allow_playback_interruption |
bool
Output only. Whether the playback of this message can be interrupted by the end user's speech and the client can then starts the next Dialogflow request. |
getAudioUri
Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
Returns | |
---|---|
Type | Description |
string |
setAudioUri
Required. URI of the audio clip. Dialogflow does not impose any validation on this value. It is specific to the client that reads it.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getAllowPlaybackInterruption
Output only. Whether the playback of this message can be interrupted by the end user's speech and the client can then starts the next Dialogflow request.
Returns | |
---|---|
Type | Description |
bool |
setAllowPlaybackInterruption
Output only. Whether the playback of this message can be interrupted by the end user's speech and the client can then starts the next Dialogflow request.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |