Closed liming1010 closed 1 year ago
It prints utf-8 values, maybe your terminal expects different encoding. Try to save to a file and read.
As for accuracy, also check input file format, it should be mono 16khz PCM wav. mp3 is not going to work.
wav file is single channel and 16000 Hz,No changes made after saving the file,The returned code is messy code
Those zeros in the string look strange. Maybe you have some other library using JNA and it modified string encoding. See
https://javadoc.io/doc/net.java.dev.jna/jna/latest/com/sun/jna/Native.html#getDefaultStringEncoding--
maybe you can check/set string encoding. It should be utf-8. Like add -Djna.encoding=utf-8 in runtime options.
thanks try add System.setProperty("jna.encoding", "utf-8"); result is ok
Do not know why? please