Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14252

Speak errors (was Re: audio)

From Richard Fateman <fateman@cs.berkeley.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Speak errors (was Re: audio)
Date 2013-04-20 09:55 +0000
Message-ID <kktom6$c87$1@smc.vnet.net> (permalink)
References <17744967.14121.1366277874273.JavaMail.root@m06> <kkqjsk$nom$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


The audio etc subject line was sufficient to get me to try Speak[],
and I immediately found two serious errors.

{Speak[x*(x + b*(c + x + z))], Speak[x*(x + b*(c + x) + z)]}

show that Mathematica's Speak program is inadequate to distinguish
two distinct mathematical expressions.
SpokenString tells us they are the same but this is a lie:

{"x times the quantity x plus b times the quantity c plus x plus z",
  "x times the quantity x plus b times the quantity c plus x plus z"}

oops.


The other is that Mathematica does not know how to pronounce the
A  in A+B.   What you really want is something like Hay plus Bee.

Not  Ahh plus Bee.

Much of the solution to this speaking issue can be resolved quite 
without Mathematica because (I suspect) common browsers are happy
to speak phrases, numbers, etc, directly from XML. See

http://msdn.microsoft.com/en-us/library/ms717077%28v=vs.85%29.aspx

Furthermore, there are lots and lots of detailed specifications for
text-to-speech  that are quite inaccessible in the current Mathematica
design.

Also for what it is worth, there are programs to utter mathematics (into 
XML)
CORRECTLY.  Fundamentally, one needs only a few lines of code to do 
"in-order tree traversal" plus a bunch of data e.g. to pronounce Cos as 
cosine, etc. To do a really bang-up job one should diddle with the
speed, volume, and such details as to maybe use SPELLING to pronounce
certain variable names.

The current program fails on the in-order tree traversal, apparently.

On the larger issue, of getting kindergarten children to pronounce the
numbers from 1 to 10.  Uh, do you really need to use a computer? Running 
Mathematica?

RJF

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Easy to get the audio out of sync with the graphics (Repost) "djmpark" <djmpark@comcast.net> - 2013-04-19 05:15 +0000
  Speak errors  (was Re: audio) Richard Fateman <fateman@cs.berkeley.edu> - 2013-04-20 09:55 +0000
  Re: Easy to get the audio out of sync with the graphics (Repost) Clif McInnis <c_mcinnis@hotmail.com> - 2013-04-20 09:55 +0000

csiph-web