3 releases
Uses old Rust 2015
0.1.2 | Feb 21, 2017 |
---|---|
0.1.1 | Nov 26, 2016 |
0.1.0 | Nov 17, 2016 |
#656 in Audio
9KB
154 lines
sphinxad-rs
Sphinxad hight-level wrapper, that allows to record voice from microphone and later recognize the speech by pocketsphinx
Usage
Cargo.toml
sphinxad = "*"
You need two libraries to recognize speech:
- first should record voice from microphone(this sphinxad-rs)
- and second should process sound and recognize the speech(pocketsphinx-rs)
They are based on low-level libraries: sphinxad-sys and pocketsphinx-sys. To discover how to use this libraries, look on examples.
You need HMM(Hidden Markov Model), dictionary and grammatics(or language model), to teach the pocketsphinx to understand phrases or run examples.
This should be helpful: list of acoustic models for few languages
- English. Download HMM and this dictionary, paste them into english directory as cmusphinx-en-us-ptm-5.2 and vocabulary.dict.
- Russian. Скачайте HMM отсюда и положите zero_ru.cd_cont_4000 в russian/. Для генерации словаря используйте text2dict проекта ru4sphinx.
Dependencies
In order to use the this crate, you must have the libpocketsphinx
, libsphinxad
, libsphinxbase
libraries installed, you should use you packet manager or follow this tutorial
Documentation
License
MIT
Dependencies
~53KB