alphacep / alphacep/vosk-api

Throwing Exception: error reading audio buffer

オープン
#603 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Jupyter Notebook
スター
15.1k
フォーク
1.8k
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。