|
|
|
@ -11,11 +11,11 @@ if __name__ == '__main__':
|
|
|
|
|
# 3、将转换完成的WAV上传到阿里云
|
|
|
|
|
|
|
|
|
|
# 4、调用阿里云的语音识别API,将wav文件转成文字
|
|
|
|
|
audio_url = "https://ylt.oss-cn-hangzhou.aliyuncs.com/HuangHai/123.wav"
|
|
|
|
|
ShiBie(audio_url, Path("识别结果.txt"))
|
|
|
|
|
#audio_url = "https://ylt.oss-cn-hangzhou.aliyuncs.com/HuangHai/123.wav"
|
|
|
|
|
#ShiBie(audio_url, Path("识别结果.txt"))
|
|
|
|
|
# 2.5元一小时,本音频文件45分钟,约2元
|
|
|
|
|
|
|
|
|
|
# 6、生成总结
|
|
|
|
|
# input_file = Path(r"D:\dsWork\QingLong\AI\音频文本.txt")
|
|
|
|
|
# output_file = Path(r"D:\dsWork\QingLong\AI\分析结果.txt")
|
|
|
|
|
# analyzer_action(input_file, output_file)
|
|
|
|
|
input_file = Path(r"D:\dsWork\QingLong\AI\音频文本.txt")
|
|
|
|
|
output_file = Path(r"D:\dsWork\QingLong\AI\分析结果.txt")
|
|
|
|
|
analyzer_action(input_file, output_file)
|
|
|
|
|