Audio search method and related device, electronic device, and storage medium

CN113742512BActive Publication Date: 2024-10-01ANHUI IFLYREC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110914174.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-10
Publication Date
2024-10-01
Estimated Expiration
2041-08-10

AI Technical Summary

Technical Problem

In the existing technology, when audio listening is performed after speech recognition, in order to narrow the listening range, the recognition sentence needs to be split into multiple recognition words, resulting in a large number of element tags in the text interface, affecting the stability of the interface, and may cause the interface to freeze or freeze. Stuck.

Method used

By obtaining the target word and its position information in the text interface, several sets of audio information identified by the same sentence as the target word are obtained, including the recognition words and time information recognized by the audio clip. Based on this information, the target audio is positioned and the number of element tags is reduced. Improve the stability and accuracy of audio lookups.

Benefits of technology

It improves the stability and accuracy of audio search on the premise of narrowing the listening range, reduces the probability of jamming or freezing in the text interface, and enhances the accuracy of audio search.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113742512B_ABST
    Figure CN113742512B_ABST
Patent Text Reader

Abstract

The present application discloses an audio search method and related devices, electronic devices, and storage media, wherein the audio search method includes: obtaining a target word in a text interface; wherein the text interface displays a number of sentences, and the sentences are respectively provided with element tags, the element tags include sentence identifiers, and the same sentence identifiers represent that the sentences are derived from the same audio data; obtaining the target sentence where the target word is located and the position information of the target word in the target sentence, and using the sentence identifier of the target sentence as the target identifier; obtaining a number of groups of audio information corresponding to the target identifier; wherein each group of audio information includes the first time information of the recognized word and the audio segment recognized by the audio segment; based on the position information, the target sentence, and the number of groups of audio information, the target audio of the target word is obtained. The above scheme can improve the stability and accuracy of audio search while reducing the range of listening back.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio processing technology, and in particular to an audio search method and related devices, electronic equipment, and storage media. Background Art

[0002] In recent years, speech recognition technology has been increasingly used in many scenarios such as work meetings, daily chats, etc. Generally speaking, after speech recognition, in order to improve the accuracy of recognized sentences, text processing personnel are required to calibrate the recognized sentences based on the original audio playback.

[0003] At present, in order to reduce the listening range, the recognition sentence is split into multiple recognition words, and then the multiple recognition words are respectively wrapped with element tags, and the start time and end time of the audio corresponding to the recognition word are stored in the element tag, so that when a certain recognition word needs to be calibrated, the corresponding audio of the recognition word can be obtained through the element tag of the recognition word. However, since the recognition sentence is split into multiple recognition words, there will be a large number of element tags in the text interface, which will inevitably affect the stability of the interface display, resulting in interface freezes or even freezes. In view of this, how to improve the stability and accuracy of audio search while reducing the listening range has become an urgent problem to be solved. Summary of the invention

[0004] The main technical problem solved by the present application is to provide an audio search method and related devices, electronic devices, and storage media, which can improve the stability and accuracy of audio search while narrowing the listening range.

[0005] In order to solve the above technical problems, the first aspect of the present application provides an audio search method, including: obtaining a target word in a text interface; wherein the text interface displays a plurality of sentences, and the plurality of sentences are respectively provided with element tags, the element tags include sentence identifiers, and the same sentence identifiers represent that the sentences are derived from the same audio data; obtaining a target sentence where the target word is located and the position information of the target word in the target sentence, and using the sentence identifier of the target sentence as the target identifier; obtaining a plurality of groups of audio information corresponding to the target identifier; wherein each group of audio information includes a recognized word recognized by an audio clip and the first time information of the audio clip; based on the position information, the target sentence and the plurality of groups of audio information, obtaining the target audio of the target word.

[0006] In order to solve the above technical problems, the second aspect of the present application provides an audio search device, including: a target word acquisition module, a target word analysis module, an audio information acquisition module and a target audio acquisition module, the target word acquisition module is used to acquire the target word in the text interface; wherein the text interface displays a plurality of sentences, and the plurality of sentences are respectively provided with element tags, the element tags include sentence identifiers, and the same sentence identifiers represent that the sentences are derived from the same audio data; the target word analysis module is used to acquire the target sentence where the target word is located and the position information of the target word in the target sentence, and use the sentence identifier of the target sentence as the target identifier; the audio information acquisition module is used to acquire a plurality of groups of audio information corresponding to the target identifier; wherein each group of audio information includes an identified word identified by an audio segment and the first time information of the audio segment; the target audio acquisition module is used to obtain the target audio of the target word based on the position information, the target sentence and the plurality of groups of audio information.

[0007] In order to solve the above technical problem, the third aspect of the present application provides an electronic device, including a memory and a processor coupled to each other, the memory stores program instructions, and the processor is used to execute the program instructions to implement the audio search method in the above first aspect.

[0008] In order to solve the above technical problem, the fourth aspect of the present application provides a computer-readable storage medium, which stores program instructions that can be executed by a processor, and the program instructions are used to implement the audio search method in the above first aspect.

[0009] The above scheme obtains the target word in the text interface, and the text interface displays several sentences, and the several sentences are respectively provided with element tags, and the element tags include sentence identifiers, and the same sentence identifiers represent that the sentences come from the same audio data. On this basis, the target sentence where the target word is located and the position information of the target word in the target sentence are obtained, and the sentence identifier of the target sentence is used as the target identifier, and several groups of audio information corresponding to the target identifier are obtained, and each group of audio information includes the recognized word recognized by the audio segment and the first time information of the audio segment, and then based on the position information, the target sentence and the several groups of audio information, the target audio of the target word is obtained, so the target of the target word can be found in the end. Audio, thereby narrowing the listening range, and because the sentences displayed in the text interface are provided with element tags, compared with setting element tags in the word dimension, the number of element tags can be greatly reduced, which is conducive to reducing the probability of the text interface being stuck or even stuck as much as possible, thereby improving the stability of audio search. In addition, by obtaining several groups of audio information with the same sentence identifier as the target sentence where the target word is located and the position information of the target word in the target sentence, and each group of audio information includes the recognized words recognized by the audio clip and the time information of the audio clip, it can assist in locating the time information corresponding to the target word in the audio data, which is conducive to improving the accuracy of audio search. Therefore, the stability and accuracy of audio search can be improved while narrowing the listening range. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 It is a flowchart of an embodiment of the audio search method of the present application;

[0011] Figure 2 yes Figure 1 A schematic diagram of a flow chart of an embodiment of step S14;

[0012] Figure 3 This is a schematic diagram of the process of an embodiment of audio search of the present application;

[0013] Figure 4 It is a schematic diagram of the framework of an embodiment of an audio search device of the present application;

[0014] Figure 5 It is a schematic diagram of the framework of an embodiment of the electronic device of the present application;

[0015] Figure 6 It is a schematic diagram of a framework of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0016] The scheme of the embodiment of the present application is described in detail below in conjunction with the drawings of the specification.

