We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello. I modified the code to recognize the 16kHz .wav file. The code to convert the audio file to the bytes array is as follows:
16kHz .wav file
audio file
bytes array
String filepath = "G:\\Corpus\\North_Wind_and_the_Sun_passage\\M1\\nws_1.wav"; ByteArrayOutputStream out = new ByteArrayOutputStream(); BufferedInputStream in = new BufferedInputStream(new FileInputStream(filePath)); int read; byte[] buff = new byte[1024]; while ((read = in.read()) > 0) { out.write(buff, 0, read); } out.flush(); byte[] audioBytes = out.toByteArray(); System.out.println("audioBytes:" + audioBytes.length); return audioBytes; byte[] inputBuffer = new byte[RECORDING_LENGTH]; System.arraycopy(audioBytes, 0, inputBuffer, 0, audioBytes.length);
However, all outputScores array values are 0, and result is "";
outputScores
0
result
""
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello. I modified the code to recognize the
16kHz .wav file
. The code to convert theaudio file
to thebytes array
is as follows:However, all
outputScores
array values are0
, andresult
is""
;The text was updated successfully, but these errors were encountered: