8
$\begingroup$

Possible Duplicate:
Customize front end to add notifications when evaluation finishes?

How to setup sound alert notification when simulation is complete?

I need to do something else while waiting for a long simulation to complete instead of sitting there watching the simulation to complete the whole 'Evaluate Notebook' process.

Thank You

$\endgroup$
3
  • $\begingroup$ Look up EmitSound[]. $\endgroup$ Commented Nov 16, 2012 at 17:46
  • 1
    $\begingroup$ Related? mathematica.stackexchange.com/questions/2157/… $\endgroup$
    – chris
    Commented Nov 16, 2012 at 18:11
  • 1
    $\begingroup$ I'm not sure I agree this is an exact duplicate. The answers here wouldn't have been adequate for the supposed duplicate question. $\endgroup$
    – Andy Ross
    Commented Nov 16, 2012 at 19:42

3 Answers 3

16
$\begingroup$

I'd do something like this.

Pause[5];
Speak["Done Pausing for 5 Seconds"]
$\endgroup$
5
  • 2
    $\begingroup$ In reality I'd have it say something much sexier but that's up to you :) $\endgroup$
    – Andy Ross
    Commented Nov 16, 2012 at 17:52
  • 3
    $\begingroup$ ...now, how do I configure Mathematica to use a "bedroom voice"... >:) $\endgroup$ Commented Nov 16, 2012 at 17:58
  • 1
    $\begingroup$ @J.M. Just pretend she's from Vulcan. $\endgroup$
    – Andy Ross
    Commented Nov 16, 2012 at 17:59
  • $\begingroup$ Hi @Andy Ross, yes please let me know how to make it smoother, possible to change pitch etc of voice? $\endgroup$ Commented Nov 16, 2012 at 18:18
  • $\begingroup$ This is what I've actually been doing recently :) $\endgroup$
    – Szabolcs
    Commented Nov 16, 2012 at 18:51
6
$\begingroup$

You could set the notebook, global, or cell level option "EvaluationCompletionAction" to "Beep"

$\endgroup$
4
$\begingroup$

I'd be inclined to use something like this:

Monitor[
  Do[Pause[0.2], {i, 50}],
  If[Mod[i, 10] == 0, Speak[ToString[2 i] <> " percent done"]]; i
]
$\endgroup$
1
  • $\begingroup$ This is awesome! I replaced the last i with a ProgressIndicator on a Dynamic counter variable, it's wonderful! $\endgroup$
    – Ziofil
    Commented Feb 17, 2015 at 4:04

Not the answer you're looking for? Browse other questions tagged or ask your own question.