Skip to content

Examples

Phil Schatzmann edited this page Nov 3, 2021 · 84 revisions

All examples follow the following naming convention: "scenario type"-"source"-"destination". For the scenario types we might have base (using basic api functionality), stream for examples using Streams and test for the test cases.

For the source we currently have adc for analog input devices like analog microphones, i2s for digital input devices (e.g. digital microphones), file for SD files and a2dp for input from Bluetooth A2DP (e.g. from a Mobile Phone).

For the destination we use dac for analog output (e.g. to an amplifier), i2s for digital output devices (e.g. an external DAC), file for SD files and a2dp for output to Bluetooth A2DP (e.g. a Bluetooth Speaker).

Here is the list of examples:

Here are a couple of simple test sketches to demo different output destinations:

And some more useful examples:

... these are just a few examples, but you can combine any Input Stream with any Output Stream as you like...

Listening to the Result with a Webbrowser

I am also providing a simple webserver which can render the audio data as wav result. Here are some examples:

Building an executable for the Desktop

We provide some generic output which will also work on Linux, Windows and OS/X The cmake is downloading all dependencies and builds an executable from the sketch.

Basic API

Just some examples using the basic API. Though this continues to work, we recommend that you use the Stream API because it is easier to use.

Clone this wiki locally