Google Cloud Dialogflow Cx V3 Client - Class OutputAudioText (0.1.1)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class OutputAudioText.

A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.

Generated from protobuf message google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ ResponseMessage

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ text string

The raw text to be synthesized.

↳ ssml string

The SSML text to be synthesized. For more information, see SSML.

↳ 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.

getText

The raw text to be synthesized.

Returns
TypeDescription
string

hasText

setText

The raw text to be synthesized.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSsml

The SSML text to be synthesized. For more information, see SSML.

Returns
TypeDescription
string

hasSsml

setSsml

The SSML text to be synthesized. For more information, see SSML.

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var bool
Returns
TypeDescription
$this

getSource

Returns
TypeDescription
string