feat: 增加讯飞asr功能
This commit is contained in:
1 parent
30fdb9c6bd
commit
09ffeb6ab6
3 files changed
+78
-34
No files matched your search
@@ -8,9 +8,9 @@ class DevelopmentConfig:
|
||||
PORT = 8001 #uvicorn运行端口
|
||||
WORKERS = 12 #uvicorn进程数(通常与cpu核数相同)
|
||||
class XF_ASR:
|
||||
APP_ID = "your_app_id" #讯飞语音识别APP_ID
|
||||
API_SECRET = "your_api_secret" #讯飞语音识别API_SECRET
|
||||
API_KEY = "your_api_key" #讯飞语音识别API_KEY
|
||||
APP_ID = "f1c121c1" #讯飞语音识别APP_ID
|
||||
API_SECRET = "NjQwODA5MTA4OTc3YjIyODM2NmVlYWQ0" #讯飞语音识别API_SECRET
|
||||
API_KEY = "36b316c7977fa534ae1e3bf52157bb92" #讯飞语音识别API_KEY
|
||||
DOMAIN = "iat"
|
||||
LANGUAGE = "zh_cn"
|
||||
ACCENT = "mandarin"
|
||||
@@ -23,6 +23,6 @@ class DevelopmentConfig:
|
||||
URL = "https://api.minimax.chat/v1/t2a_pro",
|
||||
GROUP_ID ="1759482180095975904"
|
||||
class STRAM_CHAT:
|
||||
ASR = "LOCAL"
|
||||
ASR = "XF" # 语音识别引擎,可选XF或者LOCAL
|
||||
TTS = "LOCAL"
|
||||
|
||||
Reference in new issue
Block a user