diff --git a/voice/factory.py b/voice/factory.py index 2269d9e..e707c63 100644 --- a/voice/factory.py +++ b/voice/factory.py @@ -51,7 +51,11 @@ def create_voice(voice_type): return XunfeiVoice() elif voice_type == "tencent": - from voice.telent.tencent_voice import TencentVoice + from voice.tencent.tencent_voice import TencentVoice return TencentVoice() + elif voice_type == "funasr": + from voice.funasr.fun_voice import FunVoice + + return FunVoice() raise RuntimeError diff --git a/voice/telent/config.json.template b/voice/telent/config.json.template deleted file mode 100644 index 0e5526a..0000000 --- a/voice/telent/config.json.template +++ /dev/null @@ -1,5 +0,0 @@ -{ - "voice_type": 1003, # 客服女声 - "tencent_secret_id": "YOUR_SECRET_ID", - "tencent_secret_key": "YOUR_SECRET_KEY" -} diff --git a/voice/tencent/config.json.template b/voice/tencent/config.json.template new file mode 100644 index 0000000..91a035c --- /dev/null +++ b/voice/tencent/config.json.template @@ -0,0 +1,5 @@ +{ + "voice_type": 1003, # 客服女声 + "secret_id": "YOUR_SECRET_ID", + "secret_key": "YOUR_SECRET_KEY" +} diff --git a/voice/telent/tencent_voice.py b/voice/tencent/tencent_voice.py similarity index 100% rename from voice/telent/tencent_voice.py rename to voice/tencent/tencent_voice.py