This commit is contained in:
qinzy
2024-02-19 23:15:47 +00:00
parent 734228934f
commit db237ce6a5
62 changed files with 14 additions and 17 deletions

View File

@@ -4,7 +4,7 @@
</div>
## Introduction
MyShellTTSBase is a high-quality multi-lingual text-to-speech library. Example languages include:
MeloTTS is a high-quality multi-lingual text-to-speech library. Example languages include:
| Language | Example |
| --- | --- |
@@ -23,16 +23,17 @@ The Chinese speaker supports `mixed Chinese and English`.
## Install
```bash
git clone git@github.com:myshell-ai/MyShellTTSBase.git
cd MyShellTTSBase
python setup.py install
git clone git@github.com:myshell-ai/MeloTTS.git
cd MeloTTS
pip install -e .
python -m unidic download
```
## Usage
### English with Multi Accents
```python
from MyShellTTSBase.api import TTS
from melo.api import TTS
# Speed is adjustable
speed = 1.0
@@ -66,7 +67,7 @@ model.tts_to_file(text, speaker_ids['EN-AU'], output_path, speed=speed)
### Spanish
```python
from MyShellTTSBase.api import TTS
from melo.api import TTS
# Speed is adjustable
speed = 1.0
@@ -80,7 +81,7 @@ model.tts_to_file(text, speaker_ids['ES'], output_path, speed=speed)
### French
```python
from MyShellTTSBase.api import TTS
from melo.api import TTS
# Speed is adjustable
speed = 1.0
@@ -94,7 +95,7 @@ model.tts_to_file(text, speaker_ids['FR'], output_path, speed=speed)
### Chinese
```python
from MyShellTTSBase.api import TTS
from melo.api import TTS
# Speed is adjustable
speed = 1.0
@@ -108,7 +109,7 @@ model.tts_to_file(text, speaker_ids['ZH'], output_path, speed=speed)
### Japanese
```python
from MyShellTTSBase.api import TTS
from melo.api import TTS
# Speed is adjustable
speed = 1.0
@@ -122,7 +123,7 @@ model.tts_to_file(text, speaker_ids['JP'], output_path, speed=speed)
### Korean
```python
from MyShellTTSBase.api import TTS
from melo.api import TTS
# Speed is adjustable
speed = 1.0

View File

@@ -9,7 +9,7 @@ from . import punctuation, symbols
from num2words import num2words
from MyShellTTSBase.text.ko_dictionary import english_dictionary, etc_dictionary
from melo.text.ko_dictionary import english_dictionary, etc_dictionary
from anyascii import anyascii
from jamo import hangul_to_jamo

View File

@@ -20,7 +20,7 @@ class PostDevelopCommand(develop):
os.system('python -m unidic download')
setup(
name='MyShellTTSBase',
name='melo',
version='0.1.0',
packages=find_packages(),
include_package_data=True,
@@ -28,8 +28,4 @@ setup(
package_data={
'': ['*.txt', 'cmudict_*'],
},
cmdclass={
'develop': PostDevelopCommand,
'install': PostInstallCommand,
},
)

View File

@@ -1,4 +1,4 @@
from MyShellTTSBase.api import TTS
from melo.api import TTS
import os
import glob
import sys