1. Technical Field
The present disclosure relates to electronic devices and, particularly, to a voice controlled device and a voice control method.
2. Description of Related Art
Voice controlled devices have been available and in use for many years. Many voice controlled devices will work with only a voice command collected by an audio recording unit, for example, a microphone, matching a stored command. The devices execute a function corresponding to the voice command. If the voice command partially matches the stored command, the devices will abandon this voice command and not execute any function.
Many aspects of the present disclosure should be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
Embodiments of the present disclosure will now be described in detail, with reference to the accompanying drawings.
Referring to
The storage module 10 stores a number of computerized voice commands.
The voice recording module 20 records audio signals of a user. The voice recording module 20 may be a microphone.
The processing module 30 processes the recorded voice signals to determine a machine readable command. The processing module 30 further determines whether the determined machine readable command matches one stored computerized voice commands. If the processing module 30 determines the determined machine readable command matches one stored computerized voice commands, the processing module 30 controls the device 100 to execute a function according to the determined machine readable command, and stores the determined machine readable command to the shift register 40 as a history command. In this embodiment, the shift register 40 stores a number of history commands.
When the processing module 30 determines that the determined machine readable command is partially the same as two or more stored computerized voice commands, the processing module 30 obtains all of the history commands from the shift register 40, and determines which function the device 100 is to do according to the history commands. For example, in this embodiment, if all of the stored history commands in the shift register 40 are the same, the processing module 30 controls the device 100 to execute a function corresponding to any of the history commands. If at least two latest history commands are the same but not all of the stored history commands are the same, the processing module 30 controls the device 100 to execute a function corresponding to the same latest history commands. The processing module 30 further stores the command that the processing module 30 has determined to execute a function corresponding to in the shift register 40 as one history command. When the processing module 30 determines that the determined machine readable command matches none stored computerized voice commands, the processing module 30 abandons the machine readable command and does not execute any function. For better understanding the present disclosure, an example is given to illustrate the present disclosure. In this example, the device 100 is a projector. The stored computerized voice commands include a “page up” command, a “page down” command, a “start” command, and a “finish” command, for example. If the determined machine readable command is the “page down” command, the processing module 30 plays a next page of a document and stores the determined machine readable command “page down” to the shift register 40. If the determined machine readable command is a “page” command, the processing module 30 determines which function the projector is to do according to the stored history commands. If the processing module 30 determines the history commands from the shift register 40 are the “page down” command or at least two history commands recently stored are the “page down” command, the processing module 30 determines that a user wants to view a next page of a running document, and plays the next page.
In an alternative embodiment, the storage module 10 may store a number of tables 101. Each table 101 records a number of computerized voice commands. Each of the computerized voice commands in each of the tables 101 corresponds to a function, and when the processing module 30 determined which function to execute based on the tables 101. For example, the computerized voice commands in one table 101 are used to control operation of a PowerPoint application, and the computerized voice commands in another table 101 are used to control operation of an audio player application. The processing module 30 may provide a user interface for a user to select one table 101 as an aim table. When a table 101 is selected, the processing module 30 only searches in the selected table 101 to determine whether a determined machine readable command matches with one of the computerized voice commands in the selected table 101. That is, only the computerized voice commands in the selected table 101 are used. With such configuration, searching speed of the device 100 increases.
In step S201, the voice recording module 20 records audio signals of a user.
In step S202, the processing module 30 processes the recorded voice signals to determine a machine readable command.
In step S203, the processing module 30 determines whether the determined machine readable command matches one stored computerized voice command. If yes, the procedure goes to step S204, otherwise, the procedure goes up to step S206.
In step S204, the processing module 30 controls the device 100 to execute a function according to the determined machine readable command.
In step S205, the processing module 30 stores the determined machine readable command to the shift register 40 as a history command.
In step S206, the processing module 30 determines whether the machine readable command partially the same as two or more stored computerized voice command. If no, the procedure goes to step S207, otherwise, the step goes up to step S208.
In step S207, the processing module 30 abandons the machine readable command and does not execute any function.
In step S208, the processing module 30 obtains all of the history commands from the shift register 40, and determines which function the device 100 is to do according to the history commands, as described earlier.
In step S209, the processing module 30 controls the device 100 to execute the determined function and stores the command which the processing module 30 determines to execute a function corresponding to in the shift register 40 as one history command.
It is believed that the present embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the disclosure or sacrificing all of its material advantages, the examples hereinbefore described merely being exemplary embodiments of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
100114620 | Apr 2011 | TW | national |