A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.
Many computing devices, such as smartphones, desktops, laptops, tablets, game consoles, and the like, utilize language models in conjunction with acoustic models for performing various automatic speech recognition (ASR) search functions. In an attempt to balance the relative contributions of the aforementioned models, current ASR applications typically apply a fixed weighting factor to language model probabilities. The aforementioned fixed factor (which may be pre-optimized) is kept constant throughout the decoding of associated speech during recognition. Drawbacks associated with the use of fixed weighting factors include the possibility of poor recognition results in some speech recognition contexts. For example, acoustic models may be heavily weighted in situations where recognition is based on how a word sounds to a speaker (e.g., sounds like “table”) while language models may be heavily weighted in situations where recognition is based on surrounding terms in an utterance (e.g., “Lord of the ______”). It is with respect to these considerations and others that the various embodiments of the present invention have been made.
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended as an aid in determining the scope of the claimed subject matter.
Embodiments provide for the recognition of speech utilizing context-specific language model scale factors. Training audio may be received from a source in a training phase. The received training audio may be recognized utilizing acoustic and language models, the acoustic and language models being combined utilizing static scale factors. A comparison may then be made of the recognition results to a transcription of the training audio. The recognition results may include one or more hypotheses for recognizing speech. Context specific scale factors may then be generated based on the comparison. The context specific scale factors may then be applied for use in the speech recognition of audio signals in an application phase.
These and other features and advantages will be apparent from a reading of the following detailed description and a review of the associated drawings. It is to be understood that both the foregoing general description and the following detailed description are illustrative only and are not restrictive of the invention as claimed.
Embodiments provide for the recognition of speech utilizing context-specific language model scale factors. Training audio may be received from a source in a training phase. The received training audio may be recognized utilizing acoustic and language models, the acoustic and language models being combined utilizing static scale factors. A comparison may then be made of the recognition results to a transcription of the training audio. The recognition results may include one or more hypotheses for recognizing speech. Context specific scale factors may then be generated based on the comparison. The context specific scale factors may then be applied for use in the speech recognition of audio signals in an application phase.
In the following detailed description, references are made to the accompanying drawings that form a part hereof, and in which are shown by way of illustrations specific embodiments or examples. These embodiments may be combined, other embodiments may be utilized, and structural changes may be made without departing from the spirit or scope of the present invention. The following detailed description is therefore not to be taken in a limiting sense, and the scope of the present invention is defined by the appended claims and their equivalents.
Referring now to the drawings, in which like numerals represent like elements through the several figures, various aspects of the present invention will be described.
In accordance with various embodiments, the computing device 150 may comprise, without limitation, a desktop computer, laptop computer, smartphone, video game console or a television. The computing device 150 may also comprise or be in communication with one or more recording devices (not shown) used to detect speech and receive video/pictures (e.g., MICROSOFT KINECT, microphone(s), and the like). The computing device 150 may store the application 170 which may be configured to receive the training audio 22 and the non-training audio 124 from the source 120 for providing ASR functions such as short message dictation 160 and voice search query 165 (which may be displayed in a user interface 155 generated by the application 170). As will be described in greater detail below with respect to
The ASR framework 102 may comprise one or more acoustic models 104, one or more language models 106, static scale factors 108, the context specific scale factors 110, training audio transcriptions 112, recognition results 114 and scores 116. With respect to the context specific scale factors 110, it should be understood by those skilled in the art that speech recognition may be described by the following formula:
where “W” represents alternative speech recognition hypotheses and the scale factor γ determines how much weight contributions from a language model will be given relative to contributions from an acoustic model. Thus, it should be understood that in the equation above, the scale factor γ remains constant. As will be described in greater detail below with respect to
The application 170 may be configured to receive and recognize the training audio 122 utilizing acoustic and language models 104 and 106. The acoustic and language models 104 and 106 may be combined utilizing the static scale factors 108. The application 170 may further be configured for use in a training phase and an application phase.
It should be understood that in the training phase, for each received audio signal (e.g., training audio), a list of alternative recognition results (obtained using a static scale factor) may be sorted by their respective scores (the scores having been computed as evidenced by the expression inside ( . . . ) of the first formula discussed above). Then, while keeping the probability (P) numbers in the formula untouched, the scale factors γ may be uncoupled making them dependent on previous words in a corresponding hypothesis. Then, the context-specific γ's may be changed to optimize the scores of alternative hypotheses in such a way that for each audio signal, the hypothesis closest to a reference transcription is sorted to the top of a list. A table of optimal context specific γ values for each context (sequence of previously recognized words) is the goal of the training phase and is discussed in greater detail in
It should be understood that in the application phase, the optimized context-specific scale factors may then be utilized to recognize previously unseen audio. In this phase, no reference transcriptions are utilized, just audio signals. It should be further understood that learned context-specific scale factors may be applied in a number of ways. For example, the context-specific scale factors may be used directly during recognition or, alternatively, the audio signals may be recognized with a static γ, a list of alternative hypotheses may be obtained, and then the fixed γ may be replaced at every word by a context-specific version γ (i.e., the word's context). The use of the context-specific γ results in a change of scores for all of the hypotheses and the best hypothesis (i.e., the hypothesis having the highest score) may then be utilized. The application phase is discussed in greater detail below with respect to
The routine 400 begins at operation 405, where the application 170 executing on the computing device 150 may receive the training audio 122 from the source 120.
From operation 405, the routine 400 continues to operation 410, where the application 170 executing on the computing device 150 may recognize the received training audio 122 utilizing the acoustic and language models 104 and 106, respectively. As discussed above, the acoustic and language models 104 and 106 may be combined utilizing the static scale factors 108.
From operation 410, the routine 400 continues to operation 415, where the application 170 executing on the computing device 150 may compare the recognition results 114 from the received training audio 122 to a training audio transcription 112. As discussed above, the recognition results 114 may include one or more hypotheses for recognizing speech.
From operation 415, the routine 400 continues to operation 420, where the application 170 executing on the computing device 150 may generate the context specific scale factors in the table 205 (see
From operation 505, the routine 500 continues to operation 510, where the application 170 executing on the computing device 150 may utilize the aforementioned context specific scale factors during the recognition of audio signals (i.e., the non-training audio 124) in a speech recognition application phase. In particular, the application 170 executing on the computing device 150 may apply the context specific scale factors for use in one or more speech recognition applications. For example, in some embodiments, the context specific scale factors may be utilized during speech recognition of the non-training audio 124 (i.e., previously unseen audio signals) received from the source 120. It should be understood that in applying the context specific scale factors, the application 170 may determine an absence of one or more context specific scale factors for a particular speech context and fall back to an associated speech sub-context. In particular, if a context specific scale factor has not been estimated for a particular context, the application 170 may suggest an incremental fall back on to shorter sub-contexts of the particular context. It should be further understood that the application 170, after applying the fixed scale factors, may select one or more hypotheses having the highest assigned acoustic model scores and language model scores and then assign new scores to these hypotheses using new context specific scale factors. In particular, the n-best recognition hypotheses may be rescored using new context-specific scale factors and the highest scoring hypotheses may then be selected. From operation 510, the routine 500 then ends.
The computing device 600 may have additional features or functionality. For example, the computing device 600 may also include additional data storage devices (removable and/or non-removable) such as, for example, magnetic disks, optical disks, solid state storage devices (“SSD”), flash memory or tape. Such additional storage is illustrated in
Furthermore, various embodiments may be practiced in an electrical circuit comprising discrete electronic elements, packaged or integrated electronic chips containing logic gates, a circuit utilizing a microprocessor, or on a single chip containing electronic elements or microprocessors. For example, various embodiments may be practiced via a system-on-a-chip (“SOC”) where each or many of the components illustrated in
The term computer readable media as used herein may include computer storage media. Computer storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, or program modules. The system memory 604, the removable storage device 609, and the non-removable storage device 610 are all computer storage media examples (i.e., memory storage.) Computer storage media may include RAM, ROM, electrically erasable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other article of manufacture which can be used to store information and which can be accessed by the computing device 600. Any such computer storage media may be part of the computing device 600. Computer storage media does not include a carrier wave or other propagated or modulated data signal.
Communication media may be embodied by computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and includes any information delivery media. The term “modulated data signal” may describe a signal that has one or more characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media may include wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio frequency (RF), infrared, and other wireless media.
Mobile computing device 750 incorporates output elements, such as display 725, which can display a graphical user interface (GUI). Other output elements include speaker 730 and LED 780. Additionally, mobile computing device 750 may incorporate a vibration module (not shown), which causes mobile computing device 750 to vibrate to notify the user of an event. In yet another embodiment, mobile computing device 750 may incorporate a headphone jack (not shown) for providing another means of providing output signals.
Although described herein in combination with mobile computing device 750, in alternative embodiments may be used in combination with any number of computer systems, such as in desktop environments, laptop or notebook computer systems, multiprocessor systems, micro-processor based or programmable consumer electronics, network PCs, mini computers, main frame computers and the like. Various embodiments may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network in a distributed computing environment; programs may be located in both local and remote memory storage devices. To summarize, any computer system having a plurality of environment sensors, a plurality of output elements to provide notifications to a user and a plurality of notification event types may incorporate the various embodiments described herein.
Application 170 may be loaded into memory 762 and run on or in association with an operating system 764. The system 702 also includes non-volatile storage 768 within memory the 762. Non-volatile storage 768 may be used to store persistent information that should not be lost if system 702 is powered down. The application 170 may use and store information in the non-volatile storage 768. The application 170 may comprise functionality for performing routines including, for example, the above-described routines 400-500 of
A synchronization application (not shown) also resides on system 702 and is programmed to interact with a corresponding synchronization application resident on a host computer to keep the information stored in the non-volatile storage 768 synchronized with corresponding information stored at the host computer. As should be appreciated, other applications may also be loaded into the memory 762 and run on the mobile computing device 750.
The system 702 has a power supply 770, which may be implemented as one or more batteries. The power supply 770 might further include an external power source, such as an AC adapter or a powered docking cradle that supplements or recharges the batteries.
The system 702 may also include a radio 772 (i.e., radio interface layer) that performs the function of transmitting and receiving radio frequency communications. The radio 772 facilitates wireless connectivity between the system 702 and the “outside world,” via a communications carrier or service provider. Transmissions to and from the radio 772 are conducted under control of OS 764. In other words, communications received by the radio 772 may be disseminated to the application 170 via OS 764, and vice versa.
The radio 772 allows the system 702 to communicate with other computing devices, such as over a network. The radio 772 is one example of communication media. The embodiment of the system 702 is shown with two types of notification output devices: the LED 780 that can be used to provide visual notifications and an audio interface 774 that can be used with speaker 730 to provide audio notifications. These devices may be directly coupled to the power supply 770 so that when activated, they remain on for a duration dictated by the notification mechanism even though processor 760 and other components might shut down for conserving battery power. The LED 780 may be programmed to remain on indefinitely until the user takes action to indicate the powered-on status of the device. The audio interface 774 is used to provide audible signals to and receive audible signals from the user. For example, in addition to being coupled to speaker 730, the audio interface 774 may also be coupled to a microphone (not shown) to receive audible (e.g., voice) input, such as to facilitate a telephone conversation. In accordance with embodiments, the microphone may also serve as an audio sensor to facilitate control of notifications. The system 702 may further include a video interface 776 that enables an operation of on-board camera 740 to record still images, video streams, and the like.
A mobile computing device implementing the system 702 may have additional features or functionality. For example, the device may also include additional data storage devices (removable and/or non-removable) such as, magnetic disks, optical disks, or tape. Such additional storage is illustrated in
Data/information generated or captured by the mobile computing device 750 and stored via the system 702 may be stored locally on the mobile computing device 750, as described above, or the data may be stored on any number of storage media that may be accessed by the device via the radio 772 or via a wired connection between the mobile computing device 750 and a separate computing device associated with the mobile computing device 750, for example, a server computer in a distributed computing network such as the Internet. As should be appreciated such data/information may be accessed via the mobile computing device 750 via the radio 772 or via a distributed computing network. Similarly, such data/information may be readily transferred between computing devices for storage and use according to well-known data/information transfer and storage means, including electronic mail and collaborative data/information sharing systems.
Content developed, interacted with, or edited in association with the application 170 may be stored in different communication channels or other storage types. For example, various documents may be stored using a directory service 822, a web portal 824, a mailbox service 826, an instant messaging store 828, or a social networking site 830. The application 170 may use any of these types of systems or the like for enabling data utilization, as described herein. The server 820 may provide the proximity application 170 to clients. As one example, the server 820 may be a web server providing the application 170 over the web. The server 820 may provide the application 170 over the web to clients through the network 815. By way of example, the computing device 10 may be implemented as the computing device 803 and embodied in a personal computer, the tablet computing device 805 and/or the mobile computing device 810 (e.g., a smart phone). Any of these embodiments of the computing devices 803, 805 and 810 may obtain content from the store 816.
Various embodiments are described above with reference to block diagrams and/or operational illustrations of methods, systems, and computer program products. The functions/acts noted in the blocks may occur out of the order as shown in any flow diagram. For example, two blocks shown in succession may in fact be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality/acts involved.
The description and illustration of one or more embodiments provided in this application are not intended to limit or restrict the scope of the invention as claimed in any way. The embodiments, examples, and details provided in this application are considered sufficient to convey possession and enable others to make and use the best mode of claimed invention. The claimed invention should not be construed as being limited to any embodiment, example, or detail provided in this application. Regardless of whether shown and described in combination or separately, the various features (both structural and methodological) are intended to be selectively included or omitted to produce an embodiment with a particular set of features. Having been provided with the description and illustration of the present application, one skilled in the art may envision variations, modifications, and alternate embodiments falling within the spirit of the broader aspects of the general inventive concept embodied in this application that do not depart from the broader scope of the claimed invention.