alphacep / alphacep/vosk-api

Crash when calling `vosk_recognizer_free`

Open
#1,261 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
15.1k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.