'commit'
This commit is contained in:
@@ -114,15 +114,12 @@ class ASRClient:
|
|||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
|
|
||||||
def main(audio_url=None):
|
|
||||||
# 创建ASR客户端实例,传入指定的音频文件URL
|
|
||||||
asr_client = ASRClient(file_url=audio_url)
|
|
||||||
# 处理ASR任务并获取文本结果
|
|
||||||
text_result = asr_client.process_task()
|
|
||||||
return text_result
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# 使用指定的音频文件URL进行测试
|
# 使用指定的音频文件URL进行测试
|
||||||
audio_url = "https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/Temp/temp_audio_20250822085243.wav"
|
audio_url = "https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/Temp/temp_audio_20250822085243.wav"
|
||||||
main(audio_url)
|
# 创建ASR客户端实例,传入指定的音频文件URL
|
||||||
|
asr_client = ASRClient(file_url=audio_url)
|
||||||
|
# 处理ASR任务并获取文本结果
|
||||||
|
text_result = asr_client.process_task()
|
||||||
|
Reference in New Issue
Block a user