cli¶
Command Line Interface for Audinota
This module provides the CLI for audio transcription using Python Fire.
- audinota.cli.resolve_output_path(input_path: str, output_path: str | None, overwrite: bool) Path[source]¶
Resolve the final output file path based on input parameters.
- Parameters:
input_path – Path to the input audio file
output_path – Optional output path (file or directory)
overwrite – Whether to overwrite existing files
- Returns:
Resolved output file path
- Raises:
FileExistsError – If output file exists and overwrite is False
- class audinota.cli.AudioTranscriber[source]¶
Audio transcription command-line interface.
This class provides the main CLI functionality for transcribing audio files using the audinota library with intelligent parallel processing.
- transcribe(input: str, output: str | None = None, overwrite: bool = False) None[source]¶
Transcribe an audio file to text using parallel processing.
- Parameters:
input – Path to the input audio file (required)
output – Path to output file or directory (optional)
overwrite – Whether to overwrite existing output files
- Example usage:
audinota transcribe –input=”podcast.mp3” audinota transcribe –input=”lecture.mp4” –output=”transcripts/” audinota transcribe –input=”interview.wav” –output=”result.txt” –overwrite