Example sending and detecting audio commands with GStreamer and Rust. We use typed structures for a nicer API.
Find a file
2023-03-30 16:20:23 +02:00
.gitea Update 2022-10-01 13:38:20 +02:00
src Can listen to tones 2023-03-30 16:20:23 +02:00
.gitignore Update .gitignore 2022-10-01 13:42:21 +02:00
Cargo.lock Can listen to tones 2023-03-30 16:20:23 +02:00
Cargo.toml Can listen to tones 2023-03-30 16:20:23 +02:00
LICENSE Initial commit 2022-10-01 10:27:06 +00:00
README.md Update readme 2023-03-26 22:35:21 +02:00

Audio Commands using DTMF

This is a simple example of how to use DTMF elements of GStreamer with ergonomic Rust code.

Installation

You will need to install the following dependencies from homebrew:

brew install gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav

Edit the gst-plugins-bad formula to add the following line:

depends_on "spandsp"

Set the following environment variables:

export HOMEBREW_NO_INSTALL_FROM_API=1

Then reinstall the formula from source:

brew reinstall --build-from-source gst-plugins-bad