The FVP Audio project demonstrates the CMSIS-Driver vStream API for handling audio input and output streams.
It shows how to capture audio samples from an input stream and output them through an audio output stream.
The application initializes both audio input and output streams and then continuously captures audio samples from the input stream and copies them directly to the output stream.
Streaming stops after receiving the END_OF_STREAM event or can be configured to
stop after AUDIO_STREAM_DURATION seconds.
The example uses CMSIS-RTOS2 for thread management and event-driven processing.
Default configuration (app_config.h) expects the following input and output stream format:
- 16kHz, 16-bit, 2-channels (stereo)
To change the default configuration use the following defines:
AUDIO_CHANNELS- sets the number of channels in a streamAUDIO_SAMPLE_BITS- sets the number of bits per sampleAUDIO_SAMPLE_RATE- sets the number of samples per second
The default streaming duration is indefinite. To change this, use:
AUDIO_STREAM_DURATION- sets the streaming duration in seconds (0: stream indefinitely)