[0017] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures, interfaces, and technologies are provided to facilitate a thorough understanding of the present application.

[0018] The terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship. In addition, "many" in this article means two or more than two.

[0019] See also Figure 1 , Figure 1 It is a flowchart of an embodiment of the audio search method of the present application.

[0020] Specifically, the following steps may be included:

[0021] Step S11: Acquire the target word in the text interface.

[0022] In the embodiment of the present disclosure, a text interface displays a plurality of sentences, each of which is provided with an element tag, wherein the element tag includes a sentence identifier, and the same sentence identifier indicates that the sentences are derived from the same audio data.

[0023] In an implementation scenario, the several sentences displayed on the text interface may include recognition sentences obtained by audio data recognition, and may also include correction sentences corrected on the basis of recognition sentences. For example, the audio data "Today is sunny and windy" and the audio data "Suitable for an outing" can obtain the recognition sentence "Today is sunny and windy" and the recognition sentence "Suitable for making friends and going out" after voice recognition. Then the several sentences displayed on the text interface may include: the recognition sentence "Today is sunny and windy", the recognition sentence "Suitable for making friends and going out", or the several sentences displayed on the text interface may also include the correction sentence after at least one of them is corrected, such as, the several sentences displayed on the text interface may also include: the correction sentence "Today is sunny and windy", the recognition sentence "Suitable for making friends and going out", which is not limited here. Other situations can be deduced by analogy, and examples are not given one by one here.

[0024] In an implementation scenario, as mentioned above, each sentence is respectively provided with an element tag, and the element tag contains a sentence identifier, and the same sentence identifier indicates that the sentence comes from the same audio data. For example, when several sentences displayed on the text interface include the aforementioned recognition sentence "Today's weather is clear and sunny" and the recognition sentence "Suitable for making friends and going out", since the two are respectively recognized through different audio data, the sentence identifiers in the element tags set for the two are different. Specifically, the sentence identifier can be represented by a number. For example, the element tag of "Suitable for making friends and going out" can be set to <ins data-unique=”893”> Suitable for dating and going out< / ins> , where the number "893" is the statement identifier. Other cases can be deduced in the same way, and no more examples are given here.

[0025] In an implementation scenario, a sentence style may also be provided in an element tag, and the sentence style may include, but is not limited to, font, font size, color, etc., which are not limited here. For example, the audio data "It is expected that there will be heavy rain in our city tomorrow, please make preparations for rain protection" can be recognized through voice recognition to obtain the sentence "It is expected that there will be heavy rain in our city tomorrow, please make preparations for defense". In addition, in order to highlight "It is expected that there will be heavy rain in our city tomorrow", it can be used in sentence styles such as "bold" and "bold", while "Please make preparations for defense" can be used in conventional sentence styles such as "Songti". In this case, the sentence "It is expected that there will be heavy rain in our city tomorrow" and the sentence "Please make preparations for defense" can use different element tags respectively, but because the two are derived from the same audio data, the sentence identifiers in the element tags of the two are the same. Other situations can be deduced by analogy, and examples are not given one by one here. It should be noted that when displaying sentences in a text interface, it is necessary to render them according to the sentence style in the sentence tag set for the sentence, such as rendering the display effect of the sentence according to the "font", "font size", "color" and so on in the sentence style. Therefore, the more element tags there are in the text interface, the greater the possibility that the text interface will be stuck or even frozen. Since the sentences displayed in the text interface of the embodiment of the present disclosure are provided with element tags, compared with setting element tags in the word dimension, the number of element tags can be greatly reduced, which is beneficial to minimizing the probability of the text interface being stuck or even frozen, thereby improving the stability of audio search.

[0026] In one implementation scenario, the target words in the text interface can be determined based on the selection area of ​​the user in the text interface. Specifically, the user can define a selection area in the text interface by using a mouse or other methods according to business needs, and use the words in the selection area as the target words. For example, according to business needs, the user can define a selection area containing "making friends" in the sentence "suitable for making friends and going out" displayed in the text interface, and on this basis, "making friends" can be used as the target word. Other situations can be deduced by analogy, and no examples are given here one by one.

[0027] Step S12: obtaining the target sentence where the target word is located and the position information of the target word in the target sentence, and taking the sentence identifier of the target sentence as the target identifier.

[0028] In an implementation scenario, the target sentence can be a recognition sentence obtained by audio data recognition. For example, according to the audio data "suitable for outing", the recognition sentence "suitable for making friends and going out" can be recognized, and the sentence "suitable for making friends and going out" can be displayed in the text interface, and the target word "making friends" can be obtained in the manner described above, then the sentence "suitable for making friends and going out" where the target word "making friends" is located can be used as the target sentence; or, according to the audio data "it is expected that there will be heavy rain in our city tomorrow, please make preparations for rain", the recognition sentence "it is expected that there will be heavy rain in our city tomorrow, please make preparations for defense", and the sentence "it is expected that there will be heavy rain in our city tomorrow" and the sentence "please make preparations for defense" are respectively provided with element tags, and the target word "defense" can be obtained in the manner described above, then the sentence "it is expected that there will be heavy rain in our city tomorrow, please make preparations for defense" where the target word "defense" is located can be used as the target sentence. Other situations can be deduced by analogy, and examples are not given one by one here. The above method, by setting the target sentence to the recognition sentence obtained by audio data recognition, can be applied to the scene where the recognition sentence is not calibrated and audio search is performed.

[0029] In an implementation scenario, the target sentence can be modified based on the recognition sentence, and the recognition sentence is recognized by the audio data. For the convenience of description, the sentence modified based on the recognition sentence can be called a correction sentence. In a real scenario, the user can directly correct the suspected errors in the recognition sentence based on business needs to obtain a correction sentence. For example, according to the audio data "suitable for picnics and going out", the recognition sentence "suitable for making friends and going out" can be identified. The user can directly modify the suspected error "making friends" to "picnics" according to business needs, and obtain the corrected sentence "suitable for picnics and going out", and can obtain the target word "picnic" in the above-mentioned manner, and then the corrected sentence "suitable for picnics and going out" where the target word "picnic" is located can be used as the target sentence; or, according to the audio data "it is expected that there will be heavy rain in our city tomorrow, please make preparations for defense", the recognition sentence "it is expected that there will be heavy rain in our city tomorrow, please make preparations for defense" can be identified, and the sentences "it is expected that there will be heavy rain in our city tomorrow" and "please make preparations for defense" are respectively provided with element tags. According to business needs, the user can modify the suspected error "defense" to "rain protection", and obtain the corrected sentence "it is expected that there will be heavy rain in our city tomorrow, please make preparations for rain protection", and can obtain the target word "rain protection" in the above-mentioned manner, and then the corrected sentence "it is expected that there will be heavy rain in our city tomorrow, please make preparations for rain protection" where the target word "rain protection" is located can be used as the target sentence. Other situations can be deduced by analogy, and no examples are given one by one here. The above method, by setting the target sentence as the recognition sentence obtained by recognizing audio data, can be applicable to the scenario where the recognition sentence is calibrated before audio search.

[0030] In one implementation scenario, the target sentence is different from the sentence identifier of any first reference sentence, and the first reference sentence is a sentence other than the target sentence. In the above method, setting the target identifier to a sentence identifier different from any reference sentence, and the first reference sentence is a sentence other than the target sentence, can help obtain the complete sentence corresponding to the audio data, and help improve the accuracy of audio search.

[0031] In a specific implementation scenario, taking the audio data "Today is sunny and windy", the audio data "Suitable for outings" and the audio data "Tomorrow is expected to have heavy rain in our city, please make preparations for rain protection" as examples, voice recognition can obtain the recognition sentences "Today is sunny and windy", "Suitable for making friends and going out" and "Tomorrow is expected to have heavy rain in our city, please make preparations for defense". In addition, as mentioned above, in order to highlight "Tomorrow is expected to have heavy rain in our city", "Tomorrow is expected to have heavy rain in our city" and "Please make preparations for defense", element tags are respectively provided. In this case, the text interface may display several texts including: "Today is sunny and windy", "Suitable for making friends and going out", "Tomorrow is expected to have heavy rain in our city" and "Please make preparations for defense". Among them, the sentences "Tomorrow is expected to have heavy rain in our city" and "Please make preparations for defense" are derived from the same audio data, so the sentence identifiers contained in the element tags of the two are also the same. In the case where the target word "defense" is obtained in the manner described above, since the sentence identifier corresponding to the sentence "Please make preparations for defense" where the target word "defense" is located is the same as the sentence identifier corresponding to the sentence "It is expected that there will be heavy rain in our city tomorrow", and in addition, the sentence identifiers corresponding to any other sentence are different from the two, so "It is expected that there will be heavy rain in our city tomorrow, please make preparations for defense" can be used as the target sentence, that is, at this time, the sentence "Today's weather is clear" and the sentence "It is suitable for making friends and going out" can be regarded as the first reference sentence, and the sentence identifier corresponding to either of the two is different from the sentence identifier corresponding to the target sentence. Other situations can be deduced by analogy, and no examples are given here one by one.

[0032] In a specific implementation scenario, the sentence where the target sentence is located can be used as the first candidate sentence, and the second reference sentence with the same sentence identifier as the first candidate sentence is selected as the second candidate sentence, and the second reference sentence is a sentence other than the first candidate sentence, and the first candidate sentence and the second candidate sentence are spliced ​​into the target sentence. Still taking the text interface displaying several texts "Today's weather is clear", "Suitable for making friends and going out", "Tomorrow is expected to have heavy rain in our city" and "Please make preparations for defense" as an example, after obtaining the target word "defense", the sentence "Please make preparations for defense" where the target word "defense" is located can be used as the first candidate sentence, and the three sentences other than the first candidate sentence are respectively used as the second reference sentences. On this basis, the second reference sentence with the same sentence identifier as the first candidate sentence "Tomorrow is expected to have heavy rain in our city" is selected as the second candidate sentence, and the first candidate sentence "Please make preparations for defense" and the second candidate sentence "Tomorrow is expected to have heavy rain in our city" are spliced ​​according to the original order of several texts to obtain the target sentence "Tomorrow is expected to have heavy rain in our city, please make preparations for defense". Other situations can be deduced by analogy, and no examples are given here one by one. The above method takes the sentence containing the target word as the first candidate sentence, selects a second reference sentence with the same sentence identifier as the first candidate sentence as the second candidate sentence, and the second reference sentence is a sentence other than the first candidate sentence, and concatenates the first candidate sentence and the second candidate sentence into the target sentence. This can help obtain the complete sentence corresponding to the audio data and improve the accuracy of audio search.

[0033] In an implementation scenario, the position information of the target word in the target sentence may include a first value representing the starting position and a second value representing the ending position. Taking the audio data "Today's gathering together" as an example, the recognition sentence "Tools in one hall" can be obtained through voice recognition, and the user modifies it to "Today's gathering together" according to business needs, that is, the several sentences displayed on the text interface include "Today's gathering together", after the target word "gathering" is obtained, the target sentence "Today's gathering together" in which it is located can be determined, on this basis, the first value (i.e. 2) used to represent the starting position of the target word in the target sentence and the second value (i.e. 4) used to represent the ending position of the target word in the target sentence can be obtained; or, still taking the audio data "Today's gathering together" as an example, the recognition sentence "Tools in one hall" can be obtained through voice recognition, that is, the several sentences displayed on the text interface include "Tools in one hall", after the target word "tools" is obtained, the target sentence "Tools in one hall" in which it is located can be determined, on this basis, the first value (i.e. 0) used to represent the starting position of the target word in the target sentence and the second value (i.e. 2) used to represent the ending position of the target word in the target sentence can be obtained. The same can be said for other situations, which will not be listed here one by one.

[0034] Step S13: Acquire several groups of audio information corresponding to the target identifier.

[0035] In the embodiment of the present disclosure, each set of audio information includes the recognition words recognized by the audio segment and the first time information of the audio segment. Specifically, the first time information may include the first start time and the first end time of the audio segment in the audio data. Still taking the audio data "Let's get together today" as an example, its recognition sentence may be "Tools in one class", then the element tag of the sentence may be expressed as <ins data-unique="893"> Tools Hall< / ins> ; or, after correction, the recognized sentence can be obtained as the corrected sentence "We gather together today", then the element label of the sentence can be expressed as<insdata-unique="893"> Let's get together today. Regardless of whether the recognition sentence has been corrected or not, several groups of audio information corresponding to the audio data "Let's get together today" can be obtained according to the above target identifier "893": the recognition word "tool" recognized by the audio segment "let's get together today", the first start time and the first end time of the audio segment (for example, it can be expressed as {text:tool,startTime:334770,endTime:335500}), the recognition word "one" recognized by the audio segment "one", the first start time and the first end time of the audio segment (for example, it can be expressed as {text:one,startTime:335510,endTime:335520}), the recognition word "hall" recognized by the audio segment "hall", the first start time and the first end time of the audio segment (for example, it can be expressed as {text:hall,startTime:335530,endTime:335540}), and other situations can be deduced by analogy, and no examples are given here one by one.

[0036] Step S14: Based on the position information, the target sentence and several groups of audio information, the target audio of the target word is obtained.

[0037] In an implementation scenario, when the target sentence is a recognition sentence obtained by audio data recognition, that is, when the recognition sentence has not been corrected by the user, the recognition word matching the target word can be searched in several groups of audio information according to the position information of the target word in the target sentence, and the audio segment corresponding to the searched recognition word can be used as the target audio. Specifically, the first time information of the audio segment corresponding to the searched recognition word can be obtained, and the target audio can be intercepted from the audio data according to the first time information. Still taking the audio data "Today we gather together" as an example, as mentioned above, the position information of the target word "tool" in the target sentence "tools in one hall" includes: a first value 0 representing the start position and a second value 2 representing the end position, then the recognition word "tool" matching the target word "tool" can be directly searched from several groups of audio information according to the first value and the second value (the recognition word is the recognition word in the first group of audio), and startTime:334770 and endTime:335500 in the first group of audio information are directly used as the first time information, and the target audio is intercepted according to the first time information.

[0038] In an implementation scenario, when the target sentence is a corrected sentence after the recognition sentence recognized by the audio data is corrected, that is, when the recognition sentence is corrected by the user, the difference text between the target sentence and the recognition sentence composed of the recognition words in several groups of audio information can be compared, and according to the difference text, the recognition words in at least one group of audio information are replaced with the difference text to identify that the recognition words in several groups of audio information can constitute the target sentence. On this basis, according to the position information of the target word in the target sentence, the recognition words matching the target words can be searched in several groups of audio information, and the audio clip corresponding to the searched recognition words can be used as the target audio. Specifically, the first time information of the audio clip corresponding to the searched recognition word can be obtained, and the target audio can be intercepted from the audio data according to the first time information. Still taking the audio data "Let's get together today" as an example, as mentioned above, the position information of the target word "gather together" in the target sentence "Let's get together today" includes: a first numerical value 2 representing the starting position and a second numerical value 4 representing the ending position. In addition, according to the difference text "gather together today" between the recognition sentence "tools together" composed of recognition words in several groups of audio information and the target sentence "let's get together today", the recognition word "tools" in the first group of audio information is replaced with the difference text "let's get together today", and then the recognition word "let's get together today" matching the target word "gather together" can be searched from several groups of audio information according to the first numerical value and the second numerical value (the recognition word is the recognition word in the first group of audio), and startTime:334770 and endTime:335500 in the first group of audio information are directly used as the first time information, and the target audio is intercepted according to the first time information.

[0039] The above scheme obtains the target word in the text interface, and the text interface displays several sentences, and the several sentences are respectively provided with element tags, and the element tags include sentence identifiers, and the same sentence identifiers represent that the sentences come from the same audio data. On this basis, the target sentence where the target word is located and the position information of the target word in the target sentence are obtained, and the sentence identifier of the target sentence is used as the target identifier, and several groups of audio information corresponding to the target identifier are obtained, and each group of audio information includes the recognized word recognized by the audio segment and the first time information of the audio segment, and then based on the position information, the target sentence and the several groups of audio information, the target audio of the target word is obtained, so the target of the target word can be found in the end. Audio, thereby narrowing the listening range, and because the sentences displayed in the text interface are provided with element tags, compared with setting element tags in the word dimension, the number of element tags can be greatly reduced, which is conducive to reducing the probability of the text interface being stuck or even stuck as much as possible, thereby improving the stability of audio search. In addition, by obtaining several groups of audio information with the same sentence identifier as the target sentence where the target word is located and the position information of the target word in the target sentence, and each group of audio information includes the recognized words recognized by the audio clip and the time information of the audio clip, it can assist in locating the time information corresponding to the target word in the audio data, which is conducive to improving the accuracy of audio search. Therefore, the stability and accuracy of audio search can be improved while narrowing the listening range.

[0040] See also Figure 2 , Figure 2 yes Figure 1 The flowchart of step S14 in the embodiment of FIG. 1 includes the following steps:

[0041] Step S21: concatenate several groups of audio information to obtain a combined sentence.

[0042] In an implementation scenario, as mentioned above, the first time information includes a first start time and a first end time. On this basis, for each group of audio information, the first start time, the recognized words, and the first end time can be combined to obtain the combined words of the audio information, and the combined words of several groups of audio information can be concatenated to obtain a combined sentence. Still taking the audio data "Today we gather together" as an example, for the first group of audio information, the combined word <wsbg=334770>tool< / wsed=335500> can be obtained; for the second group of audio information, the combined word <wsbg=335510>one< / wsed=335520> can be obtained; for the third group of audio information, the combined word <wsbg=335530>hall< / wsed=335540> can be obtained. On this basis, the combined words of the above three groups of audio information can be concatenated to obtain the combined sentence <wsbg=334770>tool< / wsed=335500><wsbg=335510>one< / wsed=335520><wsbg=335530>hall< / wsed=335540>. Other cases can be deduced by analogy and will not be exemplified one by one here.

[0043] In an implementation scenario, as mentioned above, the first time information includes a first start time and a first end time. Different from the foregoing solution, in order to minimize the comparison error as much as possible, for each group of audio information, the preset characters representing the first start time, the recognized words, and the preset characters representing the first end time can be combined to obtain the combined words of the audio information, and the preset characters are all different from each other in pairs, and the combined words of several groups of audio information can be concatenated to obtain a combined sentence. Still taking the audio data "Today we gather together" as an example, for the first group of audio information, the preset character representing the first start time <wsbg=334770> the recognized word "tool" and the preset character representing the first end time < / wsed=335500> can be combined to obtain the combined word " tool ". For the second group of audio information, the preset character representing the first start time <wsbg=335510> the recognized word "one" and the preset character representing the first end time < / wsed=335520> can be combined to obtain the combined word " one ". For the third group of audio information, the preset character representing the first start time <wsbg=335530> the recognized word "hall" and the preset character representing the first end time < / wsed=335540> Splice and get the combined word " Hall On this basis, the combined words of the above three groups of audio information can be spliced ​​to obtain the combined sentence " tool one Hall ". Other situations can be deduced by analogy, and no one is given here for example. In the above method, by setting the first time information to include the first start time and the first end time, and for each group of audio information, combining the preset characters representing the first start time, the recognition words and the preset characters representing the first end time, the combined words of the audio information are obtained, and the preset characters are different from each other, and then the combined words of several groups of audio information are spliced ​​to obtain combined sentences, so that the comparison error can be reduced as much as possible, which is conducive to improving the accuracy of audio search.

[0044] Step S22: Determine the second time information based on the comparison result between the target sentence and the combined sentence and the position information.

[0045] In one implementation scenario, the comparison result may include several groups of comparison information arranged in sequence, and each group of comparison information includes editing operations and difference texts, and according to the arrangement order of the several groups of comparison information, one group of comparison information is selected as the current information, and the editing operation in the current information is performed on the combined sentence based on the difference text in the current information, until the several groups of comparison information are all selected, and the sentence obtained is the target sentence. In the above manner, the comparison result may include several groups of comparison information arranged in sequence, and the editing operation is performed on the combined sentence in sequence according to the several groups of comparison information, so that the target sentence can be restored, which is conducive to improving the accuracy of the comparison result.

[0046] In a specific implementation scenario, still taking the audio data "Let's gather together today" as an example, as mentioned above, its combined sentence is " tool one Hall ", when the target sentence is a recognition sentence obtained by audio data recognition, the target sentence is "Tools in One", then the comparison result can be expressed as:

[0047]

[0048] It should be noted that the text combined with a pair of square brackets (i.e., []) in the above comparison results is a set of comparison information, and the number before the comma in each set of comparison information represents an editing operation. For example, -1 can be used to represent a deletion operation, 0 represents a maintenance operation (i.e., no modification), and 1 represents an addition operation. In addition, among the above several sets of comparison information, by splicing the differential text corresponding to the deletion operation and the differential text corresponding to the maintenance operation, the combined statement can be obtained; while splicing the differential text corresponding to the addition operation and the differential text corresponding to the maintenance operation can obtain the target statement. According to the arrangement order of the above several sets of comparison information, the following operations can be performed on the combined statement in sequence: delete maintain "tool", delete maintain "one", delete maintain "hall", delete After performing the above operations in sequence, the target statement "tool - hall" can be obtained. Other situations can be deduced by analogy, and no further examples will be given here.

[0049] In a specific implementation scenario, still taking the audio data "gather together in the hall today" as an example, as mentioned above, its combined statement is " tool one hall ". In the case where the target statement is modified based on the recognition statement and the recognition statement is obtained by recognizing the audio data, and the target statement is "gather together in the hall today", the comparison result can be expressed as:

[0050]

[0051] It should be noted that the text combined with a pair of square brackets (i.e., []) in the above comparison results is a set of comparison information, and the number before the comma in each set of comparison information represents an editing operation. For example, -1 can be used to represent a deletion operation, 0 represents a maintenance operation (i.e., no modification), and 1 represents an addition operation. In addition, among the above several sets of comparison information, by splicing the differential text corresponding to the deletion operation and the differential text corresponding to the maintenance operation, the combined statement can be obtained; while splicing the differential text corresponding to the addition operation and the differential text corresponding to the maintenance operation can obtain the target statement. According to the arrangement order of the above several sets of comparison information, the following operations can be performed on the combined statement in sequence: delete " tool ", add "gather together today", maintain "one", delete maintain "hall", delete After performing the above operations in sequence, the target statement "gather together in the hall today" can be obtained. Other situations can be deduced by analogy, and no further examples will be given here.

[0052] In one implementation scenario, the second time information may include a second start time, and the position information includes a first value representing the start position, then the comparison information whose editing operation meets the preset conditions may be used as candidate information, and the first reference information may be selected from each candidate information, and the sum of the lengths of the difference texts in the first reference information and each candidate information before the first reference information is not less than the first value, and the first target information may be selected from the comparison information before the first reference information, and the time represented by the preset characters in the first target information may be used as the second start time, and the editing operation in the first target information may be a deletion operation. The above method, by first screening out the comparison information whose editing operation meets the preset conditions as candidate information, and then selecting the first reference information from each candidate information, and the sum of the lengths of the difference texts in the first reference information and each candidate information before the first reference information is not less than the first value, thereby selecting the first target information from the comparison information before the first reference information, and the time represented by the preset characters in the first target information may be used as the second start time, and the editing operation in the first target information may be a deletion operation, can help improve the accuracy of the second start time.

[0053] In a specific implementation scenario, the preset condition may include: the editing operation is a maintaining operation or a adding operation, that is, if the editing operation in the comparison information is a maintaining operation or a adding operation, the comparison information may be used as candidate information.

[0054] In a specific implementation scenario, still taking the audio data "Let's gather together today" as an example, as mentioned above, its combined sentence is " tool one Hall ", in the case where the target sentence is a recognition sentence obtained by audio data recognition, the target sentence is "tools - hall", then the comparison information: [0, tool], [0, one], [0, hall] can be used as candidate information. Since the length of the difference text in the comparison information "[0, tool]" has met the requirement of not less than the first value (i.e., 0), the candidate information "[0, tool]" can be used as the first benchmark information, and the comparison information "[-1, ]" as the first target information, and the preset characters The time "334770" is indicated as the second start time.

[0055] In a specific implementation scenario, still taking the audio data "Let's gather together today" as an example, as mentioned above, its combined sentence is " tool one Hall ", when the target sentence is modified on the basis of the recognition sentence and the recognition sentence is recognized by the audio data, the target sentence is "Let's get together today", then the comparison information: [1, get together today], [0, one], [0, hall] can be used as candidate information. Since the length of the difference text in the candidate information "[1, get together today]" has met the requirement of not less than the first value (i.e. 2), the candidate information "[1, get together today]" can be used as the first benchmark information, and the comparison information "[-1, tool ]" as the first target information, and the preset character " " The time "334770" represented by " is used as the second start time. It should be noted that, if there are multiple preset characters in the first target information, the first preset character representing the first start time in the first target information can be selected, and the time represented by the preset character is used as the second start time.

[0056] In one implementation scenario, the second time information also includes a second end time, and the position information includes a second value representing the end position, then the comparison information whose editing operation meets the preset conditions can be used as candidate information, and the second reference information is selected from each candidate information, and the sum of the lengths of the difference texts in the second reference information and each candidate information after the second reference information is not less than the second value, and the second target information is selected from the comparison information located after the second reference information, and the time represented by the preset characters in the second target information is used as the second end time, and the editing operation in the second target information is a deletion operation. The above method, by first screening out the comparison information whose editing operation meets the preset conditions as candidate information, and then selecting the second reference information from each candidate information, and the sum of the lengths of the difference texts in the second reference information and each candidate information after the second reference information is not less than the second value, thereby selecting the second target information from the comparison information located after the second reference information, and the time represented by the preset characters in the second target information is used as the second end time, and the editing operation in the second target information is a deletion operation, is conducive to improving the accuracy of the second end time.

[0057] In a specific implementation scenario, as described above, the preset condition may include: the editing operation is a maintaining operation or a adding operation, that is, if the editing operation in the comparison information is a maintaining operation or a adding operation, the comparison information may be used as candidate information.

[0058] In a specific implementation scenario, still taking the audio data "Let's gather together today" as an example, as mentioned above, its combined sentence is " tool one Hall ", in the case where the target statement is an identified statement obtained by identifying audio data, and the target statement is "tool one hall", the comparison information: [0, tool], [0, one], [0, hall] can be used as candidate information. Since the candidate information "[0, one]" satisfies the requirement that the sum of the lengths of the different texts in itself and the candidate information "[0, hall]" located after it is not less than the second value (i.e., 2), the candidate information "[0, one]" can be used as the second reference information, and the comparison information "[-1, " as the second target information, and the time "335520" represented by the preset character in it as the second end time. It should be noted that in the case where the second target information contains multiple preset characters, the first preset character representing the first end time in the second target information can be selected, and the time represented by this preset character is used as the second end time.

[0059] In a specific implementation scenario, still taking the audio data "gather together in the hall today" as an example, as mentioned above, its combined statement is " tool one hall ". In the case where the target statement is modified based on the identified statement and the identified statement is obtained by identifying audio data, and the target statement is "gather together in the hall today", the comparison information: [1, gather together today], [0, one], [0, hall] can be used as candidate information. Since the sum of the lengths of the different texts in the candidate information "[1, gather together today]" itself and the candidate information "[0, one]" and the candidate information "[0, hall]" located after it satisfies the requirement of not less than the second value (i.e., 4), the candidate information "[1, gather together today]" can be used as the second reference information, and the second target information "[-1, " is selected from the comparison information after the second reference information, and the time "335520" represented by the preset character in the second target information is used as the second end time. It should be noted that in the case where the second target information contains multiple preset characters, the first preset character representing the first end time in the second target information can be selected, and the time represented by this preset character is used as the second end time.

