tts_arabic
1.0.0
TTS-Arabic-Pytorch의 아랍어 TTS 모델 (Fastpitch)은 ONNX 형식으로 재생합니다.
오디오 샘플은 여기에서 찾을 수 있습니다.
설치 :
pip install git+https://github.com/nipponjo/tts_arabic.git
예 :
# %%
from tts_arabic import tts
# %%
text = "اَلسَّلامُ عَلَيكُم يَا صَدِيقِي."
wave = tts ( text , speaker = 2 , pace = 0.9 , play = True )
# %% Buckwalter transliteration
text = ">als~alAmu Ealaykum yA Sadiyqiy."
wave = tts ( text , speaker = 0 , play = True )
# %% Unvocalized input
text_unvoc = "القهوة مشروب يعد من بذور البن المحمصة"
wave = tts ( text_unvoc , play = True , vowelizer = 'shakkelha' )사전 제한 모델 :
| 모델 | 모델 ID | 유형 | #Params | 종이 |
|---|---|---|---|---|
| 금식 | 금식 | 텍스트-> 멜 | 46.3m | arxiv |
| mixrtts | 믹서 128 | 텍스트-> 멜 | 2.9m | arxiv |
| mixrtts | Mixer80 | 텍스트-> 멜 | 1.5m | arxiv |
| Hifi-gan | Hifigan | 보코더 | 13.9m | arxiv |
| 직업 | 직업 | 보코더 | 13.4m | arxiv |
TTS 옵션 :
from tts_arabic import tts
text = "اَلسَّلامُ عَلَيكُم يَا صَدِيقِي."
wave = tts (
text , # input text
speaker = 1 , # speaker id; choose between 0,1,2,3
pace = 1 , # speaker pace
denoise = 0.005 , # vocoder denoiser strength
play = True , # play audio?
pitch_mul = 1 , # pitch multiplier
pitch_add = 0 , # pitch offset
vowelizer = None , # vowelizer model
model_id = 'fastpitch' , # Model ID for Text->Mel model
vocoder_id = 'hifigan' , # Model ID for vocoder model
cuda = None , # Optional; CUDA device index
save_to = './test.wav' , # Optionally; save audio WAV file
bits_per_sample = 32 , # when save_to is specified (8, 16 or 32 bits)
)