pub struct GoogleSpeechTranslationModel { /* private fields */ }Expand description
Streaming speech translation over the Gemini Live API.
Implementations§
Source§impl GoogleSpeechTranslationModel
impl GoogleSpeechTranslationModel
Sourcepub fn new(config: SharedConfig, model_id: impl Into<ModelId>) -> Self
pub fn new(config: SharedConfig, model_id: impl Into<ModelId>) -> Self
Creates a Live speech translation model.
Trait Implementations§
Source§impl Clone for GoogleSpeechTranslationModel
impl Clone for GoogleSpeechTranslationModel
Source§fn clone(&self) -> GoogleSpeechTranslationModel
fn clone(&self) -> GoogleSpeechTranslationModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GoogleSpeechTranslationModel
impl Debug for GoogleSpeechTranslationModel
Source§impl SpeechTranslationModel for GoogleSpeechTranslationModel
impl SpeechTranslationModel for GoogleSpeechTranslationModel
Source§fn provider(&self) -> &ProviderId
fn provider(&self) -> &ProviderId
Provider identifier.
Source§async fn do_stream(
&self,
options: SpeechTranslationStreamOptions,
) -> Result<SpeechTranslationStreamResult, ProviderError>
async fn do_stream( &self, options: SpeechTranslationStreamOptions, ) -> Result<SpeechTranslationStreamResult, ProviderError>
Translates a live audio stream.
Auto Trait Implementations§
impl !RefUnwindSafe for GoogleSpeechTranslationModel
impl !UnwindSafe for GoogleSpeechTranslationModel
impl Freeze for GoogleSpeechTranslationModel
impl Send for GoogleSpeechTranslationModel
impl Sync for GoogleSpeechTranslationModel
impl Unpin for GoogleSpeechTranslationModel
impl UnsafeUnpin for GoogleSpeechTranslationModel
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
Mutably borrows from an owned value. Read more