Initial commit: FunASR Speech Recognition Toolkit
Update API Documentation / build-api-docs (push) Has been cancelled

Add complete FunASR codebase including models, runtime, and documentation.
This commit is contained in:
freedakgmail
2026-07-09 22:38:58 +08:00
commit 6116b1f3c6
3683 changed files with 990984 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env python3
"""Detokenize SenseVoice CTC token ids -> text via the SentencePiece bpe model.
Usage: python detok.py <bpe.model> <ids.txt> (ids.txt = space-separated ints)
"""
import sys
import sentencepiece as spm
sp = spm.SentencePieceProcessor(model_file=sys.argv[1])
ids = [int(x) for x in open(sys.argv[2]).read().split()]
print(sp.decode(ids))