pub struct GoogleCloudDialogflowCxV3BargeInConfig {
pub no_barge_in_duration: Option<Duration>,
pub total_duration: Option<Duration>,
}Expand description
Configuration of the barge-in behavior. Barge-in instructs the API to return a detected utterance at a proper time while the client is playing back the response audio from a previous request. When the client sees the utterance, it should stop the playback and immediately get ready for receiving the responses for the current request. The barge-in handling requires the client to start streaming audio input as soon as it starts playing back the audio from the previous response. The playback is modeled into two phases: * No barge-in phase: which goes first and during which speech detection should not be carried out. * Barge-in phase: which follows the no barge-in phase and during which the API starts speech detection and may inform the client that an utterance has been detected. Note that no-speech event is not expected in this phase. The client provides this configuration in terms of the durations of those two phases. The durations are measured in terms of the audio length from the the start of the input audio. No-speech event is a response with END_OF_UTTERANCE without any transcript following up.
This type is not used in any activity, and only used as part of another schema.
Fields§
§no_barge_in_duration: Option<Duration>Duration that is not eligible for barge-in at the beginning of the input audio.
total_duration: Option<Duration>Total duration for the playback at the beginning of the input audio.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowCxV3BargeInConfig
impl Clone for GoogleCloudDialogflowCxV3BargeInConfig
Source§fn clone(&self) -> GoogleCloudDialogflowCxV3BargeInConfig
fn clone(&self) -> GoogleCloudDialogflowCxV3BargeInConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudDialogflowCxV3BargeInConfig
impl Default for GoogleCloudDialogflowCxV3BargeInConfig
Source§fn default() -> GoogleCloudDialogflowCxV3BargeInConfig
fn default() -> GoogleCloudDialogflowCxV3BargeInConfig
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3BargeInConfig
impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3BargeInConfig
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 GoogleCloudDialogflowCxV3BargeInConfig
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowCxV3BargeInConfig
impl RefUnwindSafe for GoogleCloudDialogflowCxV3BargeInConfig
impl Send for GoogleCloudDialogflowCxV3BargeInConfig
impl Sync for GoogleCloudDialogflowCxV3BargeInConfig
impl Unpin for GoogleCloudDialogflowCxV3BargeInConfig
impl UnwindSafe for GoogleCloudDialogflowCxV3BargeInConfig
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