Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class Segment.
Represents one segment of audio.
Generated from protobuf message google.cloud.dialogflow.v2.ResponseMessage.MixedAudio.Segment
Namespace
Google \ Cloud \ Dialogflow \ V2 \ ResponseMessage \ MixedAudioMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
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. |
↳ allow_playback_interruption |
bool
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 | |
|---|---|
| Type | Description |
string |
|
hasAudio
setAudio
Raw audio synthesized from the Dialogflow agent's response using the output config specified in the request.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUri
Client-specific URI that points to an audio clip accessible to the client.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasUri
setUri
Client-specific URI that points to an audio clip accessible to the client.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAllowPlaybackInterruption
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 | |
|---|---|
| Type | Description |
bool |
|
setAllowPlaybackInterruption
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 | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getContent
| Returns | |
|---|---|
| Type | Description |
string |
|