Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

FVP Audio

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.

Operation

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.

Configuration

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 stream
  • AUDIO_SAMPLE_BITS - sets the number of bits per sample
  • AUDIO_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)