3
$\begingroup$

On my system (Mac OSX 10.10.4) the following code produces only the first utterance. The second one is produce when the user interacts in some way with the front end (mouseover, mouseclick). How can I avoid this strange behavior and produce timely speech?

Speak["you say goodbye"]
Speak["and i say hello"]
$\endgroup$
10
  • $\begingroup$ See these posts : How to manipulate spoken text with Speak? and How to export Speak output? $\endgroup$
    – SquareOne
    Commented Jul 29, 2015 at 20:15
  • $\begingroup$ Thanks. I did see this material previously. It did not appear to answer my question. $\endgroup$
    – abwatson
    Commented Jul 29, 2015 at 20:38
  • $\begingroup$ What about : Speak["you say goodbye [[slnc 1000]] and I say hello"] ? Is this the kind of things you want to do ? $\endgroup$
    – SquareOne
    Commented Jul 29, 2015 at 20:49
  • $\begingroup$ Or, maybe try : Run["say " <> "you say goodbye"] ; Run["say " <> "and i say hello"] (only works on OSX) $\endgroup$
    – SquareOne
    Commented Jul 29, 2015 at 21:26
  • $\begingroup$ abwatson, I cannot reproduce the behavior you described in MMA 10.2 on Win7-64 bit. When executing those two expressions, the system generates speech for both even without any user interaction. It seems then that your problem may be system-dependent. $\endgroup$
    – MarcoB
    Commented Jul 29, 2015 at 22:50

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.