Transcribe audio
speech_to_textTranscribe audio or video files containing mixed Tunisian Derja, French, and English, generating timed TXT, SRT, and VTT transcripts plus speaker labels.
Instructions
Transcribe an audio or video file with Tapra, which handles Tunisian Derja mixed with French and English. One call writes a folder with the transcript as txt, srt and vtt (plus a .json with full timings). Speakers are labelled by default (no extra charge): the result says how many were detected, with talk time, a quote and an audio clip of each, and a speakers.html page. When there are several speakers, ask the user whether to name them, then call name_speakers. Long files are split into chunks automatically. Costs money per minute of audio.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_path": "<input_path>"
},
"name": "speech_to_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | No | Names, brands or jargon likely to appear, to help recognition. | |
| diarize | No | Find who speaks when (no extra charge). Set false for a single speaker. | |
| formats | No | Files to write. Default: all three (txt, srt, vtt). A .json with full timings is always written too. | |
| language | No | Language hint. Usually leave unset: code-switching is auto-detected. | |
| input_path | Yes | Path to the audio or video file. | |
| output_dir | No | Folder to write into. Defaults to a new folder in the output folder. | |
| max_cost_tnd | No | Refuse to run if the estimated cost is above this many TND. Defaults to TAPRA_MAX_COST_TND when set. | |
| max_chars_per_subtitle | No | Longest subtitle line in srt/vtt, in characters. |