spotify / pedalboard

🎛 🔊 A Python library for audio.

Home Page:https://spotify.github.io/pedalboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need help with parameters for improving TTS generated audio

FurkanGozukara opened this issue · comments

Hello. Ty so much for this excellent library

I am using below settings to improve quality of audio generated via coqui-ai/TTS V2

Preparing a tutorial hopefully and will use and mention your library as well

Will be published on https://www.youtube.com/SECourses hopefully

Now my question is how can I improve quality of the TTS?

This is how I am using

    board = Pedalboard([
		NoiseGate(threshold_db=-30, ratio=1.5, release_ms=250),
		Compressor(threshold_db=12, ratio=2.5),
		LowShelfFilter(cutoff_frequency_hz=400, gain_db=5, q=1),
		HighpassFilter(cutoff_frequency_hz=80), 
		#Reverb(room_size=0.5, damping=0.5, wet_level=0.3, dry_level=0.7),  
		Limiter(threshold_db=-0.1),  
		Gain(gain_db=0)
	])

            reduced_noise = noisereduce.reduce_noise(y=audio_tensor.numpy(), sr=24000, stationary=True, prop_decrease=0.75)
            processed_audio = board(reduced_noise, 24000)

Here example audio

output.mp4