piper icon indicating copy to clipboard operation
piper copied to clipboard

Allow for synthesize to be called again for the same wav_file

Open ygerlach opened this issue 8 months ago • 1 comments

Currently you can not call synthesize multiple times for the same wav file. So doing stuff like creating some tts with model a and then appending some tts with model b is not possible, because setting wav parameter, after some frames where written is not allowed (throws a wave.Error)

This change makes sure to catch the possible error, but still ensures the parameter in wav_file are still correctly set for the used model.

ygerlach avatar Apr 12 '25 18:04 ygerlach

@synesthesiam can you take a look at this PR, please?

ygerlach avatar Apr 30 '25 16:04 ygerlach

A set_wav_format boolean has been added to synthesize_wav here: https://github.com/OHF-Voice/piper1-gpl

synesthesiam avatar Jul 10 '25 21:07 synesthesiam