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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eIntent.Types.Message.Types.TelephonyPlayAudio\u003c/code\u003e class within the Google Cloud Dialogflow v2beta1 API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTelephonyPlayAudio\u003c/code\u003e enables the playback of audio files from a Telephony Gateway, utilizing a file located in Google Cloud Storage.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors, one default and one that accepts another \u003ccode\u003eTelephonyPlayAudio\u003c/code\u003e object, with one property \u003ccode\u003eAudioUri\u003c/code\u003e which is a string that represents the location of the audio file in Google Cloud Storage.\u003c/p\u003e\n"]]],[],null,[]]