Inserting a pause in a spoken dialog

How can I pause the finder while it is reading a dialog using the "say" command. For example:
tell application "Finder"
say "I want the script to read some instructions and then pause for a second or two."
--pause here
say "Then continue to read something else here."
end tell
pedro
G5   Mac OS X (10.3.8)  

That's cool, I'd completely forgotten about that. I wouldn't expect anyone to have speech recog on though, and the feedback window could be pretty distracting. I played around with it a bit to see if AS could be made to do it without recog on, or with it in the background. Suspiciously, when I used System Events to force minimize the feedback window to the dock, suddenly the without waiting until completion parameter no longer functioned, even though Speakable Items was turned on! Odd. I tried various other methods of hiding the feedback windows with System Events, but the only thing that worked was relocating the windows off screen as soon as they appeared, and then relocating back at the end of the script.
click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">activate application "SpeakableItems"
hide(true)
tell me to activate
set the_text to "AppleScript is a scripting system that allows you to directly control Macintosh applications,
including the Mac OS itself. Instead of using a mouse, keyboard, or other input device
to manipulate menus, buttons, and other interface items,
you can create sets of written instructions--known as scripts--
to automate repetitive tasks, customize applications, and even control complex workflows."
set a_msg to ""
repeat with a_line in (paragraphs of the_text)
say a_line without waiting until completion
hide(true)
set a_msg to a_msg & space & a_line's contents
display dialog a_msg giving up after (count characters of a_line's contents) / 10 buttons {""} cancel button 1
end repeat
hide(false)
quit application "SpeakableItems"
on hide(switch)
tell application "System Events" to tell windows of process "Speech Feedback Server" to if switch then
set position to {0, -100}
else
set position to {0, 0}
end if
end hide</pre>While this does work, for what it does I think I'd still prefer the shell script. Launching the entire speech recognition system just to simulate a dialog behavior is overkill. It's not going to be more compatible with earlier versions of Mac OS than the shell script. The code, while somewhat cleaner looking for the scripter, offers no added benefit to the end user. It was a fun exercise though, thanks for the idea.
PowerMac G5 (June 2004) 2x1.8GHz 1.25GB, PowerBook G4 (12-inch DVI) 1x1GHz 768MB   Mac OS X (10.4.3)  

Similar Messages

  • How can I get Siri to insert a pause (,) when voice-dialing a number?

    I join a lot of conference calls with my iPhone.  The conference bridges have phone numbers that follow this pattern:
    (123) 456-7890,1234567#
    How can I get Siri to insert the pause (,) character, and the pound (hash) sign, into the phone number when voice-dialing?
    When I say "pause" Siri inserts the word "pause" as a literal string: 
         Example: (123) 456-7890 pause 1234567
    When I say "comma" Siri will insert a comma (,) into the dial string, but the Phone app ignores everything after the comma and does not dial it:
         Example: (123) 456-7890, 1234567   results in only this being dialed:  (123) 456-7890
    When I say "pound" or "hash" Siri inserts the words "pound" or "hash" as literal strings:
         Example: (123) 456-7890, 1234567 pound     instead of (123) 456-7890,1234567#

    If it is your own conference bridge you can create a new contact named "My Bridge" and enter your 1800 number along with a "wait" command and pass code and #.  It would look something like this 1-800-555-5555;12345678#.  This way when you tell Siri to call "My Bridge" she'll dial and then you'll notice an option in the lower left to dial the pass code.  Press that and you're all set. You can do the same for frequent conference bridges you connect to.  Hope this helps.

  • Inserting a pause into a video?

    I am looking to insert a pause into a video I am editing using Captivate 6. One section of the video is too pacy and i need to freeze it for a couple of seconds then have it restart automatically, or slow motion etc. Is it possible to do this without a button?

    You're editiing in Captivate, correct? My favoirite way to "freeze" while editing this is to:
    1. Split the video at the point you want it to freeze.
    2. Take a screen capture of the video at the split - insert this image on the timeline.
    3.  Extend the screenshot for as long as is needed to display the information you needa
    4. Move the next video segment to the other end of the image on the timeline.
    You just effectively"froze" the screen for as much time as you wanted. There's probably a more elegant solution, but it's my two cents.
    Justenuf

  • Inserting a 'pause' in a contact number - Nokia 62...

    I've just moved to a new Nokia from a Sony W800i. On my last phone I could insert a 'pause' in a stored number (by holding down star I think). This is really useful, because we use one of those overseas numbers where you dial a UK number, wait a few seconds, then dial a US number. It's also handy if you need to dial a person's extension at work. Does anyone know if one can do this on a Nokia 6288? If so, how? The user guide doesn't seem to tell me.

    Pause ('p') is available via '*' button.
    Press '*' one time --> '*'
    Press '*' two times --> '+'
    Press '*' three times --> 'p'

  • Inserting a pause at the end of a loop in a film clip...

    Hi,
    I just scanned in 16 frames from old 16 mm film and created a short clip in .swf, by default the clip is looping.
    I want it to loop, but all I want to do is place a 5 second pause at the end of the short 1 second clip before it starts up again.  How would I do that?  Or is there a simple tutorial on this?
    I am using CS4 Flash Professional.
    Thanks.

    OK thanks much,
    So to do that, do i begin by highlighting the last frame (the last frame of the movie itself - actual film image) on the timeline, and go to main menu and select Insert>Timeline>Keyframe?  Then insert stop(); on the last frame via the actionscript panel?
    Then highlight the first frame and insert the setTtimeout() and  play() onto the first frame?
    I inserted the stop() command on the last frame and the clip now stops...
    I tried adding this script on the last frame and clip stops but does not repeat after 5 seconds...
    stop()
    setTimeout(5)
    play();

  • Is it possible to edit spoken dialog without interfering with the rest of the sound?

    I'm trying to piece together video clips from various movies, and in one of these clips the character swears strongly a couple times. Normally, I don't bother with this, but my audience is that of a "clean" nature and is strongly against profanity. Is there a way to briefly mute, or change the character's voice when he cusses and not interfere with the rest of the sound? Or is this asking too much?
    Also, I looked in the "help" section and couldn't find anything to help me with this. But I have a bunch more questions. Where do I go that will explain all the features of Premiere Elements 8, without forcing me to spend hours figuring it all out and/or posting a billion discussions here in the forums and bugging all of you with my lack of knowledge?

    What you are attempting to do requires a bit of work and then some luck.
    It sounds as though you have an Audio Clip with both background noise and possibly music, plus dialog. You wish to remove just the dialog in a particular spot, or spots. Is that correct?
    If so, then in an Audio editing program, like Adobe Audition, you can possibly extract the ambient sound/music with a Karaoke Effect, or with the application of EQ. This will yield a separate file with hopefully just the background and music, and no dialog. In a Multi-Track Session, place both files on a separate Track. Find the point where you wish to remove the dialog. Here, the workflow might differ, but I'd Cut out the dialog at that point, leaving only the Karaoke Track. To clean things up, when I had done this for each offensive passage, I would go to the Karaoke Track and do just the opposite - Cut out all that was NOT underlying the offensive passages, but leave a bit of that Track before and beyond the deleted dialog. Then, I'd add a Cross-Dissolve for Constant Power to those Karaoke segments to "ramp" the Karaoke Track into the mix, as it will never be perfect, and one wants as smooth a transition, as is possible.
    Now, one can do this in other audio editing programs, that offer Multi-Track editing, and also VST plug-ins, or install with Effects like Karaoke and/or Parametric or Graphic EQ's. You could explore the great, free audio-editor, Audacity, and Google for VST's that will enhance its capabilities. Be sure to read the Help files on Audacity, as one does need to do a few things in setup to allow the addition of more VST's.
    The work will be with the Karaoke (or similar) Effect, its result and also the frequency ranges of the speaker. That is where the "luck" comes in. Much human speech can be EQ'ed out, or at least greatly attenuated. Now, if you have a crowd talking in the background, or similar, and wish to retain that, all bets are off.
    Also, if you only have ambient sounds, and no music, behind the speaker, just find segments of that ambient sound, where the speaker is not talking, and use that to "patch" where you cut out the dialog.
    Good luck,
    Hunt

  • Any way to insert a pause in a number?

    I've got a number ported over from my old phone which includes a 'p' for pause and a '#'. The iPhone won't dial the number. Is there any solution to this? Does the iPhone have its own characters for these things? Thanks.

    Yes, I saw the same. My phone has been slow and finicky in some ways since the upgrade. I hope the next software update fixes it. What I had to do was play around with it. Hit the home button, go in through phone, then contacts, as against using the contacts button from the home screen. I have two numbers set up this way so I can place International calls using a phone card. I just tried it again and confirmed the bug. Dialing after going in from the Contacts link on the home screen does not work.
    PS: Unfortunately, for me there was nothing pleasant about "listening" to iPhone do the dialing. After the first pause, every single number dialed is audible, and there's no way that I know of to turn it off!! But this is still much better than having to write down numbers when I paid a bunch of $$$ for this phone and service! My initial preference was for speed dialing during a call, so you could enter phone numbers, credit card numbers (not too smart to save this on your phone, I guess, but still!), conference numbers and passwords, etc. Go, Apple folks, you can do it!!!

  • INSERT A PAUSE

    HOW DO YOU PUT IN A PAUSE IN A PHONE NUMBER ON A NOKIA LUMIA 620?
    Moderator's note: The post was moved to the appropriate board.

    Have a look at THIS .. You can't add a 'pause' while dialling a no. though .. You must go to the Create Contact menu
    Moderator's note: The post was moved to the appropriate board.

  • Phone numbers with "pause character" not working same as first-gen iPhone

    Is this a bug?
    When I configure a phone number in my contact list to use the "pause" character (which shows up as a comma character in the display) a number of strange things happen.
    For instance, if I configure the following: (###) ###-#### ,,**2216464#
    where (###) ###-#### is my office phone number
    ,, is a pause to allow for the automated attendent to pick-up
    ** is recognized by my phone system as a transfer to my voice mailbox
    2216464 is my voice mailbox
    # is a termination character recognized by my phone system.
    Using my first-generation iPhone, this worked fine.
    Using my new iPhone 3G, this no longer works.
    Some observations:
    When directly using the touchpad on the iPhone, it appears to send DTMF tones as quickly and for as long as you hold your finger on the keypad. But, if you configure a phone number in the contact list and that phone number has a pause in it, each number configured after the pause will actuate for several seconds. The tone for each number (in this case, the 2216464) last SO long that my phone system gives up on the call and, basically, terminates the call. In addition, the inter-digit time is SO small as to be non-existant. In other words, in my sample phone number, the leading two digit of my mailbox number sound like they are expressed by the iPhone as a single, extra-long tone. There should be a longer pause between the first two digits. If I attempt to break them apart by inserting a pause (displayed as a comma), the pause is SO long that, again, my phone system gives up.
    So, in summary:
    Why did this change between the first generation and second generation iPhones?
    Also, why is the pause "character" SO LONG? Instead of making a pause character, say, four seconds, why not make it one second and let the user put in four pauses if they want a four-second pause?
    Why does the character length appear to extend after use of a pause character?
    Why is the inter-digit pause practically non-existant?
    Thanks.
    Ken

    I'm having the same issue. I just got the phone last week and was trying to call a number with an extension. After realizing that Address book does not have an extension field I reformatted the phone number using the "pause" (comma). With this in place it will not dial the number. Remove the pause however, and it will dial the root phone number.
    Please tell me this is just a bug and will be fixed soon. It's bad enough that I've had to spend the last week reworking my contacts in Address Book after having to jump ship from my Palm software. As a business user it is a regular piece of daily business to encounter the automated receptionist asking for someone's extension. Since the iPhone doesn't show the number you just dialed (the extension is in there after the "x" but it doesn't recognize it) you end up having to memorize the extension prior to making each call.

  • Widget insertion not working DW CS5 Mac

    I've got a template open and am trying to insert the JBuilder Accordian widget.  I've done all the necessary processes to download the widget from Adobe and put it into my "My Widgets" in the browser.  I click on Insert / Widget and get nothing, no dialog asking for which widget to insert.  This also fails from the Insert panel and clicking on the Widget icon.
    Is this a bug or am I doing something wrong?
    Thanks,
    Steve

    Maybe it would help if I re-asked the question in different terms: 
    a) Does DW5 on MacOS monitor the user interface for a "cancel current operation" input?  If so, what is it?
    b) Is there any alternative to "Force Quit" to cancel a "long" operation?
    Note 1: Monitoring the UI is problematic because it slows down the application;  how much depends on how often.  Depending on the  app's internal architecture, it may simply not be possible to stop certain operations cleanly.  Both these would be reasonable motivations to omit a UI cancel function.
    Note 2:  I think MacOS "Force Quit" sends a Unix "kill" signal (SIGKILL) which stops a running process in its tracks.  The process disappears,  and unsaved changes are lost.   I think Unix defines milder signals, signifying something like, "please stop what you are doing", but I have no idea if these are effective in the case of DW.

  • Best strategy for working with popup dialog/PanelWindow (refbook)?

    In JD 11g I want selecting the value from reference book (which returned from DB). This reference book must show in popup dialog.
    I create bounded task flow with page fragment in which place the query filter and table with values for selecting.
    1. I inserted task flow as region in DIALOG component and place command button "OK" and "Cancel" into DIALOG buttons facet.
    Problem - I cant gain access to binding value (which contain ID of selected row) from fragments page definition.
    I try set the "Data Control Scope" value of task flow to "shared", but this did not help.
    2. I place command button "OK" and "Cancel" into page fragment and inserted task flow as region in panelWindow component. Now I cant gain access to binding value from fragments page definition (of course). But I cant auto-close the panelWindow after pressing buttuns on page fragment.
    Please help to solve a problem!

    Thank you for help, Frank!
    I have many reference books (reftables), which contains much records each (two columns - ID, TITLE). Also I have several tables (main tables), which refer to these reference books (maintable.ID_REF1 -> REF1.ID). On page, where I edit record from one of the main tables, i cant use simple LOV combobox, coz many records from reftable. Also I cant use ADF LOV input / ADF CHOICE LIST coz in input fields shows the ID of ref row (i want - the "title" column, bun cant do it). So I have solved to use the modal dialog / panel window in which include the region with reftable (coz each reftable may use in many page with edit of main tables).

  • How do I add a dialling pause?

    Before you post, please note, I am using a UK iPhone 3G, which does not have a "pause" button - the button layout is as follows:
    1 2 3
    4 5 6
    7 8 9
    * 0 #
    "Add to contacts button" "Call" "Backspace"
    I want to know how to insert a pause between numbers so I can use Voipfone's Mobile VoiP Link (http://www.voipfone.co.uk/PBMobile_VoipLink.php).

    There is no pause button on the dialing keypad (if you're dialing a number, you just dial the number, then when it connects, you go back to the keypad and dial the other numbers, pausing when you need to pause).
    To add a pause to a stored number (i.e. in your contacts list), in Address Book you can use a comma as dixieD suggested. When entering a contact number on the iPhone (i.e. in the Contacts app), at the bottom left of the keypad there's a + * # button (in place of the Add to Contacts button in the dialing keypad). Tap that, and you'll see a pause button.
    Hope this helps...

  • How do I insert a wait in dialing string on WP7 Trophy

    I was able to figure out how to insert a pause (its the comma) but I need to insert a wait, which is where it dials part of the number, hits the wait and after the prompt sends the part of the number after the wait.  It looks like similar to the P for pause or W for wait on those other operating systems like RIM and Android.

    Add more commas, each one is a specified time unit. More commas more time...,,,,

  • Adding images in custom dialog box

    Hi!
    Do  you know if it's possibile to insert an image in a custom dialog box? I mean during the custom dialog box design (during the .dre file creation).
    Thanks to all!

    Hi Stemens,
    I'm hesitant to answer your questions anymore because somebody always comes behind and shows everybody how much I don't know   Anyway, I do not know of a way. I remember that there have been other developers discussing this and I think everybody just gave up. I have never seen an image in a dialog box, so that tends to indicate to me that no one has found a way.
    Russ

  • Pauses in phone numbers and signature lines?

    Two basic questions:
    How do I insert a "Pause" or "Wait" character in my phone numbers. The P and W from my standard phone is no longer recognized by my Razor M.
    I use Gmail and sometimes reply via my phone - do I use a special signature account in Gmail that says "sent from my phone" or is there a more automatic method that recognizes I'm sending from phone (or tablet...).
    Thanks in advance!

        Hey there, chief.arktk!
    I'm glad you were able to get the resolution you were looking for.
    I wanted to provide the steps for anyone that may come across this instance
    http://vz.to/16bCtkL. Happy pausing!
    Tamara H.
    Follow us on Twitter @VZWSupport

Maybe you are looking for