{"id":15175349,"url":"https://github.com/luquedaniel/whisper2subs","last_synced_at":"2025-10-26T10:31:36.526Z","repository":{"id":152617298,"uuid":"626379840","full_name":"LuqueDaniel/whisper2subs","owner":"LuqueDaniel","description":"A CLI tool that transcribes audio using openai-whisper and translates it using DeepL.","archived":false,"fork":false,"pushed_at":"2025-01-01T22:05:43.000Z","size":33,"stargazers_count":9,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T18:28:24.190Z","etag":null,"topics":["audio","cli","deepl","subtitle","transcribe","translate","video","weekend-project","whisper"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LuqueDaniel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-11T10:58:44.000Z","updated_at":"2025-01-27T23:24:44.000Z","dependencies_parsed_at":"2024-05-01T23:24:15.654Z","dependency_job_id":"57ff934a-57c5-4e86-979b-67ec46f6e499","html_url":"https://github.com/LuqueDaniel/whisper2subs","commit_stats":{"total_commits":34,"total_committers":2,"mean_commits":17.0,"dds":"0.38235294117647056","last_synced_commit":"01d6312f0d4816ca3f9eec61aee365e38eeb8964"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuqueDaniel%2Fwhisper2subs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuqueDaniel%2Fwhisper2subs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuqueDaniel%2Fwhisper2subs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuqueDaniel%2Fwhisper2subs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuqueDaniel","download_url":"https://codeload.github.com/LuqueDaniel/whisper2subs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238310349,"owners_count":19450843,"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":["audio","cli","deepl","subtitle","transcribe","translate","video","weekend-project","whisper"],"created_at":"2024-09-27T12:23:04.934Z","updated_at":"2025-10-26T10:31:31.145Z","avatar_url":"https://github.com/LuqueDaniel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PyPI](https://img.shields.io/pypi/v/whisper2subs?style=flat-square)](https://pypi.org/project/whisper2subs/)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/whisper2subs?style=flat-square)](https://pypi.org/project/whisper2subs/)\n[![PyPI - License](https://img.shields.io/pypi/l/whisper2subs?style=flat-square)](https://github.com/LuqueDaniel/whisper2subs/blob/main/LICENSE)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black?style=flat-square)\n\n# whisper2subs\n\nA CLI tool that transcribes audio using [`openai-whisper`](https://github.com/openai/whisper) and translates it using [DeepL](https://www.deepl.com/docs-api).\n\n## Install\n\n```shell\npip install --user whisper2subs\n```\n\n## Usage\n\n```shell\nwhisper2subs --help\n```\n\n### Translate\n\nIn order to perform translations into languages **other than English**, it's required to **provide an API key from DeepL**. Using the `--deepl-apikey` option or with the `DEEPL_APIKEY` environment variable. You can [**create a free account**](https://www.deepl.com/en/pro?cta=header-pro-button/) to get an API key.\n\nTranscribe and then translate to Spanish the audio of an mp4 file, using the `large-v2` model.\n\n```shell\nwhisper2subs -m large-v2 -t es --deepl-apikey \"yout-api-key\" input.mp4 subs/\n```\n\nIf the language of the input file is not specified Whisper will try to detect it. To specify the language of the input file, use the `-l` option.\n\n```shell\nwhisper2subs -l ja -m large-v2 -t es --deepl-apikey \"yout-api-key\" input.mp4 subs/\n```\n\nChange output format to `str` only:\n\n```shell\nwhisper2subs -l ja -t es --output-format srt --deepl-apikey \"yout-api-key\" input.mp4 subs/\n```\n\nFor more information:\n\n```shell\nwhisper2subs --help\n```\n\n### Transcribe\n\nTranscribe audio without translating it:\n\n```shell\nwhisper2subs input.mp4 text/\n```\n\n## References\n\n* [Whisper](https://github.com/openai/whisper)\n* [DeepL API reference](https://www.deepl.com/docs-api)\n* [`deepl-python`](https://github.com/DeepLcom/deepl-python)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluquedaniel%2Fwhisper2subs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluquedaniel%2Fwhisper2subs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluquedaniel%2Fwhisper2subs/lists"}