mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-21 06:07:13 +08:00
修改配置文件及文件夹名称
This commit is contained in:
@@ -51,7 +51,11 @@ def create_voice(voice_type):
|
|||||||
|
|
||||||
return XunfeiVoice()
|
return XunfeiVoice()
|
||||||
elif voice_type == "tencent":
|
elif voice_type == "tencent":
|
||||||
from voice.telent.tencent_voice import TencentVoice
|
from voice.tencent.tencent_voice import TencentVoice
|
||||||
|
|
||||||
return TencentVoice()
|
return TencentVoice()
|
||||||
|
elif voice_type == "funasr":
|
||||||
|
from voice.funasr.fun_voice import FunVoice
|
||||||
|
|
||||||
|
return FunVoice()
|
||||||
raise RuntimeError
|
raise RuntimeError
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"voice_type": 1003, # 客服女声
|
|
||||||
"tencent_secret_id": "YOUR_SECRET_ID",
|
|
||||||
"tencent_secret_key": "YOUR_SECRET_KEY"
|
|
||||||
}
|
|
||||||
5
voice/tencent/config.json.template
Normal file
5
voice/tencent/config.json.template
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"voice_type": 1003, # 客服女声
|
||||||
|
"secret_id": "YOUR_SECRET_ID",
|
||||||
|
"secret_key": "YOUR_SECRET_KEY"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user