Throwing Exception: error reading audio buffer
- Vorherrschende Sprache
- Jupyter Notebook
- Sterne
- 15.1k
- Forks
- 1.8k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.