Transcribe Audio
transcribe_audioConvert spoken audio from files or microphone recordings into text, optionally translate to English, and export transcripts as TXT or SRT.
Instructions
Transcribes audio from a provided file or by recording from the microphone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fp16 | No | Use FP16 for faster inference. | |
| task | No | Task to perform: 'transcribe' or 'translate' (to English). | transcribe |
| model | No | Whisper model to use (e.g., 'base', 'small', 'turbo'). | base |
| backend | No | Transcription backend to use: 'faster-whisper' or 'openai-whisper'. Defaults to auto-detect (preferring faster-whisper). | |
| language | No | Language code for transcription (e.g., 'en', 'fr'). Auto-detected if not specified. | |
| directory | No | Directory for saving recordings or exports. | /root/.local/share/audio-transcriber |
| audio_file | No | Path to the audio file to transcribe. If provided, transcription is performed on this file. | |
| temperature | No | Temperature for sampling diversity (0.0 for deterministic). | |
| export_formats | No | Formats to export the transcription (e.g., ['txt', 'srt']). | |
| initial_prompt | No | Initial text prompt to guide the transcription. | |
| record_seconds | No | Number of seconds to record audio from microphone. Must be positive if no audio_file is provided. 0 or negative not supported for recording in this context. | |
| word_timestamps | No | Include word-level timestamps in the output. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |