6 releases (breaking)

Uses old Rust 2015

0.5.0 May 25, 2016
0.4.0 Feb 29, 2016
0.3.1 Feb 17, 2016
0.2.0 Feb 13, 2016
0.1.0 Jan 26, 2016

#23 in #recognition

Download history 8/week @ 2024-08-31 6/week @ 2024-09-07 7/week @ 2024-09-14 39/week @ 2024-09-21 14/week @ 2024-09-28 8/week @ 2024-10-05 11/week @ 2024-10-12 15/week @ 2024-10-19 8/week @ 2024-10-26 28/week @ 2024-11-02 3/week @ 2024-11-09 6/week @ 2024-11-16 13/week @ 2024-11-23 16/week @ 2024-11-30 25/week @ 2024-12-07 16/week @ 2024-12-14

71 downloads per month
Used in 2 crates (via pocketsphinx)

MIT license

14KB
213 lines

PocketSphinx Rust bindings

The pocketsphinx-sys crate provides FFI declarations and linkage for the voice recognition pocketsphinxC library.

Following the *-sys package conventions, the pocketsphinx-sys create does not define higher-level abstractions over the native pocketsphinx library functions.

See https://github.com/kriomant/pocketsphinx-rs for higher-level bindings.

Dependencies

In order to use the this crate, you must have the libpocketsphinx library installed where it can be found by pkg-config.

On Debian-based Linux distributions, install the libpocketsphinx1 package:

sudo apt-get install libpocketsphinx1

On OS X, install cmu-pocketsphinx with Homebrew:

brew install --HEAD cmu-sphinxbase
brew install --HEAD cmu-pocketsphinx

For building custom version of CMU PocketSphinx refer to official building documentation.

Usage

Add pocketsphinx-sys as a dependency in Cargo.toml:

[dependencies]
pocketsphinx-sys = "0.5.0"

Import the pocketsphinx_sys crate and use the functions.

extern crate pocketsphinx_sys;

Documentation

Since pocketsphinx-sys does nothing more than export symbols from the native libpocketsphinx library, the best source for help is the information already available for the pocketsphinx project:

License

Copyright © 2016 Mikhail Trishchenkov

Distributed under the MIT License.

Note: By using this crate, your executable will link to the libpocketsphinx C library, which is available under the simplified BSD license.

Dependencies

~47KB