Changes between Version 1 and Version 2 of Docs/825gen2/Dev/Devices/Audio


Ignore:
Timestamp:
01/18/24 11:45:21 (10 months ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/825gen2/Dev/Devices/Audio

    v1 v2  
    11= Audio =
     2
     3The 825 has an audio line out port. This is allows high quality stereo audio output. This is independent from the beeper.
     4
     5The command line utility aplay may be used to play wav files to the audio output, for example:
     6(For this example audio files are placed on a flash drive in directory wav_files auto mounted as /run/media/sda1)
     7
     8{{{
     9# aplay /run/media/sda1/wav_files/BOUNCEIN.WAV
     10Playing WAVE '/run/media/sda1/wav_files/BOUNCEIN.WAV' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
     11# aplay /run/media/sda1/wav_files/BOING.WAV
     12Playing WAVE '/run/media/sda1/wav_files/BOING.WAV' : Signed 16 bit Little Endian, Rate 22025 Hz, Mono
     13# aplay /run/media/sda1/wav_files/BOUNCE.WAV
     14Playing WAVE '/run/media/sda1/wav_files/BOUNCE.WAV' : Signed 16 bit Little Endian, Rate 22025 Hz, Mono
     15# aplay /run/media/sda1/wav_files/HAPPY.WAV
     16Playing WAVE '/run/media/sda1/wav_files/HAPPY.WAV' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
     17# aplay /run/media/sda1/wav_files/MELT.WAV
     18Playing WAVE '/run/media/sda1/wav_files/MELT.WAV' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono
     19#
     20}}}
     21
     22Gstreamer may be used to play an mp3 audio file:
     23
     24{{{
     25root@imx8mq-var-dart:/run/media/Data-sda1# gst-launch-1.0 playbin uri=file:///run/media/Data-sda1/sample-12s.mp3
     26}}}