• warning: get_headers() [function.get-headers]: This function may only be used against URLs in /var/www/html/myrobotlab/themes/superclean/repoFile.php on line 35.
  • warning: file_get_contents(/home/GroG/exec.py) [function.file-get-contents]: failed to open stream: No such file or directory in /var/www/html/myrobotlab/themes/superclean/repoFile.php on line 38.

MRL Rapi 2 mp3 files not found

Trying to switch InMoov control from windows to raspi. Can run now MRL and finally got the arduinos connected on the raspi 2 :-)

I can play mp3 files on the raspi with mpg321.

When I run the python "minimal.py" script it does not speak:

Log-output from java:
... - listening
... - recognized: rest
... - audioFile/google/en_gb/audrey/did you say. rest.mp3 is missing

I also do not hear "starting mouth, starting ear" I used to get on windows - but did not found an error message in the log about these.


Alessandruino's picture

Can you take a screenshot of

Can you take a screenshot of your myrobotlab/audiofile/google/engr/Audrey folder?

GroG's picture

Always send a noWorky -

Always send a noWorky - here's a link on how to send on - http://myrobotlab.org/content/helpful-myrobotlab-tips-and-tricks-0#noWorky

kwatters's picture

InMoov2.minimal.py is worky on 1.0.118 (win7+64bit)

I tested locally, it seems to be worky on windows.  as grog says, send a no worky so we can actually see the full log file.


GroG's picture

I'm looking at the noWorky: I

I'm looking at the noWorky:

I see errors but not related to Speech (mostly for Sphinx).

15461792 [i01.mouth] INFO  org.myrobotlab.service.Speech  - audioFile/google/en_gb/audrey/sorry.mp3 is found 
15461794 [i01.mouth] INFO  org.myrobotlab.service.Speech  - isSpeaking true
15461795 [i01.mouth] INFO  org.myrobotlab.service.AudioFile  - started
15461796 [i01.ear] INFO  org.myrobotlab.service.Sphinx  - I'm talking so I'm not listening

Speech in this case (and others) has found the file and believes it is playing it.

Did you say you played a regular mp3 file in another application on this raspi ?  And you heard it play correctly?


juerg's picture

mrl raspi 2 daffodil mp3 files not playing

Thanks a lot for your answer. Just startet up this morning from scratch and I see now in the log that the e.g. rest.mp3 file is found.

I can also see the file in the folder .../audrey/

tried to play it directly with mpg321 - no sound, it logs MPEG 2.0 layer III, 48 kbits/s, 22050 Hz mono

when I play my testfile from which I get sount it logs MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo

I followed this tuto to myke my daffodil device working on the raspi



So it looks to be rather a soundcard setup problem then a mrl problem?

juerg's picture

mp3 files

played and googled around and finally have a command that plays all my files:

mplayer -ao alsa:device=hw=0.0 <anymp3file>

amixer -c 0 info
shows me my USB card

I have added this line to /etc/asound.conf
pcm.!default { type hw card 0 }
but this did not help

I might probably need to assign my usb card at another place to make it the default?

juerg's picture

raspi 2 mp3 files not playing over usb card

changed my /etc/modprobe.d/alsa-base.conf entries according to your provided link  to have the usb at index 0, all others -2.

mpg321 plays my test-mp3 but not the .../audrey/ ones.

do I have an option to make MRL use mplayer with my working parameters?

GroG's picture

You did this ? "The correct

You did this ?

"The correct way to do it is to add options snd-usb-audio index=0 followed by options snd_bcm2835 index=1."

juerg's picture

mrl raspi mp3

I did not have a snd_bcm2835 entry in my alsa-base-conf but set snd-usb-audio to index=0

This plays my test-mp3 with mpg321

It does not create sound with the audrey-mp3's

I have added options snd_bcm2835 index=1 to the .conf file with the same result - no sound with mrl

doing a cat /proc/asound/modules I get
 0 snd_usb_audio
 1 snd_bcm_2835
(The dashes seam to come out as underline?)

So currently I only get the audrey-files played with mplayer.


juerg's picture

no sound over USB with Raspi 2

Still working on the missing sound.

I see that the files I can play with mpg123 say they are MPEG 1.0 files. The MRL audrey-files are MPEG 2.0 and another test file I have that does not play is an MPEG 2.5 file.

So do I need a MPEG 2 license for my raspi? However - how can mplayer play these files?

Could somebody shed some light on how MRL is playing the MP3 files? Or any hint how I could root the MP3 play through mplayer?

Would really like to chat with my Marvin ...

GroG's picture

So the fact your raspi can

So the fact your raspi can not play certain mp3 files is really the "source" of the problem, and I'd recommend fixing it there ...

But in the interim - this might get closer to providing a work-around.

The following example works in Windows - in that it will start notepad - if you interested you can try doing the same thing for the mplayer.  If it works then you need to make a message route from Speech to send the text to a Python method which runs it through the Runtim.exe mp3player :P

juerg's picture

no sound with raspi 2 and daffodil usb soundstick

Been away for a while. I have a friend who might be looking into modifying the java as it looks too unfamiliar to me - especially your mentioning of a python method? If I call the mplayer from java what would I need a python method for?

Anyway - first bought a mpeg license in the raspi shop and installed it. It verifies correctly but did not change my sound problems in any way - same behaviour.

I looked then into changing the audrey MPEG 2 files into MPEG 1 files. With WinFF the conversion was quick and easy and mpg123 plays now all the audrey files on my raspi.

I then had my minimal.py started and expected to have a working mouth - however - Marvin is NOT speaking!

Now I am stuck again. Can't really follow your code to see why MRL is not using my default sound settings?