GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio class
Plays audio from a file in Telephony Gateway.
Constructors
-
GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio({required Input<
String> audioUri}) -
Creates a new GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio.
audioUriURI to a Google Cloud Storage object containing the audio to play, e.g., "gs://bucket/object". The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by theservice-@gcp-sa-dialogflow.iam.gserviceaccount.comservice account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API. For audio from other sources, consider using theTelephonySynthesizeSpeechmessage with SSML.const -
GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
audioUri
→ Input<
String> -
URI to a Google Cloud Storage object containing the audio to play, e.g., "gs://bucket/object". The object must contain a single channel (mono) of linear PCM audio (2 bytes / sample) at 8kHz. This object must be readable by the
service-@gcp-sa-dialogflow.iam.gserviceaccount.comservice account where is the number of the Telephony Gateway project (usually the same as the Dialogflow agent project). If the Google Cloud Storage bucket is in the Telephony Gateway project, this permission is added by default when enabling the Dialogflow V2 API. For audio from other sources, consider using theTelephonySynthesizeSpeechmessage with SSML.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited