Speech recognition method and device, electronic equipment and storage medium

By detecting and filling in the duration of voice data in the speech recognition system, the problem of audio accumulation delay in speech recognition is solved, achieving the effect of reducing delay and improving efficiency.

CN118629407APending Publication Date: 2024-09-10XG TECHNOLOGIES PTE LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410841364.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

There is audio accumulation delay in the speech recognition system during the speech recognition process, resulting in low recognition efficiency. It is difficult to effectively reduce the delay with existing technology.

Method used

By detecting the duration of the voice data, if it is less than the standard voice duration threshold and greater than the shortest voice duration threshold, it will be filled to the standard duration threshold before voice recognition is performed to reduce the cumulative audio delay.

Benefits of technology

It effectively reduces the delay in the speech recognition process and improves the efficiency of speech recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629407A
    Figure CN118629407A
Patent Text Reader

Abstract

The embodiment of the invention discloses a voice recognition method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining first voice data; in response to the fact that the voice duration of the first voice data is smaller than a first duration threshold value and larger than a second duration threshold value, the first duration threshold value is filled with the voice duration of the first voice data through preset first data, second voice data are obtained, and the first duration threshold value is larger than the second duration threshold value; and performing voice recognition on the second voice data, and obtaining first text content corresponding to the first voice data based on a voice recognition result. According to the embodiment of the invention, the voice accumulation delay in the voice recognition process can be reduced, so that the delay in the voice recognition process is greatly reduced, and the voice recognition efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to speech recognition technology and natural language processing technology, and in particular to a speech recognition method, device, electronic device and storage medium. Background Art

[0002] The speech recognition technology can be used to convert the user's speech signal into corresponding text or commands that can be executed by electronic devices. With the development of speech recognition technology, the application fields of speech recognition technology are becoming more and more extensive.

[0003] There is an audio accumulation delay in the speech recognition process of the speech recognition system. The audio accumulation delay is the delay caused by accumulating audio fragments. How to reduce the delay in the audio recognition process and improve the speech recognition efficiency is an urgent problem to be solved. Summary of the invention

[0004] In order to solve the above technical problems, the present disclosure is proposed. Embodiments of the present disclosure provide a speech recognition method, device, electronic device and storage medium.

[0005] According to one aspect of an embodiment of the present disclosure, there is provided a speech recognition method, including:

[0006] Acquire first voice data;

[0007] In response to a voice duration of the first voice data being less than a first duration threshold and greater than a second duration threshold, filling the voice duration of the first voice data to the first duration threshold with preset first data to obtain second voice data, wherein the first duration threshold is greater than the second duration threshold;

[0008] Perform speech recognition on the second speech data, and obtain first text content corresponding to the first speech data based on the speech recognition result.

[0009] According to another aspect of an embodiment of the present disclosure, there is provided a speech recognition device, including:

[0010] A voice data acquisition module, used to acquire first voice data;

[0011] a voice data filling module, configured to fill the voice duration of the first voice data to the first duration threshold with preset first data in response to the voice duration of the first voice data being less than a first duration threshold and greater than a second duration threshold, so as to obtain second voice data, wherein the first duration threshold is greater than the second duration threshold;

[0012] The voice data recognition module is used to perform voice recognition on the second voice data and obtain the first text content corresponding to the first voice data based on the voice recognition result.

[0013] According to another aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute the above method.

[0014] According to another aspect of the embodiments of the present disclosure, an electronic device is provided, the electronic device comprising:

[0015] processor;

[0016] a memory for storing instructions executable by the processor;

[0017] The processor is used to read the executable instructions from the memory and execute the instructions to implement the above method.

[0018] Based on the speech recognition method, device, electronic device and storage medium provided by the above-mentioned embodiments of the present disclosure, after obtaining the first speech data from the speech data to be recognized accumulated in the storage device, if the speech duration of the first speech data is less than the first duration threshold that characterizes the standard speech duration when the speech recognition system performs speech recognition, and is greater than the second duration threshold that characterizes the shortest speech duration when the speech recognition system performs speech recognition, then the speech duration of the first speech data is filled to the first duration threshold with the preset first data and then speech recognition is performed, and the first text content corresponding to the first speech data is obtained according to the speech recognition result. The embodiments of the present disclosure significantly reduce the delay of the speech recognition process by reducing the accumulated speech delay in the speech recognition process, thereby improving the speech recognition efficiency.

[0019] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. In the drawings, the same reference numerals generally represent the same components or steps.

[0021] Figure 1 is a system structure block diagram applicable to the embodiments of the present disclosure;

[0022] Figure 2 is a flowchart of a speech recognition method in some embodiments of the present disclosure;

[0023] Figure 3 is an example diagram of the present disclosure showing adjacent text content and first text content;

[0024] Figure 4 is another example diagram of the present disclosure showing adjacent text content and first text content;

[0025] Figure 5 is another example diagram of the present disclosure showing adjacent text content and first text content;

[0026] Figure 6 is a structural block diagram of a speech recognition device in some embodiments of the present disclosure;

[0027] Figure 7 It is a structural block diagram of an electronic device in some embodiments of the present disclosure. DETAILED DESCRIPTION

[0028] To explain the present disclosure, example embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. It should be understood that the present disclosure is not limited to the example embodiments.

[0029] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.

[0030] Application Overview

[0031] In the process of implementing the present disclosure, the inventors found that there are at least the following problems: in the process of speech recognition by the speech recognition system, the audio recognition delay includes the audio accumulation delay and the audio data processing delay. In order to ensure the recognition accuracy of the speech data to be recognized, it is usually necessary to accumulate the speech data to be recognized to a certain amount before performing audio recognition, for example, the speech duration of the speech data to be recognized is accumulated to T 1 Speech recognition is performed after 1000 milliseconds. The delay of the audio recognition system in recognizing the accumulated speech data is usually less than T 2 milliseconds, and T 1 Much larger than T 2 Therefore, if the audio cumulative delay of the speech recognition system can be reduced, the audio recognition delay of the audio recognition system can be effectively reduced.

[0032] Exemplary Systems

[0033] Figure 1 is a system structure block diagram applicable to the embodiment of the present disclosure. Figure 1 As shown, it includes: an audio acquisition device 1, a storage device 2 and a speech recognition device 3.

[0034] The audio collection device 1 is used to collect the user's voice data. For example, the audio collection device 1 may include a device with an audio collection function such as a microphone.

[0035] The storage device 2 is used to store the user's voice data. The storage device 1 may include a volatile memory and / or a non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc.

[0036] The speech recognition device 3 is an electronic device with a speech recognition function. The speech recognition device 3 extracts the first speech data to be recognized from the user speech data stored in the storage device 2, detects the speech duration of the first speech data, and compares the speech duration of the first speech data with the first duration threshold and the second duration threshold. Among them, the first duration threshold represents the standard speech duration when the speech recognition system performs speech recognition, the second duration threshold represents the shortest speech duration when the speech recognition system performs speech recognition, and the second duration threshold can be flexibly adjusted. If the speech duration of the first speech data is less than the first duration threshold and greater than or equal to the second duration threshold, the speech duration of the first speech data is filled to the first duration threshold with the preset first data to obtain the second speech data. For example, let the first duration threshold be T 1 , the second duration threshold is T 2 , the voice duration of the first voice data is T 3 , if T 2 ≤T 3 <T 1 , then the duration of the voice filled with the first data is (T 1 -T 3 ), the voice duration of the second voice data is T 1 After performing speech recognition on the second speech data, the speech recognition device 2 extracts the first text content corresponding to the first speech data from the speech recognition result.

[0037] Exemplary Methods

[0038] Figure 2 FIG. 1 is a flow chart of a speech recognition method in some embodiments of the present disclosure. Figure 2 As shown, the following steps are included:

[0039] S1: Acquire first voice data.

[0040] In a single-person speaking scenario or a multi-person speaking scenario, the speaker's voice data is collected by an audio collection device, and the voice data is stored by a storage device. Among them, the single-person speaking scenario includes a single speaker's speech scenario and a single-person self-narration scenario. The multi-person speaking scenario includes a multi-person face-to-face communication scenario or a multi-person online voice communication scenario.

[0041] The following description will take a single-person speaking scenario as an example to illustrate the speech recognition method of the embodiment of the present disclosure, but those skilled in the art will appreciate that the speech recognition method of the embodiment of the present disclosure is also applicable to a multi-person speaking scenario.

[0042] The audio recognition device extracts the first voice data to be recognized from the voice data stored in the storage device. The first voice data may be the original voice data of the speaker, that is, the unprocessed voice data. The first voice data may also be the voice data after preprocessing such as filtering or audio signal enhancement of the original voice data.

[0043] After the audio recognition device obtains the first voice data, it detects the voice duration of the first voice data. For example, the voice duration of the first voice data can be detected by audio playback software. The audio recognition device compares the voice duration of the first voice data with the first duration threshold and the second duration threshold. The first duration threshold represents the standard voice duration when the voice recognition system performs voice recognition, and the first duration threshold is recorded as T 1 . For example, 500ms≤T 1 ≤3000ms. The second duration threshold represents the shortest speech duration when the speech recognition system performs speech recognition. The second duration threshold is T 2 , usually T 2 ≤100ms, and T 2 The value can be adjusted flexibly.

[0044] S2: In response to the voice duration of the first voice data being less than the first duration threshold and greater than the second duration threshold, the voice duration of the first voice data is filled to the first duration threshold with the preset first data to obtain the second voice data, wherein the first duration threshold is greater than the second duration threshold.

[0045] When the voice duration of the first voice data is less than the first duration threshold and greater than or equal to the second duration threshold, the audio recognition system is difficult to directly perform voice recognition on the first voice data due to system equipment, and it is necessary to fill the first voice data to the first duration threshold with the preset first data to obtain the second voice data.

[0046] In some optional embodiments of the present disclosure, the preset first data may be invalid data, or may be identified as data that does not require speech recognition. For example, the speech recognition system may use the second speech data as a data storage queue and fill in an unmarked identifier after the first speech data.

[0047] S3: Perform voice recognition on the second voice data, and obtain first text content corresponding to the first voice data based on the voice recognition result.

[0048] The speech recognition system performs speech recognition on the second speech data to obtain a recognition result of the second speech data. The recognition result of the second speech data may include text content corresponding to the second speech data. The speech recognition system may extract the first text content corresponding to the first speech data from the recognition result of the second speech data.

[0049] When the first data is preset as invalid data, the recognition result of the second voice data is the first text content corresponding to the first voice data.

[0050] When the preset first voice data includes data of an invalid identifier, for example, when the second voice data is used as a data storage queue and an invalid identifier is detected in a storage unit after the first voice data, voice recognition is performed only on the voice data before the invalid identifier, that is, voice recognition is performed only on the audio segment corresponding to the first voice data, and the first text content corresponding to the first voice data is directly obtained.

[0051] When the first data is preset as other voice data, an identifier for identifying different voice data can be set between the first voice data and the other voice data, so that the voice recognition system can quickly extract the first text content corresponding to the first voice data from the recognition result of the second voice data.

[0052] In this embodiment, in a scenario where the speech recognition system sets a first duration threshold representing the standard speech duration, since the audio cumulative delay is much greater than the audio processing delay, the speech recognition system is set with a second duration threshold representing the shortest speech duration. When the first voice data is less than the first duration threshold and greater than the second duration threshold, the first voice data is filled to the first preset duration to obtain the second voice data. This allows the speech recognition system to perform speech recognition on the second voice data, thereby reducing the audio cumulative delay, thereby reducing the audio recognition delay of the speech recognition system and improving the speech recognition efficiency.

[0053] In some embodiments of the present disclosure, after step S3, the following steps may also be included:

[0054] S4: Display the first text content. For example, the first text content can be displayed through a single display screen, for example, a certain display screen is set as a single binding display screen with the voice recognition system. When the voice recognition system recognizes the first text content, the first text content is displayed through the single binding display screen. In addition, the first text content can also be displayed synchronously through multiple display screens. For example, for a scene where a single person is giving a speech and multiple people are listening, multiple display screens corresponding to multiple listeners are bound to the voice recognition system. When the voice recognition system recognizes the first text content, the first text content is synchronously displayed through the multiple display screens. In addition, it is also possible to display different contents through multiple display screens, and the first text content is displayed at a display position corresponding to the first text content in the multiple display screens, such as a large display screen composed of multiple small display screens, each small display screen in the large display screen can display different content according to the settings, and the large display screen and the multiple small display screens are bound to the voice recognition system. After the voice recognition system recognizes the first text content, the first text content can be displayed through at least one small display screen in the large display screen, and the specific display position depends on the settings.

[0055] In this embodiment, by displaying the first text content, on-site communication personnel, on-site audiences, or remote observers can quickly and intuitively understand what the sound source user of the first voice data said.

[0056] In some embodiments of the present disclosure, step S4 may include:

[0057] S4-1: Obtain the first display position of the historical text content corresponding to the recognized historical voice data.

[0058] The historical voice data includes voice data stored in the storage device and located before the first voice data, for example, voice data stored in the storage device and located within N milliseconds before the first voice data, where N is an integer greater than 0. For example, N can be 1000, 2000, or 5000, etc.

[0059] After the speech recognition device recognizes the historical text content according to the historical speech data, the historical text content is displayed on the display screen. The display control device, such as a processor in the display screen, obtains the display position of the historical text content on the display screen and records it as the first display position.

[0060] S4-2: Based on the first display position and the association relationship between the first text content and the historical text content, determine the second display position of the first text content.

[0061] The association relationship between the first text content and the historical text content may include: the text content relationship between the historical text content and the first text content, the timing relationship of voice data collection, and other relationships that help determine the relative position relationship between the first display position and the second display position.

[0062] The display control device can determine the display position of the first text content on the display screen according to the first display position, the association relationship between the first text content and the historical text content, and the display layout relationship of the text content on the display screen, which is recorded as the second display position.

[0063] S4-3: Display the first text content at the second display position.

[0064] In this embodiment, the second display position of the first text content can be accurately determined according to the first display position of the historical text content and the association relationship between the first text content and the historical text content.

[0065] In one embodiment of the present disclosure, step S4-3 may include:

[0066] S4-3-1: Extracting adjacent text content adjacent to the first text content from the historical text content.

[0067] The display control device may perform word segmentation and sentence segmentation on the historical text content and the first text content using a natural speech processing model, and determine adjacent text content adjacent to the historical text content and the first text content according to the results of the word segmentation and sentence segmentation.

[0068] For example, Xiao Ming wants to go out and check today's weather forecast. After learning that it is breezy and the temperature is suitable today, he speaks in the collection environment of the voice collection device. The voice collection device collects Xiao Ming's historical voice data and first voice data, and the historical text content obtained by the voice recognition device through voice recognition of the historical voice data includes: I am lucky, the weather today. The first text content obtained by the voice recognition device through voice recognition of the first voice data includes: Not bad, or not bad. At this time, the display control device can determine "Today's weather" in the historical text content as the adjacent text content.

[0069] S4-3-2: Based on the adjacent text contents and the association relationship, determine the contextual relationship between the adjacent text contents and the first text content.

[0070] The display control device can determine the contextual relationship between the adjacent text content and the first text content according to the association relationship between the adjacent text content and the historical text content. In the present embodiment, the contextual relationship between the adjacent text content and the first text content includes intra-sentence relationship and inter-sentence relationship. Intra-sentence relationship can include parallel, continuation, progression, selection, transition, cause and effect, hypothesis, condition and proof relationship, etc. Inter-sentence relationship can include parallel relationship, cause and effect relationship, progressive relationship, transition relationship and mutual explanation relationship, etc. For example, when the adjacent text content is "the weather is nice today" and the first text content is "I want to go out and play", the contextual relationship is the cause and effect relationship in the intra-sentence relationship.

[0071] S4-3-3: Based on the contextual relationship, determine the display type of the first text content. Among them, the display type includes at least one of fixed content display and variable content display. Fixed content display means that before the text content displayed on the display screen is refreshed, the displayed content is fixed and will not change. Variable content display means that before the text content displayed on the display screen is refreshed, the displayed content can be changed according to the content that can be changed, for example, according to the content displayed later. Exemplarily, the adjacent text content is "Today's weather" and the display type is fixed content display, the first text content is "Not rubbing" and the display type is variable content display, and the second text content after the first text content is "Want to go out and play" and the display type is fixed content display. Then, the first text content can be adjusted to "Not bad" and the display type can be adjusted to fixed content display. The purpose of variable content display is that the recognition result of voice data may be inaccurate, and the display content can be adjusted by variable display. The fixed content display type refers to the recognition result of voice data (i.e., text content) After it is confirmed to be accurate, it is displayed on the display screen in a fixed content manner. After the text content (such as the first text content or the historical text content) is displayed, it can be refreshed by the subsequent display of the text content corresponding to other voice data. Therefore, it can be understood that if the recognition result of the voice data is confirmed to be accurate or correct, it can be determined that the corresponding text content display is temporarily fixed, that is, the fixed content display mode. The temporary fixation can be based on the time that the voice data, such as the first voice data, needs to be displayed. The text "Today's weather is good" corresponding to the first voice data of the example needs to be displayed for 8s, then the fixed content display time can be close to 8s, such as 7.5s; otherwise, if the recognition result of the voice data is inaccurate or incorrect, it can be determined that the corresponding text content display is temporarily variable, that is, the variable content display, and it will be converted to the fixed content display only after it is further accurate or correct.

[0072] S4-3-4: Display the first text content in the second display position in the display type.

[0073] In this embodiment, according to the contextual relationship between the adjacent text content and the first text content, the first text content can be reasonably displayed by means of fixed content display or variable content display.

[0074] In some embodiments of the present disclosure, step S4-3-3 may include:

[0075] S4-3-3-1: Based on the contextual relationship, determine the semantic continuity between the first text content and the adjacent text content.

[0076] The display control device can use a pre-trained semantic continuity model or a natural language processing model to determine the semantic continuity between the first text content and the adjacent text content, that is, determine the semantic continuity between the first text content and the adjacent text content. Among them, the speech continuity model is trained based on multiple text content sample pairs and the speech continuity labels of each text content sample pair. In addition to the function of determining the speech continuity between text contents such as the speech continuity model, the natural speech model can also have other natural language analysis and processing functions. Other natural language analysis and processing methods are well known to those skilled in the art and will not be elaborated on.

[0077] S4-3-3-2: In response to the semantic continuity satisfying a preset semantic continuity condition, determining that the display type of the first text content is fixed content display.

[0078] The preset semantic continuity condition is used to characterize the semantic coherence of the preceding and following text contents.

[0079] Figure 3 is an example diagram of the present disclosure showing adjacent text content and first text content. Figure 3 As shown, when the adjacent text content is "Today's weather" and the first text content is "Not bad", the display control device determines that the adjacent text content and the first text content meet the preset semantic continuity condition, and determines that the display type of the first text content is fixed content display.

[0080] S4-3-3-3: In response to the semantic continuity not satisfying a preset semantic continuity condition, determining that the display type of the first text content is variable content display.

[0081] Figure 4 is another example diagram of the present disclosure showing adjacent text content and first text content. Figure 4 As shown, when the adjacent text content is "Today's weather" and the first text content is "Not rubbed", the display control device determines that the adjacent text content and the first text content do not meet the preset semantic continuity condition, and determines that the display type of the first text content is variable content display.

[0082] In this embodiment, through the semantic continuity between the first text content and the adjacent text content, it can be determined whether the recognition result of the first text content is likely to be inaccurate, and then the first text content can be displayed reasonably.

[0083] In some embodiments of the present disclosure, after the semantic continuity between the first text content and the adjacent text content satisfies a preset semantic continuity condition, it also includes: in response to the display mode of the adjacent text content being variable content display, adjusting the display mode of the adjacent text content to fixed content display.

[0084] When it is determined that the semantic continuity between the first text content and the adjacent text content meets the preset semantic continuity condition, not only can it be determined that the recognition result of the first text content is accurate, but it can also be determined that the recognition result of the adjacent text content is accurate. When the previous display mode of the adjacent text content is variable content display, the display control device can adjust the display mode of the adjacent text content to fixed content display.

[0085] Figure 5 is another example diagram of the present disclosure showing adjacent text content and first text content. Figure 5 As shown, when the adjacent text content is "Today's weather" and the display mode is variable content display, and the first text content is "good", the display mode of "Today's weather" can be adjusted to fixed content display.

[0086] In this embodiment, when it is determined that the semantic continuity between the first text content and the adjacent text content meets the preset semantic continuity condition, it can be determined that the recognition result of the adjacent text content is accurate. When the display mode of the adjacent text content is previously a variable content display, the display control device can reasonably adjust the display mode of the adjacent text content to a fixed content display.

[0087] In some embodiments of the present disclosure, after step S2, the following may be included:

[0088] S5: Acquire the speech speed information of the sound source user of the first voice data.

[0089] The voice recognition device can determine the speech speed information of the sound source user, that is, the number of characters per unit time, or the average voice duration of a single character, according to the first text content and the voice duration of the first voice data.

[0090] S6: Adjust the second duration threshold based on the speech speed information of the sound source user to obtain a third duration threshold, wherein the third duration threshold is smaller than the first duration threshold.

[0091] The speech recognition device may adjust the second duration threshold to the third duration threshold according to the speech speed information of the sound source user. The third duration threshold is set so that the sound source user can finish speaking at least one word at that time. For example, the maximum or average voice duration of a single word spoken by the sound source user may be determined as the third duration threshold, so that when the sound source user is subsequently subjected to speech recognition, the text content corresponding to the speech data to be recognized includes at least one complete word.

[0092] In this embodiment, the second duration threshold is adjusted according to the speaking speed information of the source user of the first voice data to obtain the third duration threshold, that is, the shortest voice duration is adjusted, so that each time voice recognition is performed thereafter, the text content corresponding to the voice data to be recognized includes at least one complete word.

[0093] In some embodiments of the present disclosure, after step S1, the method further includes:

[0094] S7: In response to the voice duration of the first voice data being greater than or equal to the first duration threshold, performing voice recognition on the first voice data to obtain first text content.

[0095] In this embodiment, when the speech duration of the first speech data is greater than or equal to the first duration threshold, the speech recognition system does not need to fill the first speech data, and can directly perform speech recognition on the first speech data to obtain the first text content corresponding to the first speech data.

[0096] Any speech recognition method provided in the embodiments of the present disclosure may be executed by any appropriate device with data processing capabilities, including but not limited to: a terminal device and a server, etc. Alternatively, any speech recognition method provided in the embodiments of the present disclosure may be executed by a processor, such as the processor executing any speech recognition method mentioned in the embodiments of the present disclosure by calling corresponding instructions stored in a memory. This will not be described in detail below.

[0097] Exemplary Devices

[0098] Figure 6 is a structural block diagram of a speech recognition device in some embodiments of the present disclosure. Figure 6 As shown, the speech recognition device comprises:

[0099] The voice data acquisition module 100 is used to acquire first voice data;

[0100] The voice data filling module 200 is used to fill the voice duration of the first voice data to the first duration threshold with the preset first data in response to the voice duration of the first voice data being less than the first duration threshold and greater than the second duration threshold, so as to obtain the second voice data, wherein the first duration threshold is greater than the second duration threshold;

[0101] The voice data recognition module 300 is used to perform voice recognition on the second voice data, and obtain the first text content corresponding to the first voice data based on the voice recognition result.

[0102] In some embodiments of the present disclosure, the speech recognition device further includes a display module (not shown in the figure) for displaying the first text content.

[0103] In some embodiments of the present disclosure, the display module is used to obtain a first display position of historical text content corresponding to the recognized historical voice data; the display module is also used to determine a second display position of the first text content based on the first display position and the association between the first text content and the historical text content; the display module is also used to display the first text content at the second display position.

[0104] In some embodiments of the present disclosure, the display module is used to extract adjacent text content adjacent to the first text content from the historical text content; the display module is also used to determine the contextual relationship between the adjacent text content and the first text content based on the adjacent text content and the association relationship; the display module is also used to determine the display type of the first text content based on the contextual relationship, wherein the display type includes at least one of a fixed content display and a variable content display; the display module is also used to display the first text content in a second display position with the display type.

[0105] In some embodiments of the present disclosure, the display module is used to determine the semantic continuity between the first text content and the adjacent text content based on the contextual relationship; the display module is also used to determine that the display type of the first text content is fixed content display in response to the semantic continuity satisfying a preset semantic continuity condition; the display module is also used to determine that the display type of the first text content is variable content display in response to the semantic continuity not satisfying the preset semantic continuity condition.

[0106] In some embodiments of the present disclosure, the display module is further configured to, in response to the semantic continuity satisfying a preset semantic continuity condition, adjust the display mode of the adjacent text content to a fixed content display if the display mode of the adjacent text content is a variable content display.

[0107] In some embodiments of the present disclosure, the speech recognition device further includes:

[0108] A speech rate information acquisition module, used to acquire the speech rate information of the sound source user of the first voice data;

[0109] The duration threshold adjustment module is used to adjust the second duration threshold based on the speech speed information of the sound source user to obtain a third duration threshold, wherein the third duration threshold is smaller than the first duration threshold.

[0110] In some embodiments of the present disclosure, the voice data recognition module 300 is further configured to perform voice recognition on the first voice data to obtain first text content in response to a voice duration of the first voice data being greater than or equal to a first duration threshold.

[0111] It should be noted that the specific implementation of the speech recognition device of the embodiment of the present disclosure is similar to the specific implementation of the speech recognition method of the embodiment of the present disclosure. Please refer to the speech recognition method part for details. In order to reduce redundancy, it will not be described in detail.

[0112] Exemplary Electronic Devices

[0113] Figure 7 A structural diagram of an electronic device provided in an embodiment of the present disclosure includes at least one processor 10 and a memory 20.

[0114] The processor 10 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.

[0115] The memory 20 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 10 may execute one or more computer program instructions to implement the speech recognition method and / or other desired functions of the various embodiments of the present disclosure described above.

[0116] In one example, the electronic device may further include: an input device 30 and an output device 40, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0117] The input device 30 may also include, for example, a keyboard, a mouse, a touch screen, a sound pickup device (such as a microphone array), etc. The user may input the second duration threshold or the adjustment value of the second duration threshold to the speech recognition device through the input device such as the keyboard, the mouse or the touch screen, so that the speech recognition device determines the latest second duration threshold according to the second duration threshold or the adjustment value of the second duration threshold input by the user. The user may also input the user's voice signal through the sound pickup device, so that the sound pickup device collects the user's voice signal and sends it to the speech recognition device, so that the speech recognition device performs speech recognition on the user's voice signal.

[0118] The output device 40 is used to output various information to the outside, and may include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, and the like.

[0119] Of course, to simplify, Figure 7 Only some of the components related to the present disclosure in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application situations, the electronic device may further include any other appropriate components.

[0120] Exemplary computer program products and computer-readable storage media

[0121] In addition to the above-mentioned methods and devices, embodiments of the present disclosure may also provide a computer program product, including computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the speech recognition method of various embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section.

[0122] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0123] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the processor executes the steps of the method for identifying targets in an image of various embodiments of the present disclosure described in the above “Exemplary Method” section.

[0124] Computer readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium is, for example, but not limited to, a system, device or device including electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0125] The basic principles of the present disclosure are described above in conjunction with specific embodiments. However, the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and cannot be considered as necessary for each embodiment of the present disclosure. In addition, the specific details disclosed above are only for the purpose of illustration and ease of understanding, rather than limitation, and the above details do not limit the present disclosure to being implemented by adopting the above specific details.

[0126] Those skilled in the art may make various changes and modifications to the present disclosure without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present disclosure claims and their equivalents, the present disclosure is also intended to include these modifications and variations.

Claims

1. A speech recognition method, include: Acquire first voice data; In response to a voice duration of the first voice data being less than a first duration threshold and greater than a second duration threshold, filling the voice duration of the first voice data to the first duration threshold with preset first data to obtain second voice data, wherein the first duration threshold is greater than the second duration threshold; Perform speech recognition on the second speech data, and obtain first text content corresponding to the first speech data based on the speech recognition result.

2. The method according to claim 1, after obtaining the first text content corresponding to the first voice data from the voice recognition result, further comprising: include: The first text content is displayed.

3. The method according to claim 2, in, The displaying of the first text content includes: Obtaining a first display position of historical text content corresponding to the recognized historical voice data; Determining a second display position of the first text content based on the first display position and the association relationship between the first text content and the historical text content; The first text content is displayed at the second display position.

4. The method according to claim 3, in, The displaying the first text content at the second display position includes: Extracting adjacent text content adjacent to the first text content from the historical text content; Determining a contextual relationship between the adjacent text content and the first text content based on the adjacent text content and the association relationship; Based on the contextual relationship, determining a display type of the first text content, wherein the display type includes at least one of fixed content display and variable content display; The first text content is displayed in the second display position in the display type.

5. The method according to claim 4, in, The determining the display type of the first text content based on the adjacent text content and the contextual relationship includes: Based on the contextual relationship, determining semantic continuity between the first text content and the adjacent text content; In response to the semantic continuity satisfying a preset semantic continuity condition, determining that the display type of the first text content is fixed content display; In response to the semantic continuity not satisfying the preset semantic continuity condition, determining that the display type of the first text content is variable content display.

6. The method according to claim 5, in, After the semantic continuity satisfies a preset semantic continuity condition, the method further includes: In response to the display mode of the adjacent text content being variable content display, the display mode of the adjacent text content is adjusted to fixed content display.

7. The method according to any one of claims 1 to 6, wherein after obtaining the second voice data, further include: Acquire the speech speed information of the sound source user of the first voice data; The second duration threshold is adjusted based on the speech speed information of the sound source user to obtain a third duration threshold, wherein the third duration threshold is smaller than the first duration threshold.

8. The method according to claim 1, after obtaining the first voice data, further comprising: include: In response to the voice duration of the first voice data being greater than or equal to the first duration threshold, voice recognition is performed on the first voice data to obtain the first text content.

9. A speech recognition device, include: A voice data acquisition module, used to acquire first voice data; a voice data filling module, configured to fill the voice duration of the first voice data to the first duration threshold with preset first data in response to the voice duration of the first voice data being less than a first duration threshold and greater than a second duration threshold, so as to obtain second voice data, wherein the first duration threshold is greater than the second duration threshold; The voice data recognition module is used to perform voice recognition on the second voice data and obtain the first text content corresponding to the first voice data based on the voice recognition result.

10. The device according to claim 9, further comprising: include: A display module is used to display the first text content.

11. The device according to claim 10, in, The display module is used to obtain the first display position of the historical text content corresponding to the recognized historical voice data; the display module is also used to determine the second display position of the first text content based on the first display position and the association between the first text content and the historical text content; the display module is also used to display the first text content at the second display position.

12. The device according to claim 11, in, The display module is used to extract adjacent text content adjacent to the first text content from the historical text content; the display module is also used to determine the contextual relationship between the adjacent text content and the first text content based on the adjacent text content and the association relationship; the display module is also used to determine the display type of the first text content based on the contextual relationship, wherein the display type includes at least one of fixed content display and variable content display; the display module is also used to display the first text content in the second display position with the display type.

13. The device according to claim 12, in, The display module is used to determine the semantic continuity between the first text content and the adjacent text content based on the contextual relationship; the display module is also used to determine that the display type of the first text content is fixed content display in response to the semantic continuity satisfying a preset semantic continuity condition; the display module is also used to determine that the display type of the first text content is variable content display in response to the semantic continuity not satisfying the preset semantic continuity condition.

14. A computer-readable storage medium storing a computer program, wherein the computer program is used to execute the method according to any one of claims 1 to 8.

15. An electronic device, the electronic device include: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1-8.