From 06f937b53e88502e5d254fb6e80a5fb9ee3b25e9 Mon Sep 17 00:00:00 2001 From: 游雁 <zhifu.gzf@alibaba-inc.com> Date: 星期一, 13 三月 2023 18:32:38 +0800 Subject: [PATCH] Merge branch 'main' of github.com:alibaba-damo-academy/FunASR add --- funasr/runtime/onnxruntime/readme.md | 73 ++++++++++++++++++++---------------- 1 files changed, 40 insertions(+), 33 deletions(-) diff --git a/funasr/runtime/onnxruntime/readme.md b/funasr/runtime/onnxruntime/readme.md index 56e9787..20b4a37 100644 --- a/funasr/runtime/onnxruntime/readme.md +++ b/funasr/runtime/onnxruntime/readme.md @@ -1,36 +1,5 @@ -## 鐗瑰埆楦h阿 -鏈▼搴忎腑鐨勯澶勭悊鍙婂悗澶勭悊浠g爜锛屾潵鑷簬锛歨ttps://github.com/chenkui164/FastASR - - -## 绾跨▼鏁颁笌鎬ц兘鍏崇郴 - -娴嬭瘯鐜Rocky Linux 8锛屼粎娴嬭瘯cpp鐗堟湰缁撴灉锛堟湭娴媝ython鐗堟湰锛夛紝@acely - -绠�杩帮細 -鍦�3鍙伴厤缃笉鍚岀殑鏈哄櫒涓婂垎鍒紪璇戝苟娴嬭瘯锛屽湪fftw鍜宱nnxruntime鐗堟湰閮界浉鍚岀殑鍓嶆彁涓嬶紝璇嗗埆鍚屼竴涓�30鍒嗛挓鐨勯煶棰戞枃浠讹紝鍒嗗埆娴嬭瘯涓嶅悓onnx绾跨▼鏁伴噺鐨勮〃鐜般�� - - - -## 娉ㄦ剰 -鏈▼搴忓彧鏀寔 閲囨牱鐜�16000hz, 浣嶆繁16bit鐨� **鍗曞0閬�** 闊抽銆� ## 蹇�熶娇鐢� @@ -38,7 +7,7 @@ 瀹夎Vs2022 鎵撳紑cpp_onnx鐩綍涓嬬殑cmake宸ョ▼锛岀洿鎺� build鍗冲彲銆� 鏈粨搴撳凡缁忓噯澶囧ソ鎵�鏈夌浉鍏充緷璧栧簱銆� - Windows涓嬪凡缁忛缃甪ftw3銆乷nnxruntime鍙妎penblas搴� + Windows涓嬪凡缁忛缃甪ftw3鍙妎nnxruntime搴� ### Linux @@ -60,6 +29,7 @@ ## 渚濊禆 - fftw3 +- openblas - onnxruntime ## 瀵煎嚭onnx鏍煎紡妯″瀷鏂囦欢 @@ -89,7 +59,11 @@ # onnxruntime-linux-x64-1.14.0 onnxruntime-linux-x64-1.14.0.tgz #install fftw3-dev -apt install libfftw3-dev +ubuntu: apt install libfftw3-dev +centos: yum install fftw fftw-devel + +#install openblas +bash ./third_party/install_openblas.sh # build cmake -DCMAKE_BUILD_TYPE=release .. -DONNXRUNTIME_DIR=/mnt/c/Users/ma139/RapidASR/cpp_onnx/build/onnxruntime-linux-x64-1.14.0 @@ -105,3 +79,36 @@ 鈹溾攢鈹�鈹�include 鈹斺攢鈹�鈹�lib ``` + +## 绾跨▼鏁颁笌鎬ц兘鍏崇郴 + +娴嬭瘯鐜Rocky Linux 8锛屼粎娴嬭瘯cpp鐗堟湰缁撴灉锛堟湭娴媝ython鐗堟湰锛夛紝@acely + +绠�杩帮細 +鍦�3鍙伴厤缃笉鍚岀殑鏈哄櫒涓婂垎鍒紪璇戝苟娴嬭瘯锛屽湪fftw鍜宱nnxruntime鐗堟湰閮界浉鍚岀殑鍓嶆彁涓嬶紝璇嗗埆鍚屼竴涓�30鍒嗛挓鐨勯煶棰戞枃浠讹紝鍒嗗埆娴嬭瘯涓嶅悓onnx绾跨▼鏁伴噺鐨勮〃鐜般�� + + + +## 娉ㄦ剰 +鏈▼搴忓彧鏀寔 閲囨牱鐜�16000hz, 浣嶆繁16bit鐨� **鍗曞0閬�** 闊抽銆� + + +## Acknowledge +1. We acknowledge [mayong](https://github.com/RapidAI/RapidASR/tree/main/cpp_onnx) for contributing the onnxruntime(cpp api). +2. We borrowed a lot of code from [FastASR](https://github.com/chenkui164/FastASR) for audio frontend and text-postprocess. -- Gitblit v1.9.1