{"id":15986879,"url":"https://github.com/mcdallas/whispersub","last_synced_at":"2025-03-17T15:32:21.692Z","repository":{"id":181334383,"uuid":"666614084","full_name":"mcdallas/whispersub","owner":"mcdallas","description":"format whisper transcripts to .srt","archived":false,"fork":false,"pushed_at":"2023-07-15T02:26:37.000Z","size":4,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-15T03:06:31.519Z","etag":null,"topics":["openai","srt","subtitles","transcription","whisper","whisper-cpp"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcdallas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-15T02:17:10.000Z","updated_at":"2024-09-15T15:38:31.000Z","dependencies_parsed_at":"2023-07-15T02:44:33.921Z","dependency_job_id":null,"html_url":"https://github.com/mcdallas/whispersub","commit_stats":null,"previous_names":["mcdallas/whispersub"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcdallas%2Fwhispersub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcdallas%2Fwhispersub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcdallas%2Fwhispersub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcdallas%2Fwhispersub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcdallas","download_url":"https://codeload.github.com/mcdallas/whispersub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221696211,"owners_count":16865376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["openai","srt","subtitles","transcription","whisper","whisper-cpp"],"created_at":"2024-10-08T03:05:24.801Z","updated_at":"2024-10-27T15:14:19.585Z","avatar_url":"https://github.com/mcdallas.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## whispersub\n\nA dead simple utility to format the output of OpenAI's whisper model (or whisper.cpp) into an .srt file.\n\n\n### Usage\n\n``` bash\nwhispersub input.txt -o output.srt\n```\n\nyou can also pipe the output of whisper.cpp into whispersub\n\n\n```bash\nwhisper-cpp --file audio.wav --language en --model ggml-medium.en.bin | whispersub\n```\n\nor use a little hellper function to extract the audio from a video, pipe it to whisper.cpp and then to whispersub\n\n```bash\nmakesub () {\n    filename=$(basename -- \"$1\")\n    filename=\"${filename%.*}\"\n    model=${HOME}/.local/share/whisper/ggml-medium.en.bin\n    ffmpeg -i \"$1\" -vn -acodec pcm_s16le -ar 16000 -ac 2 -f wav - | \n    nice -n 20 whisper-cpp --threads \"$(nproc)\" --file - --language en --model \"$model\" |\n    whispersub -o \"${filename}.en.srt\"\n}\n\nmakesub video.mp4\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcdallas%2Fwhispersub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcdallas%2Fwhispersub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcdallas%2Fwhispersub/lists"}