Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/veandco/porcupine-sys
Rust bindings to Porcupine
https://github.com/veandco/porcupine-sys
Last synced: 11 days ago
JSON representation
Rust bindings to Porcupine
- Host: GitHub
- URL: https://github.com/veandco/porcupine-sys
- Owner: veandco
- License: mit
- Created: 2018-07-23T06:07:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-21T02:45:01.000Z (over 4 years ago)
- Last Synced: 2024-10-29T21:05:49.100Z (22 days ago)
- Language: Rust
- Size: 15.6 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# porcupine-sys
This is a Rust binding to [Porcupine](https://github.com/Picovoice/Porcupine).
## Setup
Before you can use this, the Porcupine libraries will need to be copied
to a place where the linker can find it (e.g. `/usr/local/lib` on Linux).For example on Linux x86_64 you would do something like this:
```
git clone https://github.com/Picovoice/Porcupine
cd Porcupine
sudo cp lib/linux/x86_64 /usr/local/lib
```## Example
To run the examples, you must first generate the wake word model by
going to the website at https://console.picovoice.ai/ppn. It will take
a couple hours for it to finish. Once finished, you can download it and
replace, for example, the `assets/hi robot_linux.ppn` which is used by
the `single` example. If you want to run the `multiple` example, you
must generate three word models and replace `assets/play music_linux.ppn`,
`assets/next music_linux.ppn`, `assets/stop music_linux.ppn`.Then you can clone this project by running:
```
git clone --recursive https://github.com/veandco/porcupine-sys
```After that, run the example via:
```
cargo run --example single
```or for the multiple keywords version:
```
cargo run --example multiple
```