I found a line of code that gets the ProgramAB to talk and listen and it works fine on my laptop but I can't seem to get anything to work on the PI. I used this 

ear.addTextListener(alice)

alice.addTextListener(mouth)

(I opened Services with the correct names)

one or both of these were in a tutorial that I followed. I seem to be having alot of problems getting things to work on the RasPi.  Any suggestions or any idea where I can go to learn more about this?

Mats

7 years 5 months ago

The default sound output on the PI is the HDMI interface. So if you have it connected to a HDMI display, then the sound should go that way.

The other alternative is to connect a speaker to the 3.5 mm jack. In that case you need to force the sound to go thru that jack. You can do that using:

sudo raspi-config

and the select Advanced options => Audio => Force 3.5mm headphone jack.

Also check in the Volume control, so that it's not muted and that you have the volume turned up a bit.

 

 

 

bfaux75

7 years 5 months ago

I've done all that and sound works on YouTube or anything else just not with MRL.

bfaux75

7 years 5 months ago

In reply to by bfaux75

Ok, now I went to youtube and played a video and i can hear it. I installed Chromium on the Pi since it's the closest to Chrome. I started MRL and the Acapela and ProgramAB.Wrote the python code, mouth.addTextListener(alice2). Went to the Acapela window typed hi hit speak and guess what, no sound. The log says it is speaking, the speakers are on and functioning but I am lost.Anyone have suggestions?

Mats

7 years 5 months ago

In reply to by bfaux75

This is strange, since I have been able to use AcapelaSpeech on both PI2 and PI3.

What version of Java are you using ? You can find out with this command:

java -version

On my installation it returns:

 java version "1.8.0_65"

Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)
 
What version of MRL are you using? I'm using the latest, but any version 1412 and up should work fine.
 
To test sound only you can use this testscript:
 
 
Try it from the python tab on the old GUI. Close the web browser to avoid any conflicts betwen the two gui's
 
/Mats
 

bfaux75

7 years 5 months ago

In reply to by Mats

Thanks for that, a check of my java version showed I was using opensdk 1.7, I switched to the oracle8 and all is good.Got my sound now, Thanx for the help