Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Kernel Script For Speech
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  

Posts: 14
Registered: 10/3/12
Kernel Script For Speech
Posted: Oct 3, 2012 11:42 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I have set up ~/.Mathematica/kernel/sound.m to work with Ubuntu Linux
Precise Pangolin as follows:


* Set up a $SoundDisplayFunction for the
* Linux version of Mathematica and potentially other unixes, too.



$SoundDisplayFunction :=
Export[$SoundDisplay, #1];
(* is there a way to get the sample rate, etc. from the audio
stream? *)
playCmd = "/usr/bin/play";
soundFileName = "/tmp/" <> ToString[Unique["sound"]] <> ".wav";
playCmd = playCmd <> " " <> soundFileName;

Export[soundFileName, #1, "WAV"];
Run["/bin/rm -f " <> soundFileName];
] &



This was a minor modification of a similar script found on the web.


I am trying to make the Speak[] function work.
I would like to use the command line functionality of 'espeak'
which works just fine on my distro.

What function do I need to define in ~/.Mathematica/kernel to
plug perform a similar function for Speak[]; as has been done
above for Play[];

Thank you


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.