feat: support azure voice

This commit is contained in:
lanvent
2023-04-01 16:36:27 +08:00
parent 47cc65a787
commit 1545a9f262
4 changed files with 84 additions and 3 deletions

View File

@@ -20,4 +20,7 @@ def create_voice(voice_type):
elif voice_type == 'pytts':
from voice.pytts.pytts_voice import PyttsVoice
return PyttsVoice()
elif voice_type == 'azure':
from voice.azure.azure_voice import AzureVoice
return AzureVoice()
raise RuntimeError