alphacep / alphacep/vosk-api

update the model for the android demo app

Đang mở
#1,673 15 bình luận 0 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ả

[Dockerfile.txt](https://github.com/user-attachments/files/17983035/Dockerfile.txt)

Trying to add domain specific words for use with android demo. I am using the attached docker file as the build machine.

After a docker build and docker run it will successfully run the `./compile-graph.sh` followed by `decode.sh`

After copying in the files to the model in the android project and running, it crashes. Maybe I am not getting all the proper files. Seems that guides suggest only needing to update `Gr.fst` and `HCLr.fst`???

Looking through the other issues, I know that you recommend using the repos from alphacep, however when using those in the dockerfile it fails to compile.

I have also attached the file list from the compile and decode.
[files.txt](https://github.com/user-attachments/files/17983255/files.txt)

Appreciate any help.

```
Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xb400007de7f00dfc in tid 21126 (Thread-4), pid 20501 (org.vosk.demo)
2024-12-02 14:01:57.033 21133-21133 DEBUG pid-21133 A Cmdline: org.vosk.demo
2024-12-02 14:01:57.033 21133-21133 DEBUG pid-21133 A pid: 20501, tid: 21126, name: Thread-4 >>> org.vosk.demo <<<
2024-12-02 14:01:57.033 21133-21133 DEBUG pid-21133 A #00 pc 0000000000673f9c /data/app/~~ljabya80z0lgHJIqGjO3LQ==/org.vosk.demo-91ru3yhb4MjUvi2sk2dinQ==/lib/arm64/libvosk.so (kaldi::nnet3::DecodableAmNnetLoopedOnline::LogLikelihood(int, int)+128)
2024-12-02 14:01:57.033 21133-21133 DEBUG pid-21133 A #01 pc 00000000004a4928 /data/app/~~ljabya80z0lgHJIqGjO3LQ==/org.vosk.demo-91ru3yhb4MjUvi2sk2dinQ==/lib/arm64/libvosk.so (kaldi::LatticeIncrementalDecoderTpl > >, kaldi::decoder::BackpointerToken>::ProcessEmitting(kaldi::DecodableInterface*)+748)
2024-12-02 14:01:57.033 21133-21133 DEBUG pid-21133 A #02 pc 00000000004a68d8 /data/app/~~ljabya80z0lgHJIqGjO3LQ==/org.vosk.demo-91ru3yhb4MjUvi2sk2dinQ==/lib/arm64/libvosk.so (kaldi::LatticeIncrementalDecoderTpl > >, kaldi::decoder::BackpointerToken>::AdvanceDecoding(kaldi::DecodableInterface*, int)+264)
2024-12-02 14:01:57.033 21133-21133 DEBUG pid-21133 A #03 pc 0000000000363850 /data/app/~~ljabya80z0lgHJIqGjO3LQ==/org.vosk.demo-91ru3yhb4MjUvi2sk2dinQ==/lib/arm64/libvosk.so (Recognizer::AcceptWaveform(kaldi::Vector&)+196)
2024-12-02 14:01:57.033 21133-21133 DEBUG pid-21133 A #04 pc 00000000003639a0 /data/app/~~ljabya80z0lgHJIqGjO3LQ==/org.vosk.demo-91ru3yhb4MjUvi2sk2dinQ==/lib/arm64/libvosk.so (Recognizer::AcceptWaveform(short const*, int)+192)
2024-12-02 14:01:57.033 21133-21133 DEBUG pid-21133 A #05 pc 0000000000426be4 /data/app/~~ljabya80z0lgHJIqGjO3LQ==/org.vosk.demo-91ru3yhb4MjUvi2sk2dinQ==/lib/arm64/libvosk.so (vosk_recognizer_accept_waveform_s+8)
2024-12-02 14:01:57.033 21133-21133 DEBUG pid-21133 A #06 pc 000000000001404c /data/app/~~ljabya80z0lgHJIqGjO3LQ==/org.vosk.demo-91ru3yhb4MjUvi2sk2dinQ==/lib/arm64/libjnidispatch.so
2024-12-02 14:01:57.033 21133-21133 DEBUG pid-21133 A #07 pc 0000000000010a18 /data/app/~~ljabya80z0lgHJIqGjO3LQ==/org.vosk.demo-91ru3yhb4MjUvi2sk2dinQ==/lib/arm64/libjnidispatch.so
2024-12-02 14:01:57.033 21133-21133 DEBUG pid-21133 A #08 pc 0000000000007564 /data/app/~~ljabya80z0lgHJIqGjO3LQ==/org.vosk.demo-91ru3yhb4MjUvi2sk2dinQ==/lib/arm64/libjnidispatch.so
2024-12-02 14:01:57.033 21133-21133 DEBUG pid-21133 A #09 pc 0000000000011030 /data/app/~~ljabya80z0lgHJIqGjO3LQ==/org.vosk.demo-91ru3yhb4MjUvi2sk2dinQ==/lib/arm64/libjnidispatch.so
2024-12-02 14:01:57.033 21133-21133 DEBUG pid-21133 A #10 pc 00000000000141e0 /data/app/~~ljabya80z0lgHJIqGjO3LQ==/org.vosk.demo-91ru3yhb4MjUvi2sk2dinQ==/lib/arm64/libjnidispatch.so
2024-12-02 14:01:57.033 21133-21133 DEBUG pid-21133 A #16 pc 000000000012f4d4 [anon:dalvik-classes.dex extracted in memory from /data/app/~~ljabya80z0lgHJIqGjO3LQ==/org.vosk.demo-91ru3yhb4MjUvi2sk2dinQ==/base.apk] (org.vosk.Recognizer.acceptWaveForm+0)
2024-12-02 14:01:57.033 21133-21133 DEBUG pid-21133 A #21 pc 000000000012f9d4 [anon:dalvik-classes.dex extracted in memory from /data/app/~~ljabya80z0lgHJIqGjO3LQ==/org.vosk.demo-91ru3yhb4MjUvi2sk2dinQ==/base.apk] (org.vosk.android.SpeechService$RecognizerThread.run+0)
---------------------------- PROCESS ENDED (20501) for package org.vosk.demo ----------------------------
```

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.