Playing an mp3 file from terminal but no sound of 3.5mm

I am new to osmc I am trying to play an mp3 file from terminal but there is no sound. Then I tried to play wav file but yet again there is no sound. Speaker is connected to 3.5mm jack. When using GUI interface to play audio or video it does output properly via stereo jack. I used following commands.

 aplay /home/osmc/Music/002.mp3
 Playing raw data '/home/osmc/Music/002.mp3' : Unsigned 8 bit, Rate 8000 Hz, Mono

for wav

osmc@osmc:~/Music$ aplay test.wav
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

I assume you’re talking about OSMC on a Raspberry Pi.

Please see here: Raspberry Pi Documentation - Configuration

aplay does not do mp3 decoding.

You may have to specify the audio sink to use. type aplay -L to see the list of sinks available.