# Notification sound when simulation done? [duplicate]

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

-

## marked as duplicate by rm -rf♦Nov 16 '12 at 19:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Look up EmitSound[]. –  Ｊ. Ｍ. Nov 16 '12 at 17:46
–  chris Nov 16 '12 at 18:11
I'm not sure I agree this is an exact duplicate. The answers here wouldn't have been adequate for the supposed duplicate question. –  Andy Ross Nov 16 '12 at 19:42

## 3 Answers

I'd do something like this.

Pause[5];
Speak["Done Pausing for 5 Seconds"]

-
In reality I'd have it say something much sexier but that's up to you :) –  Andy Ross Nov 16 '12 at 17:52
...now, how do I configure Mathematica to use a "bedroom voice"... >:) –  Ｊ. Ｍ. Nov 16 '12 at 17:58
@J.M. Just pretend she's from Vulcan. –  Andy Ross Nov 16 '12 at 17:59
Hi @Andy Ross, yes please let me know how to make it smoother, possible to change pitch etc of voice? –  sebastian c. Nov 16 '12 at 18:18
This is what I've actually been doing recently :) –  Szabolcs Nov 16 '12 at 18:51

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

-

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
]

-
This is awesome! I replaced the last i with a ProgressIndicator on a Dynamic counter variable, it's wonderful! –  Ziofil Feb 17 at 4:04