Google Cloud Dialogflow Cx V3 Client - Class Segment (0.2.1)

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

Represents one segment of audio.

Generated from protobuf message google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ ResponseMessage \ MixedAudio

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ audio string

Raw audio synthesized from the Dialogflow agent's response using the output config specified in the request.

↳ uri string

Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.

↳ allow_playback_interruption bool

Output only. Whether the playback of this segment can be interrupted by the end user's speech and the client should then start the next Dialogflow request.

getAudio

Raw audio synthesized from the Dialogflow agent's response using the output config specified in the request.

Returns
TypeDescription
string

hasAudio

setAudio

Raw audio synthesized from the Dialogflow agent's response using the output config specified in the request.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUri

Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.

Returns
TypeDescription
string

hasUri

setUri

Client-specific URI that points to an audio clip accessible to the client. Dialogflow does not impose any validation on it.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAllowPlaybackInterruption

Output only. Whether the playback of this segment can be interrupted by the end user's speech and the client should then start the next Dialogflow request.

Returns
TypeDescription
bool

setAllowPlaybackInterruption

Output only. Whether the playback of this segment can be interrupted by the end user's speech and the client should then start the next Dialogflow request.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getContent

Returns
TypeDescription
string