- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am trying to play a audio file in IMX8MM evk board,
gst-launch-1.0 audiotestsrc ! alsasink -- this audio test works fine but
when i use aplay i am getting noise
aplay MP3_sample.mp3
Playing raw data 'MP3_sample.mp3' : Unsigned 8 bit, Rate 8000 Hz, Mono
when i tried using aplay -l
I got below response
**** List of PLAYBACK Hardware Devices ****
card 0: wm8524audio [wm8524-audio], device 0: HiFi wm8524-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: imxspdif [imx-spdif], device 0: S/PDIF PCM snd-soc-dummy-dai-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
---------------------------------------
When i use gplay-1.0 MP3_sample.mp3 command i am getting below response but no sound
FSL_GPLAY2_01.00_LINUX build on Aug 22 2019 14:08:45
====== BEEP: 4.4.4 build on Aug 22 2019 14:08:28. ======
Core: MP3 decoder Wrapper build on Jan 11 2018 10:20:25
file: /usr/lib/imx-mm/audio-codec/wrap/lib_mp3d_wrap_arm_elinux.so.3
CODEC: BLN_MAD-MMCODECS_MP3D_ARM_02.13.01_ARMV8 build on Jan 11 2018 10:05:45.
===!!! Current pulsesink device is alsa_output.platform-sound-spdif.stereo-fallback !!!===
[Stop (No Repeated)][Vol=1.0][00:00:00/00:02:12]=========== fsl_player_play() ==================
FSL_GPLAY2_01.00_LINUX build on Aug 22 2019 14:08:45
[h]display the operation Help
[p]Play
[s]Stop
[e]Seek
[a]Pause when playing, play when paused
[v]Volume
[m]Switch to mute or not
[>]Play next file
[<]Play previous file
[r]Switch to repeated mode or not
[u]Select the video track
[d]Select the audio track
[b]Select the subtitle track
[f]Set full screen
[z]resize the width and height
[t]Rotate
[c]Setting play rate
[i]Display the metadata
[x]eXit
State changed: buffering
State changed: playing
-------------------------------------------
How to play a simple audio file in IMX8MMEVk
Regards
Santhosh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Solved using below command
gst-launch-1.0 playbin uri=file:///home/root/MP3_sample.mp3 audio-sink="alsasink device=hw:0,0"
Here the missing thing was to specify the audio output device=hw:0,0
Link:https://developer.toradex.com/knowledge-base/audio-linux
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Solved using below command
gst-launch-1.0 playbin uri=file:///home/root/MP3_sample.mp3 audio-sink="alsasink device=hw:0,0"
Here the missing thing was to specify the audio output device=hw:0,0
Link:https://developer.toradex.com/knowledge-base/audio-linux
