Struct txtai::transcription::Transcription
source · pub struct Transcription { /* private fields */ }
Expand description
Transcription definition
Implementations§
source§impl Transcription
impl Transcription
Transcription implementation
sourcepub fn new() -> Transcription
pub fn new() -> Transcription
Creates a Transcription instance.
sourcepub fn with_url(url: &str) -> Transcription
pub fn with_url(url: &str) -> Transcription
sourcepub fn with_url_token(url: &str, token: &str) -> Transcription
pub fn with_url_token(url: &str, token: &str) -> Transcription
sourcepub async fn transcribe(&self, file: &str) -> Strings
pub async fn transcribe(&self, file: &str) -> Strings
Transcribes audio files to text.
file
file to transcribe
sourcepub async fn batchtranscribe(&self, files: &Vec<&str>) -> StringsBatch
pub async fn batchtranscribe(&self, files: &Vec<&str>) -> StringsBatch
Transcribes audio files to text.
files
list of files to transcribe
Auto Trait Implementations§
impl Freeze for Transcription
impl RefUnwindSafe for Transcription
impl Send for Transcription
impl Sync for Transcription
impl Unpin for Transcription
impl UnwindSafe for Transcription
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