Install info
https://huggingface.co/neuphonic/neutts-air
Example
from neuttsair.neutts import NeuTTSAir
import soundfile as sf
tts = NeuTTSAir(backbone_repo="jaeyong2/neutts-air-th-preview", backbone_device="cpu", codec_repo="neuphonic/neucodec", codec_device="cpu")
input_text = "เพราะว่าพระเจ้าทรงรักโลก จนได้ประทานพระบุตรองค์เดียวของพระองค์ เพื่อทุกคนที่วางใจในพระองค์จะไม่พินาศ แต่มีชีวิตนิรันดร์"
ref_text = "train_000.txt"
ref_audio_path = "train_000.wav"
ref_text = open(ref_text, "r").read().strip()
ref_codes = tts.encode_reference(ref_audio_path)
wav = tts.infer(input_text, ref_codes, ref_text)
sf.write("new.wav", wav, 24000)
ref_audio (Porameht/processed-voice-th-169k)
jaeyong2/neutts-air-th result
neuphonic/neutts-air result
- Downloads last month
- 174
Model tree for jaeyong2/neutts-air-th-preview
Base model
neuphonic/neutts-air