System and method for controlling operation function through web terminal voice

Through the web-end voice control operation function system, voice commands are obtained and filtered through the data monitoring module, and the web-end function operation is triggered by logic processing and function operation control module, solving the functional operation difficulties caused by inconsistent voice commands in the prior art, and realizing the Convenient and flexible voice control.

CN118898992APending Publication Date: 2024-11-05NANJING DUOWEIXINLIAN TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411206883.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

In the prior art, voice commands need to be very accurate, and semantic commands cannot be generated when there is inconsistency, resulting in inconvenience in voice control operation functions that are inconvenient.

Method used

A system with web-end voice control operation function is designed. The voice is obtained through the data monitoring module and converted into text instructions. The command definition module of the function operation control module filters out valid instructions, sends them to the logic processing module, and uses the meaning of the command function. Distribute to the corresponding functional operation control module, and use the instructions and method mapping module to trigger the web-side function operation to realize page change rendering.

Benefits of technology

It realizes convenient application in situations of inconvenient operation, with fast speed, multiple commands can point to the same method body, avoiding the problem of very accurate voice commands and improving the flexibility and accuracy of voice control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118898992A_ABST
    Figure CN118898992A_ABST
Patent Text Reader

Abstract

The invention discloses a system and method for controlling an operation function through web terminal voice, and belongs to the technical field of voice control, and the system comprises a data monitoring module which obtains voice, converts the voice into a text instruction, and screens out an effective instruction; the logic processing module is used for distributing effective instructions to the corresponding function operation control modules according to the function meanings of the instructions; the function operation control module is used for receiving the effective instruction corresponding to the function meaning and triggering the function operation corresponding to the web end according to the mapping relation between the effective instruction and the method body; and the data refreshing and rendering module is used for obtaining corresponding method body change data to realize page change rendering by defining a data module label and a rendering effective instruction. By means of the mode, the corresponding function operation is controlled through the web terminal voice, and the method is friendly to use under the condition that operation is inconvenient. According to the invention, the problem that the voice command needs to be very accurate and the instruction cannot be generated when inconsistency occurs is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of voice control technology, and in particular to a system and method for a web-side voice control operation function. Background Art

[0002] Traditional web operations basically use mouse clicks to trigger corresponding functions, which is not friendly to situations where operations are inconvenient and difficult to achieve convenient applications.

[0003] In the prior art, there are some systems with voice control operation functions, for example, first obtaining a voice command, then recognizing the obtained voice command, generating a semantic command, and then controlling the web end to respond.

[0004] However, the existing technology still has the following problems: the voice commands need to be very accurate, and semantic instructions cannot be generated when inconsistencies occur.

[0005] Based on this, the present invention designs a system and method for web-side voice control operation functions to solve the above problems. Summary of the invention

[0006] In view of the above-mentioned shortcomings of the prior art, the present invention provides a system and method for web-side voice control operation functions.

[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions:

[0008] A system for web-side voice control operation functions, comprising:

[0009] The data monitoring module obtains voice and converts it into text instructions, calls the instruction definition module of the function operation control module to filter out valid instructions, and sends the valid instructions to the logic processing module;

[0010] The logic processing module distributes the valid instructions to the corresponding functional operation control module according to the meaning of the instruction function;

[0011] Function operation control module, built-in instruction definition module, method body definition module, instruction and method body mapping module; receive valid instructions with corresponding functional meanings, and trigger corresponding functional operations on the web side according to the mapping relationship between valid instructions and method bodies;

[0012] The data refresh rendering module defines the data module label and rendering effective instructions, obtains the corresponding method body change data and realizes page change rendering.

[0013] Furthermore, the implementation method of the data monitoring module includes:

[0014] 1) Obtain the recorded voice;

[0015] 2) Read and recognize speech;

[0016] 3) Voice is converted into text instructions;

[0017] 4) Screening of text instructions: matching text instructions with instructions defined by the instruction definition module of the function operation control module in a loop to screen out valid instructions;

[0018] 5) And send valid instructions to the logic processing module.

[0019] Furthermore, in step 1), the listening event is initialized by registering a listener to obtain the voice recorded by the microphone.

[0020] Furthermore, in step 3), after being initialized by the API function webkitSpeechRecognition(), the user's spoken language is monitored, the voice is converted into text, and text instructions are obtained.

[0021] Furthermore, the data monitoring module uses a browser to input, recognize, and convert voice into text instructions.

[0022] Furthermore, the instruction definition module is used to define instructions with corresponding functional meanings, and to retrieve instructions with corresponding functional meanings from text instructions, that is, to filter out valid instructions; valid instructions are stored in an instruction pool.

[0023] Furthermore, the method body definition module is used to define the method body corresponding to each instruction; and after obtaining a valid instruction, the instruction and method body mapping module is used to call the corresponding method body to implement the function corresponding to the instruction; the name of the method body is unique, so that the instruction can accurately specify a unique method body.

[0024] Furthermore, the instruction and method body mapping module defines the association relationship between the instruction and the method body by specifying the method body name and the instruction name mapping.

[0025] Furthermore, after the corresponding functional operation of the web side is implemented, the instruction corresponding to the function is removed from the instruction pool until the instruction pool is empty.

[0026] A method for controlling a system with a web-side voice control operation function, comprising the following steps:

[0027] 1. The data monitoring module obtains the voice and converts it into text instructions, calls the instruction definition module of the function operation control module to retrieve valid instructions from the text instructions, and sends the valid instructions to the logic processing module; the valid instructions are stored in the instruction pool;

[0028] 2. The logic processing module distributes the valid instructions to the corresponding functional operation control module according to the meaning of the instruction function;

[0029] 3. After obtaining the valid instruction, the method body definition module uses the instruction and method body mapping module to call the corresponding method body to implement the function corresponding to the instruction; after implementing the corresponding functional operation of the web end, the instruction corresponding to the function is removed from the instruction pool until the instruction pool is empty, that is, all instructions are completed;

[0030] 4. The data refresh rendering module defines the data module label and rendering effective instructions, obtains the corresponding method body change data and realizes page change rendering.

[0031] Beneficial Effects

[0032] The present invention uses web-side voice to control corresponding functional operations. Compared with traditional mouse click triggering, it is user-friendly in situations where operation is inconvenient, and realizes convenient application.

[0033] Each functional operation control module of the present invention receives a valid instruction with a corresponding functional meaning, and triggers the corresponding functional operation of the web end according to the mapping relationship between the valid instruction and the method body. The speed is fast, and multiple instructions can point to the same method body, which is conducive to multiple instructions with the same meaning pointing to the same method body, thereby avoiding the problem that the voice command needs to be very accurate and the instruction cannot be generated when inconsistency occurs. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0035] Figure 1 The present invention is a method flow chart of a web-side voice control operation function. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0037] The present invention will be further described below in conjunction with the embodiments.

[0038] Example 1

[0039] A system for web-side voice control operation functions, comprising:

[0040] The data monitoring module obtains voice and converts it into text instructions, calls the instruction definition module of the function operation control module to filter out valid instructions, and sends the valid instructions to the logic processing module;

[0041] The logic processing module distributes the valid instructions to the corresponding functional operation control module according to the meaning of the instruction function;

[0042] Function operation control module, built-in instruction definition module, method body definition module, instruction and method body mapping module; receive valid instructions with corresponding functional meanings, and trigger corresponding functional operations on the web side according to the mapping relationship between valid instructions and method bodies;

[0043] The data refresh rendering module defines the data module label and rendering effective instructions, obtains the corresponding method body change data and realizes page change rendering.

[0044] Specifically, the implementation method of the data monitoring module includes:

[0045] 1) Get the voice: Initialize the monitoring event by registering a listener (addEventListener) to get the voice recorded by the microphone;

[0046] 2) Read the recognized voice: Read the recognized voice through navigator.mediaDevices.getUserMedia() (used to access the streaming media device);

[0047] 3) Voice conversion to text instructions: After initialization through the API function webkitSpeechRecognition(), monitor the user's spoken language, convert the voice into text, and obtain text instructions;

[0048] 4) Screening of text instructions: matching text instructions with instructions defined by the instruction definition module of the function operation control module in a loop to screen out valid instructions;

[0049] 5) Sending valid instructions to the logic processing module;

[0050] Preferably, a browser is used to input, recognize, and convert speech into text instructions;

[0051] Specifically, the instruction definition module is used to define instructions with corresponding functional meanings, and retrieve instructions with corresponding functional meanings from text instructions, that is, to filter out valid instructions; valid instructions are stored in the instruction pool;

[0052] Instruction definition is: define an empty array new Array = [], define variables (instruction names) in the empty array as array elements; such as ['add', 'delete'];

[0053] The method body definition module is used to define the method body corresponding to each instruction; and after obtaining a valid instruction, the instruction and method body mapping module is used to call the corresponding method body to implement the function corresponding to the instruction; the name of the method body is unique, so that the instruction can accurately specify a unique method body;

[0054] The instruction and method body mapping module defines the association between the instruction and the method body by specifying the method body name and the instruction name mapping, and implements the instruction to specify and call a unique method body through a fixed association relationship;

[0055] An example of the association relationship between a mapping definition instruction and a method body: the instruction key-value pair is (instruction-method body); the instruction and the method body can be one-to-one or many-to-one. Many-to-one means that multiple instructions can point to the same method body, which is conducive to multiple instructions with the same meaning pointing to the same method body, thereby avoiding the problem that the voice command needs to be very accurate and the instruction cannot be generated when there is inconsistency;

[0056] After the corresponding function operation on the web side is implemented, the instruction corresponding to the function is removed from the instruction pool until the instruction pool is empty, that is, all instructions are completed;

[0057] The present invention uses web-side voice to control corresponding functional operations. Compared with traditional mouse click triggering, it is user-friendly in situations where operation is inconvenient, and realizes convenient application.

[0058] Each functional operation control module receives valid instructions with corresponding functional meanings, and triggers the corresponding functional operations on the web side according to the mapping relationship between the valid instructions and the method body. It has a fast speed, and multiple instructions can point to the same method body, which is conducive to multiple instructions with the same meaning pointing to the same method body, thereby avoiding the problem that voice commands need to be very accurate and instructions cannot be generated when inconsistencies occur.

[0059] The data refresh rendering module uses data module tags to link the method body and text instructions. Data module tags are used to add tags to non-valid instructions of various functions. For example, the tag "user" is added to the non-valid instruction "employee function". "User" corresponds to the valid instruction of the "add employee" function. After adding the tag, the "add employee" operation instruction can be obtained, and the "add employee" method body can be called. The definition of data module tags can more flexibly implement different functional operations according to the instructions. By defining data module tags and rendering valid instructions, the corresponding method body change data can be obtained to realize page change rendering.

[0060] Example 2

[0061] Please refer to the instruction manual Figure 1 , a method for controlling a system with a web-side voice control operation function, comprising the following steps:

[0062] 1. Initialize the listening event by registering a listener (addEventListener) to obtain the voice recorded by the microphone; read the recognized voice through navigator.mediaDevices.getUserMedia() (access the streaming media device); after initialization through the API function webkitSpeechRecognition(), listen to the user's spoken language, convert the voice into text, and obtain text instructions; call the instruction definition module of the function operation control module, retrieve the instructions contained in the text instructions, that is, filter out the valid instructions; store the valid instructions in the instruction pool; send the valid instructions to the logic processing module;

[0063] 2. The logic processing module distributes the valid instructions to the corresponding functional operation control module according to the meaning of the instruction function;

[0064] 3. After obtaining the valid instruction, the method body definition module uses the instruction and method body mapping module to call the corresponding method body to implement the function corresponding to the instruction; after implementing the corresponding functional operation of the web end, the instruction corresponding to the function is removed from the instruction pool until the instruction pool is empty, that is, all instructions are completed;

[0065] 4. The data refresh rendering module defines the data module label and rendering effective instructions, obtains the corresponding method body change data and realizes page change rendering.

[0066] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements will not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A system for web-based voice control operation functions, characterized in that: include: The data monitoring module obtains voice and converts it into text instructions, calls the instruction definition module of the function operation control module to filter out valid instructions, and sends the valid instructions to the logic processing module; The logic processing module distributes the valid instructions to the corresponding functional operation control module according to the meaning of the instruction function; Function operation control module, built-in instruction definition module, method body definition module, instruction and method body mapping module; receive valid instructions with corresponding functional meanings, and trigger corresponding functional operations on the web side according to the mapping relationship between valid instructions and method bodies; The data refresh rendering module defines the data module label and rendering effective instructions, obtains the corresponding method body change data and realizes page change rendering.

2. The system of web-side voice control operation function according to claim 1, characterized in that: The implementation method of the data monitoring module includes: 1) Obtain the recorded voice; 2) Read and recognize speech; 3) Voice is converted into text instructions; 4) Screening of text instructions: matching text instructions with instructions defined by the instruction definition module of the function operation control module in a loop to screen out valid instructions; 5) And send valid instructions to the logic processing module.

3. The system of web-side voice control operation function according to claim 2, characterized in that: In step 1), the monitoring event is initialized by registering a listener to obtain the voice recorded by the microphone.

4. The system of web-side voice control operation function according to claim 3, characterized in that: In step 3), after initialization through the API function webkitSpeechRecognition(), the user's spoken language is monitored, the voice is converted into text, and the text instruction is obtained.

5. The system of web-side voice control operation function according to claim 4, characterized in that: The data monitoring module uses a browser to input, recognize, and convert voice into text instructions.

6. The system of web-side voice control operation function according to claim 5, characterized in that: The instruction definition module is used to define instructions with corresponding functional meanings, and retrieve instructions with corresponding functional meanings from text instructions, that is, to filter out valid instructions; valid instructions are stored in the instruction pool.

7. The system for web-based voice control operation function according to claim 6, characterized in that: The method body definition module is used to define the method body corresponding to each instruction; and after obtaining a valid instruction, the instruction and method body mapping module is used to call the corresponding method body to implement the function corresponding to the instruction; the name of the method body is unique, so that the instruction can accurately specify a unique method body.

8. The system of web-side voice control operation function according to claim 7, characterized in that: The instruction and method body mapping module defines the association relationship between the instruction and the method body by specifying the method body name and the instruction name mapping.

9. The system of web-side voice control operation function according to claim 8, characterized in that: After the corresponding functional operation of the web side is implemented, the instruction corresponding to the function is removed from the instruction pool until the instruction pool is empty.

10. A control method of the system according to claim 9, characterized in that: The following steps are involved:

1. The data monitoring module obtains the voice and converts it into text instructions, calls the instruction definition module of the function operation control module to retrieve valid instructions from the text instructions, and sends the valid instructions to the logic processing module; Valid instructions are stored in the instruction pool; 2. The logic processing module distributes the valid instructions to the corresponding functional operation control module according to the meaning of the instruction function; 3. After obtaining the valid instruction, the method body definition module uses the instruction and method body mapping module to call the corresponding method body to implement the function corresponding to the instruction; after implementing the corresponding functional operation of the web end, the instruction corresponding to the function is removed from the instruction pool until the instruction pool is empty, that is, all instructions are completed; 4. The data refresh rendering module defines the data module label and rendering effective instructions, obtains the corresponding method body change data and realizes page change rendering.