Method and apparatus for inputting voice into webpage text box of intranet website
By receiving voice input commands through a web browser and sending them to a local microphone application using the Web Socket protocol, the problem of intranet websites being unable to read microphone audio was solved, enabling automatic voice recognition input for intranet users and improving work efficiency and the accuracy of transcription.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-19
- Publication Date
- 2026-03-27
AI Technical Summary
Internal websites cannot read microphone audio and invoke speech recognition functions via HTTPS, preventing internal users from automatically inputting text via speech recognition on web pages and reducing work efficiency.
The system receives voice input commands through a web browser, uses the Web Socket protocol to send the commands to a local microphone application, captures the voice signal, processes it into a character set, and automatically inputs it into the text box of the intranet website.
It enables intranet users to quickly and accurately input text via voice recognition on web pages, improving work efficiency and the completeness and accuracy of transcripts, and reducing the need for manual transcription.
Smart Images

Figure CN115955472B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of webpage text input, and in particular to a method and device for voice inputting a webpage text box of an intranet website. BACKGROUND
[0002] With the gradual maturity of speech recognition technology, more and more applications have utilized speech recognition function to directly convert speech into text input text box, which is convenient to operate and saves the time cost of manual input. When the browser collects microphone speech, it needs to be based on Hypertext Transfer Protocol Secure (HTTPS).
[0003] In the process of implementing the prior art, the inventor found that:
[0004] In order to effectively ensure the safety of unit information and prevent information leakage, more and more units begin to use intranet office. Through intranet office, an intranet computer needs a unified outlet to connect to the extranet, which will be limited to some unnecessary access, so as to be unable to connect to the external network. At this time, the intranet website cannot apply for intranet IP certificate, cannot use the https protocol, and cannot read microphone audio on the webpage and call speech recognition. In this way, the intranet user with speech recognition demand cannot successfully call speech recognition to realize automatic text input on the intranet webpage, which greatly reduces the work efficiency of the intranet user.
[0005] Therefore, it is necessary to provide a technical scheme capable of allowing the intranet user to read microphone audio on the webpage and call speech recognition. SUMMARY
[0006] The embodiment of the present application provides a technical scheme capable of allowing the intranet user to read microphone audio on the webpage and call speech recognition, so as to solve the technical problem that the webpage of the intranet website is limited in reading microphone audio and calling speech recognition function.
[0007] Specifically, a method for voice inputting a webpage text box of an intranet website comprises the following steps:
[0008] Receiving a voice input instruction of a webpage text box of an intranet website;
[0009] The webpage uses Web Socket protocol to issue the voice input instruction to a local microphone application program;
[0010] The local microphone application program collects voice signals under the control of the voice input instruction;
[0011] Processing the voice signals to generate a character set;
[0012] input the character set into a webpage text box of the intranet website.
[0013] Further, the intranet website webpage text box voice input instruction is received, and specifically includes:
[0014] The webpage of the intranet website is loaded by using the webpage browser.
[0015] The intranet website webpage text box voice input instruction is received by the webpage browser.
[0016] Further, the intranet website webpage text box voice input instruction is received by the webpage browser, and specifically includes:
[0017] The operation instruction of the user on the webpage browser interface is acquired.
[0018] When the operation instruction is a single click on the voice input shortcut key of the webpage browser interface, the operation instruction is identified as the intranet website webpage text box voice input instruction.
[0019] Further, the intranet website webpage text box voice input instruction is identified, and specifically includes:
[0020] The webpage text box activated last time before the operation instruction of the user on the webpage browser interface is acquired.
[0021] The operation instruction is associated with the webpage text box activated last time.
[0022] The operation instruction is identified as the intranet website webpage text box voice input instruction.
[0023] Further, the intranet website webpage text box voice input instruction is received, and specifically includes:
[0024] The shortcut operation of the user on the first position of the webpage of the intranet website is received.
[0025] According to the shortcut operation, the voice input instruction option is displayed.
[0026] When the user selects the voice input instruction option, the voice input instruction for the intranet website webpage text box at the first position is identified.
[0027] The application embodiment further provides a device for voice inputting a webpage text box of an intranet website.
[0028] Specifically, a device for voice inputting a webpage text box of an intranet website includes:
[0029] A receiving module is configured to receive an intranet website webpage text box voice input instruction.
[0030] a sending module, configured to send the voice input instruction to a local microphone application by using a Web Socket protocol of a webpage;
[0031] a collecting module, configured to collect a voice signal under control of the voice input instruction by the local microphone application;
[0032] a processing module, configured to process the voice signal to generate a character set;
[0033] an input module, configured to input the character set into a webpage text box of an intranet website.
[0034] Further, the receiving module is configured to receive the voice input instruction of the webpage text box of the intranet website, and specifically configured to:
[0035] load the webpage of the intranet website by using a webpage browser;
[0036] receive the voice input instruction of the webpage text box of the intranet website by using the webpage browser.
[0037] Further, the receiving module is configured to receive the voice input instruction of the webpage text box of the intranet website by using the webpage browser, and specifically configured to:
[0038] obtain an operation instruction of a user on an interface of the webpage browser;
[0039] when the operation instruction is a single click on a voice input shortcut key of the interface of the webpage browser, identify the operation instruction as the voice input instruction of the webpage text box of the intranet website.
[0040] Further, the receiving module is configured to identify the operation instruction as the voice input instruction of the webpage text box of the intranet website, and specifically configured to:
[0041] find a webpage text box activated last time before obtaining the operation instruction of the user on the interface of the webpage browser;
[0042] associate the operation instruction with the webpage text box activated last time;
[0043] identify the operation instruction as the voice input instruction of the webpage text box of the intranet website.
[0044] Further, the receiving module is configured to receive the voice input instruction of the webpage text box of the intranet website, and specifically configured to:
[0045] receive a shortcut operation of a user on a first position of the webpage of the intranet website;
[0046] display a voice input instruction option according to the shortcut operation.
[0047] When the user selects the voice input instruction option, the voice input instruction recognized for the web page text box in the first position of the intranet website is obtained.
[0048] The technical scheme provided by the embodiment of the present application has at least the following beneficial effects:
[0049] According to the operation instruction of the intranet user, the voice can be collected and voice recognition can be performed, and the recognized text can be input into the web page text box of the intranet website. In this way, the intranet user can call the voice recognition function under the condition of intranet communication, and realize the automatic input of the voice recognition text in the web page text box, without the intranet user manually transcribing the relevant voice. This makes the voice transcription of the intranet user more convenient, greatly improves the work efficiency of the intranet user. In addition, compared with manual voice transcription, the voice recognition function can effectively improve the accuracy and completeness of the input text. BRIEF DESCRIPTION OF DRAWINGS
[0050] The accompanying drawings described herein are used to provide further understanding of the present application, and form a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application, and do not constitute an improper limitation on the present application. In the drawings:
[0051] Figure 1 A flowchart of a method for voice input into a web page text box of an intranet website is provided.
[0052] Figure 2 A structural diagram of a device for voice input into a web page text box of an intranet website is provided. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme of the present application will be described clearly and completely below in combination with specific embodiments of the present application and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0054] The voice input web page text box of the intranet website can be understood as converting the relevant speech into text information by using voice recognition technology and automatically inputting the web page text box of the intranet website. It should be noted that the text information obtained by voice recognition is input into the web page text box of the intranet website. The intranet here can be understood as a local area network. That is, within a certain local geographical range, a computer group composed of multiple computers interconnected. The local area network can realize functions such as file management, application software sharing, printer sharing, schedule arrangement within the workgroup, electronic mail and fax communication services. The local area network is closed and can be composed of two computers in an office or thousands of computers in a company. Through intranet office, the intranet computer needs a unified outlet to connect to the extranet and will be limited to some unnecessary access. At this time, the unlicensed employee can only access the relevant web pages in the intranet or communicate by email, and cannot connect to the external network, thereby effectively avoiding the possibility of enterprise information being leaked during the employee's access to the extranet. Moreover, since the intranet has an additional security firewall compared to the extranet, it can have better resistance to attacks from the extranet through intranet office. Therefore, using intranet communication can effectively ensure that information is not leaked and attacked, and can meet the security management needs of users for confidential information to a certain extent.
[0055] It can be understood that in order to effectively ensure the security of unit information and prevent information leakage, more and more units begin to use intranet office. Although using intranet communication can ensure the security of information to a certain extent, unlicensed intranet users cannot access the network application program of the extranet. However, intranet communication cannot completely meet the network needs of intranet users. Intranet users need to access the external network and need to obtain relevant authorization. Then, external network can be performed. It should be noted that for government units with high information security requirements, it is difficult to open the permission of external network due to the nature of work. However, these departments inevitably have communication needs for external network in the actual work process.
[0056] In a specific application scenario provided by the present application, the method of inputting voice into the webpage text box of the intranet website can be applied to the court session process. With the gradual maturity of voice recognition technology, the accuracy and recognition speed of voice recognition have been greatly improved. The technology can be introduced into the court and applied to the court. During the court session, the court staff can use voice recognition software to quickly convert the speeches of the parties, judges and witnesses into text materials for storage. In this way, the court record can be quickly formed, and the speeches of the relevant personnel will not be missed, effectively improving the integrity of the record. More importantly, during the court session, the speaking speed of the parties is fast, and there are various dialect pronunciations. The use of voice recognition technology can make the formed record have high accuracy, and can greatly reduce the workload of the court staff. However, due to the requirement of information secrecy of the court, the court uses intranet office to prevent information leakage. However, when using intranet office, the intranet website cannot apply for intranet IP certificate and cannot use https protocol, so that the user cannot read the microphone audio on the webpage and call the voice recognition function. That is, when using intranet office, the court staff cannot normally call the voice recognition function through the webpage to input the webpage text box, and still need to rely on manual recording of the speeches in the court session. In this way, due to the intensive speaking in the court session, it is easy to cause the omission of the relevant speeches, which affects the integrity of the record. Moreover, if there are speeches with dialect accents, the accuracy of the formed record will also be affected. Therefore, a method is needed to input voice into the webpage text box of the intranet website through voice recognition function when using intranet office, so as to improve the completeness and accuracy of the record formed in the court session. That is, to ensure the accuracy of the record formed in the court session.
[0057] Specifically, refer to Figure 1 The present application provides a method of inputting voice into the webpage text box of the intranet website. Specifically, a method of inputting voice into the webpage text box of the intranet website includes the following steps:
[0058] S100: receiving a voice input instruction for the webpage text box of the intranet website.
[0059] The intranet herein can be understood as a local area network. The intranet website herein can be understood as a web page collection developed / established on a server by a unit using intranet office according to actual needs and associated with a plurality of web pages. The web page text box herein can be understood as a tool for inputting text obtained by voice recognition in the intranet website. The voice input instruction herein can be understood as an instruction sent to a web page of the intranet website for voice collection. When the web page of the intranet website receives the instruction, the voice collection process can be started. The generation of the web page text box voice input instruction can be controlled by the user or set by the program during the development of the intranet website.
[0060] The user controls the generation of the web page text box voice input instruction, that is, the voice input instruction is generated under the corresponding operation of the intranet website user. Specifically, the user can perform relevant operations on the web page of the intranet website, such as controlling a voice input instruction generation button, to generate a web page text box voice input instruction for the web page of the intranet website.
[0061] The program setting of the instruction generation during the development of the intranet website can be understood as setting the program for generating the web page text box voice input instruction for the intranet website during the development of the intranet website. For example, during the development of the intranet website, the instruction program is set to automatically generate after a fixed time interval after the corresponding web page is opened. That is, after opening the web page with the voice input function of the web page text box, the time is counted from when the web page is opened, and when the preset time threshold is reached, the web page text box voice input instruction for the intranet website is automatically generated.
[0062] In a specific embodiment provided in the present application, the method of inputting voice into the web page text box of the intranet website is applied to the court hearing process, and the intranet can correspond to the local area network used by the court during office work. The intranet website can be understood as a related website used by the court intranet office. For example, a trial website used during the hearing process. The web page text box can be understood as a text box tool used by the court during the hearing for the website to record the speeches of relevant personnel. The web page text box voice input instruction of the intranet website can be understood as an instruction sent to the corresponding web page of the trial website using intranet communication for voice collection. Then, the corresponding web page of the trial website can start the voice collection process according to the voice input instruction.
[0063] Further, in a preferred embodiment provided in the present application, receiving the web page text box voice input instruction of the intranet website specifically includes: loading the web page of the intranet website using a web browser; and receiving the voice input instruction for the web page text box of the intranet website through the web browser.
[0064] The web browser here can be understood as the application software used to present the content of an intranet website and enable users to interact with it. Examples include Internet Explorer, Chrome, Firefox, and 360 Browser. The process begins by loading the website webpage through the web browser, and then the web browser receives voice input commands from the text boxes on the intranet website. In other words, after loading and opening the intranet website webpage using the web browser, it receives pre-generated voice input commands.
[0065] Furthermore, in a preferred embodiment provided in this application, receiving voice input instructions for a webpage text box on an intranet website via a web browser specifically includes: acquiring user operation instructions on the web browser interface; when the operation instruction is clicking a voice input shortcut key on the web browser interface, recognizing the operation instruction as a voice input instruction for a webpage text box on an intranet website.
[0066] It's understandable that web browsers have a user interface. Users interact with the webpage through this interface. When a user performs an action on the interface, the web browser receives the corresponding instruction. For example, if a user clicks the "next page" button, the web browser will receive the instruction to go to the next page and display the content on that page.
[0067] When a user clicks the voice input shortcut key on the web browser interface, the web browser receives / acquires the user's command to prepare for voice input. Specifically, the user can click the button representing the "voice input" function on the web browser interface of an intranet website. When the user clicks this button, the browser receives the voice input command for that intranet website and recognizes it as a voice input command for a text box on the intranet website. In other words, when the user clicks the "voice input" button on the browser interface, the web browser automatically recognizes it as a voice input command for a text box on the intranet website. Thus, regardless of the location of the voice input shortcut key on the browser interface, as long as the user performs the action of clicking the voice input shortcut key, it represents the generation of a voice input command for a text box on the intranet website. This allows for the rapid generation of voice input commands for text boxes on intranet websites after the user performs an action, and the subsequent voice acquisition process can begin. This reduces the generation cycle of voice input commands for text boxes on intranet websites, enabling a faster response to the user's needs.
[0068] In the court session, the user can be understood as the staff of the court. When the staff of the court clicks the voice input shortcut key in the webpage browser interface of the intranet website, the webpage browser corresponding to the intranet website will receive the voice input instruction and identify it as a voice input instruction for the webpage text box of the court trial website using the intranet communication. Then, the webpage of the intranet website can expand the voice collection process according to the voice input instruction.
[0069] Further, in a preferred embodiment provided in the present application, the operation instruction is identified as a voice input instruction for the webpage text box of the intranet website, specifically including: finding the webpage text box activated by the last operation before the operation instruction of the user in the webpage browser interface; associating the operation instruction with the webpage text box activated by the last operation; and identifying the operation instruction as a voice input instruction for the webpage text box of the intranet website.
[0070] Finding the webpage text box activated by the last operation before the operation instruction of the user in the webpage browser interface can be understood as determining the webpage text box activated by the last operation record before the current operation of the user in the webpage browser interface. That is, according to the last operation record of the user, the webpage text box of the specific operation is determined. It can also be understood that the webpage text box activated by the last operation of the user in the webpage browser interface can be used to determine the webpage text box required by the user in the webpage browser interface for the corresponding operation. That is, the webpage text box activated by the last operation of the user in the webpage browser interface and the current operation is the same webpage text box.
[0071] After determining the webpage text box activated by the last operation of the user in the webpage browser interface, the operation instruction generated by the operation of "clicking the voice input shortcut key in the webpage browser interface" can be associated with the determined webpage text box. That is, a link between the current operation of "clicking the voice input shortcut key in the webpage browser interface" and the webpage text box activated by the last operation is established. That is, as long as the operation instruction of "clicking the voice input shortcut key in the webpage browser interface" is obtained, the operation instruction can be quickly identified as a voice input instruction for the specific webpage text box of the intranet website. In this way, there is no need to re-determine the webpage text input box, thereby improving the efficiency of generating the voice input instruction for the webpage text box of the intranet website after the user performs the operation, quickly responding to the operation of the user in the webpage browser, and improving the user experience.
[0072] Further, in another preferred embodiment provided by the present application, the receiving the voice input instruction of the webpage text box of the intranet website comprises: receiving a shortcut operation of a user at a first position of a webpage of the intranet website; displaying a voice input instruction option according to the shortcut operation; and identifying the voice input instruction as a voice input instruction of a webpage text box at the first position of the intranet website when the user selects the voice input instruction option.
[0073] It can be understood that the webpage in the intranet website can be provided with multiple text boxes according to different text categories. For example, during a court session, the record of the speech of a speaker can be recorded in different text boxes according to the identity of the speaker. Specifically, the record of the speech of a plaintiff can be recorded in a first text box in the webpage, the record of the speech of a defendant can be recorded in a second text box in the webpage, and the record of the speech of a judge can be recorded in a third text box in the webpage. In addition, when there are multiple plaintiffs, the record of the speech of each plaintiff can be recorded in a sub-text box under the first text box. Similarly, when there are multiple defendants / judges, the record of the speech of each defendant / judge can be recorded in a sub-text box under the second / third text box. That is, the record of the speech of each speaker can be recorded in a text box at a different position in the same webpage.
[0074] The first position herein can be understood as a position in the webpage interface of the intranet website at which the user can perform a voice input related operation. For example, the position of the text box for recording the speech of a plaintiff in the webpage of the court intranet trial website. Or the position of the relevant identification button representing the voice input function. The shortcut operation herein can be understood as a specific operation performed by the user at the first position for performing a voice input related operation. For example, right-clicking to expand a folded function list, or clicking a relevant button to expand a folded function list, and the like. It can be understood that the specific operation mode of the shortcut operation herein does not constitute a limitation on the protection scope of the present application. After the user performs the shortcut operation at the first position of the webpage of the intranet website, the webpage can receive the corresponding operation instruction and perform the operation according to the preset logic.
[0075] Specifically, the webpage can display a voice input instruction option according to the shortcut operation of the user at the first position. The voice input instruction option can be understood as a list of instruction elements in the relevant instruction set indicating the voice input function that needs to be presented according to the user operation. That is, according to the shortcut operation of the user at the first position, a number of voice input instruction elements that can be performed at the first position are displayed. For example, when the user clicks the voice input function button at the first position, a number of voice input prompt options for specific pointing objects that can be operated by the user are displayed. For example, the voice input options for the plaintiff and the defendant at the first position are displayed.
[0076] When the user selects the voice input instruction option, the instruction option is identified as a voice input instruction for the webpage text box at the first position of the intranet website. That is, after the user performs a specific operation of voice input at the first position, the operation can be identified as a voice input instruction for the webpage text box corresponding to the first position. It can also be understood that the first position is pre-associated with the first webpage text box. Once the user performs a voice input operation at the first position, the operation is associated with the first webpage text box. For example, if the specific operation performed by the user at the first position is to select the "plaintiff voice input" option, the content input into the first webpage text box associated with the first position corresponds to the statement of the plaintiff; if the specific operation performed by the user at the first position is to select the "defendant voice input" option, the content input into the first webpage text box associated with the first position corresponds to the statement of the defendant. In this way, the operation instruction to be performed can be associated with the corresponding webpage text box according to the specific operation performed by the user at different positions, thereby facilitating the classified management of the content input into different webpage text boxes, and effectively improving the management efficiency of the user for voice input content from different sources / objects. In particular, when multiple objects need to be managed by voice input, the user can select the corresponding object to perform voice input operation according to the actual voice input demand at the corresponding position, so that the statement of each party can be recorded in the corresponding webpage text box. That is, the classified presentation of different categories of voice has been completed. In this way, the user does not need to classify and arrange the voice input content again, and can directly determine the statement content of each object according to the position of the text box.
[0077] S200: The webpage uses the Web Socket protocol to issue the voice input instruction to the local microphone application program.
[0078] It can be understood that when the webpage receives the webpage text box input instruction of the intranet website, the subsequent voice collection process will be carried out. The local microphone application program can be understood as an application program installed on the device terminal of the user of the webpage for voice collection. When the local microphone application program receives the webpage text box voice input instruction, it can perform voice collection according to the voice input instruction.
[0079] Specifically, the intranet website page in the present application sends the voice input instruction to the local microphone application through the Web Socket protocol. The Web Socket protocol is a protocol for full-duplex communication over a single Transmission Control Protocol (TCP) connection. The Web Socket protocol adopts the Hyper Text Transfer Protocol (HTTP) protocol for handshaking, and in the WebSocket application programming interface, the browser and the server only need to complete a handshake, and a persistent connection can be directly created between the two, and bidirectional data transmission can be performed. In addition, using the Web Socket protocol for communication can allow the server to actively push data to the client, thereby making the data exchange between the client and the server more simple. In this way, after the microphone application installed locally and the web server complete the handshake, if the web server receives the intranet website webpage text box input instruction, it can be actively sent to the microphone application installed locally, without the microphone application installed locally and the web server again. In this way, the connection time between the web server and the microphone application installed locally can be saved, so that the local microphone application can quickly respond to the voice collection demand issued by the web server, and the time delay of the local microphone application responding to the user operation is reduced.
[0080] S300: The local microphone application collects voice signals under the control of the voice input instruction.
[0081] S400: Process the voice signal to generate a character set.
[0082] It can be understood that when the local microphone application receives the voice input instruction sent by the webpage through the Web Socket protocol, the voice can be collected. In practical applications, the local microphone application can collect voice signals by controlling the microphone installed at the location of the user terminal device / speaker. For example, during the court trial process, the local microphone application can collect voice by controlling the microphone installed at the location of each speaker. After the local microphone application controls the microphone to collect voice under the control of the voice input instruction, the corresponding voice signal is generated. That is, the local microphone application collects the voice signal of the corresponding speaker.
[0083] The character set can be understood as relevant text information obtained by performing voice recognition on a voice signal collected by a local microphone application. That is, the collected voice is recognized as corresponding text by voice recognition technology. Voice recognition can be performed by the microphone application installed locally, and can be normally used in a network environment using intranet communication. When the microphone application installed locally collects the corresponding voice, it can be processed into corresponding text information.
[0084] S500: input the character set into the webpage text box of the intranet website.
[0085] When the voice signal recognition is completed, the voice recognition tool can send the recognized relevant text information to the webpage text box of the webpage. That is, after the voice is collected and recognized, the corresponding text recognition result will be displayed in the webpage text box. That is, after the voice recognition is completed, the webpage will present the corresponding voice recognition result.
[0086] In a specific embodiment provided by the present application, the method of inputting voice into the webpage text box of the intranet website is applied to the process of court session using intranet office. During the session, the court staff can click the voice input identification key on the webpage of the intranet website. At this time, the corresponding intranet website of the webpage will receive the corresponding operation instruction, and send it to the local microphone application using the Web Socket protocol. The local microphone application will collect the voice signal under the control of the voice input instruction, and process it into corresponding characters and send it to the corresponding text box of the webpage.
[0087] It can be understood that the method of inputting voice into the webpage text box of the intranet website in the present application can be applied to the court session process, and can also be applied to other related units that have voice recognition needs and use intranet office. For example, it can be applied to the meeting of the unit using intranet office. The application of the method of inputting voice into the webpage text box of the intranet website to the court session process is obviously not a limitation on the protection scope of the present application.
[0088] Please refer to Figure 2 A device for inputting voice into the webpage text box of the intranet website is provided for the embodiment of the present application, which is used to execute steps S100-S500. Specifically, a device 100 for inputting voice into the webpage text box of the intranet website includes:
[0089] The receiving module 11 is used to receive the voice input instruction of the webpage text box of the intranet website.
[0090] The sending module 12 is used to send the voice input instruction to the local microphone application using the Web Socket protocol by the webpage.
[0091] The collection module 13 is used for collecting voice signals under the control of the voice input instruction of the local microphone application program;
[0092] The processing module 14 is used for processing the voice signals to generate a character set;
[0093] The input module 15 is used for inputting the character set into the webpage text box of the intranet website.
[0094] The receiving module 11 is used for receiving the webpage text box voice input instruction of the intranet website. The intranet herein can be understood as a local area network. The intranet website herein can be understood as a webpage set developed / constructed on a server by a unit using the intranet office according to actual needs, which is associated with a plurality of webpages. The webpage text box herein can be understood as a tool for inputting the text obtained through voice recognition in the intranet website. The voice input instruction herein can be understood as an instruction sent to the intranet webpage, which is intended to collect voice. When the webpage of the intranet website receives the instruction, the voice collection process can be unfolded. The generation of the webpage text box voice input instruction can be controlled by the user or set by the program during the development of the intranet website.
[0095] The user-controlled generation of the webpage text box voice input instruction is that the voice input instruction is generated under the corresponding operation of the user of the intranet website. Specifically, the user can perform relevant operations on the webpage of the intranet website, for example, control the voice input instruction generation button, to generate the webpage text box voice input instruction for the webpage of the intranet website.
[0096] The program setting of the instruction generation during the development of the intranet website can be understood as setting the webpage text box voice input instruction generation program for the intranet website during the development of the intranet website. For example, during the development of the intranet website, the instruction program is set to be automatically generated after a fixed time interval after the corresponding webpage is opened. That is, after opening the webpage with the voice input function of the webpage text box, the webpage can be automatically generated when the webpage is opened. When the timing reaches the preset time threshold, the webpage text box voice input instruction for the intranet website can be automatically generated.
[0097] In an embodiment provided in the application, the method of inputting voice into the webpage text box of the intranet website is applied to the court session process, and the intranet can correspond to the local area network used by the court during office hours. The intranet website can be understood as a related website used by the court intranet office. For example, the trial website used in the court session process. The webpage text box can be understood as a text box tool used for recording the speech of relevant personnel during the court session. The webpage text box voice input instruction of the intranet website can be understood as an instruction sent to the corresponding webpage of the trial website using intranet communication, which is ready to collect voice. Then, the corresponding webpage of the trial website can expand the voice collection process according to the voice input instruction.
[0098] Further, in a preferred embodiment provided in the application, the receiving module 11 is configured to receive the webpage text box voice input instruction of the intranet website, and specifically configured to: load the webpage of the intranet website using the webpage browser; and receive the webpage text box voice input instruction of the intranet website through the webpage browser.
[0099] The webpage browser here can be understood as an application software used to present the content of the intranet website webpage and enable the user to interact with the intranet website webpage. For example, Internet Explorer browser, Chrome browser, Firefox browser, 360 browser, etc. Here, the webpage of the website is first loaded through the webpage browser, and then the webpage text box voice input instruction of the intranet website is received through the webpage browser. That is, after loading and opening the webpage of the intranet website using the webpage browser, the instruction for generating voice collection is received.
[0100] Further, in a preferred embodiment provided in the application, the receiving module 11 is configured to receive the webpage text box voice input instruction of the intranet website through the webpage browser, and specifically configured to: obtain an operation instruction of the user on the webpage browser interface; and when the operation instruction is a single click on the voice input shortcut key of the webpage browser interface, identify the operation instruction as the webpage text box voice input instruction of the intranet website.
[0101] It can be understood that the webpage browser has an operation interface. The user interacts with the webpage through the operation interface. When the user performs a certain operation on the operation interface, the webpage browser will obtain the corresponding operation instruction. For example, after the user clicks the next page button on the browser interface, the webpage browser will obtain the corresponding next page operation instruction and present the next page content.
[0102] When the operation of the user is clicking a voice input shortcut key of the webpage browser interface, the webpage browser will receive / acquire the operation instruction of preparing voice input under the operation of the user. Specifically, the user can make an operation of clicking an identification button representing the "voice input" function in the webpage browser interface of the intranet website. When the user clicks the button, the browser will receive the voice input instruction for the intranet website, and identify the voice input instruction as the voice input instruction for the webpage text box of the intranet website. That is, the user clicks the "voice input" button of the browser interface, and the webpage browser will automatically identify it as the voice input instruction for the webpage text box of the intranet website. In this way, no matter where the voice input shortcut key is located in the browser interface, as long as the user performs the operation of clicking the voice input shortcut key, it represents the generation of the voice input instruction for the webpage text box of the intranet website. In this way, the voice input instruction for the webpage text box of the intranet website can be quickly generated after the user performs the operation, and the subsequent voice collection process can be unfolded. That is, the generation period of the voice input instruction for the webpage text box of the intranet website is reduced, and the use demand of the operator can be quickly responded.
[0103] During the court session, the user can be understood as the staff of the court. When the staff of the court clicks the voice input shortcut key in the webpage browser interface of the intranet website, the corresponding webpage browser will receive the voice input instruction, and identify it as the voice input instruction for the webpage text box of the trial website using the intranet communication of the court. Then, the webpage of the intranet website can unfold the voice collection process according to the voice input instruction.
[0104] Further, in a preferred embodiment provided in the application, the receiving module 11 is configured to identify the operation instruction as the voice input instruction for the webpage text box of the intranet website, and specifically configured to: find and acquire the webpage text box activated by the last operation before the operation instruction of the user in the webpage browser interface; associate the operation instruction and the webpage text box activated by the last operation; and identify the operation instruction as the voice input instruction for the webpage text box of the intranet website.
[0105] The last activated webpage text box before the user's operation instruction in the webpage browser interface is obtained, which can be understood as determining the activated webpage text box recorded in the last operation record before the user performs the current operation in the webpage browser interface. That is, according to the user's last operation record, the specific operation webpage text box is determined. It can also be understood that the webpage text box activated by the user's last operation of “clicking the voice input shortcut key in the webpage browser interface” in the webpage browser interface can be determined as the webpage text box required by the user to perform the corresponding operation in the webpage browser interface. That is, the activated webpage text box of the user's last operation of “clicking the voice input shortcut key in the webpage browser interface” and the current operation is the same webpage text box.
[0106] After determining the webpage text box activated by the user's last operation in the webpage browser interface, the corresponding operation instruction generated by the operation of “clicking the voice input shortcut key in the webpage browser interface” can be associated with the determined webpage text box. That is, a link between the current operation of “clicking the voice input shortcut key in the webpage browser interface” and the webpage text box activated by the last operation is established. That is, as long as the user's operation instruction of “clicking the voice input shortcut key in the webpage browser interface” is obtained, the operation instruction can be quickly identified as a voice input instruction for the specific webpage text box of the intranet website. In this way, there is no need to re-determine the webpage text input box, thereby improving the efficiency of generating a voice input instruction for the webpage text box of the intranet website after the user performs the operation, quickly responding to the user's operation in the webpage browser, and improving the user's experience.
[0107] Further, in another preferred embodiment provided in the present application, the receiving module 11 is configured to receive a webpage text box voice input instruction of an intranet website, specifically configured to: receive a shortcut operation performed by a user at a first position of a webpage of an intranet website; display a voice input instruction option according to the shortcut operation; and when the user selects the voice input instruction option, identify it as a voice input instruction for the webpage text box at the first position of the intranet website.
[0108] It can be understood that the webpage in the intranet website can set multiple text boxes according to different text categories. For example, during the process of the court session, the corresponding record of the notes can be recorded in different text boxes according to the identity of the speaker. Specifically, the record of the notes for the plaintiff can be recorded in the first text box in the webpage according to the speech of the plaintiff; the record of the notes for the defendant can be recorded in the second text box in the same webpage according to the speech of the defendant; the speech of the judge can be recorded in the third text box in the same webpage according to the speech of the judge. In addition, when there are multiple plaintiffs, the record of the notes formed by the speech of each plaintiff can be recorded in the sub-text box under the first text box, respectively. By analogy, when there are multiple defendants / judges, the record of the notes formed by the speech of each defendant / judge can be recorded in the sub-text box under the second / third text box, respectively. That is, the record of the notes formed by each speaker can be recorded in the text box at different positions in the same webpage, respectively.
[0109] The first position here can be understood as a position in the webpage interface of the intranet website that can be used by the user to perform the voice input related operation. For example, the position of the text box for recording the content of the speech of the plaintiff in the webpage of the court intranet trial website. Or the position of the identification button representing the voice input function. The shortcut operation here can be understood as the specific operation made by the user at the first position to perform the voice input related operation. For example, right-clicking to expand the folded function list, or clicking the related button to expand the folded function list, and the like. It can be understood that the specific operation mode of the shortcut operation here does not constitute a limitation on the protection scope of the present application. When the user performs the shortcut operation at the first position of the webpage of the intranet website, the webpage can receive the corresponding operation instruction and perform the operation according to the preset logic.
[0110] Specifically, the webpage can display the voice input instruction option according to the shortcut operation of the user at the first position. The voice input instruction option can be understood as a list of instruction elements in the set of instructions indicating the voice input function that needs to be presented according to the user operation. That is, according to the shortcut operation of the user at the first position, a number of voice input instruction elements that can be performed at the first position are displayed. For example, when the user clicks the voice input function button at the first position, a number of voice input prompt options for specific pointing objects that can be operated by the user are displayed. For example, the voice input options for the plaintiff and the defendant that can be performed at the first position are displayed.
[0111] When the user selects the voice input instruction option, the instruction option is identified as a voice input instruction for the webpage text box in the first position of the intranet website. That is, after the user performs a specific operation of voice input in the first position, the operation can be identified as a voice input instruction for the webpage text box corresponding to the first position. It can also be understood that the first position is pre-associated with the first webpage text box. Once the user performs a voice input operation in the first position, the operation can be associated with the first webpage text box. For example, if the specific operation performed by the user in the first position is to select the "plaintiff voice input" option, the content input into the first webpage text box associated with the first position corresponds to the statement of the plaintiff; if the specific operation performed by the user in the first position is to select the "defendant voice input" option, the content input into the first webpage text box associated with the first position corresponds to the statement of the defendant. In this way, the operation instruction to be performed can be associated with the corresponding webpage text box according to the specific operation performed by the user in different positions, thereby facilitating the classified management of the content input into different webpage text boxes, and effectively improving the management efficiency of the user for voice input content of different sources / objects. In particular, when voice input management of multiple objects is required, the user can select the corresponding object to perform voice input operation according to the actual voice input requirement in the corresponding position, so that the statement of each party can be recorded in the corresponding webpage text box. That is, the classified presentation of different categories of voice has been completed. In this way, the user does not need to classify and arrange the voice input content again, and can directly determine the statement content of each object according to the position of the text box.
[0112] The sending module 12 is used to use the Web Socket protocol to send the voice input instruction to the local microphone application program. It can be understood that when the webpage receives the webpage text box input instruction of the intranet website, the subsequent voice collection process will be carried out. Here, the local microphone application program can be understood as an application program installed on the device terminal of the user of the webpage for voice collection. When the microphone application program installed locally receives the webpage text box voice input instruction, voice collection can be performed according to the voice input instruction.
[0113] Specifically, the intranet website webpage in the present application sends the voice input instruction to the local microphone application through the Web Socket protocol. The Web Socket protocol is a protocol for full-duplex communication over a single Transmission Control Protocol (TCP) connection. The Web Socket protocol adopts the Hyper Text Transfer Protocol (HTTP) protocol for handshaking, and in the WebSocket application programming interface, the browser and the server only need to complete a handshake, and a persistent connection can be directly created between the two, and bidirectional data transmission can be performed. In addition, using the Web Socket protocol for communication can allow the server to actively push data to the client, thereby making the data exchange between the client and the server more simple. In this way, after the microphone application installed locally and the web server complete the handshake, if the web server receives the intranet website webpage text box input instruction, it can be actively sent to the microphone application installed locally, without the microphone application installed locally and the web server again. In this way, the connection time between the web server and the microphone application installed locally can be saved, so that the local microphone application can quickly respond to the voice collection demand issued by the web server, and the time delay of the local microphone application responding to the user operation is reduced.
[0114] The acquisition module 13 is configured to control the local microphone application to collect the voice signal under the control of the voice input instruction; and the processing module 14 is configured to process the voice signal to generate a character set.
[0115] It can be understood that when the local microphone application receives the voice input instruction sent by the webpage through the Web Socket protocol, the voice can be collected. In actual application, the local microphone application can collect the voice signal by controlling the microphone installed at the position of the user terminal device / speaker. For example, in the court trial process, the local microphone application can collect the voice by controlling the microphone installed at the position of each speaker. After the local microphone application controls the microphone to collect the voice under the control of the voice input instruction, the corresponding voice signal is generated. That is, the local microphone application collects the voice signal of the corresponding speaker.
[0116] The character set can be understood as relevant text information obtained by voice recognition based on the voice signal collected by the local microphone application. That is, the collected voice is recognized as corresponding text by voice recognition technology. Voice recognition can be performed by the microphone application installed locally, and can be normally used in a network environment using intranet communication. When the microphone application installed locally collects the corresponding voice, it can be processed as corresponding text information.
[0117] The input module 15 is used to input the character set into the webpage text box of the intranet website. When the voice signal recognition is completed, the voice recognition tool can send the recognized relevant text information to the webpage text box of the webpage. That is, after the voice is collected and recognized, the corresponding text recognition result will be displayed in the webpage text box. That is, after the voice recognition is completed, the webpage will present the corresponding voice recognition result.
[0118] In a specific embodiment provided in the present application, the method of inputting voice into the webpage text box of the intranet website is applied to the process of court session using intranet office. During the session, the court staff can click the voice input identification key on the webpage of the intranet website. At this time, the corresponding intranet website of the webpage will receive the corresponding operation instruction, and send it to the local microphone application using the Web Socket protocol. The local microphone application will collect the voice signal under the control of the voice input instruction, and process it into corresponding characters and send it to the corresponding text box of the webpage.
[0119] It can be understood that the method of inputting voice into the webpage text box of the intranet website in the present application can be applied to the court session process, and can also be applied to other related units that have voice recognition needs and use intranet office. For example, it can be applied to the meeting of the unit using intranet office. The application of the method of inputting voice into the webpage text box of the intranet website in the scenario of the court session process does not constitute a limitation on the protection scope of the present application.
[0120] It should be noted that the terms "comprising", "including", or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or apparatus including a series of elements includes not only those elements, but also other elements not explicitly listed, or other elements inherent in such a process, method, article or apparatus. Without more limitations, the element defined by the phrase "including a…" does not exclude the presence of additional identical elements in the process, method, article or apparatus including the element.
[0121] The above merely provides an example of the present application, and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present application should be included in the scope of claims of the present application.
Claims
1. A method for voice inputting a web page text box of an intranet website, characterized in that, Includes the following steps: Receive voice input commands from text boxes on intranet websites; The webpage uses the WebSocket protocol to send the voice input command to the local microphone application; The local microphone application captures voice signals under the control of voice input commands; Process speech signals to generate character sets; Input the character set into the text box of the intranet website; Specifically, receiving voice input commands from text boxes on intranet websites includes: Use a web browser to load web pages from an intranet website; Obtain user commands from the web browser interface; When the operation instruction is to click the voice input shortcut key on the web browser interface, find and retrieve the web text box that was most recently activated before the user's operation instruction on the web browser interface; Find the most recently activated web page text box before the user's operation command in the web browser interface, including: determining the web page text box that was activated by the operation recorded in the previous operation record before the user performed this operation in the web browser interface, and establishing a link between the current "click the voice input shortcut key in the web browser interface" operation and the web page text box that was activated by the previous operation. Associate the operation command with the text box on the webpage that was activated by the most recent operation; The operation command is recognized as a voice input command for a text box on a webpage of an intranet website; Receive voice input commands from text boxes on intranet websites, specifically including: Receive quick actions performed by users at the first position on the webpage of the intranet website; Based on the aforementioned shortcut operation, voice input command options will be displayed; When a user selects the voice input command option, it is recognized as a voice input command for the first position of the webpage text box on the intranet website. The first position is the text box position on the intranet website webpage interface used to record the speech content. The webpage on the intranet website has multiple text boxes, and the corresponding speech content is recorded in different text boxes according to the speaker's identity.
2. An apparatus for voice inputting a web page text box of an intranet website, characterized by, include: A receiving module is used to load web pages from an intranet website using a web browser; acquire user operation instructions on the web browser interface; when the operation instruction is clicking the voice input shortcut key on the web browser interface, locate the web page text box activated in the most recent operation before acquiring the user's operation instruction on the web browser interface; wherein, locating the web page text box activated in the most recent operation before acquiring the user's operation instruction on the web browser interface includes: determining the web page text box activated by the operation recorded in the previous operation record before the user performed the current operation on the web browser interface, establishing a link between the current "clicking the voice input shortcut key on the web browser interface" operation and the web page text box activated in the previous operation, associating the operation instruction with the most recently activated web page text box; and recognizing the operation instruction as a voice input instruction for a web page text box on the intranet website. The sending module is used by the webpage to send the operation instructions to the local microphone application using the WebSocket protocol; The collection module is used for a local microphone application program to collect voice signals under the control of an operation instruction; The processing module is used for processing the voice signals to generate a character set; The input module is used for inputting the character set into a webpage text box of the intranet website; The receiving module is further used for: receiving a shortcut operation performed by a user at a first position of a webpage of the intranet website; displaying a voice input instruction option according to the shortcut operation; when the user selects the voice input instruction option, identifying the voice input instruction as being directed to the webpage text box at the first position of the intranet website, the first position being a text box position for recording speech content in the intranet website webpage interface, the webpage in the intranet website being provided with a plurality of text boxes, and speech content of a speaker being recorded in different text boxes according to the identity of the speaker.
Citation Information
Patent Citations
Court trial control method and system, computer equipment and storage medium
CN109003608A
Speech recognition method and device based on artificial intelligence and computer device
CN109994110A
Test paper processing method and device, electronic equipment and storage medium
CN113204634A