Method for offline voice retrieval of products without network
By developing an offline database and a dedicated scene knowledge graph in the Android SDK, the problem of immature voice search technology under no network conditions is solved, fast and accurate voice recognition and search are achieved, and user experience and recognition efficiency are improved.
Patent Information
- Application Number
- CN202110478462.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-30
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-04-30
AI Technical Summary
In the absence of network conditions, the existing voice search technology is not mature enough, speech recognition is troublesome to use, the search range is limited, and the data processing speed is slow, resulting in low accuracy of search results and inability to meet user needs.
Use the Android SDK to develop an offline database, download speech, text and special scene knowledge graphs, perform speech recognition conversion and error correction, use the special scene knowledge graph to classify and mark, achieve rapid positioning and search, and open the corresponding content through tag matching.
It improves the accuracy and efficiency of offline voice search, enhances the applicability and flexibility of search, reduces the number of repeated entries, simplifies data processing steps, and improves recognition capabilities and user experience.
Smart Images

Figure CN113220830B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of voice search technology, and in particular to a method for offline voice retrieval of products under no network condition. Background Art
[0002] Voice search refers to the ability to search on a mobile phone or computer by speaking to it. That is, the content spoken on the device is recognized by the server, and then information is searched based on the recognition results. Voice search technology has become an important part of daily life, enabling users to perform voice control anytime and anywhere, bringing great convenience to people's lives.
[0003] However, the current voice search technology in offline state is not mature enough, voice recognition is more troublesome to use when the network is disconnected, the search range in offline state is limited, and the data processing speed is slow, resulting in low accuracy of search results, which has a certain impact on the search and cannot meet the needs of the search. Summary of the invention
[0004] The present invention provides a method for offline voice retrieval products under no network conditions, which can effectively solve the problems raised in the above background technology that the current voice search technology in an offline state is not mature enough, the use of voice recognition in an offline state is more troublesome, the search range in an offline state is limited, and the data processing speed is slow, which leads to low accuracy of search results, has a certain impact on the search, and cannot meet the needs of the search.
[0005] To achieve the above object, the present invention provides the following technical solution: a method for offline voice retrieval of products without network conditions, comprising the following search steps:
[0006] S1. First, use the Android SDK to develop an integrated offline database, download the voice, text and dedicated scene knowledge graphs available for recognition in the database, and classify the offline database;
[0007] S2. The user receives voice through a voice receiving device, matches the voice with an offline database, recognizes and converts the voice, and matches the knowledge graph of the dedicated scene according to the text;
[0008] S3. Correct the recognized and converted text according to the knowledge graph and error correction system for the dedicated scenario;
[0009] S4, marking and replacing the text after error correction, and displaying it;
[0010] S5. After the error correction is completed, the text is labeled using the dedicated scene knowledge graph to classify the recognized text;
[0011] S6. After the tagging is completed, all the corresponding text and voice content can be found by identifying the tag;
[0012] S7. After inputting the voice, you can directly open the corresponding tag and view the content of the corresponding tag.
[0013] According to the above technical solution, in S1, the required special-scenario knowledge graph is set in the database, and then the corresponding voice and text are downloaded in each corresponding special-scenario knowledge graph, a classification database is set according to the special scenario, and the corresponding special-scenario knowledge graph is opened after the text is recognized, and the corresponding voice and text are consulted, and the corresponding special-scenario knowledge graph is identified when the recognized voice is converted into text.
[0014] According to the above technical solution, in S2, the user speaks the relevant content that needs to be searched. After the voice receiving device receives the user's voice, it first converts the voice, and then matches the text with the text in the offline database to find the matching text content, and then searches for the special scene knowledge graph corresponding to the text, and then presents the content of the corresponding scene on the display device.
[0015] The user receives voice through a voice receiving device, matches the voice with an offline database, recognizes and converts the voice, and matches the knowledge graph of the dedicated scenario based on the voice.
[0016] According to the above technical solution, in S2, after the voice is converted into text, the corresponding content is searched in the corresponding dedicated scene knowledge graph, and the knowledge graph of the corresponding scene is sorted from high to low according to the search results and presented on the display device.
[0017] According to the above technical solution, in S3-S4, when the speech is recognized, the error correction system is used to search for speech content that is difficult to recognize and incorrect text combinations;
[0018] For difficult-to-recognize speech, the inference is made based on the context, length and pronunciation of the previously recognized speech, and an inference result suitable for the context is given;
[0019] For incorrect text, the correct text content is given according to the semantic content, and modifications are made to the text after the initial recognition.
[0020] According to the above technical solution, the inference result of the difficult-to-recognize speech is displayed in blue font, and the normally recognized text is displayed in black font;
[0021] When the erroneous text is modified, a box is added outside the initially recognized erroneous text to select it, and the modified text is bolded and displayed below the box.
[0022] According to the above technical solution, in S5, after the error correction is completed, the corresponding knowledge graph is displayed, and a label is given to each special scene through the knowledge graph, so that the label, text, special scene and knowledge graph correspond one by one. By identifying any one of them, all the contents can be opened for viewing, and the classified database can be named with the label.
[0023] According to the above technical solution, the label is composed of 2-8 Chinese characters, and the label itself can be matched as a keyword for recognition. During the recognition process, the label and text are recognized first, and then the special scenario knowledge graph is determined. After the special scenario knowledge graph is determined, recognition is performed under the special scenario knowledge graph first.
[0024] According to the above technical solution, in S6, after the tag marking is completed, a tag is selected, the interference of other tag contents is automatically eliminated, the classification database corresponding to the tag is opened, and the corresponding content is searched according to the knowledge spectrum in the database, so as to quickly find the required text content.
[0025] According to the above technical solution, in S7, the corresponding voice data in the classification database is input again, the voice matches the label of the data, the corresponding database is directly opened, the subsequently input voice content is recognized, and the required content is searched through voice input.
[0026] Compared with the prior art, the present invention has the following beneficial effects:
[0027] 1. Set up an offline classification database through the Android SKD device, download the corresponding content in the database, and store the data in different scenarios separately. During voice recognition, first convert the voice into text, then classify the converted content, and search the content in the corresponding classification database to make the offline version of voice recognition clearly classified. During recognition, quickly locate the range to be searched, making the range selection faster.
[0028] 2. When performing database classification and voice recognition search, special scenario knowledge graphs are loaded. By loading the special scenario knowledge graph, searches can be performed in specific scenarios and graphs, making the search ideas clearer and more applicable. This makes it possible to search different scenarios and present different search results, which is not available in current search operations. This makes the search results more in line with the user's search needs and makes it more flexible for users to use.
[0029] 3. By analyzing the difficult-to-recognize and mis-recognized locations in speech conversion, inferring the difficult-to-recognize content based on the scene content, modifying the mis-recognized content, and displaying it in different colors, the user's speech recognition efficiency can be higher, and simple errors in the speech can be processed, thereby improving recognition efficiency, reducing the number of repeated speech inputs, and enhancing recognition capabilities.
[0030] 4. Label the knowledge graph of special scenarios and display the corresponding knowledge graph after error correction. Label each special scenario through the knowledge graph so that labels, texts, special scenarios and knowledge graphs correspond one to one. By identifying any one of them, you can open all the contents for viewing, and name the classification database with labels. When identifying the corresponding scene, you can identify it through the label, automatically exclude the interference of other label contents, open the classification database corresponding to the label, and identify fewer numbers for easy identification.
[0031] 5. Through the knowledge graph, the content in the database with more data is sorted out, which makes it convenient to open the classification database corresponding to the label during identification, and search for the corresponding content according to the knowledge graph of the classification database. The search steps are more organized and can quickly find the corresponding data in complex data.
[0032] To sum up, by classifying the database, determining the data range, and using the knowledge graph to search the data in the database, the required data can be refined step by step, making the data more organized and shortening the search time. It can also infer difficult-to-recognize content based on special scenarios, modify the misrecognized content, and improve the speech conversion efficiency. By marking labels and labeling different knowledge graphs, the corresponding special scenario knowledge graphs can be identified through labels, thereby increasing the recognition efficiency of the knowledge graph. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.
[0034] In the attached picture:
[0035] Figure 1 It is a flow chart of the steps of the search method of the present invention. DETAILED DESCRIPTION
[0036] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0037] Example: Figure 1As shown, the present invention provides a technical solution, a method for offline voice retrieval of products without network conditions, comprising the following search steps:
[0038] S1. First, use the Android SDK to develop an integrated offline database, download the voice, text and dedicated scene knowledge graphs available for recognition in the database, and classify the offline database;
[0039] S2. The user receives voice through a voice receiving device, matches the voice with an offline database, recognizes and converts the voice, and matches the knowledge graph of the dedicated scene according to the text;
[0040] S3. Correct the recognized and converted text according to the knowledge graph and error correction system for the dedicated scenario;
[0041] S4, marking and replacing the text after error correction, and displaying it;
[0042] S5. After the error correction is completed, the text is labeled using the dedicated scene knowledge graph to classify the recognized text;
[0043] S6. After the tagging is completed, all the corresponding text and voice content can be found by identifying the tag;
[0044] S7. After inputting the voice, you can directly open the corresponding tag and view the content of the corresponding tag.
[0045] According to the above technical solution, in S1, the required special scenario knowledge graph is set in the database, and then the corresponding voice and text are downloaded in each corresponding special scenario knowledge graph, and a classification database is set according to the special scenario. After the text is recognized, the corresponding special scenario knowledge graph is opened, and the corresponding voice and text are consulted. When the recognized voice is converted into text, the corresponding special scenario knowledge graph is identified.
[0046] According to the above technical solution, in S2, the user speaks the relevant content that needs to be searched. After the voice receiving device receives the user's voice, it first converts the voice, and then matches the text with the text in the offline database to find the matching text content, and then searches for the special scene knowledge graph corresponding to the text, and then presents the content of the corresponding scene on the display device.
[0047] The user receives voice through a voice receiving device, matches the voice with an offline database, recognizes and converts the voice, and matches the knowledge graph of the dedicated scenario based on the voice.
[0048] According to the above technical solution, in S2, after the voice is converted into text, the corresponding content is searched in the corresponding dedicated scene knowledge graph, and the knowledge graph of the corresponding scene is sorted from high to low according to the search results and presented on the display device.
[0049] According to the above technical solution, in S3-S4, when recognizing speech, the error correction system is used to search for speech content that is difficult to recognize and incorrect text collocation;
[0050] For difficult-to-recognize speech, the inference is made based on the context, length and pronunciation of the previously recognized speech, and an inference result suitable for the context is given;
[0051] For incorrect text, the correct text content is given according to the semantic content, and modifications are made to the text after the initial recognition.
[0052] According to the above technical solution, for difficult-to-recognize speech, the inference result is displayed in blue font, and the normally recognized text is displayed in black font;
[0053] When the erroneous text is modified, a box is added outside the initially recognized erroneous text to select it, and the modified text is bolded and displayed below the box.
[0054] According to the above technical solution, in S5, after the error correction is completed, the corresponding knowledge graph is displayed, and a label is given to each special scenario through the knowledge graph, so that the label, text, special scenario and knowledge graph correspond one by one. By identifying any one of them, all the contents can be opened for viewing, and the classified database can be named with the label.
[0055] According to the above technical solution, the label consists of 2-8 Chinese characters, and the label itself can be matched as a keyword for recognition. During the recognition process, the label and text are recognized first, and then the special scenario knowledge graph is determined. After the special scenario knowledge graph is determined, recognition is performed under the special scenario knowledge graph first.
[0056] According to the above technical solution, in S6, after the tag marking is completed, a tag is selected, the interference of other tag contents is automatically eliminated, the classification database corresponding to the tag is opened, and the corresponding content is searched according to the knowledge spectrum in the database, so as to quickly find the required text content.
[0057] According to the above technical solution, in S7, the corresponding voice data in the classification database is input again, the voice matches the label of the data, the corresponding database is directly opened, the subsequently input voice content is recognized, and the required content is searched through voice input.
[0058] Finally, it should be noted that the above description is only a preferred example of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for offline voice retrieval of products without network, characterized by: The search steps include: S1. First, use the Android SDK to develop an integrated offline database, download the voice, text and dedicated scene knowledge graphs available for recognition in the database, and classify the offline database; S2. The user receives voice through a voice receiving device, matches the voice with an offline database, recognizes and converts the voice, and matches the knowledge graph of the dedicated scene according to the text; S3. Correct the recognized and converted text according to the knowledge graph and error correction system for the dedicated scenario; S4, marking and replacing the text after error correction, and displaying it; S5. After the error correction is completed, the text is labeled using the dedicated scene knowledge graph to classify the recognized text; S6. After the tagging is completed, all the corresponding text and voice content can be found by identifying the tag; S7. After inputting the voice later, directly open the corresponding tag to view the content of the corresponding tag; In S1, the required special scene knowledge graph is set in the database, and then the corresponding voice and text are downloaded in each corresponding special scene knowledge graph, and the classification database is set according to the special scene. After the text is recognized, the corresponding special scene knowledge graph is opened, and the corresponding voice and text are consulted. When the recognized voice is converted into text, the corresponding special scene knowledge graph is identified; In S2, the user speaks the relevant content to be searched, and after receiving the user's voice, the voice receiving device first converts the voice, and then matches the text with the text in the offline database to find the matching text content, and then searches for the dedicated scene knowledge graph corresponding to the text, and then presents the content of the corresponding scene on the display device; The user receives the voice through the voice receiving device, matches the voice with the offline database, recognizes and converts the voice, and matches the knowledge graph of the dedicated scene according to the voice; In S2, after the speech is converted into text, the corresponding content is searched in the corresponding dedicated scene knowledge graph, and the knowledge graph of the corresponding scene is sorted from high to low according to the search results, and presented on the display device; In S3-S4, when the speech is recognized, the error correction system is used to search for speech content that is difficult to recognize and incorrect text combinations; For difficult-to-recognize speech, the inference is made based on the context, length and pronunciation of the previously recognized speech, and an inference result suitable for the context is given; For incorrect text, the correct text content is given according to the semantic content, and the text is modified after the initial recognition; For the difficult-to-recognize speech, the inference result is displayed in blue font, and the normally recognized text is displayed in black font; When the erroneous text is modified, a box is added outside the initially recognized erroneous text to select it, and the modified text is bolded and displayed below the box; In S5, after the error correction is completed, the corresponding knowledge graph is displayed, and a label is given to each special scenario through the knowledge graph, so that the label, text, special scenario and knowledge graph correspond one to one. By identifying any one of them, all the contents can be opened for viewing, and the classification database is named with the label; The label is composed of 2-8 Chinese characters. The label itself can be used as a keyword for identification and matching. In the identification process, the label and text are identified first, and then the dedicated scene knowledge graph is determined. After the dedicated scene knowledge graph is determined, identification is performed under the dedicated scene knowledge graph first. In S6, after the tag marking is completed, a tag is selected, the interference of other tag contents is automatically eliminated, the classification database corresponding to the tag is opened, and the corresponding content is searched according to the knowledge spectrum in the database, so as to quickly find the required text content; In S7, the corresponding voice data in the classification database is input again, the voice matches the label of the data, the corresponding database is directly opened, the subsequently input voice content is recognized, and the required content is searched through the voice input.
