Interface Intent.Message.TelephonyPlayAudioOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getAudioUri()
      Required.
      com.google.protobuf.ByteString getAudioUriBytes()
      Required.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getAudioUri

        String getAudioUri()
         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.
         
        string audio_uri = 1;
        Returns:
        The audioUri.
      • getAudioUriBytes

        com.google.protobuf.ByteString getAudioUriBytes()
         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.
         
        string audio_uri = 1;
        Returns:
        The bytes for audioUri.