正在显示
5 个修改的文件
包含
25 行增加
和
19 行删除
| @@ -11,51 +11,54 @@ ls -lh node_modules | @@ -11,51 +11,54 @@ ls -lh node_modules | ||
| 11 | 11 | ||
| 12 | # offline asr | 12 | # offline asr |
| 13 | 13 | ||
| 14 | -wget -q https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-nemo-ctc-en-conformer-small.tar.bz2 | 14 | +curl -LS -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-nemo-ctc-en-conformer-small.tar.bz2 |
| 15 | +ls -lh | ||
| 15 | tar xvf sherpa-onnx-nemo-ctc-en-conformer-small.tar.bz2 | 16 | tar xvf sherpa-onnx-nemo-ctc-en-conformer-small.tar.bz2 |
| 16 | rm sherpa-onnx-nemo-ctc-en-conformer-small.tar.bz2 | 17 | rm sherpa-onnx-nemo-ctc-en-conformer-small.tar.bz2 |
| 17 | node ./test-offline-nemo-ctc.js | 18 | node ./test-offline-nemo-ctc.js |
| 18 | rm -rf sherpa-onnx-nemo-ctc-en-conformer-small | 19 | rm -rf sherpa-onnx-nemo-ctc-en-conformer-small |
| 19 | 20 | ||
| 20 | -wget -q https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-paraformer-zh-2023-03-28.tar.bz2 | 21 | +curl -LS -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-paraformer-zh-2023-03-28.tar.bz2 |
| 22 | +ls -lh | ||
| 21 | tar xvf sherpa-onnx-paraformer-zh-2023-03-28.tar.bz2 | 23 | tar xvf sherpa-onnx-paraformer-zh-2023-03-28.tar.bz2 |
| 22 | rm sherpa-onnx-paraformer-zh-2023-03-28.tar.bz2 | 24 | rm sherpa-onnx-paraformer-zh-2023-03-28.tar.bz2 |
| 23 | node ./test-offline-paraformer.js | 25 | node ./test-offline-paraformer.js |
| 24 | rm -rf sherpa-onnx-paraformer-zh-2023-03-28 | 26 | rm -rf sherpa-onnx-paraformer-zh-2023-03-28 |
| 25 | 27 | ||
| 26 | -wget -q https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-zipformer-en-2023-06-26.tar.bz2 | 28 | +curl -LS -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-zipformer-en-2023-06-26.tar.bz2 |
| 29 | +ls -lh | ||
| 27 | tar xvf sherpa-onnx-zipformer-en-2023-06-26.tar.bz2 | 30 | tar xvf sherpa-onnx-zipformer-en-2023-06-26.tar.bz2 |
| 28 | rm sherpa-onnx-zipformer-en-2023-06-26.tar.bz2 | 31 | rm sherpa-onnx-zipformer-en-2023-06-26.tar.bz2 |
| 29 | node ./test-offline-transducer.js | 32 | node ./test-offline-transducer.js |
| 30 | rm -rf sherpa-onnx-zipformer-en-2023-06-26 | 33 | rm -rf sherpa-onnx-zipformer-en-2023-06-26 |
| 31 | 34 | ||
| 32 | -wget -q https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-whisper-tiny.en.tar.bz2 | 35 | +curl -LS -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-whisper-tiny.en.tar.bz2 |
| 33 | tar xvf sherpa-onnx-whisper-tiny.en.tar.bz2 | 36 | tar xvf sherpa-onnx-whisper-tiny.en.tar.bz2 |
| 34 | rm sherpa-onnx-whisper-tiny.en.tar.bz2 | 37 | rm sherpa-onnx-whisper-tiny.en.tar.bz2 |
| 35 | node ./test-offline-whisper.js | 38 | node ./test-offline-whisper.js |
| 36 | rm -rf sherpa-onnx-whisper-tiny.en | 39 | rm -rf sherpa-onnx-whisper-tiny.en |
| 37 | 40 | ||
| 38 | # online asr | 41 | # online asr |
| 39 | -wget -q https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-streaming-paraformer-bilingual-zh-en.tar.bz2 | 42 | +curl -LS -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-streaming-paraformer-bilingual-zh-en.tar.bz2 |
| 40 | tar xvf sherpa-onnx-streaming-paraformer-bilingual-zh-en.tar.bz2 | 43 | tar xvf sherpa-onnx-streaming-paraformer-bilingual-zh-en.tar.bz2 |
| 41 | rm sherpa-onnx-streaming-paraformer-bilingual-zh-en.tar.bz2 | 44 | rm sherpa-onnx-streaming-paraformer-bilingual-zh-en.tar.bz2 |
| 42 | node ./test-online-paraformer.js | 45 | node ./test-online-paraformer.js |
| 43 | rm -rf sherpa-onnx-streaming-paraformer-bilingual-zh-en | 46 | rm -rf sherpa-onnx-streaming-paraformer-bilingual-zh-en |
| 44 | 47 | ||
| 45 | -wget -q https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20.tar.bz2 | 48 | +curl -LS -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20.tar.bz2 |
| 46 | tar xvf sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20.tar.bz2 | 49 | tar xvf sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20.tar.bz2 |
| 47 | rm sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20.tar.bz2 | 50 | rm sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20.tar.bz2 |
| 48 | node ./test-online-transducer.js | 51 | node ./test-online-transducer.js |
| 49 | rm -rf sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20 | 52 | rm -rf sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20 |
| 50 | 53 | ||
| 51 | # offline tts | 54 | # offline tts |
| 52 | -wget -q https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-vctk.tar.bz2 | 55 | +curl -LS -O https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-vctk.tar.bz2 |
| 53 | tar xvf vits-vctk.tar.bz2 | 56 | tar xvf vits-vctk.tar.bz2 |
| 54 | rm vits-vctk.tar.bz2 | 57 | rm vits-vctk.tar.bz2 |
| 55 | node ./test-offline-tts-en.js | 58 | node ./test-offline-tts-en.js |
| 56 | rm -rf vits-vctk | 59 | rm -rf vits-vctk |
| 57 | 60 | ||
| 58 | -wget -q https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-zh-aishell3.tar.bz2 | 61 | +curl -LS -O https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-zh-aishell3.tar.bz2 |
| 59 | tar xvf vits-zh-aishell3.tar.bz2 | 62 | tar xvf vits-zh-aishell3.tar.bz2 |
| 60 | rm vits-zh-aishell3.tar.bz2 | 63 | rm vits-zh-aishell3.tar.bz2 |
| 61 | node ./test-offline-tts-zh.js | 64 | node ./test-offline-tts-zh.js |
| @@ -25,7 +25,7 @@ jobs: | @@ -25,7 +25,7 @@ jobs: | ||
| 25 | strategy: | 25 | strategy: |
| 26 | fail-fast: false | 26 | fail-fast: false |
| 27 | matrix: | 27 | matrix: |
| 28 | - os: [ubuntu-latest, macos-latest] #, windows-latest] | 28 | + os: [ubuntu-latest, macos-latest, windows-2019] |
| 29 | python-version: ["3.8"] | 29 | python-version: ["3.8"] |
| 30 | 30 | ||
| 31 | steps: | 31 | steps: |
| @@ -24,7 +24,7 @@ jobs: | @@ -24,7 +24,7 @@ jobs: | ||
| 24 | strategy: | 24 | strategy: |
| 25 | fail-fast: false | 25 | fail-fast: false |
| 26 | matrix: | 26 | matrix: |
| 27 | - os: [ubuntu-latest, macos-latest] #, windows-latest] | 27 | + os: [ubuntu-latest, macos-latest] #, windows-2019] |
| 28 | python-version: ["3.8"] | 28 | python-version: ["3.8"] |
| 29 | 29 | ||
| 30 | steps: | 30 | steps: |
| @@ -47,8 +47,8 @@ jobs: | @@ -47,8 +47,8 @@ jobs: | ||
| 47 | mkdir build | 47 | mkdir build |
| 48 | cd build | 48 | cd build |
| 49 | cmake -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=./install .. | 49 | cmake -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=./install .. |
| 50 | - make -j2 | ||
| 51 | - make install | 50 | + cmake --build . --target install --config Release |
| 51 | + | ||
| 52 | ls -lh install/lib | 52 | ls -lh install/lib |
| 53 | 53 | ||
| 54 | - name: Setup Python ${{ matrix.python-version }} | 54 | - name: Setup Python ${{ matrix.python-version }} |
| @@ -66,6 +66,9 @@ jobs: | @@ -66,6 +66,9 @@ jobs: | ||
| 66 | elif [[ $os == 'macos-latest' ]]; then | 66 | elif [[ $os == 'macos-latest' ]]; then |
| 67 | mkdir -p scripts/nodejs/lib/osx-x64 | 67 | mkdir -p scripts/nodejs/lib/osx-x64 |
| 68 | dst=scripts/nodejs/lib/osx-x64 | 68 | dst=scripts/nodejs/lib/osx-x64 |
| 69 | + elif [[ $os == 'windows-2019' ]]; then | ||
| 70 | + mkdir -p scripts/nodejs/lib/win-x64 | ||
| 71 | + dst=scripts/nodejs/lib/win-x64 | ||
| 69 | fi | 72 | fi |
| 70 | cp -v build/install/lib/* $dst/ | 73 | cp -v build/install/lib/* $dst/ |
| 71 | 74 |
| @@ -18,8 +18,8 @@ rm .clang-format | @@ -18,8 +18,8 @@ rm .clang-format | ||
| 18 | 18 | ||
| 19 | function windows_x64() { | 19 | function windows_x64() { |
| 20 | echo "Process Windows (x64)" | 20 | echo "Process Windows (x64)" |
| 21 | - mkdir -p lib/windows-x64 | ||
| 22 | - dst=$(realpath lib/windows-x64) | 21 | + mkdir -p lib/win-x64 |
| 22 | + dst=$(realpath lib/win-x64) | ||
| 23 | mkdir t | 23 | mkdir t |
| 24 | cd t | 24 | cd t |
| 25 | wget -q https://huggingface.co/csukuangfj/sherpa-onnx-wheels/resolve/main/sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-win_amd64.whl | 25 | wget -q https://huggingface.co/csukuangfj/sherpa-onnx-wheels/resolve/main/sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-win_amd64.whl |
| @@ -35,8 +35,8 @@ function windows_x64() { | @@ -35,8 +35,8 @@ function windows_x64() { | ||
| 35 | 35 | ||
| 36 | function windows_x86() { | 36 | function windows_x86() { |
| 37 | echo "Process Windows (x86)" | 37 | echo "Process Windows (x86)" |
| 38 | - mkdir -p lib/windows-x86 | ||
| 39 | - dst=$(realpath lib/windows-x86) | 38 | + mkdir -p lib/win-x86 |
| 39 | + dst=$(realpath lib/win-x86) | ||
| 40 | mkdir t | 40 | mkdir t |
| 41 | cd t | 41 | cd t |
| 42 | wget -q https://huggingface.co/csukuangfj/sherpa-onnx-wheels/resolve/main/sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-win32.whl | 42 | wget -q https://huggingface.co/csukuangfj/sherpa-onnx-wheels/resolve/main/sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-win32.whl |
| @@ -108,10 +108,10 @@ function osx_arm64() { | @@ -108,10 +108,10 @@ function osx_arm64() { | ||
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | windows_x64 | 110 | windows_x64 |
| 111 | -ls -lh lib/windows-x64 | 111 | +ls -lh lib/win-x64 |
| 112 | 112 | ||
| 113 | windows_x86 | 113 | windows_x86 |
| 114 | -ls -lh lib/windows-x86 | 114 | +ls -lh lib/win-x86 |
| 115 | 115 | ||
| 116 | linux_x64 | 116 | linux_x64 |
| 117 | ls -lh lib/linux-x64 | 117 | ls -lh lib/linux-x64 |
-
请 注册 或 登录 后发表评论