Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add HLG decoding for streaming CTC models #731

Merged
merged 3 commits into from
Apr 3, 2024

Conversation

csukuangfj
Copy link
Collaborator

@csukuangfj csukuangfj commented Apr 2, 2024

Usage examples

curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-streaming-zipformer-ctc-small-2024-03-18.tar.bz2
tar xvf sherpa-onnx-streaming-zipformer-ctc-small-2024-03-18.tar.bz2
rm sherpa-onnx-streaming-zipformer-ctc-small-2024-03-18.tar.bz2
repo=sherpa-onnx-streaming-zipformer-ctc-small-2024-03-18

./build/bin/sherpa-onnx \
  --zipformer2-ctc-model=$repo/ctc-epoch-30-avg-3-chunk-16-left-128.int8.onnx \
  --ctc-graph=$repo/HLG.fst \
  --tokens=$repo/tokens.txt \
  $repo/test_wavs/0.wav \
  $repo/test_wavs/1.wav \
  $repo/test_wavs/8k.wav

@csukuangfj csukuangfj changed the title WIP: Begin to add HLG decoding for streaming CTC models Begin to add HLG decoding for streaming CTC models Apr 3, 2024
@csukuangfj csukuangfj changed the title Begin to add HLG decoding for streaming CTC models Add HLG decoding for streaming CTC models Apr 3, 2024
@csukuangfj csukuangfj merged commit db67e00 into k2-fsa:master Apr 3, 2024
218 of 222 checks passed
@csukuangfj csukuangfj deleted the streaming-hlg-decode branch April 3, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant