Skip voices that are not installed in MaryTTS '/voices' endpoint
Programs that use Mary-TTS API will likely get confused by the large number of uninstalled voices.
This commit is contained in:
parent
8fc6a887d3
commit
ce538641c1
1 changed files with 3 additions and 0 deletions
|
|
@ -317,6 +317,9 @@ def get_app(args: argparse.Namespace, request_queue: Queue, temp_dir: str):
|
|||
tech = "vits"
|
||||
|
||||
for voice in sorted_voices:
|
||||
if not voice.location or voice.location.startswith("https://"):
|
||||
# Skip voices that are not yet installed
|
||||
continue
|
||||
if voice.is_multispeaker:
|
||||
# List each speaker separately
|
||||
for speaker in voice.speakers:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue