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

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

  • linear16

    Uncompressed 16-bit signed little-endian samples (Linear PCM).

source_language_code: String

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

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.

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). This field can only be omitted for FLAC and WAV audio files.

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

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, 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>, 

impl<T> WithSubscriber for T[src]