Interactive computer system recognizing spoken commands

Abstract: An interactive computer system having a processor executing a target computer program, and having a speech recognizer for converting an utterance into a command signal for the target computer program. The target computer program has a series of active program states occurring over a series of time periods. At least a first active-state image is displayed for a first active state occurring during a first time period. At least one object displayed in the first active-state image is identified, and a list of one or more first active-state commands identifying functions which can be performed in the first active state of the target computer program is generated from the identified object. A first active-state vocabulary of acoustic command models for the first active state comprises the acoustic command models from a system vocabulary representing the first active-state commands. A speech recognizer measures the value of at least one feature of an utterance during each of a series of successive time intervals within the first time period to produce a series of feature signals. The measured feature signals are compared to each of the acoustic command models in the first active-state vocabulary to generate a match score for the utterance and each acoustic command model. The speech recognizer outputs a command signal corresponding to the command model from the first active-state vocabulary having the best match score.

Description: Background of the Invention The invention relates to interactive computer systems in which a user provides commands to a target computer program executing on the computer system by way of an input device. The input device may be, for example, a keyboard, a mouse device, or a speech recognizer. For each input device, an input signal generated by the input device is translated into a form usable by the target computer program. An interactive computer system in which the user can provide commands by speaking the commands may consist of a processor executing a target computer program having commands identifying functions which can be performed by the target computer program. The computer system further includes a speech recognizer for recognizing the spoken commands and for outputting command signals corresponding to the recognized commands. The speech recognizer recognizes a spoken command by measuring the value of at least one feature of an utterance during each of a series of successive time intervals to produce a series of feature signals, comparing the measured featured signals to each of a plurality of acoustic command models to generate a match score for the utterance and each acoustic command model, and outputting a command signal corresponding to the command model having the best match score. The set of utterance models and words represented by the utterance models which the speech recognizer can recognize is referred to as the system vocabulary. The system vocabulary is finite and may, for example, range from one utterance model to thousands of utterance models. Each utterance model may represent one word, or may represent a combination of two or more words spoken continuously (without a pause between the words). The system vocabulary may contain, for example, utterance models of all of the commands to which the target computer program is capable of responding. However, as the number of utterance models increases, the time required to perform utterance recognition using the entire system vocabulary increases, and the recognition accuracy decreases. Generally, a target computer program has a series of active states occurring over a series of time periods. For each active state, there may be a list of active state commands identifying functions which can be performed in the active state. The active state commands may be a small subset of the system vocabulary. The translation of an uttered command to a form usable by the target computer program in one state of the target computer program may be different from the translation of the same command in another state of the target computer program. In order to improve the speed and accuracy of the speech recognizer, it is desirable to restrict the active vocabulary of utterance models which the speech recognizer can recognize in any given time period to the active state commands identifying functions which can be performed by the target computer program in that time period. To attempt to achieve this result, the speech recognizer may be provided with a finite state machine which duplicates the active states and transitions between active states of the target computer program. In practice, it has been found impossible to build a finite state machine for the speech recognizer which exactly duplicates the active states and transitions between active states of the target computer program. The target computer program not only interacts with the user, but also interacts with data and other devices of the computer system whose states cannot be known in advance. For example, a command to load a file will cause a computer program to make a transition to one state if the file exists, or to a different state if the file does not exist. However, the speech recognizer finite state machine must be built with some assumption that the file exists or does not exist. If a command to load a file is spoken to the com- puter program using the speech recognizer, then the speech recognizer finite state machine may or may not track the computer program state correctly, depending on whether that file exists or does not exist. If the speech recognizer finite state machine assumes that the file exists, but in fact the file does not exist, then the speech recognizer state machine will enter a state different from the state of the target computer program. As a result, the target computer program can no longer receive valid input from the speech recognizer. Proposals have also been made to design specific computer systems or to adapt computer programs so as to limit the complexity of the speech recognition system. For example EP-A-414238 discloses a voice-controlled filing system using the prior knowledge of the functional cycle of the filing and retrieval program to limit the speech recognition to the comparison of a spoken command to a reference model corresponding to what the system can expect as a command, based on the previous command entered by the user. Another example is the article entitled «Integrated Audio-Graphics User Interface» published in the IBM Technical Disclosure Bulletin, Vol. 33, No. 11, April 1991, on pages 368-371, which suggests to reduce the complexity of the speech recognition by limiting the options opened to the user of a program by devising special, carefully chosen, menus. Both systems rely on special designs for the computer systems and/or programs specifically intended for making it possible to predict in advance the evolution of the program states and transitions between states. Summary of the Invention It is an object of the invention to provide an interactive computer system having a target computer program having a series of active program states occurring over a series of time periods, and having a speech recognizer in which the active vocabulary of commands recognized by the speech recognizer in any given time period is restricted to a list of active commands identifying functions which can be performed by the target computer program in that given time period, without having to predict in advance the states and transitions between states of the target computer program which will occur under all possible circumstances. According to the invention, an interactive computer system is as set out in claim 1. In one embodiment of the interactive computer system according to the invention, the display means displays at least a second active-state image different from the first active-state image for a second active state occurring during a second time period different from the first time period. The object identifying means identifies at least one object displayed in the second active-state image, and generates a list of one or more second active-state commands identifying functions which can be performed in the second active state of the target computer program. The active-state vocabulary identifying means identifies a second active-state vocabulary of acoustic command models for the second active state. The second active-state vocabulary comprises the acoustic command models from the system vocabulary representing the second active-state commands. The second active-state vocabulary is at least partly different from the first active-state vocabulary. The speech recognizer measures the value of at least one feature of an utterance during each of a series of successive time intervals within the second time period to produce a series of feature signals. The speech recognizer compares the measured feature signals for the second time period to each of the acoustic command models in the second active-state vocabulary to generate a match score for the utterance and each acoustic command model. The speech recognizer then outputs a command signal corresponding to the command model from the second active-state vocabulary having the best match score. The target computer program may, for example, have only one active state occurring during each time period. The target computer program may comprise an operating system program alone, an application program and an operating system program combined, or two or more application programs and an operating system program. At least some of the commands for an active-state identify functions which can be performed on the identified objects in the active-state image for the state. The identified object in an active-state image may, for example, comprise one or more of a character, a word, an icon, a button, a scroll bar, a slider, a list box, a menu, a check box, a container, or a notebook. In an alternative embodiment of the invention, the speech recognizer may output two or more command signals corresponding to the command models from the active-state vocabulary having the best match scores for a given time period. The vocabulary of acoustic command models for each active state may further comprise a set of global acoustic command models representing global commands identifying functions which can be performed in each active state of the target computer program. The display means may comprise, for example, a cathode ray tube display, a liquid crystal display, or a printer. The display means may display both an active-state image for an active state occurring during a time period, and at least a portion of one or more images for program states not occurring during the time period. A method of computer interaction according to the invention is as set out in claim 14. By identifying at least one object displayed in the active-state image of the target computer program, and by generating from the identified object a list of one or more active-state commands identifying functions which can be performed in the active state of the target computer program, the active-state vocabulary of the speech recognizer can be limited to a small subset of the system vocabulary representing active-state commands, without having to predict in advance the states and transitions between states of the target computer program which will occur under all possible circumstances. Brief Description of the Drawing Figure 1 is a block diagram of an example of an interactive computer system according to the invention. Figure 2 shows an example of a first active-state image for a first active state of a target computer program. Figure 3 is a block diagram of an example of a speech recognizer for an interactive computer system according to the invention. Figure 4 shows an example of a second active-state image for a second active state of a target computer program. Figure 5 is a block diagram of an example of an acoustic command model store for the system vocabulary of an interactive computer system according to the invention. Figure 6 is a block diagram of an acoustic processor for the speech recognizer of Figure 3. Figure 7 schematically shows an example of an acoustic command model. Figure 8 schematically shows an example of an acoustic model of a phoneme for constructing an acoustic command model. Figure 9 schematically shows an example of paths through the acoustic model of Figure 7. Description of the Preferred Embodiments Figure 1 is a block diagram of an example of an interactive computer system according to the invention. The interactive computer system comprises a processor 10 executing a target computer program having a series of active program states occurring over a series of time periods. The target computer program generates active state image data signals representing an active state image for the active state of the target computer program occurring during each time period. Each active state image contains one or more objects. The processor may be, for example, a personal computer, a computer work station, or any other microcomputer, minicomputer, or main frame computer. The target computer program may be an operating system program such as DOS, Microsoft Windows (trademark), OS/2 (trademark), AIX (trademark), UNIX (trademark), X-Windows, or any other operating system. The target computer program may comprise one or more application programs executing with an operating system program. Application programs include spreadsheet programs, word processing programs, database programs, educational programs, recreational programs, communication programs, and many more. Objects in an active-state image may comprise one or more of a character, a word, an icon, a button, a scroll bar, a slider, a list box, a menu, a check box, a container, a notebook, or some other items. The interactive computer system further comprises display means 12 for displaying at least a first active-state image for a first active state occurring during a first time period. The display means may be, for example, a cathode ray tube display, a liquid crystal display, or a printer. Figure 2 shows an example of a hypothetical first active-state image for a first active state occurring during a first time period. In this example, the active-state image includes a frame object 14 containing a title bar object 16, a menu bar object 18, a list box object 20, and a push button object 22. The menu bar object 18 includes an "items" object, an "options" object, and an "exit" object. The list box object 20 includes a vertical scroll bar object 24, and "blue", "green", "red", "orange", "black", "white", and "purple" objects. In the list box 20, only the "blue", "green", "red", "orange", and "black" objects are shown in Figure 2. The "white" and "purple" objects are contained in the list box and could be made visible by scrolling with the vertical scroll bar 24. The active state image data signals may be generated by the target computer program, for example, by using operating system interrupts, function calls, or application program interface calls. Example I, below, illustrates C programming language source code for creating active state image data signals. Returning to Figure 1, the interactive computer system further comprises an image object identifier 26 for identifying at least one object displayed in the first active-state image, and for generating from the identified object a list of one or more first active-state commands identifying functions which can be performed in the first active-state of the target computer program. The image object identifier 26 may comprise computer program subroutines designed to intercept (hook) operating system function calls, and application program interface calls provided by one or more target computer programs, and/or may comprise computer program subroutines for using operating system interrupts, function calls, or application program interface calls for identifying objects displayed in the first active-state image of the target computer program. Example II, below, illustrates C programming language source code for identifying at least one object displayed in an active state image. Table 1 shows a hypothetical example of a list of first active-state commands identifying functions which can be performed in the first active-state of the target computer program for the objects displayed in the first active-state image of Figure 2. OBJECT SPOKEN COMMAND FUNCTION FRAME FRAME CHANGES THE FOCUS TO THE ENTIRE FRAME TOP BORDER IDENTIFIES FRAME ELEMENT TO BE MOVED BOTTOM BORDER IDENTIFIES FRAME ELEMENT TO BE MOVED LEFT BORDER IDENTIFIES FRAME ELEMENT TO BE MOVED RIGHT BORDER IDENTIFIES FRAME ELEMENT TO BE MOVED LEFT MOVES FRAME OR FRAME ELEMENT LEFT RIGHT MOVES FRAME OR FRAME ELEMENT RIGHT UP MOVES FRAME OR FRAME ELEMENT UP DOWN MOVES FRAME OR FRAME ELEMENT DOWN TITLE BAR NONE NONE MENU BAR CLOSE MENU HIDES THE MENU MENU CHANGES THE FOCUS TO THE MENU BAR SELECT SELECTS THE ITEM AT THE CURSOR "ITEMS" ITEMS ACTIVATES THE "ITEMS" MENU "COLORS" COLORS ACTIVATES THE "COLORS" MENU "NAMES" NAMES ACTIVATES THE "NAMES" MENU "ADDRESSES" ADDRESSES ACTIVATES THE "ADDRESSES" MENU "OPTIONS" OPTIONS ACTIVATES A DIALOG TO SELECT OPTIONS "EXIT" EXIT EXITS THE CURRENT PROGRAM STATE CANCEL DISMISSES THE POP-UP MENU SYSTEM MENU CLOSE MENU HIDES THE MENU MENU CHANGES THE FOCUS TO ANOTHER MENU, IF ANY SELECT SELECTS THE ITEM AT THE CURSOR RESTORE RESTORES WINDOW TO PREVIOUS SIZE AND POSITION MINIMIZE REDUCES WINDOW TO SMALLEST SIZE MAXIMIZE INCREASES WINDOW TO LARGEST SIZE CLOSE EXITS THE CURRENT PROGRAM STATE WINDOW LIST DISPLAYS A LIST OF RUNNING PROGRAMS VERTICAL SCROLL BAR SCROLL BAR SETS FOCUS ON THE SCROLL BAR UP MOVES THE LIST BOX UP THROUGH THE SUBJECT BEING DISPLAYED DOWN MOVES THE LIST BOX DOWN THROUGH THE SUBJECT BEING DISPLAYED TOP MOVES THE LIST BOX TO THE TOP OF THE SUBJECT BEING DISPLAYED BOTTOM MOVES THE LIST BOX TO THE BOTTOM OF THE SUBJECT BEING DISPLAYED PAGE UP MOVES THE LIST BOX UP ONE PAGE THROUGH THE SUBJECT BEING DISPLAYED PAGE DOWN MOVES THE LIST BOX DOWN ONE PAGE THROUGH THE SUBJECT BEING DISPLAYED PUSH BUTTON PRESS EXECUTES THE PUSH BUTTON PUSH BUTTON EXECUTES THE PUSH BUTTON "HELP" HELP EXECUTES THE HELP FACILITY LIST BOX LIST BOX CHANGES THE FOCUS TO LIST BOX "BLUE" BLUE SELECTS THE NAMED COLOR "GREEN" GREEN SELECTS THE NAMED COLOR "RED" RED SELECTS THE NAMED COLOR "ORANGE" ORANGE SELECTS THE NAMED COLOR "BLACK" BLACK SELECTS THE NAMED COLOR "WHITE" WHITE SELECTS THE NAMED COLOR "PURPLE" PURPLE SELECTS THE NAMED COLOR As shown in the example of Table 1, each object may have zero or more commands identifying functions which can be performed in the first active state of the target computer program. At least some commands identify functions which can be performed on the identified object in the active-state image for the state. For example, the command "FRAME" changes the focus to the entire frame object 14 of Figure 2. With the focus on the entire frame object 14, the spoken command "LEFT" operates on the frame object by moving it to the left on the display screen. Returning again to Figure 1, the interactive computer system comprises a system acoustic command model vocabulary store 28 for storing a system vocabulary of acoustic command models. Each acoustic command model represents one or more series of acoustic feature values representing an utterance of one or more words associated with the acoustic command model. The stored acoustic command models may be, for example, Markov models or other dynamic programming models. The parameters of the acoustic command models may be estimated from a known uttered training text (for example, 257 sentences) by, for example, smoothing parameters obtained by the forward-backward algorithm. (See, for example, Jelinek. "Continuous Speech Recognition By Statistical Methods", Proceedings of the IEEE, Volume 64, No. 4, April 1976 pages 532-536.) Preferably, each acoustic command model represents a command spoken in isolation (that is, independent of the context of prior and subsequent utterances). Context-independent acoustic command models can be produced, for example, either manually from models of phonemes or automatically, for example, by the method described by Lalit R. Bahl et al in U.S. Patent 4,759,068 entitled "Constructing Markov Models of Words from Multiple Utterances", or by any other known method of generating context-independent models. Alternatively, context-dependent models may be produced from context-independent models by grouping utterances of a command into context-dependent categories. A context can be, for example, manually selected, or automatically selected by tagging each feature signal corresponding to a command with its context, and by grouping the feature signals according to their context to optimize a selected evaluation function. (See, for example, Lalit R. Bahl et al, "Apparatus And Method Of Grouping Utterances Of A Phoneme Into Context-Dependent Categories Based On Sound-Similarity For Automatic Speech Recognition." U.S. Patent 5,195,167.) As shown in the block diagram of Figure 1, the interactive computer system comprises an active-state command model vocabulary identifier 30 for identifying a first active-state vocabulary of acoustic command models for the first active state. The first active-state vocabulary comprises the acoustic command models from the system vocabulary 28 representing the first active-state commands from the image object identifier 26. Example III, below, illustrates C programming language source code for identifying an active-state vocabulary. Example IV, below, illustrates C programming language source code for defining the active-state vocabulary to the speech recognizer. Preferably, the active-state vocabulary comprises substantially less than all of the acoustic command models in the system vocabulary. For example, each active-state vocabulary may comprise 50 to 200 commands. The entire system command vocabulary may comprise 500 to 700 or more commands. The speech recognizer does not compare the measured feature signals for a time period to any acoustic command model which is not in the active-state vocabulary for that time period. A speech recognizer 32 measures the value of at least one feature of an utterance during each of a series of successive time intervals within the first time period to produce a series of feature signals. The speech recognizer 32 compares the measured feature signal to each of the acoustic command models in the first active-state vocabulary to generate a match score for the utterance and each acoustic command model. The speech recognizer 32 outputs a command signal corresponding to the command model from the first active-state vocabulary having the best match score. Example V, below, illustrates C programming language source code for outputting a command signal corresponding to the command model from an active-state vocabulary having the best match score. Figure 3 is a block diagram of an example of a speech recognizer for an interactive computer system according to the invention. In this example, the speech recognizer 32 comprises an active-state acoustic command model store 34 for storing the active-state vocabulary comprising the acoustic command models from the system vocabulary store 28 representing the active-state commands identified in active state command model vocabulary identifier 30. The speech recognizer 32 further comprises an acoustic processor 36 for measuring the value of at least one feature of an utterance during each of a series of successive time intervals within each active-state time period to produce a series of feature signals. An acoustic match score processor 38 compares the measured feature signals from acoustic processor 36 to each of the acoustic command models in the active-state acoustic command models store 34 to generate a match score for the utterance and each acoustic command model. An output 40 outputs one or more command signals corresponding to the command models from the active state vocabulary having the best match scores for a given time period. Preferably, only one command signal corresponding to the command model from the first active-state vocabulary having the best match score is output. In this case, the one output command may be immediately executed. If two or more command signals corresponding to the command models from the active-state vocabulary having the best match scores for a given time period are output, then the recognized commands may be displayed for the user to select one for execution. The speech recognizer may be a publicly available product such as the IBM Voice Type II (trademark) or the IBM Speech Server Series (trademark). In products containing a fast acoustic match and a detailed acoustic match, both acoustic matches may be used in the invention. Alternatively, since the image object identifier 26 and the active state command model vocabulary identifier 30 select only a small subset of the system vocabulary in store 28 for the acoustic match, the fast acoustic match can be omitted. In speech recognition products containing a language model, the language model can be omitted. Alternatively, all of the words in the active-state vocabulary can be assigned equal language model probabilities. In speech recognizer products having hypothesis search algorithms for generating multiple-word hypotheses, the recognition of a word is dependent in part on the recognition of successive words. Such a hypothesis search algorithm need not be used with the present invention in which, preferably, each command is independent of successive commands. Preferably, both the target computer program and the speech recognizer are executed on the same central processing unit in a time sharing manner. Alternatively, the target computer program and the speech recognizer can be executed on different central processing units, for example using a client-server architecture. In the interactive computer system according to the invention, the display means may further display at least a second active-state image different from the first active-state image for a second active state occurring during a second time period different from the first time period. Figure 4 shows an example of a second active-state image for a second active state of the target computer program. The second active-state image shown in Figure 4 contains a frame object 42, a title bar object 44, a system menu object 46, a vertical scroll bar object 48, a horizontal scroll bar object 50, and a container object 52. The container object 52 contains an "editor" object, a "phone book" object, a "spreadsheet" object, a "mail" object, and a "solitaire" object. The object identifying means identifies at least one object displayed in the second active-state image, and generates from the identified object a list of one or more second active-state commands identifying functions which can be performed in the second active-state of the target computer program. Table 2 is an example of a hypothetical list of commands for each object shown in Figure 4 identifying functions which can be performed in the second active-state of the target computer program. OBJECT SPOKEN COMMAND FUNCTION FRAME FRAME CHANGES THE FOCUS TO THE ENTIRE FRAME TOP BORDER IDENTIFIES FRAME ELEMENT TO BE MOVED BOTTOM BORDER IDENTIFIES FRAME ELEMENT TO BE MOVED LEFT BORDER IDENTIFIES FRAME ELEMENT TO BE MOVED RIGHT BORDER IDENTIFIES FRAME ELEMENT TO BE MOVED LEFT MOVES FRAME OR FRAME ELEMENT LEFT RIGHT MOVES FRAME OR FRAME ELEMENT RIGHT UP MOVES FRAME OR FRAME ELEMENT UP DOWN MOVES FRAME OR FRAME ELEMENT DOWN TITLE BAR NONE NONE SYSTEM MENU CLOSE MENU HIDES THE MENU MENU CHANGES THE FOCUS TO ANOTHER MENU, IF ANY SELECT SELECTS THE ITEM AT THE CURSOR RESTORE RESTORES WINDOW TO PREVIOUS SIZE AND POSITION MINIMIZE REDUCES WINDOW TO SMALLEST SIZE MAXIMIZE INCREASES WINDOW TO LARGEST SIZE CLOSE EXITS THE CURRENT PROGRAM STATE WINDOW LIST DISPLAYS A LIST OF RUNNING PROGRAMS VERTICAL SCROLL BAR SCROLL BAR SETS FOCUS ON THE NEXT SCROLL BAR UP MOVES THE CONTAINER UP THROUGH THE SUBJECT BEING DISPLAYED DOWN MOVES THE CONTAINER DOWN THROUGH THE SUBJECT BEING DISPLAYED TOP MOVES THE CONTAINER TO THE TOP OF THE SUBJECT BEING DISPLAYED BOTTOM MOVES THE CONTAINER TO THE BOTTOM OF THE SUBJECT BEING DISPLAYED PAGE UP MOVES THE CONTAINER UP ONE PAGE THROUGH THE SUBJECT BEING DISPLAYED PAGE DOWN MOVES THE CONTAINER DOWN ONE PAGE THROUGH THE SUBJECT BEING DISPLAYED HORIZONTAL SCROLL BAR SCROLL BAR SETS FOCUS ON THE NEXT SCROLL BAR LEFT MOVES THE CONTAINER LEFT THROUGH THE SUBJECT BEING DISPLAYED RIGHT MOVES THE CONTAINER RIGHT THROUGH THE SUBJECT BEING DISPLAYED EXTREME LEFT MOVES THE CONTAINER TO THE EXTREME LEFT OF THE SUBJECT BEING DISPLAYED EXTREME RIGHT MOVES THE CONTAINER TO THE EXTREME RIGHT OF THE SUBJECT BEING DISPLAYED PAGE LEFT MOVES THE CONTAINER LEFT ONE PAGE THROUGH THE SUBJECT BEING DISPLAYED PAGE RIGHT MOVES THE CONTAINER RIGHT ONE PAGE THROUGH THE SUBJECT BEING DISPLAYED CONTAINER CONTAINER CHANGES THE FOCUS TO THE CONTAINER SELECT ALL EXECUTES ALL PROGRAMS IN THE CONTAINER EDITOR EDITOR EXECUTES THE EDITOR PROGRAM PHONE BOOK PHONE BOOK EXECUTES THE PHONE BOOK PROGRAM SPREADSHEET SPREADSHEET EXECUTES THE SPREADSHEET PROGRAM MAIL MAIL EXECUTES THE MAIL PROGRAM SOLITAIRE SOLITAIRE EXECUTES THE SOLITAIRE PROGRAM Comparing Figures 2 and 4, the first active-state image differs from the second active-state image by providing menu bar object 18, list box object 20, and push button object 22 in the first active-state image but not in the second active-state image. The horizontal scroll bar 50, and the editor, phone book, mail, spreadsheet, and solitaire objects are provided in the second active-state image, but not in the first active-state image. The active-state vocabulary identifying means further identifies a second active-state vocabulary of acoustic command models for the second active state. The second active state vocabulary comprises the acoustic command models from the system vocabulary representing the second active-state commands. The second active-state vocabulary is at least partly different from the first active-state vocabulary. Comparing Tables 1 and 2, the first active-state vocabulary comprises the spoken commands listed in Table 1. The second active-state vocabulary comprises the spoken commands listed in Table 2. In this example, the first active-state vocabulary is at least partly different from the second active-state vocabulary as shown therein. The speech recognizer measures the value of at least one feature of an utterance during each of a series of successive time intervals within the second time period to produce a series of feature signals. The speech recognizer compares the measured feature signals for the second time period to each of the acoustic command models in the second active-state vocabulary to generate a match score for the utterance and each acoustic command model. The speech recognizer outputs a command signal corresponding to the command model from the second active-state vocabulary having the best match score. Preferably, the target computer program has only one active state occurring during each time period. Figure 5 is a block diagram of an example of the acoustic command model vocabulary store 28 of Figure 1. The system vocabulary may comprise, for example, a set of global acoustic command models representing global commands identifying functions which can be performed in every active state of the target computer program. Table 3 lists some examples of global commands represented by global acoustic command models. Global Commands Spoken Command Function MICROPHONE OFF turns the microphone off ENTER sends "ENTER" keystroke to keyboard input buffer LEFT sends "LEFT ARROW" keystroke to keyboard input buffer RIGHT sends "RIGHT ARROW" keystroke to keyboard input buffer PASTE inserts contents of clipboard into application with the focus WINDOW LIST displays a list of running programs EDITOR executes the editor program DESK top makes the desk top window active The system vocabulary may further comprise object type acoustic command models associated with different types of objects. For example, as shown in Tables 1 and 2, frame object type acoustic commands include "frame", "top border", "bottom border", "left border", "right border", "left", "right", "up", and "down". Vertical scroll bar object type acoustic commands include "scroll bar", "up", "down", "top", "bottom", "page up", "page down". Push button object type acoustic command models include "press" and "push button". Finally, the system vocabulary includes application-specific acoustic command models representing application-specific objects. In the examples of Tables 1 and 2, application-specific objects include the words "items", "colors", "names", "addresses", "phone book", "spreadsheet", "mail" and "solitaire". The display means 12 of Figure 1 may display both an active-state image for an active state occurring during a time period, and at least a portion of one or more images for program states not occurring during the time period. One example of the acoustic processor 36 of Figure 3 is shown in Figure 6. The acoustic processor comprises a microphone 54 for generating an analog electrical signal corresponding to the utterance. The analog electrical signal from microphone 54 is converted to a digital electrical signal by analog to digital converter 56. For this purpose, the analog signal may be sampled, for example, at a rate of twenty kilohertz by the analog to digital converter 56. A window generator 58 obtains, for example, a twenty millisecond duration sample of the digital signal from analog to digital converter 56 every ten milliseconds (one centisecond). Each twenty millisecond sample of the digital signal is analyzed by spectrum analyzer 60 in order to obtain the amplitude of the digital signal sample in each of, for example, twenty frequency bands. Preferably, spectrum analyzer 60 also generates a twenty-first dimension signal representing the total amplitude or total power of the twenty millisecond digital signal sample. The spectrum analyzer 60 may be, for example, a fast Fourier transform processor. Alternatively, it may be a bank of twenty band pass filters. The twenty-one dimension vector signals produced by spectrum analyzer 60 may be adapted to remove background noise by an adaptive noise cancellation processor 62. Noise cancellation processor 62 subtracts a noise vector N(t) from the feature vector F(t) input into the noise cancellation processor to produce an output feature vector F '( t ). The noise cancellation processor 62 adapts to changing noise levels by periodically updating the noise vector N(t) whenever the prior feature vector F(t-1) is identified as noise or silence. The noise vector N(t) is updated according to the formula N ( t ) = N ( t - 1) + k [ F ( t - 1) - Fp ( t - 1)] (1 + k ) , where N(t) is the noise vector at time t, N(t-1) is the noise vector at time (t-1), k is a fixed parameter of the adaptive noise cancellation model, F ( t- 1) is the feature vector input into the noise cancellation processor 62 at time (t-1) and which represents noise or silence, and Fp(t-1) is one silence or noise prototype vector, from store 64, closest to feature vector F ( t -1). The prior feature vector F(t-1) is recognized as noise or silence if either (a) the total energy of the vector is below a threshold, or (b) the closest prototype vector in adaptation prototype vector store 66 to the feature vector is a prototype representing noise or silence. For the purpose of the analysis of the total energy of the feature vector, the threshold may be, for example, the fifth percentile of all feature vectors (corresponding to both speech and silence) produced in the two seconds prior to the feature vector being evaluated. After noise cancellation, the feature vector F' ( t ) is normalized to adjust for variations in the loudness of the input speech by short term mean normalization processor 68. Normalization processor 68 normalizes the twenty-one dimension feature vector F' ( t ) to produce a twenty dimension normalized feature vector X(t). The twenty-first dimension of the feature vector F' ( t ), representing the total amplitude or total power, is discarded. Each component i of the normalized feature vector X(t) at time t may, for example, be given by the equation X i ( t )= F' i ( t )- Z ( t ) in the logarithmic domain, where F' i ( t ) is the i-th component of the unnormalized vector at time t, and where Z(t) is a weighted mean of the components of F' ( t ) and Z(t-1) according to Equations 3 and 4: Z ( t )=0.9 Z ( t -1)+0.1 M ( t ) and where The normalized twenty dimension feature vector X(t) may be further processed by an adaptive labeler 70 to adapt to variations in pronunciation of speech sounds. An adapted twenty dimension feature vector X '( t ) is generated by subtracting a twenty dimension adaptation vector A(t) from the twenty dimension feature vector X(t) provided to the input of the adaptive labeler 70. The adaptation vector A(t) at time t may, for example, be given by the formula A ( t ) = A ( t - 1) + k [ X ( t - 1) - Xp ( t - 1)] (1 + k ) , where k is a fixed parameter of the adaptive labeling model, X ( t -1 ) is the normalized twenty dimension vector input to the adaptive labeler 70 at time (t-1), Xp(t-1) is the adaptation prototype vector (from adaptation prototype store 66) closest to the twenty dimension feature vector X ( t -1 ) at time (t-1), and A(t-1) is the adaptation vector at time (t-1). The twenty dimension adapted feature vector signal X' ( t ) from the adaptive labeler 70 is preferably provided to an auditory model 72. Auditory model 72 may, for example, provide a model of how the human auditory system perceives sound signals. An example of an auditory model is described in U.S. Patent 4,980,918 to Bahl et al entitled "Speech Recognition System with Efficient Storage and Rapid Assembly of Phonological Graphs". Preferably, according to the present invention, for each frequency band i of the adapted feature vector signal X' ( t ) at time t, the auditory model 72 calculates a new parameter E i ( t ) according to Equations 6 and 7: E i ( t )= K 1 + K 2 ( X' i ( t ))( N i ( t -1)) where N i ( t )= K 3 × N i ( t -1)- E i ( t -1) and where K 1 , K 2 , and K 3 are fixed parameters of the auditory model. For each centisecond time interval, the output of the auditory model 72 is a modified twenty dimension feature vector signal. This feature vector is augmented by a twenty-first dimension having a value equal to the square root of the sum of the squares of the values of the other twenty dimensions. For each centisecond time interval, a concatenator 74 preferably concatenates nine twenty-one dimension feature vectors representing the one current centisecond time interval, the four preceding centisecond time intervals, and the four following centisecond time intervals to form a single spliced vector of 189 dimensions. Each 189 dimension spliced vector is preferably multiplied in a rotator 76 by a rotation matrix to rotate the spliced vector and to reduce the spliced vector to fifty dimensions. The rotation matrix used in rotator 76 may be obtained, for example, by classifying into M classes a set of 189 dimension spliced vectors obtained during a training session. The covariance matrix for all of the spliced vectors in the training set is multiplied by the inverse of the within-class covariance matrix for all of the spliced vectors in all M classes. The first fifty eigenvectors of the resulting matrix form the rotation matrix. (See, for example, "Vector Quantization Procedure For Speech Recognition Systems Using Discrete Parameter Phoneme-Based Markov Word Models" by L. R. Bahl, et al, IBM Technical Disclosure Bulletin, Volume 32, No. 7, December 1989, pages 320 and 321.) Window generator 58, spectrum analyzer 60, adaptive noise cancellation processor 62, short term mean normalization processor 68, adaptive labeler 70, auditory model 72, concatenator 74, and rotator 76, may be suitably programmed special purpose or general purpose digital signal processors. Prototype stores 64 and 66 may be electronic computer memory of the types discussed above. The prototype vectors in prototype store 54 may be obtained, for example, by clustering feature vector signals from a training set into a plurality of clusters, and then calculating the mean and standard deviation for each cluster to form the parameter values of the prototype vector. When the training script comprises a series of word-segment models (forming a model of a series of words), and each word-segment model comprises a series of elementary models having specified locations in the word-segment models, the feature vector signals may be clustered by specifying that each cluster corresponds to a single elementary model in a single location in a single word-segment model. Such a method is described in more detail in U.S. Patent Application Serial No. 730,714, filed on July 16, 1991, entitled "Fast Algorithm for Deriving Acoustic Prototypes for Automatic Speech Recognition." Alternatively, all acoustic feature vectors generated by the utterance of a training text and which correspond to a given elementary model may be clustered by K-means Euclidean clustering or K-means Gaussian clustering, or both. Such a method is described, for example, by Bahl et al in U.S. Patent 5,182,773 entitled "Speaker-Independent Label Coding Apparatus". Figure 7 schematically shows a hypothetical example of an acoustic command model. The hypothetical model shown in Figure 7 has a starting state S1, an ending state S4, and a plurality of paths from the starting state S1 to the ending state S4. Figure 8 schematically shows a hypothetical example of an acoustic Markov model of a phoneme. In this example, the acoustic phoneme model comprises three occurrences of transition T1, four occurrences of transition T2, and three occurrences of transition T3. The transitions shown in dotted lines are null transitions. Each solid-line transition in the acoustic models of Figures 7 and 8 has at least one model output comprising an acoustic feature value. Each model output has an output probability. Each null transition has no output. Each solid line transition and each dotted line transition from a state has a probability of occurrence when the model is in that state. Figure 9 shows a hypothetical example of paths through the acoustic model of Figure 7. The match score for an utterance and an acoustic command model is the sum of the probabilities of the measured features of the utterance for all paths through the acoustic command model. For each path, the probability of the measured features of the utterance is equal to the product of the probabilities of the transitions along the path times the probabilities of the measured features at each transition along the path. Preferably, the interactive computer system according to the invention may be made by suitably programming a general purpose digital computer system. More specifically, the processor 10, the image object identifier 26, and the active-state command model vocabulary identifier 30 may be made by suitably programming a general purpose digital processor. The system acoustic command model vocabulary store 28 and the active-state acoustic command models store 34 may be electronic computer memory. The display means 12 may comprise a video display such as a cathode ray tube, a liquid crystal display, or a printer. As mentioned above, the target computer program may be one or more application programs and an operating system program. For example, the target computer program may be IBM OS/2 (trademark) version 2.0, and Presentation Manager (trademark). IBM's OS/2 version 2.0 operating system and Presentation Manager have application program interface calls in various languages, including the C programming language, the assembly programming language, and the REXX programming language. The complete collection of application program interface calls is part of the OS/2 2.0 Technical Library. The syntax for the application program interface calls in a language is compatible with how standard calls operate in the language. The name of a particular application program interface call may be different for different languages. Also, some aspects of the application program interface in one language may not be supported from another language. For the C programming language, the application program interface consists of many library calls. C programming language source code be compiled with the IBM C Set/2 compiler. Examples I to V illustrate C programming language source code for OS/2 and Presentation Manager for (a) creating and displaying an image, (b) reading the active state image to identify at least one object displayed in the active state image, (c) creating the vocabulary from the active state image, (d) defining the vocabulary to the speech recognizer, and (e) outputting a command signal corresponding to the command model from an active-state vocabulary having the best match score. Example I Example I illustrates C programming language source code for creating the hypothetical first active-state image shown in Figure 2. There is a concept of a "standard window" in OS/2 and Presentation Manager. A standard window is a combination of several commonly-used windows. In Figure 2, the frame window, title bar, system menu and menu bar can be considered to be part of a standard window. The standard window is created with the following C programming language source code using the OS/2 application program interface call WinCreateStdWindow(). The comments following the double slashes (//) describe the operation of the source code. Example II Example II illustrates C programming language source code for reading an active-state image. Presentation Manager provides an application program interface call for any application to put a "hook" into the queues of messages which are passed back and forth between windows. A hook is installed with a call back function which gets called with every message which is sent. Call back functions for hooks must reside in a presentation manager dynamic link library. The required procedure is to load the dynamic link library which contains the call back function and then load the hook. Example III Example III illustrates C programming language source code for identifying the list of active-state commands from the active-state image. The procedure for creating the list of active-state commands from the image is as follows. (1) Create a list of all the windows which are children (direct or indirect) of the active frame found above. (2) Identify all windows in the list by their window class. (3) For windows from window classes which display text to the user, query all the window text (hidden and visible). (4) Combine a global list of words with a standard list of words for each window type and with the words which were queried from the application in step (3). Step (4) merely involves combining multiple arrays of words into one array of words. Therefore, source code for Step (4) is not illustrated. Example IV Example IV illustrates C programming language source code for defining the active-state vocabulary to the speech recognizer. An application program interface for the speech recognizer is used to set it up for recognition. A possible application program interface which can be used is the Speech Manager (trademark) application program interface that comes with the IBM Speech Server Series (trademark) product. Source code for a similar application program interface will be shown below. Example V Example V illustrates C programming language source code for outputting a command signal corresponding to the command model from an active-state vocabulary having the best match score. To begin, a list of commands and command-object associations is manually defined as described above. Each command, with the exception of the global commands, is associated with an object. Assume the word "RIGHT" from Table 1 is recognized. From the list of command-object associations, the target for the command is known. This target is designated hwndTarget in the example. HWND hwndTarget; The action defined by "RIGHT" for this target is to move the target to the right by a previously-defined increment, for example 10 picture elements (pels). #define INCREMENT_RIGHT 10 The command is performed on the target using the OS/2 Presentation Manager application program interface call named WinSetWindowPos(). The current window position must be queried first so that the new position can be determined. Instead, assume the word, "ORANGE," is recognized. From the list of command-object associations, the target for the command is known. This is hwndTarget in the example. HWND hwndTarget; The action defined by "ORANGE" for this target is to select the entry in the listbox. The command is performed on the target by sending a message, LM_SELECTITEM, to the listbox using the OS/2 Presentation Manager application interface call named WinSendMsg(). First the index of the item has to be found.

Claims: An interactive computer system comprising: a processor (10) executing a target computer program having a series of active program states occurring over a succession of time periods, said target computer program generating active state image data signals representing an active state image for an active state of the target computer program occurring during each time period, each active state image containing one or more objects; means (12) for displaying at least a first active-state image for a first active state occurring during a first time period; means (26) for identifying an object displayed in the first active-state image, and for generating from an identified object displayed in the first active-state image a list of one or more first active-state commands identifying a first active-state function which can be performed in the first active state of the target computer program; means (28) for storing a system vocabulary of acoustic command models, each acoustic command model representing one or more series of acoustic feature values representing an utterance of one or more words associated with the acoustic command model; means (30) for identifying a first active-state vocabulary of acoustic command models for the first active state, the first active-state vocabulary comprising the acoustic command models from the system vocabulary representing the first active-state commands, wherein the first active-state vocabulary changes dynamically as a function of both the identity of the target computer program and the active-state image data signals which identify an active state of the target computer program; and a speech recognizer (32) for measuring a value of at least one feature of an utterance during each of a first sequence of successive time intervals within the first time period to produce a first series of feature signals, said speech recognizer comparing the first series of feature signals to each of the acoustic command models in the first active-state vocabulary to generate a match score for the utterance and each acoustic command model, and said speech recognizer outputting a command signal corresponding to the command model from the first active-state vocabulary having the best match score. An interactive computer system as claimed in Claim 1, characterized in that: the first active-state vocabulary comprises substantially less than all of the acoustic command models from the system vocabulary; and the speech recognizer does not compare the measured feature signals for the first time period to any acoustic command model which is not in the first active-state vocabulary. An interactive computer system as claimed in Claim 2, characterized in that: the means for displaying displays at least a second active-state image different from the first active-state image for a second active state occurring during a second time period different from the first time period; the means for identifying an object identifies an object displayed in the second active-state image, and generates from an identified object displayed in the second active-state image a catalog of one or more second active-state commands identifying a second active-state function which can be performed in the second active state of the target computer program; the means for identifying a first active-state vocabulary identifies a second active-state vocabulary of acoustic command models for the second active state, the second active-state vocabulary comprising the acoustic command models from the system vocabulary representing the second active-state commands, the second active-state vocabulary being at least partly different from the first active-state vocabulary; and the speech recognizer measures the value of at least one feature of an utterance during each of a second sequence of time intervals within the second time period to produce a second series of feature signals, said speech recognizer comparing the second series of feature signals for the second time period to each of the acoustic command models in the second active-state vocabulary to generate the match score for the utterance and each acoustic command model, and said speech recognizer outputting the command signal corresponding to the command model from the second active-state vocabulary having the best match score. An interactive computer system as claimed in Claim 3, characterized in that the target computer program has only one active state occurring during each time period. An interactive computer system as claimed in Claim 4, characterized in that the target computer program comprises an operating system program. An interactive computer system as claimed in Claim 5, characterized in that the target computer program comprises an application program and an operating system program. An interactive computer system as claimed in Claim 6, characterized in that the target computer program comprises two or more application programs and an operating system program. An interactive computer system as claimed in Claim 6, characterized in that at least some commands for the active state identify functions which can be performed on the identified object in the active-state image for the active state. An interactive computer system as claimed in Claim 8, characterized in that the identified object in an active-state image comprises one or more of a character, a word, an icon, a button, a scroll bar, a slider, a list box, a menu, a check box, a container, or a notebook. An interactive computer system as claimed in Claim 9, characterized in that the speech recognizer outputs two or more command signals corresponding to the command models from the active-state vocabulary having the best match scores for a given time period. An interactive computer system as claimed in Claim 10, characterized in that the active-state vocabulary of acoustic command models for each active state further comprises a set of global acoustic command models representing global commands identifying functions which can be performed in each active state of the target computer program. An interactive computer system as claimed in Claim 11, characterized in that the means for displaying comprises a display. An interactive computer system as claimed in Claim 11, characterized in that the means for displaying displays both the active-state image for the active state occurring during a time period, and at least a portion of one or more images for program states not occurring during the time period. A method of computer interaction comprising: executing, on a processor, a target computer program having a series of active program states occurring over a succession of time periods, said target computer program generating active state image data signals representing an active state image for an active state of the target computer program occurring during each time period, each active state image containing one or more objects; displaying at least a first active-state image for a first active state occurring during a first time period; identifying an object displayed in the first active-state image, and generating from an identified object a list of one or more first active-state commands identifying a first active-state function which can be performed in the first active state of the target computer program; storing a system vocabulary of acoustic command models, each acoustic command model representing one or more series of acoustic feature values representing an utterance of one or more words associated with the acoustic command model; identifying a first active-state vocabulary of acoustic command models for the first active state, the first active-state vocabulary comprising the acoustic command models from the system vocabulary representing the first active-state commands, wherein the first active-state vocabulary changes dynamically as a function of both the identity of the target computer program and the active-state image data signals which identify an active state of the target computer program; measuring a value of at least one feature of an utterance during each of a first sequence of time intervals within the first time period to produce a first series of feature signals; comparing the first series of feature signals to each of the acoustic command models in the first active-state vocabulary to generate a match score for the utterance and each acoustic command model; and outputting a command signal corresponding to the command model from the first active-state vocabulary having the best match score. A method of computer interaction as claimed in Claim 14, characterized in that: the first active-state vocabulary comprises substantially less than all of the acoustic command models from the system vocabulary; and the step of comparing does not compare the measured feature signals for the first time period to any acoustic command model which is not in the first active-state vocabulary. A method of computer interaction as claimed in Claim 15, further comprising the steps of: displaying at least a second active-state image different from the first active-state image for a second active state occurring during a second time period different from the first time period; identifying an object displayed in the second active-state image, and generating from an identified object a catalog of one or more second active-state commands identifying a second active-state function which can be performed in the second active state of the target computer program; identifying a second active-state vocabulary of acoustic command models for the second active state, the second active-state vocabulary comprising the acoustic command models from the system vocabulary representing the second active-state commands, the second active-state vocabulary being at least partly different from the first active-state vocabulary; measuring the value of at least one feature of an utterance during each of a second saquence of time intervals within the second time period to produce a second series of feature signals; comparing the second series of feature signals for the second time period to each of the acoustic command models in the second active-state vocabulary to generate the match score for the utterance and each acoustic command model; and outputting a command signal corresponding to the command model from the second active-state vocabulary having the best match score. A method of computer interaction as claimed in Claim 16, characterized in that the target computer program has only one active state occurring during each time period. A method of computer interaction as claimed in Claim 17, characterized in that the target computer program comprises an operating system program. A method of computer interaction as claimed in Claim 18, characterized in that the target computer program comprises an application program and an operating system program. A method of computer interaction as claimed in Claim 19, characterized in that the target computer program comprises two or more application programs and an operating system program. A method of computer interaction as claimed in Claim 19, characterized in that at least some commands for the active-state identify functions which can be performed on the identified objects in the active-state image for the active state. A method of computer interaction as claimed in Claim 21, characterized in that the identified object in the active-state image comprises one or more of a character, a word, an icon, a button, a scroll bar, a slider, a list box, a menu, a check box, a container, or a notebook. A method of computer interaction as claimed in Claim 22, characterized in that the step of outputting a command signal comprises outputting two or more command signals corresponding to the command models from the active-state vocabulary having the best match scores for a given time period. A method of computer interaction as claimed in claim 23, characterized in that the vocabulary of acoustic command models for each active state further comprises a set of global acoustic command models representing global commands identifying functions which can be performed in each active state of the target computer program. A method of computer interaction as claimed in Claim 24, further comprising the step of displaying both the active-state image for the active state occurring during a time period, and at least a portion of one or more images for program states not occurring during the time period.

Inventors: ANDRESHAK JOSEPH CHARLES, DAGGETT GREGG H, KARAT JOHN, LEVY STEPHEN ERIC, LUCASSEN JOHN, MACK ROBERT LAWRENCE, ANDRESHAK, JOSEPH CHARLES, DAGGETT, GREGG H., KARAT, JOHN, LEVY, STEPHEN ERIC, LUCASSEN, JOHN, MACK, ROBERT LAWRENCE
Applicants: IBM, INTERNATIONAL BUSINESS MACHINES CORPORATION
Application year: 1994
Main classification: G06F3
IPC codes: G06F15, G10L15, G06F3