View Source TxtaiEx.Transcription (txtai_ex v0.1.1)
txtai transcription instance for interfacing with a remote txtai service via REST API calls, providing functionality for transcribing audio files to text.
Summary
Functions
Transcribes audio from a list of files to text in batch.
Transcribes audio from a single file to text.
Functions
Transcribes audio from a list of files to text in batch.
Parameters
- api: The API struct containing configuration for URL and token.
- files: A list of paths to audio files to be transcribed.
Returns
- on success, where
transcriptions
is a list of texts transcribed from each audio file. - on failure.
Transcribes audio from a single file to text.
Parameters
- api: The API struct containing configuration for URL and token.
- file: The path to the audio file to be transcribed.
Returns
- on success, where
transcription
is the text transcribed from the audio file. - on failure.