{"id":15136449,"url":"https://github.com/EutropicAI/yuisub","last_synced_at":"2025-10-23T11:31:32.884Z","repository":{"id":253483319,"uuid":"843486600","full_name":"TensoRaws/yuisub","owner":"TensoRaws","description":"Auto translation of new anime episodes based on Yui-MHCP001","archived":false,"fork":false,"pushed_at":"2025-02-06T21:07:29.000Z","size":503,"stargazers_count":22,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T21:29:46.000Z","etag":null,"topics":["anime","chatgpt","llm","openai","pysubs2","subtitle","translation","whisper"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TensoRaws.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":"2024-08-16T16:12:10.000Z","updated_at":"2025-02-06T21:06:47.000Z","dependencies_parsed_at":"2025-02-06T21:25:51.025Z","dependency_job_id":"5d3b772b-d58e-4d20-815a-47bd5e5bccf8","html_url":"https://github.com/TensoRaws/yuisub","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"adb86ba2e9e2e87275f194d83b45afaa5d6cc864"},"previous_names":["tensoraws/yuisub"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TensoRaws%2Fyuisub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TensoRaws%2Fyuisub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TensoRaws%2Fyuisub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TensoRaws%2Fyuisub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TensoRaws","download_url":"https://codeload.github.com/TensoRaws/yuisub/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237821550,"owners_count":19371784,"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":["anime","chatgpt","llm","openai","pysubs2","subtitle","translation","whisper"],"created_at":"2024-09-26T06:21:52.515Z","updated_at":"2025-10-23T11:31:32.877Z","avatar_url":"https://github.com/TensoRaws.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yuisub\n\n[![codecov](https://codecov.io/gh/EutropicAI/yuisub/branch/main/graph/badge.svg?token=B2TNKYN4O4)](https://codecov.io/gh/EutropicAI/yuisub)\n[![CI-test](https://github.com/EutropicAI/yuisub/actions/workflows/CI-test.yml/badge.svg)](https://github.com/EutropicAI/yuisub/actions/workflows/CI-test.yml)\n[![Release](https://github.com/EutropicAI/yuisub/actions/workflows/Release.yml/badge.svg)](https://github.com/EutropicAI/yuisub/actions/workflows/Release.yml)\n[![PyPI version](https://badge.fury.io/py/yuisub.svg)](https://badge.fury.io/py/yuisub)\n![GitHub](https://img.shields.io/github/license/EutropicAI/yuisub)\n\nAuto translation of new anime episodes based on ~~Yui-MHCP001~~ LLM\n\n### Install\n\nMake sure you have Python \u003e= 3.9 installed on your system\n\n```bash\npip install yuisub\n```\n\nIf you wanna use the `a2t` module, you need to install `Whisper` first\n\n```bash\n# pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118\npip install openai-whisper\n```\n\n### Command Line Usage\n\n`yuisub` can be used from the command line to generate bilingual ASS files. Here's how to use it:\n\n```bash\nyuisub -h  # Displays help message\n```\n\n### Library\n\n`yuisub` can also be used as a library\n\n```python3\nimport asyncio\n\nfrom yuisub import SubtitleTranslator\n\n# Using an asynchronous environment\nasync def main() -\u003e None:\n    translator = SubtitleTranslator(\n        # if you wanna use audio input\n        # torch_device='cuda',\n        # whisper_model='medium',\n\n        model='gpt_model_name',\n        api_key='your_openai_api_key',\n        base_url='api_url',\n        bangumi_url='https://bangumi.tv/subject/424883/',\n        bangumi_access_token='your_bangumi_token',\n    )\n\n    sub_zh, sub_bilingual = await translator.get_subtitles(sub='path/to/sub.srt') # Or audio='path/to/audio.mp3',\n    sub_zh.save('path/to/output_zh.ass')\n    sub_bilingual.save('path/to/output_bilingual.ass')\n\nasyncio.run(main())\n```\n\n### License\n\nThis project is licensed under the GPL-3.0 license - see\nthe [LICENSE file](https://github.com/TohruskyDev/yuisub/blob/main/LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEutropicAI%2Fyuisub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEutropicAI%2Fyuisub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEutropicAI%2Fyuisub/lists"}