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 :)
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.
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
Mathematica uses eSpeak for TTS.
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.
WolframAlpha["The Dark Knight"]
Never used Pico TTS so can't say anything about it.