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

ASR使用whisper强制中文,app崩溃 #1604

Open
wanghongwei123 opened this issue Dec 9, 2024 · 0 comments
Open

ASR使用whisper强制中文,app崩溃 #1604

wanghongwei123 opened this issue Dec 9, 2024 · 0 comments

Comments

@wanghongwei123
Copy link

12-06 17:08:26.338 D/DigestGenerator( 3909): digest=============com.k2fsa.sherpa.onnxAbort message: 'JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-: illegal continuation byte

whisper 采用的是 bpe 建模,具体到汉字,一个汉字, utf8 编码, 3个字节。

识别的时候,有可能是几个字节组合在一起,是一个非法的 utf8 sequence, 所以 jvm 报这个错误了。
log.txt

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

No branches or pull requests

1 participant