{"id":28149876,"url":"https://github.com/duc11021102/pyspeech","last_synced_at":"2026-05-16T08:03:43.585Z","repository":{"id":287226528,"uuid":"964015423","full_name":"duc11021102/pyspeech","owner":"duc11021102","description":"Python Text To Speech Using gTTS @duc11021102","archived":false,"fork":false,"pushed_at":"2025-08-13T05:15:41.000Z","size":613,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-13T07:08:07.403Z","etag":null,"topics":["anki","anki-flashcards","gtts-library","mp3-downloader","pygame","pyinstaller","sound","terminal-based","text-to-speech","translate-google"],"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/duc11021102.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2025-04-10T15:00:27.000Z","updated_at":"2025-08-13T05:15:44.000Z","dependencies_parsed_at":"2025-04-10T16:55:55.688Z","dependency_job_id":"799766a6-c50c-4881-86e7-4a60127e2f6f","html_url":"https://github.com/duc11021102/pyspeech","commit_stats":null,"previous_names":["duc11021102/pyspeech"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/duc11021102/pyspeech","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duc11021102%2Fpyspeech","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duc11021102%2Fpyspeech/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duc11021102%2Fpyspeech/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duc11021102%2Fpyspeech/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duc11021102","download_url":"https://codeload.github.com/duc11021102/pyspeech/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duc11021102%2Fpyspeech/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275867038,"owners_count":25542800,"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","status":"online","status_checked_at":"2025-09-18T02:00:09.552Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["anki","anki-flashcards","gtts-library","mp3-downloader","pygame","pyinstaller","sound","terminal-based","text-to-speech","translate-google"],"created_at":"2025-05-15T02:14:45.145Z","updated_at":"2026-05-16T08:03:43.578Z","avatar_url":"https://github.com/duc11021102.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PySpeech\nYou can create mp3 file with text and gTTS library (Google Translate's text-to-speech API)\n\n\u003ch4\u003e\u003cp align=\"center\"\u003e\u003cimg src=\"design/design-1.jpg\" width=\"800\"/\u003e\u003c/p\u003e\u003c/h4\u003e\n\u003ch4\u003e\u003cp align=\"center\"\u003e\u003cimg src=\"design/design-2.jpg\" width=\"800\"/\u003e\u003c/p\u003e\u003c/h4\u003e\n\n```\nWhat the program does? \n\n- Generate mp3 file with text\n- Generate multiple mp3 files through .txt file\n- Multilingual\n- A terminal windows program\n``` \n\n## Quick start \n\n\u003ch4\u003eThe simplest method is to install the portable version using the .exe file, available at \u003ca href=\"https://github.com/duc11021102/pyspeech/releases/download/v1.0/tts-audio.exe\"\u003ethis link\u003c/a\u003e.\n\u003cbr\u003e\nOr install with \u003cb\u003epython\u003c/b\u003e:\n\n### Requirements\n\n* Python (pip v25 or newer, python v3.10 or newer)\n* Python Libraries: `gTTS pygame pyinstaller`\n\n### Setup \n\n- Install the dependencies following these steps : \n\n  - Star this repository\n  - \u003c\u003eCode \u003e Download ZIP \u003e Open cmd/terminal in that location\n  - Run this command : `pip install -r requirements.txt`\n  - Run `tts-audio.py` or open `tts-audio.bat` after installation\n\n\n- If you want to build and creat a .exe program:\n\n  - Run this command : `pyinstaller --onefile --icon=icon.ico  tts-audio.py`\n  - Your .exe file in your generated dist folder\n\n### Setup with Docker\n\n- Pull and run:\n\n  - Run this command : `docker pull duc11021102/text-to-speech-audio`\n  - Run this command : `docker run --name tts -it duc11021102/text-to-speech-audio`\n\n### Command \n```/m``` - change mode (one .mp3 file or multiple .mp3 files)\n\n```/c``` - check current language\n\n```/s``` - enable/disable automatic audio playback\n\n```/*lang*``` - change language, default language is Chinese (Traditional), check \u003ca href=\"https://github.com/duc11021102/pyspeech/blob/main/langs.py\" \u003ethis file\u003ca/\u003e to use\n\nExample: ```/vi``` - change to Vietnamese\n\n##  Plans for future\n\u003cul\u003e\n  \u003cli\u003eMake add-on in Anki\u003c/li\u003e\n\u003c/ul\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduc11021102%2Fpyspeech","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduc11021102%2Fpyspeech","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduc11021102%2Fpyspeech/lists"}