pub struct Audio<'c, C: Config> { /* private fields */ }Expand description
Turn audio into text or text into audio. Related guide: Speech to text
Implementations§
Source§impl<'c, C: Config> Audio<'c, C>
impl<'c, C: Config> Audio<'c, C>
pub fn new(client: &'c Client<C>) -> Self
Sourcepub fn transcription(&self) -> Transcriptions<'_, C>
pub fn transcription(&self) -> Transcriptions<'_, C>
APIs in Transcription group.
Sourcepub fn translation(&self) -> Translations<'_, C>
pub fn translation(&self) -> Translations<'_, C>
APIs in Translation group.
Auto Trait Implementations§
impl<'c, C> Freeze for Audio<'c, C>
impl<'c, C> !RefUnwindSafe for Audio<'c, C>
impl<'c, C> Send for Audio<'c, C>
impl<'c, C> Sync for Audio<'c, C>
impl<'c, C> Unpin for Audio<'c, C>
impl<'c, C> !UnwindSafe for Audio<'c, C>
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