alphacep / alphacep/vosk-api

Throwing Exception: error reading audio buffer

Abierto
#603 0 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
Jupyter Notebook
Estrellas
15.1k
Forks
1.8k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.