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
Converting audio with java #1040
Comments
It has to be 1 instead of 2 (mono, not stereo). |
Hey, this is the audio fomat of discord, do you know how I can covert it? |
Something like |
I modified my source code, but it still not works: |
|
|
Hello, I guess I have to apologize, I did not read correctly. I have now adjusted the value, the speech recognition now works without problems. Nevertheless, a new problem occurs, namely, it does not recognize getResult, but getPartialResult does. Normally it should end after a sentence, no matter how long I wait, it does not output a getResult and hangs everything on each other. Maybe you can help me further. Here is also my curent source code: |
You need to dump bytes you feed to recognizer and share the result. |
Good day,
I've been trying all day to convert audio so that Vosk can work with it. The default audio format I get (from Discord) is the following:
I want to convert this to Vosk format, but unfortunately I don't know exactly how. Can anyone help me? Best would be a code snippet, I have to admit that audio processing is not my thing :/
AudioFormat OUTPUT_FORMAT = new AudioFormat(48000.0F, 16, 2, true, true);
Here is also my code:
https://just-paste.it/FB0TyErtQP
Kind regards
Nicklas
The text was updated successfully, but these errors were encountered: