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.
Can you take a screenshot of
Can you take a screenshot of your myrobotlab/audiofile/google/engr/Audrey folder?
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
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.
I'm looking at the noWorky: I
I'm looking at the noWorky:
I see errors but not related to Speech (mostly for Sphinx).
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?
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
http://computers.tutsplus.com/articles/using-a-usb-audio-device-with-a-raspberry-pi--mac-55876
So it looks to be rather a soundcard setup problem then a mrl problem?
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?
Tried some ALSA google-Fu ...
Tried some ALSA google-Fu ... perhaps this link is relevant
http://raspberrypi.stackexchange.com/questions/19705/usb-card-as-my-default-audio-device
If using PulseAudio perhaps these links
http://raspberrypi.stackexchange.com/questions/639/how-to-get-pulseaudi…
http://askubuntu.com/questions/14077/how-can-i-change-the-default-audio…
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?
You did this ? "The correct
You did this ?
"The correct way to do it is to add
options snd-usb-audio index=0
followed byoptions snd_bcm2835 index=1
."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.
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 ...
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
[[home/GroG/exec.py]]
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?