myshell-ai / MeloTTS

High-quality multi-lingual text-to-speech library by MyShell.ai. Support English, Spanish, French, Chinese, Japanese and Korean.
MIT License
4.81k stars 625 forks source link

PIP Package #24

Closed fakerybakery closed 8 months ago

fakerybakery commented 8 months ago

Hi, This is already pip-packaged, but it is not published on PyPI. This means:

  1. It cannot be specified as a requirement on other packages published on PyPI
  2. It must be installed via Git

Do you think it might be possible to publish it on PyPI in the future? If so, I'd be happy to make a PR that will use GitHub Actions to automatically publish the package on new updates.

Thanks!

Zengyi-Qin commented 8 months ago

Sure! Let's publish it on PyPI. Could you help make a PR?

fakerybakery commented 8 months ago

Sure! Before the package can be published to PyPI, it must first be published manually. Here are the steps:

  1. Register for PyPI here
  2. Git clone MeloTTS, cd, etc
  3. Needs a unique name, opened #25
  4. Build distributable:
    python setup.py sdist
    pip install twine
    twine upload dist/*
  5. Go to PyPI > Settings, generate a Write-access API key for the MeloTTS project. Go to Settings in the GitHub repo > Secrets and Variables > Actions > New repository secret. Name it PYPI_API_TOKEN and set the value to the API token
  6. Whenever there is a major update, bump the version in setup.py and create a new GitHub release

I'll open a PR, but these steps must first be completed before the PR will work. Melo can then be installed with pip install melotts Thanks!

Zengyi-Qin commented 8 months ago

Thank you! Let me follow these steps

Zengyi-Qin commented 8 months ago

All the above steps are completed

fakerybakery commented 8 months ago

Found a bug, addressed in #28. After it is fixed, MeloTTS can be installed with pip install melotts

GordonWu commented 8 months ago

@fakerybakery Hi, quick note: got an error when trying to pip install melotts.

image

fakerybakery commented 8 months ago

Yes, that is resolved in #28