Clear speaker before setting voice in HTTP server
This commit is contained in:
parent
82e9bcda30
commit
c0f5133d72
1 changed files with 1 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ def do_synthesis(item: SynthesisRequest, mimic3: Mimic3TextToSpeechSystem) -> by
|
|||
Returns: WAV bytes
|
||||
"""
|
||||
params = item.params
|
||||
mimic3.speaker = None
|
||||
mimic3.voice = params.voice
|
||||
|
||||
mimic3.settings.length_scale = params.length_scale
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue