alphacep / alphacep/vosk-api

Crash when calling `vosk_recognizer_free`

Aperta
#1,261 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Jupyter Notebook
Stelle
15.1k
Fork
1.8k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## About me and what I'm trying

Hello, my name is Tim Gromeyer and I'm trying to create a voice assistant using this library.

## The problem
The recognition works really well and the models are small too. But there is something wrong with the code:
Every time I call `vosk_recognizer_free` the project crashes.
Here the line in the code, currently commented out: .

## VoskRecognizer set up
I set up the `VoskModel` in a function called via `std::thread(&myFunction).detach()`. The recognizer is set up in the same function as the model but I also tried to set it up in the apps main thread which changed absolutely nothing.

## Why I need help
I can't debug what's happening in `vosk_recognizer_free` because I simply doesn't have the necessary resources(memory).

## System information
- Vosk version: v0.3.45 ([downloaded](https://github.com/alphacep/vosk-api/releases/download/v0.3.45/vosk-linux-x86_64-0.3.45.zip)) from releases
- Model: [vosk-model-small-de-0.15](https://alphacephei.com/vosk/models/vosk-model-small-de-0.15.zip)
- Here you find everything about my system:

Edit:
## Steps to reproduce:
1. Install a recent version of git, cmake and Qt(I tested 5.15.3 and 6.4.2) with following components: Base, Network, Multimedia, (Translation tools)
2. Clone the repo: `git clone https://github.com/tim-gromeyer/VoiceAssistant`
3. Create build dir: `mkdir -p VoiceAssistant/build && cd VoiceAssistant/build`
4. Build: `cmake ..`(if you miss some dependency I suggest apt-file), `cmake --build . -j3`
5. Execute: `./voiceassistant`

2nd edit: Finx formatting

**Thank you all for developing such a nice library and also thanks in advance!**

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.