You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Align the silence scale range between Validate() and ScaleSilence
After #3745, ScaleSilence accepts [0.01, 2] but OfflineTtsConfig::Validate()
still only rejects silence_scale < 0.001. Values in [0.001, 0.01) and above 2
therefore pass validation and are then silently skipped at run time, so the
user asks for scaling and gets unscaled audio.
Use one pair of constants for both, document the range in the --tts-silence-scale
help text, and raise the upper bound from 2 to 10.
Rejecting in Validate() also makes bad input fail before synthesis rather than
after it. The check in ScaleSilence stays, because callers of the Generate API
pass GeneratedAudioConfig::silence_scale directly and bypass Validate().
0 commit comments