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