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

pub struct TranslateSpeechConfig {
    pub audio_encoding: String,
    pub source_language_code: String,
    pub target_language_code: 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.

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. google-provided-model/video and google-provided-model/enhanced-phone-call are premium models. google-provided-model/phone-call is not premium model.

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]