babelscribe

v0.6.1
io.github.phonology024/babelscribe Checked 14 hours ago Published 3 days ago

Offline speech-to-text and SRT subtitles in 99 languages on your own AMD/NVIDIA/Intel/Apple GPU.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

transcribe Transcribe audio/video to subtitles

Transcribe a local audio or video file into subtitles / text. file_path: absolute path to the media file (mp4, mkv, mov, mp3, wav, m4a, ...). language: ISO code such as en, th, ja, es, hi — or "auto" to detect. accurate: slower, fewest errors (large-v3 with beam search, or the best fine-tune for Thai / Hindi, ~1.7 GB downloaded the first time). If that download is not possible but large-v3 can be used instead, it is, and accurate_note in the result says so. formats: comma list from srt, vtt, txt, json, ass (ass = karaoke word highlight…

ParameterTypeDescription
file_path *string
accurateboolean
formatsstring
languagestring
output_dirstring
translateboolean
translate_tostring
vocabularystring

transcribe_folder Transcribe every audio/video in a folder

Transcribe every audio and video file in a folder, one at a time. folder: absolute path to the folder holding the media files. language: ISO code such as en, th, ja, es, hi — or "auto" to detect each file separately. accurate: slower, fewest errors (large-v3 with beam search, or the best fine-tune for Thai / Hindi, ~1.7 GB downloaded the first time). If that download is not possible but large-v3 can be used instead, it is, and the file's accurate_note says so. formats: comma list from srt, vtt, txt, json, ass (ass = karaoke word highli…

ParameterTypeDescription
folder *string
accurateboolean
formatsstring
languagestring
output_dirstring
recursiveboolean
translateboolean
vocabularystring

convert_subtitles Re-export subtitles from a transcript JSON

Write subtitle files again from a babelscribe .json, without transcribing again (instant, no GPU). Use it to change the line width or add a format, or after correcting names and words: edit the "text" of the segments in the JSON, then call this, and every format gets the corrected text with its timing. json_path: absolute path to the .json written by transcribe (formats must have included json). formats: comma list from srt, vtt, txt, json, ass. max_line_chars: maximum characters per subtitle line; 0 = the default for the language. output_dir: f…

ParameterTypeDescription
json_path *string
formatsstring
max_line_charsinteger
output_dirstring

translate_subtitles Translate subtitles with a local LLM

Translate finished subtitles into another language with the LLM running on the user's own computer (Ollama, LM Studio, llama-server, ...). Timing is kept; the original file is not changed. path: absolute path to the .json written by transcribe (best), or an .srt / .vtt. target: language code or name: th, ja, es, de, "Thai", ... formats: comma list from srt, vtt, txt, json, ass for the translated files (NAME.<code>.srt, ...). llm_url: OpenAI-compatible endpoint, e.g. http://127.0.0.1:11434/v1; empty = the usual local ports. model: model name to a…

ParameterTypeDescription
path *string
target *string
formatsstring
llm_urlstring
modelstring

burn_subtitles Burn subtitles into a video

Draw subtitles onto a copy of a video (NAME.subbed.mp4), for posting where a separate subtitle file is not possible (TikTok, Reels, Shorts). The input video is never changed; audio is copied. video_path: absolute path to the video. subtitle_path: the .json written by transcribe (best: any style works, and text edited in it is used), or an .ass (drawn exactly as written), or an .srt / .vtt (plain only). Empty = the subtitle file next to the video; transcribe the video first if there is none. style: plain (white text at the bottom) | karao…

ParameterTypeDescription
video_path *string
output_pathstring
stylestring
subtitle_pathstring

find_media Find audio/video files

Find audio/video files on this computer, newest first. Searches Downloads, Videos, Desktop, Music and Documents (two levels deep) unless folder is given. Use it when the user names a file without a full path.

ParameterTypeDescription
folderstring
limitinteger
name_containsstring

list_devices List GPUs

GPUs whisper.cpp can use on this computer and which one babelscribe picks automatically.

list_languages_and_models List languages and models

Models available, which model accurate mode uses per language, and what is still to be downloaded for it.