# Audio use cases Source: [https://docs.qualcomm.com/doc/80-70022-50/topic/audio-use-cases.html](https://docs.qualcomm.com/doc/80-70022-50/topic/audio-use-cases.html) The audio GStreamer use cases show capture of audio from a file source and playback of the audio stream on a speaker. Before you run the use cases, ensure that you complete the preconditions mentioned in [GStreamer command-line use cases](https://docs.qualcomm.com/doc/80-70022-50/topic/gstreamer-application-use-cases.html). ## Audio (only) capture Source: [https://docs.qualcomm.com/doc/80-70022-50/topic/audio-use-cases.html](https://docs.qualcomm.com/doc/80-70022-50/topic/audio-use-cases.html) The use cases show how to capture the PCM audio streams and store them in a file. - Run all the commands in the SSH shell of the target device. - To stop the use case, use CTRL + C. ### Single PCM capture gst-launch-1.0 -v pulsesrc volume=10 ! audioconvert ! wavenc ! filesink location=/opt/.wavCopy to clipboard Figure : Pipeline for audio capture with PCM encode Open source GST BIN pulsesrc audioconvert wavenc filesink ### Single FLAC capture gst-launch-1.0 -v pulsesrc volume=10 ! audioconvert ! flacenc ! filesink location=/opt/.flacCopy to clipboard Figure : Pipeline for the audio capture with FLAC encode Open source GST BIN pulsesrc audioconvert flacenc filesink ## Audio (only) playback Source: [https://docs.qualcomm.com/doc/80-70022-50/topic/audio-use-cases.html](https://docs.qualcomm.com/doc/80-70022-50/topic/audio-use-cases.html) The pipelines show the use cases for playback of single audio streams on a speaker. - Run all the commands in the SSH shell of the target device. - To stop the use case, use CTRL + C. ### Single PCM playback gst-launch-1.0 -e filesrc location=/opt/.wav ! wavparse ! audioconvert ! pulsesink volume=10Copy to clipboard The pipeline shows a single WAV stream taken from a file source and played on a speaker. Figure : Pipeline for WAV stream playback Open source GST BIN filesrc wavparse audioconvert pulsesink ### Single MP2/MP3 playback - MP2 gst-launch-1.0 -e filesrc location=/opt/.mp2 ! mpegaudioparse ! mpg123audiodec ! pulsesink volume=10Copy to clipboard - MP3 gst-launch-1.0 -e filesrc location=/opt/.mp3 ! mpegaudioparse ! mpg123audiodec ! pulsesink volume=10Copy to clipboard The pipeline shows a single MP2 stream taken from a file source and played on a speaker. Figure : Pipeline for MP2/MP3 stream playback Open source GST BIN filesrc mpegaudioparse mpg123audiodec pulsesink ### Single FLAC playback gst-launch-1.0 -e filesrc location=/opt/.flac ! flacparse ! flacdec ! pulsesink volume=10Copy to clipboard The pipeline shows a single FLAC stream taken from a file source and played on a speaker. Figure : Pipeline for FLAC stream playback Open source GST BIN filesrc flacparse flacdec pulsesink ### Single OGG playback gst-launch-1.0 -e filesrc location=/opt/.ogg ! oggdemux ! vorbisdec ! audioconvert ! pulsesink volume=10Copy to clipboard The pipeline shows a single OGG stream taken from a file source and played on a speaker. Figure : Pipeline for OGG stream playback Open source GST BIN filesrc oggdemux vorbisdec audioconvert pulsesink ### Related information - [Audio playback](https://docs.qualcomm.com/doc/80-70022-50/topic/gst-audio-decode-sample.html) - [Audio recording](https://docs.qualcomm.com/doc/80-70022-50/topic/gst-audio-encode-example-without-flac.html) Last Published: Feb 20, 2026 [Previous Topic Video playback use cases](https://docs.qualcomm.com/bundle/publicresource/80-70022-50/topics/video-playback-use-cases.md) [Next Topic Audio-video use cases](https://docs.qualcomm.com/bundle/publicresource/80-70022-50/topics/audio-video-use-cases.md)