pub struct GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio {
pub audio_uri: Option<String>,
}Expand description
Plays audio from a file in Telephony Gateway.
This type is not used in any activity, and only used as part of another schema.
Fields§
§audio_uri: Option<String>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-@gcp-sa-dialogflow.iam.gserviceaccount.com service 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 the TelephonySynthesizeSpeech message with SSML.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
impl Clone for GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
Source§fn clone(&self) -> GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
fn clone(&self) -> GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
impl Default for GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
Source§fn default() -> GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
fn default() -> GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
impl RefUnwindSafe for GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
impl Send for GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
impl Sync for GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
impl Unpin for GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
impl UnwindSafe for GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more