Views
No views yet
1 model operating at 32-KHz (Effective 16-KHz) sample rate.Python==3.14 conda environment.noise_scale and noise_w to adjust variations for your workload. Or reference to PIPER_REPO. Furthermore, the best settings found are noise_scale : 0.75 and noise_w_scale : 0.75pip install piper-tts.json file..py with your desired name and add the below code.1import wave
2from piper import PiperVoice
3
4voice = PiperVoice.load("/path/to/YOUR_DOWNLOADED_MODEL.onnx")
5with wave.open("test.wav", "wb") as wav_file:
6 voice.synthesize_wav("Welcome to the world of speech synthesis!", wav_file)YOUR_DOWNLOAD_MODEL.onnxto the actual one.14920 samples, at 16-bit 32KHz on a RTX6000 96GB for 700 epochs with varying batch sizes.1python -m piper.train fit \
2--data.voice_name "mei" \
3--data.csv_path /teamspace/studios/this_studio/meta_data.csv \
4--data.audio_dir /teamspace/studios/this_studio/32k_sampling \
5--data.cache_dir /teamspace/studios/this_studio/compiled_data \
6--data.config_path /teamspace/studios/this_studio/onnx_models/config.json \
7--data.espeak_voice "en-us" \
8--data.batch_size 100 \
9--data.num_workers 10 \
10--data.trim_silence False \
11--model.sample_rate 32000 \
12--model.num_speakers 1 \
13--model.hidden_channels 256 \
14--model.inter_channels 256 \
15--model.filter_channels 1024 \
16--model.n_heads 4 \
17--model.n_layers 6 \
18--model.filter_length 1024 \
19--model.hop_length 256 \
20--model.win_length 1024 \
21--model.mel_channels 100 \
22--model.n_layers_q 3 \
23--model.p_dropout 0.05 \
24--model.gin_channels 0 \
25--model.use_sdp True \
26--model.resblock 1 \
27--model.segment_size 20480 \
28--model.resblock_kernel_sizes "[3, 7, 11]" \
29--model.resblock_dilation_sizes "[[1, 3, 5], [1, 3, 5], [1, 3, 5]]" \
30--model.upsample_rates "[8, 8, 2, 2]" \
31--model.upsample_initial_channel 512 \
32--model.upsample_kernel_sizes "[16, 16, 4, 4]" \
33--model.learning_rate 7e-5 \
34--model.lr_decay 1.0 \
35--model.learning_rate_d 6e-5 \
36--model.lr_decay_d 1.0 \
37--model.c_kl 1.0 \
38--model.c_mel 50 \
39--trainer.default_root_dir /teamspace/studios/this_studio/ \
40--trainer.max_epochs 700 \
41--trainer.log_every_n_steps 10