alphacep / alphacep/vosk-api

update the model for the android demo app

Abierto
#1,673 15 comentarios 0 reacciones 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

[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 ----------------------------
```

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.