alphacep / alphacep/vosk-api

Throwing Exception: error reading audio buffer

Đang mở
#603 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Jupyter Notebook
Star
15.1k
Fork
1.8k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.