{"id":20937759,"url":"https://github.com/willwade/mms-tts-multilingual-models-onnx","last_synced_at":"2025-04-11T15:04:20.986Z","repository":{"id":249879701,"uuid":"832836877","full_name":"willwade/mms-tts-multilingual-models-onnx","owner":"willwade","description":"Code to convert MMS tts models to onnx-sherpa on bulk","archived":false,"fork":false,"pushed_at":"2024-07-24T07:45:29.000Z","size":62,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T11:11:20.329Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/willwade.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}},"created_at":"2024-07-23T20:20:23.000Z","updated_at":"2025-01-27T19:10:06.000Z","dependencies_parsed_at":"2025-01-19T20:22:44.612Z","dependency_job_id":"6cc1db40-e5f5-44b1-a467-6da98fd1212d","html_url":"https://github.com/willwade/mms-tts-multilingual-models-onnx","commit_stats":null,"previous_names":["willwade/mms-tts-multilingual-models-onnx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willwade%2Fmms-tts-multilingual-models-onnx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willwade%2Fmms-tts-multilingual-models-onnx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willwade%2Fmms-tts-multilingual-models-onnx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willwade%2Fmms-tts-multilingual-models-onnx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willwade","download_url":"https://codeload.github.com/willwade/mms-tts-multilingual-models-onnx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248429056,"owners_count":21101779,"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":[],"created_at":"2024-11-18T22:45:29.225Z","updated_at":"2025-04-11T15:04:20.956Z","avatar_url":"https://github.com/willwade.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Convert MMS to Sherpa-ONNX models and push to huggingface\n\nSee converted onnx models at https://huggingface.co/willwade/mms-tts-multilingual-models-onnx/tree/main\nThis script made those - on a rented a100\n\n## Setup\n\n1. Create a repository on Hugging Face (you can do this via the Hugging Face website or CLI).\n2. Generate an API token from your Hugging Face account settings.\n\n3. Build regular Sherpa-ONNX - this is for a GPU machine - NB: YOU NEED TO INSTALL CUDA FIRST. Follow kinda the instructions at https://k2-fsa.github.io/k2/installation/cuda-cudnn.html\n\n```bash\ncd ~\nsudo apt-get install alsa-utils libasound2-dev\ngit clone https://github.com/k2-fsa/sherpa-onnx\ncd sherpa-onnx\nmkdir build\ncd build\ncmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DSHERPA_ONNX_ENABLE_GPU=ON ..\nmake -j6\n```\n\n4. Get ready for our code. \n\n```bash\ncd ~\ngit clone https://github.com/willwade/mms-tts-multilingual-models-onnx\ncd mms-tts-multilingual-models-onnx\npip install -qq torch==1.13.0+cpu -f https://download.pytorch.org/whl/torch_stable.html\npip install -r requirements.txt\n\ngit clone https://huggingface.co/spaces/mms-meta/MMS\nexport PYTHONPATH=$PWD/MMS:$PYTHONPATH\nexport PYTHONPATH=$PWD/MMS/vits:$PYTHONPATH\n\npushd MMS/vits/monotonic_align\n\npython3 setup.py build\n\nls -lh build/\nls -lh build/lib*/\nls -lh build/lib*/*/\n\ncp build/lib*/vits/monotonic_align/core*.so .\n\nsed -i.bak s/.monotonic_align.core/.core/g ./__init__.py\npopd\n\n\nexport HF_TOKEN=your_huggingface_token\n```\n\n## Run\n\n```bash\npython main.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillwade%2Fmms-tts-multilingual-models-onnx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillwade%2Fmms-tts-multilingual-models-onnx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillwade%2Fmms-tts-multilingual-models-onnx/lists"}