Struct gapi_grpc::google::cloud::mediatranslation::v1alpha1::TranslateSpeechConfig[][src]

pub struct TranslateSpeechConfig {
    pub audio_encoding: String,
    pub source_language_code: String,
    pub target_language_code: String,
    pub alternative_source_language_codes: Vec<String>,
    pub sample_rate_hertz: i32,
    pub model: String,
}

Provides information to the speech translation that specifies how to process the request.

Fields

audio_encoding: String

Required. Encoding of audio data. Supported formats:

source_language_code: String

Required. Source language code (BCP-47) of the input audio.

target_language_code: String

Required. Target language code (BCP-47) of the output.

alternative_source_language_codes: Vec<String>

Optional. A list of up to 3 additional language codes (BCP-47), listing possible alternative languages of the supplied audio. If alternative source languages are listed, speech translation result will translate in the most likely language detected including the main source_language_code. The translated result will include the language code of the language detected in the audio. Note:

  1. If the provided alternative_source_language_code is not supported by current API version, we will skip that language code.
  2. If user only provided one eligible alternative_source_language_codes, the translation will happen between source_language_code and alternative_source_language_codes. The target_language_code will be ignored. It will be useful in conversation mode.
sample_rate_hertz: i32

Optional. Sample rate in Hertz of the audio data. Valid values are: 8000-48000. 16000 is optimal. For best results, set the sampling rate of the audio source to 16000 Hz. If that’s not possible, use the native sample rate of the audio source (instead of re-sampling).

model: String

Optional.

Trait Implementations

impl Clone for TranslateSpeechConfig[src]

impl Debug for TranslateSpeechConfig[src]

impl Default for TranslateSpeechConfig[src]

impl Message for TranslateSpeechConfig[src]

impl PartialEq<TranslateSpeechConfig> for TranslateSpeechConfig[src]

impl StructuralPartialEq for TranslateSpeechConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for TranslateSpeechConfig

impl Send for TranslateSpeechConfig

impl Sync for TranslateSpeechConfig

impl Unpin for TranslateSpeechConfig

impl UnwindSafe for TranslateSpeechConfig

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]