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

View File

@@ -9,7 +9,7 @@ from . import punctuation, symbols
from num2words import num2words 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 anyascii import anyascii
from jamo import hangul_to_jamo from jamo import hangul_to_jamo

View File

@@ -20,7 +20,7 @@ class PostDevelopCommand(develop):
os.system('python -m unidic download') os.system('python -m unidic download')
setup( setup(
name='MyShellTTSBase', name='melo',
version='0.1.0', version='0.1.0',
packages=find_packages(), packages=find_packages(),
include_package_data=True, include_package_data=True,
@@ -28,8 +28,4 @@ setup(
package_data={ package_data={
'': ['*.txt', 'cmudict_*'], '': ['*.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 os
import glob import glob
import sys import sys