{"id":15521107,"url":"https://github.com/wannaphong/ttsmms","last_synced_at":"2025-04-05T07:05:33.021Z","repository":{"id":168503626,"uuid":"644231842","full_name":"wannaphong/ttsmms","owner":"wannaphong","description":"TTS with The Massively Multilingual Speech (MMS) project","archived":false,"fork":false,"pushed_at":"2024-07-12T13:22:54.000Z","size":3438,"stargazers_count":228,"open_issues_count":13,"forks_count":37,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-29T06:04:36.101Z","etag":null,"topics":["library","python","text-to-speech"],"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/wannaphong.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":"support_list.txt","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"wannaphong"}},"created_at":"2023-05-23T05:14:12.000Z","updated_at":"2025-02-27T08:59:04.000Z","dependencies_parsed_at":"2024-12-07T23:04:43.564Z","dependency_job_id":"e805f041-70cf-4f9b-9843-747ddf5977fc","html_url":"https://github.com/wannaphong/ttsmms","commit_stats":null,"previous_names":["wannaphong/ttsmms"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wannaphong%2Fttsmms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wannaphong%2Fttsmms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wannaphong%2Fttsmms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wannaphong%2Fttsmms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wannaphong","download_url":"https://codeload.github.com/wannaphong/ttsmms/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299832,"owners_count":20916190,"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":["library","python","text-to-speech"],"created_at":"2024-10-02T10:32:20.250Z","updated_at":"2025-04-05T07:05:33.002Z","avatar_url":"https://github.com/wannaphong.png","language":"Python","funding_links":["https://github.com/sponsors/wannaphong"],"categories":[],"sub_categories":[],"readme":"# ttsmms\nText-to-speech with The Massively Multilingual Speech (MMS) project\n\nThis project want to help you for use Text-to-speech model from MMS project in Python.\n\nSupport 1,107 Languages! (See support_list.txt)\n\n- VITS: [GitHub](https://github.com/jaywalnut310/vits)\n- MMS: Scaling Speech Technology to 1000+ languages: [GitHub](https://github.com/facebookresearch/fairseq/tree/main/examples/mms)\n\n[Google colab](https://colab.research.google.com/github/wannaphong/ttsmms/blob/main/notebook/test.ipynb)\n\n**Don't forget the TTS model in MMS project use CC-BY-NC license.**\n\n## Install\n\n\u003e pip install ttsmms\n\n\n## Usage\n\nFirst, you need to download the model by\n\n```python\nfrom ttsmms import download\n\ndir_path = download(\"eng\",\"./data\") # lang_code, dir for save model\n```\n\nor download file by yourself\n\n**Linux/Mac**\n\n1. download\n\n\u003e curl https://dl.fbaipublicfiles.com/mms/tts/lang_code.tar.gz --output lang_code.tar.gz\n\n2. extract a tar ball archive.\n\n**Linux/Mac**\n\n\u003e mkdir -p data \u0026\u0026 tar -xzf lang_code.tar.gz -C data/\n\nand use code in python :D\n\n```python\nfrom ttsmms import TTS\n\ntts=TTS(dir_path) # or \"model_dir_path\" your path dir that extract a tar ball archive\nwav=tts.synthesis(\"txt\")\n# output:\n# {\n#    \"x\":array(wav array),\n#    \"sampling_rate\": 16000\n# }\n\ntts.synthesis(\"txt\",wav_path=\"example.wav\")\n# output: example.wav file\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwannaphong%2Fttsmms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwannaphong%2Fttsmms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwannaphong%2Fttsmms/lists"}