Google Cloud Dialogflow v2beta1 API - Class Intent.Types.Message.Types.TelephonyPlayAudio (1.0.0-beta13)

public sealed class Intent.Types.Message.Types.TelephonyPlayAudio : IMessage<Intent.Types.Message.Types.TelephonyPlayAudio>, IEquatable<Intent.Types.Message.Types.TelephonyPlayAudio>, IDeepCloneable<Intent.Types.Message.Types.TelephonyPlayAudio>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 API class Intent.Types.Message.Types.TelephonyPlayAudio.

Plays audio from a file in Telephony Gateway.

Inheritance

object > Intent.Types.Message.Types.TelephonyPlayAudio

Namespace

Google.Cloud.Dialogflow.V2Beta1

Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

Constructors

TelephonyPlayAudio()

public TelephonyPlayAudio()

TelephonyPlayAudio(TelephonyPlayAudio)

public TelephonyPlayAudio(Intent.Types.Message.Types.TelephonyPlayAudio other)
Parameter
NameDescription
otherIntentTypesMessageTypesTelephonyPlayAudio

Properties

AudioUri

public string AudioUri { get; set; }

Required. 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-<Project Number>@gcp-sa-dialogflow.iam.gserviceaccount.com service account where <Project Number> 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 the TelephonySynthesizeSpeech message with SSML.

Property Value
TypeDescription
string