'commit'
This commit is contained in:
@@ -3,13 +3,13 @@ import time
|
||||
import uuid
|
||||
import requests
|
||||
|
||||
from Config.Config import HS_ASR_APP_ID, HS_ASR_TOKEN
|
||||
from Config.Config import HS_APP_ID, HS_ACCESS_TOKEN
|
||||
|
||||
|
||||
class ASRClient:
|
||||
def __init__(self, appid=None, token=None, file_url=None):
|
||||
self.appid = appid or HS_ASR_APP_ID
|
||||
self.token = token or HS_ASR_TOKEN
|
||||
self.appid = appid or HS_APP_ID
|
||||
self.token = token or HS_ACCESS_TOKEN
|
||||
self.file_url = file_url or "https://ttc-advisory-oss.oss-cn-hangzhou.aliyuncs.com/lark_audio/int/T_APLA_1941058348698869760.mp3"
|
||||
self.submit_url = "https://openspeech-direct.zijieapi.com/api/v3/auc/bigmodel/submit"
|
||||
self.query_url = "https://openspeech-direct.zijieapi.com/api/v3/auc/bigmodel/query"
|
||||
|
Reference in New Issue
Block a user