WO2016202064A1 - Instruction processing method and apparatus - Google Patents

Instruction processing method and apparatus Download PDF

Info

Publication number
WO2016202064A1
WO2016202064A1 PCT/CN2016/078987 CN2016078987W WO2016202064A1 WO 2016202064 A1 WO2016202064 A1 WO 2016202064A1 CN 2016078987 W CN2016078987 W CN 2016078987W WO 2016202064 A1 WO2016202064 A1 WO 2016202064A1
Authority
WO
WIPO (PCT)
Prior art keywords
object information
execution object
execution
executed
instruction
Prior art date
Application number
PCT/CN2016/078987
Other languages
French (fr)
Chinese (zh)
Inventor
王正
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016202064A1 publication Critical patent/WO2016202064A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition

Definitions

  • the present application relates to, but is not limited to, the field of voice control technology, and in particular, an instruction processing method and apparatus.
  • the user can control the terminal to perform corresponding operations by speaking a voice command.
  • the voice function of the terminal only adopts the acceptance-execution mode, that is, the user speaks an instruction, and the terminal recognizes the instruction and then executes.
  • Common voice commands include: making calls, playing music, opening apps, and more.
  • the related technology adopts a traversal manner to find a corresponding execution object.
  • the terminal needs to traverse all the information of the business card holder to search; When it comes to playing a certain song, the terminal needs to traverse all the songs in the music player; when the user says to open an application, the terminal needs to traverse all the application names in the terminal and so on.
  • the foregoing traversal operation requires a large amount of processing time, resulting in a lower efficiency of the terminal executing the voice command.
  • the main purpose of the present application is to provide an instruction processing method and apparatus, which are intended to improve the efficiency of a terminal executing a voice command.
  • the present application provides an instruction processing method, where the instruction processing method includes:
  • the instruction processing method further includes:
  • the execution object information that does not satisfy the preset condition matches the to-be-executed object information
  • the execution object corresponding to the executed execution object information is executed.
  • the instruction processing method further includes:
  • the execution object information that does not satisfy the preset condition does not match the to-be-executed object information
  • the execution object information that satisfies the preset condition is displayed.
  • the step of acquiring the execution object information that meets the preset condition in the execution object information corresponding to the voice instruction comprises:
  • the instruction processing method further includes:
  • the execution frequency value of the execution object corresponding to the matching execution object information is updated.
  • the present application further provides an instruction processing apparatus, where the instruction processing apparatus includes:
  • the first acquiring module is configured to acquire, to be executed, the to-be-executed object information carried by the voice instruction when the voice instruction is received;
  • a second acquiring module configured to acquire execution object information that satisfies a preset condition in the execution object information corresponding to the voice instruction
  • a matching module configured to match the to-be-executed object information with the execution object information that satisfies a preset condition
  • the execution module is configured to execute an execution object corresponding to the executed execution object information when the execution object information that satisfies the preset condition matches the to-be-executed object information.
  • the matching module is further configured to: when the execution object information that satisfies the preset condition does not match the to-be-executed object information, execute the object corresponding to the to-be-executed object information and the voice instruction Matching execution object information that does not satisfy the preset condition in the information; and/or
  • the execution module is further configured to execute an execution object corresponding to the executed execution object information when the execution object information that does not satisfy the preset condition matches the to-be-executed object information.
  • the instruction processing apparatus further includes a prompting module, where the prompting module is configured to display the satisfying preset when the execution object information that does not satisfy the preset condition does not match the to-be-executed object information The execution object information of the condition.
  • the second obtaining module is configured to:
  • the instruction processing apparatus further includes an update module configured to update an execution frequency value of the execution object corresponding to the matched execution object information.
  • the application further provides a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
  • the instruction processing method and apparatus provided by the present application receive the voice instruction and obtain the After the to-be-executed object information carried by the voice instruction, the execution object information matching the to-be-executed object information is searched from the execution object information that satisfies the preset condition, and when the matching execution object information is found, the matched execution object information is executed.
  • the corresponding execution object does not need to traverse all the execution object information as in the related art, so that the present application can improve the efficiency of the terminal executing the voice instruction.
  • FIG. 1 is a schematic flow chart of a first embodiment of an instruction processing method according to the present application.
  • FIG. 2 is a schematic flow chart of a second embodiment of an instruction processing method according to the present application.
  • FIG. 3 is another schematic flowchart of a second embodiment of an instruction processing method according to the present application.
  • FIG. 4 is a schematic diagram of a UI display according to a second embodiment of the instruction processing method of the present application.
  • FIG. 5 is a schematic diagram of another UI display according to a second embodiment of the instruction processing method of the present application.
  • FIG. 6 is a schematic diagram of still another UI display of the second embodiment of the instruction processing method of the present application.
  • FIG. 7 is a schematic flowchart diagram of a third embodiment of an instruction processing method according to the present application.
  • FIG. 8 is a schematic diagram of functional modules of a first embodiment of an instruction processing apparatus according to the present application.
  • FIG. 9 is a schematic diagram of functional modules of a second embodiment of the instruction processing apparatus of the present application.
  • FIG. 10 is a schematic diagram of functional modules of a third embodiment of the instruction processing apparatus of the present application.
  • the instruction processing method includes:
  • the instruction processing method provided in this embodiment can be applied to the voice control of the terminal.
  • the terminal can quickly respond to the voice command spoken by the user to perform the corresponding operation.
  • the terminal may be a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (a Smart terminals such as human digital assistants, PADs (tablets), PMPs (portable multimedia players), navigation devices, digital TVs, and desktop computers.
  • PDA a Smart terminals such as human digital assistants, PADs (tablets), PMPs (portable multimedia players), navigation devices, digital TVs, and desktop computers.
  • the voice command can be spoken by the user or played by the voice output device.
  • a complete voice instruction is split into two parts, and the first part is an instruction type.
  • the types of instructions corresponding to “calling”, “playing music”, and “opening the application” are: calling, Play and open three categories; the second part is the instruction object information to be executed.
  • the related object information to be executed may include a phone number, a contact name, a phone number type, etc., for playing music,
  • the related to-be-executed object information may include a song name, an album name, a singer name, and the like.
  • the related to-be-executed object information may include an application name of the installed application of the terminal.
  • the voice recognition module of the calling terminal acquires the instruction type of the voice instruction and the to-be-executed object information carried by the voice instruction. For example, when the terminal receives the voice instruction, the voice recognition module of the calling terminal acquires the instruction type of the voice instruction as “calling”, and the object information to be executed is “mother”, that is, the terminal operation expected by the user is “calling”. To the mother.”
  • the execution object information that satisfies the preset condition in the execution object information corresponding to the voice instruction is obtained, wherein the execution object information corresponding to the voice instruction is the execution object information related to the instruction type of the voice instruction.
  • the to-be-executed object information After acquiring the to-be-executed object information and the execution object information that meets the preset condition, matching the to-be-executed object information with the execution object information that satisfies the preset condition; If the execution object information of the condition is the same as the information to be executed, the matching is performed. If the execution object information that meets the preset condition is not the same as the information to be executed, the information is not matched. The execution object information that is the same as the to-be-executed object information in the execution object information of the condition is the matching execution object information.
  • the instruction type of the voice instruction obtained in the foregoing is “calling”, and the object to be executed is The information is "mother”, and the "mother” is matched with the execution object information satisfying the preset condition among the execution objects related to the instruction type "calling", and if the "mother” exists in the execution object information satisfying the preset condition, Then match.
  • execute the matching execution object information ("Mother") corresponding execution object that is, call "Mother”: call the terminal dialer to load the "Mother" number and dial, for the user to call with the "Mother” based on the terminal. .
  • the instruction processing method of the present embodiment after receiving the voice instruction and acquiring the to-be-executed object information carried by the voice instruction, searching for the object to be executed from the execution object information that satisfies the preset condition. Executing the object information, when the matching execution object information is found, executing the execution object corresponding to the matching execution object information, without traversing all the execution object information as in the related art, so that the embodiment of the present invention can improve the terminal to execute the voice instruction. effectiveness.
  • the embodiment is provided with an instruction index table, where the instruction index table stores the execution object information that satisfies the preset condition. Specifically, each time the terminal receives and executes the voice instruction, the instruction type of the voice instruction is acquired, and the to-be-executed object information is carried; and the execution object corresponding to the execution object information that the object information to be executed matches is dynamically calculated.
  • the execution frequency value corresponding to the execution object whose execution frequency value is greater than or equal to the preset threshold value is added to the instruction index table according to the association relationship between the execution object information and the instruction type; or, according to the execution object information and An association relationship of the instruction type, wherein a preset number of execution object information is added to the instruction index table, wherein an execution frequency value of the execution object corresponding to the extracted execution object information is greater than the extracted execution object
  • the execution frequency value of the execution object corresponding to the execution object information other than the information.
  • the priority of the execution object information in the instruction index table depends on the execution frequency value of the corresponding execution object, and the higher the execution frequency value of the execution object, the higher the priority of the corresponding execution object information.
  • Table 1 the calling part of the instruction index table is as shown in Table 1:
  • the step of matching the to-be-executed object information with the execution object information that meets the preset condition includes:
  • the step of acquiring the execution object information that meets the preset condition in the execution object information corresponding to the voice instruction includes:
  • the preset condition includes: the execution frequency value of the execution object corresponding to the execution object information is greater than or The value is equal to the preset threshold, where the value of the preset threshold is not limited in this embodiment, and is specifically set according to actual needs);
  • the execution object information of the preset number (the embodiment does not limit the preset number of values, specifically according to actual needs) is extracted in the execution object information corresponding to the voice instruction, where the extracted execution is performed.
  • the execution frequency value of the execution object corresponding to the object information is greater than the voice
  • the instruction processing method further includes:
  • the execution object information that does not satisfy the preset condition matches the to-be-executed object information
  • the execution object corresponding to the executed execution object information is executed.
  • the execution object corresponding to the execution object information stored in the instruction index table is an execution object having a higher execution frequency value, if the execution object information corresponding to the execution object information that is to be executed by the voice instruction is When the execution object is not executed or is executed, the instruction index table does not have corresponding execution object information, that is, the execution object information that satisfies the preset condition and the object information to be executed are not Matching; the execution object information that does not satisfy the preset condition in the execution object information corresponding to the to-be-executed object information and the voice instruction (the execution object information other than the instruction index table, and the execution object information) Performing matching when the related instruction type is the same as the instruction type related to the to-be-executed object information; and performing matching object information when the execution object information that does not satisfy the preset condition matches the to-be-executed object information Execution object.
  • the voice command of the user is “call to colleague A”, wherein the instruction type is “calling”, the object information to be executed is “colleague A”, and the instruction index table shown in Table 1 does not exist.
  • "Colleague A” at this time traverse the business card folder information (except the wife, father, mother shown in Table 1), find the matching execution object information "colleague A”, call the dialer to load the number of "colleague A” and Dial, for the user to talk to "Colleague A” based on the terminal.
  • the instruction processing method further includes:
  • the terminal in actual use, there are multiple reasons for the terminal to have no matching execution object information (the execution object information satisfying the preset condition does not match the to-be-executed object information, and the The execution object information that satisfies the preset condition does not match the to-be-executed object information.
  • the execution object information satisfying the preset condition does not match the to-be-executed object information
  • the The execution object information that satisfies the preset condition does not match the to-be-executed object information.
  • the voice recognition module of the terminal does not correctly identify the to-be-executed object information carried by the voice instruction of the user.
  • the execution object information that does not satisfy the preset condition does not match the to-be-executed object information
  • the execution object information that satisfies the preset condition is displayed, and at the same time, the display meets the preset condition.
  • the type of instruction associated with the execution object information is displayed, and at the same time, the display meets the preset condition.
  • the embodiment performs the execution object information and the The instruction type related to the execution object information that satisfies the preset condition is displayed in the form of a UI (User Interface).
  • the specific UI display mode can be referred to FIG. 4; at the same time, the terminal voice output module is called to output "Your hope. Can you call the following number? It is easy to understand that if the user sees the target execution object information, he or she can select the execution by touch screen or by voice.
  • the execution object information satisfying the preset condition and the instruction type related to the execution object information satisfying the preset condition are displayed in a UI manner for the user to select, It can enhance the user experience and minimize the failure of terminal speech recognition.
  • the instruction processing method further includes:
  • the execution object information that satisfies the preset condition is displayed.
  • the execution object information that meets the preset condition can be implemented by referring to the foregoing technical solution, and details are not described herein again.
  • the user's voice instruction may include multiple execution object information.
  • the following is a detailed description of playing music:
  • the terminal runs the music playing program.
  • the user only speaks the "play” command type, if the terminal currently selects a certain song by default, the currently selected song is played; if the terminal does not currently select the song, according to the foregoing embodiment, the UI The mode displays the "play" instruction type and the execution object information related to the "play” instruction type, as shown in FIG.
  • the voice command received by the terminal is parsed, and if only one execution object information is obtained, the user says Is the name of a certain artist or a song name, or may be the album name; if two execution object information is obtained, the first execution object information and the second execution object information indicate that the user is talking about a certain singer singing a song.
  • an execution object information For the case of obtaining an execution object information, it is searched from the instruction index table for matching execution object information, and if it is found that the artist name and the acquired execution object information match, the singer priority level in the instruction index table is played.
  • the highest song at the same time, find the other songs of the singer in the instruction index table and display them in the UI mode for the user to select; if it is found that the album name and the acquired execution object information match, the album in the instruction index table is played first.
  • the highest-ranking song finds other songs in the album in the index table and displays them in UI mode for the user to select; if the matching execution object information is the song name, the song is played.
  • a third embodiment of the instruction processing method of the present application is proposed.
  • the execution object of the execution matching is performed.
  • the instruction processing method further includes:
  • each voice instruction successfully recorded by the terminal includes an instruction type of the voice instruction, and execution object information that matches the to-be-executed object information carried by the voice instruction, to update the matched execution object information.
  • the execution frequency value of the execution object is a value of the execution object.
  • the instruction index table Since the instruction index table stores the execution object information that satisfies the preset condition, after updating the execution frequency value of the execution object corresponding to the matching execution object information, the instruction index table is dynamically updated, that is, according to the execution target execution frequency. The change of the value adjusts the priority order of the corresponding execution object information in the instruction index table.
  • the matching execution object information does not exist in the instruction index table before, and the matching execution object information corresponds to the execution frequency value of the execution object, the The matched execution object information satisfies the preset condition, and the matched execution object information is added to the instruction index table.
  • the efficiency of the terminal executing the voice instruction can be further improved.
  • Embodiments of the present invention further provide a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
  • the present application further provides an instruction processing apparatus.
  • the instruction processing apparatus includes:
  • the first obtaining module 10 is configured to acquire, to be executed, the to-be-executed object information carried by the voice instruction when the voice instruction is received;
  • the second obtaining module 20 is configured to acquire execution object information that meets a preset condition in the execution object information corresponding to the voice instruction;
  • the command processing device can be applied to the voice control of the terminal.
  • the command processing device is built in the terminal, and when the user speaks the voice command, the terminal can quickly respond to the voice command spoken by the user to perform corresponding operating.
  • the terminal may be a smart terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet PC), a PMP (Portable Multimedia Player), a navigation device, a digital TV, and a desktop computer.
  • PDA Personal Digital Assistant
  • PAD Tablett PC
  • PMP Portable Multimedia Player
  • the voice command can be spoken by the user or can be set by voice output. Ready to play.
  • a complete voice instruction is split into two parts, and the first part is an instruction type.
  • the types of instructions corresponding to “calling”, “playing music”, and “opening the application” are: calling, Play and open three categories; the second part is the instruction object information to be executed.
  • the related object information to be executed may include a phone number, a contact name, a phone number type, etc., for playing music,
  • the related to-be-executed object information may include a song name, an album name, a singer name, and the like.
  • the related to-be-executed object information may include an application name of the installed application of the terminal.
  • the first acquiring module 10 invokes the voice recognition module of the terminal to acquire the instruction type of the voice instruction and the to-be-executed object information carried by the voice instruction.
  • the first acquisition module 10 invokes the voice recognition module of the terminal to acquire the instruction type of the voice instruction as “calling”, and the object information to be executed is “mother”, that is, the terminal expected by the user. The operation is "calling the mother.”
  • the second obtaining module 20 acquires execution object information that satisfies a preset condition in the execution object information corresponding to the voice instruction, wherein the execution object information corresponding to the voice instruction is execution object information related to the instruction type of the voice instruction.
  • the matching module 30 is configured to match the to-be-executed object information with the execution object information that meets the preset condition;
  • the execution module 40 is configured to execute an execution object corresponding to the matched execution object information when the execution object information that satisfies the preset condition matches the to-be-executed object information.
  • the matching module 30 After acquiring the to-be-executed object information and the execution object information that meets the preset condition, the matching module 30 matches the to-be-executed object information with the execution object information that satisfies the preset condition; If the execution object information that satisfies the preset condition is the same as the to-be-executed object information, the matching is performed. If the execution object information that satisfies the preset condition is not the same as the to-be-executed object information, the matching is not performed; The execution object information that is the same as the object to be executed in the execution object information that satisfies the preset condition, that is, the matching execution object information.
  • the instruction type of the voice instruction acquired by the foregoing first acquisition module 10 is “calling”, the object information to be executed is “mother”, and the matching module 30 associates the “mother” with the execution object related to the instruction type “calling”. Matching the execution object information that satisfies the preset condition, if the preset is satisfied If there is a "mother" in the execution object information of the condition, it matches.
  • the execution module 40 executes the matching execution object information ("mother") corresponding execution object, that is, calls the "mother”: the execution module 40 calls the terminal dialer to load the "mother” number and dials for the user to The terminal talks to the "mother”.
  • the instruction processing apparatus of the embodiment After receiving the voice instruction and acquiring the to-be-executed object information carried by the voice instruction, the instruction processing apparatus of the embodiment searches for the object to be executed from the execution object information that satisfies the preset condition. Executing the object information, when the matching execution object information is found, executing the execution object corresponding to the matching execution object information, without traversing all the execution object information as in the related art, so that the embodiment of the present invention can improve the terminal to execute the voice instruction. effectiveness.
  • the embodiment is provided with an instruction index table, where the instruction index table stores the execution object information that satisfies the preset condition.
  • the instruction processing apparatus further includes a table creation module, configured to acquire an instruction type of the voice instruction and the carried object information to be executed each time the terminal receives and executes the voice instruction; and dynamically calculate the object to be executed The execution frequency value of the execution object corresponding to the information of the execution object information; the instruction index table is created according to the association relationship between the execution object information and the instruction type, so as to execute the execution object corresponding to the execution target whose frequency value is greater than or equal to the preset threshold The execution object information is added to the instruction index table; or, according to the association relationship between the execution object information and the instruction type, the instruction index table is created to extract a preset number of execution object information and added to the instruction index table, The execution frequency value of the execution object corresponding to the extracted execution object information is greater than the execution frequency value of the execution object corresponding to the execution object information other than the extracted execution object information.
  • the priority of the execution object information in the instruction index table depends on the execution frequency value of the corresponding execution object, and the higher the execution frequency value of the execution object, the higher the priority of the corresponding execution object information.
  • the calling portion of the instruction index table is as shown in Table 1.
  • the matching module 30 is configured to sequentially perform the to-be-executed object information and the instruction index table in an order of priority of execution object information in the instruction index table from high to low.
  • the execution object information related to the instruction type of the voice instruction is matched.
  • the second obtaining module 20 is configured to:
  • the preset condition includes: performing object information pair
  • the value of the execution frequency of the object to be executed is greater than or equal to the preset threshold, wherein the value of the preset threshold is not limited in this embodiment, and is specifically set according to actual needs);
  • the execution object information of the preset number (the embodiment does not limit the preset number of values, specifically according to actual needs) is extracted in the execution object information corresponding to the voice instruction, where the extracted execution is performed.
  • the execution frequency value of the execution object corresponding to the object information is greater than the execution frequency value of the execution object corresponding to the execution object information other than the extracted execution object information in the execution target information corresponding to the voice instruction.
  • the matching module 30 is further configured to be in the When the execution object information that satisfies the preset condition does not match the to-be-executed object information, the object to be executed is matched with the execution object information that does not satisfy the preset condition in the execution object information corresponding to the voice instruction. ;and / or
  • the execution module 40 is further configured to execute an execution object corresponding to the executed execution object information when the execution object information that does not satisfy the preset condition matches the to-be-executed object information.
  • the execution object corresponding to the execution object information stored in the instruction index table is an execution object having a higher execution frequency value
  • the instruction index table does not have corresponding execution object information, that is, the execution object information that satisfies the preset condition and the object information to be executed are not Matching; at this time, the matching module 30 executes the execution object information that does not satisfy the preset condition in the execution object information corresponding to the to-be-executed object information and the voice instruction (the execution object information other than the instruction index table, and the Performing matching when the type of the instruction related to the execution of the object information is the same as the type of the instruction related to the object to be executed; and executing the module 40 when the execution object information that does not satisfy the preset condition matches the information of the object to be executed The execution object corresponding to the matching execution object information.
  • the voice command of the user is “call to colleague A”, wherein the instruction type is “calling”, the object information to be executed is “colleague A”, and the instruction index table shown in Table 1 does not exist.
  • the matching module 30 traverses the business card holder information (except the wife, father, and mother shown in Table 1), and finds the matching execution object information "colleague A", and executes the model.
  • Block 40 calls the dialer to load the number of "Colleague A” and dials for the user to talk to "Colleague A" based on the terminal.
  • the instruction processing apparatus further includes a prompting module 38, and the prompting module 38 is configured to execute the execution object information that is not satisfying the preset condition and the to-be-executed When the object information does not match, the execution object information that satisfies the preset condition is displayed.
  • the terminal in actual use, there are multiple reasons for the terminal to have no matching execution object information (the execution object information satisfying the preset condition does not match the to-be-executed object information, and the The execution object information that satisfies the preset condition does not match the to-be-executed object information.
  • the execution object information satisfying the preset condition does not match the to-be-executed object information
  • the The execution object information that satisfies the preset condition does not match the to-be-executed object information.
  • the voice recognition module of the terminal does not correctly identify the to-be-executed object information carried by the voice instruction of the user.
  • the prompting module 38 displays the execution object information that satisfies the preset condition, and simultaneously displays the satisfaction.
  • the type of instruction related to the execution object information of the preset condition is not limited to the execution object information of the preset condition.
  • the prompt module 38 calls the display module of the terminal to satisfy the preset condition.
  • the execution object information and the instruction type related to the execution object information satisfying the preset condition are displayed in a UI manner, and the specific UI display manner can be referred to FIG. 4; meanwhile, the terminal voice output module is called to output “You want to make a call. Is it possible to understand the following number? It is easy to understand that if the user sees the target execution object information, the user can select the execution by touch screen mode, or can select the execution by voice mode.
  • the execution object information satisfying the preset condition and the instruction type related to the execution object information satisfying the preset condition are displayed in a UI manner for the user to select, It can enhance the user experience and minimize the failure of terminal speech recognition.
  • the prompting module 38 is further configured to display the execution object information that meets the preset condition when the first acquisition module 10 does not acquire the to-be-executed object information carried by the voice instruction.
  • the execution object information that meets the preset condition can be implemented by referring to the foregoing technical solution, and details are not described herein again.
  • the user's voice instruction may include a plurality of execution object information, and the following uses the terminal of the built-in instruction processing device to play music as an example for detailed description:
  • the terminal runs the music playing program.
  • the user only speaks the "play” command type, if the terminal currently selects a certain song by default, the currently selected song is played; if the terminal does not currently select the song, according to the foregoing embodiment, the UI The mode displays the "play" instruction type and the execution object information related to the "play” instruction type, as shown in FIG.
  • the voice command received by the terminal is parsed, and if only one execution object information is obtained, the user says Is the name of a certain artist or a song name, or may be the album name; if two execution object information is obtained, the first execution object information and the second execution object information indicate that the user is talking about a certain singer singing a song.
  • an execution object information For the case of obtaining an execution object information, it is searched from the instruction index table for matching execution object information, and if it is found that the artist name and the acquired execution object information match, the singer priority level in the instruction index table is played.
  • the highest song at the same time, find the other songs of the singer in the instruction index table and display them in the UI mode for the user to select; if it is found that the album name and the acquired execution object information match, the album in the instruction index table is played first.
  • the highest-ranking song finds other songs in the album in the index table and displays them in UI mode for the user to select; if the matching execution object information is the song name, the song is played.
  • the instruction processing apparatus is The resetting includes an update module 50 configured to update an execution frequency value of the execution object corresponding to the matched execution object information.
  • the update module 50 records each voice instruction successfully executed by the terminal, including an instruction type of the voice instruction, and execution object information that matches the to-be-executed object information carried by the voice instruction, to update the execution of the match.
  • the update module 50 dynamically updates the instruction index table, that is, the update module, after updating the execution frequency value of the execution object corresponding to the matched execution object information, because the instruction index table stores the execution object information that satisfies the preset condition.
  • the priority order of the corresponding execution object information in the instruction index table is adjusted according to the change of the execution object execution frequency value.
  • the efficiency of the terminal executing the voice instruction can be further improved.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • Embodiments of the invention are not limited to any specific form of combination of hardware and software.
  • the instruction processing method and apparatus provided by the present application, after receiving the voice instruction and acquiring the to-be-executed object information carried by the voice instruction, searching for the object to be executed from the execution object information that satisfies the preset condition
  • the execution object information when the matching execution object information is found, executes the execution object corresponding to the matching execution object information without traversing all the execution object information as in the related art, so that the present application can improve the efficiency of the terminal executing the voice instruction.

Abstract

An instruction processing method and apparatus. The instruction processing method comprises: when a voice instruction is received, acquiring information about an object to be executed carried by the voice instruction (S10); acquiring execution object information, which satisfies a pre-set condition, in the execution object information corresponding to the voice instruction (S20); matching the information about the object to be executed with the execution object information which satisfies the pre-set condition (S30); and when there is execution object information which satisfies the pre-set condition matching the information about the object to be executed, executing the execution object corresponding to the matched execution object information (S40). The solution can improve efficiency of a terminal to execute a voice instruction.

Description

指令处理方法及装置Instruction processing method and device 技术领域Technical field
本申请涉及但不限于语音控制技术领域,尤其是指令处理方法及装置。The present application relates to, but is not limited to, the field of voice control technology, and in particular, an instruction processing method and apparatus.
背景技术Background technique
目前,基于终端的语音功能,用户通过说出语音指令,即可控制终端进行相应操作。终端的语音功能仅采用接受-执行的方式,即用户说出一条指令,终端识别指令然后执行。常用的语音指令包括:拨打电话、播放音乐、打开应用等。当用户说出具体的指令执行对象时,相关技术采取遍历的方式来查找对应的执行对象,例如,当用户说出打电话给某某时,终端需要遍历名片夹所有的信息进行查找;当用户说出播放某某歌曲时,终端需要遍历音乐播放器里所有的歌曲;当用户说出打开某某应用时,终端需要遍历终端里所有的应用名等等。At present, based on the voice function of the terminal, the user can control the terminal to perform corresponding operations by speaking a voice command. The voice function of the terminal only adopts the acceptance-execution mode, that is, the user speaks an instruction, and the terminal recognizes the instruction and then executes. Common voice commands include: making calls, playing music, opening apps, and more. When the user utters a specific instruction execution object, the related technology adopts a traversal manner to find a corresponding execution object. For example, when the user says to call a certain party, the terminal needs to traverse all the information of the business card holder to search; When it comes to playing a certain song, the terminal needs to traverse all the songs in the music player; when the user says to open an application, the terminal needs to traverse all the application names in the terminal and so on.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
前述遍历操作需要消耗大量处理时间,导致终端执行语音指令的效率较低。本申请的主要目的在于提供一种指令处理方法及装置,旨在提高终端执行语音指令的效率。The foregoing traversal operation requires a large amount of processing time, resulting in a lower efficiency of the terminal executing the voice command. The main purpose of the present application is to provide an instruction processing method and apparatus, which are intended to improve the efficiency of a terminal executing a voice command.
为实现上述目的,本申请提供一种指令处理方法,所述指令处理方法包括:To achieve the above objective, the present application provides an instruction processing method, where the instruction processing method includes:
在接收到语音指令时,获取所述语音指令携带的待执行对象信息;Acquiring the to-be-executed object information carried by the voice instruction when receiving the voice instruction;
获取所述语音指令对应的执行对象信息中满足预设条件的执行对象信息;Obtaining execution object information that satisfies a preset condition in the execution object information corresponding to the voice instruction;
将所述待执行对象信息与所述满足预设条件的执行对象信息进行匹配;以及Matching the to-be-executed object information with the execution object information satisfying the preset condition;
在有所述满足预设条件的执行对象信息与所述待执行对象信息匹配时, 执行匹配的执行对象信息对应的执行对象。When the execution object information that satisfies the preset condition matches the to-be-executed object information, The execution object corresponding to the executed execution object information is executed.
可选地,所述将所述待执行对象信息与所述满足预设条件的执行对象信息进行匹配的步骤之后,所述指令处理方法还包括:Optionally, after the step of matching the to-be-executed object information with the execution object information that meets the preset condition, the instruction processing method further includes:
在所述满足预设条件的执行对象信息与所述待执行对象信息均不匹配时,将所述待执行对象信息与所述语音指令对应的执行对象信息中不满足预设条件的执行对象信息进行匹配;和/或When the execution object information that satisfies the preset condition does not match the to-be-executed object information, the execution object information that does not satisfy the preset condition in the execution object information corresponding to the to-be-executed object information and the voice instruction Matching; and/or
在有所述不满足预设条件的执行对象信息与所述待执行对象信息匹配时,执行匹配的执行对象信息对应的执行对象。When the execution object information that does not satisfy the preset condition matches the to-be-executed object information, the execution object corresponding to the executed execution object information is executed.
可选地,所述在所述满足预设条件的执行对象信息与所述待执行对象信息均不匹配时,将所述待执行对象信息与所述语音指令对应的执行对象信息中不满足预设条件的执行对象信息进行匹配的步骤之后,所述指令处理方法还包括:Optionally, when the execution object information that satisfies the preset condition does not match the to-be-executed object information, the execution object information corresponding to the voice instruction is not satisfied in the execution object information. After the step of matching the conditional execution object information, the instruction processing method further includes:
在所述不满足预设条件的执行对象信息与所述待执行对象信息均不匹配时,显示所述满足预设条件的执行对象信息。When the execution object information that does not satisfy the preset condition does not match the to-be-executed object information, the execution object information that satisfies the preset condition is displayed.
可选地,其中,所述获取所述语音指令对应的执行对象信息中满足预设条件的执行对象信息的步骤包括:Optionally, the step of acquiring the execution object information that meets the preset condition in the execution object information corresponding to the voice instruction comprises:
获取所述语音指令对应的执行对象信息中执行频率值大于或等于预设阈值的执行对象对应的执行对象信息;Acquiring the execution object information corresponding to the execution object whose execution frequency information is greater than or equal to the preset threshold value in the execution object information corresponding to the voice instruction;
或者,在所述语音指令对应的执行对象信息中提取预设数量的执行对象信息,其中所提取的所述执行对象信息对应的执行对象的执行频率值,大于所述语音指令对应的执行对象信息中除所提取的所述执行对象信息之外的其它执行对象信息对应的执行对象的执行频率值。Or extracting, in the execution object information corresponding to the voice instruction, a preset number of execution object information, where an execution frequency value of the execution object corresponding to the extracted execution object information is greater than an execution object information corresponding to the voice instruction An execution frequency value of the execution object corresponding to the execution object information other than the extracted execution object information.
可选地,所述执行匹配的执行对象信息对应的执行对象的步骤之后,所述指令处理方法还包括:Optionally, after the step of executing the matching execution object information corresponding to the execution object, the instruction processing method further includes:
更新匹配的执行对象信息对应的执行对象的执行频率值。The execution frequency value of the execution object corresponding to the matching execution object information is updated.
此外,为实现上述目的,本申请还提供一种指令处理装置,所述指令处理装置包括: In addition, in order to achieve the above object, the present application further provides an instruction processing apparatus, where the instruction processing apparatus includes:
第一获取模块,设置成在接收到语音指令时,获取所述语音指令携带的待执行对象信息;The first acquiring module is configured to acquire, to be executed, the to-be-executed object information carried by the voice instruction when the voice instruction is received;
第二获取模块,设置成获取所述语音指令对应的执行对象信息中满足预设条件的执行对象信息;a second acquiring module, configured to acquire execution object information that satisfies a preset condition in the execution object information corresponding to the voice instruction;
匹配模块,设置成将所述待执行对象信息与所述满足预设条件的执行对象信息进行匹配;和a matching module configured to match the to-be-executed object information with the execution object information that satisfies a preset condition; and
执行模块,设置成在有所述满足预设条件的执行对象信息与所述待执行对象信息匹配时,执行匹配的执行对象信息对应的执行对象。The execution module is configured to execute an execution object corresponding to the executed execution object information when the execution object information that satisfies the preset condition matches the to-be-executed object information.
可选地,所述匹配模块还设置成在所述满足预设条件的执行对象信息与所述待执行对象信息均不匹配时,将所述待执行对象信息与所述语音指令对应的执行对象信息中不满足预设条件的执行对象信息进行匹配;和/或Optionally, the matching module is further configured to: when the execution object information that satisfies the preset condition does not match the to-be-executed object information, execute the object corresponding to the to-be-executed object information and the voice instruction Matching execution object information that does not satisfy the preset condition in the information; and/or
所述执行模块还设置成在有所述不满足预设条件的执行对象信息与所述待执行对象信息匹配时,执行匹配的执行对象信息对应的执行对象。The execution module is further configured to execute an execution object corresponding to the executed execution object information when the execution object information that does not satisfy the preset condition matches the to-be-executed object information.
可选地,所述指令处理装置还包括提示模块,所述提示模块设置成在所述不满足预设条件的执行对象信息与所述待执行对象信息均不匹配时,显示所述满足预设条件的执行对象信息。Optionally, the instruction processing apparatus further includes a prompting module, where the prompting module is configured to display the satisfying preset when the execution object information that does not satisfy the preset condition does not match the to-be-executed object information The execution object information of the condition.
可选地,其中,所述第二获取模块是设置成:Optionally, wherein the second obtaining module is configured to:
获取所述语音指令对应的执行对象信息中执行频率值大于或等于预设阈值的执行对象对应的执行对象信息;Acquiring the execution object information corresponding to the execution object whose execution frequency information is greater than or equal to the preset threshold value in the execution object information corresponding to the voice instruction;
或者,在所述语音指令对应的执行对象信息中提取预设数量的执行对象信息,其中所提取的所述执行对象信息对应的执行对象的执行频率值,大于所述语音指令对应的执行对象信息中除所提取的所述执行对象信息之外的其它执行对象信息对应的执行对象的执行频率值。Or extracting, in the execution object information corresponding to the voice instruction, a preset number of execution object information, where an execution frequency value of the execution object corresponding to the extracted execution object information is greater than an execution object information corresponding to the voice instruction An execution frequency value of the execution object corresponding to the execution object information other than the extracted execution object information.
可选地,所述指令处理装置还包括更新模块,所述更新模块设置成更新匹配的执行对象信息对应的执行对象的执行频率值。Optionally, the instruction processing apparatus further includes an update module configured to update an execution frequency value of the execution object corresponding to the matched execution object information.
本申请另外提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述方法。The application further provides a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
本申请提出的指令处理方法及装置,在接收到语音指令,并获取到所述 语音指令携带的待执行对象信息后,从满足预设条件的执行对象信息中查找与所述待执行对象信息匹配的执行对象信息,在查找到匹配的执行对象信息时,执行匹配的执行对象信息对应的执行对象,而无需如同相关技术一样遍历所有执行对象信息,从而本申请能够提高终端执行语音指令的效率。The instruction processing method and apparatus provided by the present application receive the voice instruction and obtain the After the to-be-executed object information carried by the voice instruction, the execution object information matching the to-be-executed object information is searched from the execution object information that satisfies the preset condition, and when the matching execution object information is found, the matched execution object information is executed. The corresponding execution object does not need to traverse all the execution object information as in the related art, so that the present application can improve the efficiency of the terminal executing the voice instruction.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本申请的指令处理方法的第一实施例的流程示意图;1 is a schematic flow chart of a first embodiment of an instruction processing method according to the present application;
图2为本申请的指令处理方法的第二实施例的一种流程示意图;2 is a schematic flow chart of a second embodiment of an instruction processing method according to the present application;
图3为本申请的指令处理方法的第二实施例的另一种流程示意图;3 is another schematic flowchart of a second embodiment of an instruction processing method according to the present application;
图4为本申请的指令处理方法的第二实施例的一种UI显示示意图;4 is a schematic diagram of a UI display according to a second embodiment of the instruction processing method of the present application;
图5为本申请的指令处理方法的第二实施例的另一种UI显示示意图;FIG. 5 is a schematic diagram of another UI display according to a second embodiment of the instruction processing method of the present application; FIG.
图6为本申请的指令处理方法的第二实施例的又一种UI显示示意图;6 is a schematic diagram of still another UI display of the second embodiment of the instruction processing method of the present application;
图7为本申请的指令处理方法的第三实施例的一种流程示意图;FIG. 7 is a schematic flowchart diagram of a third embodiment of an instruction processing method according to the present application; FIG.
图8为本申请的指令处理装置的第一实施例的功能模块示意图;8 is a schematic diagram of functional modules of a first embodiment of an instruction processing apparatus according to the present application;
图9为本申请的指令处理装置的第二实施例的功能模块示意图;9 is a schematic diagram of functional modules of a second embodiment of the instruction processing apparatus of the present application;
图10为本申请的指令处理装置的第三实施例的功能模块示意图。FIG. 10 is a schematic diagram of functional modules of a third embodiment of the instruction processing apparatus of the present application.
本发明的较佳实施方式Preferred embodiment of the invention
本申请提供一种指令处理方法,参照图1,在本申请的指令处理方法的第一实施例中,所述指令处理方法包括:The present application provides an instruction processing method. Referring to FIG. 1, in a first embodiment of the instruction processing method of the present application, the instruction processing method includes:
S10,在接收到语音指令时,获取所述语音指令携带的待执行对象信息;S10. Acquire, after receiving the voice instruction, the to-be-executed object information carried by the voice instruction.
S20,获取所述语音指令对应的执行对象信息中满足预设条件的执行对象信息;S20. Acquire execution object information that meets a preset condition in the execution object information corresponding to the voice instruction.
本实施例提供的指令处理方法可以应用于终端的语音控制中,例如,当用户说出语音指令时,终端能够快速响应用户说出的语音指令,以进行相应的操作。其中,所述终端可以是手机、笔记本电脑、数字广播接收器、PDA(个 人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置、数字TV以及台式计算机等智能终端。本领域技术人员可以理解的是,所述语音指令可由用户说出,也可由语音输出设备播放。The instruction processing method provided in this embodiment can be applied to the voice control of the terminal. For example, when the user speaks the voice command, the terminal can quickly respond to the voice command spoken by the user to perform the corresponding operation. Wherein, the terminal may be a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (a Smart terminals such as human digital assistants, PADs (tablets), PMPs (portable multimedia players), navigation devices, digital TVs, and desktop computers. It will be understood by those skilled in the art that the voice command can be spoken by the user or played by the voice output device.
具体地,本实施例将一条完整的语音指令拆分成两部分,第一部分是指令类型,例如,“打电话”、“播放音乐”、“打开应用”对应的指令类型分别为:打电话、播放、打开三类;第二部分是指令的待执行对象信息,对于打电话来说,其相关的待执行对象信息可以包括电话号码,联系人名称,电话号码类型等,对于播放音乐来说,其相关的待执行对象信息可以包括歌曲名,专辑名,歌手名等,对于打开应用来说,其相关的待执行对象信息可以包括终端已安装应用的应用名称。Specifically, in this embodiment, a complete voice instruction is split into two parts, and the first part is an instruction type. For example, the types of instructions corresponding to “calling”, “playing music”, and “opening the application” are: calling, Play and open three categories; the second part is the instruction object information to be executed. For the phone call, the related object information to be executed may include a phone number, a contact name, a phone number type, etc., for playing music, The related to-be-executed object information may include a song name, an album name, a singer name, and the like. For the open application, the related to-be-executed object information may include an application name of the installed application of the terminal.
本实施例中,在终端接收到语音指令时,调用终端的语音识别模块获取所述语音指令的指令类型,以及所述语音指令携带的待执行对象信息。例如,在终端接收到语音指令时,调用终端的语音识别模块获取到所述语音指令的指令类型为“打电话”,待执行对象信息为“母亲”,即用户预期的终端操作是“打电话给母亲”。In this embodiment, when the terminal receives the voice instruction, the voice recognition module of the calling terminal acquires the instruction type of the voice instruction and the to-be-executed object information carried by the voice instruction. For example, when the terminal receives the voice instruction, the voice recognition module of the calling terminal acquires the instruction type of the voice instruction as “calling”, and the object information to be executed is “mother”, that is, the terminal operation expected by the user is “calling”. To the mother."
获取所述语音指令对应的执行对象信息中满足预设条件的执行对象信息,其中,所述语音指令对应的执行对象信息即所述语音指令的指令类型相关的执行对象信息。The execution object information that satisfies the preset condition in the execution object information corresponding to the voice instruction is obtained, wherein the execution object information corresponding to the voice instruction is the execution object information related to the instruction type of the voice instruction.
S30,将所述待执行对象信息与所述满足预设条件的执行对象信息进行匹配;S30. Match the to-be-executed object information with the execution object information that meets the preset condition.
S40,在有所述满足预设条件的执行对象信息与所述待执行对象信息匹配时,执行匹配的执行对象信息对应的执行对象。S40. When the execution object information that satisfies the preset condition matches the object information to be executed, the execution object corresponding to the executed execution object information is executed.
在获取到所述待执行对象信息,以及所述满足预设条件的执行对象信息后,将所述待执行对象信息与所述满足预设条件的执行对象信息进行匹配;若有所述满足预设条件的执行对象信息与所述待执行对象信息相同,则匹配,若没有所述满足预设条件的执行对象信息与所述待执行对象信息相同,则不匹配;其中,所述满足预设条件的执行对象信息中与所述待执行对象信息相同的执行对象信息即匹配的执行对象信息。After acquiring the to-be-executed object information and the execution object information that meets the preset condition, matching the to-be-executed object information with the execution object information that satisfies the preset condition; If the execution object information of the condition is the same as the information to be executed, the matching is performed. If the execution object information that meets the preset condition is not the same as the information to be executed, the information is not matched. The execution object information that is the same as the to-be-executed object information in the execution object information of the condition is the matching execution object information.
例如,前述所获取的语音指令的指令类型为“打电话”,待执行对象信 息为“母亲”,将“母亲”与指令类型“打电话”相关的执行对象中满足预设条件的执行对象信息进行匹配,若所述满足预设条件的执行对象信息中存在“母亲”,则匹配。此时,执行匹配的执行对象信息(“母亲”)对应的执行对象,即打电话给“母亲”:调用终端拨号程序加载“母亲”的号码并拨打,以供用户基于终端与“母亲”通话。For example, the instruction type of the voice instruction obtained in the foregoing is “calling”, and the object to be executed is The information is "mother", and the "mother" is matched with the execution object information satisfying the preset condition among the execution objects related to the instruction type "calling", and if the "mother" exists in the execution object information satisfying the preset condition, Then match. At this time, execute the matching execution object information ("Mother") corresponding execution object, that is, call "Mother": call the terminal dialer to load the "Mother" number and dial, for the user to call with the "Mother" based on the terminal. .
本实施例提出的指令处理方法,在接收到语音指令,并获取到所述语音指令携带的待执行对象信息后,从满足预设条件的执行对象信息中查找与所述待执行对象信息匹配的执行对象信息,在查找到匹配的执行对象信息时,执行匹配的执行对象信息对应的执行对象,而无需如同相关技术一样去遍历所有执行对象信息,从而本发明实施例能够提高终端执行语音指令的效率。The instruction processing method of the present embodiment, after receiving the voice instruction and acquiring the to-be-executed object information carried by the voice instruction, searching for the object to be executed from the execution object information that satisfies the preset condition. Executing the object information, when the matching execution object information is found, executing the execution object corresponding to the matching execution object information, without traversing all the execution object information as in the related art, so that the embodiment of the present invention can improve the terminal to execute the voice instruction. effectiveness.
可选地,本实施例设置有指令索引表,所述指令索引表存储有所述满足预设条件的执行对象信息。具体地,在终端每次接收并执行语音指令时,获取所述语音指令的指令类型,以及携带的待执行对象信息;并动态计算所述待执行对象信息匹配的执行对象信息所对应的执行对象的执行频率值;按照执行对象信息与指令类型的关联关系,将执行频率值大于或等于预设阈值的执行对象对应的执行对象信息添加至所述指令索引表中;或者,按照执行对象信息与指令类型的关联关系,提取预设数量的执行对象信息添加至所述指令索引表中,其中所提取的所述执行对象信息对应的执行对象的执行频率值,大于除所提取的所述执行对象信息之外的其它执行对象信息对应的执行对象的执行频率值。需要说明的是,所述指令索引表中的执行对象信息的优先级取决于其对应的执行对象的执行频率值,执行对象的执行频率值越高,其对应的执行对象信息的优先级越高。例如,所述指令索引表的打电话部分如表1所示:Optionally, the embodiment is provided with an instruction index table, where the instruction index table stores the execution object information that satisfies the preset condition. Specifically, each time the terminal receives and executes the voice instruction, the instruction type of the voice instruction is acquired, and the to-be-executed object information is carried; and the execution object corresponding to the execution object information that the object information to be executed matches is dynamically calculated. The execution frequency value corresponding to the execution object whose execution frequency value is greater than or equal to the preset threshold value is added to the instruction index table according to the association relationship between the execution object information and the instruction type; or, according to the execution object information and An association relationship of the instruction type, wherein a preset number of execution object information is added to the instruction index table, wherein an execution frequency value of the execution object corresponding to the extracted execution object information is greater than the extracted execution object The execution frequency value of the execution object corresponding to the execution object information other than the information. It should be noted that the priority of the execution object information in the instruction index table depends on the execution frequency value of the corresponding execution object, and the higher the execution frequency value of the execution object, the higher the priority of the corresponding execution object information. . For example, the calling part of the instruction index table is as shown in Table 1:
Figure PCTCN2016078987-appb-000001
Figure PCTCN2016078987-appb-000001
Figure PCTCN2016078987-appb-000002
Figure PCTCN2016078987-appb-000002
表1Table 1
表1中,“妻子”、“父亲”、“母亲”的优先级顺序从上至下依次减小。In Table 1, the priority order of "wife", "father", and "mother" decreases from top to bottom.
可选地,其中,所述将所述待执行对象信息与所述满足预设条件的执行对象信息进行匹配的步骤,包括:Optionally, the step of matching the to-be-executed object information with the execution object information that meets the preset condition includes:
按照所述指令索引表中执行对象信息的优先级从高到低的顺序,依次将所述待执行对象信息与所述指令索引表中与所述语音指令的指令类型相关的执行对象信息进行匹配。Matching the to-be-executed object information with the execution object information related to the instruction type of the voice instruction in the order of priority of the execution object information in the instruction index table from high to low. .
可选地,基于上述技术方案,所述获取所述语音指令对应的执行对象信息中满足预设条件的执行对象信息的步骤包括:Optionally, the step of acquiring the execution object information that meets the preset condition in the execution object information corresponding to the voice instruction, according to the foregoing technical solution, includes:
获取所述语音指令对应的执行对象信息中执行频率值大于或等于预设阈值的执行对象对应的执行对象信息(即所述预设条件包括:执行对象信息对应的执行对象的执行频率值大于或等于预设阈值,其中,本实施例不限定所述预设阈值的取值,具体根据实际需要设置);Acquiring the execution object information corresponding to the execution object whose execution frequency information is greater than or equal to the preset threshold value in the execution object information corresponding to the voice instruction (that is, the preset condition includes: the execution frequency value of the execution object corresponding to the execution object information is greater than or The value is equal to the preset threshold, where the value of the preset threshold is not limited in this embodiment, and is specifically set according to actual needs);
或者,在所述语音指令对应的执行对象信息中提取预设数量(本实施例不限定所述预设数量的取值,具体根据实际需要设置)的执行对象信息,其中所提取的所述执行对象信息对应的执行对象的执行频率值,大于所述语音 指令对应的执行对象信息中除所提取的所述执行对象信息之外的其它执行对象信息对应的执行对象的执行频率值。Or the execution object information of the preset number (the embodiment does not limit the preset number of values, specifically according to actual needs) is extracted in the execution object information corresponding to the voice instruction, where the extracted execution is performed. The execution frequency value of the execution object corresponding to the object information is greater than the voice An execution frequency value of an execution object corresponding to execution object information other than the extracted execution target information in the execution target information corresponding to the instruction.
可选地,基于本申请的指令处理方法的第一实施例,提出本申请的指令处理方法的第二实施例,参照图2,在本实施例中,所述将所述待执行对象信息与所述满足预设条件的执行对象信息进行匹配的步骤之后,所述指令处理方法,还包括:Optionally, based on the first embodiment of the instruction processing method of the present application, a second embodiment of the instruction processing method of the present application is proposed. Referring to FIG. 2, in the embodiment, the information about the object to be executed is After the step of matching the execution object information that meets the preset condition, the instruction processing method further includes:
S34,在所述满足预设条件的执行对象信息与所述待执行对象信息均不匹配时,将所述待执行对象信息与所述语音指令对应的执行对象信息中不满足预设条件的执行对象信息进行匹配;和/或S34, when the execution object information that satisfies the preset condition does not match the to-be-executed object information, the execution object information corresponding to the to-be-executed object information and the execution of the voice instruction does not satisfy the execution of the preset condition. Object information is matched; and/or
在有所述不满足预设条件的执行对象信息与所述待执行对象信息匹配时,执行匹配的执行对象信息对应的执行对象。When the execution object information that does not satisfy the preset condition matches the to-be-executed object information, the execution object corresponding to the executed execution object information is executed.
容易理解的是,由于所述指令索引表中存储的执行对象信息对应的执行对象是执行频率值较高的执行对象,若语音指令携带的待执行对象信息匹配的执行对象信息对应的执行对象是未执行过、或者是执行频率值较低的执行对象时,所述指令索引表将不存在相应的执行对象信息,即所述满足预设条件的执行对象信息与所述待执行对象信息均不匹配;此时将所述待执行对象信息与所述语音指令对应的执行对象信息中不满足预设条件的执行对象信息(所述指令索引表之外的执行对象信息,且所述执行对象信息相关的指令类型与所述待执行对象信息相关的指令类型相同)进行匹配;在有所述不满足预设条件的执行对象信息与所述待执行对象信息匹配时,执行匹配的执行对象信息对应的执行对象。It is easy to understand that, since the execution object corresponding to the execution object information stored in the instruction index table is an execution object having a higher execution frequency value, if the execution object information corresponding to the execution object information that is to be executed by the voice instruction is When the execution object is not executed or is executed, the instruction index table does not have corresponding execution object information, that is, the execution object information that satisfies the preset condition and the object information to be executed are not Matching; the execution object information that does not satisfy the preset condition in the execution object information corresponding to the to-be-executed object information and the voice instruction (the execution object information other than the instruction index table, and the execution object information) Performing matching when the related instruction type is the same as the instruction type related to the to-be-executed object information; and performing matching object information when the execution object information that does not satisfy the preset condition matches the to-be-executed object information Execution object.
例如,用户的语音指令为“打电话给同事A”,其中,指令类型为“打电话”,待执行对象信息为“同事A”,如表1所示的指令索引表,不存在执行对象信息“同事A”,此时遍历名片夹信息(除表1所示的妻子、父亲、母亲之外),查找到匹配的执行对象信息“同事A”,调用拨号程序加载“同事A”的号码并拨打,以供用户基于终端与“同事A”进行通话,For example, the voice command of the user is “call to colleague A”, wherein the instruction type is “calling”, the object information to be executed is “colleague A”, and the instruction index table shown in Table 1 does not exist. "Colleague A", at this time traverse the business card folder information (except the wife, father, mother shown in Table 1), find the matching execution object information "colleague A", call the dialer to load the number of "colleague A" and Dial, for the user to talk to "Colleague A" based on the terminal.
可选地,参照图3,在本实施例中,所述在所述满足预设条件的执行对象信息与所述待执行对象信息均不匹配时,将所述待执行对象信息与所述语 音指令对应的执行对象信息中不满足预设条件的执行对象信息进行匹配的步骤之后,所述指令处理方法还包括:Optionally, referring to FIG. 3, in the embodiment, when the execution object information that satisfies the preset condition does not match the to-be-executed object information, the to-be-executed object information and the language are After the step of matching the execution object information that does not satisfy the preset condition in the execution object information corresponding to the sound instruction, the instruction processing method further includes:
S38,在所述不满足预设条件的执行对象信息与所述待执行对象信息均不匹配时,显示所述满足预设条件的执行对象信息。S38: When the execution object information that does not satisfy the preset condition does not match the to-be-executed object information, the execution object information that satisfies the preset condition is displayed.
需要说明的是,在实际使用过程中,有多种原因导致终端不存在匹配的执行对象信息(所述满足预设条件的执行对象信息与所述待执行对象信息均不匹配,且所述不满足预设条件的执行对象信息与所述待执行对象信息均不匹配),例如,用户拨打电话时,只说出“打电话”指令类型,未说出执行对象信息(打电话给谁),或者终端的语音识别模块未正确的识别用户的语音指令携带的待执行对象信息。本实施例中,在所述不满足预设条件的执行对象信息与所述待执行对象信息均不匹配时,显示所述满足预设条件的执行对象信息,同时,显示所述满足预设条件的执行对象信息相关的指令类型。It should be noted that, in actual use, there are multiple reasons for the terminal to have no matching execution object information (the execution object information satisfying the preset condition does not match the to-be-executed object information, and the The execution object information that satisfies the preset condition does not match the to-be-executed object information. For example, when the user makes a call, only the type of the "call" instruction is spoken, and the execution object information is not spoken (who is called). Or the voice recognition module of the terminal does not correctly identify the to-be-executed object information carried by the voice instruction of the user. In this embodiment, when the execution object information that does not satisfy the preset condition does not match the to-be-executed object information, the execution object information that satisfies the preset condition is displayed, and at the same time, the display meets the preset condition. The type of instruction associated with the execution object information.
例如,用户拨打电话时,只说出“打电话”指令类型,未说出执行对象信息(打电话给谁),可选地,本实施例将所述满足预设条件的执行对象信息以及所述满足预设条件的执行对象信息相关的指令类型,以UI(User Interface,用户界面)的方式显示出来,具体UI显示方式可参照图4所示;同时,调用终端语音输出模块输出“你希望打电话给如下号码吗”;容易理解的是,用户如果查看到有目标执行对象信息时,可以以触屏方式选择执行,也可以语音方式选择执行。For example, when the user makes a call, only the "call" command type is spoken, and the execution object information (to whom is called) is not spoken. Optionally, the embodiment performs the execution object information and the The instruction type related to the execution object information that satisfies the preset condition is displayed in the form of a UI (User Interface). The specific UI display mode can be referred to FIG. 4; at the same time, the terminal voice output module is called to output "Your hope. Can you call the following number? It is easy to understand that if the user sees the target execution object information, he or she can select the execution by touch screen or by voice.
本实施例通过在终端不存在匹配的执行对象信息时,以UI的方式显示所述满足预设条件的执行对象信息以及所述满足预设条件的执行对象信息相关的指令类型,供用户选择,能够提升用户体验,以及能够最大程度的规避终端语音识别失败的情况。In this embodiment, when there is no matching execution object information in the terminal, the execution object information satisfying the preset condition and the instruction type related to the execution object information satisfying the preset condition are displayed in a UI manner for the user to select, It can enhance the user experience and minimize the failure of terminal speech recognition.
可选地,在本实施例中,所述在接收到语音指令时,获取所述语音指令携带的待执行对象信息的步骤之后,所述指令处理方法还包括:Optionally, in this embodiment, after the step of acquiring the to-be-executed object information carried by the voice instruction, when the voice instruction is received, the instruction processing method further includes:
在未获取到所述语音指令携带的待执行对象信息时,显示所述满足预设条件的执行对象信息。显示所述满足预设条件的执行对象信息可参照前述技术方案施行,此处不再赘述。When the to-be-executed object information carried by the voice instruction is not acquired, the execution object information that satisfies the preset condition is displayed. The execution object information that meets the preset condition can be implemented by referring to the foregoing technical solution, and details are not described herein again.
此外,在实际使用过程中,用户的语音指令可能包括多个执行对象信息, 以下以播放音乐为例进行详细说明:In addition, during actual use, the user's voice instruction may include multiple execution object information. The following is a detailed description of playing music:
终端运行音乐播放程序,当用户只说出“播放”指令类型时,若终端当前默认已选中某歌曲,则播放当前选中的歌曲;若终端当前未选中歌曲,则按照前述实施例,以UI的方式显示“播放”指令类型,以及“播放”指令类型相关的执行对象信息,如图5所示。The terminal runs the music playing program. When the user only speaks the "play" command type, if the terminal currently selects a certain song by default, the currently selected song is played; if the terminal does not currently select the song, according to the foregoing embodiment, the UI The mode displays the "play" instruction type and the execution object information related to the "play" instruction type, as shown in FIG.
当用户说出“播放某某的歌”、“播放某某歌”或“播放某某的某首歌”时,解析终端接收到的语音指令,若只获取到一个执行对象信息,说明用户说的是某个歌手名或者是某个歌曲名,也可能是专辑名;若获取到两个执行对象信息,第一执行对象信息和第二执行对象信息,说明用户说的是某个歌手唱的某首歌。When the user says "playing a certain song", "playing a certain song" or "playing a certain song", the voice command received by the terminal is parsed, and if only one execution object information is obtained, the user says Is the name of a certain artist or a song name, or may be the album name; if two execution object information is obtained, the first execution object information and the second execution object information indicate that the user is talking about a certain singer singing a song.
针对获取到两个执行对象信息的情况,首先从所述指令索引表中查找是否有匹配的执行对象信息(第一执行对象信息和第二执行对象信息同时匹配,即存在歌手“某某”的某首歌),如果有匹配的执行对象信息,则直接播放,如果没有匹配的执行对象信息,则遍历终端的音乐库,若仍未查找到则重新在所述指令索引表中查找是否有匹配第一执行对象信息的执行对象信息(是否存在歌手“某某”的任意歌曲),如果有,则以UI方式将歌手“某某”的所有歌曲显示出来,如图6所示;同时语音提示:“该歌手还有其他歌曲,是否播放?”,提供用户一次额外选择机会。For the case where two pieces of execution object information are acquired, first, it is searched from the instruction index table whether there is matching execution object information (the first execution object information and the second execution object information are simultaneously matched, that is, the singer "some" exists. a song), if there is matching execution object information, directly play, if there is no matching execution object information, traverse the terminal's music library, if it is still not found, then re-find in the instruction index table whether there is a match The execution target information of the first execution object information (whether or not there is any song of the singer "something"), if any, displays all the songs of the singer "some" in a UI manner, as shown in FIG. 6; : "The singer has other songs, does it play?", providing users with an extra chance of choice.
针对获取到一个执行对象信息的情况,从所述指令索引表中查找是否有匹配的执行对象信息,如果查找到是歌手名和获取的执行对象信息匹配,播放所述指令索引表中该歌手优先级最高的歌曲,同时查找出指令索引表中该歌手的其它歌曲并以UI方式显示,供用户选择;如果查找到是专辑名和获取的执行对象信息匹配,播放所述指令索引表中该专辑中优先级最高的歌曲,同时查找出指令索引表中该专辑中的其他歌曲并以UI方式显示,供用户选择;如果查找到匹配的执行对象信息就是歌曲名,则播放歌曲。For the case of obtaining an execution object information, it is searched from the instruction index table for matching execution object information, and if it is found that the artist name and the acquired execution object information match, the singer priority level in the instruction index table is played. The highest song, at the same time, find the other songs of the singer in the instruction index table and display them in the UI mode for the user to select; if it is found that the album name and the acquired execution object information match, the album in the instruction index table is played first. The highest-ranking song, at the same time, finds other songs in the album in the index table and displays them in UI mode for the user to select; if the matching execution object information is the song name, the song is played.
可选地,参照图7,基于本申请的指令处理方法的第一或第二实施例,提出本申请的指令处理方法的第三实施例,在本实施例中,所述执行匹配的执行对象信息对应的执行对象的步骤之后,所述指令处理方法还包括: Optionally, referring to FIG. 7, according to the first or second embodiment of the instruction processing method of the present application, a third embodiment of the instruction processing method of the present application is proposed. In this embodiment, the execution object of the execution matching is performed. After the step of executing the object corresponding to the information, the instruction processing method further includes:
S44,更新匹配的执行对象信息对应的执行对象的执行频率值。S44. Update the execution frequency value of the execution object corresponding to the matched execution object information.
本实施例中,记录终端成功执行的每一语音指令,包括语音指令的指令类型,以及与所述语音指令携带的待执行对象信息匹配的执行对象信息,以更新所述匹配的执行对象信息对应的执行对象的执行频率值。In this embodiment, each voice instruction successfully recorded by the terminal includes an instruction type of the voice instruction, and execution object information that matches the to-be-executed object information carried by the voice instruction, to update the matched execution object information. The execution frequency value of the execution object.
由于所述指令索引表存储有所述满足预设条件的执行对象信息,在更新匹配的执行对象信息对应的执行对象的执行频率值之后,动态更新所述指令索引表,即根据执行对象执行频率值的变化,调整所述指令索引表中相应执行对象信息的优先级顺序。此外,本领域技术人员可以理解的是,若匹配的执行对象信息之前不存在于所述指令索引表中,且所述匹配的执行对象信息对应的执行对象的执行频率值更新之后,使得所述匹配的执行对象信息满足所述预设条件,将所述匹配的执行对象信息添加至所述指令索引表中。本实施例通过实时更新所述指令索引表,能够进一步提升终端执行语音指令的效率。Since the instruction index table stores the execution object information that satisfies the preset condition, after updating the execution frequency value of the execution object corresponding to the matching execution object information, the instruction index table is dynamically updated, that is, according to the execution target execution frequency. The change of the value adjusts the priority order of the corresponding execution object information in the instruction index table. In addition, it can be understood by those skilled in the art that if the matching execution object information does not exist in the instruction index table before, and the matching execution object information corresponds to the execution frequency value of the execution object, the The matched execution object information satisfies the preset condition, and the matched execution object information is added to the instruction index table. In this embodiment, by updating the instruction index table in real time, the efficiency of the terminal executing the voice instruction can be further improved.
本发明实施例另外提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述方法。Embodiments of the present invention further provide a computer readable storage medium storing computer executable instructions that are implemented when the computer executable instructions are executed.
本申请还提供一种指令处理装置,参照图8,在本申请指令处理装置的第一实施例中,所述指令处理装置包括:The present application further provides an instruction processing apparatus. Referring to FIG. 8, in the first embodiment of the instruction processing apparatus of the present application, the instruction processing apparatus includes:
第一获取模块10,设置成在接收到语音指令时,获取所述语音指令携带的待执行对象信息;The first obtaining module 10 is configured to acquire, to be executed, the to-be-executed object information carried by the voice instruction when the voice instruction is received;
第二获取模块20,设置成获取所述语音指令对应的执行对象信息中满足预设条件的执行对象信息;The second obtaining module 20 is configured to acquire execution object information that meets a preset condition in the execution object information corresponding to the voice instruction;
本实施例提供的指令处理装置可以应用于终端的语音控制中,例如,指令处理装置内置于终端运行,当用户说出语音指令时,终端能够快速响应用户说出的语音指令,以进行相应的操作。其中,所述终端可以是手机、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置、数字TV以及台式计算机等智能终端。本领域技术人员可以理解的是,所述语音指令可由用户说出,也可由语音输出设 备播放。The command processing device provided in this embodiment can be applied to the voice control of the terminal. For example, the command processing device is built in the terminal, and when the user speaks the voice command, the terminal can quickly respond to the voice command spoken by the user to perform corresponding operating. The terminal may be a smart terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet PC), a PMP (Portable Multimedia Player), a navigation device, a digital TV, and a desktop computer. Those skilled in the art can understand that the voice command can be spoken by the user or can be set by voice output. Ready to play.
具体地,本实施例将一条完整的语音指令拆分成两部分,第一部分是指令类型,例如,“打电话”、“播放音乐”、“打开应用”对应的指令类型分别为:打电话、播放、打开三类;第二部分是指令的待执行对象信息,对于打电话来说,其相关的待执行对象信息可以包括电话号码,联系人名称,电话号码类型等,对于播放音乐来说,其相关的待执行对象信息可以包括歌曲名,专辑名,歌手名等,对于打开应用来说,其相关的待执行对象信息可以包括终端已安装应用的应用名称。Specifically, in this embodiment, a complete voice instruction is split into two parts, and the first part is an instruction type. For example, the types of instructions corresponding to “calling”, “playing music”, and “opening the application” are: calling, Play and open three categories; the second part is the instruction object information to be executed. For the phone call, the related object information to be executed may include a phone number, a contact name, a phone number type, etc., for playing music, The related to-be-executed object information may include a song name, an album name, a singer name, and the like. For the open application, the related to-be-executed object information may include an application name of the installed application of the terminal.
本实施例中,在终端接收到语音指令时,第一获取模块10调用终端的语音识别模块获取所述语音指令的指令类型,以及所述语音指令携带的待执行对象信息。例如,在终端接收到语音指令时,第一获取模块10调用终端的语音识别模块获取到所述语音指令的指令类型为“打电话”,待执行对象信息为“母亲”,即用户预期的终端操作是“打电话给母亲”。In this embodiment, when the terminal receives the voice instruction, the first acquiring module 10 invokes the voice recognition module of the terminal to acquire the instruction type of the voice instruction and the to-be-executed object information carried by the voice instruction. For example, when the terminal receives the voice instruction, the first acquisition module 10 invokes the voice recognition module of the terminal to acquire the instruction type of the voice instruction as “calling”, and the object information to be executed is “mother”, that is, the terminal expected by the user. The operation is "calling the mother."
第二获取模块20获取所述语音指令对应的执行对象信息中满足预设条件的执行对象信息,其中,所述语音指令对应的执行对象信息即所述语音指令的指令类型相关的执行对象信息。The second obtaining module 20 acquires execution object information that satisfies a preset condition in the execution object information corresponding to the voice instruction, wherein the execution object information corresponding to the voice instruction is execution object information related to the instruction type of the voice instruction.
匹配模块30,设置成将所述待执行对象信息与所述满足预设条件的执行对象信息进行匹配;The matching module 30 is configured to match the to-be-executed object information with the execution object information that meets the preset condition;
执行模块40,设置成在有所述满足预设条件的执行对象信息与所述待执行对象信息匹配时,执行匹配的执行对象信息对应的执行对象。The execution module 40 is configured to execute an execution object corresponding to the matched execution object information when the execution object information that satisfies the preset condition matches the to-be-executed object information.
在获取到所述待执行对象信息,以及所述满足预设条件的执行对象信息后,匹配模块30将所述待执行对象信息与所述满足预设条件的执行对象信息进行匹配;若有所述满足预设条件的执行对象信息与所述待执行对象信息相同,则匹配,若没有所述满足预设条件的执行对象信息与所述待执行对象信息相同,则不匹配;其中,所述满足预设条件的执行对象信息中与所述待执行对象信息相同的执行对象信息即匹配的执行对象信息。After acquiring the to-be-executed object information and the execution object information that meets the preset condition, the matching module 30 matches the to-be-executed object information with the execution object information that satisfies the preset condition; If the execution object information that satisfies the preset condition is the same as the to-be-executed object information, the matching is performed. If the execution object information that satisfies the preset condition is not the same as the to-be-executed object information, the matching is not performed; The execution object information that is the same as the object to be executed in the execution object information that satisfies the preset condition, that is, the matching execution object information.
例如,前述第一获取模块10所获取的语音指令的指令类型为“打电话”,待执行对象信息为“母亲”,匹配模块30将“母亲”与指令类型“打电话”相关的执行对象中满足预设条件的执行对象信息进行匹配,若所述满足预设 条件的执行对象信息中存在“母亲”,则匹配。此时,执行模块40执行匹配的执行对象信息(“母亲”)对应的执行对象,即打电话给“母亲”:执行模块40调用终端拨号程序加载“母亲”的号码并拨打,以供用户基于终端与“母亲”通话。For example, the instruction type of the voice instruction acquired by the foregoing first acquisition module 10 is “calling”, the object information to be executed is “mother”, and the matching module 30 associates the “mother” with the execution object related to the instruction type “calling”. Matching the execution object information that satisfies the preset condition, if the preset is satisfied If there is a "mother" in the execution object information of the condition, it matches. At this time, the execution module 40 executes the matching execution object information ("mother") corresponding execution object, that is, calls the "mother": the execution module 40 calls the terminal dialer to load the "mother" number and dials for the user to The terminal talks to the "mother".
本实施例提出的指令处理装置,在接收到语音指令,并获取到所述语音指令携带的待执行对象信息后,从满足预设条件的执行对象信息中查找与所述待执行对象信息匹配的执行对象信息,在查找到匹配的执行对象信息时,执行匹配的执行对象信息对应的执行对象,而无需如同相关技术一样去遍历所有执行对象信息,从而本发明实施例能够提高终端执行语音指令的效率。After receiving the voice instruction and acquiring the to-be-executed object information carried by the voice instruction, the instruction processing apparatus of the embodiment searches for the object to be executed from the execution object information that satisfies the preset condition. Executing the object information, when the matching execution object information is found, executing the execution object corresponding to the matching execution object information, without traversing all the execution object information as in the related art, so that the embodiment of the present invention can improve the terminal to execute the voice instruction. effectiveness.
可选地,本实施例设置有指令索引表,所述指令索引表存储有所述满足预设条件的执行对象信息。具体地,指令处理装置还包括表创建模块,设置成在终端每次接收并执行语音指令时,获取所述语音指令的指令类型,以及携带的待执行对象信息;并动态计算所述待执行对象信息匹配的执行对象信息所对应的执行对象的执行频率值;按照执行对象信息与指令类型的关联关系,创建所述指令索引表,以将执行频率值大于或等于预设阈值的执行对象对应的执行对象信息添加至所述指令索引表中;或者,按照执行对象信息与指令类型的关联关系,创建所述指令索引表,以提取预设数量的执行对象信息添加至所述指令索引表中,其中所提取的所述执行对象信息对应的执行对象的执行频率值,大于除所提取的所述执行对象信息之外的其它执行对象信息对应的执行对象的执行频率值。需要说明的是,所述指令索引表中的执行对象信息的优先级取决于其对应的执行对象的执行频率值,执行对象的执行频率值越高,其对应的执行对象信息的优先级越高。例如,所述指令索引表的打电话部分如表1所示。Optionally, the embodiment is provided with an instruction index table, where the instruction index table stores the execution object information that satisfies the preset condition. Specifically, the instruction processing apparatus further includes a table creation module, configured to acquire an instruction type of the voice instruction and the carried object information to be executed each time the terminal receives and executes the voice instruction; and dynamically calculate the object to be executed The execution frequency value of the execution object corresponding to the information of the execution object information; the instruction index table is created according to the association relationship between the execution object information and the instruction type, so as to execute the execution object corresponding to the execution target whose frequency value is greater than or equal to the preset threshold The execution object information is added to the instruction index table; or, according to the association relationship between the execution object information and the instruction type, the instruction index table is created to extract a preset number of execution object information and added to the instruction index table, The execution frequency value of the execution object corresponding to the extracted execution object information is greater than the execution frequency value of the execution object corresponding to the execution object information other than the extracted execution object information. It should be noted that the priority of the execution object information in the instruction index table depends on the execution frequency value of the corresponding execution object, and the higher the execution frequency value of the execution object, the higher the priority of the corresponding execution object information. . For example, the calling portion of the instruction index table is as shown in Table 1.
可选地,其中,所述匹配模块30设置成按照所述指令索引表中执行对象信息的优先级从高到低的顺序,依次将所述待执行对象信息与所述指令索引表中与所述语音指令的指令类型相关的执行对象信息进行匹配。Optionally, the matching module 30 is configured to sequentially perform the to-be-executed object information and the instruction index table in an order of priority of execution object information in the instruction index table from high to low. The execution object information related to the instruction type of the voice instruction is matched.
可选地,基于上述技术方案,其中,所述第二获取模块20是设置成:Optionally, based on the foregoing technical solution, where the second obtaining module 20 is configured to:
获取所述语音指令对应的执行对象信息中执行频率值大于或等于预设阈值的执行对象对应的执行对象信息(即所述预设条件包括:执行对象信息对 应的执行对象的执行频率值大于或等于预设阈值,其中,本实施例不限定所述预设阈值的取值,具体根据实际需要设置);Acquiring the execution object information corresponding to the execution object whose execution frequency information is greater than or equal to the preset threshold value in the execution object information corresponding to the voice instruction (that is, the preset condition includes: performing object information pair The value of the execution frequency of the object to be executed is greater than or equal to the preset threshold, wherein the value of the preset threshold is not limited in this embodiment, and is specifically set according to actual needs);
或者,在所述语音指令对应的执行对象信息中提取预设数量(本实施例不限定所述预设数量的取值,具体根据实际需要设置)的执行对象信息,其中所提取的所述执行对象信息对应的执行对象的执行频率值,大于所述语音指令对应的执行对象信息中除所提取的所述执行对象信息之外的其它执行对象信息对应的执行对象的执行频率值。Or the execution object information of the preset number (the embodiment does not limit the preset number of values, specifically according to actual needs) is extracted in the execution object information corresponding to the voice instruction, where the extracted execution is performed. The execution frequency value of the execution object corresponding to the object information is greater than the execution frequency value of the execution object corresponding to the execution object information other than the extracted execution object information in the execution target information corresponding to the voice instruction.
可选地,基于本申请的指令处理装置的第一实施例,提出本申请的指令处理装置的第二实施例,参照图9,在本实施例中,所述匹配模块30还设置成在所述满足预设条件的执行对象信息与所述待执行对象信息均不匹配时,将所述待执行对象信息与所述语音指令对应的执行对象信息中不满足预设条件的执行对象信息进行匹配;和/或Optionally, based on the first embodiment of the instruction processing apparatus of the present application, a second embodiment of the instruction processing apparatus of the present application is proposed. Referring to FIG. 9, in the embodiment, the matching module 30 is further configured to be in the When the execution object information that satisfies the preset condition does not match the to-be-executed object information, the object to be executed is matched with the execution object information that does not satisfy the preset condition in the execution object information corresponding to the voice instruction. ;and / or
所述执行模块40还设置成在有所述不满足预设条件的执行对象信息与所述待执行对象信息匹配时,执行匹配的执行对象信息对应的执行对象。The execution module 40 is further configured to execute an execution object corresponding to the executed execution object information when the execution object information that does not satisfy the preset condition matches the to-be-executed object information.
容易理解的是,由于所述指令索引表中存储的执行对象信息对应的执行对象是执行频率值较高的执行对象,若语音指令携带的待执行对象信息匹配的执行对象信息对应的执行对象是未执行过,或者是执行频率值较低的执行对象时,所述指令索引表将不存在相应的执行对象信息,即所述满足预设条件的执行对象信息与所述待执行对象信息均不匹配;此时匹配模块30将所述待执行对象信息与所述语音指令对应的执行对象信息中不满足预设条件的执行对象信息(所述指令索引表之外的执行对象信息,且所述执行对象信息相关的指令类型与所述待执行对象信息相关的指令类型相同)进行匹配;在有所述不满足预设条件的执行对象信息与所述待执行对象信息匹配时,执行模块40执行匹配的执行对象信息对应的执行对象。It is easy to understand that, since the execution object corresponding to the execution object information stored in the instruction index table is an execution object having a higher execution frequency value, if the execution object information corresponding to the execution object information that is to be executed by the voice instruction is When the execution object is not executed, or the execution object having a lower frequency value is executed, the instruction index table does not have corresponding execution object information, that is, the execution object information that satisfies the preset condition and the object information to be executed are not Matching; at this time, the matching module 30 executes the execution object information that does not satisfy the preset condition in the execution object information corresponding to the to-be-executed object information and the voice instruction (the execution object information other than the instruction index table, and the Performing matching when the type of the instruction related to the execution of the object information is the same as the type of the instruction related to the object to be executed; and executing the module 40 when the execution object information that does not satisfy the preset condition matches the information of the object to be executed The execution object corresponding to the matching execution object information.
例如,用户的语音指令为“打电话给同事A”,其中,指令类型为“打电话”,待执行对象信息为“同事A”,如表1所示的指令索引表,不存在执行对象信息“同事A”,此时匹配模块30遍历名片夹信息(除表1所示的妻子、父亲、母亲之外),查找到匹配的执行对象信息“同事A”,执行模 块40调用拨号程序加载“同事A”的号码并拨打,以供用户基于终端与“同事A”进行通话,For example, the voice command of the user is “call to colleague A”, wherein the instruction type is “calling”, the object information to be executed is “colleague A”, and the instruction index table shown in Table 1 does not exist. "Colleague A", at this time, the matching module 30 traverses the business card holder information (except the wife, father, and mother shown in Table 1), and finds the matching execution object information "colleague A", and executes the model. Block 40 calls the dialer to load the number of "Colleague A" and dials for the user to talk to "Colleague A" based on the terminal.
可选地,参照图9,在本实施例中,所述指令处理装置,还包括提示模块38,所述提示模块38设置成在所述不满足预设条件的执行对象信息与所述待执行对象信息均不匹配时,显示所述满足预设条件的执行对象信息。Optionally, referring to FIG. 9, in the embodiment, the instruction processing apparatus further includes a prompting module 38, and the prompting module 38 is configured to execute the execution object information that is not satisfying the preset condition and the to-be-executed When the object information does not match, the execution object information that satisfies the preset condition is displayed.
需要说明的是,在实际使用过程中,有多种原因导致终端不存在匹配的执行对象信息(所述满足预设条件的执行对象信息与所述待执行对象信息均不匹配,且所述不满足预设条件的执行对象信息与所述待执行对象信息均不匹配),例如,用户拨打电话时,只说出“打电话”指令类型,未说出执行对象信息(打电话给谁),或者终端的语音识别模块未正确的识别用户的语音指令携带的待执行对象信息。本实施例中,提示模块38在所述不满足预设条件的执行对象信息与所述待执行对象信息均不匹配时,显示所述满足预设条件的执行对象信息,同时,显示所述满足预设条件的执行对象信息相关的指令类型。It should be noted that, in actual use, there are multiple reasons for the terminal to have no matching execution object information (the execution object information satisfying the preset condition does not match the to-be-executed object information, and the The execution object information that satisfies the preset condition does not match the to-be-executed object information. For example, when the user makes a call, only the type of the "call" instruction is spoken, and the execution object information is not spoken (who is called). Or the voice recognition module of the terminal does not correctly identify the to-be-executed object information carried by the voice instruction of the user. In this embodiment, when the execution object information that does not satisfy the preset condition does not match the to-be-executed object information, the prompting module 38 displays the execution object information that satisfies the preset condition, and simultaneously displays the satisfaction. The type of instruction related to the execution object information of the preset condition.
例如,用户拨打电话时,只说出“打电话”指令类型,未说出执行对象信息(打电话给谁),可选地,提示模块38调用终端的显示模块将所述满足预设条件的执行对象信息以及所述满足预设条件的执行对象信息相关的指令类型,以UI的方式显示出来,具体UI显示方式可参照图4所示;同时,调用终端语音输出模块输出“你希望打电话给如下号码吗”;容易理解的是,用户如果查看到有目标执行对象信息时,可以以触屏方式选择执行,也可以语音方式选择执行。For example, when the user makes a call, only the "call" command type is spoken, and the execution object information (who is called) is not spoken. Optionally, the prompt module 38 calls the display module of the terminal to satisfy the preset condition. The execution object information and the instruction type related to the execution object information satisfying the preset condition are displayed in a UI manner, and the specific UI display manner can be referred to FIG. 4; meanwhile, the terminal voice output module is called to output “You want to make a call. Is it possible to understand the following number? It is easy to understand that if the user sees the target execution object information, the user can select the execution by touch screen mode, or can select the execution by voice mode.
本实施例通过在终端不存在匹配的执行对象信息时,以UI的方式显示所述满足预设条件的执行对象信息以及所述满足预设条件的执行对象信息相关的指令类型,供用户选择,能够提升用户体验,以及能够最大程度的规避终端语音识别失败的情况。In this embodiment, when there is no matching execution object information in the terminal, the execution object information satisfying the preset condition and the instruction type related to the execution object information satisfying the preset condition are displayed in a UI manner for the user to select, It can enhance the user experience and minimize the failure of terminal speech recognition.
可选地,在本实施例中,所述提示模块38还设置成在第一获取模块10未获取到所述语音指令携带的待执行对象信息时,显示所述满足预设条件的执行对象信息。显示所述满足预设条件的执行对象信息可参照前述技术方案施行,此处不再赘述。 Optionally, in the embodiment, the prompting module 38 is further configured to display the execution object information that meets the preset condition when the first acquisition module 10 does not acquire the to-be-executed object information carried by the voice instruction. . The execution object information that meets the preset condition can be implemented by referring to the foregoing technical solution, and details are not described herein again.
此外,在实际使用过程中,用户的语音指令可能包括多个执行对象信息,以下以内置指令处理装置的终端播放音乐为例进行详细说明:In addition, in the actual use process, the user's voice instruction may include a plurality of execution object information, and the following uses the terminal of the built-in instruction processing device to play music as an example for detailed description:
终端运行音乐播放程序,当用户只说出“播放”指令类型时,若终端当前默认已选中某歌曲,则播放当前选中的歌曲;若终端当前未选中歌曲,则按照前述实施例,以UI的方式显示“播放”指令类型,以及“播放”指令类型相关的执行对象信息,如图5所示。The terminal runs the music playing program. When the user only speaks the "play" command type, if the terminal currently selects a certain song by default, the currently selected song is played; if the terminal does not currently select the song, according to the foregoing embodiment, the UI The mode displays the "play" instruction type and the execution object information related to the "play" instruction type, as shown in FIG.
当用户说出“播放某某的歌”、“播放某某歌”或“播放某某的某首歌”时,解析终端接收到的语音指令,若只获取到一个执行对象信息,说明用户说的是某个歌手名或者是某个歌曲名,也可能是专辑名;若获取到两个执行对象信息,第一执行对象信息和第二执行对象信息,说明用户说的是某个歌手唱的某首歌。When the user says "playing a certain song", "playing a certain song" or "playing a certain song", the voice command received by the terminal is parsed, and if only one execution object information is obtained, the user says Is the name of a certain artist or a song name, or may be the album name; if two execution object information is obtained, the first execution object information and the second execution object information indicate that the user is talking about a certain singer singing a song.
针对获取到两个执行对象信息的情况,首先从所述指令索引表中查找是否有匹配的执行对象信息(第一执行对象信息和第二执行对象信息同时匹配,即存在歌手“某某”的某首歌),如果有匹配的执行对象信息,则直接播放,如果没有匹配的执行对象信息,则遍历终端的音乐库,若仍未查找到则重新在所述指令索引表中查找是否有匹配第一执行对象信息的执行对象信息(是否存在歌手“某某”的任意歌曲),如果有,则以UI方式将歌手“某某”的所有歌曲显示出来,如图6所示;同时语音提示:“该歌手还有其他歌曲,是否播放?”,提供用户一次额外选择机会。For the case where two pieces of execution object information are acquired, first, it is searched from the instruction index table whether there is matching execution object information (the first execution object information and the second execution object information are simultaneously matched, that is, the singer "some" exists. a song), if there is matching execution object information, directly play, if there is no matching execution object information, traverse the terminal's music library, if it is still not found, then re-find in the instruction index table whether there is a match The execution target information of the first execution object information (whether or not there is any song of the singer "something"), if any, displays all the songs of the singer "some" in a UI manner, as shown in FIG. 6; : "The singer has other songs, does it play?", providing users with an extra chance of choice.
针对获取到一个执行对象信息的情况,从所述指令索引表中查找是否有匹配的执行对象信息,如果查找到是歌手名和获取的执行对象信息匹配,播放所述指令索引表中该歌手优先级最高的歌曲,同时查找出指令索引表中该歌手的其它歌曲并以UI方式显示,供用户选择;如果查找到是专辑名和获取的执行对象信息匹配,播放所述指令索引表中该专辑中优先级最高的歌曲,同时查找出指令索引表中该专辑中的其他歌曲并以UI方式显示,供用户选择;如果查找到匹配的执行对象信息就是歌曲名,则播放歌曲。For the case of obtaining an execution object information, it is searched from the instruction index table for matching execution object information, and if it is found that the artist name and the acquired execution object information match, the singer priority level in the instruction index table is played. The highest song, at the same time, find the other songs of the singer in the instruction index table and display them in the UI mode for the user to select; if it is found that the album name and the acquired execution object information match, the album in the instruction index table is played first. The highest-ranking song, at the same time, finds other songs in the album in the index table and displays them in UI mode for the user to select; if the matching execution object information is the song name, the song is played.
可选地,参照图10,基于本申请的指令处理装置的第一或第二实施例,提出本申请的指令处理装置的第三实施例,在本实施例中,所述指令处理装 置还包括更新模块50,所述更新模块50设置成更新匹配的执行对象信息对应的执行对象的执行频率值。Optionally, referring to FIG. 10, based on the first or second embodiment of the instruction processing apparatus of the present application, a third embodiment of the instruction processing apparatus of the present application is provided. In the embodiment, the instruction processing apparatus is The resetting includes an update module 50 configured to update an execution frequency value of the execution object corresponding to the matched execution object information.
本实施例中,更新模块50记录终端成功执行的每一语音指令,包括语音指令的指令类型,以及与所述语音指令携带的待执行对象信息匹配的执行对象信息,以更新所述匹配的执行对象信息对应的执行对象的执行频率值。In this embodiment, the update module 50 records each voice instruction successfully executed by the terminal, including an instruction type of the voice instruction, and execution object information that matches the to-be-executed object information carried by the voice instruction, to update the execution of the match. The execution frequency value of the execution object corresponding to the object information.
由于所述指令索引表存储有所述满足预设条件的执行对象信息,更新模块50在更新匹配的执行对象信息对应的执行对象的执行频率值之后,动态更新所述指令索引表,即更新模块50根据执行对象执行频率值的变化,调整所述指令索引表中相应执行对象信息的优先级顺序。此外,本领域技术人员可以理解的是,若匹配的执行对象信息之前不存在于所述指令索引表中,且所述匹配的执行对象信息对应的执行对象的执行频率值更新之后,使得所述匹配的执行对象信息满足所述预设条件,将所述匹配的执行对象信息添加至所述指令索引表中。本实施例通过实时更新所述指令索引表,能够进一步提升终端执行语音指令的效率。The update module 50 dynamically updates the instruction index table, that is, the update module, after updating the execution frequency value of the execution object corresponding to the matched execution object information, because the instruction index table stores the execution object information that satisfies the preset condition. The priority order of the corresponding execution object information in the instruction index table is adjusted according to the change of the execution object execution frequency value. In addition, it can be understood by those skilled in the art that if the matching execution object information does not exist in the instruction index table before, and the matching execution object information corresponds to the execution frequency value of the execution object, the The matched execution object information satisfies the preset condition, and the matched execution object information is added to the instruction index table. In this embodiment, by updating the instruction index table in real time, the efficiency of the terminal executing the voice instruction can be further improved.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明实施例不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function. Embodiments of the invention are not limited to any specific form of combination of hardware and software.
以上仅为本申请的可选的实施例,并非因此限制本申请的专利保护范围,凡是利用本申请的说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above is only an optional embodiment of the present application, and thus does not limit the scope of patent protection of the present application, and the equivalent structure or equivalent process transformation made by using the specification and the drawings of the present application, or directly or indirectly applied to other The related technical fields are all included in the scope of patent protection of the present application.
工业实用性 Industrial applicability
本申请提出的指令处理方法及装置,在接收到语音指令,并获取到所述语音指令携带的待执行对象信息后,从满足预设条件的执行对象信息中查找与所述待执行对象信息匹配的执行对象信息,在查找到匹配的执行对象信息时,执行匹配的执行对象信息对应的执行对象,而无需如同相关技术一样遍历所有执行对象信息,从而本申请能够提高终端执行语音指令的效率。 The instruction processing method and apparatus provided by the present application, after receiving the voice instruction and acquiring the to-be-executed object information carried by the voice instruction, searching for the object to be executed from the execution object information that satisfies the preset condition The execution object information, when the matching execution object information is found, executes the execution object corresponding to the matching execution object information without traversing all the execution object information as in the related art, so that the present application can improve the efficiency of the terminal executing the voice instruction.

Claims (10)

  1. 一种指令处理方法,包括:An instruction processing method includes:
    在接收到语音指令时,获取所述语音指令携带的待执行对象信息;Acquiring the to-be-executed object information carried by the voice instruction when receiving the voice instruction;
    获取所述语音指令对应的执行对象信息中满足预设条件的执行对象信息;Obtaining execution object information that satisfies a preset condition in the execution object information corresponding to the voice instruction;
    将所述待执行对象信息与所述满足预设条件的执行对象信息进行匹配;以及Matching the to-be-executed object information with the execution object information satisfying the preset condition;
    在有所述满足预设条件的执行对象信息与所述待执行对象信息匹配时,执行匹配的执行对象信息对应的执行对象。When the execution object information that satisfies the preset condition matches the to-be-executed object information, the execution object corresponding to the executed execution object information is executed.
  2. 如权利要求1所述的指令处理方法,所述将所述待执行对象信息与所述满足预设条件的执行对象信息进行匹配的步骤之后,所述指令处理方法还包括:The instruction processing method according to claim 1, after the step of matching the to-be-executed object information with the execution object information that satisfies a preset condition, the instruction processing method further includes:
    在所述满足预设条件的执行对象信息与所述待执行对象信息均不匹配时,将所述待执行对象信息与所述语音指令对应的执行对象信息中不满足预设条件的执行对象信息进行匹配;和/或When the execution object information that satisfies the preset condition does not match the to-be-executed object information, the execution object information that does not satisfy the preset condition in the execution object information corresponding to the to-be-executed object information and the voice instruction Matching; and/or
    在有所述不满足预设条件的执行对象信息与所述待执行对象信息匹配时,执行匹配的执行对象信息对应的执行对象。When the execution object information that does not satisfy the preset condition matches the to-be-executed object information, the execution object corresponding to the executed execution object information is executed.
  3. 如权利要求2所述的指令处理方法,所述在所述满足预设条件的执行对象信息与所述待执行对象信息均不匹配时,将所述待执行对象信息与所述语音指令对应的执行对象信息中不满足预设条件的执行对象信息进行匹配的步骤之后,所述指令处理方法还包括:The instruction processing method according to claim 2, wherein when the execution object information satisfying the preset condition does not match the object to be executed, the object to be executed corresponds to the voice instruction After the step of performing the matching of the execution object information that does not satisfy the preset condition in the execution object information, the instruction processing method further includes:
    在所述不满足预设条件的执行对象信息与所述待执行对象信息均不匹配时,显示所述满足预设条件的执行对象信息。When the execution object information that does not satisfy the preset condition does not match the to-be-executed object information, the execution object information that satisfies the preset condition is displayed.
  4. 如权利要求1-3任一项所述的指令处理方法,其中,所述获取所述语音指令对应的执行对象信息中满足预设条件的执行对象信息的步骤包括:The instruction processing method according to any one of claims 1 to 3, wherein the step of acquiring the execution object information that satisfies the preset condition in the execution object information corresponding to the voice instruction comprises:
    获取所述语音指令对应的执行对象信息中执行频率值大于或等于预设阈值的执行对象对应的执行对象信息;Acquiring the execution object information corresponding to the execution object whose execution frequency information is greater than or equal to the preset threshold value in the execution object information corresponding to the voice instruction;
    或者,在所述语音指令对应的执行对象信息中提取预设数量的执行对象 信息,其中所提取的所述执行对象信息对应的执行对象的执行频率值,大于所述语音指令对应的执行对象信息中除所提取的所述执行对象信息之外的其它执行对象信息对应的执行对象的执行频率值。Or extracting a preset number of execution objects in the execution object information corresponding to the voice instruction The information, wherein the execution frequency value of the execution object corresponding to the extracted execution object information is greater than the execution of the execution object information other than the extracted execution object information in the execution object information corresponding to the voice instruction The execution frequency value of the object.
  5. 如权利要求4所述的指令处理方法,所述执行匹配的执行对象信息对应的执行对象的步骤之后,所述指令处理方法还包括:The instruction processing method according to claim 4, after the step of executing the matching execution object information corresponding to the execution object, the instruction processing method further comprises:
    更新匹配的执行对象信息对应的执行对象的执行频率值。The execution frequency value of the execution object corresponding to the matching execution object information is updated.
  6. 一种指令处理装置,包括:An instruction processing device includes:
    第一获取模块,设置成在接收到语音指令时,获取所述语音指令携带的待执行对象信息;The first acquiring module is configured to acquire, to be executed, the to-be-executed object information carried by the voice instruction when the voice instruction is received;
    第二获取模块,设置成获取所述语音指令对应的执行对象信息中满足预设条件的执行对象信息;a second acquiring module, configured to acquire execution object information that satisfies a preset condition in the execution object information corresponding to the voice instruction;
    匹配模块,设置成将所述待执行对象信息与所述满足预设条件的执行对象信息进行匹配;和a matching module configured to match the to-be-executed object information with the execution object information that satisfies a preset condition; and
    执行模块,设置成在有所述满足预设条件的执行对象信息与所述待执行对象信息匹配时,执行匹配的执行对象信息对应的执行对象。The execution module is configured to execute an execution object corresponding to the executed execution object information when the execution object information that satisfies the preset condition matches the to-be-executed object information.
  7. 如权利要求6所述的指令处理装置,所述匹配模块还设置成在所述满足预设条件的执行对象信息与所述待执行对象信息均不匹配时,将所述待执行对象信息与所述语音指令对应的执行对象信息中不满足预设条件的执行对象信息进行匹配;和/或The instruction processing apparatus according to claim 6, wherein the matching module is further configured to: when the execution object information satisfying the preset condition does not match the to-be-executed object information, the object to be executed and the Matching the execution object information that does not satisfy the preset condition in the execution object information corresponding to the voice instruction; and/or
    所述执行模块还设置成在有所述不满足预设条件的执行对象信息与所述待执行对象信息匹配时,执行匹配的执行对象信息对应的执行对象。The execution module is further configured to execute an execution object corresponding to the executed execution object information when the execution object information that does not satisfy the preset condition matches the to-be-executed object information.
  8. 如权利要求7所述的指令处理装置,所述指令处理装置,还包括提示模块,所述提示模块设置成在所述不满足预设条件的执行对象信息与所述待执行对象信息均不匹配时,显示所述满足预设条件的执行对象信息。The instruction processing apparatus according to claim 7, further comprising a prompting module, wherein the prompting module is configured to not match the execution object information that does not satisfy the preset condition and the object information to be executed At the time, the execution object information that satisfies the preset condition is displayed.
  9. 如权利要求6-8任一项所述的指令处理装置,其中,所述第二获取模块是设置成:The instruction processing apparatus according to any one of claims 6-8, wherein the second acquisition module is configured to:
    获取所述语音指令对应的执行对象信息中执行频率值大于或等于预设阈值的执行对象对应的执行对象信息; Acquiring the execution object information corresponding to the execution object whose execution frequency information is greater than or equal to the preset threshold value in the execution object information corresponding to the voice instruction;
    或者,在所述语音指令对应的执行对象信息中提取预设数量的执行对象信息,其中所提取的所述执行对象信息对应的执行对象的执行频率值,大于所述语音指令对应的执行对象信息中除所提取的所述执行对象信息之外的其它执行对象信息对应的执行对象的执行频率值。Or extracting, in the execution object information corresponding to the voice instruction, a preset number of execution object information, where an execution frequency value of the execution object corresponding to the extracted execution object information is greater than an execution object information corresponding to the voice instruction An execution frequency value of the execution object corresponding to the execution object information other than the extracted execution object information.
  10. 如权利要求9所述的指令处理装置,所述指令处理装置还包括更新模块,所述更新模块设置成更新匹配的执行对象信息对应的执行对象的执行频率值。 The instruction processing device according to claim 9, wherein the instruction processing device further comprises an update module configured to update an execution frequency value of the execution object corresponding to the matched execution object information.
PCT/CN2016/078987 2015-06-18 2016-04-11 Instruction processing method and apparatus WO2016202064A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510342609.1A CN106328129B (en) 2015-06-18 2015-06-18 Instruction processing method and device
CN201510342609.1 2015-06-18

Publications (1)

Publication Number Publication Date
WO2016202064A1 true WO2016202064A1 (en) 2016-12-22

Family

ID=57545068

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/078987 WO2016202064A1 (en) 2015-06-18 2016-04-11 Instruction processing method and apparatus

Country Status (2)

Country Link
CN (1) CN106328129B (en)
WO (1) WO2016202064A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107316641B (en) * 2017-06-30 2021-06-15 联想(北京)有限公司 Voice control method and electronic equipment
CN112397060B (en) * 2019-07-31 2024-02-23 北京声智科技有限公司 Voice instruction processing method, system, equipment and medium
CN111951798A (en) * 2020-07-16 2020-11-17 东风汽车集团有限公司 Vehicle window lifting control method and system based on voice

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101032155A (en) * 2004-08-16 2007-09-05 诺基亚公司 Apparatus and method for facilitating contact selection in communication devices
CN102223429A (en) * 2010-02-11 2011-10-19 英飞凌科技股份有限公司 Predictive contact information representation
CN102543071A (en) * 2011-12-16 2012-07-04 安徽科大讯飞信息科技股份有限公司 Voice recognition system and method used for mobile equipment
CN102739869A (en) * 2012-06-26 2012-10-17 华为终端有限公司 Method and terminal for searching for information of target contact person by voice
CN103280217A (en) * 2013-05-02 2013-09-04 锤子科技(北京)有限公司 Voice identification method and device of mobile terminal
US20140173515A1 (en) * 2012-12-14 2014-06-19 Vonage Network Llc Identifying and displaying a set of high priority contacts on a display device
CN104282301A (en) * 2013-07-09 2015-01-14 安徽科大讯飞信息科技股份有限公司 Voice command processing method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104575494A (en) * 2013-10-16 2015-04-29 中兴通讯股份有限公司 Speech processing method and terminal
CN103810285A (en) * 2014-02-24 2014-05-21 联想(北京)有限公司 Method and device for obtaining information

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101032155A (en) * 2004-08-16 2007-09-05 诺基亚公司 Apparatus and method for facilitating contact selection in communication devices
CN102223429A (en) * 2010-02-11 2011-10-19 英飞凌科技股份有限公司 Predictive contact information representation
CN102543071A (en) * 2011-12-16 2012-07-04 安徽科大讯飞信息科技股份有限公司 Voice recognition system and method used for mobile equipment
CN102739869A (en) * 2012-06-26 2012-10-17 华为终端有限公司 Method and terminal for searching for information of target contact person by voice
US20140173515A1 (en) * 2012-12-14 2014-06-19 Vonage Network Llc Identifying and displaying a set of high priority contacts on a display device
CN103280217A (en) * 2013-05-02 2013-09-04 锤子科技(北京)有限公司 Voice identification method and device of mobile terminal
CN104282301A (en) * 2013-07-09 2015-01-14 安徽科大讯飞信息科技股份有限公司 Voice command processing method and system

Also Published As

Publication number Publication date
CN106328129A (en) 2017-01-11
CN106328129B (en) 2020-11-27

Similar Documents

Publication Publication Date Title
US9898847B2 (en) Multimedia picture generating method, device and electronic device
JP5799621B2 (en) Information processing apparatus, information processing method, and program
US10043520B2 (en) Multilevel speech recognition for candidate application group using first and second speech commands
CN102137085B (en) For the system and method for the multidimensional disambiguation of voice command
US8515984B2 (en) Extensible search term suggestion engine
US10811005B2 (en) Adapting voice input processing based on voice input characteristics
US10402407B2 (en) Contextual smart tags for content retrieval
WO2016165325A1 (en) Audio information recognition method and apparatus
WO2016165346A1 (en) Method and apparatus for storing and playing audio file
CN106257452B (en) Modifying search results based on contextual characteristics
WO2016202064A1 (en) Instruction processing method and apparatus
CN106448702A (en) Recording data processing device and method, and mobile terminal
TW201716987A (en) Audio input of field entries
KR20080083290A (en) A method and apparatus for accessing a digital file from a collection of digital files
KR101567449B1 (en) E-Book Apparatus Capable of Playing Animation on the Basis of Voice Recognition and Method thereof
US20140372455A1 (en) Smart tags for content retrieval
US20140221046A1 (en) Electronic device for identifying a party
US9118756B2 (en) Recording method, recording device, and electronic device
CN110189752A (en) A kind of mostly recognition methods of intention and device, terminal device
RU2608470C2 (en) User data update method and device
WO2017092322A1 (en) Method for operating browser on smart television and smart television
US9047059B2 (en) Controlling a voice site using non-standard haptic commands
US20150205518A1 (en) Contextual data for note taking applications
US20050206611A1 (en) Audio and video playing method
JP2006074376A (en) Portable telephone set with broadcast receiving function, program, and recording medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16810805

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16810805

Country of ref document: EP

Kind code of ref document: A1