raspberry and speak

When i try to use speak(“Hello World”) i get this item does not exist when compiling. But if i use sh.execute(“espeak”,“Hello World”) it does work somewhat. It says hello only.

Does the speak command work for the raspberry?

Hi William,
Espeak works on my computer. Maybe try the following command in a terminal to see if Raspberry Pi will speak a complete sentence:

espeak "Hello World on Raspberry Pi" 2>/dev/null

Edit: If the above command works then try:

sh.execute("espeak ""Hello World on Raspberry Pi"" 2>/dev/null") 

I never even knew there was a speak command!.