Integration of Embedded and Network Speech Recognizers
A method, computer program product, and system are provided for performing a voice command on a client device. The method can include translating, using a first speech recognizer located on the client device, an audio stream of a voice command to a first machine-readable voice command and generating a first query result using the first machine-readable voice command to query a client database. In addition, the audio stream can be transmitted to a remote server device that translates the audio stream to a second machine-readable voice command using a second speech recognizer. Further, the method can include receiving a second query result from the remote server device, where the second query result is generated by the remote server device using the second machine-readable voice command and displaying the first query result and the second query result on the client device.
Latest Google Patents:
This application claims the benefit of U.S. Provisional Application No. 61/298,251 (SKGF Ref. No. 2525.2310000), filed Jan. 26, 2010, titled “Integration of Embedded and Network Speech Recognizers,” which is incorporated herein by reference in its entirety.
BACKGROUND1. Field
This description generally relates to the field of speech recognition.
2. Background
Speech recognition systems in mobile devices allow users to communicate and provide commands to the mobile device with minimal usage of input controls such as, for example, keypads, buttons, and dials. Some speech recognition tasks can be a complex process for mobile devices, requiring an extensive analysis of speech signals and search of word and language statistical models. This is because mobile devices typically have limited computational, memory, and battery resources. As such, more complex speech recognition tasks are oftentimes offloaded to speech recognition systems located externally to the mobile device such as, for example, speech recognition systems in network servers.
Since more complex speech recognition tasks are performed on network servers and not on the mobile device, the results of the voice command may be limited to data stored in the network server. For these speech recognition tasks, the mobile device user does not have the benefit of viewing query results that may correspond to the voice command based on data stored in the mobile device. In addition, the delay time in transferring the voice command to the network server, performing the speech recognition operation at the network server, and transferring the query result from the network server to the mobile device can be significant. Significant delay time in the execution of applications on mobile devices, such as speech recognition tasks, can lead to a poor user experience.
Methods and systems are needed for performing speech recognition tasks on a client device, such as a mobile device, to overcome the above-noted limitations of speech recognition systems in mobile applications.
SUMMARYEmbodiments include a method for performing a voice command on a client device. The method includes translating, using a first speech recognizer located on the client device, an audio stream of a voice command to a first machine-readable voice command and generating a first query result using the first machine-readable voice command to query a client database. In addition, the audio stream can be transmitted to a remote server device that translates the audio stream to a second machine-readable voice command using a second speech recognizer. Further, the method includes receiving a second query result from the remote server device, where the second query result is generated by the remote server device using the second machine-readable voice command to query a remote server database, and displaying the first query result and the second query result on the client device. The transmission of the audio stream to the remote server device and the transmission of the second query result from the remote server device to the client device can occur simultaneously, substantially at the same time as, or a time period that overlaps with the generation of the first query result by the client device.
Embodiments additionally include a computer program product that includes a computer-usable medium with computer program logic recorded thereon for enabling a processor to perform a voice command on a client device. The computer program logic includes the following: first computer readable program code that enables a processor to translate, using a first speech recognizer located on the client device, an audio stream of a voice command to a first machine-readable voice command; second computer readable program code that enables a processor to generate a first query result using the first machine-readable voice command to query a client database; third computer readable program code that enables a processor to transmit the audio stream to a remote server device that translates the audio stream to a second machine-readable voice command using a second speech recognizer; fourth computer readable program code that enables a processor to process a second query result from the remote server device, wherein the second query result is generated by the remote server device using the second machine-readable voice command; and, fifth computer readable program code that enables a processor to a control a display of the first query result and the second query result on the client device.
Embodiments further include a system for performing a voice command on a client device. The system includes a first speech recognizer device, a client query manager, and a display device. The first speech recognizer device is configured to translate an audio stream of a voice command to a first machine-readable voice command. The client query manager is configured to perform the following functions: generate a first query result using the first machine-readable voice command to query a client database; transmit the audio stream to a remote server device that translates the audio stream to a second machine-readable voice command using a second speech recognizer; and, receive a second query result from the remote server device, where the second query result is generated by the remote server device using the second machine-readable voice command to query a remote server database. Further, the display device is configured to display the first query result and the second query result on the client device.
Further features and advantages of embodiments described herein, as well as the structure and operation of various embodiments, are described in detail below with reference to the accompanying drawings. It is noted that the embodiments described below are not limited to the specific embodiments described herein. Such embodiments are presented herein for illustrative purposes only. Additional embodiments will be apparent to persons skilled in the relevant art based on the teachings contained herein.
The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate embodiments and, together with the description, further serve to explain the principles of the embodiments and to enable a person skilled in the relevant art to make and use the embodiments.
The following detailed description refers to the accompanying drawings that illustrate exemplary embodiments. Other embodiments are possible, and modifications can be made to the embodiments within the spirit and scope of this description. Therefore, the detailed description is not meant to limit the embodiments described below.
It would be apparent to one of skill in the relevant art that the embodiments described below can be implemented in many different embodiments of software, hardware, firmware, and/or the entities illustrated in the figures. Any actual software code with the specialized control of hardware to implement embodiments is not limiting of this description. Thus, the operational behavior of embodiments will be described with the understanding that modifications and variations of the embodiments are possible, given the level of detail presented herein.
In an embodiment, speech recognizer 210 and client query manager 220 can be implemented in software, firmware, hardware, or a combination thereof. Embodiments of speech recognizer 210 and client query manager 220, or portions thereof, can also be implemented as computer-readable code executed on one or more computing devices capable of carrying out the functionality described herein. Examples of computing devices include, but are not limited to, a central processing unit, an application-specific integrated circuit, or other type of computing device having at least one processor and memory.
In an embodiment, microphone 230 is configured to receive an audio stream corresponding to a voice command and to provide the voice command to speech recognizer 210. The voice command can be generated from an audio source such as, for example and without limitation, a mobile phone user, according to an embodiment. In turn, speech recognizer 210 is configured to translate the audio stream to a machine-readable voice command, according to an embodiment. Methods and techniques to translate the audio stream to the machine-readable voice command are known to a person of ordinary skill in the relevant art. Examples of these methods and techniques can be found in commercial speech recognition software such as Dragon Naturally Speaking Software and MacSpeech Software, both by Nuance Communications, Inc.
Based on the machine-readable voice command, in an embodiment, client query manager 220 queries client database 240 to generate a query result. In an embodiment, client database 240 contains information that is locally stored in client device 110 such as, for example and without limitation, telephone numbers, address information, and results from previous voice commands (described in further detail below). Based on the description herein, a person of ordinary skill in the relevant art will recognize that other data stored in client database 240 can provide query results to embodiments described herein.
In an embodiment, client query manager 220 also coordinates a transmission of the audio stream corresponding to the voice command to server device 130 via network 120 of
Client query manager 220 of
In reference to
In an embodiment, speech recognizer 310 and server query manager 320 can be implemented in software, firmware, hardware, or a combination thereof. Embodiments of speech recognizer 310 and server query manager 320, or portions thereof, can also be implemented as computer-readable code executed on one or more computing device capable of carrying out the functionality described herein. Examples of computing devices include, but are not limited to, a central processing unit, an application-specific integrated circuit, or other type of computing device having at least one processor and memory.
As described above, with respect to
In an embodiment, speech recognizer 310 is configured to translate both simple speech recognition tasks, as well as more complex speech recognition tasks than those tasks translated by speech recognizer 210 in client device 110. This is because speech recognizer 310 has more computational and memory resources than speech recognizer 210 to translate more complex voice commands to corresponding machine-readable voice commands, according to an embodiment. Methods and techniques to process complex speech recognition tasks are known to a person of ordinary skill in the relevant art.
Based on the machine-readable voice command translated by speech recognizer 310, in an embodiment, server query manager 320 queries server database 330 to generate a query result. In an embodiment, server database 330 contains a wide array of information such as, for example and without limitation, text data, image data, and video. Based on the description herein, a person of ordinary skill in the relevant art will recognize that other data stored in server database 330 can provide query results to embodiments described herein.
After a query result is retrieved from server database 330, server query manager 320 coordinates a transmission of the query result to client device 110 via network 120 of
For ease of explanation, communication system 100 will be used to facilitate in the description of method 400. However, based on description herein, a person of ordinary skill in the relevant art will recognize that method 400 can be executed on other communication systems. These other communication systems are within the scope and spirit of the embodiments described herein.
Further, for ease of explanation, method 400 will be described in the context of a mobile phone (e.g., client device 110 of
In step 410, an audio stream of a voice command is translated into a machine-readable voice command with a speech recognizer located on the mobile phone. As described above, with respect to
In step 420, a query is made to a database of the mobile phone to generate a query result based on the machine-readable voice command generated from step 410. In reference to
With respect to
With respect to
With respect to
In reference to
In step 440, a query result is received from the network server, where the query result is generated from a query made to a server database based on the machine-readable voice command from step 430. With respect to
In an embodiment, as illustrated in method 600 of
In step 450 of
Similar to
In the example of
With respect to
In step 810, an audio stream of a voice command is received by the mobile phone. As described above, with respect to
In step 820, a speech recognizer located on the mobile phone determines whether the audio stream (from step 810) can be translated into a machine-readable voice command with an appropriate confidence score. In an embodiment, due to computational and memory resources of the mobile phone, the speech recognizer located on the mobile phone (e.g., speech recognizer 210 of
In step 830, if the speech recognizer located on the mobile phone is able to provide a machine-readable voice command translation for the audio stream of the voice command, then the voice command is translated into the machine-readable voice command with the speech recognizer located on the mobile phone. Step 830 performs a similar function as step 410 of
In step 840, a query is made on a database of the mobile phone to generate a query result based on the machine-readable voice command generated from step 830. Step 840 performs a similar function as step 420 of
In step 850, regardless of whether the speech recognizer located on the mobile phone is able to provide the machine-readable voice command translation for the audio stream of the voice command with the appropriate confidence score, the audio stream of the voice command is transmitted to a network server, where the voice command is translated to a machine-readable voice command with a speech recognizer located on the network server. Step 850 performs a similar function as step 430 of
In step 860, a query result is received from the network server, where the query result is generated from a query made to a server database based on the machine-readable voice command from step 850. Step 860 performs a similar function as step 440 of
In reference to step 880 of
In the alternative, if the speech recognizer located on the mobile device is not able to provide a machine-readable voice command translation for the audio stream of the voice command (see step 870), then only the query result from step 840 is displayed on the mobile phone (see step 890). In an embodiment, the query result from step 840 is stored in the database of the mobile phone for a future voice command by the mobile phone user.
In an embodiment, a future voice command can be translated into a machine-readable voice command, in which this machine-readable voice command can be compared to the machine-readable voice command with the relatively low confidence score (from step 820 of
In addition, according to an embodiment, the audio stream corresponding to the future voice command is transmitted to the network server, where the voice command is translated to a machine-readable voice command with the speech recognizer located on the network server. Based on the machine-readable voice command corresponding to the future voice command, in an embodiment, a query is made to a database on the network server to generate a query result. This query result is received by, displayed on, and stored in the mobile phone, according to an embodiment.
A benefit, among others, in displaying the stored query result corresponding to the prior voice command and another query result corresponding to the future voice command is that the mobile phone user receives the benefit of viewing an updated query result (if any) from the network server, according to an embodiment. In addition, in an embodiment, the speech recognizer on the mobile phone may mischaracterize the future voice command as corresponding to a previously-stored voice command. In this case, the speech recognizer located on the network server may be able to resolve the mischaracterization by providing a more accurate translation of the future voice command than the translation provided by speech recognizer located on the mobile phone, according to an embodiment.
With respect to
In the example illustrated in
Further, in an embodiment of step 850, a partial portion of the exemplary list of query results can be received by and displayed on the mobile phone at a first time instance and the remainder of the exemplary list of query results can be received by and displayed on the mobile phone at a second time instance (e.g., later in time than the first time instance). In this way, the mobile phone user can view a portion of the query results as the remainder of the query results is being processed by the network server and received by the mobile phone.
In an embodiment, the query result selected by the mobile phone user (e.g., www.pizzamyheart.com) is stored in the database of the mobile phone for a future voice command by the mobile phone user. For instance, the hyperlink “www.pizzamyheart.com” appears as a query result from a query made to the database of the mobile phone when, at a later time, the mobile phone user provides “pizza my heart” as a voice command to the mobile phone. This is illustrated in field 1050 of
Various aspects of the embodiments described herein may be implemented in software, firmware, hardware, or a combination thereof.
Computer system 1100 is an example computing device and includes one or more processors, such as processor 1104. Processor 1104 may be a special purpose or a general-purpose processor. Processor 1104 is connected to a communication infrastructure 1106 (e.g., a bus or network).
Computer system 1100 also includes a main memory 1108, preferably random access memory (RAM), and may also include a secondary memory 1110. Secondary memory 1110 can include, for example, a hard disk drive 1112, a removable storage drive 1114, and/or a memory stick. Removable storage drive 1114 can comprise a floppy disk drive, a magnetic tape drive, an optical disk drive, a flash memory, or the like. The removable storage drive 1114 reads from and/or writes to a removable storage unit 1118 in a well-known manner. Removable storage unit 1118 can include a floppy disk, magnetic tape, optical disk, etc. which is read by and written to by removable storage drive 1114. As will be appreciated by persons skilled in the relevant art, removable storage unit 1118 includes a computer-usable storage medium having stored therein computer software and/or data.
In alternative implementations, secondary memory 1110 can include other similar devices for allowing computer programs or other instructions to be loaded into computer system 1100. Such devices can include, for example, a removable storage unit 1122 and an interface 1120. Examples of such devices can include a program cartridge and cartridge interface (such as those found in video game devices), a removable memory chip (e.g., EPROM or PROM) and associated socket, and other removable storage units 1122 and interfaces 1120 which allow software and data to be transferred from the removable storage unit 1122 to computer system 1100.
Computer system 1100 can also include a communications interface 1124. Communications interface 1124 allows software and data to be transferred between computer system 1100 and external devices. Communications interface 1124 can include a modem, a network interface (such as an Ethernet card), a communications port, a PCMCIA slot and card, or the like. Software and data transferred via communications interface 1124 are in the form of signals, which may be electronic, electromagnetic, optical, or other signals capable of being received by communications interface 1124. These signals are provided to communications interface 1124 via a communications path 1126. Communications path 1126 carries signals and may be implemented using wire or cable, fiber optics, a phone line, a cellular phone link, a RF link or other communications channels.
In this document, the terms “computer program medium” and “computer-usable medium” are used to generally refer to media such as removable storage unit 1118, removable storage unit 1122, and a hard disk installed in hard disk drive 1112. Computer program medium and computer-usable medium can also refer to memories, such as main memory 1108 and secondary memory 1110, which can be memory semiconductors (e.g., DRAMs, etc.). These computer program products provide software to computer system 1100.
Computer programs (also called computer control logic) are stored in main memory 1108 and/or secondary memory 1110. Computer programs may also be received via communications interface 1124. Such computer programs, when executed, enable computer system 1100 to implement embodiments discussed herein. In particular, the computer programs, when executed, enable processor 904 to implement processes described above, such as the steps in the methods illustrated by flowchart 400 of
Based on the description herein, a person of ordinary skill in the relevant will recognize that the computer programs, when executed, can enable one or more processors to implement processes described above, such as the steps in the methods illustrated by flowchart 400 of
Embodiments are also directed to computer program products including software stored on any computer-usable medium. Such software, when executed in one or more data processing device, causes a data processing device(s) to operate as described herein. Embodiments employ any computer-usable or -readable medium, known now or in the future. Examples of computer-usable mediums include, but are not limited to, primary storage devices (e.g., any type of random access memory), secondary storage devices (e.g., hard drives, floppy disks, CD ROMS, ZIP disks, tapes, magnetic storage devices, optical storage devices, MEMS, nanotechnological storage devices, etc.), and communication mediums (e.g., wired and wireless communications networks, local area networks, wide area networks, intranets, etc.).
While various embodiments have been described above, it should be understood that they have been presented by way of example only, and not limitation. It will be understood by those skilled in the relevant art that various changes in form and details can be made therein without departing from the spirit and scope of the embodiments described herein. It should be understood that this description is not limited to these examples. This description is applicable to any elements operating as described herein. Accordingly, the breadth and scope of this description should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents.
Claims
1. A method for performing a voice command on a client device, comprising:
- translating, using a first speech recognizer located on the client device, an audio stream of a voice command to a first machine-readable voice command;
- generating a first query result using the first machine-readable voice command to query a client database;
- transmitting the audio stream to a remote server device that translates the audio stream to a second machine-readable voice command using a second speech recognizer;
- receiving a second query result from the remote server device, wherein the second query result is generated by the remote server device using the second machine-readable voice command to query a remote server database; and
- displaying the first query result and the second query result on the client device.
2. The method of claim 1, further comprising:
- storing at least a portion of the first and second query results on the client device.
3. The method of claim 2, further comprising retrieving the stored first and second query results when translation of a subsequent voice command is determined to be substantially similar to the translated voice command that generated the first and second query results.
4. The method of claim 3, further comprising:
- transmitting to the remote server device a second audio stream associated with the subsequent voice command;
- translating the second audio stream to a third machine-readable voice command using the second speech recognizer;
- receiving a third query result from the remote server device, wherein the third query result is generated from a subsequent query made to the server database based on the third machine-readable voice command; and
- displaying the first, second, and third query results on the client device.
5. The method of claim 2, further comprising identifying which portion of the first and second query results to store, the identification comprising:
- receiving a user selection of an item of interest from a list of items returned as part of the second query result.
6. The method of claim 1, wherein generating the first query result comprises transmitting the audio stream to the second speech recognizer such that the query made to the remote server database based on the second machine-readable voice command occurs during a time period that overlaps when the query is made to the client database based on the first machine-readable voice command.
7. The method of claim 1, wherein transmitting the audio stream comprises transmitting a compressed audio stream of the voice command from the client device to the server device.
8. The method of claim 1, wherein displaying the first and second query results comprises displaying the first result and a first subset of the second query result at a first time instance and the first result, the first subset of the second query result, and a second subset of the second query result at a second time instance.
9. A computer program product comprising a computer-usable medium having computer program logic recorded thereon for enabling a processor to perform a voice command on a client device, the computer program logic comprising:
- first computer readable program code that enables a processor to translate, using a first speech recognizer located on the client device, an audio stream of a voice command to a first machine-readable voice command;
- second computer readable program code that enables a processor to generate a first query result using the first machine-readable voice command to query a client database;
- third computer readable program code that enables a processor to transmit the audio stream to a remote server device that translates the audio stream to a second machine-readable voice command using a second speech recognizer;
- fourth computer readable program code that enables a processor to receive a second query result from the remote server device, wherein the second query result is generated by the remote server device using the second machine-readable voice command to query a remote server database; and
- fifth computer readable program code that enables a processor to display the first query result and the second query result on the client device.
10. The computer program product of claim 9, further comprising:
- sixth computer readable program code that enables a processor to store at least a portion of the first and second query results on the client device.
11. The computer program product of claim 10, further comprising:
- seventh computer readable program code that enables a processor to retrieve the stored first and second query results when translation of a subsequent voice command is determined to be substantially similar to the translated voice command that generated the first and second query results.
12. The computer program product of claim 11, further comprising:
- eighth computer readable program code that enables a processor to transmit to the remote server device a second audio stream associated with the subsequent voice command;
- ninth computer readable program code that enables a processor to translate the second audio stream to a third machine-readable voice command using the second speech recognizer;
- tenth computer readable program code that enables a processor to receive a third query result from the remote server device, wherein the third query result is generated from a subsequent query made to the server database based on the third machine-readable voice command; and
- eleventh computer readable program code that enables a processor to display the first, second, and third query results on the client device.
13. The computer program product of claim 10, wherein the sixth computer readable program code comprises:
- seventh computer readable program code that enables a processor to identify which portion of the first and second query results to store, the identification comprising receiving a user selection of an item of interest from a list of items returned as a part of the second query result.
14. The computer program product of claim 9, wherein the second computer readable program code comprises:
- sixth computer readable program code that enables a processor to transmit the audio stream to the second speech recognizer such that the query made to the remote server database based on the second machine-readable voice command occurs during a time period that overlaps when the query is made to the client database based on the first machine-readable voice command.
15. A system for performing a voice command on a client device, comprising:
- a first speech recognizer device configured to translate an audio stream of a voice command to a first machine-readable voice command;
- a client query manager configured to: generate a first query result using the first machine-readable voice command to query a client database; transmit the audio stream to a remote server device that translates the audio stream to a second machine-readable voice command using a second speech recognizer device; and receive a second query result from the remote server device, wherein the second query result is generated by the remote server device using the second machine-readable voice command to query a remote server database; and
- a display device configured to display the first query result and the second query result on the client device.
16. The system of claim 15, further comprising:
- a microphone configured to receive the audio stream of the voice command and to provide the audio stream to the first speech recognizer device; and
- a storage device configured to store at least a portion of the first and second query results on the client device.
17. The system of claim 16, wherein the client query manager is configured to retrieve the stored first and second query results from the storage device when translation of a subsequent voice command is determined to be substantially similar to the translated voice command that generated the first and second query results.
18. The system of claim 17, wherein the client query manager is configured to:
- transmit to the remote server device a second audio stream associated with the subsequent voice command;
- translate the second audio stream to a third machine-readable voice command using the second speech recognizer device; and
- receive a third query result from the remote server device, wherein the third query result is generated from a subsequent query made to the server database based on the third machine-readable voice command.
19. The system of claim 15, wherein the client query manager is configured to transmit the audio stream to the second speech recognizer device such that the query made to the remote server database based on the second machine-readable voice command occurs during a time period that overlaps when the query is made to the client database based on the first machine-readable voice command.
20. The system of claim 15, wherein the display device is configured to display the first result and a first subset of the second query result at a first time instance and the first result, the first subset of the second query result, and a second subset of the second query result at a second time instance.
Type: Application
Filed: Jun 7, 2010
Publication Date: Jul 28, 2011
Applicant: Google Inc. (Mountain View, CA)
Inventors: Alexander GRUENSTEIN (Mountain View, CA), William J. Byrne (Davis, CA)
Application Number: 12/794,896
International Classification: G10L 21/06 (20060101);