Long voice stream output method, system and device and storage medium

By dividing the processing results of speech clips into fixed and temporary parts, processing them when the speech starts, and processing the silence duration in combination with the preset duration, the problem of jumps and post-processing delays in the display results in real-time recognition of long speech is solved and improved User experience.

CN118609558AActive Publication Date: 2024-09-06AISPEECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410698298.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-06
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

In the existing long speech real-time recognition technology, the real-time display results are prone to jumps and incoherence, and the post-processing process involves large amounts of data, calculations, and delays, resulting in poor user experience.

Method used

The long voice streaming output method is used to divide the processing results of the voice fragments into fixed parts and temporary parts, and display them on the screen through the output module. The fixed part does not change due to the increase of the audio stream. Each functional module performs the processing when the voice starts. Processing, set two default durations to handle the silent duration, and adjust the processing steps.

Benefits of technology

It solves the problem of jumps and incoherence in real-time recognition results, reduces the amount of data and delay in post-processing, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609558A
    Figure CN118609558A
Patent Text Reader

Abstract

The invention provides a long voice stream type output method, system and device and a storage medium. The method comprises the following steps: acquiring a first target voice segment and previous results of all function modules under a previous voice segment; splicing the first target voice segment and a previous temporary part of the first function unit to obtain a first target fixed part and a first target temporary part of the first function unit under the first target voice segment; splicing a first target fixed part of a first functional unit under the first target voice segment and a previous temporary part of a next functional unit under the previous voice segment to obtain a first target fixed part and a first target temporary part of the next functional unit under the first target voice segment, repeating the step until a first target fixed part and a first target temporary part of the second function unit under the first target voice segment are obtained; and outputting the first on-screen display result. The speech recognition accuracy and the post-processing continuity are improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of speech processing technology, and in particular to a long speech streaming output method, system, device and storage medium. Background Art

[0002] Long speech real-time recognition is a technology that converts speech signals into text information. It is widely used in many scenarios, including meeting records and real-time subtitles for live video broadcasts. In these scenarios, the system will recognize the user's speech while they are speaking, and the recognition results will be displayed on the screen in real time.

[0003] Usually, when the start of speech is detected, the system starts to recognize valid speech in real time, and then takes out the current optimal recognition result as the intermediate result to update the screen display at regular intervals. Once a certain length of silence is detected, the recognition process ends, and the system outputs the final recognition result of the current voice segment and performs subsequent processing on it. However, in actual application, the intermediate result is only the local optimal result at the current moment, and the intermediate result at the next moment is not a simple addition of the intermediate result at the previous moment. The earlier recognition result that has been displayed may also be modified. This causes the real-time recognition results seen by the user to be incoherent and jumpy, and the user experience is poor. In addition, unified post-processing after the recognition is completed will lead to an increase in the amount of processed data, the amount of calculation, and the delay. Summary of the invention

[0004] In view of this, the embodiments of the present application are committed to providing a long speech streaming output method, system and medium, which are used to solve the technical problems in the prior art that when long speech is recognized in real time, the upper screen display results jump and become incoherent, and the data processing volume and delay in the post-processing process are large, resulting in a poor user experience.

[0005] In a first aspect, the present invention provides a streaming output method of a long speech streaming output system, wherein the long speech streaming output system comprises a function module and an output module that execute function processing steps in a preset order, wherein the function module comprises a first function unit that first executes the function processing steps and a second function unit that finally executes the function processing steps, wherein the second function unit is connected to the output module, and the streaming output method comprises the following steps:

[0006] Obtaining the first target speech segment and the previous results of all functional modules under the previous speech segment, wherein the previous results of each module include a previous fixed part and a previous temporary part;

[0007] splicing the recognition text corresponding to the first target speech segment and the previous temporary part of the first functional unit, and updating the recognition result of the spliced ​​parts to obtain the first target fixed part and the first target temporary part corresponding to the first functional unit under the first target speech segment;

[0008] splicing the first target fixed part corresponding to the first functional unit under the first target speech segment and the previous temporary part corresponding to the next functional unit under the previous speech segment to obtain the first target fixed part and the first target temporary part corresponding to the next functional unit under the first target speech segment, repeating this step until the first target fixed part and the first target temporary part corresponding to the second functional unit under the first target speech segment are obtained;

[0009] The output module is used to output a first on-screen display result, where the first on-screen display result includes a splicing result of the first target fixed part corresponding to the second functional unit and the first target temporary parts of all functional modules.

[0010] Optionally, the streaming output method further includes the following steps:

[0011] Acquire a second target voice segment following the first target voice segment;

[0012] When it is determined that the second target voice segment has a first silence duration, and the first silence duration is greater than the first preset duration and less than the second preset duration, the first target temporary part corresponding to the first functional unit under the first target voice segment and the recognition text corresponding to the second target voice segment are spliced, and the recognition result of the spliced ​​part is updated to obtain an updated result and the updated result is used as the fixed part of the first functional unit;

[0013] Optionally, when it is determined that the second target voice segment has a first silence duration, and the first silence duration is greater than a first preset duration and less than a second preset duration, all functional units except the first functional unit have a second target fixed part and a second target temporary part under the second target voice segment.

[0014] Optionally, the output module is used to output a second upper screen display result, where the second upper screen display result includes a splicing result of the second target fixed part corresponding to the second functional unit and the second target temporary parts of all functional modules.

[0015] Optionally, the streaming output method further includes the following steps:

[0016] Acquire a third target voice segment after the second target voice segment, perform functional processing on the third target voice segment, and obtain a third target fixed part and a third target temporary part corresponding to the first functional unit under the third target voice segment;

[0017] splicing the third target fixed part corresponding to the first functional unit under the third target speech segment and the second target temporary part corresponding to the next functional unit under the second target speech segment to obtain the third target fixed part and the third target temporary part corresponding to the next functional unit under the third target speech segment, and repeating this step until the third target fixed part and the third target temporary part corresponding to the second functional unit under the third target speech segment are obtained;

[0018] The output module is used to output a third upper screen display result, wherein the third upper screen display result includes a splicing result of the third target fixed part corresponding to the second functional unit and the third target temporary parts of all functional modules.

[0019] Optionally, the streaming output method further includes the following steps:

[0020] Acquire a fourth target voice segment;

[0021] When it is determined that the fourth target speech segment has a second silence duration and the second silence duration is greater than the second preset duration, the temporary parts of all functional units are used as fixed parts, and the fixed parts of the second functional units are output using the output module.

[0022] Optionally, the streaming output method further includes the following steps:

[0023] Acquire end identifiers corresponding one to one to the plurality of functional units;

[0024] After the end identifier is determined, the temporary part of the functional unit corresponding to the end identifier is used as the fixed part.

[0025] Optionally, the streaming output method further includes the following steps:

[0026] Acquire a fifth target voice segment;

[0027] After determining that the fifth target speech segment is a sentence-initial speech segment, performing functional processing on the fifth target speech segment to obtain a fifth target fixed part and a fifth target temporary part corresponding to the first functional unit under the fifth target speech segment;

[0028] Functionally processing the fifth target fixed part corresponding to the first functional unit under the fifth target speech segment to obtain a fifth target fixed part and a fifth target temporary part corresponding to the next functional unit after the first functional unit under the fifth target speech segment, and repeating this step until obtaining a fifth target fixed part and a fifth target temporary part corresponding to the second functional unit under the fifth target speech segment;

[0029] The output module is used to output a third upper screen display result, wherein the third upper screen display result includes a splicing result of the fifth target fixed part corresponding to the second functional unit and the fifth target temporary parts of all functional modules.

[0030] Optionally, the multiple functional units include a recognition unit, a punctuation unit, a sensitive word unit, a smoothing unit and an inverse text regularization unit;

[0031] Optionally, the first functional unit is the recognition unit, and the second functional unit is the sensitive word unit.

[0032] Optionally, the fixed part and the temporary part of the upper screen display result output by the output module are displayed in different colors or in different forms.

[0033] In a second aspect, a long speech stream output system is provided, comprising a function module and an output module that execute function processing steps in a preset order, wherein the function module comprises a first function unit that first executes the function processing step and a second function unit that last executes the function processing step, wherein the second function unit is connected to the output module, and the long speech stream output system further comprises:

[0034] The first functional unit is configured to concatenate the recognition text corresponding to the first target speech segment with the previous temporary part of the first functional unit under the previous speech segment and perform recognition result update processing on the concatenated parts to obtain a first target fixed part and a first target temporary part corresponding to the first functional unit under the first target speech segment;

[0035] The second functional unit is configured to concatenate and process the first target fixed part of the previous functional unit and the previous temporary part of the second functional unit under the previous speech segment to obtain the first target fixed part and the first target temporary part corresponding to the second functional unit under the first target speech segment;

[0036] The output module is configured to display on the upper screen a splicing result of the first target fixed part corresponding to the second functional unit and the first target temporary parts of all functional modules to obtain an upper screen display result.

[0037] In a third aspect, a device is provided, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus;

[0038] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the aforementioned streaming output method.

[0039] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the aforementioned streaming output method are implemented.

[0040] According to the first aspect of the present invention, the processing results of all functional modules under the first target speech segment are divided into a first target fixed part and a first target temporary part, and the upper screen display result is outputted by an output module, wherein the fixed part of the upper screen display result is the first target fixed part corresponding to the second functional unit, and the temporary part of the upper screen display result is the splicing result after the first target temporary parts of all functional modules are spliced. The fixed part of the upper screen display result will not change due to the increase of the audio stream, thereby solving the problem of jumps and incoherence of the upper screen display result during real-time recognition of long speech in the prior art. Moreover, in the technical solution of the present application, each functional module starts processing at the beginning of the speech, solving the problem of large data processing volume, large calculation volume and high delay caused by unified post-processing after the recognition in the prior art.

[0041] Furthermore, by setting two preset time lengths, the silence time length is compared with the first preset time length and the second preset time length respectively, and different situations are processed in the next step according to different steps, thereby solving the problems of low recognition accuracy, discontinuous post-processing and poor user experience caused by setting only one silence time length in the prior art.

[0042] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention and implement it according to the contents of the specification, the preferred embodiments of the present invention are described in detail as follows. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic flow chart of streaming output of a first target speech segment according to an embodiment of the present invention is shown;

[0044] Figure 2 A schematic diagram of stream processing according to an embodiment of the present invention is shown;

[0045] Figure 3 A schematic flow chart of the streaming output of the sentence-starting speech segment according to an embodiment of the present invention is shown;

[0046] Figure 4 A schematic flow chart of streaming output of a second target speech segment and a third target speech segment according to another embodiment of the present invention is shown;

[0047] Figure 5 A schematic diagram of stream processing according to another embodiment of the present invention is shown;

[0048] Figure 6 A schematic flow chart of a fourth target speech segment streaming output according to another embodiment of the present invention is shown;

[0049] Figure 7 A schematic diagram of stream processing according to another embodiment of the present invention is shown;

[0050] Figure 8 A schematic diagram showing different silence durations of streaming output according to an embodiment of the present invention is shown;

[0051] Fig. 9 A structural block diagram of a long speech stream output system according to an embodiment of the present invention is shown;

[0052] Fig.10 The structure block diagram of a long speech stream output device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0053] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some structures related to the present application are shown in the accompanying drawings, rather than all structures. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0054] The terms "including" and "having" and any variations thereof in this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0055] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0056] Figure 1 A schematic flow chart of streaming output of a first target speech segment according to an embodiment of the present invention is shown. Figure 2 FIG. 2 shows a schematic diagram of stream processing according to an embodiment of the present invention. Figure 1 As shown, the voice streaming output method includes:

[0057] Step S110, obtaining the first target speech segment and the previous results of all functional modules in the previous speech segment, wherein the previous result of each module includes a previous fixed part and a previous temporary part.

[0058] In some embodiments, the multiple functional units of the functional module may include, for example, a recognition unit, a punctuation unit, a sensitive word unit, a smoothing unit, an inverse text regularization unit, a translation unit, a segmentation unit, and a timestamp prediction unit. The following is an example in which the multiple functional units include a recognition unit, a punctuation unit, and a sensitive word unit.

[0059] In one embodiment, the first functional unit is a recognition unit, and the second functional unit is a sensitive word unit. In order to achieve better results when processing audio clips, some functional units in the functional module need to be processed in a preset order. For example, the first functional unit is a recognition unit in order to first perform text recognition processing on the acquired audio clip, so as to facilitate the next step of post-processing operations. The next functional unit of the first functional unit is a punctuation unit to avoid other processing of two words across punctuation by mistake. The second functional unit connected to the output module is a sensitive word unit, which can avoid the appearance of sensitive words when on the screen. In practical applications, the processing order of each processing unit can be appropriately adjusted according to the functions implemented by the specific processing unit.

[0060] Step S120, concatenate the recognition text corresponding to the first target speech segment and the previous temporary part of the first functional unit, update the recognition result of the concatenated parts, and obtain the first target fixed part and the first target temporary part corresponding to the first functional unit under the first target speech segment.

[0061] Combination Figure 2 , determine the first target fixed part and the first target temporary part corresponding to the first functional unit under the first target speech segment. Figure 2As shown, the speech segment between t1 and t2 represents the first target speech segment, and the speech segment before t1 represents the previous speech segment. The recognition text corresponding to the speech segment between t1 and t2 and the temporary part AU1 of the recognition result of the speech segment before t1 are spliced, and the recognition result of the spliced ​​part is updated to obtain the fixed part AF2 and the temporary part AU2 of the recognition result under the speech segment between t1 and t2. The specific process of updating the recognition result here means that after obtaining the first target speech segment t1-t2, the recognition unit recognizes the current moment, and the temporary part AU1 of the recognition result of the speech segment before t1 may change, so it is necessary to update the recognition result after the fixed result AF1 under the speech segment before t1 to obtain a better recognition result. Determine the fixed part AF2 and the temporary part AU2 of the recognition result at the current moment, that is, AF2 represents the first target fixed part corresponding to the first functional unit under the first target speech segment. AU2 represents the first target temporary part corresponding to the first functional unit under the first target speech segment.

[0062] Step S130, concatenate the first target fixed part corresponding to the first functional unit under the first target speech segment and the previous temporary part corresponding to the next functional unit under the previous speech segment to obtain the first target fixed part and the first target temporary part corresponding to the next functional unit under the first target speech segment, and repeat this step until the first target fixed part and the first target temporary part corresponding to the second functional unit under the first target speech segment are obtained.

[0063] Combination Figure 2 , determine the first target fixed part and the first target temporary part corresponding to the second functional unit under the first target speech segment. Figure 2 As shown, AF2 and the previous temporary part BU1 corresponding to the punctuation unit in the speech segment before t1 are spliced, and the spliced ​​result is punctuated by the punctuation unit to obtain the fixed part BF2 and the temporary part BU2 of the processing result corresponding to the punctuation unit in the speech segment between t1 and t2. BF2 represents the first target fixed part corresponding to the next functional unit in the first target speech segment. BU2 represents the first target temporary part corresponding to the next functional unit in the first target speech segment. BF2 and the previous temporary part CU1 corresponding to the sensitive word unit in the speech segment before t1 are spliced, and the spliced ​​result is subjected to sensitive word filtering processing by the sensitive word unit to obtain the fixed part CF2 and the temporary part CU2 corresponding to the sensitive word unit in the speech segment between t1 and t2. CF2 represents the first target fixed part corresponding to the second functional unit in the first target speech segment. CU2 represents the first target temporary part corresponding to the second functional unit in the first target speech segment.

[0064] Step S140: outputting a first upper screen display result by using an output module, wherein the first upper screen display result includes a splicing result of the first target fixed part corresponding to the second functional unit and the first target temporary parts of all functional modules.

[0065] In some embodiments, the fixed part and the temporary part of the upper screen display result output by the output module are displayed in different colors or in different forms.

[0066] Combination Figure 2 , determine the first upper screen display result. Figure 2 As shown, CF2 is used as the fixed part OF2 of the output result of the output module under the speech segment between t1 and t2 。 AU2, BU2 and CU2 are spliced, and the spliced ​​result is sent to the sensitive word unit for sensitive word filtering, and the obtained processing result is used as the temporary part OU2 of the output result of the output module under the voice segment between t1 and t2. OF2 represents the fixed part of the first upper screen display result. OU2 represents the temporary part of the first upper screen display result.

[0067] According to this embodiment, by dividing the processing results of all functional modules under the first target voice segment into the first target fixed part and the first target temporary part, the output module is used to output the upper screen display result, wherein the fixed part of the upper screen display result is the first target fixed part corresponding to the second functional unit, and the temporary part of the upper screen display result is the splicing result after the first target temporary parts of all functional modules are spliced. The fixed part of the upper screen display result will not change due to the increase of the audio stream, thereby solving the problem of jump and incoherence of the upper screen display result during the real-time recognition of long speech in the prior art. In addition, in this technical solution, the fixed result and the temporary result are displayed on the upper screen using different colors or different forms, and the user can clearly observe the text of different colors or different forms on the screen. For example, the fixed part of the upper screen result is displayed in black, and the temporary part of the upper screen result is displayed in red. The user can choose to wait for the red part to be completely converted to black before reading according to personal reading habits, or read both parts at the same time. This application uses the above-mentioned upper screen display method, and the user can view the upper screen result after audio processing more clearly and conveniently. Furthermore, in the technical solution of the present application, each functional module starts processing when the speech begins, which solves the problems of large data processing volume, large calculation volume and high delay caused by unified post-processing after recognition in the prior art.

[0068] In some other embodiments, the beginning of sentence detection is performed on the speech segment before t1, and after it is determined to be the beginning of sentence speech segment, functional processing is performed on the speech segment. Figure 3 A schematic flow chart of the streaming output of the sentence-starting speech segment according to an embodiment of the present invention is shown, comprising the following steps:

[0069] Step S210: Acquire a fifth target voice segment.

[0070] Combination Figure 2 , determine the fifth target speech segment. The fifth target speech segment is any speech segment detected as the beginning of a sentence. Figure 2 As shown, the speech segment before t1 represents the fifth target speech segment.

[0071] Step S220, after determining that the fifth target speech segment is a sentence-initial speech segment, functional processing is performed on the fifth target speech segment to obtain a fifth target fixed part and a fifth target temporary part corresponding to the first functional unit under the fifth target speech segment.

[0072] Combination Figure 2 , determine the fifth target fixed part and the fifth target temporary part corresponding to the first functional unit under the fifth target speech segment. Figure 2 As shown, the speech segment before t1 is processed for recognition text, and the fixed part AF1 and the temporary part AU1 of the recognition result corresponding to the recognition unit under the segment are obtained. AF1 represents the fifth target fixed part corresponding to the first functional unit under the fifth target speech segment. AU1 represents the fifth target temporary part corresponding to the first functional unit under the fifth target speech segment.

[0073] Step S230, functionally process the fifth target fixed part corresponding to the first functional unit under the fifth target speech segment, obtain the fifth target fixed part and the fifth target temporary part corresponding to the next functional unit after the first functional unit under the fifth target speech segment, and repeat this step until the fifth target fixed part and the fifth target temporary part corresponding to the second functional unit under the fifth target speech segment are obtained.

[0074] Combination Figure 2 , determine the fifth target fixed part and the fifth target temporary part corresponding to the second functional unit under the fifth target speech segment. Figure 2 As shown, AF1 is sent to the punctuation unit for punctuation processing, and the fixed part BF1 and the temporary part BU1 of the processing result corresponding to the punctuation unit in the speech segment before t1 are obtained. BF1 represents the fifth target fixed part corresponding to the next functional unit after the first functional unit in the fifth target speech segment. BU1 represents the fifth target temporary part corresponding to the next functional unit after the first functional unit in the fifth target speech segment. BF1 is sent to the sensitive word unit for sensitive word filtering processing, and the fixed part CF1 and the temporary part CU1 of the processing result corresponding to the sensitive word unit in the speech segment before t1 are obtained. CF1 represents the fifth target fixed part corresponding to the second functional unit in the fifth target speech segment. CU1 represents the fifth target temporary part corresponding to the second functional unit in the fifth target speech segment.

[0075] Step S240: output a third upper screen display result by using the output module, wherein the third upper screen display result includes a splicing result of the fifth target fixed part corresponding to the second functional unit and the fifth target temporary parts of all functional modules.

[0076] Combination Figure 2 , confirm the third upper screen display result. Figure 2 As shown, CF1 is used as the fixed part OF1 of the output result of the output module under the voice segment before t1. AU1, BU1 and CU1 are spliced, and the spliced ​​result is sent to the sensitive word unit for sensitive word filtering, and the obtained processing result is used as the temporary part OU1 of the output result of the output module under the voice segment before t1. OF1 represents the fixed part of the third upper screen display result. OU1 represents the temporary part of the third upper screen display result.

[0077] Figure 4 A schematic flow chart of streaming output of a second target speech segment and a third target speech segment according to another embodiment of the present invention is shown. Figure 5 Schematic diagrams showing other embodiments of the stream processing of the present invention. Figure 4 As shown, the voice streaming output method includes:

[0078] Step S310: Acquire a second target voice segment following the first target voice segment.

[0079] Combination Figure 5 , determine the second target speech segment. Figure 5 As shown, the speech segment between t2 and t3 represents the second target speech segment after the first target speech segment.

[0080] Step S320, when it is determined that the second target voice segment has a first silence duration, and the first silence duration is greater than the first preset duration and less than the second preset duration, the first target temporary part corresponding to the first functional unit under the first target voice segment and the recognition text corresponding to the second target voice segment are spliced, and the recognition result of the spliced ​​part is updated to obtain an updated result and use the updated result as a fixed part of the first functional unit.

[0081] Combination Figure 5 , determine the fixed part of the first functional unit. Figure 5As shown, there is a silence duration in the voice segment between t2 and t3, which is represented as the first silence duration of the second target voice segment, and the first silence duration is greater than the first preset duration and less than the second preset duration. In some embodiments, the first preset duration is set to 300-500ms, and the second preset duration is set to 800-2000ms. When the first silence duration is detected in the voice segment, the first target temporary part AU2 corresponding to the recognition unit under the voice segment between t1 and t2 and the recognition text corresponding to the voice segment between t2 and t3 are spliced, and the recognition result of the spliced ​​part is updated. The updated result AF3 represents the fixed part of the first functional unit. At this time, since the recognition is completed, all recognition results corresponding to the audio will be fixed, so the first functional unit has no temporary part.

[0082] Step S330, when it is determined that the second target voice segment has a first silence duration, and the first silence duration is greater than the first preset duration and less than the second preset duration, all functional units except the first functional unit have a second target fixed part and a second target temporary part under the second target voice segment.

[0083] Combination Figure 5 , determine the second target fixed part and the second target temporary part of the other functional units except the first functional unit under the second target speech segment. Figure 5 As shown, AF3 and the previous temporary part BU2 corresponding to the punctuation unit in the speech segment between t1 and t2 are spliced, and the spliced ​​result is punctuated by the punctuation unit to obtain the fixed part BF3 and temporary part BU3 corresponding to the punctuation unit in the speech segment between t2 and t3. BF3 represents the second target fixed part corresponding to the punctuation unit in the second target speech segment. BU3 represents the second target temporary part corresponding to the punctuation unit in the second target speech segment.

[0084] BF3 and the previous temporary part CU2 corresponding to the sensitive word unit in the speech segment between t1 and t2 are spliced, and the spliced ​​result is subjected to sensitive word filtering processing through the sensitive word unit to obtain the fixed part CF3 and temporary part CU3 corresponding to the sensitive word unit in the speech segment between t2 and t3. CF3 represents the second target fixed part corresponding to the second functional unit in the second target speech segment. CU3 represents the second target temporary part corresponding to the second functional unit in the second target speech segment.

[0085] Step S340: outputting a second upper screen display result by using an output module, wherein the second upper screen display result includes a splicing result of the second target fixed part corresponding to the second functional unit and the second target temporary parts of all functional modules.

[0086] Combination Figure 5, confirm the second upper screen display result. Figure 5 As shown, CF3 is used as the fixed part OF3 of the output result of the output module under the speech segment between t2 and t3. CU3 and BU3 are spliced, and the spliced ​​result is sent to the sensitive word unit for sensitive word filtering, and the obtained processing result is used as the temporary part OU3 of the output result of the output module under the speech segment between t2 and t3. OF3 represents the fixed part of the second upper screen display result. OU3 represents the temporary part of the second upper screen display result.

[0087] Step S350, obtaining a third target voice segment after the second target voice segment, performing functional processing on the third target voice segment, and obtaining a third target fixed part and a third target temporary part corresponding to the first functional unit under the third target voice segment.

[0088] Combination Figure 5 , determine the third target fixed part and the third target temporary part corresponding to the first functional unit under the third target speech segment. Figure 5 As shown, the speech segment between t3 and t1' represents the third target speech segment after the second target speech segment. The speech segment is recognized and processed to obtain the fixed part AF1' and the temporary part AU1' corresponding to the recognition unit under the speech segment between t3 and t1'. Among them, AF1' represents the third target fixed part corresponding to the first functional unit under the third target speech segment. AU1' represents the third target temporary part corresponding to the first functional unit under the third target speech segment.

[0089] Step S360, concatenate the third target fixed part corresponding to the first functional unit under the third target speech segment and the second target temporary part corresponding to the next functional unit under the second target speech segment to obtain the third target fixed part and the third target temporary part corresponding to the next functional unit under the third target speech segment, and repeat this step until the third target fixed part and the third target temporary part corresponding to the second functional unit under the third target speech segment are obtained.

[0090] Combination Figure 5 , determine the third target fixed part and the third target temporary part corresponding to the second functional unit under the third target speech segment. Figure 5As shown, AF1' and the previous temporary part BU3 corresponding to the punctuation unit in the speech segment between t2 and t3 are spliced, and the spliced ​​result is punctuated by the punctuation unit to obtain the fixed part BF1' and the temporary part BU1' corresponding to the punctuation unit in the speech segment between t3 and t1'. BF1' represents the third target fixed part corresponding to the next functional unit in the third target speech segment. BU1' represents the third target temporary part corresponding to the next functional unit in the third target speech segment. BF1' and the previous temporary part CU3 corresponding to the sensitive word unit in the speech segment between t2 and t3 are spliced, and the spliced ​​result is subjected to sensitive word filtering processing by the sensitive word unit to obtain the fixed part CF1' and the temporary part CU1' corresponding to the sensitive word unit in the speech segment between t3 and t1'. CF1' represents the third target fixed part corresponding to the second functional unit in the third target speech segment. CU1' represents the third target temporary part corresponding to the second functional unit in the third target speech segment.

[0091] Step S370: output a third upper screen display result by using an output module, where the third upper screen display result includes a splicing result of the third target fixed part corresponding to the second functional unit and the third target temporary parts of all functional modules.

[0092] Combination Figure 5 , confirm the third upper screen display result. Figure 5 As shown, CF1' is used as the fixed part OF1' of the output result of the output module under the speech segment between t3 and t1'. AU1', BU1' and CU1' are spliced, and the spliced ​​result is sent to the sensitive word unit for sensitive word filtering, and the obtained processing result is used as the temporary part OU1' of the output result of the output module under the speech segment between t3 and t1'. OF1' represents the fixed part of the third upper screen display result. OU1' represents the temporary part of the third upper screen display result.

[0093] Compared with the above embodiment, this embodiment only adds the first silence duration, and the other steps of the above embodiment are still applicable to this embodiment, which will not be described in detail here.

[0094] Figure 6 A schematic flow chart of the streaming output of a fourth target speech segment according to yet another embodiment of the present invention is shown. Figure 7 FIG. 4 shows a schematic diagram of stream processing according to another embodiment of the present invention. Figure 6 As shown, the voice streaming output method includes:

[0095] Step S410: Acquire a fourth target voice segment.

[0096] Combination Figure 7, determine the fourth target speech segment. The fourth target speech segment is any speech segment with the second silence duration. Figure 7 As shown, the speech segment between t2 and t4 represents the fourth target speech segment.

[0097] Step S420, when it is determined that the fourth target voice segment has a second silence duration and the second silence duration is greater than the second preset duration, the temporary parts of all functional units are used as fixed parts, and the fixed parts of the second functional units are output by the output module.

[0098] Compared with the above embodiment, this embodiment only adds a second silence duration, and other steps of the above embodiment are still applicable to this embodiment, which will not be described in detail here.

[0099] Combination Figure 7 , determine the fixed part of the output module. Figure 7 As shown, there is a silence duration in the voice segment between t2 and t4, which is represented as the second silence duration of the fourth target voice segment, and the second silence duration is greater than the second preset duration. In some embodiments, the second preset duration is set to 800-2000ms. At this time, the temporary part BU3 of the punctuation unit is used as the fixed part BF4 of the punctuation unit under the voice segment between t2 and t4. The temporary part CU3 of the sensitive word unit and the temporary part BU3 of the punctuation unit are spliced ​​to obtain the temporary part of the sensitive word unit under the voice segment between t2 and t4, and the temporary part is used as the fixed part CF4 of the sensitive word unit under the voice segment between t2 and t4. The fixed part CF4 of the sensitive word unit under the voice segment between t2 and t4 is used as the fixed part OF4 of the output module under the fourth target voice segment, and OF4 is displayed on the screen. Under the fourth target voice segment, there is no temporary part in both the functional module and the output module.

[0100] In other embodiments, the end identifiers corresponding to multiple functional units can be obtained, and after the end identifier is determined, the temporary part of the functional unit corresponding to the end identifier is used as the fixed part. For example, when the punctuation module detects the end of a sentence on the recognized text, when it detects that the recognized text is the end of a sentence, the end identifier corresponding to the punctuation module is obtained, and the temporary result of the punctuation module in this voice segment is used as the fixed result. At this time, the post-processing of the punctuation module ends, and there is no temporary result.

[0101] Figure 8 A schematic diagram showing different silence durations of streaming output according to an embodiment of the present invention is shown.

[0102] like Figure 8As shown, when a target speech segment is detected to have a first silence duration, the processing of the recognition unit in the processing module is completed, and at this time, the processing of the post-processing units other than the recognition unit in the processing module is not completed. When another speech segment is detected to have a second silence duration, the processing of the post-processing units other than the recognition unit in the processing module is completed, and the output module is used to output the result displayed on the screen.

[0103] According to the above embodiment, by setting two preset time lengths, the silence time length is compared with the first preset time length and the second preset time length respectively, and different situations are processed in the next step according to different steps, thereby solving the problems of low recognition accuracy, discontinuous post-processing and poor user experience caused by delay in displaying results caused by setting only one silence time length in the prior art.

[0104] The embodiment of the present invention also provides a long speech stream output system, such as Fig. 9 As shown, the long speech streaming output system includes a function module 101 and an output module 102 for performing function processing steps in a preset order. The function module 101 is configured to perform function processing on the speech segment. The output module 102 is configured to display the splicing result of the first target fixed part corresponding to the second functional unit and the first target temporary parts of all functional modules on the upper screen to obtain the upper screen display result.

[0105] In some optional embodiments, the functional module 101 includes a first functional unit that first performs the functional processing steps and a second functional unit that finally performs the functional processing steps and is connected to the output module. The first functional unit is configured to splice and process the first target speech segment with the previous temporary part of the first functional unit under the previous speech segment to obtain the first target fixed part and the first target temporary part corresponding to the first functional unit under the first target speech segment. The second functional unit is configured to splice and process the first target fixed part of the previous functional unit with the previous temporary part of the second functional unit under the previous speech segment to obtain the first target fixed part and the first target temporary part corresponding to the second functional unit under the first target speech segment.

[0106] An embodiment of the present invention also provides a long speech streaming output device, comprising: a processor 201, a memory 202, and a computer program stored in the memory 202 and configured to be executed by the processor 201. When the processor 201 executes the computer program, it implements the long speech streaming output method as described in any of the above embodiments.

[0107] When the processor 201 executes the computer program, the steps in the above-mentioned long speech stream output method embodiment are implemented, for example Figure 1Alternatively, the processor 201 implements the functions of each module / unit in the long speech streaming output system when executing the computer program, for example Fig. 9 The functions of each module of the long speech streaming output system are shown.

[0108] Exemplarily, the computer program may be divided into one or more modules, one or more modules are stored in the memory 202, and executed by the processor 201 to complete the present invention. One or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the long speech streaming output system.

[0109] The processor 201 may be a central processing unit (CPU), or 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, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 201 is the control center of the long voice streaming output system, and uses various interfaces and lines to connect various parts of the entire long voice streaming output system.

[0110] The memory 202 can be used to store computer programs and / or modules. The processor 201 implements various functions of the long voice streaming output system by running or executing the computer programs and / or modules stored in the memory 202 and calling the data stored in the memory 202. The memory 202 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the long voice streaming output system, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0111] Among them, if the module / unit of the long voice streaming output system is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. Computer-readable media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.

[0112] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0113] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A streaming output method for a long speech streaming output system, characterized in that: The long speech streaming output system comprises a function module and an output module that execute function processing steps in a preset order, wherein the function module comprises a first function unit that first executes the function processing steps and a second function unit that finally executes the function processing steps, wherein the second function unit is connected to the output module, and the streaming output method comprises the following steps: Obtaining the first target speech segment and the previous results of all functional modules under the previous speech segment, wherein the previous results of each module include a previous fixed part and a previous temporary part; splicing the recognition text corresponding to the first target speech segment and the previous temporary part of the first functional unit, and updating the recognition result of the spliced ​​parts to obtain the first target fixed part and the first target temporary part corresponding to the first functional unit under the first target speech segment; splicing the first target fixed part corresponding to the first functional unit under the first target speech segment and the previous temporary part corresponding to the next functional unit under the previous speech segment to obtain the first target fixed part and the first target temporary part corresponding to the next functional unit under the first target speech segment, repeating this step until the first target fixed part and the first target temporary part corresponding to the second functional unit under the first target speech segment are obtained; The output module is used to output a first on-screen display result, where the first on-screen display result includes a splicing result of the first target fixed part corresponding to the second functional unit and the first target temporary parts of all functional modules.

2. The streaming output method according to claim 1, characterized in that: The following steps are also included: Acquire a second target voice segment following the first target voice segment; When it is determined that the second target voice segment has a first silence duration, and the first silence duration is greater than the first preset duration and less than the second preset duration, the first target temporary part corresponding to the first functional unit under the first target voice segment and the recognition text corresponding to the second target voice segment are spliced, and the recognition result of the spliced ​​part is updated to obtain an updated result and the updated result is used as the fixed part of the first functional unit; Optionally, when it is determined that the second target voice segment has a first silence duration, and the first silence duration is greater than a first preset duration and less than a second preset duration, all functional units except the first functional unit have a second target fixed part and a second target temporary part under the second target voice segment; Optionally, the output module is used to output a second upper screen display result, where the second upper screen display result includes a splicing result of the second target fixed part corresponding to the second functional unit and the second target temporary parts of all functional modules.

3. The streaming output method according to claim 2, characterized in that: The following steps are also included: Acquire a third target voice segment after the second target voice segment, perform functional processing on the third target voice segment, and obtain a third target fixed part and a third target temporary part corresponding to the first functional unit under the third target voice segment; splicing the third target fixed part corresponding to the first functional unit under the third target speech segment and the second target temporary part corresponding to the next functional unit under the second target speech segment to obtain the third target fixed part and the third target temporary part corresponding to the next functional unit under the third target speech segment, and repeating this step until the third target fixed part and the third target temporary part corresponding to the second functional unit under the third target speech segment are obtained; The output module is used to output a third upper screen display result, wherein the third upper screen display result includes a splicing result of the third target fixed part corresponding to the second functional unit and the third target temporary parts of all functional modules.

4. The streaming output method according to claim 2 or 3, characterized in that: The following steps are also included: Acquire a fourth target voice segment; When it is determined that the fourth target speech segment has a second silence duration and the second silence duration is greater than the second preset duration, the temporary parts of all functional units are used as fixed parts, and the fixed parts of the second functional units are output using the output module.

5. The streaming output method according to claim 2 or 3, characterized in that: The following steps are also included: Acquire end identifiers corresponding one to one to the plurality of functional units; After the end identifier is determined, the temporary part of the functional unit corresponding to the end identifier is used as the fixed part.

6. The streaming output method according to any one of claims 1 to 3, characterized in that: The following steps are also included: Acquire a fifth target voice segment; After determining that the fifth target speech segment is a sentence-initial speech segment, performing functional processing on the fifth target speech segment to obtain a fifth target fixed part and a fifth target temporary part corresponding to the first functional unit under the fifth target speech segment; Functionally processing the fifth target fixed part corresponding to the first functional unit under the fifth target speech segment to obtain a fifth target fixed part and a fifth target temporary part corresponding to the next functional unit after the first functional unit under the fifth target speech segment, and repeating this step until obtaining a fifth target fixed part and a fifth target temporary part corresponding to the second functional unit under the fifth target speech segment; The output module is used to output a third upper screen display result, wherein the third upper screen display result includes a splicing result of the fifth target fixed part corresponding to the second functional unit and the fifth target temporary parts of all functional modules. Optionally, the multiple functional units include a recognition unit, a punctuation unit, a sensitive word unit, a smoothing unit and an inverse text regularization unit; Optionally, the first functional unit is the recognition unit, and the second functional unit is the sensitive word unit.

7. The streaming output method according to any one of claims 1 to 3, characterized in that: The fixed part and the temporary part of the upper screen display result output by the output module are displayed in different colors or in different forms.

8. A long speech streaming output system, characterized in that: The system comprises a function module and an output module that execute function processing steps in a preset order, wherein the function module comprises a first function unit that first executes the function processing steps and a second function unit that finally executes the function processing steps, wherein the second function unit is connected to the output module, and the long speech streaming output system further comprises: The first functional unit is configured to concatenate the recognition text corresponding to the first target speech segment with the previous temporary part of the first functional unit under the previous speech segment and perform recognition result update processing on the concatenated parts to obtain a first target fixed part and a first target temporary part corresponding to the first functional unit under the first target speech segment; The second functional unit is configured to concatenate and process the first target fixed part of the previous functional unit and the previous temporary part of the second functional unit under the previous speech segment to obtain the first target fixed part and the first target temporary part corresponding to the second functional unit under the first target speech segment; The output module is configured to display on the upper screen a splicing result of the first target fixed part corresponding to the second functional unit and the first target temporary parts of all functional modules to obtain an upper screen display result.

9. A device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the streaming output method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the streaming output method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Real-time voice stream monitoring method

    CN111276156A

  • Streaming voice recognition result display method and device, electronic equipment and storage medium

    CN112382278A

  • Streaming real-time speech recognition method based on deep learning

    CN114550708A

  • Long speech recognition model training method, electronic equipment and storage medium

    CN115798460A

  • Long speech recognition method and device, and medium

    CN116013275A