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

No files matched your search

+11 -10
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1 -5
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,
},
)
+1 -1
View File
@@ -1,4 +1,4 @@
from MyShellTTSBase.api import TTS
from melo.api import TTS
import os
import glob
import sys