Message Boards Message Boards

0
|
12091 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
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