alphacep / alphacep/vosk-android-demo
Throwing Exception: error reading audio buffer
- Lingua principale
- Java
- Stelle
- 1.1k
- Fork
- 278
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
SpeechRecognizer class specifically org.kaldi.speechrecognizer throwing exception when multiple webcams are connected and one is disconnected but works fine for when single webcamera is connected. This issue is observed in android 8/Oreo. but not in android 7.
here is the code that throws the exception
int nread = SpeechRecognizer.this.recorder.read(buffer, 0, buffer.length);
if (nread < 0) {
**throw new RuntimeException("error reading audio buffer");**
}
I have manually created an audiorecord object and logged the getRoutedDevice.getProductname() before calling startlistener() which throws the exception
USB-Audio - HD Pro Webcam C920
java.lang.RuntimeException: error reading audio buffer
USB-Audio - HD Camera
java.lang.RuntimeException: error reading audio buffer
EDIT : SpeechService.java is the class which contains the code that throws exception right now in github but not the case for the library I am using as it was older.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.