The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 at NCTM 1994-2018. All Rights Reserved.