https://github.com/akscf/mod_whisper_asr
Freeswitch ASR module to working with wisper_cpp
https://github.com/akscf/mod_whisper_asr
freeswitch speech-recognition speech-to-text whisper-cpp
Last synced: about 1 year ago
JSON representation
Freeswitch ASR module to working with wisper_cpp
- Host: GitHub
- URL: https://github.com/akscf/mod_whisper_asr
- Owner: akscf
- Created: 2023-08-16T20:01:00.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-19T14:58:11.000Z (almost 2 years ago)
- Last Synced: 2024-06-20T11:46:05.326Z (almost 2 years ago)
- Topics: freeswitch, speech-recognition, speech-to-text, whisper-cpp
- Language: C
- Homepage: https://akscf.org/
- Size: 271 KB
- Stars: 10
- Watchers: 1
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Provides offline speech recognition features for the Freeswitch based on whisper_cpp.
People who are interested in this module, look at whisperd it'll may be more suitable.
## version 1.0
Was capable to work with the first versions of whisper_cpp (not longer supported)
## version 1.1_12062024
Capable to work with the latest version whisper_cpp (revelant on the date: 12.06.2024)
Before compile the module, you should build the whisper_cpp as a shared library and (possible) correct it's paths in the Makefile.
The issues: unfortunately i don't have enough time (now) to deeply dig what is going on, mb it's my mistake somewhere there.
But have the follogin (although the same time the whisperd works well):
```txt
2024-06-12 07:34:38.686528 99.73% [NOTICE] utils.c:115 transcribe samples=31360
terminate called after throwing an instance of 'std::length_error'
what(): cannot create std::vector larger than max_size()
Aborted (core dumped) ./bin/freeswitch -nf -nonat -nonatmap -nort
```
### Usage example
```xml
```
```sh
# using freeswitch packages
apt update ; apt install libfreeswitch-dev libfreeswitch1 libfreeswitch1-dbg
cd mod_whisper_asr/sources
git clone https://github.com/ggerganov/whisper.cpp.git whisper
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j
make install
```