Ignore voice commands / Speech Recognition Server timeout

I'm fairly new to AppleScript but I've found it really entertaining and gloriously simple to pick up so far.  I've been using it mostly to make my own speakable items for the Mac's voice control, and I've managed to write some basic things like voice commands to set/change volume and brightness.  My goal at this point is to be able to do the majority of things I want to do on my computer by voice only.  Sue me - I just rewatched Iron Man and I really wish I had a JARVIS system right now. 
This means that the computer must always be listening for commands (I have set it to 'listen continuously with keyword', and set the keyword as 'optional before commands').  It defeats the purpose if I have to walk over and hit a key to start listening for commands.  At the same time, I don't want to have to speak a keyword, because I will invariably forget to do so and it's also an added hassle (especially when I have several commands to say - I don't want to have to say the keyword before each command). 
You might have an idea of where this is going.  Obviously, if the computer is always listening, it will pick up on normal conversation and try to interpret it. 
I could just deactivate voice commands when I'm not using it, but as I said earlier, I don't want to have to either hit a key or say a keyword.  In other words, I want to be able to activate and deactivate voice commands by voice.  Deactivating is easy.  Activating is what presents an interesting problem, because if it's deactivated, how will it hear my reactivation command? 
Thus, the first part of my question: is there a way - any way at all - to get voice commands to ignore commands until given some keyword, short of literally changing its settings to listen for a keyword before the command? 
I decided to try to use speech recognition.  This must, I think, be involved in some way, because as I said earlier, this presents the unique problem of having voice commands deactivated yet still able to recognise the reactivation command.  I had noticed that while the computer is listening for a specific command, it ignores anything that isn't what it is listening for.  I tried to use this to my advantage and wrote a script to listen for a reactivation command; until the reactivation command was given, the computer would ignore everything else.  The problem is that the speech recognition server times out after two minutes.  I have tried to increase this, but to no avail (see below for my attempts). 
Thus, the second part of my question: assuming there is no other answer to my first question, is there a way to get speech recognition to listen indefinitely?
Here are the two things I tried to make the timeout last longer, specifically for five minutes (300 seconds) in both cases.  Neither worked; both timed out after 120 seconds. 
tell application "SpeechRecognitionServer"
        set userinput to listen for {"resume voice commands"} giving up after 300
end tell
and
with timeout of 300 seconds
          set userinput to listen for {"resume voice commands"}
end timeout

UPDATE: I have since come up with an alternate solution.  I created two speakable items, one for 'deactivation' and one for 'activation'.  The deactivation command uses UI scripting to set voice commands to 'keyword required' mode (i.e. the keyword is required before each command); the activation command simply sets it back to 'keyword optional' mode. 
I figure that as long as I choose a keyword that's unique enough that it (and things that sound like it) won't come up too often in conversation, the computer will ignore anything I say once I activate the keyword requirement.  Then, I only need to say the keyword once along with the reactivation command to bring it out of this 'ignore commands' state. 
In a way, this is actually better, because it allows me to continue to use voice commands if I really need to, as opposed to having to say the reactivation command to get my computer to listen to me, saying my intended command, and then saying the deactivation command to make it ignore me again. 
All the same, if anyone has answers to any of my two original questions, please don't hesitate to share your knowledge!  It might come in handy later! 

Similar Messages

  • Speech recognition server using all kinds of memory!

    I'm running an imac 27" with 8gb of memory and have been doing some video work lately.  Watching things with activity monitor I noticed that speech recognition server process was using 800mb + of memory.  Normally I keep speech recognition started but activated by voice suppressed with the escape key.
    I have already found that -using- speech commands prevents the computer display from going to sleep, like this discussion - https://discussions.apple.com/message/11395271?searchText=speech%20recognition%2 0server#11395271
    I reported this as a bug to Apple, and they admitted there is a problem, and that maybe they will fix it but no guarantee. 
    I created a workaround for the display sleep that seems to alleviate both situations, I "wrote" an applescript to restart speakable items.  It's pretty simple but you have to wait for the processes to go away, around 30 seconds or so.
    Has anyone else seen or reported the excessive memory use with speech recognition?

    That's wishful thinking if you think an update will be made overnight by Apple because of a complaint by an individual. 
    10.7.3 reportedly only updates:  
    Add Catalan, Croatian, Greek, Hebrew, Romanian, Slovak, Thai, and Ukrainian language support
    Address issues when using smart cards to log into OS X Resolve issues authenticating with directory services Address compatibility issues with Windows file sharing
    10.7.2 reportedly only updates: 
    iCloud stores your email, calendars, contacts, Safari bookmarks, and Safari Reading List and automatically pushes them to all your devices. Back to My Mac provides remote access to your Mac from another Mac anywhere on the Internet. Find My Mac helps find a missing Mac by locating it on a map and allows you to remotely lock the Mac or wipe all its data. Getting started with iCloud is easy. After installing the update, OS X will automatically present an iCloud setup panel. Simply enter an existing Apple ID or create a new one and then follow the on screen instructions. To learn more about iCloud visit http://www.apple.com/icloud.  
    The 10.7.2 update also includes Safari 5.1.1 as well as fixes that: Allow reordering of desktop spaces and full screen apps in Mission Control.
    Enable dragging files between desktop spaces and full screen apps. Address an issue that causes the menu bar to not appear in full screen apps. Improve the compatibility of Google contact syncing in Address Book.
    Address an issue that causes Keynote to become temporarily unresponsive.
    Improve VoiceOver compatibility with Launchpad.
    Address an issue that causes a delay in accessing the network after waking from sleep.
    Enable booting in to Lion Recovery from a locally attached Time Machine backup drive. Resolve an issue that causes screen zoom to stop working. Improve Active Directory integration.
    10.7.1:
    Address an issue that may cause the system to become unresponsive when playing a video in Safari. Resolve an issue that may cause system audio to stop working when using HDMI or optical audio out. Improve the reliability of Wi-Fi connections. Resolve an issue that prevents transfer of your data, settings, and compatible applications to a new Mac running OS X Lion. Resolve an issue in which an admin user account could be missing after upgrading to OS X Lion.
    These are each information from the various update pages.    While Apple has been known to include unreported updates in their version updates, the closest to something desired was the Voiceover improvement in 10.7.2.  That though is of speech from putting the cursor over text to read out loud.
    If they are running 10.7.3, and have not seen improvement, then my advice from my other post is good.
    I would also indicate that one is running 10.7.3 in one's profile so one knows one isn't missing any updates that may not already be applied.

  • Speech recognition server "not responding"

    speech recognition server" "not responding" constantly in Activity Monitor and it is Highlighted in RED
    Anybody seen this before?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • What is speech recognition server? Can I use applescript to make an app like siri??

    tell application "SpeechRecognitionServer"
    set response to listen for {"good","bad"} with prompt "How are you?"
    if response is "good" then
    say "Wonderful sir.. Is there anything you want me to do for you?"
    else
    say "Cheer up! Is there anything I can do for you?"
    end if
    end tell
    This is the script i'm trying to run, but there's a problem! it says - "Where is Speech Recognition Server"

    The path for that is /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognit ion.framework/Versions/A/SpeechRecognitionServer.app

  • E71 - Voice commands / Speech Help / Reading Email...

    Voice Commands
    What's with these voice commands? However I speak nothing gets recognized. Where can I record a voice command?
    Why don't they work?
    Speech Help
    Or "Sprachbefehle" as it is coined on my German version has two (!) different voices when I go there under MENUE. And even though I have set up German/Female - I have 2 male voices (?).
    That is highly inconsistant - Is that intentional?
    Reading Emails
    I have one Exchange account and an IMAP account configured. When in the Standby screen and I press and hold the left context button (configured as "MENUE") the IMAP account is always read out loud.
    How do I change it to read the EXCHG account?
    TIA,
    Heinzharald
    (getting a bit frustrated know...)
    E71-1: RM-346, 100.07.76, 08-06-2008
    NPowerProfiler: 0.03-0.05W
    since: 18.08.2008

    Hi,
    Please bear in mind that the purpose of these forums are specifically for user-to-user support only. You will not receive an official Nokia response here.
    The moderators are only here to moderate and we will not be able to provide any assistance.
    If you would like to hear from Nokia, you can use the "Contact Us" link at the top of the page and then, select your country in the section "Call or Email Nokia Care".
    Regards,
    Concordia
    ~*~ New to Nokia Support Discussions? ~*~
    You may want to have a look at the guidelines!

  • Can I use Voice Commands (Speech) to control the DVD Player?

    Problem: I want to insert a DVD in the the DVD drive and use voice commands to stop, pause, play, move forward, move back, and quit the DVD Player. Is this possible? If so how would I do this?
    Thanks in advance for your help.
    Jim Minor

    You can create a speakable item. Use AppleScript Editor (Applications > Utilities > AppleScript Editor) to write the appropriate AppleScript to perform the desired action, and give it a name which is the command you want to speak. Then, make a subdirectory in the Speakable Items directory named "DVD Player" and copy your script to it. You should be able to speak the name of the script when DVD Player is in the foreground and have the script execute.
    An example script (Play.scpt):
    tell application "DVD Player"
    play dvd
    end tell
    Other commands that the DVD Player application understands:
    fast forward dvd
    pause dvd
    rewind dvd
    stop dvd
    step dvd
    go to \[ main menu / title menu / subpicture menu / audio menu / angle menu / beginning of disc \]
    press \[ up arrow key / down arrow key / left arrow key / right arrow key / enter key \]
    open VIDEO_TS
    open dvd video folder
    play next chapter
    play bookmark
    play named bookmark
    play video clip
    play named video clip
    exit clip mode
    obscure cursor
    eject dvd
    The DVD Player application also has a bunch of properties related to chapters, titles, subtitles, etc.

  • Speech recognition freezing

    I downloaded the "Serena" voice (from the UK) for my speech recognition system and when I use the voice my speech recognition freezes.  When I use the default voices I don't have a problem.  How can I make Serena's voice work? 

    I think you mean "Text to speech"? Alex is the new text to speech voice.
    If you go into system preferences > Speech > Text to speech and select "Alex" and then press the "Play" button on the right of the next line down does it announce itself correctly? If it doesn't speak at all then you might have an installation problem and need to re-install.
    You could also try quitting from System Preferences and opening Finder, then go into your home directory then Library then Preferences and deleting the file "com.apple.speech.voice.prefs.plist". Then open up System Preferences and select the "Alex" voice again and see if that helps.

  • Turning off speech recognition

    Is there a way to completely turn off speech recognition server? I don't use it at all and it takes a lot of memory when running.

    Hi
    I'm assuming that you've tried turning it off using System Preferences > Speech > Speech Recognition.
    If that doesn't work then I guess you could try deleting the preference files. Look in these two folders:
    - Macintosh HD/Library/Preferences and
    - your user name/Library/Preferences
    Look for files with names like: com.apple.speech.recognition. .. .plist
    Change the .plist file extension to something else and then reboot the computer. With any luck this should clear the problem. If it makes things worse you can rename the files back to their original names.
    Good luck
    Bob
    iBook G3   Mac OS X (10.4.2)  

  • Known issue: Cortana background voice command cannot be debugged due to 5 second timeout (Windows 10 Insider Preview SDK and tools, April 2015 release)

    Cortana currently dismisses itself as soon as it loses focus. If you switch to Visual Studio when debugging a background voice command, Cortana will dismiss itself, end the connection with your app and kill the app's background task.

    You can work around this issue by remotely debugging your app on a different machine. This eliminates the focus problem by allowing Cortana to remain in focus (on the remote machine) while you debug with Visual Studio (on your local machine).
    Prerequisites
    You have installed Windows 10 and Visual Studio 2015 RC on your main development computer.
    You have installed Windows 10 on a separate computer or virtual machine (Visual Studio not required).
    Note: Download Windows 10 from
    http://windows.microsoft.com/en-us/windows/preview-iso-update-1504
    Terminology
    Your local computer is your main development box with Visual Studio 2015 RC and your project files.
    Your remote computer is a separate machine that will run your app remotely while maintaining a connection with Visual Studio on your local computer.
    Step 1: Enable Remote Desktop
    Ensure your remote computer can receive Remote Desktop requests:
    Sign into your remote machine
    Right-click the Start menu and select System
    Make a note of the machine name (you will reference it often)
    Click the Remote settings link
    Select the Allow remote connections to this computer radio button
    Save and close
    Step 2: Configure your Remote Desktop connection and remote microphone
    On your local machine, start Remote Desktop Connection from the Start menu
    Click Show Options
    On the General tab, type of the name of the remote machine
    Navigate to the Local Resources tab
    Click the Settings button in the Remote Audio section
    Change Remote audio recording to Record from this computer. This enables the remote microphone
    Hit OK and navigate back to the General tab
    Click Save As and save the Remote Desktop connection to a location on your computer
    Connect to the remote machine
    Step 3: Install Remote Tools for Visual Studio 2015 RC on the remote machine
    Sign into the remote machine
    Navigate to
    https://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs.aspx
    Expand Additional Tools and look for Remote Tools for Visual Studio 2015 RC
    Download and install
    Configure the remote debugger as described at
    https://msdn.microsoft.com/en-us/library/bt727f1t.aspx. Tip: Scroll down to “Start and configure the remote tools for the first time”
    Run Remote Debugger from the start menu and keep the app running
    Step 4: Enable developer mode on the remote machine
    This step allows you to deploy and test apps to the remote machine. For details and alternate instructions see
    https://msdn.microsoft.com/en-us/library/windows/apps/dn706236.aspx.
    Remain signed into the remote machine
    Run gpedit.msc from the start menu (this is the Local Group Policy editor)
    Ignore the two popup error messages that will appear immediately
    Use the tree view on the left side to navigate to Local Computer Policy -> Computer Configuration -> Administrative Templates -> Windows Components -> App Package Deployment
    Double-click and enable Allow all trusted apps to install
    Double-click and enable Allows development of Windows Store applications and installing them directly from an IDE
    Step 5: Enable Cortana debugging on the remote machine
    This step disables the 5-second timeout when running a background task.
    Remain signed into the remote machine
    Run Debuggable Package Manager from the start menu
    Copy/paste the following line exactly and hit enter: $a=Get-AppxPackage | Where-Object {$_.Name -eq "Microsoft.Cortana"}
    Copy/paste the following line exactly and hit enter: Enable-AppxDebug $a
    Type exit and hit enter to close the window
    Step 6: Confirm you can connect to the remote machine with Visual Studio
    Sign into the local machine and start Visual Studio
    Click the Debug -> Attach to process menu (a project does not have to be open)
    Type the name of the remote machine and hit enter
    Provide your credentials (if using a Microsoft account, type your email display name and password, ignoring the domain text)
    The connection is successful if you see a list of processes
    Tip: If you experience a problem, make sure the Remote Debugger app is running on the remote machine
    Step 7: Configure remote debugging in your Visual Studio project
    Open your project in Visual Studio on the local machine
    Open the project properties (e.g., right-click the project in the solution explorer and select
    Properties)
    Navigate to the Debug section
    Select Remote Machine for the target device
    Type the name of the remote machine
    Close settings
    If necessary, on the Visual Studio toolbar select Remote Machine
    If necessary, switch to x86 or x64 depending on the remote architecture
    Run
    If prompted, enter your credentials
    Switch to the remote machine over Remote Desktop and confirm the app shows up
    Sometimes it will not show up during the first run; stop and restart
    Set a breakpoint and confirm the debugger on the local machine is triggered
    You should now be able to debug Cortana voice commands, including background commands.

  • Note 3 won't answer a call by using the "answer" voice command. Other voice commands work fine (ie 'volume up') and speech to text works fine. Tried it in the car and in a quiet room at home. What am I missing?

    Note 3 won't answer a call by using the "answer" voice command. Other voice commands work fine (ie 'volume up') and speech to text works fine. Tried it in the car and in a quiet room at home. What am I missing?

        Rodilator,
    We'll figure this out together! Can you please walk us through the exact steps you're taking to answer a call when it comes in?
    SarahO_VZW
    Follow us on Twitter @VZWSupport

  • Windows Speech Recognition Macros - Wait for Second Command

    Hello all. 'm terribly sorry if this was posted in the wrong forum. Let me know where to put it and I'll move it accordingly.
    I'm working with Windows Speech Recognition Macros, and I've got a question. Is there ANY way to write a macro that is triggered when the user says something (<listenFor></listenFor>), has the computer say something back to the user (<speak></speak>)
    and then waits a number of seconds for a specific command from the user? An example of what I'm saying would be something like....
    (I named my computer Aurora)
    ME: Aurora, close all windows.
    AURORA: Command received. Confirming close all windows.
    *WAIT*
    ME: Confirm.
    AURORA: Command confirmed. Closing all windows.
    or something along those lines to create some sort of dialogue between the computer and I. Is this acheiveable through the use of Speech Recognition Macros, or would I need to design a program that integrates Windows Speech Recognition to do this (if so,
    point me in the right direction)? Or worse, am I asking too much from a simple Speech Recognition program?

    I'm working with Windows Speech Recognition Macros, and I've got a question. Is there ANY way to write a macro that is triggered when the user says something (<listenFor></listenFor>), has the computer say something back to the user (<speak></speak>)
    and then waits a number of seconds for a specific command from the user? An example of what I'm saying would be something like....or something along those lines to create some sort of dialogue between the computer and I. Is this acheiveable through the
    use of Speech Recognition Macros, or would I need to design a program that integrates Windows Speech Recognition to do this (if so, point me in the right direction)? Or worse, am I asking too much from a simple Speech Recognition program?
    If you are asking if you can add wait commands to WSRMacros I do not see why you need a separate program. The Toolkit developed for WSR allows easy creation of WSRMacros and nesting of multiple macros using the Pause Execution command which inserts
    your choice of the length of the Wait state.
    For writing your own Wait state command, see the MSDN article on the Wait state command. I tried inserting the link but it won't activate because my account has not yet been approved.
    Marty Markoe
    2010-2011 Microsoft MVP

  • Voice/Speech Recognition

    We are volunteers trying to add a web Speech Recognition
    feature to help language learners practice their word
    pronunciations. Our website is www.ElGuides.cc. Please give
    recommendations on workable plug-ins for DW CS3. (Voice Web Studio
    1.1.1 has not opened -- Adobe Extension Manager requesting DW MX
    and no help from developer yet.) Thank you, EL92103

    You're not going to find a Dreamweaver "plug-in" for a fringe
    piece of software. You'd be better off finding an application that
    works on your hosting platform, and then following the instructions
    that come with it.
    Try searching
    http://www.hotscripts.com for
    something that is suitable.
    Also, don't repost the same question when no one answers
    you.

  • Voice/speech recognition program

    Hello,
    i can't remove the symbol of the voice recognition program from the desktop/dock. Doubleclick only moves the symbol from the desktop to the dock.
    I checked the system setup "speech":
    "voice/speech recognition" and "voice over" are deactivated.
    How can I remove this? It' s annoying.
    Thank you for your reply.

    Hello,
    I know, this is the "normal" way to remove a symbol from the dock. Using only snow leopard, there is no problem. But: when I start parallels (and windows XP operating system) on my macbook, the symbol appears on the desktop. If I doubleclick, the symbol moves to the Dock. If I click and hold on the Dock icon, there is only 1 option (open speech recognition) instead of 2 options (open and options for example remove from dock).

  • Speech recognition - keystrokes and commands

    I have recently began using Windows 7 speech recognition with my Photoshop elements 10 software. It works wonderful. Now that I have all of my "routine" tasks with verbal commands I can focus on what I am drawing rather than spending much time clicking menus and tapping keys :-) I would like to expand my verbal commands to be able to set the options in all of the "option tools menus" and it would be great to pick items from the drop-down menus.
    Has anyone experience in this area? If so I would appreciate your wisdom and advice.

    OK, I'm using speech recognition to compose this message.
    I don't think it's possible to use SR to access the Options Bar, at least I haven't found out how to do it.
    Picking items from the drop down menus is done with numbers.  For example, I'll say "Click Filter" and the drop down menu will display.  Then I need to say "Show Numbers" and pick the relevant choice.  When the sub-menu appears, I need to do the "Show Numbers" thing again.
    Ken

  • Ios 5 possible firmware bug for iPhone 4; Voice command/text-to-speech doesn't work properly.

    I upgraded an AT&T and Verizon iPhone 4 to the ios 5 firmware, and I am having the same exact issues for both phones.  When using the voice command a few times, the audio voice does not come through the "speaker" (referring to the speaker located at the bottom of the phone).  Instead, the audio voice goes through the receiver which is on the front face of the phone, on the right of the camera.
    For example, say you want to use the voice command to dial a phone number.  You would enable voice command by depressing and holding down the "Home" button and give the command "dial...1-800-452-3456", the phone would then repeat the phone number back to you through the "speaker".  However, when I did this a few times, the voice instantly goes to the receiver instead.  I found no way to fix this problem.  I tried the following and none of these solutions worked:
    Turned the phone off and back on again
    Hard reset (held down the Home and Lock button for 10 seconds)
    Restored the phone, and set the phone up as a "new iPhone" instead of restoring from back up
    After trying to restore both iPhones and still have the same issue, I made an appointment to visit Apple.  I took the Verizon iPhone 4 to Apple, and the employees handed over a refurbished iphone in hopes to solve this issue.  However, this refurbished phone still had the same exact issue. 

    Of course I checked my apps library and found nothing. However I'm looking at the status while sync is processing, I'm 100% sure that app is not synced to my iTunes library
    Yep, I can always manually "transfer purchases" to my iTunes library. But this is not the point. On my old iPhone 4 and new iPad (3rd gen), it will sync all newly installed apps from my iOS devices to my iTunes library, no need to click "Transfer Purchases" again.

Maybe you are looking for