feat: new voice class pytts

This commit is contained in:
lanvent
2023-03-28 03:14:26 +08:00
parent 80bf6a0c7a
commit e78886fb35
6 changed files with 66 additions and 60 deletions

View File

@@ -17,4 +17,7 @@ def create_voice(voice_type):
elif voice_type == 'openai':
from voice.openai.openai_voice import OpenaiVoice
return OpenaiVoice()
elif voice_type == 'pytts':
from voice.pytts.pytts_voice import PyttsVoice
return PyttsVoice()
raise RuntimeError