[0060] In a specific implementation scenario, it should be noted that selecting the second target information from the comparison information after the second reference information helps to leave a margin for the second end time, thereby improving the accuracy of subsequent listening. If there is no need to leave a margin, the second target information can also be selected from the comparison information before the second reference information. Taking the audio data "Today we gather together" as an example, as mentioned above, its combined sentence is " tool one Hall ", in the case where the target sentence is a recognition sentence obtained by audio data recognition, the target sentence is "Tools One", as described above, the second reference information "[0, -]" can be located, and the comparison information "[-1, ]" as the second target information, and the preset characters The time represented is used as the second end time; or, taking the audio data "Let's get together today" as an example, as mentioned above, its combined sentence is " tool one Hall ", when the target sentence is modified based on the recognition sentence and the recognition sentence is recognized by the audio data, the target sentence is "Let's get together today", as described above, the second reference information "[1, let's get together today]" can be located, and the comparison information "[-1, tool ]" as the second target information, and the preset characters The indicated time is used as the second end time. Other situations can be deduced by analogy, and no more examples are given here.

[0061] Step S23: Based on the second time information, obtain the target audio.

[0062] Specifically, the target audio corresponding to the target word can be found based on the second time information. As mentioned above, in the case of leaving a surplus, taking the audio data "today we gather together" as an example, whether the target sentence is a recognition sentence obtained by audio data recognition, or the target sentence is modified based on the recognition sentence and the recognition sentence is obtained by audio data recognition, the target audio corresponding to the target word can be found based on the preset characters. The second start time "334770" and the preset characters The second end time "335520" represented by the audio data is denoted by the first character, the audio segment between the second start time "334770" and the second end time "335520" can be found as the target audio; or, in the case of leaving no surplus, taking the audio data "let's gather together today" as an example, whether the target sentence is a recognition sentence obtained by audio data recognition, or the target sentence is modified on the basis of the recognition sentence and the recognition sentence is obtained by audio data recognition, the target sentence can be obtained with the preset characters. The second start time "334770" and the preset characters If the second end time "335500" is represented by the audio clip, the audio clip between the second start time "334770" and the second end time "335500" can be found as the target audio clip. Other situations can be deduced by analogy, and no more examples are given here.

[0063] The above scheme concatenates several groups of audio information to obtain a combined sentence, determines the second time information based on the comparison result and position information between the target sentence and the combined sentence, and obtains the target audio based on the second time information. Therefore, the audio time of the target word can be located according to the comparison result and position information, which is conducive to improving the accuracy of audio search.

[0064] In some disclosed embodiments, please refer to Figure 3 , Figure 3 1 is a schematic diagram of the process of audio search in an embodiment of the present application. Figure 3 As shown, the target word in the text interface can be obtained first, and then the target sentence where the target word is located and the position information of the target word in the target sentence can be obtained. On this basis, the sentence identifier of the target sentence is used as the target identifier, and several groups of audio information corresponding to the target identifier are obtained, and several groups of audio information are spliced ​​to obtain a combined sentence, and then the target sentence and the combined sentence are compared to obtain a comparison result, and then based on the comparison result and the position information, the second time information is determined, and based on the second time information, the target audio of the target word is obtained. The specific process can refer to the relevant description in the aforementioned public embodiment, which will not be repeated here. Through the above method, the sentence can be wrapped with an element tag in the text interface. Compared with wrapping words with element tags, the element tags in the text interface can be greatly reduced, thereby reducing the pressure on the text interface, which is conducive to improving the response speed of the text interface and improving the stability of audio search. Compared with the method of searching for audio using only the target word, by comparing the target sentence and the combined sentence, it can be conducive to reducing the search error and improving the accuracy of audio search.

[0065] See also Figure 4 , Figure 4It is a schematic diagram of the framework of an embodiment of an audio search device 40 of the present application. The audio search device 40 includes: a target word acquisition module 41, a target word analysis module 42, an audio information acquisition module 43 and a target audio acquisition module 44. The target word acquisition module 41 is used to acquire the target word in the text interface; wherein the text interface displays a plurality of sentences, and the plurality of sentences are respectively provided with element tags, and the element tags include sentence identifiers, and the same sentence identifiers represent that the sentences are derived from the same audio data; the target word analysis module 42 is used to acquire the target sentence where the target word is located and the position information of the target word in the target sentence, and use the sentence identifier of the target sentence as the target identifier; the audio information acquisition module 43 is used to acquire a plurality of groups of audio information corresponding to the target identifier; wherein each group of audio information includes the recognition word recognized by the audio segment and the first time information of the audio segment; the target audio acquisition module 44 is used to obtain the target audio of the target word based on the position information, the target sentence and a plurality of groups of audio information.

[0066] The above scheme obtains the target word in the text interface, and the text interface displays several sentences, and the several sentences are respectively provided with element tags, and the element tags include sentence identifiers, and the same sentence identifiers represent that the sentences come from the same audio data. On this basis, the target sentence where the target word is located and the position information of the target word in the target sentence are obtained, and the sentence identifier of the target sentence is used as the target identifier, and several groups of audio information corresponding to the target identifier are obtained, and each group of audio information includes the recognized word recognized by the audio segment and the first time information of the audio segment, and then based on the position information, the target sentence and the several groups of audio information, the target audio of the target word is obtained, so the target of the target word can be found in the end. Audio, thereby narrowing the listening range, and because the sentences displayed in the text interface are provided with element tags, compared with setting element tags in the word dimension, the number of element tags can be greatly reduced, which is conducive to reducing the probability of the text interface being stuck or even stuck as much as possible, thereby improving the stability of audio search. In addition, by obtaining several groups of audio information with the same sentence identifier as the target sentence where the target word is located and the position information of the target word in the target sentence, and each group of audio information includes the recognized words recognized by the audio clip and the time information of the audio clip, it can assist in locating the time information corresponding to the target word in the audio data, which is conducive to improving the accuracy of audio search. Therefore, the stability and accuracy of audio search can be improved while narrowing the listening range.

[0067] In some disclosed embodiments, the target audio acquisition module 44 includes an audio information splicing submodule, which is used to splice several groups of audio information to obtain a combined sentence; the target audio acquisition module 44 includes a second time determination submodule, which is used to determine the second time information based on the comparison result and position information between the target sentence and the combined sentence; the target audio acquisition module 44 includes a target audio acquisition submodule, which is used to acquire the target audio based on the second time information.

[0068] Therefore, several groups of audio information are spliced ​​to obtain a combined sentence, and the second time information is determined based on the comparison result and position information between the target sentence and the combined sentence. Based on the second time information, the target audio is obtained. Therefore, the audio time of the target word can be located according to the comparison result and position information, which is conducive to improving the accuracy of audio search.

[0069] In some disclosed embodiments, the first time information includes a first start time and a first end time; the audio information splicing submodule includes a combining unit for combining, for each group of audio information, preset characters representing the first start time, a recognition word, and a preset character representing the first end time to obtain combined words of the audio information; wherein the preset characters are different from each other; the audio information splicing submodule includes a splicing unit for splicing the combined words of several groups of audio information to obtain combined sentences.

[0070] Therefore, by setting the first time information to include the first start time and the first end time, and for each group of audio information, combining the preset characters representing the first start time, the recognition words and the preset characters representing the first end time, the combined words of the audio information are obtained, and the preset characters are different from each other, and then the combined words of several groups of audio information are spliced ​​to obtain combined sentences, so that the comparison error can be reduced as much as possible, which is conducive to improving the accuracy of audio search.

[0071] In some disclosed embodiments, the comparison results include several groups of comparison information arranged in sequence, and each group of comparison information includes editing operations and difference texts; wherein, according to the arrangement order of the several groups of comparison information, one group of comparison information is selected as the current information, and the editing operation in the current information is performed on the combined sentence based on the difference text in the current information, until all the groups of comparison information are selected, and the sentence obtained is the target sentence.

[0072] Therefore, the comparison result may include several groups of comparison information arranged in sequence, and the editing operation is performed on the combined sentence in sequence according to the several groups of comparison information, so that the target sentence can be restored, which is conducive to improving the accuracy of the comparison result.

[0073] In some disclosed embodiments, the second time information includes a second start time, and the position information includes a first numerical value representing the start position; the second time determination submodule includes a first screening unit, which is used to take the comparison information whose editing operation meets preset conditions as candidate information; the second time determination submodule includes a first reference unit, which is used to select the first reference information from each candidate information; wherein the sum of the lengths of the first reference information and the difference texts in each candidate information before the first reference information is not less than the first numerical value; the second time determination submodule includes a first determination unit, which is used to select the first target information from the comparison information located before the first reference information, and take the time represented by preset characters in the first target information as the second start time; wherein the editing operation in the first target information is a deletion operation.

[0074] Therefore, by first screening out the comparison information whose editing operation meets the preset conditions as candidate information, and then selecting the first benchmark information from each candidate information, and the sum of the lengths of the difference texts in the first benchmark information and each candidate information before the first benchmark information is not less than the first value, thereby selecting the first target information from the comparison information before the first benchmark information, and taking the time represented by the preset characters in the first target information as the second start time, and the editing operation in the first target information is a deletion operation, it can help to improve the accuracy of the second start time.

[0075] In some disclosed embodiments, the second time information includes a second end time, and the position information includes a second numerical value representing the end position; the second time determination submodule includes a second screening unit, which is used to take the comparison information whose editing operation meets preset conditions as candidate information; the second time determination submodule includes a second reference unit, which is used to select the second reference information from each candidate information; wherein the sum of the lengths of the second reference information and the difference texts in each candidate information after the second reference information is not less than the second numerical value; the second time determination submodule includes a second determination unit, which is used to select the second target information from the comparison information located after the second reference information, and take the time represented by preset characters in the second target information as the second end time; wherein the editing operation in the second target information is a deletion operation.

[0076] Therefore, by first screening out the comparison information whose editing operation meets the preset conditions as candidate information, and then selecting the second benchmark information from each candidate information, and the sum of the lengths of the second benchmark information and the difference texts in each candidate information after the second benchmark information is not less than the second value, the second target information is selected from the comparison information after the second benchmark information, and the time represented by the preset characters in the second target information is used as the second end time, and the editing operation in the second target information is a deletion operation, which is conducive to improving the accuracy of the second end time.

[0077] In some disclosed embodiments, the target identifier is different from the sentence identifier of any first reference sentence, and the first reference sentence is a sentence other than the target sentence.

[0078] Therefore, setting the target identifier to a sentence identifier different from any reference sentence, and the first reference sentence being a sentence other than the target sentence, can help obtain the complete sentence corresponding to the audio data and help improve the accuracy of audio search.

[0079] In some disclosed embodiments, the target word analysis module 42 includes a candidate sentence screening submodule, which is used to take the sentence containing the target word as the first candidate sentence, and select a second reference sentence having the same sentence identifier as the first candidate sentence as the second candidate sentence; wherein the second reference sentence is a sentence other than the first candidate sentence; the target word analysis module 42 includes a candidate sentence splicing submodule, which is used to splice the first candidate sentence and the second candidate sentence into a target sentence.

[0080] Therefore, taking the sentence containing the target word as the first candidate sentence, selecting a second reference sentence with the same sentence identifier as the first candidate sentence as the second candidate sentence, and the second reference sentence being a sentence other than the first candidate sentence, and concatenating the first candidate sentence and the second candidate sentence into the target sentence can help obtain the complete sentence corresponding to the audio data and help improve the accuracy of audio search.

[0081] In some disclosed embodiments, the target sentence is a recognition sentence obtained by recognizing audio data; or, the target sentence is modified based on the recognition sentence, and the recognition sentence is obtained by recognizing audio data.

[0082] Therefore, by setting the target sentence to a recognition sentence obtained by recognizing audio data, it can be applicable to scenarios where audio search is performed without calibrating the recognition sentence, and by setting the target sentence to a recognition sentence obtained by recognizing audio data, it can be applicable to scenarios where audio search is performed after the recognition sentence is calibrated, which is beneficial to improving the scope of application of audio search.

[0083] See also Figure 5 , Figure 5It is a schematic diagram of the framework of an embodiment of an electronic device 50 of the present application. The electronic device 50 includes a memory 51 and a processor 52 coupled to each other, the memory 51 stores program instructions, and the processor 52 is used to execute the program instructions to implement the steps in any of the above-mentioned audio search method embodiments. Specifically, the electronic device 50 may include but is not limited to: a desktop computer, a laptop computer, a server, a mobile phone, a tablet computer, etc., which are not limited here. In addition, the electronic device 50 may also include a human-computer interaction circuit, and the human-computer interaction circuit is used to display a text interface, and as described in the aforementioned disclosed embodiment, the text interface displays a number of sentences, and the several sentences are respectively provided with element tags, and the element tags include sentence identifiers, and the same sentence identifiers represent that the sentences are derived from the same audio data, so that the human-computer interaction circuit can interact with the user, and then the target word in the text interface can be obtained, and according to the steps in any of the above-mentioned audio search method embodiments, the target audio of the target word can be found. For details, please refer to the aforementioned disclosed embodiment, which will not be repeated here.

[0084] Specifically, the processor 52 is used to control itself and the memory 51 to implement the steps in any of the above-mentioned audio search method embodiments. The processor 52 can also be called a CPU (Central Processing Unit). The processor 52 may be an integrated circuit chip with signal processing capabilities. The processor 52 can also be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field-programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 52 can be implemented by an integrated circuit chip.

[0085] The above scheme can eventually find the target audio of the target word, so as to narrow the listening range. Since the sentences displayed in the text interface are provided with element tags, compared with setting element tags in the word dimension, the number of element tags can be greatly reduced, which is conducive to reducing the probability of the text interface being stuck or even stuck as much as possible, thereby improving the stability of audio search. In addition, by obtaining several groups of audio information with the same sentence identifier as the target sentence where the target word is located and the position information of the target word in the target sentence, and each group of audio information includes the time information of the recognized words and the audio segment recognized by the audio segment, it can assist in locating the time information corresponding to the target word in the audio data, which is conducive to improving the accuracy of audio search. Therefore, the stability and accuracy of audio search can be improved while narrowing the listening range.

[0086] See also Figure 6 , Figure 6 1 is a schematic diagram of a framework of an embodiment of a computer-readable storage medium 60 of the present application. The computer-readable storage medium 60 stores program instructions 61 that can be executed by a processor, and the program instructions 61 are used to implement the steps in any of the above-mentioned audio search method embodiments.

[0087] The above scheme can eventually find the target audio of the target word, so as to narrow the listening range. Since the sentences displayed in the text interface are provided with element tags, compared with setting element tags in the word dimension, the number of element tags can be greatly reduced, which is conducive to reducing the probability of the text interface being stuck or even stuck as much as possible, thereby improving the stability of audio search. In addition, by obtaining several groups of audio information with the same sentence identifier as the target sentence where the target word is located and the position information of the target word in the target sentence, and each group of audio information includes the time information of the recognized words and the audio segment recognized by the audio segment, it can assist in locating the time information corresponding to the target word in the audio data, which is conducive to improving the accuracy of audio search. Therefore, the stability and accuracy of audio search can be improved while narrowing the listening range.

[0088] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0089] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0090] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0091] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0092] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0093] If the integrated unit 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 technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

Claims

1. An audio search method, characterized in that: include: Acquire a target word in a text interface; wherein the text interface displays a plurality of sentences, each of which is provided with an element tag, wherein the element tag includes a sentence identifier, and the same sentence identifier indicates that the sentences are derived from the same audio data; Acquire the target sentence where the target word is located and the position information of the target word in the target sentence, and use the sentence identifier of the target sentence as the target identifier; Acquire a plurality of groups of audio information corresponding to the target identifier; wherein each group of the audio information includes a recognition word recognized by the audio segment and first time information of the audio segment; Based on the position information, the target sentence and the plurality of groups of audio information, obtaining the target audio of the target word; Wherein, obtaining the target audio of the target word based on the position information, the target sentence and the plurality of groups of audio information includes: splicing several groups of the audio information to obtain a combined sentence; Determining second time information based on a comparison result between the target sentence and the combined sentence and the position information; Based on the second time information, the target audio is acquired.

2. The method according to claim 1, characterized in that The first time information includes a first start time and a first end time; and the splicing of the plurality of groups of the audio information to obtain a combined sentence includes: For each group of the audio information, the preset characters representing the first start time, the recognition words and the preset characters representing the first end time are combined to obtain a combined word of the audio information; wherein the preset characters are different from each other; The combined words of the plurality of groups of audio information are concatenated to obtain the combined sentence.

3. The method according to claim 1, characterized in that The comparison result includes a plurality of groups of comparison information arranged in sequence, and each group of comparison information includes editing operations and difference texts; Among them, according to the arrangement order of the several groups of comparison information, one group of the comparison information is selected as the current information, and the editing operation in the current information is performed on the combined sentence based on the difference text in the current information, until all the several groups of comparison information are selected, the sentence obtained is the target sentence.

4. The method according to claim 3, characterized in that The second time information includes a second start time, and the position information includes a first value representing a start position; and determining the second time information based on a comparison result between the target sentence and the combined sentence and the position information includes: The comparison information whose editing operation meets the preset conditions is used as candidate information; Selecting first reference information from each of the candidate information; wherein the sum of the lengths of the first reference information and the difference texts in each of the candidate information before the first reference information is not less than the first value; The first target information is selected from the comparison information located before the first reference information, and the time represented by the preset characters in the first target information is used as the second start time; wherein the editing operation in the first target information is a deletion operation.

5. The method according to claim 3, characterized in that: The second time information includes a second end time, and the position information includes a second value representing the end position; the second time information is determined based on the comparison result between the target sentence and the combined sentence and the position information, including: The comparison information whose editing operation meets the preset conditions is used as candidate information; Selecting second reference information from each of the candidate information; wherein the sum of the lengths of the second reference information and the difference texts in each of the candidate information after the second reference information is not less than the second value; Select the second target information from the comparison information after the second reference information, and use the time represented by the preset characters in the second target information as the second end time; wherein the editing operation in the second target information is a deletion operation.

6. The method according to claim 1, characterized in that The target identifier is different from the sentence identifier of any first reference sentence, and the first reference sentence is the sentence other than the target sentence.

7. The method according to claim 6, characterized in that The step of obtaining the target sentence where the target word is located includes: The sentence containing the target word is taken as a first candidate sentence, and a second reference sentence having the same sentence identifier as the first candidate sentence is selected as a second candidate sentence; wherein the second reference sentence is a sentence other than the first candidate sentence; The first candidate sentence and the second candidate sentence are concatenated into the target sentence.

8. The method according to claim 1, characterized in that The target sentence is a recognition sentence obtained by recognizing the audio data; Alternatively, the target sentence is modified based on a recognition sentence, and the recognition sentence is recognized from the audio data.

9. An audio search device, characterized in that: include: A target word acquisition module is used to acquire a target word in a text interface; wherein the text interface displays a plurality of sentences, each of which is provided with an element tag, wherein the element tag includes a sentence identifier, and the same sentence identifier indicates that the sentences are derived from the same audio data; A target word analysis module, used to obtain the target sentence where the target word is located and the position information of the target word in the target sentence, and use the sentence identifier of the target sentence as the target identifier; An audio information acquisition module, used to acquire a plurality of groups of audio information corresponding to the target identifier; wherein each group of the audio information includes a recognition word recognized by the audio segment and the first time information of the audio segment; A target audio acquisition module is used to obtain the target audio of the target word based on the position information, the target sentence and the several groups of audio information, and the target audio acquisition module includes an audio information splicing submodule, which is used to splice several groups of the audio information to obtain a combined sentence; the target audio acquisition module includes a second time determination submodule, which is used to determine the second time information based on the comparison result between the target sentence and the combined sentence and the position information; the target audio acquisition module includes a target audio acquisition submodule, which is used to obtain the target audio based on the second time information.

10. An electronic device, characterized in that: It comprises a memory and a processor coupled to each other, wherein the memory stores program instructions, and the processor is used to execute the program instructions to implement the audio search method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: Program instructions that can be executed by a processor are stored, and the program instructions are used to implement the audio search method according to any one of claims 1 to 8.