'commit'
This commit is contained in:
@@ -75,3 +75,8 @@ GPTNB_API_KEY = "sk-amQHwiEzPIZIB2KuF5A10dC23a0e4b02B48a7a2b6aFa0662"
|
||||
JWT_SECRET_KEY = "ZXZnZWVr5b+r5LmQ5L2g55qE5Ye66KGM"
|
||||
ALGORITHM = "HS256"
|
||||
ACCESS_TOKEN_EXPIRE_MINUTES = 300000 # 访问令牌过期时间(分钟)
|
||||
|
||||
# 火山引擎相关信息
|
||||
# 语音识别 https://console.volcengine.com/speech/service/10012?AppID=1513532196
|
||||
HS_ASR_APP_ID="1513532196"
|
||||
HS_ASR_TOKEN="ti2NW-kbjIbkzc6BK55actnI_wTR8xkH"
|
@@ -3,6 +3,8 @@ import time
|
||||
import uuid
|
||||
import requests
|
||||
|
||||
from Config.Config import HS_ASR_APP_ID, HS_ASR_TOKEN
|
||||
|
||||
|
||||
def submit_task():
|
||||
submit_url = "https://openspeech-direct.zijieapi.com/api/v3/auc/bigmodel/submit"
|
||||
@@ -107,9 +109,8 @@ file_url = "https://ttc-advisory-oss.oss-cn-hangzhou.aliyuncs.com/lark_audio/int
|
||||
|
||||
# 填入控制台获取的app id和access token
|
||||
|
||||
# https://console.volcengine.com/speech/service/10012?AppID=1513532196
|
||||
appid = "1513532196"
|
||||
token = "ti2NW-kbjIbkzc6BK55actnI_wTR8xkH"
|
||||
appid = HS_ASR_APP_ID
|
||||
token = HS_ASR_TOKEN
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
Reference in New Issue
Block a user