alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
7.35k stars 1.04k forks source link

vosk java text result garbled characters #1576

Closed kgj888888 closed 1 month ago

kgj888888 commented 1 month ago

It is normal in jdk1.8, but it is not normal in java17. Test more method, but no solve it ,Please help to me.

微信图片_20240520161202 微信图片_20240520161212
nshmyrev commented 1 month ago

Same as https://github.com/alphacep/vosk-api/issues/1571

kgj888888 commented 1 month ago

no same, i can't resolve it with 1574's method,, my problem is It is normal in jdk1.8, but it is not normal in java17.

nshmyrev commented 1 month ago

Actually same as https://github.com/alphacep/vosk-api/issues/1449

 System.setProperty("jna.encoding", "utf-8");

should help