optimize code

This commit is contained in:
harry
2024-04-22 16:25:13 +08:00
parent 6a5c4e9e73
commit c7c7b4847e
3 changed files with 11 additions and 5 deletions

View File

@@ -1023,7 +1023,6 @@ def parse_voice_name(name: str):
def is_azure_v2_voice(voice_name: str):
voice_name = parse_voice_name(voice_name)
print(voice_name)
if voice_name.endswith("-V2"):
return voice_name.replace("-V2", "").strip()
return ""