From 6f091b2179884b915491de231359ccf9f21d8733 Mon Sep 17 00:00:00 2001 From: HuangHai <10402852@qq.com> Date: Fri, 22 Aug 2025 09:51:30 +0800 Subject: [PATCH] 'commit' --- dsLightRag/Util/{ASRCService.py => ASRClient.py} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename dsLightRag/Util/{ASRCService.py => ASRClient.py} (97%) diff --git a/dsLightRag/Util/ASRCService.py b/dsLightRag/Util/ASRClient.py similarity index 97% rename from dsLightRag/Util/ASRCService.py rename to dsLightRag/Util/ASRClient.py index 8402a3f5..a14d27af 100644 --- a/dsLightRag/Util/ASRCService.py +++ b/dsLightRag/Util/ASRClient.py @@ -6,7 +6,7 @@ import requests from Config.Config import HS_APP_ID, HS_ACCESS_TOKEN -class ASRCService: +class ASRClient: def __init__(self, appid=None, token=None, file_url=None): self.appid = appid or HS_APP_ID self.token = token or HS_ACCESS_TOKEN @@ -120,6 +120,6 @@ if __name__ == '__main__': # 使用指定的音频文件URL进行测试 audio_url = "https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/Temp/temp_audio_20250822085243.wav" # 创建ASR客户端实例,传入指定的音频文件URL - asr_service = ASRCService(file_url=audio_url) + asr_client = ASRClient(file_url=audio_url) # 处理ASR任务并获取文本结果 - text_result = asr_service.process_task() + text_result = asr_client.process_task()