Edit the scripts of speech recognition

I would like to know if I can edit the scripts to be able to command the mac with custom voice commands (in the text and the language), and how I have to do for doing that. thanks

See if this helps:
http://forums.macrumors.com/showthread.php?t=299688

Similar Messages

  • Using VB API in VBA to edit the Calc Scripts

    Guys,
    Does anyone of you have VBA source code/examples utilizing Essbase API for the following operation.
    I want to copy Calc Script from Server to the client, edit the Script using VBA and copy back the Script to the Server. Any kind of info is appreciated.
    Thanks in advance
    HYPuser

    I posted some real sample code a while back for a completely different function (member renames).
    Renaming Existing Member Names
    So while you'll have to write the calc modification code yourself (or ask Glenn his rate ;-)), this at least shows you how the initialization / login / termination of the API would work. That's probably the most confusing aspect of using the VB API for the first time anyway.
    All that said, if this is from Excel and the user will already be logged in via the Excel Add-In, I believe that you can make life much easier and grab the hCtx directly without any initialization / login/ termination worries. I probably should have done that myself in the example I gave. See Tim Tow's posts in this thread:
    API
    EDIT: Two things I just noticed - first, the code sample I gave even has an example of polling for ProcState, so that gets you closer than I thought! Second, remembered that the line that reads...
    While ProcState.State ESB_STATE_DONE
    ...should actually have a 'less than / greater than' symbol between ProcState.State and ESB_STATE_DONE. Can't get the forum to display them correctly, even in code tags...
    Edited by: TimG on May 16, 2011 2:55 PM

  • Help editing the imageTracing.jsx Script

    Hello, I am looking for guidance on how to properly edit the imageTracing.jsx script in Illustrator CC. At the moment it only defaults to using a basic black and white trace, I need the trace to use one of my presets, expand the trace and save it. I need to run thousands of frames of bitmap animation through a batch trace process essentially. I've tried to batch it through Bridge, but it just throws up and error (59 I believe) and I've set up an action to try and batch that way but it never completes the batch by expanding the trace.
    I've tried editing the script myself, but if I change the preset numeral it appears to break the save and close functionality of the script. Not quite sure what I am doing wrong. I've also tried adding a line for expanding the trace but I may be using the wrong syntax  --- tracing.expandTracing(); ---
    Below is the default script as shipped with Illustrator, no changes made.
    // Main Code [Execution of script begins here]
    // uncomment to suppress Illustrator warning dialogs
    // app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
    // Collectable files
    var COLLECTABLE_EXTENSIONS = ["bmp", "gif", "giff", "jpeg", "jpg", "pct", "pic", "psd", "png", "tif", "tiff"];
    var destFolder, sourceFolder;
    // Select the source folder
    sourceFolder = Folder.selectDialog( 'Select the SOURCE folder...', '~' );
    //sourceFolder = new Folder("C:/Users/<Username>/Desktop/1");
    if(sourceFolder != null)
        // Select the destination folder
        destFolder = Folder.selectDialog( 'Select the DESTINATION folder...', '~' );       
        //destFolder = new Folder("C:/Users/<Username>/Desktop/2");
    if(sourceFolder != null && destFolder != null)
            //getting the list of the files from the input folder
            var fileList = sourceFolder.getFiles();
            var errorList;
            var tracingPresets = app.tracingPresetsList;
            for (var i=0; i<fileList.length; ++i)
                if (fileList[i] instanceof File)
                     try
                            var fileExt = String(fileList[i]).split (".").pop();
                            if(isTraceable(fileExt) != true)
                                continue;
                            // Trace the files by placing them in the document.
                            // Add a document in the app
                            var doc = app.documents.add();
                            // Add a placed item
                            var p = doc.placedItems.add();
                            p.file = new File(fileList[i]);
                            // Trace the placed item
                            var t = p.trace();
                            t.tracing.tracingOptions.loadFromPreset(tracingPresets[3]);
                            app.redraw();
                            var destFileName = fileList[i].name.substring(0, fileList[i].name.length - fileExt.length-1) + "_" +fileExt;
                            var outfile = new File(destFolder+"/"+destFileName);
                            doc.saveAs(outfile);
                            doc.close();
                    catch (err)
                            errorStr = ("Error while tracing "+ fileList[i].name  +".\n" + (err.number & 0xFFFF) + ", " + err.description);
                            // alert(errorStr);
                            errorList += fileList[i].name + " ";
           fileList = null;
           alert("Batch process complete.");
    else
           alert("Batch process aborted.");
    sourceFolder = null;
    destFolder = null;
    function isTraceable(ext)
         var result = false;
         for (var i=0; i<COLLECTABLE_EXTENSIONS.length; ++i)
              if(ext == COLLECTABLE_EXTENSIONS[i])
                result = true;
                break;
        return result;
    And this is the amended version with my change to lines 57 and 58.
    // Main Code [Execution of script begins here]
    // uncomment to suppress Illustrator warning dialogs
    // app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
    // Collectable files
    var COLLECTABLE_EXTENSIONS = ["bmp", "gif", "giff", "jpeg", "jpg", "pct", "pic", "psd", "png", "tif", "tiff"];
    var destFolder, sourceFolder;
    // Select the source folder
    sourceFolder = Folder.selectDialog( 'Select the SOURCE folder...', '~' );
    //sourceFolder = new Folder("C:/Users/<Username>/Desktop/1");
    if(sourceFolder != null)
        // Select the destination folder
        destFolder = Folder.selectDialog( 'Select the DESTINATION folder...', '~' );       
        //destFolder = new Folder("C:/Users/<Username>/Desktop/2");
    if(sourceFolder != null && destFolder != null)
            //getting the list of the files from the input folder
            var fileList = sourceFolder.getFiles();
            var errorList;
            var tracingPresets = app.tracingPresetsList;
            for (var i=0; i<fileList.length; ++i)
                if (fileList[i] instanceof File)
                     try
                            var fileExt = String(fileList[i]).split (".").pop();
                            if(isTraceable(fileExt) != true)
                                continue;
                            // Trace the files by placing them in the document.
                            // Add a document in the app
                            var doc = app.documents.add();
                            // Add a placed item
                            var p = doc.placedItems.add();
                            p.file = new File(fileList[i]);
                            // Trace the placed item
                            var t = p.trace();
                            t.tracing.tracingOptions.loadFromPreset(tracingPresets[1]);
      tracing.expandTracing();
      app.redraw();
                            var destFileName = fileList[i].name.substring(0, fileList[i].name.length - fileExt.length-1) + "_" +fileExt;
                            var outfile = new File(destFolder+"/"+destFileName);
                            doc.saveAs(outfile);
                            doc.close();
                    catch (err)
                            errorStr = ("Error while tracing "+ fileList[i].name  +".\n" + (err.number & 0xFFFF) + ", " + err.description);
                            // alert(errorStr);
                            errorList += fileList[i].name + " ";
           fileList = null;
           alert("Batch process complete.");
    else
           alert("Batch process aborted.");
    sourceFolder = null;
    destFolder = null;
    function isTraceable(ext)
         var result = false;
         for (var i=0; i<COLLECTABLE_EXTENSIONS.length; ++i)
              if(ext == COLLECTABLE_EXTENSIONS[i])
                result = true;
                break;
        return result;
    Thanks in advance for your help, as you can imagine, manually tracing thousands of images for a client job will be a nightmare if I can't sort out a batch.

    hello,
    after line 32 :
    var tracingPresets = app.tracingPresetsList;
    do an alert :
    alert( app.tracingPresetsList );
    it'll show you the name of the differents presets
    then line 57, call the good preset :
    t.tracing.tracingOptions.loadFromPreset('here the name of your preset');
    for expanding :
    change line 58 like that :
    t.tracing.expandTracing();
    you forget (t.) at the beginning
    best wishes for the new year

  • How to edit the installation scripts in the supporting objects

    I wanted to update one of the installation scripts in the supporting objects. I clicked into that script and use the "script editor" tab. After editing the script, I clicked "Apply Changes" button. It redirected me to the upper level of the page. When I reopen the script, the content of this script is messed up and has the content of another script, not what I have changed. What could happen with it? There is one case that the script was all wiped out!
    One general question, how can I easily update the install scripts and reload it without export and import the whole application? or Can I?
    Thanks
    Fengting

    Fengting,
    I am not sure what causes this, but I have had the same issue with shared components >> report queries. Sometimes if you have multiple report queries it becomes impossible to edit any of them. If I remember correctly I tried using a different browser and everything seemed to work ok. I was using Firefox when I was having the issue.
    Sorry this is not an answer, but I feel your pain!
    Cheers,
    Tyson Jouglet

  • How to edit the VuGen script?

    I am usng VuGen 11.0to  generate script, how to edit the script to make this happen - that inserts a new record to the database when the script runs in BPM?

    Yes, 'View' is read only. Get KompoZer, which is free: you can create web pages in it, or open existing pages and edit them.

  • How edit the cue script

    I have a cue 7.1 . I need edit the AA script, but there is not EDIT button. Im unable to edit the script.
    In other cue 8 that I have it only allow me edit only one of the scripts.
    How can I enable the edition of one AA sctipt?
    Thnks        

    Hi Rafael
    I hope to take a look on the below link , please.
    http://www.cisco.com/c/en/us/support/docs/voice-unified-communications/unity-express/63897-cue-custom-scripts-start.html
    https://supportforums.cisco.com/docs/DOC-1257
    Thanks
    Please rate all useful information

  • Speech Recognition stops working after a minute of nonuse

    I'm a grad student trying to keep from exacerbating my carpal tunnel and just figured out how to use the voice commands on my macbook. So far, they work great, they hear my voice, it does what I tell it to do, and I'm not constantly hitting apple+tab and apple+c and apple+v and so on, which really helps my wrists!
    BUT. If I go for more than a minute or two without using a voice command, it stops working. I can't pinpoint anything else that triggers it other than if I stop using it for a little bit while I'm reading a paper or something. The microphone is calibrated and working, the little black arrows and the blue and green bars flash on the widget like it hears me, but then it won't give me the sound that says the command was recognized and it doesn't perform the command any time I try to use it again after a few minutes of not being used. It's like the recognition part goes to sleep and won't wake up.
    If I go to the system preferences and toggle Speakable Itemst off and then on again, it starts working again until another minute or two of non-use. If I use spoken commands constantly, it will stay on for a good long while, but I'm not using it constantly that's the end of speech recognition. I really can't stop to just tell it some unneeded command to keep it awake all the time! Eventually, the computer gets confused if I turn the "speakable items" on and off too many times from the System Preferences, and it gets confused about whether or not it's turned on or off, or the widget disappears but the System Preferences panel thinks the Speakable Items is on.
    I read somewhere that other people with a newer OS have a similar problem if they don't use the default speaking voice, so I switched to Alex and restarted, and the same thing is still happening.
    I'm running 10.5.8, and using safari, word 2011, preview, nothing too crazy. My speech recognition is in "Listen only while key is pressed" mode, and like I said, works great until I stop using it for a minute or so. I'm using the internal microphone on my MacBook (dob circa 2008). Any tips on how I can actually keep my Speech Recognition useful? Thanks in advance!

    OK, I have one more question now, seems to be the same as this question which was never answered years ago:
    Speakable Commands>Application Switching -- how to delete items?
    When I click on the triangle from the speech command widget and open speech commands, there is a TON of stuff there that I'll never ever use, but these things do not appear in the Library/Speech/Speakable Items folder so that I might be able to delete them. For example, one item I'd like to turn off is just the word "Home" and the computer keeps thinking that I said "Home" instead of whatever else I meant to say. Another keeps opening iChat or Mail, when I say "open new window" or something like that. I tried clicking, control clicking, option clicking, nothing will highlight a command in the Speech Commands window so that I might delete it.
    The "Home" command only shows up when I'm using Word, in the "front window" list. However, the Application Speakable Items/Microsoft Word folder is empty. Is there some other way to get into the speakable commands list and weed out unwanted stuff?

  • What is Speech Recognition and how do you use it?

    Hello, people. I was on my System Preferences and just out of curiosity, I clicked on Speech. Then there was a tab on the right called Speech Recognition. What is Speech Recognition and how do you use it?

    When you turn it on the default should be listen only when ESC key is pressed. Hold the ESC key and say, in your normal voice, "show me what to say".
    For fun.. say "tell me a joke"
    Mac OS X 10.6 Help: About speech recognition
    About speech recognitionhttp://docs.info.apple.com/article.html?path=Mac/10.6/en/8355.html
    Mac OS X 10.6 Help: Speech Recognition Commands preferences
    Speech Recognition Commands preferenceshttp://docs.info.apple.com/article.html?path=Mac/10.6/en/8407.html
    Mac OS X 10.6 Help: Speech Recognition Settings preferences
    Speech Recognition Settings preferenceshttp://docs.info.apple.com/article.html?path=Mac/10.6/en/8408.html
    Mac OS X 10.6 Help: Calibrating speech recognition to your environment
    Calibrating speech recognition to your environmenthttp://docs.info.apple.com/article.html?path=Mac/10.6/en/8406.html
    Mac OS X 10.6 Help: If the Speech Recognition pane is empty
    If the Speech Recognition pane is emptyhttp://docs.info.apple.com/article.html?path=Mac/10.6/en/8907.html

  • Speech Recognition Not Working. Why?

    I have a 6-month old Macbook (OSX 10.5.5), and I want to try out the built in speech recognition software. For some reason, it won't accept any input, no matter the configuration I put it in. When I click calibrate, it's slow to open, and no matter what I do with the slider, it won't recognize my commands. I've tried it in a new account, but without success. It appears to be system-wide. Also, there are no items in the speakable items folder, and a feedback box does not appear on the desktop. Any ideas?

    Im assuming you've used the Sound pane to check that the built-in mic is working, and that you've remembered to click on the "Speakable Items" radio button.
    There are a couple of fixes that normally work when changing user helps, but it is possible that two user accounts have the same problems!
    1)
    Have you got any items in Address Book that are marked as "Company" but have no company name in them? This is an old problem that was supposed to have been fixed with Leopard, but I've heard people complaining about it occasionally since. If there are, try going through them and putting in the company names, then log out and back in again.
    2)
    Try deleting the preference files
    com.apple.speech.recognition.recognizer.prefs.plist
    com.apple.speech.recognition.AppleSpeechRecognition.prefs.plist
    com.apple.speech.recognition.feedback.prefs.plist
    all in ~/Library/Preferences/
    Failing those, and the missing Speakable Items suggests that's not the fault, try downloading and reapplying the latest Combo updater.
    If that doesn't do the trick, you may have to reinstall the OS.
    Sorry!
    Archie

  • Speech Recognition just won't load in WIN 8.1?

    Am new to WIN 8.1 - can't get Speech Recognition to load/run... Will not run either from Control Panel, Charms (search for Speech Recognition, click Windows speech recognition or from icon in Task Bar nor from START screen..  BUT.. will run/load when
    rebooted (but often won't work/recognise speech correctly (What was that appears??)) as it then automatically appears on bootup; even though it would not run/load in previous session before the reboot.. !!
    Am running HP spectre i5, 4 meg 128GB... This failure is very frustrating - lots of other reports of this occurring but can't find any solutions specific to WIN 8.1.. PLEASE HELP - use dictation  lot as typing is abysmal!!

    Hi.. yep, have seen the video thank you.. the problem is NOT knowing how to use it.. (Have been in computers and using speech recognition, mainly Nuance DS Professional for
    ages..)
    The problem I have is in LOADING the application… sometimes it will load on the click of the mouse (or touch of the screen on this HP SPECTRE) – be it loaded from the task
    bar icon that I set up, from the Windows Speech Recognition command vis the CHARMS or even from the START tiles.. other times it will not!!  Must frustrating (will have to buy a new Nuance DNS professional as windows 8.1 is not a platform for DNS Version
    10 that I have used for ages – needs !!  or maybe go back to WIN&7??)
    Couple of things I have noticed that may help others is that the programme may not load if one clicks the icon too quickly.. I find that hovering the mouse over the icon and
    waiting until “Windows speech recognition” appears, THEN clicking the icon works at times.. after the small win Speech Recognition mode (grey) icon is closed by pressing the red “close” button then it is hard to get the programme to load again.. then one must
    go to Task manager and stop the Speech Recognition programme by clicking on the end task button..
    So.. it’s the initial loading and running of the programme that concerns me..  perhaps the bods at MS could look at how memory is allocated to this programme and why when
    closing the Speech Recognition programme from the “grey” speech recognition mode button it is  subsequently “hard” to reload it again and the programme seemingly seems to still run in Task Manager after this close button has been pressed…??  (But,
    I won’t hold my breath)…
    Cheers

  • 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

  • Bluetooth Headset for Speech recognition?

    Hi everyone,
    I was wondering if I can use a bluetooth headset with a good mic to be used with the speech recognition feature in Leopard? Has anyone tried this?

    Bump...
    I'd also love to know if there's a Bluetooth headset that will work with the built-in speech recognition in Leopard. Failing that, a USB microphone that's known to work.
    (Incidentally, the built-in mike on my Logitech QuickCam Vision Pro works fine with Skype on the Mac, but is useless for speech recognition).

  • Speech recognition window problem

    My speech recognition window (the little circle thing) disappears once in a while for extended periods of time. I have done all the things suggested in the help including:
    1. going to system preferences and turning speech off and on
    2. restarting and turning off and on / turning off, restarting, and then on
    3. deleting the com.apple.speech.recognition.feedback.prefs.plist, emptying trash, and turning off/on, turning off doing the same thing and on, off, deleting, restarting, on, etc.
    4. copying all related speech recognition prefs from another admin's library into mine.
    I once thought it may be some overheating issue as it once came back after i had shutdown and let it off for a while. however, the most recent issue, it came back without shutting it off.
    sometimes it's gone for hours at a time or shortest 30mins. It usually disappears when i turn it off to let my wife login to her setup or when i turn it off when i know i wont be using it for a while or i am going to play a memory intesive game. my wife's login seems to have no problem but she doesn't use it anywhere as much as i do.
    i have set up a few of my own commands but nothing critical. things like CNN, Visualizer, etc.
    any ideas?
    for the record, it's back now......

    hi,
    i removed all preferences stored in <your home>/Library/Preferences/com.apple.speech.*
    and switched speech recognition on/off/on and the window magically appeared -use rm carefully-
    make sure that you clean the speech processes (kill -9) too before removing these files.
    quite happy to find this, this has been a real p..n in the *. Apple guys, please clean this up asap.
    btw: i've an intel mc mini single cpu v10.4.6.
    mac mini   Mac OS X (10.4.6)  

  • 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.

  • Speech Recognition calibration slow

    Hi, I have a macbook with OS X Leopard 10.5.4 and an LTB Q-Bean wireless microphone. I am trying to get the microphone to work with the built in speech recognition, however, when I go into the microphone calibration in the speech settings, the display showing the microphone volume seems to react very slowly to my voice (when I say something, it takes a second for the bar to jump to the right) and it never recognizes any of the phrases that I say. The microphone works fine in the sound settings (the volume levels there are very responsive to my voice) and with other programs such as MacSpeech Dictate. How can I fix this to work with Mac's built in speech recognition? Thanks!

    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.

Maybe you are looking for

  • Laserjet 600 M601 (CE990A) won't automatically print from envelope feeder

    All I want to do is have the envelope automatically print (without me walking over to printer and hitting the OK button).

  • Raise statemnt use in exception block

    in one procedure i found code like this begin.. exception when NO_DATA_FOUND then dbms_output.put_line('error in data fetching'); when others then raise; end; in when others if we use raise as mentioned above what will happen when other than no data

  • Apple TV full?

    I tried to buy a movie but I got a message telling me the disc was full and I had to delete something, and also the stuff I buy direct through Appletv doesnt appear in my itunes so it doesn't get backed up to my external HD. How can I sort this out.

  • My region keeps trying to revert back to the UK?

    I am running Mac OS X Lion 10.7.5 I live in the US and bought this mac in the US but auto transferred from my UK PC. Now I cannot get the region or currency to remain in US dollars. I have been into System Preferences and changed the region to the US

  • Exception occurs when accessing KM Content

    Hi, In our Portal system on NW 7.31. While accessing any files under KM content, i get the following error Runtime Error An exception occured while processing the request. Additional information: Exception during PageProcessorComponent.doContent() Ex