Mantella icon indicating copy to clipboard operation
Mantella copied to clipboard

xVASynth Error with samplerate

Open art-from-the-machine opened this issue 1 year ago • 1 comments

Text-To-Speech Error: Cannot access local variable 'samplerate' where it is not associated with a value

art-from-the-machine avatar Jul 31 '24 08:07 art-from-the-machine

I wasn't able to reproduce but I made an attempt to fix this here: #334

I assume it happens here if the batch synth fails before that for what ever reason and there is no file to read the samplerate from. The try/catch block catches this but the subsequent call to write requires the samplerate that does not exist. Pulling the write into the try/catch should fix this.

Leidtier avatar Aug 01 '24 13:08 Leidtier