{"id":13456812,"url":"https://github.com/botbahlul/PyAutoSRT","last_synced_at":"2025-03-24T11:31:24.234Z","repository":{"id":65803103,"uuid":"600146969","full_name":"botbahlul/PyAutoSRT","owner":"botbahlul","description":"PySimpleGUI based DESKTOP APP to AUTO GENERATE SUBTITLE FILE (using free Google Speech Recognition API) and TRANSLATED SUBTITLE FILE (using unofficial online Google Translate API) for any video or audio file","archived":false,"fork":false,"pushed_at":"2024-05-05T17:02:57.000Z","size":691,"stargazers_count":175,"open_issues_count":1,"forks_count":17,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-22T15:52:13.174Z","etag":null,"topics":["auto-caption","auto-subtitle","captions","ffmpeg","google-translate","google-translate-api","pysimplegui","python","speech-recognition","srt-subtitle","subriptext","subtitle","voice-recognition"],"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/botbahlul.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-02-10T17:32:38.000Z","updated_at":"2025-03-22T06:04:21.000Z","dependencies_parsed_at":"2024-07-31T08:24:55.787Z","dependency_job_id":null,"html_url":"https://github.com/botbahlul/PyAutoSRT","commit_stats":{"total_commits":23,"total_committers":1,"mean_commits":23.0,"dds":0.0,"last_synced_commit":"d06c19af34546caded495b2c3d294d2542f79598"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botbahlul%2FPyAutoSRT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botbahlul%2FPyAutoSRT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botbahlul%2FPyAutoSRT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botbahlul%2FPyAutoSRT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/botbahlul","download_url":"https://codeload.github.com/botbahlul/PyAutoSRT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245153894,"owners_count":20569408,"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":["auto-caption","auto-subtitle","captions","ffmpeg","google-translate","google-translate-api","pysimplegui","python","speech-recognition","srt-subtitle","subriptext","subtitle","voice-recognition"],"created_at":"2024-07-31T08:01:28.214Z","updated_at":"2025-03-24T11:31:24.206Z","avatar_url":"https://github.com/botbahlul.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# pyautosrt \u003ca href=\"https://pypi.python.org/pypi/pyautosrt\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/pyautosrt.svg\"\u003e\u003c/img\u003e\u003c/a\u003e\n\n\n\nhttps://user-images.githubusercontent.com/88623122/218178963-fb77891c-1845-4514-8806-069dc342dca3.mp4\n\n### UPDATE NOTES\nSINCE VERSION 0.1.14 I ADDED streamlink MODULE WHICH SUPPORTS urllib3 \u003e=1.26.0, \u003c3.x BRANCH ONLY, SO IF YOU'RE STILL WANT TO INSTALL THIS APP TRY TO REINSTALL streamlink WITH \\\"--force-reinstall\\\" ARGUMENT.\n```\npip install streamlink --force-reinstall\n```\n\nTO COMPILE THAT pyautosrt.pyw IN LINUX/WIN FOLDER WITH pyinstaller YOU SHOULD USE THAT \\\"mypyinstaller.sh\\\"/\\\"mypyinstaller.bat\\\"\n\n### Auto generate subtitles files for any video/audio files\n\nPyAutoSRT is a PySimpleGUI based desktop app to auto generate subtitle and translated subtitle file for any video or audio file\n\nThe core script is a modified version of original autosub made by Anastasis Germanidis\nhttps://github.com/agermanidis/autosub\n\n### Installation\n\nIf you don't have python on your Windows system you can try compiled version from https://github.com/botbahlul/pyautosrt/releases/\n\nJust extract those ffmpeg.exe and pyautosrt.exe into a folder that has been added to PATH ENVIRONTMENT for example in C:\\Windows\\system32\n\nYou can get latest version of ffmpeg from https://www.ffmpeg.org/\n\nIf it doesn't run well then you need to install python on your Windows system.\n\nIn Linux you have to install this script with python (version minimal 3.8 ) and install ffmpeg with your linux package manager for example in debian based linux distribution you can type :\n\n```\napt update\napt install -y ffmpeg\n```\n\nTo install this pyautosrt, just type :\n```\npip install pyautosrt\n```\n\nYou can compile this script into a single executable file with pyinstaller by downloading \"\\__init\\__.py\" file, rename it to pyautosrt.py and type :\n```\npip install pyinstaller\npyinstaller --onefile pyautosrt.py\n```\n\nThe executable compiled file will be placed by pyinstaller into dist subfolder of your current working folder, so you can just rename and put that compiled file into a folder that has been added to your PATH ENVIRONTMENT so you can execute it from anywhere\n\nI was succesfuly compiled it in Windows 10 with pyinstaller-5.1 and Pyhton-3.10.4, and python-3.8.12 in Debian 9\n\nAnother alternative way to install this script with python is by cloning this git (or downloading this git as zip then extract it into a folder), and then just type :\n\n```\npython setup.py build\npython setup.py install\n```\n\n### Usage \n\n```\nusage: pyautosrt [-h] [-S SRC_LANGUAGE] [-D DST_LANGUAGE] [-ll] [-F FORMAT] [-lf] [-es EMBED_SRC] [-ed EMBED_DST]\n                     [-fr FORCE_RECOGNIZE] [-v]\n                     [source_path ...]\n\npositional arguments:\n  source_path           Path to the video or audio files to generate subtitle (use wildcard for multiple files or separate them with\n                        a space character e.g. \"file 1.mp4\" \"file 2.mp4\")\n\noptions:\n  -h, --help            show this help message and exit\n  -S SRC_LANGUAGE, --src-language SRC_LANGUAGE\n                        Language code of the audio language spoken in video/audio source_path\n  -D DST_LANGUAGE, --dst-language DST_LANGUAGE\n                        Desired translation language code for the subtitles\n  -ll, --list-languages\n                        List all supported languages\n  -F FORMAT, --format FORMAT\n                        Desired subtitle format\n  -lf, --list-formats   List all supported subtitle formats\n  -es EMBED_SRC, --embed-src EMBED_SRC\n                        Boolean value (True or False) for embed_src subtitles file into video file\n  -ed EMBED_DST, --embed-dst EMBED_DST\n                        Boolean value (True or False) for embed_src subtitles file into video file\n  -fr FORCE_RECOGNIZE, --force-recognize FORCE_RECOGNIZE\n                        Boolean value (True or False) for re-recognize media file event if it's already has subtitles stream\n  -v, --version         show program's version number and exit\n```\n\nThose command switches \\'-S\\', \\'-D\\', and \\'-F\\' are not mandatory. They just make combobox directly select your desired options if you prefer to type it rather that click on combobox. Please note that these arguments are only work if you install this app with pip (won't work if you run that executable from releases zip file).\n\nUPDATE NOTES : SINCE VERSION 0.1.1 YOU CAN SELECT MULTIPLE VIDEO/AUDIO FILES, BUT REMEMBER THAT ALL FILES YOU SELECT SHOULD HAVE SAME AUDIO LANGUAGE AND DESIRED TRANSLATION LANGUAGE.\n\n### License\n\nMIT\n\nCheck my other SPEECH RECOGNITIION + TRANSLATE PROJECTS https://github.com/botbahlul?tab=repositories\n\nBuy me coffee : https://sociabuzz.com/botbahlul/tribe\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotbahlul%2FPyAutoSRT","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbotbahlul%2FPyAutoSRT","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotbahlul%2FPyAutoSRT/lists"}