Message Boards Message Boards

0
|
11925 Views
|
3 Replies
|
4 Total Likes
View groups...
Share
Share this post:

Getting Mathematica, R.Pi, and Pico TTS to speak to me

Posted 9 years ago

Hi, I'm currently in the process of trying to get my Raspberry Pi to speak to me.

So far I have the Pico TTS engine installed. I plan to further this to be able to speak results from wolfram alpha searches using the speak[] function. However, when I type a command (e.g. Speak[WolframAlpha["The dark knight"]]), it fails because "a front end is not available".

Please could someone explain what this means and how to go about resolving it? Also, when speaking, will Pico TTS be used for the speech synthesis? Thanks :)

POSTED BY: Scott Pickering
3 Replies

Ok, thanks for your help. I'll have to see if there's a way of using a different tts as espeak is very robotic. I'm calling the command from RPi's wolfram program at the minute so I'll look at mathematica.

POSTED BY: Scott Pickering

From a standalone kernel, try UsingFrontEnd. It requires X server access, so DISPLAY should be set, for example

pi@testpi2lx ~ $ export DISPLAY=:0
pi@testpi2lx ~ $ wolfram 2>/dev/null
Wolfram Language (Raspberry Pi Pilot Release)
Copyright 1988-2015 Wolfram Research 
Information & help: wolfram.com/raspi

In[1]:= UsingFrontEnd[Speak["Hello"]]

Mathematica uses eSpeak for TTS.

POSTED BY: Ilian Gachevski

The "a front end is not available" error typically occurs when you try to run a command that requires the graphical user interface. Are you calling mathematica or wolfram? You need the former.

Are you asking M to speak the words "The dark knight" or the output of WolframAlpha["The Dark Knight"]? I suspect you don't want the latter; however your function runs as expected in my RPi.

Never used Pico TTS so can't say anything about it.

POSTED BY: BoB LeSuer
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract