Intelligent prompting method and device

Through intelligent word prompting method and sliding window technology, dynamic matching and adjustment of strides solve the problem of low text tracking accuracy during reading, achieve higher matching accuracy and visual editing, and improve the tracking and modification capabilities of reading content.

CN114999475BActive Publication Date: 2024-09-20SUZHOU CARROBOT AUTOMOTIVE ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210557038.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-20
Publication Date
2024-09-20
Estimated Expiration
2042-05-20

AI Technical Summary

Technical Problem

In the existing technology, text tracking accuracy is low, resulting in a high positioning error rate during reading, making it difficult to accurately track and modify the reading content.

Method used

It uses an intelligent word prompting method to convert real-time speech into text, and uses a sliding window for dynamic matching. It adjusts the sliding step according to the matching degree, switches the matching mode to improve the matching accuracy, and performs visual editing when the matching is successful.

Benefits of technology

Through dynamic adaptive sliding window search and multi-mode processing, the accuracy of intelligent word prompting is improved, the problem of inaccurate word prompting caused by less than 100% speech recognition rate is solved, and the visual editing and tracking functions of read-aloud content are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114999475B
    Figure CN114999475B
Patent Text Reader

Abstract

The disclosed embodiment discloses an intelligent prompting method and device, including: converting the real-time acquired speech into text in real time, and using the text as the text to be matched after reaching the first preset length; in the first matching mode, dynamically matching the text to be matched and the corresponding source text with the sliding window; in the first matching mode, if the matching degree obtained by the dynamic matching is greater than or equal to the preset threshold, switching to the second matching mode, and using the text after the end position of the current sliding window as the source text to be matched; in the second matching mode, converting the current speech into a new text of the second preset length in real time, matching the new text and the text of the third preset length in the source text to be matched; if the match is successful, visually editing the source text to be matched after the third preset length. The problem of inaccurate prompting caused by the speech recognition rate not reaching 100% is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of data processing, and in particular to an intelligent prompting method and device. Background Art

[0002] During the process of reading a manuscript, the user may need to stop reading and then return to the original manuscript to read aloud. This process requires text tracking to facilitate the user to return to the corresponding position of the original manuscript to read aloud.

[0003] In the related art, the text tracking accuracy is low, resulting in a high text positioning error rate. Summary of the invention

[0004] The main purpose of the present invention is to provide an intelligent prompting method and device.

[0005] In order to achieve the above-mentioned purpose, according to the first aspect of the present disclosure, there is provided an intelligent prompting method, comprising: converting the real-time acquired speech into text in real time, and using the text as the text to be matched when it reaches a first preset length; in a first matching mode, dynamically matching the text to be matched and its corresponding source text using a sliding window, wherein the sliding window moves on the source text with a dynamic step; in the first matching mode, if the matching degree obtained by the dynamic matching is greater than or equal to a preset threshold, switching to a second matching mode, and using the text after the end position of the current sliding window as the source text to be matched; in the second matching mode, converting the current speech into a new text of a second preset length in real time, matching the new text and the text of a third preset length in the source text to be matched, wherein the third preset length is greater than the second preset length, and the second preset length is less than the first preset length; if the match is successful, visually editing the source text to be matched after the third preset length.

[0006] Optionally, the method further includes: if the matching is unsuccessful, re-matching in the second matching mode; and / or, when the number of unsuccessful matching reaches N times, or the matching degree after matching does not meet a preset value, re-matching in the first matching mode.

[0007] Optionally, the sliding window moves on the source text with a dynamic stride, including: if the matching degree of the text to be matched and its corresponding source text is lower than a preset matching degree threshold, the current stride is increased; if the matching degree of the text to be matched and its corresponding source text is greater than a preset matching degree threshold, the current stride is decreased.

[0008] Optionally, in the first matching mode, if the matching degree is less than a preset threshold, the content to be matched is deleted; the current new speech is acquired in real time and converted into new text in real time, and when the new text reaches a first preset length, it is used as new text to be matched; in the first mode, a sliding window is used to dynamically match the new text to be matched and its corresponding source text.

[0009] Optionally, in the first matching mode, the matching degree in the first matching mode is determined based on the longest common subsequence and the length of the text to be matched, wherein the longest common subsequence is a text of maximum length in the source text that can match the text to be matched.

[0010] Optionally, the method further comprises: converting the source text into a text without punctuation marks in advance, and mapping each position of a word in the text without punctuation marks with a position of a corresponding word in the source text.

[0011] According to a second aspect of the present disclosure, there is provided an intelligent prompting device, comprising: a speech recognition unit, configured to convert speech acquired in real time into text in real time, and use the text as a text to be matched when the text reaches a first preset length; a first matching unit, configured to dynamically match the text to be matched and its corresponding source text using a sliding window in a first matching mode, wherein the sliding window moves on the source text with a dynamic step; a second matching unit, configured to switch to a second matching mode in the first matching mode if the matching degree obtained by the dynamic matching is greater than or equal to a preset threshold, and use the text after the end position of the current sliding window as the source text to be matched; in the second matching mode, convert the current speech into a new text of a second preset length in real time, and match the new text and the text of a third preset length in the source text to be matched, wherein the third preset length is greater than the second preset length, and the second preset length is less than the first preset length; a text modification unit, configured to perform visual editing on the source text to be matched after the third preset length if the match is successful.

[0012] Optionally, the device is further configured to: if the matching is unsuccessful, re-match in the second matching mode; and / or, when the number of unsuccessful matching reaches N times, or the matching degree after matching does not meet a preset value, re-match in the first matching mode.

[0013] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, storing computer instructions, wherein the computer instructions are used to enable the computer to execute the intelligent prompting method described in any one of the implementations of the first aspect.

[0014] According to a fourth aspect of the present disclosure, there is provided an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor executes the intelligent prompting method described in any one of the implementations of the first aspect.

[0015] In the intelligent prompting method and device of the disclosed embodiment, it includes: converting the real-time acquired speech into text in real time, and when the text reaches a first preset length, it is used as a text to be matched; in the first matching mode, the text to be matched and the corresponding source text are dynamically matched using a sliding window, wherein the sliding window moves on the source text with a dynamic step; in the first matching mode, if the matching degree obtained by dynamic matching is greater than or equal to a preset threshold, the second matching mode is switched to, and the text after the end position of the current sliding window is used as the source text to be matched; in the second matching mode, the current speech is converted into a new text of a second preset length in real time, and the new text and the text of a third preset length in the source text to be matched are matched, wherein the third preset length is greater than the second preset length, and the second preset length is less than the first preset length; if the match is successful, the source text to be matched after the third preset length is visually edited. Through dynamic adaptive sliding window search, multi-mode processing improves the accuracy of intelligent prompting and solves the problem of inaccurate prompting caused by the speech recognition rate not reaching 100%. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0017] Figure 1 is a flow chart of an intelligent prompting method according to an embodiment of the present disclosure;

[0018] Figure 2-Figure 6 is a schematic diagram of an application of an intelligent prompting method according to an embodiment of the present disclosure;

[0019] Figure 7 is a schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0020] In order to enable those skilled in the art to better understand the disclosed solution, the technical solution in the disclosed embodiment will be clearly and completely described below in conjunction with the drawings in the disclosed embodiment. Obviously, the described embodiment is only a part of the disclosed embodiment, not all of the embodiments. Based on the embodiments in the disclosed embodiment, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the disclosed embodiment.

[0021] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so as to describe the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0022] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0023] According to an embodiment of the present disclosure, an intelligent prompting method is provided, such as Figure 1 As shown, the method includes the following steps 101 to 105:

[0024] Step 101: convert the real-time acquired speech into text in real time, and use the text as the text to be matched when the text reaches a first preset length.

[0025] In this embodiment, the natural language of the voice broadcast can be recognized by voice recognition technology, and when the accumulated text reaches a first preset length (for example, 10 characters, the first preset length can be configured), it can be used as the text to be matched and enter the first matching mode serching mode. The first matching mode is used for large-scale and fast matching.

[0026] Step 102: In the first matching mode, dynamically match the text to be matched and its corresponding source text using a sliding window, wherein the sliding window moves on the source text with a dynamic step.

[0027] In this embodiment, in order to speed up the text search, this embodiment uses a sliding window to perform dynamic text search (matching), and the sliding step of the sliding window can be dynamically adjusted according to the current matching degree, including if the matching degree is high, the window sliding step is small, and if the matching degree is low, the window sliding step is large.

[0028] As an optional implementation method of this embodiment, the sliding window moves on the source text with a dynamic step size, including: if the matching degree between the text to be matched and the corresponding source text is lower than a preset matching degree threshold, the current step size is increased; if the matching degree between the text to be matched and the corresponding source text is greater than the preset matching degree threshold, the current step size is decreased.

[0029] In this optional implementation, in the first matching mode serching, in order to speed up the search speed and ensure the search accuracy, a sliding window method is used for searching, and the sliding step of the sliding window is modified according to the current matching result. The higher the matching degree, the smaller the window sliding step, and the lower the matching degree, the larger the window sliding step. The above-mentioned first preset length and the step of the sliding window can be configured as needed.

[0030] The window sliding stride can be calculated using the following formula:

[0031] The sliding stride of the window = (0.7f-matchRatio)*mSentenceLen; that is, the greater the match, the smaller the sliding stride, because when the match is high, the possibility of matching increases with a small movement; when the match is low, it is impossible to match with a small movement, so for efficient search, the sliding stride can be increased. 0.7f is preferably the matching threshold for successful matching, which can be set according to actual conditions, matchRatio is the matching degree, and mSentenceLen is the length of the content to be matched. When matchRatio is greater than 0.7f, it is considered to be matched, and there is no need to move the sliding window. When matchRatio is less than 0.7f, it is necessary to continue searching and move the sliding window.

[0032] Step 103: In the first matching mode, if the matching degree obtained by dynamic matching is greater than or equal to a preset threshold, the second matching mode is switched to, and the text after the end position of the current sliding window is used as the source text to be matched.

[0033] In this embodiment, if the matching degree of the two texts is greater than or equal to a preset threshold, the second matching mode matching mode is entered, and the second matching mode is used for matching in a small range. In the second matching mode, the starting position of the match in the source text can be the next character position of the end position of the sliding window.

[0034] As an optional implementation method of this embodiment, in the first matching mode, if the matching degree is less than a preset threshold, the content to be matched is deleted; the current new speech is acquired in real time and converted into new text in real time, and when the new text reaches a first preset length, it is used as the new text to be matched; in the first mode, a sliding window is used to dynamically match the new text to be matched and its corresponding source text.

[0035] In this optional implementation, in the first mode, the matching degree of the text can be determined by matching degree = LCS length / length of the content to be matched. Since the speech recognition rate cannot reach 100%, the matching degree can generally set a threshold according to the actual situation. For example, a matching degree of 70% is considered to be matched, so the search is stopped and the state is switched back to the matching state. It is understandable that in addition to the LCS algorithm, a simple character search algorithm can also be used, and the number of matching words can be recorded.

[0036] refer to Figure 2 If the match is unsuccessful, the current text to be matched is cleared, and the text converted from new speech is accumulated again in the first mode to form a new text to be matched again. The starting position of this match can be the starting position of the match in the last failed match process. For example, if the sliding window slides a long distance (for example, 150 characters) and still cannot be searched, the user may be speaking without a script, so the search is not continued and the "text to be matched" is cleared. Since the state is still in the first matching mode searching, the new speech text behind will be accumulated again and form a new "text to be matched", thereby triggering the next search.

[0037] Step 104: In the second matching mode, the current speech is converted into a new text of a second preset length in real time, and the new text is matched with a text of a third preset length in the source text to be matched, wherein the third preset length is greater than the second preset length, and the second preset length is less than the first preset length.

[0038] In this embodiment, in the second matching mode, the second preset length of the matching text takes a smaller value, such as matching in units of words, the character length can be 1 character, 2 characters, 3 characters or 4 characters, etc., preferably within 4 characters. This length is compared with the first preset length in the first matching mode, and is smaller than the first preset length, that is, the second preset length is smaller than the first preset length.

[0039] When the second matching mode is switched, the speech is converted into a new text of the second preset length in real time, and the text is matched with the source text to be matched. When matching, the content of the source text to be matched of the third preset length can be selected to match the new text of the second preset length. The second preset length is less than the third preset length. Exemplarily, the new text content of each voice input can be a short word (as the "new text to be matched" this time). Assuming that the length of the word is m, the search distance, i.e., the third preset length, is controlled within n characters, and n is greater than m, for example, n = (m<3)? (m*2+2):(m*1.5+3). The above-mentioned second preset length and third preset length can be configured.

[0040] For example, reference Figure 3 , Figure 3 A schematic diagram of text matching of different lengths under different states is shown.

[0041] Step 104: If the match is successful, visually edit the source text to be matched after the third preset length.

[0042] In this embodiment, in the second matching mode, if the match is successful, the content in the source text that has been read, not read, or partially not read (for example, in the second matching mode, m characters are matched as read and the remaining nm characters are unread) can be marked.

[0043] There are many ways to edit text, mainly to improve readability. For example, use a certain color to circle the content that has been read aloud. You can also enlarge the part of the content that has been read aloud that has not been read aloud recently to improve readability. The modification method can be configured through plug-ins. For example, refer to Figure 4 , the source text content after the third preset length that has been matched and has a certain length can be enlarged and displayed; the read text can be marked with color. The above editing method can be configured.

[0044] It is understandable that, no matter it is the first mode searching or the second mode matching state, each time a match is successful, the relevant matching text in the text content can be modified and the starting position of the next search match can be updated.

[0045] As an optional implementation of this embodiment, the method also includes: if the matching is unsuccessful, re-matching in the second matching mode; and / or, when the number of unsuccessful matching reaches N times, or the matching degree after matching does not meet the preset value, re-matching in the first matching mode.

[0046] In this optional implementation, if the match is unsuccessful, new speech is still received and converted into the current new content to be matched, and the starting position of the match can still be the next character position of the end position of the sliding window in the source text. When the number of consecutive unsuccessful matches exceeds the preset number, the number of failed matches is cleared in the program for the next round of failed matches, and the program returns to the first matching mode. It is also possible to determine that the match fails when the matching degree does not meet the threshold, and re-enter the first matching mode.

[0047] For example, reference Figure 5 , Figure 5 The schematic diagram of the matching process in the second matching mode is shown. If the match is unsuccessful, wait for new voice input, trigger the match again, and record the number of matching failures. If the number of consecutive matching failures exceeds a certain number or the matching degree is too low, then enter the searching state. And clear the matching failure count.

[0048] As an optional implementation of this embodiment, the source text is converted into a text without punctuation marks in advance, and each position of a word in the text without punctuation marks is mapped to the position of a corresponding word in the source text.

[0049] In this optional implementation, after mapping, matching with the text to be matched in the first mode and the second mode is achieved based on the text without punctuation marks, and after successful matching, positioning is achieved in the source text (including punctuation marks) based on the established mapping relationship.

[0050] For example, reference Figure 6 When performing text matching, since the source text has punctuation marks, it is necessary to skip the punctuation marks when matching text to avoid the impact of text matching. One way is to convert the source text into a text without punctuation marks in advance, and establish a correspondence between the text without punctuation marks and the source text (so that the positioning in the text without punctuation marks can be converted back to the positioning in the source text). When matching, search and match in this text without punctuation marks. After matching and positioning, locate on the source text according to the aforementioned correspondence. Another way can be that when it is necessary to search for m characters, it can be expanded to match these m characters within n characters (n is larger than m, so that some punctuation marks can be included), that is, there is a certain degree of error tolerance, so as to achieve the purpose of automatically skipping a certain number of punctuation marks.

[0051] From the above description, it can be seen that the present disclosure achieves the following technical effects: based on speech recognition technology, character sequence comparison technology and adaptive search technology, it provides auxiliary tracking and modification reminder functions for reading text. Through dynamic adaptive sliding window search, multi-state processing, configurable modification mode, and configurable matching mode, it solves the problem of inaccurate prompts caused by speech recognition rate not reaching 100%, and solves the problem of the host's partial speech without a script.

[0052] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0053] According to an embodiment of the present disclosure, a device for implementing the above-mentioned intelligent prompting method is also provided, the device comprising: a speech recognition unit, configured to convert the real-time acquired speech into text in real time, and use the text as a to-be-matched text when the text reaches a first preset length; a first matching unit, configured to dynamically match the to-be-matched text and its corresponding source text using a sliding window in a first matching mode, wherein the sliding window moves on the source text with a dynamic step; a second matching unit, configured to switch into a second matching mode in the first matching mode if the matching degree obtained by the dynamic matching is greater than or equal to a preset threshold, and use the text after the end position of the current sliding window as the source text to be matched; in the second matching mode, convert the current speech into a new text of a second preset length in real time, and match the new text and the text of a third preset length in the source text to be matched, wherein the third preset length is greater than the second preset length, and the second preset length is less than the first preset length; a text modification unit, configured to perform visual editing on the to-be-matched source text after the third preset length if the match is successful.

[0054] As an optional implementation of this embodiment, the device is also configured to: if the matching is unsuccessful, re-match in the second matching mode; and / or, when the number of unsuccessful matching reaches N times, or the matching degree after matching does not meet the preset value, re-match in the first matching mode.

[0055] The present disclosure provides an electronic device, such as Figure 7 As shown, the electronic device includes one or more processors 71 and a memory 72. Figure 7 A processor 73 is taken as an example.

[0056] The controller may further include: an input device 73 and an output device 74 .

