WO2023000698A1 - Method for controlling program by means of speech, and device and program product - Google Patents

Method for controlling program by means of speech, and device and program product Download PDF

Info

Publication number
WO2023000698A1
WO2023000698A1 PCT/CN2022/082104 CN2022082104W WO2023000698A1 WO 2023000698 A1 WO2023000698 A1 WO 2023000698A1 CN 2022082104 W CN2022082104 W CN 2022082104W WO 2023000698 A1 WO2023000698 A1 WO 2023000698A1
Authority
WO
WIPO (PCT)
Prior art keywords
instruction
program
voice
information
party
Prior art date
Application number
PCT/CN2022/082104
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 WO2023000698A1 publication Critical patent/WO2023000698A1/en

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Definitions

  • the present disclosure relates to voice technology in computer technology, in particular to a method, device and program product for controlling programs by voice.
  • a user can operate a mobile terminal in various ways to make it run a specified App, for example, the mobile terminal can be operated by touch to make it run an App, or a certain App can be invoked through a voice assistant.
  • the APP Under normal circumstances, when the user is inconvenient to directly operate the mobile phone, the APP will be called up by voice. However, after the APP is started, if the APP itself does not have the voice recognition function, the user can only operate the APP by touch. Therefore, in the prior art, when the user is inconvenient to directly operate the mobile terminal with hands, it is impossible to truly control the APP by voice.
  • the present disclosure provides a method, device and program product for controlling a program by voice, so as to solve the technical problem in the prior art that it is impossible to control an APP by voice when it is inconvenient for the user to directly operate the mobile terminal by hand.
  • a method for controlling a program by voice is provided, the method is applied to a voice recognition program of an electronic device, and the electronic device runs a voice recognition program and a plurality of third-party programs, so that The methods described include:
  • prompt information is generated, wherein the plurality of instruction information corresponding to the voice instruction respectively belong to different third-party programs, and the prompt information is used to prompt the user to specify third party programs;
  • a method for controlling a program by voice the method is applied to a third-party program of an electronic device, and the electronic device runs a voice recognition program and multiple third-party programs, so
  • the methods described include:
  • the operable instruction sent by the voice recognition program; wherein, the operable instruction is determined in a plurality of instruction information based on the user's designated instruction, and the plurality of instruction information are determined according to the user's voice instruction and belong to different The information of the third-party program; the instruction information of the third-party program is stored in the speech recognition program;
  • the response processing is completed.
  • a device for controlling programs by voice the device is applied to a voice recognition program of an electronic device, and the electronic device runs a voice recognition program and a plurality of third-party programs, so Said devices include:
  • a determining unit configured to determine instruction information corresponding to the voice instruction in response to the voice instruction initiated by the user, wherein the instruction information of the third-party program is stored in the voice recognition program;
  • a prompting unit configured to generate prompt information if it is determined that there are multiple command information corresponding to the voice command, wherein the multiple command information corresponding to the voice command respectively belong to different third-party programs, and the prompt information Used to prompt the user to specify a third-party program;
  • control unit configured to, in response to a designated instruction initiated by a user, determine, among a plurality of instruction information corresponding to the voice instruction, target instruction information corresponding to the third-party program indicated by the designated instruction, and send the target instruction to The operable instruction in the information is sent to the third-party program indicated by the specified instruction for response processing.
  • an apparatus for controlling a program by voice the apparatus is applied to a third-party program of an electronic device, and a speech recognition program and multiple third-party programs run in the electronic device, so Said devices include:
  • the receiving unit is configured to receive the operable instruction sent by the speech recognition program; wherein, the operable instruction is determined in a plurality of instruction information based on the user's designated instruction, and the plurality of instruction information is based on the user's voice instruction
  • the determined information respectively belongs to different third-party programs; the instruction information of the third-party programs is stored in the speech recognition program;
  • a response unit configured to complete response processing according to the operable instruction.
  • an electronic device comprising:
  • the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the method described in the first aspect or the second aspect. method.
  • a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to make the computer execute the method as described in the first aspect or the second aspect .
  • a computer program product comprising: a computer program stored in a readable storage medium, at least one processor of an electronic device can read from the The computer program is read by reading the storage medium, and the at least one processor executes the computer program so that the electronic device executes the method described in the first aspect or the second aspect.
  • the method, device, and program product provided by the present disclosure can store instruction information of a third-party program in the voice recognition program.
  • the instruction information corresponding to the user's voice instruction is determined in the instruction information, and if a plurality of instruction information corresponding to the user's voice instruction is determined, then based on the user's specified instruction, the instruction information corresponding to the user's voice instruction can also be selected.
  • the instruction information determines the target instruction information, so that the operable instructions in the target instruction information can be sent to the third-party program designated by the user through the voice recognition program, so that the third-party program can respond to the user's voice instruction.
  • the user Third-party programs that do not have voice recognition functions can be controlled by voice.
  • Fig. 1 is a schematic diagram of a wake-up program using voice mode shown in an exemplary embodiment
  • FIG. 2 is a schematic flowchart of a method for controlling a program by voice according to the first exemplary embodiment of the present disclosure
  • Fig. 3 is a schematic interface diagram of an exemplary embodiment of the present disclosure
  • Fig. 4 is a schematic flowchart of a method for controlling a program by voice according to a second exemplary embodiment of the present disclosure
  • FIG. 5 is a schematic flowchart of a method for controlling a program by voice according to a third exemplary embodiment of the present disclosure
  • FIG. 6 is a schematic flowchart of a method for controlling a program by voice according to a fourth exemplary embodiment of the present disclosure
  • FIG. 7 is a schematic flowchart of a method for controlling a program by voice according to a fifth exemplary embodiment of the present disclosure.
  • Fig. 8 is a schematic structural diagram of an apparatus for controlling a program by voice according to the first exemplary embodiment of the present disclosure
  • FIG. 9 is a schematic structural diagram of an apparatus for controlling a program by voice according to a second exemplary embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of an apparatus for controlling a program by voice according to a third exemplary embodiment of the present disclosure.
  • Fig. 11 is a schematic structural diagram of an apparatus for controlling a program by voice according to a fourth exemplary embodiment of the present disclosure.
  • FIG. 12 is a block diagram of an electronic device for implementing the method for controlling a program by voice according to an embodiment of the present disclosure.
  • Fig. 1 is a schematic diagram of an exemplary embodiment showing a procedure for waking up by voice.
  • the user 11 can speak a voice command
  • the mobile terminal 12 can be provided with a voice recognition program.
  • the mobile terminal 12 can use a built-in voice recognition program to recognize the content of the voice command, and perform corresponding operations according to the content of the voice command.
  • the mobile terminal 12 can run program A, and its interface is updated from state 13 to state 14.
  • program A has voice recognition function, the user can continue to control program A based on voice control; if program A does not have voice recognition function, program A cannot respond when the user continues to control program A based on voice control.
  • the mobile terminal can only start an application program based on the user's voice command, but cannot continue to control the application program based on the user's voice command.
  • the instruction information of the third-party program is stored in the speech recognition program, and when the electronic device receives the user's voice instruction for controlling the third-party program, the speech recognition program can determine the The instruction information corresponding to the voice instruction, and send an operable instruction to the third-party program according to the instruction information, so that the third-party program can respond to the user's voice instruction.
  • the user can not only wake up the third-party program by voice, but also control the started third-party program.
  • Fig. 2 is a schematic flowchart of a method for controlling a program by voice according to an exemplary embodiment of the present disclosure.
  • the method for controlling a program by voice in the present disclosure is applied to a voice recognition program of an electronic device, and the electronic device can execute the method of the present disclosure based on the function of the voice recognition program.
  • Fig. 3 is a schematic diagram of an interface according to an exemplary embodiment of the present disclosure.
  • a speech recognition program 31 and multiple third-party programs 32 are running in the electronic device. After the electronic device receives the voice command, the voice recognition program 31 provided therein can process the voice command.
  • the third-party program is a program different from the speech recognition program.
  • the method for controlling programs by voice includes:
  • Step 201 in response to a voice command initiated by a user, determine command information corresponding to the voice command, wherein the voice recognition program stores command information of a third-party program.
  • instruction information of any one or more third-party programs is stored in the speech recognition program.
  • instruction registration information may be sent to the speech recognition program, and then the speech recognition program may store the instruction information of the third-party program.
  • the speech recognition program can store multiple instruction information of any third-party program.
  • the voice command initiated by the user may be an command for controlling any third-party program, and the electronic device may process the voice command through a built-in voice recognition program after receiving the voice command.
  • each piece of instruction information may include instruction content
  • the voice recognition program may determine the instruction corresponding to the voice instruction according to the content included in the voice instruction and the instruction content included in each piece of instruction information. information.
  • the content of the instruction may be, for example, "previous page”, “next page”, “turn up the sound”, “turn down the sound” and so on.
  • the voice recognition program can determine the instruction information corresponding to the voice instruction initiated by the current user according to the pre-stored instruction information of the third-party program. For example, if the voice recognition program stores the instruction information of program A, program B, and program C, the instruction information matching the voice instruction initiated by the user can be determined from the instruction information of these three programs.
  • the speech recognition program may search the stored instruction information for the instruction information corresponding to "turn up the voice a little bit". For example, program A is an audio player program, then program A may have instruction information corresponding to "turn up the volume”. In this embodiment, the speech recognition program can directly obtain the operable instruction in the instruction information corresponding to "turn up the voice" of program A, and send it to program A, so that program A executes the operable instruction.
  • program B may also have instruction information corresponding to "turn up the voice a little bit", then the voice recognition program can determine the two instructions corresponding to the voice instruction information. In this case, step 202 may be performed.
  • Step 202 if it is determined that there are a plurality of instruction information corresponding to the voice instruction, generate prompt information, wherein the plurality of instruction information corresponding to the voice instruction belong to different third-party programs, and the prompt information is used to prompt the user to specify a third-party program .
  • the voice recognition program needs to determine the third-party program that the user wants to control, and The instruction information of the third-party program is screened out, and then the third-party program is controlled based on the instruction information.
  • the voice recognition program may generate prompt information for prompting the user to specify a third-party program.
  • the prompt information may be prompt information in the form of voice, or prompt information in the form of graphics and text, which is not limited in this embodiment of the present disclosure.
  • the user may designate the third-party program by means of voice or touch.
  • the user can name a specific third-party program.
  • the prompt information is displayed in the form of graphics and text, icons of multiple third-party programs may be displayed, and the user may specify the third-party program among them by touch.
  • the voice command initiated by the user includes "turn up the voice a little bit", and the voice recognition program determines that both program A and program B have command information corresponding to the voice command. Then the speech recognition program can generate prompt information for formulating programs in program A and program B. Thereafter, the user can formulate a third-party program based on the prompt information, for example, program A can be specified.
  • Step 203 in response to the designated instruction initiated by the user, determine the target instruction information corresponding to the third-party program indicated by the designated instruction among the plurality of instruction information corresponding to the voice instruction, and send the operable instruction in the target instruction information to The third-party program indicated by the specified command performs response processing.
  • the speech recognition program can respond to a specified instruction initiated by the user, thereby determining the third-party program specified by the user.
  • the target instruction information corresponding to the third-party program specified by the user may also be determined among the plurality of determined instruction information corresponding to the voice instruction.
  • two pieces of instruction information corresponding to the user's voice instruction determined by the speech recognition program one of which is the instruction information of program A, and the other is the instruction information of program B. If the third-party program designated by the user is program A, the speech recognition program uses the instruction information of program A among the pieces of instruction information as the target instruction information.
  • the instruction information may include specific operable instructions. For example, when the instruction content in a piece of instruction information is "previous page”, the operable instruction in the instruction information is "back”, and the instruction information may also include program information, such as program A.
  • the voice recognition program may send the operable instructions in the target instruction information to the third-party program indicated by the specified instruction, for example, send the operable instructions in the target instruction information to program A.
  • the speech recognition program can directly send the operable instructions to program A, and can also send the operable instructions to the system of the electronic device, and then the system forwards the operable instructions to program A.
  • the third-party program indicated by the specified instruction can execute the corresponding instruction to respond. Since the operable instruction corresponds to the user's voice instruction, when the third-party program executes the operable instruction, it can achieve the effect of responding to the user's voice instruction, so that the user can control the third-party computer without voice recognition function by voice. tripartite procedure.
  • the method for controlling a program by voice is applied to a voice recognition program of an electronic device, and the electronic device runs a voice recognition program and multiple third-party programs.
  • the method includes: responding to a voice command initiated by a user, determining and The instruction information corresponding to the voice instruction, wherein, the instruction information of the third-party program is stored in the voice recognition program; if it is determined that there are multiple instruction information corresponding to the voice instruction, prompt information is generated, wherein the multiple The instruction information respectively belongs to different third-party programs, and the prompt information is used to prompt the user to specify the third-party program; in response to the specified instruction initiated by the user, the third-party program indicated by the specified instruction is determined in multiple instruction information corresponding to the voice instruction corresponding target instruction information, and send the operable instructions in the target instruction information to the third-party program indicated by the specified instruction for response processing.
  • the voice recognition program can store instruction information of a third-party program, and when the user manipulates a third-party program by voice, the voice recognition program determines the The instruction information corresponding to the user's voice instruction is obtained, and if a plurality of instruction information corresponding to the user's voice instruction is determined, then the target can also be determined based on the user's designated instruction among the plurality of instruction information corresponding to the user's voice instruction. Instruction information, so that the operable instructions in the target instruction information can be sent to the third-party program specified by the user through the voice recognition program, so that the third-party program can respond to the user's voice instructions. way to control third-party programs that do not have speech recognition.
  • Fig. 4 is a schematic flowchart of a method for controlling a program by voice according to a second exemplary embodiment of the present disclosure.
  • the method for controlling a program by voice in the present disclosure is applied to a voice recognition program of an electronic device, and the electronic device can execute the method of the present disclosure based on the function of the voice recognition program.
  • a speech recognition program and multiple third-party programs run in the electronic device.
  • the method for controlling a program by voice includes:
  • Step 401 Start the third-party program in response to the start instruction for starting the third-party program.
  • the user may send an activation instruction for activating the third-party program to the electronic device, and the activation instruction may be, for example, an instruction in voice form.
  • the user can say "start program A", then the voice command can be processed by the voice recognition program set in the electronic device.
  • the voice recognition program can directly start the corresponding program after receiving the start instruction in voice form.
  • the third-party program may be provided with an interface, so that the speech recognition program can start the third-party program through the interface.
  • the voice recognition program after the voice recognition program receives the start command in the voice form, it can convert the start command in the voice form into a control command, and send the control command to the system of the electronic device, and then the system of the electronic device based on the The control instruction starts a third-party program.
  • the user can start the third-party program by voice, and when it is inconvenient for the user to touch the electronic device by hand, the third-party program can be started by voice control.
  • Step 402 Determine the voice content in response to the voice instruction initiated by the user.
  • the user can control the third-party program through the voice command, for example, can say the voice content "previous page”, and the voice recognition program can determine the voice content included in the voice command spoken by the user based on the voice recognition algorithm, for example, can recognize The voice content in the voice command spoken by the user is "previous page”.
  • Step 403 in the stored correspondence, determine instruction information including voice content; wherein, the instruction information includes voice content and operable instructions.
  • instruction information of the third-party program is stored in the speech recognition program.
  • the speech recognition program may receive instruction registration information sent by a third-party program for registering operable instructions.
  • the started third-party program may send instruction registration information for registering operable instructions to the speech recognition program.
  • the third-party program can determine the instruction registration information according to the operable instructions that can be supported during the running process, and send the registration instruction to the voice recognition program.
  • the third-party program can also determine the operable instructions that can be supported in the current interface of the program according to the operable controls included in the current interface of the program, and send the instruction registration information for registering these operable instructions to the voice recognition program . For example, if the current interface of the program supports the operable instructions of "next page", "previous page” and "OK", then the third-party program can send a voice recognition program to register "next page, previous page, The instruction registration information of the operable instruction of "OK".
  • the speech recognition program may be provided with an interface, so that a third-party program may send instruction registration information to the speech recognition program through the interface.
  • the third-party program can also send instruction registration information to the system of the electronic device, and the system forwards the instruction registration information to the voice recognition program.
  • the speech recognition program can also store the corresponding relationship between the third-party program and the instruction information according to the instruction registration information.
  • the speech recognition program may store the correspondence between the third-party program and the instruction information according to the instruction registration information. For example, if program A sends instruction registration information to the speech recognition program, the speech recognition program can determine the instruction information according to the instruction registration information, and store the relationship between program A and the instruction information.
  • the speech recognition program can store the correspondence between the third-party program and the instruction information according to the instruction registration information sent by the third-party program, so that the speech recognition program can control the third-party program according to the user's voice instruction, thereby reaching the user's
  • the effects of third-party programs that do not have voice recognition can be controlled by voice.
  • the instruction registration information sent by the third-party program to the voice recognition program may include operable instructions.
  • the voice recognition program may determine the instruction content corresponding to each operable instruction, so as to obtain the The instruction information of the operation instruction and its corresponding instruction content may also store the association relationship between the third-party program and the instruction information.
  • the instruction registration information sent by the third-party program to the voice recognition program may include operable instructions and their corresponding instruction content, and the voice recognition program may directly store the relationship between the third-party program and the instruction information,
  • the instruction information includes operable instructions and corresponding instruction content.
  • the speech recognition program may store the association relationship between instruction information and third-party programs in the form of an instruction configuration table.
  • the instruction configuration table may include three columns of content, one column is the content of the instruction, the other column is the program to which it belongs, and the other column is the instruction format of the operable instruction.
  • a line of information in the command configuration table may include command content "previous page", command format "back”, and the program it belongs to is app1.
  • the voice recognition program stores correspondences between instruction information and third-party programs, and the voice recognition program may specifically determine, among these correspondences, that the instruction information includes the above-mentioned voice content correspondence.
  • the stored correspondence includes two correspondences, correspondence 1 includes the correspondence between instruction information 1 and app1; correspondence 2 includes the correspondence between instruction information 2 and app2.
  • the voice content included in the command information 1 is "previous page", and the voice content included in the command information 2 is "previous page”.
  • the voice recognition program can determine the instruction information 1 and the instruction information 2 including the voice content.
  • the voice recognition program can determine the command information corresponding to the voice command made by the user based on the correspondence between the pre-stored command information and the third-party program, and then convert the voice command into command information to The purpose of using the determined instruction information to control the third-party program is realized.
  • Step 404 if it is determined that there are a plurality of instruction information corresponding to the voice instruction, generate prompt information, wherein the plurality of instruction information corresponding to the voice instruction belong to different third-party programs, and the prompt information is used to prompt the user to specify a third-party program .
  • Step 405 in response to the specified instruction initiated by the user, determine the target instruction information corresponding to the third-party program indicated by the specified instruction among the plurality of instruction information corresponding to the voice instruction, and send the operable instruction in the target instruction information to The third-party program indicated by the specified command performs response processing.
  • Steps 404, 405 are implemented in a similar manner to steps 202, 203, and will not be repeated here.
  • Step 406 receiving interface change information sent by a third-party program.
  • the third-party program can send interface change information to the speech recognition instruction every time the interface changes.
  • the third-party program may send interface change information to the speech recognition program.
  • the interface of the third-party program may continue to send instruction registration information to the speech recognition program, and the information may carry interface change information.
  • the third-party program when it exits, it may send interface change information to the speech recognition program.
  • Step 407 Update the stored correspondence between the third-party program and the instruction information according to the interface change information.
  • the speech recognition program receives the interface change information sent by the third-party program, it can update the stored correspondence between the third-party program and the instruction information.
  • the instruction information stored in the speech recognition program is the information of the operable instructions that can be supported in the current interface of the third-party program
  • the instructions of the third-party program stored in the speech recognition program The information should also be updated, so that the voice recognition program can find the corresponding instruction information according to the voice instruction made by the user.
  • the speech recognition program may directly delete the instruction information of the third-party program.
  • the voice recognition program may continue to receive instruction registration information sent by the third-party program, and then store instruction information corresponding to the operable instructions supported in the current interface of the third-party program.
  • the third-party program sends interface change information to the speech recognition program when it exits, the third-party program will not send instruction registration information to the speech recognition program again until the third-party program is started again.
  • the voice recognition program can delete the voice information of the third-party program, so as to prevent the voice recognition program from processing the user's voice command according to the command information in the history interface of the third-party program, resulting in misoperation The problem.
  • the method provided by the present disclosure also includes:
  • Step 408 if a piece of instruction information corresponding to the voice instruction is determined, send an operable instruction to the third-party program to which the instruction information belongs according to the voice instruction.
  • the voice recognition program can directly obtain the operable command in the command information, and can also send the operable command to the command corresponding to the voice command.
  • the third-party program to which the information belongs enables the third-party program to respond to the operable instruction.
  • steps 406 and 407 may also be performed.
  • Fig. 5 is a schematic flowchart of a method for controlling a program by voice according to a third exemplary embodiment of the present disclosure.
  • the method for controlling a program by voice in the present disclosure is applied to a third-party program of an electronic device, and the electronic device can execute the method of the present disclosure based on the functions of the third-party program.
  • a speech recognition program and multiple third-party programs run in the electronic device. Any third-party program can execute the method provided by the present disclosure.
  • the method for controlling a program by voice includes:
  • Step 501 receiving the operable instruction sent by the speech recognition program; wherein, the operable instruction is determined in a plurality of instruction information based on the user's specified instruction, and the plurality of instruction information is determined according to the user's voice instruction and belongs to different Information of the third-party program; instruction information of the third-party program is stored in the speech recognition program.
  • instruction information of any one or more third-party programs is stored in the speech recognition program.
  • instruction registration information may be sent to the speech recognition program, and then the speech recognition program may store the instruction information of the third-party program.
  • the speech recognition program can store multiple instruction information of any third-party program.
  • the voice command initiated by the user may be an command for controlling any third-party program, and the electronic device may process the voice command through a built-in voice recognition program after receiving the voice command.
  • the voice recognition program can determine the instruction information corresponding to the voice instruction initiated by the current user according to the pre-stored instruction information of the third-party program. For example, if the voice recognition program stores the instruction information of program A, program B, and program C, the instruction information matching the voice instruction initiated by the user can be determined from the instruction information of these three programs.
  • prompt information is generated, wherein the plurality of instruction information corresponding to the voice instruction respectively belong to different third-party programs, and the prompt information is used to prompt the user to specify the first tripartite procedure.
  • the voice command initiated by the user includes "turn up the voice a little bit", and the voice recognition program determines that both program A and program B have command information corresponding to the voice command. Then the speech recognition program can generate prompt information for formulating programs in program A and program B. Thereafter, the user can formulate a third-party program based on the prompt information, for example, program A can be designated.
  • the operable instruction is sent by the voice recognition program to the third-party program according to the voice instruction initiated by the user. Even if the third-party program does not have the voice recognition function, the operable instruction can be transmitted to the third-party program through voice control.
  • two pieces of instruction information corresponding to the user's voice instruction determined by the speech recognition program one of which is the instruction information of program A, and the other is the instruction information of program B. If the third-party program designated by the user is program A, the speech recognition program uses the instruction information of program A among the pieces of instruction information as the target instruction information. Thereafter, the voice recognition program can send the operable instructions in the target instruction information to program A.
  • the speech recognition program may send an operable instruction to a third-party program according to the method shown in the embodiment shown in FIG. 2 .
  • Step 502 complete response processing according to the operable instruction.
  • the third-party program indicated by the specified instruction can execute the corresponding instruction to respond. Since the operable instruction corresponds to the user's voice instruction, when the third-party program executes the operable instruction, it can achieve the effect of responding to the user's voice instruction, so that the user can control the third-party computer without voice recognition function by voice. tripartite procedure.
  • Fig. 6 is a schematic flowchart of a method for controlling a program by voice according to a fourth exemplary embodiment of the present disclosure.
  • the method for controlling a program by voice in the present disclosure is applied to a third-party program of an electronic device, and the electronic device can execute the method of the present disclosure based on the functions of the third-party program.
  • a speech recognition program and multiple third-party programs run in the electronic device. Any third-party program can execute the method provided by the present disclosure.
  • the method for controlling a program by voice includes:
  • Step 601 determine operable instructions according to the current interface of the program.
  • operable instructions can be determined according to the current interface of the program. Specifically, the operable instructions supported in the program can be determined according to the current interface of the program.
  • the third-party program can obtain information about the operable controls included in the current interface of the program; and then determine the operable instructions corresponding to the operable controls.
  • the third-party program may also determine instruction content according to the operable instruction, so as to obtain instruction information including the operable instruction and its corresponding instruction content.
  • Step 602 sending registration information for registering operable instructions to the speech recognition program.
  • the third-party program can also send instruction registration information for registering these operable instructions to the speech recognition program. For example, if the current interface of the program supports the operable instructions of "next page", "previous page” and "OK", then the third-party program can send a voice recognition program to register "next page, previous page, The instruction registration information of the operable instruction of "OK”.
  • the instruction registration information sent by the third-party program to the voice recognition program may include operable instructions.
  • the voice recognition program may determine the instruction content corresponding to each operable instruction, so as to obtain the The instruction information of the operation instruction and its corresponding instruction content may also store the association relationship between the third-party program and the instruction information.
  • the instruction registration information sent by the third-party program to the voice recognition program may include operable instructions and their corresponding instruction content, and the voice recognition program may directly store the relationship between the third-party program and the instruction information,
  • the instruction information includes operable instructions and corresponding instruction content.
  • the third-party program may send registration information for registering instruction information to the system of the electronic device, so that the system sends the registration information to the voice recognition program.
  • the speech recognition program may be provided with an interface, so that a third-party program may send instruction registration information to the speech recognition program through the interface.
  • the third-party program can also send instruction registration information to the system of the electronic device, and the system forwards the instruction registration information to the voice recognition program.
  • the speech recognition program may store the correspondence between the third-party program and the instruction information according to the instruction registration information. For example, if program A sends instruction registration information to the speech recognition program, the speech recognition program can determine the instruction information according to the instruction registration information, and store the relationship between program A and the instruction information.
  • Step 603 receiving the operable instruction sent by the speech recognition program; wherein, the operable instruction is determined among multiple operable instructions based on the specified instruction of the user, and the plurality of operable instructions are determined according to the user's voice instruction and respectively belong to Instructions of different third-party programs; the operable instructions of each third-party program are stored in the speech recognition program.
  • Step 604 complete response processing according to the operable instruction.
  • Steps 603 and 604 are implemented in a similar manner to steps 501 and 502, and will not be repeated here.
  • Step 605 when the program interface is switched, send interface change information including interface switching information to the voice recognition program; and/or, when the program exits, send interface change information including program exit information to the voice recognition program.
  • the third-party program can send interface change information to the speech recognition instruction every time the interface changes.
  • the third-party program may send interface change information to the speech recognition program.
  • the interface of the third-party program may continue to send instruction registration information to the speech recognition program, and the information may carry interface change information.
  • the third-party program when it exits, it may send interface change information to the speech recognition program.
  • the voice recognition program can update the stored correspondence between the third-party program and the instruction information according to the interface change information. Since the instruction information stored in the speech recognition program is the information of the operable instructions that can be supported by the current interface of the third-party program, when the interface of the third-party program changes, the instructions of the third-party program stored in the speech recognition program The information should also be updated, so that the voice recognition program can find the corresponding instruction information according to the voice instruction made by the user.
  • Fig. 7 is a schematic flowchart of a method for controlling a program by voice according to a fifth exemplary embodiment of the present disclosure.
  • the method for controlling a program by voice may specifically include:
  • step a the user issues a starting instruction for starting the third-party program.
  • Step b the speech recognition program starts the third-party program according to the start instruction.
  • step c the third-party program determines operable instructions according to the current interface of the program.
  • step d the third-party program sends registration information for registering operable instructions to the speech recognition program.
  • step e the speech recognition program stores the corresponding relationship between the third-party program and the instruction information according to the instruction registration information.
  • Step f the user initiates a voice command for controlling the third-party program.
  • step g the voice recognition program determines the instruction information corresponding to the voice instruction, and generates prompt information if it is determined that there are multiple instruction information corresponding to the voice instruction.
  • step h the user can initiate a specified command based on the above prompt information, thereby specifying a third-party program to be controlled.
  • Step i the speech recognition program responds to the specified instruction initiated by the user, and determines the target instruction information corresponding to the third-party program indicated by the specified instruction among the plurality of instruction information corresponding to the voice instruction.
  • step j the voice recognition program sends the operable instructions included in the target instruction information to the third-party program indicated by the specified instruction.
  • step k after receiving the operable instruction, the third-party program may execute the corresponding operable instruction, thereby responding to the operable instruction.
  • the user can control the third-party program through voice control, even if the third-party program does not have a voice recognition function, this effect can still be achieved.
  • Fig. 8 is a schematic structural diagram of an apparatus for controlling a program by voice according to the first exemplary embodiment of the present disclosure.
  • the device 800 for controlling a program by voice is applied to a voice recognition program of an electronic device, and the electronic device runs a voice recognition program and multiple third-party programs.
  • the device 800 includes :
  • the determining unit 810 is configured to determine instruction information corresponding to the voice instruction in response to the voice instruction initiated by the user, wherein the instruction information of the third-party program is stored in the voice recognition program;
  • the prompt unit 820 is configured to generate prompt information if it is determined that there are multiple command information corresponding to the voice command, wherein the multiple command information corresponding to the voice command respectively belong to different third-party programs, and the prompt The information is used to prompt the user to specify a third-party program;
  • the control unit 830 is configured to, in response to a specified instruction initiated by the user, determine, among a plurality of instruction information corresponding to the voice instruction, target instruction information corresponding to the third-party program indicated by the specified instruction, and set the target The operable instructions in the instruction information are sent to the third-party program indicated by the specified instruction for response processing.
  • Fig. 9 is a schematic structural diagram of an apparatus for controlling a program by voice according to a second exemplary embodiment of the present disclosure.
  • the determination unit 910 is similar to the determination unit 810 in FIG. 8
  • the prompt unit 920 is similar to the prompt unit 820 in FIG. 8
  • the control unit 930 is similar to the control unit 830 in FIG. 8 similar.
  • the present disclosure provides an apparatus 900 for controlling a program in voice mode
  • the determining unit 910 includes:
  • a content determining module 911 configured to determine the voice content in response to the voice instruction initiated by the user
  • the information determining module 912 is configured to determine instruction information including the voice content in the stored correspondence; wherein, the instruction information includes voice content and operable instructions.
  • a changing unit 940 is also included, configured to:
  • the stored correspondence between the third-party program and the instruction information is updated according to the interface change information.
  • the changing unit 940 includes:
  • the deletion module 941 is configured to delete the instruction information corresponding to the third-party program sending the interface change information in the corresponding relationship.
  • an activation unit 950 is also included, configured to: before the determining unit 910 responds to the voice command initiated by the user, and determines the instruction information corresponding to the voice command:
  • the third-party program is started in response to the start instruction for starting the third-party program.
  • the correspondence between the third-party program and the instruction information is determined according to instruction registration information, and the instruction registration information is sent by the third-party program.
  • Fig. 10 is a schematic structural diagram of an apparatus for controlling a program by voice according to a third exemplary embodiment of the present disclosure.
  • the device 1000 is applied to a third-party program of an electronic device, and a speech recognition program and multiple third-party programs run in the electronic device, and the device includes:
  • the receiving unit 1010 is configured to receive an operable instruction sent by a speech recognition program; wherein, the operable instruction is determined in a plurality of instruction information based on a specified instruction of the user, and the plurality of instruction information are determined according to the user's voice
  • the information determined by the instruction belongs to different third-party programs; the instruction information of the third-party program is stored in the speech recognition program;
  • the response unit 1020 is configured to complete response processing according to the operable instruction.
  • Fig. 11 is a schematic structural diagram of an apparatus for controlling a program by voice according to a fourth exemplary embodiment of the present disclosure.
  • the receiving unit 1110 is similar to the receiving unit 1010 in FIG. 10
  • the response unit 1120 is similar to the response unit 1020 in FIG. 10 .
  • the device for controlling programs by voice provided by the present disclosure further includes a registration unit 1130 for:
  • the registration unit 1130 includes:
  • the sending module 1131 is configured to send registration information for registering the operable instruction to a system of the electronic device, so that the system sends the registration information to the speech recognition program.
  • the registration unit 1130 includes an instruction determination module 1131, configured to:
  • An operable instruction corresponding to the operable control is determined.
  • an update unit 1140 is also included, configured to:
  • This disclosure provides a method, device and program product for controlling a program by voice, which is applied to the voice technology in computer technology to solve the problem that in the prior art, when it is inconvenient for the user to directly operate the mobile terminal by hand, it is impossible to truly realize the control by voice. How to control the technical problems of APP.
  • the acquisition, storage and application of the user's personal information involved are in compliance with relevant laws and regulations, and do not violate public order and good customs.
  • the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
  • the present disclosure also provides a computer program product.
  • the computer program product includes: a computer program, the computer program is stored in a readable storage medium, and at least one processor of an electronic device can read the program from the readable storage medium. Taking a computer program, at least one processor executes the computer program so that the electronic device executes the solution provided by any one of the above embodiments.
  • FIG. 8 shows a schematic block diagram of an example electronic device 800 that may be used to implement embodiments of the present disclosure.
  • Electronic device is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers.
  • Electronic devices may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smart phones, wearable devices, and other similar computing devices.
  • the components shown herein, their connections and relationships, and their functions, are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
  • the device 1200 includes a computing unit 1201 that can execute according to a computer program stored in a read-only memory (ROM) 1202 or loaded from a storage unit 1208 into a random-access memory (RAM) 1203. Various appropriate actions and treatments. In the RAM 1203, various programs and data necessary for the operation of the device 1200 can also be stored.
  • the computing unit 1201, ROM 1202, and RAM 1203 are connected to each other through a bus 1204.
  • An input/output (I/O) interface 1205 is also connected to the bus 1204 .
  • the I/O interface 1205 includes: an input unit 1206, such as a keyboard, a mouse, etc.; an output unit 1207, such as various types of displays, speakers, etc.; a storage unit 1208, such as a magnetic disk, an optical disk, etc. ; and a communication unit 1209, such as a network card, a modem, a wireless communication transceiver, and the like.
  • the communication unit 1209 allows the device 1200 to exchange information/data with other devices over a computer network such as the Internet and/or various telecommunication networks.
  • the computing unit 1201 may be various general-purpose and/or special-purpose processing components with processing and computing capabilities. Some examples of computing units 1201 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc.
  • the computing unit 1201 executes various methods and processes described above, for example, a method of controlling a program by voice.
  • the method of controlling a program by voice may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 1208 .
  • part or all of the computer program may be loaded and/or installed on the device 1200 via the ROM 1202 and/or the communication unit 1209.
  • the computer program When the computer program is loaded into the RAM 1203 and executed by the computing unit 1201, one or more steps of the above-described method of controlling the program by voice can be performed.
  • the computing unit 1201 may be configured in any other suitable way (for example, by means of firmware) to execute the method of controlling the program by voice.
  • Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips Implemented in a system of systems (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof.
  • FPGAs field programmable gate arrays
  • ASICs application specific integrated circuits
  • ASSPs application specific standard products
  • SOC system of systems
  • CPLD load programmable logic device
  • computer hardware firmware, software, and/or combinations thereof.
  • programmable processor can be special-purpose or general-purpose programmable processor, can receive data and instruction from storage system, at least one input device, and at least one output device, and transmit data and instruction to this storage system, this at least one input device, and this at least one output device an output device.
  • Program codes for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special purpose computer, or other programmable data processing devices, so that the program codes, when executed by the processor or controller, make the functions/functions specified in the flow diagrams and/or block diagrams Action is implemented.
  • the program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device.
  • a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • a machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM compact disk read only memory
  • magnetic storage or any suitable combination of the foregoing.
  • the systems and techniques described herein can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user. ); and a keyboard and pointing device (eg, a mouse or a trackball) through which a user can provide input to the computer.
  • a display device e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor
  • a keyboard and pointing device eg, a mouse or a trackball
  • Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and can be in any form (including Acoustic input, speech input or, tactile input) to receive input from the user.
  • the systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., as a a user computer having a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system.
  • the components of the system can be interconnected by any form or medium of digital data communication, eg, a communication network. Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN) and the Internet.
  • a computer system may include clients and servers.
  • Clients and servers are generally remote from each other and typically interact through a communication network.
  • the relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other.
  • the server can be a cloud server, also known as cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the problem of traditional physical host and VPS service ("Virtual Private Server", or "VPS”) Among them, there are defects such as difficult management and weak business scalability.
  • the server can also be a server of a distributed system, or a server combined with a blockchain.
  • steps may be reordered, added or deleted using the various forms of flow shown above.
  • each step described in the present disclosure may be executed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in the present disclosure can be achieved, no limitation is imposed herein.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • General Health & Medical Sciences (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A method for controlling a third-party program by means of speech, and a device and a program product. The method comprises: in response to a speech instruction, which is initiated by a user, determining instruction information corresponding to the speech instruction, wherein instruction information of a third-party program is stored in a speech recognition program (201); if it is determined that there are a plurality of pieces of instruction information corresponding to the speech instruction, then generating prompt information, wherein the plurality of pieces of instruction information corresponding to the speech instruction are respectively of different third-party programs, and the prompt information is used for prompting the user to specify a third-party program (202); and in response to a specifying instruction, which is initiated by the user, determining, from among the plurality of pieces of instruction information corresponding to the speech instruction, target instruction information corresponding to a third-party program indicated by the specifying instruction, and sending an operable instruction, which is in the target instruction information, to the third-party program indicated by the specifying instruction for response processing (203). By means of the method, a user can control, by means of speech, a third-party program that does not have a speech recognition function.

Description

通过语音方式控制程序的方法、设备及程序产品Method, device and program product for controlling program by voice
本公开要求于2021年7月23日提交中国专利局、申请号为2021108397546、申请名称为“通过语音方式控制程序的方法、设备及程序产品”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This disclosure claims the priority of the Chinese patent application with application number 2021108397546 and titled "Method, device and program product for controlling program by voice" filed with China Patent Office on July 23, 2021, the entire contents of which are incorporated by reference incorporated in this disclosure.
技术领域technical field
本公开涉及计算机技术中的语音技术,尤其涉及一种通过语音方式控制程序的方法、设备及程序产品。The present disclosure relates to voice technology in computer technology, in particular to a method, device and program product for controlling programs by voice.
背景技术Background technique
目前,移动终端中设置有大量的App,用户可以操作用户终端启动App,并使用启动的APP。At present, a large number of Apps are installed in the mobile terminal, and the user can operate the user terminal to start the App, and use the started APP.
现有技术中,用户可以通过多种方式操作移动终端,使其运行指定的App,比如可以通过触控的方式操作移动终端使其运行App,再比如可以通过语音助手调起某一个App。In the prior art, a user can operate a mobile terminal in various ways to make it run a specified App, for example, the mobile terminal can be operated by touch to make it run an App, or a certain App can be invoked through a voice assistant.
一般情况下,在用户不方便直接操作手机时,会采用语音方式调起APP,但是,在APP启动后,若APP本身不具备语音识别功能,则用户只能采用触控的方式操作该APP。因此,现有技术中在用户不方便用手直接操作移动终端时,无法真正实现通过语音方式操控APP。Under normal circumstances, when the user is inconvenient to directly operate the mobile phone, the APP will be called up by voice. However, after the APP is started, if the APP itself does not have the voice recognition function, the user can only operate the APP by touch. Therefore, in the prior art, when the user is inconvenient to directly operate the mobile terminal with hands, it is impossible to truly control the APP by voice.
发明内容Contents of the invention
本公开提供了一种通过语音方式控制程序的方法、设备及程序产品,以解决现有技术中在用户不方便用手直接操作移动终端时,无法真正实现通过语音方式操控APP的技术问题。The present disclosure provides a method, device and program product for controlling a program by voice, so as to solve the technical problem in the prior art that it is impossible to control an APP by voice when it is inconvenient for the user to directly operate the mobile terminal by hand.
根据本公开的第一方面,提供了一种通过语音方式控制程序的方法,所述方法应用于电子设备的语音识别程序,所述电子设备中运行有语音识别程序和多个第三方程序,所述方法包括:According to the first aspect of the present disclosure, a method for controlling a program by voice is provided, the method is applied to a voice recognition program of an electronic device, and the electronic device runs a voice recognition program and a plurality of third-party programs, so that The methods described include:
响应于用户发起的语音指令,确定与所述语音指令对应的指令信息,其中,在所 述语音识别程序中存储有所述第三方程序的指令信息;In response to a voice command initiated by the user, determine command information corresponding to the voice command, wherein the voice recognition program stores the command information of the third-party program;
若确定具有多个与所述语音指令对应的指令信息,则生成提示信息,其中,多个与所述语音指令对应的指令信息分别属于不同的第三方程序,所述提示信息用于提示用户指定第三方程序;If it is determined that there are multiple instruction information corresponding to the voice instruction, prompt information is generated, wherein the plurality of instruction information corresponding to the voice instruction respectively belong to different third-party programs, and the prompt information is used to prompt the user to specify third party programs;
响应于用户发起的指定指令,在多个与所述语音指令对应的指令信息中确定与所述指定指令所指示的第三方程序对应的目标指令信息,并将所述目标指令信息中的可操作指令发送给所述指定指令所指示的第三方程序进行响应处理。In response to a specified instruction initiated by the user, determine the target instruction information corresponding to the third-party program indicated by the specified instruction among the plurality of instruction information corresponding to the voice instruction, and set the operable target instruction information in the target instruction information to The instruction is sent to the third-party program indicated by the specified instruction for response processing.
根据本公开的第二方面,提供了一种通过语音方式控制程序的方法,所述方法应用于电子设备的第三方程序,所述电子设备中运行有语音识别程序和多个第三方程序,所述方法包括:According to the second aspect of the present disclosure, there is provided a method for controlling a program by voice, the method is applied to a third-party program of an electronic device, and the electronic device runs a voice recognition program and multiple third-party programs, so The methods described include:
接收语音识别程序发送的可操作性指令;其中,所述可操作指令是基于用户的指定指令在多个指令信息中确定的,多个所述指令信息是根据用户的语音指令确定的分别属于不同的第三方程序的信息;在所述语音识别程序中存储有第三方程序的指令信息;Receive the operable instruction sent by the voice recognition program; wherein, the operable instruction is determined in a plurality of instruction information based on the user's designated instruction, and the plurality of instruction information are determined according to the user's voice instruction and belong to different The information of the third-party program; the instruction information of the third-party program is stored in the speech recognition program;
根据所述可操作指令,完成响应处理。According to the operable instruction, the response processing is completed.
根据本公开的第三方面,提供了一种通过语音方式控制程序的装置,所述装置应用于电子设备的语音识别程序,所述电子设备中运行有语音识别程序和多个第三方程序,所述装置包括:According to a third aspect of the present disclosure, there is provided a device for controlling programs by voice, the device is applied to a voice recognition program of an electronic device, and the electronic device runs a voice recognition program and a plurality of third-party programs, so Said devices include:
确定单元,用于响应于用户发起的语音指令,确定与所述语音指令对应的指令信息,其中,在所述语音识别程序中存储有所述第三方程序的指令信息;a determining unit, configured to determine instruction information corresponding to the voice instruction in response to the voice instruction initiated by the user, wherein the instruction information of the third-party program is stored in the voice recognition program;
提示单元,用于若确定具有多个与所述语音指令对应的指令信息,则生成提示信息,其中,多个与所述语音指令对应的指令信息分别属于不同的第三方程序,所述提示信息用于提示用户指定第三方程序;A prompting unit, configured to generate prompt information if it is determined that there are multiple command information corresponding to the voice command, wherein the multiple command information corresponding to the voice command respectively belong to different third-party programs, and the prompt information Used to prompt the user to specify a third-party program;
控制单元,用于响应于用户发起的指定指令,在多个与所述语音指令对应的指令信息中确定与所述指定指令所指示的第三方程序对应的目标指令信息,并将所述目标指令信息中的可操作指令发送给所述指定指令所指示的第三方程序进行响应处理。a control unit, configured to, in response to a designated instruction initiated by a user, determine, among a plurality of instruction information corresponding to the voice instruction, target instruction information corresponding to the third-party program indicated by the designated instruction, and send the target instruction to The operable instruction in the information is sent to the third-party program indicated by the specified instruction for response processing.
根据本公开的第四方面,提供了一种通过语音方式控制程序的装置,所述装置应用于电子设备的第三方程序,所述电子设备中运行有语音识别程序和多个第三方程序,所述装置包括:According to a fourth aspect of the present disclosure, there is provided an apparatus for controlling a program by voice, the apparatus is applied to a third-party program of an electronic device, and a speech recognition program and multiple third-party programs run in the electronic device, so Said devices include:
接收单元,用于接收语音识别程序发送的可操作性指令;其中,所述可操作指令是基于用户的指定指令在多个指令信息中确定的,多个所述指令信息是根据用户的语 音指令确定的分别属于不同的第三方程序的信息;在所述语音识别程序中存储有第三方程序的指令信息;The receiving unit is configured to receive the operable instruction sent by the speech recognition program; wherein, the operable instruction is determined in a plurality of instruction information based on the user's designated instruction, and the plurality of instruction information is based on the user's voice instruction The determined information respectively belongs to different third-party programs; the instruction information of the third-party programs is stored in the speech recognition program;
响应单元,用于根据所述可操作指令,完成响应处理。A response unit, configured to complete response processing according to the operable instruction.
根据本公开的第五方面,提供了一种电子设备,包括:According to a fifth aspect of the present disclosure, there is provided an electronic device, comprising:
至少一个处理器;以及at least one processor; and
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如第一方面或第二方面所述的方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the method described in the first aspect or the second aspect. method.
根据本公开的第六方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行如第一方面或第二方面所述的方法。According to a sixth aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to make the computer execute the method as described in the first aspect or the second aspect .
根据本公开的第七方面,提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序,所述计算机程序存储在可读存储介质中,电子设备的至少一个处理器可以从所述可读存储介质读取所述计算机程序,所述至少一个处理器执行所述计算机程序使得电子设备执行第一方面或第二方面所述的方法。According to a seventh aspect of the present disclosure, there is provided a computer program product, the computer program product comprising: a computer program stored in a readable storage medium, at least one processor of an electronic device can read from the The computer program is read by reading the storage medium, and the at least one processor executes the computer program so that the electronic device executes the method described in the first aspect or the second aspect.
本公开提供的通过语音方式控制程序的方法、设备及程序产品,语音识别程序中可以存储第三方程序的指令信息,当用户通过语音的方式操控第三方程序时,语音识别程序在存储的多个指令信息中确定出与用户的语音指令对应的指令信息,并且,若确定出多个与用户的语音指令对应的指令信息,则还可以基于用户的指定指令在多个与用户的语音指令对应的指令信息确定目标指令信息,从而能够通过语音识别程序将目标指令信息中的可操作指令发送给用户指定的第三方程序,使得该第三方程序能够响应用户的语音指令,通过这种实施方式,用户可以通过语音的方式控制不具有语音识别功能的第三方程序。The method, device, and program product provided by the present disclosure can store instruction information of a third-party program in the voice recognition program. The instruction information corresponding to the user's voice instruction is determined in the instruction information, and if a plurality of instruction information corresponding to the user's voice instruction is determined, then based on the user's specified instruction, the instruction information corresponding to the user's voice instruction can also be selected. The instruction information determines the target instruction information, so that the operable instructions in the target instruction information can be sent to the third-party program designated by the user through the voice recognition program, so that the third-party program can respond to the user's voice instruction. Through this implementation, the user Third-party programs that do not have voice recognition functions can be controlled by voice.
应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will be readily understood through the following description.
附图说明Description of drawings
附图用于更好地理解本方案,不构成对本公开的限定。其中:The accompanying drawings are used to better understand the present solution, and do not constitute a limitation to the present disclosure. in:
图1为一示例性实施例示出的使用语音方式唤醒程序的示意图;Fig. 1 is a schematic diagram of a wake-up program using voice mode shown in an exemplary embodiment;
图2为本公开第一示例性实施例示出的通过语音方式控制程序的方法的流程示意图;FIG. 2 is a schematic flowchart of a method for controlling a program by voice according to the first exemplary embodiment of the present disclosure;
图3为本公开一示例性实施例示出的界面示意图;Fig. 3 is a schematic interface diagram of an exemplary embodiment of the present disclosure;
图4为本公开第二示例性实施例示出的通过语音方式控制程序的方法的流程示意图;Fig. 4 is a schematic flowchart of a method for controlling a program by voice according to a second exemplary embodiment of the present disclosure;
图5为本公开第三示例性实施例示出的通过语音方式控制程序的方法的流程示意图;FIG. 5 is a schematic flowchart of a method for controlling a program by voice according to a third exemplary embodiment of the present disclosure;
图6为本公开第四示例性实施例示出的通过语音方式控制程序的方法的流程示意图;FIG. 6 is a schematic flowchart of a method for controlling a program by voice according to a fourth exemplary embodiment of the present disclosure;
图7为本公开第五示例性实施例示出的通过语音方式控制程序的方法的流程示意图;FIG. 7 is a schematic flowchart of a method for controlling a program by voice according to a fifth exemplary embodiment of the present disclosure;
图8为本公开第一示例性实施例示出的通过语音方式控制程序的装置的结构示意图;Fig. 8 is a schematic structural diagram of an apparatus for controlling a program by voice according to the first exemplary embodiment of the present disclosure;
图9为本公开第二示例性实施例示出的通过语音方式控制程序的装置的结构示意图;FIG. 9 is a schematic structural diagram of an apparatus for controlling a program by voice according to a second exemplary embodiment of the present disclosure;
图10为本公开第三示例性实施例示出的通过语音方式控制程序的装置的结构示意图;FIG. 10 is a schematic structural diagram of an apparatus for controlling a program by voice according to a third exemplary embodiment of the present disclosure;
图11为本公开第四示例性实施例示出的通过语音方式控制程序的装置的结构示意图;Fig. 11 is a schematic structural diagram of an apparatus for controlling a program by voice according to a fourth exemplary embodiment of the present disclosure;
图12为用来实现本公开实施例的通过语音方式控制程序的方法的电子设备的框图。FIG. 12 is a block diagram of an electronic device for implementing the method for controlling a program by voice according to an embodiment of the present disclosure.
具体实施方式detailed description
以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
图1为一示例性实施例示出的使用语音方式唤醒程序的示意图。Fig. 1 is a schematic diagram of an exemplary embodiment showing a procedure for waking up by voice.
如图1所示,用户11可以说出语音指令,移动终端12中可以设置有语音识别程序。移动终端12可以利用内置的语音识别程序识别语音指令的内容,并根据语音指令的内容执行响应的操作。As shown in FIG. 1 , the user 11 can speak a voice command, and the mobile terminal 12 can be provided with a voice recognition program. The mobile terminal 12 can use a built-in voice recognition program to recognize the content of the voice command, and perform corresponding operations according to the content of the voice command.
例如,当语音指令的内容为“启动程序A”时,移动终端12可以运行程序A,其 界面从状态13更新为状态14。For example, when the content of the voice instruction is "start program A", the mobile terminal 12 can run program A, and its interface is updated from state 13 to state 14.
若程序A具备语音识别功能,则用户可以继续基于语音控制的方式控制程序A,若程序A不具备语音识别功能,则用户继续基于语音方式控制程序A时,程序A无法做出响应。If program A has voice recognition function, the user can continue to control program A based on voice control; if program A does not have voice recognition function, program A cannot respond when the user continues to control program A based on voice control.
尤其是在用户不方便使用双手控制移动终端时,移动终端只能够基于用户的语音指令启动一个应用程序,但是无法继续基于用户的语音指令操控应用程序。Especially when the user is inconvenient to use both hands to control the mobile terminal, the mobile terminal can only start an application program based on the user's voice command, but cannot continue to control the application program based on the user's voice command.
为了解决上述技术问题,本公开提供的方案中,在语音识别程序中存储第三方程序的指令信息,当电子设备接收到用户用于控制第三方程序的语音指令时,语音识别程序能够确定与该语音指令对应的指令信息,并根据指令信息向第三方程序发送可操作指令,使得第三方程序能够响应用户的语音指令。通过这种实施方式,用户不仅能够通过语音方式唤醒第三方程序,还能够控制启动的第三方程序。In order to solve the above technical problems, in the solution provided by the present disclosure, the instruction information of the third-party program is stored in the speech recognition program, and when the electronic device receives the user's voice instruction for controlling the third-party program, the speech recognition program can determine the The instruction information corresponding to the voice instruction, and send an operable instruction to the third-party program according to the instruction information, so that the third-party program can respond to the user's voice instruction. Through this implementation, the user can not only wake up the third-party program by voice, but also control the started third-party program.
图2为本公开一示例性实施例示出的通过语音方式控制程序的方法的流程示意图。Fig. 2 is a schematic flowchart of a method for controlling a program by voice according to an exemplary embodiment of the present disclosure.
本公开提供的通过语音方式控制程序的方法应用于电子设备的语音识别程序,电子设备可以基于该语音识别程序的功能执行本公开的方法。The method for controlling a program by voice in the present disclosure is applied to a voice recognition program of an electronic device, and the electronic device can execute the method of the present disclosure based on the function of the voice recognition program.
图3为本公开一示例性实施例示出的界面示意图。Fig. 3 is a schematic diagram of an interface according to an exemplary embodiment of the present disclosure.
如图3所示,在电子设备中运行有语音识别程序31和多个第三方程序32。电子设备接收到语音指令后,可以由其中设置的语音识别程序31对语音指令进行处理。As shown in FIG. 3 , a speech recognition program 31 and multiple third-party programs 32 are running in the electronic device. After the electronic device receives the voice command, the voice recognition program 31 provided therein can process the voice command.
其中,第三方程序是不同于语音识别程序的程序。Wherein, the third-party program is a program different from the speech recognition program.
请继续参考图2,本公开提供的通过语音方式控制程序的方法,包括:Please continue to refer to FIG. 2 , the method for controlling programs by voice provided by the present disclosure includes:
步骤201,响应于用户发起的语音指令,确定与语音指令对应的指令信息,其中,在语音识别程序中存储有第三方程序的指令信息。 Step 201, in response to a voice command initiated by a user, determine command information corresponding to the voice command, wherein the voice recognition program stores command information of a third-party program.
具体的,在语音识别程序中存储有任一个或多个第三方程序的指令信息。比如,在第三方程序运行过程中,可以向语音识别程序发送指令注册信息,进而使语音识别程序存储该第三方程序的指令信息。实际应用时,语音识别程序可以存储任一个第三方程序的多个指令信息。Specifically, instruction information of any one or more third-party programs is stored in the speech recognition program. For example, during the running of the third-party program, instruction registration information may be sent to the speech recognition program, and then the speech recognition program may store the instruction information of the third-party program. In actual application, the speech recognition program can store multiple instruction information of any third-party program.
进一步的,用户发起的语音指令可以是用于控制任一个第三方程序的指令,电子设备接收到该语音指令后,可以通过内置的语音识别程序对其进行处理。Further, the voice command initiated by the user may be an command for controlling any third-party program, and the electronic device may process the voice command through a built-in voice recognition program after receiving the voice command.
一种可选的实施方式中,每条指令信息中可以包括指令内容,语音识别程序可以根据语音指令中包括的内容,以及每条指令信息中包括的指令内容,确定与该语音指令对应的指令信息。指令内容例如可以是“上一页”、“下一页”、“声音调大一点”、 “声音调小一点”等等。In an optional implementation, each piece of instruction information may include instruction content, and the voice recognition program may determine the instruction corresponding to the voice instruction according to the content included in the voice instruction and the instruction content included in each piece of instruction information. information. The content of the instruction may be, for example, "previous page", "next page", "turn up the sound", "turn down the sound" and so on.
实际应用时,语音识别程序可以根据预存的第三方程序的指令信息,确定与当前用户发起的语音指令对应的指令信息。比如,语音识别程序存储有程序A、程序B、程序C的指令信息,则可以在这三个程序的指令信息中,确定出与用户发起的语音指令匹配的指令信息。In practical application, the voice recognition program can determine the instruction information corresponding to the voice instruction initiated by the current user according to the pre-stored instruction information of the third-party program. For example, if the voice recognition program stores the instruction information of program A, program B, and program C, the instruction information matching the voice instruction initiated by the user can be determined from the instruction information of these three programs.
例如,用户发起的语音指令中包括“声音调大一点”,则语音识别程序可以在存储的指令信息中查找与“声音调大一点”对应的指令信息。比如程序A为音频播放程序,则程序A可以具有与“声音调大一点”对应的指令信息。这种实施方式中,语音识别程序可以直接获取程序A的与“声音调大一点”对应的指令信息中的可操作指令,并将其发送给程序A,使得程序A执行该可操作指令。For example, if the voice instruction initiated by the user includes "turn up the voice a little bit", the speech recognition program may search the stored instruction information for the instruction information corresponding to "turn up the voice a little bit". For example, program A is an audio player program, then program A may have instruction information corresponding to "turn up the volume". In this embodiment, the speech recognition program can directly obtain the operable instruction in the instruction information corresponding to "turn up the voice" of program A, and send it to program A, so that program A executes the operable instruction.
在一种可选的实施方式中,再比如程序B为通信程序,其也可以具有与“声音调大一点”对应的指令信息,则语音识别程序能够确定出这两个与语音指令对应的指令信息。在这种情况下,可以执行步骤202。In an optional implementation, for example, if program B is a communication program, it may also have instruction information corresponding to "turn up the voice a little bit", then the voice recognition program can determine the two instructions corresponding to the voice instruction information. In this case, step 202 may be performed.
步骤202,若确定具有多个与语音指令对应的指令信息,则生成提示信息,其中,多个与语音指令对应的指令信息分别属于不同的第三方程序,提示信息用于提示用户指定第三方程序。 Step 202, if it is determined that there are a plurality of instruction information corresponding to the voice instruction, generate prompt information, wherein the plurality of instruction information corresponding to the voice instruction belong to different third-party programs, and the prompt information is used to prompt the user to specify a third-party program .
若具有多个与语音指令对应的指令信息,这多个与语音指令对应的指令信息分别属于不同的第三方程序,则语音识别程序需要确定用户希望操控的第三方程序,并在多个指令信息中筛选出该第三方程序的指令信息,进而基于该指令信息控制第三方程序。If there are multiple command information corresponding to voice commands, and the multiple command information corresponding to voice commands belong to different third-party programs, the voice recognition program needs to determine the third-party program that the user wants to control, and The instruction information of the third-party program is screened out, and then the third-party program is controlled based on the instruction information.
实际应用时,语音识别程序可以生成提示信息,用于提示用户指定第三方程序。该提示信息可以是语音形式的提示信息,还可以是图文形式的提示信息,本公开实施例不对此进行限制。In actual application, the voice recognition program may generate prompt information for prompting the user to specify a third-party program. The prompt information may be prompt information in the form of voice, or prompt information in the form of graphics and text, which is not limited in this embodiment of the present disclosure.
其中,用户可以通过语音方式或触控等方式指定第三方程序。比如,用户可以说出指定的第三方程序。再比如,通过图文形式展示提示信息时,可以展示多个第三方程序的图标,用户可以通过触控方式在其中指定第三方程序。Wherein, the user may designate the third-party program by means of voice or touch. For example, the user can name a specific third-party program. For another example, when the prompt information is displayed in the form of graphics and text, icons of multiple third-party programs may be displayed, and the user may specify the third-party program among them by touch.
例如,用户发起的语音指令中包括“声音调大一点”,语音识别程序确定出程序A、程序B均具有与该语音指令对应的指令信息。则语音识别程序可以生成用于在程序A、程序B中制定程序的提示信息。此后,用户可以基于提示信息制定第三方程序,例如,可以指定程序A。For example, the voice command initiated by the user includes "turn up the voice a little bit", and the voice recognition program determines that both program A and program B have command information corresponding to the voice command. Then the speech recognition program can generate prompt information for formulating programs in program A and program B. Thereafter, the user can formulate a third-party program based on the prompt information, for example, program A can be specified.
步骤203,响应于用户发起的指定指令,在多个与语音指令对应的指令信息中确 定与指定指令所指示的第三方程序对应的目标指令信息,并将目标指令信息中的可操作指令发送给指定指令所指示的第三方程序进行响应处理。 Step 203, in response to the designated instruction initiated by the user, determine the target instruction information corresponding to the third-party program indicated by the designated instruction among the plurality of instruction information corresponding to the voice instruction, and send the operable instruction in the target instruction information to The third-party program indicated by the specified command performs response processing.
具体的,语音识别程序可以响应用户发起的指定指令,从而确定出用户指定的第三方程序。还可以在确定的与语音指令对应的多个指令信息中,确定出与用户指定的第三方程序对应的目标指令信息。Specifically, the speech recognition program can respond to a specified instruction initiated by the user, thereby determining the third-party program specified by the user. The target instruction information corresponding to the third-party program specified by the user may also be determined among the plurality of determined instruction information corresponding to the voice instruction.
例如,语音识别程序确定的与用户的语音指令对应的两条指令信息,其中一条为程序A的指令信息,另一条为程序B的指令信息。若用户指定的第三方程序为程序A,则语音识别程序将多条指令信息中程序A的指令信息作为目标指令信息。For example, two pieces of instruction information corresponding to the user's voice instruction determined by the speech recognition program, one of which is the instruction information of program A, and the other is the instruction information of program B. If the third-party program designated by the user is program A, the speech recognition program uses the instruction information of program A among the pieces of instruction information as the target instruction information.
进一步的,指令信息中可以包括具体的可操作指令。例如,一条指令信息中的指令内容为“上一页”时,该指令信息中的可操作指令为“back”,该指令信息中还可以包括程序信息,例如可以包括程序A。Further, the instruction information may include specific operable instructions. For example, when the instruction content in a piece of instruction information is "previous page", the operable instruction in the instruction information is "back", and the instruction information may also include program information, such as program A.
实际应用时,语音识别程序可以将目标指令信息中的可操作指令发送给指定指令所指示的第三方程序,比如,将目标指令信息中的可操作指令发送给程序A。In actual application, the voice recognition program may send the operable instructions in the target instruction information to the third-party program indicated by the specified instruction, for example, send the operable instructions in the target instruction information to program A.
一种实施方式中,语音识别程序可以直接将可操作指令发送给程序A,还可以将可操作指令发送给电子设备的系统,再由系统向程序A转发。In one embodiment, the speech recognition program can directly send the operable instructions to program A, and can also send the operable instructions to the system of the electronic device, and then the system forwards the operable instructions to program A.
指定指令指示的第三方程序接收到可操作指令后,可以执行相应的指令,从而做出响应。由于该可操作指令与用户的语音指令对应,因此,第三方程序执行该可操作指令时,能够达到响应用户的语音指令的效果,进而使用户可以通过语音的方式控制不具有语音识别功能的第三方程序。After receiving the operable instruction, the third-party program indicated by the specified instruction can execute the corresponding instruction to respond. Since the operable instruction corresponds to the user's voice instruction, when the third-party program executes the operable instruction, it can achieve the effect of responding to the user's voice instruction, so that the user can control the third-party computer without voice recognition function by voice. tripartite procedure.
本公开提供的通过语音方式控制程序的方法,方法应用于电子设备的语音识别程序,电子设备中运行有语音识别程序和多个第三方程序,方法包括:响应于用户发起的语音指令,确定与语音指令对应的指令信息,其中,在语音识别程序中存储有第三方程序的指令信息;若确定具有多个与语音指令对应的指令信息,则生成提示信息,其中,多个与语音指令对应的指令信息分别属于不同的第三方程序,提示信息用于提示用户指定第三方程序;响应于用户发起的指定指令,在多个与语音指令对应的指令信息中确定与指定指令所指示的第三方程序对应的目标指令信息,并将目标指令信息中的可操作指令发送给指定指令所指示的第三方程序进行响应处理。本公开提供的通过语音方式控制程序的方法中,语音识别程序中可以存储第三方程序的指令信息,当用户通过语音的方式操控第三方程序时,语音识别程序在存储的多个指令信息中确定出与用户的语音指令对应的指令信息,并且,若确定出多个与用户的语音指令对应的指令信息,则还可以基于用户的指定指令在多个与用户的语音指令对应的指令信息确 定目标指令信息,从而能够通过语音识别程序将目标指令信息中的可操作指令发送给用户指定的第三方程序,使得该第三方程序能够响应用户的语音指令,通过这种实施方式,用户可以通过语音的方式控制不具有语音识别功能的第三方程序。The method for controlling a program by voice provided by the present disclosure is applied to a voice recognition program of an electronic device, and the electronic device runs a voice recognition program and multiple third-party programs. The method includes: responding to a voice command initiated by a user, determining and The instruction information corresponding to the voice instruction, wherein, the instruction information of the third-party program is stored in the voice recognition program; if it is determined that there are multiple instruction information corresponding to the voice instruction, prompt information is generated, wherein the multiple The instruction information respectively belongs to different third-party programs, and the prompt information is used to prompt the user to specify the third-party program; in response to the specified instruction initiated by the user, the third-party program indicated by the specified instruction is determined in multiple instruction information corresponding to the voice instruction corresponding target instruction information, and send the operable instructions in the target instruction information to the third-party program indicated by the specified instruction for response processing. In the method for controlling a program by voice provided in the present disclosure, the voice recognition program can store instruction information of a third-party program, and when the user manipulates a third-party program by voice, the voice recognition program determines the The instruction information corresponding to the user's voice instruction is obtained, and if a plurality of instruction information corresponding to the user's voice instruction is determined, then the target can also be determined based on the user's designated instruction among the plurality of instruction information corresponding to the user's voice instruction. Instruction information, so that the operable instructions in the target instruction information can be sent to the third-party program specified by the user through the voice recognition program, so that the third-party program can respond to the user's voice instructions. way to control third-party programs that do not have speech recognition.
图4为本公开第二示例性实施例示出的通过语音方式控制程序的方法的流程示意图。Fig. 4 is a schematic flowchart of a method for controlling a program by voice according to a second exemplary embodiment of the present disclosure.
本公开提供的通过语音方式控制程序的方法应用于电子设备的语音识别程序,电子设备可以基于该语音识别程序的功能执行本公开的方法。在电子设备中运行有语音识别程序和多个第三方程序。The method for controlling a program by voice in the present disclosure is applied to a voice recognition program of an electronic device, and the electronic device can execute the method of the present disclosure based on the function of the voice recognition program. A speech recognition program and multiple third-party programs run in the electronic device.
请继续参考图4,本公开提供的通过语音方式控制程序的方法,包括:Please continue to refer to FIG. 4 , the method for controlling a program by voice provided by the present disclosure includes:
步骤401,响应用于启动第三方程序的启动指令,启动第三方程序。Step 401: Start the third-party program in response to the start instruction for starting the third-party program.
其中,用户可以向电子设备发送用于启动第三方程序的启动指令,该启动指令例如可以是语音形式的指令。比如,用户可以说出“启动程序A”,则可以由电子设备中设置的语音识别程序处理该语音指令。Wherein, the user may send an activation instruction for activating the third-party program to the electronic device, and the activation instruction may be, for example, an instruction in voice form. For example, the user can say "start program A", then the voice command can be processed by the voice recognition program set in the electronic device.
一种可选的实施方式中,语音识别程序接收到语音形式的启动指令后,可以直接启动相应的程序。比如,第三方程序可以设置有接口,使得语音识别程序能够通过该接口启动第三方程序。In an optional implementation manner, the voice recognition program can directly start the corresponding program after receiving the start instruction in voice form. For example, the third-party program may be provided with an interface, so that the speech recognition program can start the third-party program through the interface.
另一种实施方式中,语音识别程序接收到语音形式的启动指令后,可以将语音形式的启动指令转换为控制指令,并将控制指令发送给电子设备的系统,再由电子设备的系统基于该控制指令启动第三方程序。In another embodiment, after the voice recognition program receives the start command in the voice form, it can convert the start command in the voice form into a control command, and send the control command to the system of the electronic device, and then the system of the electronic device based on the The control instruction starts a third-party program.
通过这种实施方式中,用户可以通过语音的方式启动第三方程序,在用户不方便用手触控电子设备时,可以通过语音控制的方式启动第三方程序。In this embodiment, the user can start the third-party program by voice, and when it is inconvenient for the user to touch the electronic device by hand, the third-party program can be started by voice control.
步骤402,响应于用户发起的语音指令,确定语音内容。Step 402: Determine the voice content in response to the voice instruction initiated by the user.
其中,用户可以通过语音指令控制第三方程序,比如,可以说出语音内容“上一页”,语音识别程序可以基于语音识别算法确定用户说出的语音指令中包括的语音内容,比如,可以识别出用户说出的语音指令中的语音内容为“上一页”。Among them, the user can control the third-party program through the voice command, for example, can say the voice content "previous page", and the voice recognition program can determine the voice content included in the voice command spoken by the user based on the voice recognition algorithm, for example, can recognize The voice content in the voice command spoken by the user is "previous page".
步骤403,在存储的对应关系中,确定包括语音内容的指令信息;其中,指令信息中包括语音内容、可操作指令。 Step 403, in the stored correspondence, determine instruction information including voice content; wherein, the instruction information includes voice content and operable instructions.
其中,在语音识别程序中存储有所述第三方程序的指令信息。Wherein, instruction information of the third-party program is stored in the speech recognition program.
例如,语音识别程序可以接收第三方程序发送的用于注册可操作指令的指令注册信息。For example, the speech recognition program may receive instruction registration information sent by a third-party program for registering operable instructions.
实际应用时,启动了第三方程序之后,启动了的第三方程序可以向语音识别程序发送用于注册可操作指令的指令注册信息。In actual application, after the third-party program is started, the started third-party program may send instruction registration information for registering operable instructions to the speech recognition program.
其中,第三方程序可以根据运行过程中可以支持的可操作指令确定指令注册信息,并将注册指令发送给语音识别程序。Wherein, the third-party program can determine the instruction registration information according to the operable instructions that can be supported during the running process, and send the registration instruction to the voice recognition program.
具体的,第三方程序还可以根据程序当前界面中包括的可操作控件,确定在程序当前界面中可以支持的可操作指令,并将用于注册这些可操作指令的指令注册信息发送给语音识别程序。例如,程序当前界面中支持“下一页”、“上一页”、“确定”的可操作指令,则该第三方程序可以向语音识别程序发送用于注册“下一页、上一页、确定”的可操作指令的指令注册信息。Specifically, the third-party program can also determine the operable instructions that can be supported in the current interface of the program according to the operable controls included in the current interface of the program, and send the instruction registration information for registering these operable instructions to the voice recognition program . For example, if the current interface of the program supports the operable instructions of "next page", "previous page" and "OK", then the third-party program can send a voice recognition program to register "next page, previous page, The instruction registration information of the operable instruction of "OK".
进一步的,语音识别程序可以设置有接口,使得第三方程序可以通过该接口向语音识别程序发送指令注册信息。第三方程序还可以向电子设备的系统发送指令注册信息,由系统向语音识别程序转发该指令注册信息。Furthermore, the speech recognition program may be provided with an interface, so that a third-party program may send instruction registration information to the speech recognition program through the interface. The third-party program can also send instruction registration information to the system of the electronic device, and the system forwards the instruction registration information to the voice recognition program.
语音识别程序还可以根据指令注册信息存储第三方程序与指令信息间的对应关系。The speech recognition program can also store the corresponding relationship between the third-party program and the instruction information according to the instruction registration information.
实际应用时,语音识别程序接收到指令注册信息之后,可以根据指令注册信息存储第三方程序与指令信息间的对应关系。比如,程序A向语音识别程序发送了指令注册信息,则语音识别程序可以根据该指令注册信息确定指令信息,并存储程序A与指令信息之间的关联关系。In practical applications, after receiving the instruction registration information, the speech recognition program may store the correspondence between the third-party program and the instruction information according to the instruction registration information. For example, if program A sends instruction registration information to the speech recognition program, the speech recognition program can determine the instruction information according to the instruction registration information, and store the relationship between program A and the instruction information.
通过这种实施方式,语音识别程序可以根据第三方程序发送的指令注册信息存储第三方程序与指令信息间的对应关系,进而使得语音识别程序能够根据用户的语音指令控制第三方程序,从而达到用户可以通过语音方式控制不具有语音识别功能的第三方程序的效果。Through this implementation, the speech recognition program can store the correspondence between the third-party program and the instruction information according to the instruction registration information sent by the third-party program, so that the speech recognition program can control the third-party program according to the user's voice instruction, thereby reaching the user's The effects of third-party programs that do not have voice recognition can be controlled by voice.
一种实施方式中,第三方程序向语音识别程序发送的指令注册信息中可以包括可操作指令,这种实施方式中,语音识别程序可以确定与各可操作指令对应的指令内容,从而得到包括可操作指令及其对应的指令内容的指令信息,还可以存储第三方程序与指令信息之间的关联关系。In one embodiment, the instruction registration information sent by the third-party program to the voice recognition program may include operable instructions. In this embodiment, the voice recognition program may determine the instruction content corresponding to each operable instruction, so as to obtain the The instruction information of the operation instruction and its corresponding instruction content may also store the association relationship between the third-party program and the instruction information.
另一种实施方式中,第三方程序向语音识别程序发送的指令注册信息中可以包括可操作指令及其对应的指令内容,语音识别程序可以直接存储第三方程序与指令信息之间的关联关系,指令信息包括可操作指令及其对应的指令内容。In another embodiment, the instruction registration information sent by the third-party program to the voice recognition program may include operable instructions and their corresponding instruction content, and the voice recognition program may directly store the relationship between the third-party program and the instruction information, The instruction information includes operable instructions and corresponding instruction content.
例如,语音识别程序可以通过指令配置表的形式存储指令信息与第三方程序间的关联关系。该指令配置表中可以包括三列内容,一列为指令内容,一列为所属程序,另一列为可操作指令的指令格式。例如,在指令配置表的一行信息中可以包括指令内 容“上一页”、指令格式“back”,所属程序为app1。For example, the speech recognition program may store the association relationship between instruction information and third-party programs in the form of an instruction configuration table. The instruction configuration table may include three columns of content, one column is the content of the instruction, the other column is the program to which it belongs, and the other column is the instruction format of the operable instruction. For example, a line of information in the command configuration table may include command content "previous page", command format "back", and the program it belongs to is app1.
具体的,语音识别程序中存储有指令信息和第三方程序间的对应关系,语音识别程序具体可以在这些对应关系中,确定指令信息中包括上述语音内容的对应关系。Specifically, the voice recognition program stores correspondences between instruction information and third-party programs, and the voice recognition program may specifically determine, among these correspondences, that the instruction information includes the above-mentioned voice content correspondence.
比如,在存储的对应关系中包括两条对应关系,对应关系1中包括指令信息1与app1之间的对应关系;对应关系2中包括指令信息2与app2之间的对应关系。在指令信息1中包括的语音内容为“上一页”,在指令信息2中包括的语音内容为“上一页”。For example, the stored correspondence includes two correspondences, correspondence 1 includes the correspondence between instruction information 1 and app1; correspondence 2 includes the correspondence between instruction information 2 and app2. The voice content included in the command information 1 is "previous page", and the voice content included in the command information 2 is "previous page".
进一步的,若用户做出的语音指令中包括语音内容“上一页”,则语音识别程序可以确定包括该语音内容的指令信息1和指令信息2。Further, if the voice instruction made by the user includes the voice content "previous page", the voice recognition program can determine the instruction information 1 and the instruction information 2 including the voice content.
通过这种实施方式中,语音识别程序能够基于预先存储的指令信息与第三方程序间的对应关系,确定与用户做出的语音指令对应的指令信息,进而可以将语音指令转换为指令信息,以实现利用确定的指令信息控制第三方程序的目的。In this embodiment, the voice recognition program can determine the command information corresponding to the voice command made by the user based on the correspondence between the pre-stored command information and the third-party program, and then convert the voice command into command information to The purpose of using the determined instruction information to control the third-party program is realized.
步骤404,若确定具有多个与语音指令对应的指令信息,则生成提示信息,其中,多个与语音指令对应的指令信息分别属于不同的第三方程序,提示信息用于提示用户指定第三方程序。 Step 404, if it is determined that there are a plurality of instruction information corresponding to the voice instruction, generate prompt information, wherein the plurality of instruction information corresponding to the voice instruction belong to different third-party programs, and the prompt information is used to prompt the user to specify a third-party program .
步骤405,响应于用户发起的指定指令,在多个与语音指令对应的指令信息中确定与指定指令所指示的第三方程序对应的目标指令信息,并将目标指令信息中的可操作指令发送给指定指令所指示的第三方程序进行响应处理。 Step 405, in response to the specified instruction initiated by the user, determine the target instruction information corresponding to the third-party program indicated by the specified instruction among the plurality of instruction information corresponding to the voice instruction, and send the operable instruction in the target instruction information to The third-party program indicated by the specified command performs response processing.
步骤404、405与步骤202、203的实现方式类似,不再赘述。 Steps 404, 405 are implemented in a similar manner to steps 202, 203, and will not be repeated here.
步骤406,接收第三方程序发送的界面变更信息。 Step 406, receiving interface change information sent by a third-party program.
具体的,若第三方程序根据程序界面中支持的可操作指令向语音识别程序发送指令注册信息,则第三方程序在每次发生了界面变更时,都可以向语音识别指令发送界面变更信息。Specifically, if the third-party program sends instruction registration information to the speech recognition program according to the operable instructions supported in the program interface, the third-party program can send interface change information to the speech recognition instruction every time the interface changes.
例如,在第三方程序的界面发生了切换时,该第三方程序可以向语音识别程序发送界面变更信息。For example, when the interface of the third-party program is switched, the third-party program may send interface change information to the speech recognition program.
在一种实施方式中,第三方程序的界面切换后,其可以继续向语音识别程序发送指令注册信息,该信息中可以携带界面变更信息。In one embodiment, after the interface of the third-party program is switched, it may continue to send instruction registration information to the speech recognition program, and the information may carry interface change information.
在另一种实施方式中,第三方程序退出时,其可以向语音识别程序发送界面变更信息。In another implementation manner, when the third-party program exits, it may send interface change information to the speech recognition program.
步骤407,根据界面变更信息更新存储的第三方程序与指令信息间的对应关系。Step 407: Update the stored correspondence between the third-party program and the instruction information according to the interface change information.
进一步的,语音识别程序接收到了第三方程序发送的界面变更信息后,可以更新 存储的该第三方程序与指令信息间的对应关系。Further, after the speech recognition program receives the interface change information sent by the third-party program, it can update the stored correspondence between the third-party program and the instruction information.
由于语音识别程序存储的指令信息是第三方程序的当前界面中可以支持的可操作指令的信息,因此,当第三方程序的界面发生了变化后,语音识别程序中存储的该第三方程序的指令信息也应当被更新,从而使语音识别程序能够根据用户做出的语音指令查找到与之对应的指令信息。Since the instruction information stored in the speech recognition program is the information of the operable instructions that can be supported in the current interface of the third-party program, when the interface of the third-party program changes, the instructions of the third-party program stored in the speech recognition program The information should also be updated, so that the voice recognition program can find the corresponding instruction information according to the voice instruction made by the user.
一种实施方式中,若语音识别程序接收到第三方程序发送的界面变更信息,则语音识别程序可以直接删除该第三方程序的指令信息。In one embodiment, if the speech recognition program receives interface change information sent by a third-party program, the speech recognition program may directly delete the instruction information of the third-party program.
此后,语音识别程序可以继续接收该第三方程序发送的指令注册信息,进而存储与该第三方程序当前界面中支持的可操作指令对应的指令信息。Thereafter, the voice recognition program may continue to receive instruction registration information sent by the third-party program, and then store instruction information corresponding to the operable instructions supported in the current interface of the third-party program.
进一步的,若第三方程序是在退出时向语音识别程序发送的界面变更信息,则第三方程序再次启动前,不会再次向语音识别程序发送指令注册信息。Further, if the third-party program sends interface change information to the speech recognition program when it exits, the third-party program will not send instruction registration information to the speech recognition program again until the third-party program is started again.
实际应用时,第三方程序的界面变更后,语音识别程序能够删除该第三方程序的语音信息,从而避免语音识别程序根据第三方程序历史界面的指令信息对用户的语音指令进行处理,造成误操作的问题。In actual application, after the interface of the third-party program is changed, the voice recognition program can delete the voice information of the third-party program, so as to prevent the voice recognition program from processing the user's voice command according to the command information in the history interface of the third-party program, resulting in misoperation The problem.
在一种可选的实施方式中,本公开提供的方法还包括:In an optional embodiment, the method provided by the present disclosure also includes:
步骤408,若确定一条与语音指令对应的指令信息,则根据该语音指令向该指令信息所属的第三方程序发送可操作指令。 Step 408, if a piece of instruction information corresponding to the voice instruction is determined, send an operable instruction to the third-party program to which the instruction information belongs according to the voice instruction.
若只在预存的指令信息中确定出一条与语音指令对应的指令信息,则语音识别程序可以直接获取该指令信息中的可操作指令,还可以将该可操作指令发送给与语音指令对应的指令信息所属的第三方程序,使得该第三方程序能够响应该可操作指令。If only one command information corresponding to the voice command is determined in the pre-stored command information, the voice recognition program can directly obtain the operable command in the command information, and can also send the operable command to the command corresponding to the voice command The third-party program to which the information belongs enables the third-party program to respond to the operable instruction.
在步骤408之后,也可以执行步骤406、407。After step 408, steps 406 and 407 may also be performed.
图5为本公开第三示例性实施例示出的通过语音方式控制程序的方法的流程示意图。Fig. 5 is a schematic flowchart of a method for controlling a program by voice according to a third exemplary embodiment of the present disclosure.
本公开提供的通过语音方式控制程序的方法应用于电子设备的第三方程序,电子设备可以基于该第三方程序的功能执行本公开的方法。The method for controlling a program by voice in the present disclosure is applied to a third-party program of an electronic device, and the electronic device can execute the method of the present disclosure based on the functions of the third-party program.
在电子设备中运行有语音识别程序和多个第三方程序。任一个第三方程序都可以执行本公开提供的方法。A speech recognition program and multiple third-party programs run in the electronic device. Any third-party program can execute the method provided by the present disclosure.
请继续参考图5,本公开提供的通过语音方式控制程序的方法,包括:Please continue to refer to FIG. 5 , the method for controlling a program by voice provided by the present disclosure includes:
步骤501,接收语音识别程序发送的可操作性指令;其中,可操作指令是基于用户的指定指令在多个指令信息中确定的,多个指令信息是根据用户的语音指令确定的 分别属于不同的第三方程序的信息;在语音识别程序中存储有第三方程序的指令信息。Step 501, receiving the operable instruction sent by the speech recognition program; wherein, the operable instruction is determined in a plurality of instruction information based on the user's specified instruction, and the plurality of instruction information is determined according to the user's voice instruction and belongs to different Information of the third-party program; instruction information of the third-party program is stored in the speech recognition program.
其中,在语音识别程序中存储有任一个或多个第三方程序的指令信息。比如,在第三方程序运行过程中,可以向语音识别程序发送指令注册信息,进而使语音识别程序存储该第三方程序的指令信息。实际应用时,语音识别程序可以存储任一个第三方程序的多个指令信息。Wherein, instruction information of any one or more third-party programs is stored in the speech recognition program. For example, during the running of the third-party program, instruction registration information may be sent to the speech recognition program, and then the speech recognition program may store the instruction information of the third-party program. In actual application, the speech recognition program can store multiple instruction information of any third-party program.
进一步的,用户发起的语音指令可以是用于控制任一个第三方程序的指令,电子设备接收到该语音指令后,可以通过内置的语音识别程序对其进行处理。Further, the voice command initiated by the user may be an command for controlling any third-party program, and the electronic device may process the voice command through a built-in voice recognition program after receiving the voice command.
实际应用时,语音识别程序可以根据预存的第三方程序的指令信息,确定与当前用户发起的语音指令对应的指令信息。比如,语音识别程序存储有程序A、程序B、程序C的指令信息,则可以在这三个程序的指令信息中,确定出与用户发起的语音指令匹配的指令信息。In practical application, the voice recognition program can determine the instruction information corresponding to the voice instruction initiated by the current user according to the pre-stored instruction information of the third-party program. For example, if the voice recognition program stores the instruction information of program A, program B, and program C, the instruction information matching the voice instruction initiated by the user can be determined from the instruction information of these three programs.
其中,若语音识别程序确定具有多个与语音指令对应的指令信息,则生成提示信息,其中,多个与语音指令对应的指令信息分别属于不同的第三方程序,提示信息用于提示用户指定第三方程序。Wherein, if the speech recognition program determines that there are multiple instruction information corresponding to the voice instruction, prompt information is generated, wherein the plurality of instruction information corresponding to the voice instruction respectively belong to different third-party programs, and the prompt information is used to prompt the user to specify the first tripartite procedure.
例如,用户发起的语音指令中包括“声音调大一点”,语音识别程序确定出程序A、程序B均具有与该语音指令对应的指令信息。则语音识别程序可以生成用于在程序A、程序B中制定程序的提示信息。此后,用户可以基于提示信息制定第三方程序,例如,可以指定程序A。For example, the voice command initiated by the user includes "turn up the voice a little bit", and the voice recognition program determines that both program A and program B have command information corresponding to the voice command. Then the speech recognition program can generate prompt information for formulating programs in program A and program B. Thereafter, the user can formulate a third-party program based on the prompt information, for example, program A can be designated.
响应于用户发起的指定指令,在多个与语音指令对应的指令信息中确定与指定指令所指示的第三方程序对应的目标指令信息,并将目标指令信息中的可操作指令发送给指定指令所指示的第三方程序进行响应处理,使得该第三方程序能够接收到可操作指令。In response to a specified instruction initiated by the user, determine the target instruction information corresponding to the third-party program indicated by the specified instruction among the plurality of instruction information corresponding to the voice command, and send the operable instructions in the target instruction information to the specified instruction. The indicated third-party program performs response processing, so that the third-party program can receive the operable instruction.
该可操作指令是语音识别程序根据用户发起的语音指令向第三方程序发送的,即使第三方程序不具备语音识别功能,也可以通过语音控制的方式将可操作指令传递到第三方程序。The operable instruction is sent by the voice recognition program to the third-party program according to the voice instruction initiated by the user. Even if the third-party program does not have the voice recognition function, the operable instruction can be transmitted to the third-party program through voice control.
例如,语音识别程序确定的与用户的语音指令对应的两条指令信息,其中一条为程序A的指令信息,另一条为程序B的指令信息。若用户指定的第三方程序为程序A,则语音识别程序将多条指令信息中程序A的指令信息作为目标指令信息。此后,语音识别程序可以将目标指令信息中的可操作指令发送给程序A。For example, two pieces of instruction information corresponding to the user's voice instruction determined by the speech recognition program, one of which is the instruction information of program A, and the other is the instruction information of program B. If the third-party program designated by the user is program A, the speech recognition program uses the instruction information of program A among the pieces of instruction information as the target instruction information. Thereafter, the voice recognition program can send the operable instructions in the target instruction information to program A.
语音识别程序具体可以根据图2所示实施例示出的方法,向第三方程序发送可操作指令。Specifically, the speech recognition program may send an operable instruction to a third-party program according to the method shown in the embodiment shown in FIG. 2 .
步骤502,根据可操作指令,完成响应处理。 Step 502, complete response processing according to the operable instruction.
指定指令指示的第三方程序接收到可操作指令后,可以执行相应的指令,从而做出响应。由于该可操作指令与用户的语音指令对应,因此,第三方程序执行该可操作指令时,能够达到响应用户的语音指令的效果,进而使用户可以通过语音的方式控制不具有语音识别功能的第三方程序。After receiving the operable instruction, the third-party program indicated by the specified instruction can execute the corresponding instruction to respond. Since the operable instruction corresponds to the user's voice instruction, when the third-party program executes the operable instruction, it can achieve the effect of responding to the user's voice instruction, so that the user can control the third-party computer without voice recognition function by voice. tripartite procedure.
图6为本公开第四示例性实施例示出的通过语音方式控制程序的方法的流程示意图。Fig. 6 is a schematic flowchart of a method for controlling a program by voice according to a fourth exemplary embodiment of the present disclosure.
本公开提供的通过语音方式控制程序的方法应用于电子设备的第三方程序,电子设备可以基于该第三方程序的功能执行本公开的方法。The method for controlling a program by voice in the present disclosure is applied to a third-party program of an electronic device, and the electronic device can execute the method of the present disclosure based on the functions of the third-party program.
在电子设备中运行有语音识别程序和多个第三方程序。任一个第三方程序都可以执行本公开提供的方法。A speech recognition program and multiple third-party programs run in the electronic device. Any third-party program can execute the method provided by the present disclosure.
请继续参考图6,本公开实施例提供的通过语音方式控制程序的方法,包括:Please continue to refer to FIG. 6, the method for controlling a program by voice provided by an embodiment of the present disclosure includes:
步骤601,根据程序当前界面确定可操作指令。 Step 601, determine operable instructions according to the current interface of the program.
其中,第三方程序在启动后,可以根据程序当前界面确定可操作指令。具体可以根据程序当前界面,确定其中支持的可操作指令。Wherein, after the third-party program is started, operable instructions can be determined according to the current interface of the program. Specifically, the operable instructions supported in the program can be determined according to the current interface of the program.
具体的,第三方程序可以获取程序当前界面中包括的可操作控件的信息;再确定与可操作控件对应的可操作指令。Specifically, the third-party program can obtain information about the operable controls included in the current interface of the program; and then determine the operable instructions corresponding to the operable controls.
在一种可选的实施方式中,第三方程序还可以根据可操作指令确定指令内容,从而得到包括可操作指令及其对应的指令内容的指令信息。In an optional implementation manner, the third-party program may also determine instruction content according to the operable instruction, so as to obtain instruction information including the operable instruction and its corresponding instruction content.
步骤602,向语音识别程序发送用于注册可操作指令的注册信息。 Step 602, sending registration information for registering operable instructions to the speech recognition program.
第三方程序还可以将用于注册这些可操作指令的指令注册信息发送给语音识别程序。例如,程序当前界面中支持“下一页”、“上一页”、“确定”的可操作指令,则该第三方程序可以向语音识别程序发送用于注册“下一页、上一页、确定”的可操作指令的指令注册信息。The third-party program can also send instruction registration information for registering these operable instructions to the speech recognition program. For example, if the current interface of the program supports the operable instructions of "next page", "previous page" and "OK", then the third-party program can send a voice recognition program to register "next page, previous page, The instruction registration information of the operable instruction of "OK".
一种实施方式中,第三方程序向语音识别程序发送的指令注册信息中可以包括可操作指令,这种实施方式中,语音识别程序可以确定与各可操作指令对应的指令内容,从而得到包括可操作指令及其对应的指令内容的指令信息,还可以存储第三方程序与指令信息之间的关联关系。In one embodiment, the instruction registration information sent by the third-party program to the voice recognition program may include operable instructions. In this embodiment, the voice recognition program may determine the instruction content corresponding to each operable instruction, so as to obtain the The instruction information of the operation instruction and its corresponding instruction content may also store the association relationship between the third-party program and the instruction information.
另一种实施方式中,第三方程序向语音识别程序发送的指令注册信息中可以包括可操作指令及其对应的指令内容,语音识别程序可以直接存储第三方程序与指令信息 之间的关联关系,指令信息包括可操作指令及其对应的指令内容。In another embodiment, the instruction registration information sent by the third-party program to the voice recognition program may include operable instructions and their corresponding instruction content, and the voice recognition program may directly store the relationship between the third-party program and the instruction information, The instruction information includes operable instructions and corresponding instruction content.
进一步的,第三方程序可以向电子设备的系统发送用于注册指令信息的注册信息,以使系统向语音识别程序发送注册信息。Further, the third-party program may send registration information for registering instruction information to the system of the electronic device, so that the system sends the registration information to the voice recognition program.
另一种实施方式中,语音识别程序可以设置有接口,使得第三方程序可以通过该接口向语音识别程序发送指令注册信息。第三方程序还可以向电子设备的系统发送指令注册信息,由系统向语音识别程序转发该指令注册信息。In another implementation manner, the speech recognition program may be provided with an interface, so that a third-party program may send instruction registration information to the speech recognition program through the interface. The third-party program can also send instruction registration information to the system of the electronic device, and the system forwards the instruction registration information to the voice recognition program.
具体的,语音识别程序接收到指令注册信息之后,可以根据指令注册信息存储与第三方程序与指令信息间的对应关系。比如,程序A向语音识别程序发送了指令注册信息,则语音识别程序可以根据该指令注册信息确定指令信息,并存储程序A与指令信息之间的关联关系。Specifically, after receiving the instruction registration information, the speech recognition program may store the correspondence between the third-party program and the instruction information according to the instruction registration information. For example, if program A sends instruction registration information to the speech recognition program, the speech recognition program can determine the instruction information according to the instruction registration information, and store the relationship between program A and the instruction information.
步骤603,接收语音识别程序发送的可操作性指令;其中,可操作指令是基于用户的指定指令在多个可操作指令中确定的,多个可操作指令是根据用户的语音指令确定的分别属于不同的第三方程序的指令;在语音识别程序中存储有每一第三方程序的可操作指令。 Step 603, receiving the operable instruction sent by the speech recognition program; wherein, the operable instruction is determined among multiple operable instructions based on the specified instruction of the user, and the plurality of operable instructions are determined according to the user's voice instruction and respectively belong to Instructions of different third-party programs; the operable instructions of each third-party program are stored in the speech recognition program.
步骤604,根据可操作指令,完成响应处理。 Step 604, complete response processing according to the operable instruction.
步骤603、604与步骤501、502的实现方式类似,不再赘述。 Steps 603 and 604 are implemented in a similar manner to steps 501 and 502, and will not be repeated here.
步骤605,在程序界面切换时,向语音识别程序发送包括界面切换信息的界面变更信息;和/或,在程序退出时,向语音识别程序发送包括程序退出信息的界面变更信息。 Step 605, when the program interface is switched, send interface change information including interface switching information to the voice recognition program; and/or, when the program exits, send interface change information including program exit information to the voice recognition program.
具体的,若第三方程序根据程序界面中支持的可操作指令向语音识别程序发送指令注册信息,则第三方程序在每次发生了界面变更时,都可以向语音识别指令发送界面变更信息。Specifically, if the third-party program sends instruction registration information to the speech recognition program according to the operable instructions supported in the program interface, the third-party program can send interface change information to the speech recognition instruction every time the interface changes.
例如,在第三方程序的界面发生了切换时,该第三方程序可以向语音识别程序发送界面变更信息。For example, when the interface of the third-party program is switched, the third-party program may send interface change information to the speech recognition program.
在一种实施方式中,第三方程序的界面切换后,其可以继续向语音识别程序发送指令注册信息,该信息中可以携带界面变更信息。In one embodiment, after the interface of the third-party program is switched, it may continue to send instruction registration information to the speech recognition program, and the information may carry interface change information.
在另一种实施方式中,第三方程序退出时,其可以向语音识别程序发送界面变更信息。In another implementation manner, when the third-party program exits, it may send interface change information to the speech recognition program.
语音识别程序可以根据界面变更信息更新存储的第三方程序与指令信息间的对应关系。由于语音识别程序存储的指令信息是第三方程序的当前界面中可以支持的可操作指令的信息,因此,当第三方程序的界面发生了变化后,语音识别程序中存储的该 第三方程序的指令信息也应当被更新,从而使语音识别程序能够根据用户做出的语音指令查找到与之对应的指令信息。The voice recognition program can update the stored correspondence between the third-party program and the instruction information according to the interface change information. Since the instruction information stored in the speech recognition program is the information of the operable instructions that can be supported by the current interface of the third-party program, when the interface of the third-party program changes, the instructions of the third-party program stored in the speech recognition program The information should also be updated, so that the voice recognition program can find the corresponding instruction information according to the voice instruction made by the user.
图7为本公开第五示例性实施例示出的通过语音方式控制程序的方法的流程示意图。Fig. 7 is a schematic flowchart of a method for controlling a program by voice according to a fifth exemplary embodiment of the present disclosure.
如图7所示,在本公开提供的通过语音方式控制程序的方法中,具体可以包括:As shown in FIG. 7 , the method for controlling a program by voice provided in the present disclosure may specifically include:
步骤a,用户发出用于启动第三方程序的启动指令。In step a, the user issues a starting instruction for starting the third-party program.
步骤b,语音识别程序根据该启动指令,启动第三方程序。Step b, the speech recognition program starts the third-party program according to the start instruction.
步骤c,第三方程序根据程序当前界面确定可操作指令。In step c, the third-party program determines operable instructions according to the current interface of the program.
步骤d,第三方程序向语音识别程序发送用于注册可操作指令的注册信息。In step d, the third-party program sends registration information for registering operable instructions to the speech recognition program.
步骤e,语音识别程序根据指令注册信息存储第三方程序与指令信息间的对应关系。In step e, the speech recognition program stores the corresponding relationship between the third-party program and the instruction information according to the instruction registration information.
步骤f,用户发起用于控制第三方程序的语音指令。Step f, the user initiates a voice command for controlling the third-party program.
步骤g,语音识别程序确定与语音指令对应的指令信息,若确定具有多个与语音指令对应的指令信息,则生成提示信息。In step g, the voice recognition program determines the instruction information corresponding to the voice instruction, and generates prompt information if it is determined that there are multiple instruction information corresponding to the voice instruction.
步骤h,用户可以基于上述提示信息发起指定指令,从而指定需要控制的第三方程序。In step h, the user can initiate a specified command based on the above prompt information, thereby specifying a third-party program to be controlled.
步骤i,语音识别程序响应于用户发起的指定指令,在多个与语音指令对应的指令信息中确定与指定指令所指示的第三方程序对应的目标指令信息。Step i, the speech recognition program responds to the specified instruction initiated by the user, and determines the target instruction information corresponding to the third-party program indicated by the specified instruction among the plurality of instruction information corresponding to the voice instruction.
步骤j,语音识别程序将目标指令信息中包括的可操作指令发送给指定指令所指示的第三方程序。In step j, the voice recognition program sends the operable instructions included in the target instruction information to the third-party program indicated by the specified instruction.
步骤k,第三方程序接收到可操作指令后,可以执行相应的可操作指令,从而响应可操作指令。In step k, after receiving the operable instruction, the third-party program may execute the corresponding operable instruction, thereby responding to the operable instruction.
通过上述流程,可以实现用户通过语音控制的方式控制上述第三方程序,即使该第三方程序不具备语音识别功能,依然可以实现该效果。Through the above process, the user can control the third-party program through voice control, even if the third-party program does not have a voice recognition function, this effect can still be achieved.
图8为本公开第一示例性实施例示出的通过语音方式控制程序的装置的结构示意图。Fig. 8 is a schematic structural diagram of an apparatus for controlling a program by voice according to the first exemplary embodiment of the present disclosure.
如图8所示,本公开提供的通过语音方式控制程序的装置800,应用于电子设备的语音识别程序,所述电子设备中运行有语音识别程序和多个第三方程序,所述装置800包括:As shown in FIG. 8 , the device 800 for controlling a program by voice provided by the present disclosure is applied to a voice recognition program of an electronic device, and the electronic device runs a voice recognition program and multiple third-party programs. The device 800 includes :
确定单元810,用于响应于用户发起的语音指令,确定与所述语音指令对应的指令信息,其中,在所述语音识别程序中存储有所述第三方程序的指令信息;The determining unit 810 is configured to determine instruction information corresponding to the voice instruction in response to the voice instruction initiated by the user, wherein the instruction information of the third-party program is stored in the voice recognition program;
提示单元820,用于若确定具有多个与所述语音指令对应的指令信息,则生成提示信息,其中,多个与所述语音指令对应的指令信息分别属于不同的第三方程序,所述提示信息用于提示用户指定第三方程序;The prompt unit 820 is configured to generate prompt information if it is determined that there are multiple command information corresponding to the voice command, wherein the multiple command information corresponding to the voice command respectively belong to different third-party programs, and the prompt The information is used to prompt the user to specify a third-party program;
控制单元830,用于响应于用户发起的指定指令,在多个与所述语音指令对应的指令信息中确定与所述指定指令所指示的第三方程序对应的目标指令信息,并将所述目标指令信息中的可操作指令发送给所述指定指令所指示的第三方程序进行响应处理。The control unit 830 is configured to, in response to a specified instruction initiated by the user, determine, among a plurality of instruction information corresponding to the voice instruction, target instruction information corresponding to the third-party program indicated by the specified instruction, and set the target The operable instructions in the instruction information are sent to the third-party program indicated by the specified instruction for response processing.
本公开提供的通过语音方式控制程序的装置与图2所示实施例的实现方式、原理及效果类似,不再赘述。The implementation, principle, and effect of the device for controlling a program by voice provided in the present disclosure are similar to those of the embodiment shown in FIG. 2 , and will not be repeated here.
图9为本公开第二示例性实施例示出的通过语音方式控制程序的装置的结构示意图。Fig. 9 is a schematic structural diagram of an apparatus for controlling a program by voice according to a second exemplary embodiment of the present disclosure.
本公开提供的通过语音方式控制程序的装置900,确定单元910与图8中的确定单元810类似,提示单元920与图8中的提示单元820类似,控制单元930与图8中的控制单元830类似。In the device 900 for controlling programs by voice provided in the present disclosure, the determination unit 910 is similar to the determination unit 810 in FIG. 8 , the prompt unit 920 is similar to the prompt unit 820 in FIG. 8 , and the control unit 930 is similar to the control unit 830 in FIG. 8 similar.
在图8所示实施例的基础上,本公开提供的语音方式控制程序的装置900,On the basis of the embodiment shown in FIG. 8 , the present disclosure provides an apparatus 900 for controlling a program in voice mode,
在一种可选的实施方式中,所述确定单元910,包括:In an optional implementation manner, the determining unit 910 includes:
内容确定模块911,用于响应于用户发起的语音指令,确定语音内容;A content determining module 911, configured to determine the voice content in response to the voice instruction initiated by the user;
信息确定模块912,用于在存储的所述对应关系中,确定包括所述语音内容的指令信息;其中,所述指令信息中包括语音内容、可操作指令。The information determining module 912 is configured to determine instruction information including the voice content in the stored correspondence; wherein, the instruction information includes voice content and operable instructions.
在一种可选的实施方式中,还包括变更单元940,用于:In an optional implementation manner, a changing unit 940 is also included, configured to:
接收第三方程序发送的界面变更信息;Receive interface change information sent by third-party programs;
根据所述界面变更信息更新存储的第三方程序与指令信息间的对应关系。The stored correspondence between the third-party program and the instruction information is updated according to the interface change information.
在一种可选的实施方式中,变更单元940,包括:In an optional implementation manner, the changing unit 940 includes:
删除模块941,用于删除所述对应关系中,与发送所述界面变更信息的第三方程序对应的指令信息。The deletion module 941 is configured to delete the instruction information corresponding to the third-party program sending the interface change information in the corresponding relationship.
在一种可选的实施方式中,还包括启动单元950,用于在确定单元910响应于用户发起的语音指令,确定与所述语音指令对应的指令信息之前:In an optional implementation manner, an activation unit 950 is also included, configured to: before the determining unit 910 responds to the voice command initiated by the user, and determines the instruction information corresponding to the voice command:
响应用于启动第三方程序的启动指令,启动所述第三方程序。The third-party program is started in response to the start instruction for starting the third-party program.
一种可选的实施方式中,所述第三方程序与所述指令信息间的对应关系是根据指 令注册信息确定的,所述指令注册信息是第三方程序发送的。In an optional implementation manner, the correspondence between the third-party program and the instruction information is determined according to instruction registration information, and the instruction registration information is sent by the third-party program.
本公开提供的通过语音方式控制程序的装置与图4所示实施例的实现方式、原理及效果类似,不再赘述。The implementation, principle, and effect of the device for controlling a program by voice provided by the present disclosure are similar to those of the embodiment shown in FIG. 4 , and will not be repeated here.
图10为本公开第三示例性实施例示出的通过语音方式控制程序的装置的结构示意图。Fig. 10 is a schematic structural diagram of an apparatus for controlling a program by voice according to a third exemplary embodiment of the present disclosure.
如图10所示,所述装置1000应用于电子设备的第三方程序,所述电子设备中运行有语音识别程序和多个第三方程序,所述装置包括:As shown in FIG. 10 , the device 1000 is applied to a third-party program of an electronic device, and a speech recognition program and multiple third-party programs run in the electronic device, and the device includes:
接收单元1010,用于接收语音识别程序发送的可操作性指令;其中,所述可操作指令是基于用户的指定指令在多个指令信息中确定的,多个所述指令信息是根据用户的语音指令确定的分别属于不同的第三方程序的信息;在所述语音识别程序中存储有第三方程序的指令信息;The receiving unit 1010 is configured to receive an operable instruction sent by a speech recognition program; wherein, the operable instruction is determined in a plurality of instruction information based on a specified instruction of the user, and the plurality of instruction information are determined according to the user's voice The information determined by the instruction belongs to different third-party programs; the instruction information of the third-party program is stored in the speech recognition program;
响应单元1020,用于根据所述可操作指令,完成响应处理。The response unit 1020 is configured to complete response processing according to the operable instruction.
本公开提供的通过语音方式控制程序的装置与图5所示实施例的实现方式、原理及效果类似,不再赘述。The implementation, principle, and effect of the device for controlling a program by voice provided in the present disclosure are similar to those of the embodiment shown in FIG. 5 , and will not be repeated here.
图11为本公开第四示例性实施例示出的通过语音方式控制程序的装置的结构示意图。Fig. 11 is a schematic structural diagram of an apparatus for controlling a program by voice according to a fourth exemplary embodiment of the present disclosure.
如图11所示,本公开提供的语音方式控制程序的装置1100中,接收单元1110与图10中的接收单元1010类似,响应单元1120与图10中的响应单元1020类似。As shown in FIG. 11 , in the device 1100 for controlling programs in voice mode provided by the present disclosure, the receiving unit 1110 is similar to the receiving unit 1010 in FIG. 10 , and the response unit 1120 is similar to the response unit 1020 in FIG. 10 .
在图10所示实施例基础上,本公开提供的通过语音方式控制程序的装置中,还包括注册单元1130,用于:On the basis of the embodiment shown in FIG. 10 , the device for controlling programs by voice provided by the present disclosure further includes a registration unit 1130 for:
根据程序当前界面确定可操作指令;Determine operable instructions according to the current interface of the program;
向所述语音识别程序发送用于注册所述可操作指令的注册信息。and sending registration information for registering the operable instruction to the speech recognition program.
一种可选的实施方式中,所述注册单元1130,包括:In an optional implementation manner, the registration unit 1130 includes:
发送模块1131,用于向所述电子设备的系统发送用于注册所述可操作指令的注册信息,以使所述系统向所述语音识别程序发送所述注册信息。The sending module 1131 is configured to send registration information for registering the operable instruction to a system of the electronic device, so that the system sends the registration information to the speech recognition program.
一种可选的实施方式中,注册单元1130包括指令确定模块1131,用于:In an optional implementation manner, the registration unit 1130 includes an instruction determination module 1131, configured to:
获取程序当前界面中包括的可操作控件的信息;Obtain information about the operable controls included in the current interface of the program;
确定与所述可操作控件对应的可操作指令。An operable instruction corresponding to the operable control is determined.
一种可选的实施方式中,还包括更新单元1140,用于:In an optional implementation manner, an update unit 1140 is also included, configured to:
在程序界面切换时,向所述语音识别程序发送包括界面切换信息的界面变更信息;When the program interface is switched, send interface change information including interface switching information to the speech recognition program;
和/或,在程序退出时,向所述语音识别程序发送包括程序退出信息的界面变更信息。And/or, when the program exits, send interface change information including program exit information to the speech recognition program.
本公开提供一种通过语音方式控制程序的方法、设备及程序产品,应用于计算机技术中的语音技术,以解决现有技术中在用户不方便用手直接操作移动终端时,无法真正实现通过语音方式操控APP的技术问题。This disclosure provides a method, device and program product for controlling a program by voice, which is applied to the voice technology in computer technology to solve the problem that in the prior art, when it is inconvenient for the user to directly operate the mobile terminal by hand, it is impossible to truly realize the control by voice. How to control the technical problems of APP.
本公开的技术方案中,所涉及的用户个人信息的获取,存储和应用等,均符合相关法律法规的规定,且不违背公序良俗。In the technical solution of the present disclosure, the acquisition, storage and application of the user's personal information involved are in compliance with relevant laws and regulations, and do not violate public order and good customs.
根据本公开的实施例,本公开还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to the embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
根据本公开的实施例,本公开还提供了一种计算机程序产品,计算机程序产品包括:计算机程序,计算机程序存储在可读存储介质中,电子设备的至少一个处理器可以从可读存储介质读取计算机程序,至少一个处理器执行计算机程序使得电子设备执行上述任一实施例提供的方案。According to an embodiment of the present disclosure, the present disclosure also provides a computer program product. The computer program product includes: a computer program, the computer program is stored in a readable storage medium, and at least one processor of an electronic device can read the program from the readable storage medium. Taking a computer program, at least one processor executes the computer program so that the electronic device executes the solution provided by any one of the above embodiments.
图8示出了可以用来实施本公开的实施例的示例电子设备800的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。FIG. 8 shows a schematic block diagram of an example electronic device 800 that may be used to implement embodiments of the present disclosure. Electronic device is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
如图12所示,设备1200包括计算单元1201,其可以根据存储在只读存储器(ROM)1202中的计算机程序或者从存储单元1208加载到随机访问存储器(RAM)1203中的计算机程序,来执行各种适当的动作和处理。在RAM 1203中,还可存储设备1200操作所需的各种程序和数据。计算单元1201、ROM 1202以及RAM 1203通过总线1204彼此相连。输入/输出(I/O)接口1205也连接至总线1204。As shown in FIG. 12 , the device 1200 includes a computing unit 1201 that can execute according to a computer program stored in a read-only memory (ROM) 1202 or loaded from a storage unit 1208 into a random-access memory (RAM) 1203. Various appropriate actions and treatments. In the RAM 1203, various programs and data necessary for the operation of the device 1200 can also be stored. The computing unit 1201, ROM 1202, and RAM 1203 are connected to each other through a bus 1204. An input/output (I/O) interface 1205 is also connected to the bus 1204 .
设备1200中的多个部件连接至I/O接口1205,包括:输入单元1206,例如键盘、鼠标等;输出单元1207,例如各种类型的显示器、扬声器等;存储单元1208,例如磁盘、光盘等;以及通信单元1209,例如网卡、调制解调器、无线通信收发机等。通信 单元1209允许设备1200通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Multiple components in the device 1200 are connected to the I/O interface 1205, including: an input unit 1206, such as a keyboard, a mouse, etc.; an output unit 1207, such as various types of displays, speakers, etc.; a storage unit 1208, such as a magnetic disk, an optical disk, etc. ; and a communication unit 1209, such as a network card, a modem, a wireless communication transceiver, and the like. The communication unit 1209 allows the device 1200 to exchange information/data with other devices over a computer network such as the Internet and/or various telecommunication networks.
计算单元1201可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元1201的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元1201执行上文所描述的各个方法和处理,例如通过语音方式控制程序的方法。例如,在一些实施例中,通过语音方式控制程序的方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元1208。在一些实施例中,计算机程序的部分或者全部可以经由ROM 1202和/或通信单元1209而被载入和/或安装到设备1200上。当计算机程序加载到RAM 1203并由计算单元1201执行时,可以执行上文描述的通过语音方式控制程序的方法的一个或多个步骤。备选地,在其他实施例中,计算单元1201可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行通过语音方式控制程序的方法。The computing unit 1201 may be various general-purpose and/or special-purpose processing components with processing and computing capabilities. Some examples of computing units 1201 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1201 executes various methods and processes described above, for example, a method of controlling a program by voice. For example, in some embodiments, the method of controlling a program by voice may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 1208 . In some embodiments, part or all of the computer program may be loaded and/or installed on the device 1200 via the ROM 1202 and/or the communication unit 1209. When the computer program is loaded into the RAM 1203 and executed by the computing unit 1201, one or more steps of the above-described method of controlling the program by voice can be performed. Alternatively, in other embodiments, the computing unit 1201 may be configured in any other suitable way (for example, by means of firmware) to execute the method of controlling the program by voice.
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips Implemented in a system of systems (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor Can be special-purpose or general-purpose programmable processor, can receive data and instruction from storage system, at least one input device, and at least one output device, and transmit data and instruction to this storage system, this at least one input device, and this at least one output device an output device.
用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program codes for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special purpose computer, or other programmable data processing devices, so that the program codes, when executed by the processor or controller, make the functions/functions specified in the flow diagrams and/or block diagrams Action is implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括 但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide for interaction with the user, the systems and techniques described herein can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user. ); and a keyboard and pointing device (eg, a mouse or a trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and can be in any form (including Acoustic input, speech input or, tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., as a a user computer having a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system can be interconnected by any form or medium of digital data communication, eg, a communication network. Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN) and the Internet.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务("Virtual Private Server",或简称"VPS")中,存在的管理难度大,业务扩展性弱的缺陷。服务器也可以为分布式系统的服务器,或者是结合了区块链的服务器。A computer system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also known as cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the problem of traditional physical host and VPS service ("Virtual Private Server", or "VPS") Among them, there are defects such as difficult management and weak business scalability. The server can also be a server of a distributed system, or a server combined with a blockchain.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, each step described in the present disclosure may be executed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in the present disclosure can be achieved, no limitation is imposed herein.
上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护 范围之内。The specific implementation manners described above do not limit the protection scope of the present disclosure. It should be apparent to those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present disclosure shall be included within the protection scope of the present disclosure.

Claims (27)

  1. 一种通过语音方式控制程序的方法,所述方法应用于电子设备的语音识别程序,所述电子设备中运行有语音识别程序和多个第三方程序,所述方法包括:A method for controlling a program by voice, the method is applied to a voice recognition program of an electronic device, the electronic device runs a voice recognition program and a plurality of third-party programs, and the method includes:
    响应于用户发起的语音指令,确定与所述语音指令对应的指令信息,其中,在所述语音识别程序中存储有所述第三方程序的指令信息;In response to a voice command initiated by the user, determine command information corresponding to the voice command, wherein the voice recognition program stores the command information of the third-party program;
    若确定具有多个与所述语音指令对应的指令信息,则生成提示信息,其中,多个与所述语音指令对应的指令信息分别属于不同的第三方程序,所述提示信息用于提示用户指定第三方程序;If it is determined that there are multiple instruction information corresponding to the voice instruction, prompt information is generated, wherein the plurality of instruction information corresponding to the voice instruction respectively belong to different third-party programs, and the prompt information is used to prompt the user to specify third party programs;
    响应于用户发起的指定指令,在多个与所述语音指令对应的指令信息中确定与所述指定指令所指示的第三方程序对应的目标指令信息,并将所述目标指令信息中的可操作指令发送给所述指定指令所指示的第三方程序进行响应处理。In response to a specified instruction initiated by the user, determine the target instruction information corresponding to the third-party program indicated by the specified instruction among the plurality of instruction information corresponding to the voice instruction, and set the operable target instruction information in the target instruction information to The instruction is sent to the third-party program indicated by the specified instruction for response processing.
  2. 根据权利要求1所述的方法,其中,所述响应于用户发起的语音指令,确定与所述语音指令对应的指令信息,包括:The method according to claim 1, wherein, in response to the voice command initiated by the user, determining the command information corresponding to the voice command comprises:
    响应于用户发起的语音指令,确定语音内容;determining voice content in response to a voice command initiated by the user;
    在存储的所述对应关系中,确定包括所述语音内容的指令信息;其中,所述指令信息中包括语音内容、可操作指令。In the stored corresponding relationship, determine instruction information including the voice content; wherein, the instruction information includes voice content and operable instructions.
  3. 根据权利要求1或2所述的方法,还包括:The method according to claim 1 or 2, further comprising:
    接收第三方程序发送的界面变更信息;Receive interface change information sent by third-party programs;
    根据所述界面变更信息更新存储的第三方程序与指令信息间的对应关系。The stored correspondence between the third-party program and the instruction information is updated according to the interface change information.
  4. 根据权利要求3所述的方法,其中,根据所述界面变更信息更新存储的第三方程序与所述指令信息间的对应关系,包括:The method according to claim 3, wherein updating the stored correspondence between the third-party program and the instruction information according to the interface change information comprises:
    删除所述对应关系中,与发送所述界面变更信息的第三方程序对应的指令信息。In the corresponding relationship, the instruction information corresponding to the third-party program sending the interface change information is deleted.
  5. 根据权利要求1-4任一项所述的方法,响应于用户发起的语音指令,确定与所述语音指令对应的指令信息之前,还包括:According to the method according to any one of claims 1-4, in response to the voice command initiated by the user, before determining the command information corresponding to the voice command, further comprising:
    响应用于启动第三方程序的启动指令,启动所述第三方程序。The third-party program is started in response to the start instruction for starting the third-party program.
  6. 根据权利要求1-5任一项所述的方法,还包括:The method according to any one of claims 1-5, further comprising:
    若确定一条与所述语音指令对应的指令信息,则根据该语音指令向该指令信息所属的第三方程序发送可操作指令。If a piece of instruction information corresponding to the voice instruction is determined, an operable instruction is sent to the third-party program to which the instruction information belongs according to the voice instruction.
  7. 根据权利要求1-6任一项所述的方法,所述第三方程序与所述指令信息间的对应关系是根据指令注册信息确定的,所述指令注册信息是第三方程序发送的。According to the method according to any one of claims 1-6, the corresponding relationship between the third-party program and the instruction information is determined according to instruction registration information, and the instruction registration information is sent by the third-party program.
  8. 一种通过语音方式控制程序的方法,所述方法应用于电子设备的第三方程序,所述电子设备中运行有语音识别程序和多个第三方程序,所述方法包括:A method for controlling a program by voice, the method is applied to a third-party program of an electronic device, the electronic device runs a voice recognition program and multiple third-party programs, and the method includes:
    接收语音识别程序发送的可操作性指令;其中,所述可操作指令是基于用户的指定指令在多个指令信息中确定的,多个所述指令信息是根据用户的语音指令确定的分别属于不同的第三方程序的信息;在所述语音识别程序中存储有第三方程序的指令信息;Receive the operable instruction sent by the voice recognition program; wherein, the operable instruction is determined in a plurality of instruction information based on the user's designated instruction, and the plurality of instruction information are determined according to the user's voice instruction and belong to different The information of the third-party program; the instruction information of the third-party program is stored in the speech recognition program;
    根据所述可操作指令,完成响应处理。According to the operable instruction, the response processing is completed.
  9. 根据权利要求8所述的方法,还包括:The method of claim 8, further comprising:
    根据程序当前界面确定可操作指令;Determine operable instructions according to the current interface of the program;
    向所述语音识别程序发送用于注册所述可操作指令的注册信息。and sending registration information for registering the operable instruction to the speech recognition program.
  10. 根据权利要求9所述的方法,其中,所述向所述语音识别程序发送用于注册所述可操作指令的注册信息,包括:The method according to claim 9, wherein the sending registration information for registering the operable instruction to the voice recognition program comprises:
    向所述电子设备的系统发送用于注册所述可操作指令的注册信息,以使所述系统向所述语音识别程序发送所述注册信息。sending registration information for registering the operable instruction to a system of the electronic device, so that the system sends the registration information to the speech recognition program.
  11. 根据权利要求9所述的方法,其中,根据程序当前界面确定可操作指令包括:The method according to claim 9, wherein determining the operable instruction according to the current interface of the program comprises:
    获取程序当前界面中包括的可操作控件的信息;Obtain information about the operable controls included in the current interface of the program;
    确定与所述可操作控件对应的可操作指令。An operable instruction corresponding to the operable control is determined.
  12. 根据权利要求8-11任一项所述的方法,还包括:The method according to any one of claims 8-11, further comprising:
    在程序界面切换时,向所述语音识别程序发送包括界面切换信息的界面变更信息;When the program interface is switched, send interface change information including interface switching information to the speech recognition program;
    和/或,在程序退出时,向所述语音识别程序发送包括程序退出信息的界面变更信息。And/or, when the program exits, send interface change information including program exit information to the speech recognition program.
  13. 一种通过语音方式控制程序的装置,所述装置应用于电子设备的语音识别程序,所述电子设备中运行有语音识别程序和多个第三方程序,所述装置包括:A device for controlling a program by voice, the device is applied to a voice recognition program of an electronic device, the electronic device runs a voice recognition program and multiple third-party programs, and the device includes:
    确定单元,用于响应于用户发起的语音指令,确定与所述语音指令对应的指令信息,其中,在所述语音识别程序中存储有所述第三方程序的指令信息;a determining unit, configured to determine instruction information corresponding to the voice instruction in response to the voice instruction initiated by the user, wherein the instruction information of the third-party program is stored in the voice recognition program;
    提示单元,用于若确定具有多个与所述语音指令对应的指令信息,则生成提示信息,其中,多个与所述语音指令对应的指令信息分别属于不同的第三方程序,所述提示信息用于提示用户指定第三方程序;A prompting unit, configured to generate prompt information if it is determined that there are multiple command information corresponding to the voice command, wherein the multiple command information corresponding to the voice command respectively belong to different third-party programs, and the prompt information Used to prompt the user to specify a third-party program;
    控制单元,用于响应于用户发起的指定指令,在多个与所述语音指令对应的指令信息中确定与所述指定指令所指示的第三方程序对应的目标指令信息,并将所述目标指令信息中的可操作指令发送给所述指定指令所指示的第三方程序进行响应处理。a control unit, configured to, in response to a designated instruction initiated by a user, determine, among a plurality of instruction information corresponding to the voice instruction, target instruction information corresponding to the third-party program indicated by the designated instruction, and send the target instruction to The operable instruction in the information is sent to the third-party program indicated by the specified instruction for response processing.
  14. 根据权利要求13所述的装置,其中,所述确定单元,包括:The device according to claim 13, wherein the determining unit comprises:
    内容确定模块,用于响应于用户发起的语音指令,确定语音内容;A content determining module, configured to determine the voice content in response to the voice command initiated by the user;
    信息确定模块,用于在存储的所述对应关系中,确定包括所述语音内容的指令信息;其中,所述指令信息中包括语音内容、可操作指令。The information determining module is configured to determine instruction information including the voice content in the stored correspondence; wherein, the instruction information includes voice content and operable instructions.
  15. 根据权利要求13或14所述的装置,还包括变更单元,用于:The device according to claim 13 or 14, further comprising a modification unit for:
    接收第三方程序发送的界面变更信息;Receive interface change information sent by third-party programs;
    根据所述界面变更信息更新存储的第三方程序与指令信息间的对应关系。The stored correspondence between the third-party program and the instruction information is updated according to the interface change information.
  16. 根据权利要求15所述的装置,其中,变更单元,包括:The device according to claim 15, wherein the changing unit comprises:
    删除模块,用于删除所述对应关系中,与发送所述界面变更信息的第三方程序对应的指令信息。A deletion module, configured to delete instruction information corresponding to the third-party program sending the interface change information in the corresponding relationship.
  17. 根据权利要求13-16任一项所述的装置,还包括启动单元,用于在确定单元响应于用户发起的语音指令,确定与所述语音指令对应的指令信息之前:The device according to any one of claims 13-16, further comprising an activation unit, configured to: before the determination unit determines the instruction information corresponding to the voice instruction in response to the voice instruction initiated by the user:
    响应用于启动第三方程序的启动指令,启动所述第三方程序。The third-party program is started in response to the start instruction for starting the third-party program.
  18. 根据权利要求13-17任一项所述的装置,若所述提示单元确定一条与所述语音指令对应的指令信息,则所述控制单元还用于根据该语音指令向该指令信息所属的第三方程序发送可操作指令。According to the device according to any one of claims 13-17, if the prompting unit determines a piece of instruction information corresponding to the voice instruction, the control unit is further configured to send the voice instruction to the first instruction information to which the instruction information belongs. The tripartite program sends operable instructions.
  19. 根据权利要求13-18任一项所述的装置,所述第三方程序与所述指令信息间的对应关系是根据指令注册信息确定的,所述指令注册信息是第三方程序发送的。According to the device according to any one of claims 13-18, the corresponding relationship between the third-party program and the instruction information is determined according to instruction registration information, and the instruction registration information is sent by the third-party program.
  20. 一种通过语音方式控制程序的装置,所述装置应用于电子设备的第三方程序,所述电子设备中运行有语音识别程序和多个第三方程序,所述装置包括:A device for controlling a program by voice, the device is applied to a third-party program of an electronic device, and a voice recognition program and multiple third-party programs run in the electronic device, and the device includes:
    接收单元,用于接收语音识别程序发送的可操作性指令;其中,所述可操作指令是基于用户的指定指令在多个指令信息中确定的,多个所述指令信息是根据用户的语音指令确定的分别属于不同的第三方程序的信息;在所述语音识别程序中存储有第三方程序的指令信息;The receiving unit is configured to receive the operable instruction sent by the speech recognition program; wherein, the operable instruction is determined in a plurality of instruction information based on the user's designated instruction, and the plurality of instruction information is based on the user's voice instruction The determined information respectively belongs to different third-party programs; the instruction information of the third-party programs is stored in the speech recognition program;
    响应单元,用于根据所述可操作指令,完成响应处理。A response unit, configured to complete response processing according to the operable instruction.
  21. 根据权利要求20所述的装置,还包括注册单元,用于:The device according to claim 20, further comprising a registration unit configured to:
    根据程序当前界面确定可操作指令;Determine operable instructions according to the current interface of the program;
    向所述语音识别程序发送用于注册所述可操作指令的注册信息。and sending registration information for registering the operable instruction to the speech recognition program.
  22. 根据权利要求21所述的装置,其中,所述注册单元,包括:The device according to claim 21, wherein the registration unit comprises:
    发送模块,用于向所述电子设备的系统发送用于注册所述可操作指令的注册信息,以使所述系统向所述语音识别程序发送所述注册信息。A sending module, configured to send registration information for registering the operable instruction to a system of the electronic device, so that the system sends the registration information to the speech recognition program.
  23. 根据权利要求22所述的装置,其中,注册单元包括指令确定模块,用于:The device according to claim 22, wherein the registration unit comprises an instruction determination module configured to:
    获取程序当前界面中包括的可操作控件的信息;Obtain information about the operable controls included in the current interface of the program;
    确定与所述可操作控件对应的可操作指令。An operable instruction corresponding to the operable control is determined.
  24. 根据权利要求21-23任一项所述的装置,还包括更新单元,用于:The device according to any one of claims 21-23, further comprising an updating unit, configured to:
    在程序界面切换时,向所述语音识别程序发送包括界面切换信息的界面变更信息;When the program interface is switched, send interface change information including interface switching information to the speech recognition program;
    和/或,在程序退出时,向所述语音识别程序发送包括程序退出信息的界面变更信息。And/or, when the program exits, send interface change information including program exit information to the speech recognition program.
  25. 一种电子设备,包括:An electronic device comprising:
    至少一个处理器;以及at least one processor; and
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-7或8-12中任一项所述的方法。The memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, so that the at least one processor can perform any of claims 1-7 or 8-12 one of the methods described.
  26. 一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行根据权利要求1-7或8-12中任一项所述的方法。A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method according to any one of claims 1-7 or 8-12.
  27. 一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现根据权利要求1-7或8-12中任一项所述的方法。A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-7 or 8-12.
PCT/CN2022/082104 2021-07-23 2022-03-21 Method for controlling program by means of speech, and device and program product WO2023000698A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110839754.6A CN113496703A (en) 2021-07-23 2021-07-23 Method, device and program product for controlling program in voice mode
CN202110839754.6 2021-07-23

Publications (1)

Publication Number Publication Date
WO2023000698A1 true WO2023000698A1 (en) 2023-01-26

Family

ID=77996376

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/082104 WO2023000698A1 (en) 2021-07-23 2022-03-21 Method for controlling program by means of speech, and device and program product

Country Status (2)

Country Link
CN (1) CN113496703A (en)
WO (1) WO2023000698A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113496703A (en) * 2021-07-23 2021-10-12 北京百度网讯科技有限公司 Method, device and program product for controlling program in voice mode

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103915095A (en) * 2013-01-06 2014-07-09 华为技术有限公司 Method, interaction device, server and system for voice recognition
CN107122179A (en) * 2017-03-31 2017-09-01 阿里巴巴集团控股有限公司 The function control method and device of voice
CN107783705A (en) * 2017-10-20 2018-03-09 珠海市魅族科技有限公司 Show method, apparatus, computer installation and the storage medium of application program
CN108958844A (en) * 2018-07-13 2018-12-07 京东方科技集团股份有限公司 A kind of control method and terminal of application program
CN110223682A (en) * 2019-04-29 2019-09-10 百度在线网络技术(北京)有限公司 A kind of phonetic order referee method and device
CN111475241A (en) * 2020-04-02 2020-07-31 深圳创维-Rgb电子有限公司 Interface operation method and device, electronic equipment and readable storage medium
CN112634896A (en) * 2020-12-30 2021-04-09 智道网联科技(北京)有限公司 Operation method of application program on intelligent terminal and intelligent terminal
CN112863512A (en) * 2021-01-18 2021-05-28 深圳创维-Rgb电子有限公司 Voice interaction call processing method and device, terminal equipment and storage medium
CN113496703A (en) * 2021-07-23 2021-10-12 北京百度网讯科技有限公司 Method, device and program product for controlling program in voice mode
CN113593555A (en) * 2021-07-23 2021-11-02 北京百度网讯科技有限公司 Method, device and program product for controlling program in voice mode

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915181A (en) * 2011-08-02 2013-02-06 联想(北京)有限公司 Electronic device and application selection method therefor
KR20180060328A (en) * 2016-11-28 2018-06-07 삼성전자주식회사 Electronic apparatus for processing multi-modal input, method for processing multi-modal input and sever for processing multi-modal input
CN107919123B (en) * 2017-12-07 2022-06-03 北京小米移动软件有限公司 Multi-voice assistant control method, device and computer readable storage medium
CN109918040B (en) * 2019-03-15 2022-08-16 阿波罗智联(北京)科技有限公司 Voice instruction distribution method and device, electronic equipment and computer readable medium
CN110473537B (en) * 2019-08-22 2022-04-26 百度在线网络技术(北京)有限公司 Voice skill control method, device, equipment and storage medium
CN110797022B (en) * 2019-09-06 2023-08-08 腾讯科技(深圳)有限公司 Application control method, device, terminal and server
CN110647305B (en) * 2019-09-29 2023-10-31 阿波罗智联(北京)科技有限公司 Voice interaction method, device, equipment and medium of application program
CN110853645A (en) * 2019-12-02 2020-02-28 三星电子(中国)研发中心 Method and device for recognizing voice command

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103915095A (en) * 2013-01-06 2014-07-09 华为技术有限公司 Method, interaction device, server and system for voice recognition
CN107122179A (en) * 2017-03-31 2017-09-01 阿里巴巴集团控股有限公司 The function control method and device of voice
CN107783705A (en) * 2017-10-20 2018-03-09 珠海市魅族科技有限公司 Show method, apparatus, computer installation and the storage medium of application program
CN108958844A (en) * 2018-07-13 2018-12-07 京东方科技集团股份有限公司 A kind of control method and terminal of application program
CN110223682A (en) * 2019-04-29 2019-09-10 百度在线网络技术(北京)有限公司 A kind of phonetic order referee method and device
CN111475241A (en) * 2020-04-02 2020-07-31 深圳创维-Rgb电子有限公司 Interface operation method and device, electronic equipment and readable storage medium
CN112634896A (en) * 2020-12-30 2021-04-09 智道网联科技(北京)有限公司 Operation method of application program on intelligent terminal and intelligent terminal
CN112863512A (en) * 2021-01-18 2021-05-28 深圳创维-Rgb电子有限公司 Voice interaction call processing method and device, terminal equipment and storage medium
CN113496703A (en) * 2021-07-23 2021-10-12 北京百度网讯科技有限公司 Method, device and program product for controlling program in voice mode
CN113593555A (en) * 2021-07-23 2021-11-02 北京百度网讯科技有限公司 Method, device and program product for controlling program in voice mode

Also Published As

Publication number Publication date
CN113496703A (en) 2021-10-12

Similar Documents

Publication Publication Date Title
US10986214B2 (en) Local persisting of data for selectively offline capable voice action in a voice-enabled electronic device
WO2023000697A1 (en) Method for controlling program by means of speech, and device and program product
KR20210106397A (en) Voice conversion method, electronic device, and storage medium
US10129198B2 (en) Contextually driven messaging system
EP3926548A1 (en) Method and apparatus for pre-training graph neural network
WO2022134428A1 (en) Applet page rendering method and apparatus, electronic device, and storage medium
JP7258994B2 (en) Screen projection method, device, equipment and storage medium
JP7258932B2 (en) NOISE REDUCTION METHOD, APPARATUS, ELECTRONIC DEVICE, AND STORAGE MEDIUM BASED ON IN-VEHICLE MULTI-RANGE
JP2016506564A (en) Swipe stroke input and continuous handwriting
WO2017025055A1 (en) Command line interface display method and device
KR102554916B1 (en) Speech interaction method, speech interaction device and electronic device
WO2023000698A1 (en) Method for controlling program by means of speech, and device and program product
WO2023221416A1 (en) Information generation method and apparatus, and device and storage medium
WO2022135323A1 (en) Image generation method and apparatus, and electronic device
WO2023093016A1 (en) Cloud code development system, method, and apparatus, device, and storage medium
US20200356656A1 (en) Application with self-configuring accessibility settings
WO2023045510A1 (en) Method and apparatus for establishing voice channel, electronic device, and storage medium
CN111326158A (en) Voice control method based on intelligent terminal
KR20210099538A (en) Traffic content output method, device, apparatus, storage medium and computer program
JP2023510450A (en) Applet page rendering method, apparatus, electronic device and storage medium
WO2024051195A1 (en) Data calling method and apparatus, and serving gateway and storage medium
CN114443197B (en) Interface processing method and device, electronic equipment and storage medium
CN112966201B (en) Object processing method, device, electronic equipment and storage medium
US11722572B2 (en) Communication platform shifting for voice-enabled device
US20220358931A1 (en) Task information management

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: 22844870

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: 22844870

Country of ref document: EP

Kind code of ref document: A1