How to | Make the Wolfram System Speak
Starting in Version 7, the Wolfram System includes expression-to-speech functionality. In principle, any Wolfram Language expression can be translated in this way.
Apply the function Speak to make the Wolfram System speak:
Button["Click me!", Speak[Sin[x ^ 2]]]You can also make the Wolfram System speak by right-clicking a highlighted expression and choosing Speak Selection from the contextual menu.
If, instead, you would like to see a text version of the input, apply SpokenString:
SpokenString[Sin[x ^ 2]]Using SpokenString gives you the output:
SpokenString[Integrate[1 / (x ^ 2 + 1), x]]Using HoldForm gives you the input:
SpokenString[HoldForm[Integrate[1 / (x ^ 2 + 1), x]]]This is also true for Speak:
Button["Without HoldForm", Speak[Integrate[1 / (x ^ 2 + 1), x]]]
Button["With HoldForm", Speak[HoldForm[Integrate[1 / (x ^ 2 + 1), x]]]]SpokenString with HoldForm can be used on graphics as well:
Plot3D[Sin[x y], {x, -Pi, Pi}, {y, -2, 2}]SpokenString[HoldForm[Plot3D[Sin[x y], {x, -Pi, Pi}, {y, -2, 2}]]]Naturally, Speak still works in this case:
Button["Click", Speak[HoldForm[Plot3D[Sin[x y], {x, -Pi, Pi}, {y, -2, 2}]]]]