[0057] The processor 71, the memory 72, the input device 73 and the output device 74 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0058] The processor 71 may be a central processing unit (CPU). The processor 71 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips. A general-purpose processor may be a microprocessor or the processor may be any conventional processor.

[0059] The memory 72 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the control method in the embodiment of the present disclosure. The processor 71 executes various functional applications and data processing of the server by running the non-transitory software programs, instructions and modules stored in the memory 72, that is, the method of implementing the above method embodiment.

[0060] The memory 72 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of a processing device operated by the server, etc. In addition, the memory 72 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 72 may optionally include a memory remotely arranged relative to the processor 71, and these remote memories may be connected to a network connection device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0061] The input device 73 can receive input digital or character information, and generate key signal input related to user settings and function control of the processing device of the server. The output device 74 can include display devices such as a display screen.

[0062] One or more modules are stored in the memory 72, and when executed by one or more processors 71, the execution is as follows: Figure 1 The method shown.

[0063] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned motor control methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.

[0064] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. An intelligent word prompting method, It is characterized in that include: Convert the real-time acquired speech into text in real time, and use the text as the text to be matched when the text reaches a first preset length; In the first matching mode, dynamically matching the text to be matched and its corresponding source text is performed using a sliding window, wherein the sliding window moves on the source text with a dynamic step; In the first matching mode, if the matching degree obtained by dynamic matching is greater than or equal to the preset threshold, the second matching mode is switched to, and the text after the end position of the current sliding window is used as the source text to be matched; In the second matching mode, the current speech is converted into a new text of a second preset length in real time, and the new text and a text of a third preset length in the source text to be matched are matched, wherein the third preset length is greater than the second preset length, and the second preset length is less than the first preset length; If the match is successful, visual editing is performed on the source text to be matched after the third preset length.

2. The intelligent word prompting method according to claim 1, It is characterized in that The method further comprises: If the matching fails, the matching is repeated in the second matching mode; And / or, when the number of unsuccessful matches reaches N times, or the matching degree after matching does not meet a preset value, matching is performed again in the first matching mode.

3. The intelligent word prompting method according to claim 1, It is characterized in that The sliding window moves over the source text with a dynamic step size including: If the matching degree between the to-be-matched text and its corresponding source text is lower than the preset matching degree threshold, the current step size is increased; If the matching degree between the text to be matched and its corresponding source text is greater than a preset matching degree threshold, the current step size is reduced.

4. The intelligent word prompting method according to claim 1, It is characterized in that In the first matching mode, if the matching degree is less than a preset threshold, the content to be matched is deleted; Acquire the current new speech in real time and convert it into new text in real time, and use the new text as the new text to be matched when the new text reaches a first preset length; In the first mode, a sliding window is used to dynamically match the new text to be matched and its corresponding source text.

5. The intelligent word prompting method according to claim 1, It is characterized in that In the first matching mode, the matching degree in the first matching mode is determined based on the longest common subsequence and the length of the text to be matched, wherein the longest common subsequence is the text of the maximum length in the source text that can match the text to be matched.

6. The intelligent word prompting method according to claim 1, It is characterized in that The method also includes: The source text is converted into a text without punctuation marks in advance, and each position of a word in the text without punctuation marks is mapped to the position of a corresponding word in the source text.

7. An intelligent prompting device, It is characterized in that include: A speech recognition unit is configured to convert the speech acquired in real time into text in real time, and use the text as the text to be matched when the text reaches a first preset length; A first matching unit is configured to dynamically match the to-be-matched text and its corresponding source text using a sliding window in a first matching mode, wherein the sliding window moves on the source text with a dynamic step; The second matching unit is configured to, in the first matching mode, if the matching degree obtained by dynamic matching is greater than or equal to a preset threshold, enter the second matching mode and use the text after the end position of the current sliding window as the source text to be matched; in the second matching mode, convert the current speech into a new text of a second preset length in real time, and match the new text with a text of a third preset length in the source text to be matched, wherein the third preset length is greater than the second preset length, and the second preset length is less than the first preset length; The text modification unit is configured to perform visual editing on the source text to be matched after the third preset length if the match is successful.

8. The intelligent prompting device according to claim 7, It is characterized in that The device is also configured to: If the matching fails, the matching is repeated in the second matching mode; And / or, when the number of unsuccessful matches reaches N times, or the matching degree after matching does not meet a preset value, matching is performed again in the first matching mode.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the intelligent prompting method described in any one of claims 1-6.

10. An electronic device, It is characterized in that include: at least one processor; And a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor executes the intelligent prompting method described in any one of claims 1-6.