pub struct RealtimeTranslationSession {
pub id: String,
pub type: String,
pub expires_at: u64,
pub model: String,
pub audio: RealtimeTranslationAudio,
}Available on crate feature
realtime-types only.Expand description
A Realtime translation session. Translation sessions continuously translate input audio into the configured output language.
Fields§
§id: StringUnique identifier for the session that looks like sess_1234567890abcdef.
type: StringThe session type. Always translation for Realtime translation sessions.
expires_at: u64Expiration timestamp for the session, in seconds since epoch.
model: StringThe Realtime translation model used for this session.
audio: RealtimeTranslationAudioConfiguration for translation input and output audio.
Trait Implementations§
Source§impl Clone for RealtimeTranslationSession
impl Clone for RealtimeTranslationSession
Source§fn clone(&self) -> RealtimeTranslationSession
fn clone(&self) -> RealtimeTranslationSession
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 RealtimeTranslationSession
impl Debug for RealtimeTranslationSession
Source§impl<'de> Deserialize<'de> for RealtimeTranslationSession
impl<'de> Deserialize<'de> for RealtimeTranslationSession
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RealtimeTranslationSession
impl RefUnwindSafe for RealtimeTranslationSession
impl Send for RealtimeTranslationSession
impl Sync for RealtimeTranslationSession
impl Unpin for RealtimeTranslationSession
impl UnsafeUnpin for RealtimeTranslationSession
impl UnwindSafe for RealtimeTranslationSession
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