alphacep / alphacep/vosk-api

Crash when calling `vosk_recognizer_free`

Abierto
#1,261 7 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

## 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!**

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.