afaligner icon indicating copy to clipboard operation
afaligner copied to clipboard

Allow passing configuration into aeneas

Open dhouck opened this issue 2 years ago • 0 comments

For some reason (no clue what), I get terrible synchronization with espeak and espeak-ng, but decent synchronization with festival. Itʼd be nice to be able to pass tts=festival into aeneas. I have a hardcoded patch Iʼve applied:

from aeneas.runtimeconfiguration import RuntimeConfiguration as RConf

and replace the existing synthesizer creation with

    rconf = RConf("tts=festival")
    synthesizer = Synthesizer(rconf)

but thatʼs obviously a terrible general solution (most people probably would prefer espeak, and if they donʼt they might prefer one of the other options, and this doesnʼt account for other things one might want to pass to aeneas).

dhouck avatar Feb 27 '23 21:02 dhouck