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, specifically for version 1.0.0-beta22.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTelephonyPlayAudio\u003c/code\u003e class is designed to play audio from a specified file through the Telephony Gateway.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from the base \u003ccode\u003eobject\u003c/code\u003e class 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 \u003ccode\u003eTelephonyPlayAudio\u003c/code\u003e class contains a property called \u003ccode\u003eAudioUri\u003c/code\u003e, which is a string representing the URI of a Google Cloud Storage object that houses a mono audio file that must be readable by a specific service account.\u003c/p\u003e\n"],["\u003cp\u003eThe class has 2 constructors, one default and one that takes in \u003ccode\u003eIntent.Types.Message.Types.TelephonyPlayAudio\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]