Method, device, electronic device and storage medium for determining repeated audio segments
By acquiring voice and text information from a voice acquisition device, and identifying repeated recording segments based on the start and end times of the voice and text similarity, the problem of low accuracy in manual recognition is solved, and more efficient recognition of repeated recording segments is achieved.
Patent Information
- Application Number
- CN202310545161.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-15
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-05-15
AI Technical Summary
Existing technologies that rely on manual methods to extract repeated audio segments have low accuracy and lack effective solutions.
By acquiring voice and text information from each voice acquisition device in the same store, the target text segment with the lowest similarity is selected based on the start and end times of the voice and the text content. If the similarity is less than a preset threshold, it is treated as a repeated recording segment.
It improves the accuracy and efficiency of identifying repeated recording segments, reduces the cost of manual monitoring, and decreases computational load and resource consumption.
Smart Images

Figure CN116564282B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of deep learning technology, and in particular to a method, apparatus, electronic device, and storage medium for determining repeated audio recording segments. Background Technology
[0002] With the trend of digital office work, voice acquisition devices are also gradually realizing the digitalization of offline office scenarios (such as supermarket sales and business handling scenarios in business halls). This involves collecting voice data through multiple voice acquisition devices, listening to and marking repeated recording segments, and then using AI technology to achieve text conversion, information processing, and business data extraction.
[0003] Currently, the extraction of duplicate recording segments is done manually, that is, data specialists listen to the voice data collected by multiple voice acquisition devices and mark the duplicate recording segments.
[0004] There is currently no good solution to the problem of low accuracy in manually extracting repeated audio segments. Summary of the Invention
[0005] The purpose of this application is to provide a method, apparatus, electronic device, and storage medium for determining repeated audio recording segments, thereby solving the problem of low accuracy in manually extracting repeated audio recording segments. The specific technical solution is as follows:
[0006] In a first aspect, a method for determining repeated audio recording segments is provided, the method comprising:
[0007] Acquire the voice text information of each voice acquisition device in the same store, wherein the voice text information includes the voice text corresponding to each voice and the start and end times of the voice;
[0008] Based on the start and end times of the speech, multiple pairs of candidate text segments that meet preset conditions are selected from multiple speech texts. Each pair of candidate text segments includes speech texts from two speech acquisition devices, and each candidate text segment includes at least one speech text from each speech acquisition device.
[0009] Select the target text segment with the lowest text content similarity from the candidate text segments;
[0010] If the similarity of the target text segment is less than a preset threshold, the recording corresponding to the target text segment will be regarded as a duplicate recording segment.
[0011] Optionally, selecting multiple pairs of candidate text segments that meet preset conditions from multiple speech texts based on the start and end times of the speech includes:
[0012] From the starting position of the speech text of the two speech acquisition devices, the initial speech text with the difference in the start time of the speech within the first time range is taken as the candidate text segment;
[0013] Starting with each subsequent speech text, perform the following operation: If the difference in the end times of speech texts belonging to the same level in two speech acquisition devices is within the second duration range, then the speech text from the initial speech text to the current speech text is considered as a candidate text segment.
[0014] The time limit continues until the difference between the end times of the current speech texts of the two speech acquisition devices exceeds the second duration range, or the duration of the current candidate text segment exceeds the preset duration threshold.
[0015] Optionally, before selecting the target text segment with the lowest text content similarity from the candidate text segments, the method further includes:
[0016] Determine the text edit distance between the two text segments in each pair of candidate text segments, where each text segment corresponds to a voice acquisition device;
[0017] Determine the text length and value of two text segments among the candidate text segments;
[0018] The quotient of the text edit distance and the length sum is used as the text content similarity of the candidate text fragments.
[0019] Optionally, obtaining the voice and text information of each voice acquisition device in the same store includes:
[0020] The voice collected by each voice collection device in each store is recognized as voice text;
[0021] Determine the attributes of each voice text, wherein the attributes include the store to which the voice text belongs, the device to which it belongs, the text content, the start time of the voice, and the end time of the voice;
[0022] Acquire text data streams from the same voice acquisition device in the same store;
[0023] The speech text in the text data stream is sorted according to the start time of the speech.
[0024] Optionally, acquiring text data streams from the same voice acquisition device within the same store includes:
[0025] The voice texts are grouped according to the store they belong to, with each group of voice texts corresponding to the same store.
[0026] The speech text in the same group is divided into multiple data streams according to the device number, with each data stream corresponding to a speech acquisition device.
[0027] Optionally, after selecting multiple pairs of candidate text segments that meet preset conditions from the multiple spoken texts, the method further includes:
[0028] Starting from the next voice text after the last candidate text segment, a new candidate text segment is selected until all voice texts from the voice acquisition device have been traversed.
[0029] Optionally, after treating the recording corresponding to the target text segment as a repeated recording segment, the method further includes:
[0030] Identify duplicate recording segments between any two voice acquisition devices in the same store;
[0031] Merge the same repeated audio segments.
[0032] Secondly, an apparatus for determining repeated audio recording segments is provided, the apparatus comprising:
[0033] The acquisition module is used to acquire the voice text information of each voice acquisition device in the same store, wherein the voice text information includes the voice text corresponding to each voice and the start and end times of the voice;
[0034] The first selection module is used to select multiple pairs of candidate text segments that meet preset conditions from multiple voice texts according to the start and end times of the voice. Each pair of candidate text segments includes voice texts from two voice acquisition devices, and the candidate text segments include at least one voice text from each voice acquisition device.
[0035] The second selection module is used to select the target text segment with the lowest text content similarity from the candidate text segments;
[0036] As a module, if the similarity of the target text segment is less than a preset threshold, the recording corresponding to the target text segment is treated as a repeated recording segment.
[0037] Thirdly, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
[0038] Memory, used to store computer programs;
[0039] A processor, when executing a program stored in memory, implements any of the steps of the method for determining repeated recording segments.
[0040] Fourthly, a computer-readable storage medium is provided, wherein a computer program is stored therein, and when executed by a processor, the computer program implements any of the steps of the method for determining repeated recording segments.
[0041] Beneficial effects of the embodiments in this application:
[0042] This application provides a method for identifying duplicate audio recording segments, relating to natural language processing in the field of deep learning technology. This application acquires the voice-text information of each voice acquisition device in the same store, and then selects the target text segment with the lowest similarity based on the start and end times of the voice recording and the text content. If the similarity of the target text segment is less than a preset threshold, the recording corresponding to the target text segment is considered a duplicate audio recording segment. This application identifies duplicate audio recording segments among multiple voice acquisition devices based on text similarity, improving the accuracy of identification compared to the manual identification of duplicate audio recording segments in the prior art.
[0043] Of course, implementing any product or method of this application does not necessarily require achieving all of the above advantages at the same time. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0045] Figure 1 A schematic diagram of the hardware environment for a method of determining repeated recording segments provided in an embodiment of this application;
[0046] Figure 2 A flowchart illustrating a method for determining repeated audio recording segments provided in this application embodiment;
[0047] Figure 3 A flowchart illustrating a method for determining repeated audio recording segments provided in this application embodiment;
[0048] Figure 4 A schematic diagram of the structure of an apparatus for determining repeated audio recording segments provided in an embodiment of this application;
[0049] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0050] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0051] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustration and has no specific meaning in itself. Therefore, "module" and "part" may be used interchangeably.
[0052] To address the problems mentioned in the background art, according to one aspect of the embodiments of this application, an embodiment of a method for determining repeated audio recording segments is provided.
[0053] Optionally, in the embodiments of this application, the method for determining repeated recording segments described above can be applied to, for example, Figure 1 The hardware environment shown consists of a voice acquisition device 101 and a server 103. Figure 1 As shown, server 103 is connected to voice acquisition device 101 via a network. Database 105 can be set up on the server or independently of the server to provide data storage services for server 103. The network mentioned above includes, but is not limited to, wide area network, metropolitan area network or local area network.
[0054] One method for determining repeated audio segments in this application embodiment can be executed by server 103 to improve the accuracy of extracting repeated audio segments.
[0055] The method for determining repeated audio segments provided in this application will be described in detail below with reference to specific embodiments, such as... Figure 2 As shown, the specific steps are as follows:
[0056] Step 201: Obtain the voice and text information of each voice acquisition device in the same store.
[0057] The voice-text information includes the voice-text corresponding to each voice message and the start and end times of the voice message.
[0058] In this embodiment, the server collects voice data from offline office scenarios (such as supermarket sales scenarios, business hall service scenarios, etc.) through hardware devices equipped with microphones or microphone arrays, and records information such as device number, time, and store, and saves it to the processing server. The hardware device is one with recording functionality.
[0059] The server groups all voice data by store, obtaining the voice text information of each voice acquisition device in the same store, namely the voice text, voice start time, and voice end time corresponding to each voice.
[0060] Step 202: Based on the start and end times of the speech, select multiple pairs of candidate text segments that meet the preset conditions from multiple speech texts.
[0061] Each pair of candidate text segments includes speech text from two speech acquisition devices, and each candidate text segment includes at least one speech text from each speech acquisition device.
[0062] In this embodiment of the application, the server selects voice data from any two voice acquisition devices, and selects multiple pairs of candidate text segments that meet preset conditions based on the start time and end time of each voice message. Each pair of candidate text segments includes voice text from the two voice acquisition devices, and the candidate text segment includes one or more voice texts from each voice acquisition device.
[0063] Step 203: Select the target text segment with the lowest text content similarity from the candidate text segments.
[0064] In this embodiment of the application, since the server selects multiple pairs of candidate text segments, and each pair of candidate text segments includes speech texts from two speech acquisition devices, the text similarity between the two speech texts in each pair of candidate text segments can be calculated, and then the candidate text segment with the smallest similarity can be selected as the target text segment.
[0065] Step 204: If the similarity of the target text segment is less than the preset threshold, the recording corresponding to the target text segment is regarded as a duplicate recording segment.
[0066] In this embodiment of the application, if the similarity between two speech texts in a target text segment is less than a preset threshold, it indicates that the speech acquisition devices corresponding to the two speech texts acquired the same speech segment, and the recording corresponding to the target text segment is considered a duplicate recording segment. For example, the preset threshold is 0.2.
[0067] In this application, voice and text information from each voice acquisition device in the same store is obtained. Candidate text segments are then determined based on the start and end times of the voice recordings. The target text segment with the lowest similarity is selected based on the text content. If the similarity of the target text segment is less than a preset threshold, the recording corresponding to the target text segment is considered a duplicate recording segment. This application identifies duplicate recording segments among multiple voice acquisition devices based on text similarity. Compared to the prior art's manual identification of duplicate recording segments, this improves recognition accuracy and efficiency while reducing the cost of manual monitoring.
[0068] Furthermore, existing technologies can extract repeated recordings based on voiceprint recognition. Specifically, this involves identifying the speaker of the corresponding sound source based on registered voiceprint information, and then, by combining this with time data, finding the repeated recordings within multiple recording device files. In practical applications, while the voiceprint information of store employees can be registered in advance, the requirement to register customer voiceprints in advance is difficult to meet. This application, however, eliminates the need for prior registration of anyone's voice, and can still extract repeated customer recordings.
[0069] Existing technologies can also extract duplicate recordings based on voiceprint clustering. Specifically, this involves separating the speaker from the speech information collected by all devices according to time segments, and then extracting the voiceprints of each independent speech segment (i.e., the speech of a single person) for clustering. Voiceprints in the same cluster are considered to be the speech of the same speaker. If they appear in speech collected by different devices at the same time, they are considered duplicate recording segments. This approach circumvents the limitations of voiceprint registration, but speaker separation and voiceprint clustering are computationally intensive and resource-intensive in practical applications. Compared to speaker separation and voiceprint clustering, this application only requires the extraction of candidate text segments and text similarity calculation, resulting in less computation, less resource consumption, and reduced costs.
[0070] As an optional implementation, selecting multiple pairs of candidate text segments that meet preset conditions from multiple voice texts based on the start and end times of the voices includes: starting from the beginning positions of the voice texts from the two voice acquisition devices, selecting the initial voice text whose start time difference is within a first duration range as a candidate text segment; starting from each voice text after the initial voice text, performing the following operation: if the end time difference of voice texts belonging to the same level in the two voice acquisition devices is within a second duration range, then selecting the initial voice text to the current voice text as a candidate text segment, until the end time difference of the current voice texts from the two voice acquisition devices exceeds the second duration range, or the segment duration of the current candidate text segment exceeds a preset duration threshold.
[0071] Step 1: For any two voice acquisition devices, starting from the beginning position of the voice text, find the initial voice text whose voice start time difference is within the first duration range, and then use this initial voice text as a candidate text segment.
[0072] For example, if text1-n1 and text2-m1 come from voice acquisition device 1 and voice acquisition device 2 respectively, and the start time of the corresponding voice texts differs from the first duration range (e.g., 30ms), then the two voice texts constitute candidate text segments as initial voice texts.
[0073] If the difference between the start times of the speech texts corresponding to text1-n1 and text2-m1 exceeds the first duration range (e.g., 30ms), then the difference between the start times of text1-n2 and text2-m2 is compared. If the difference does not exceed the first duration range (e.g., 30ms), then text1-n2 and text2-m2 are used as the initial speech texts to form candidate text segments.
[0074] Step 2: Starting from the second speech text after the initial speech text, perform the following operation: If the difference in the end time of speech texts belonging to the same level in the two speech acquisition devices is within the second duration, it indicates that the start time of the initial speech text is close, and the end time of the current speech text is close. Therefore, it may be repeated speech text, and the initial speech text to the current speech text is considered as candidate text segments. Here, "same level speech text" refers to speech texts that are in the same position in the text data stream, both being the nth data segment.
[0075] If the previous voice text is a candidate text segment, then the operation of step 2 is repeated for the next voice text until the difference between the end times of the current voice texts of the two voice acquisition devices exceeds the second duration range (the difference between the end times of the texts is too large), or the duration of the current candidate text segment exceeds the preset duration threshold (the text segment is too long).
[0076] In this way, among the candidate text segments, except for the initial speech text which has a small difference in the start time of the speech, the other corresponding speech texts have a small difference in the end time of the speech, so they may be repeated speech.
[0077] For example, if text1-n1 and text2-m1 are the initial speech texts, and subsequent speech texts text1-n2 and text2-m2 are added, if the end time of the speech of text1-n2 and text2-m2 does not exceed the second duration range (e.g., 32ms), then (text1-n1~n2, text2-m1~m2) will be used as candidate text segments.
[0078] Continue adding subsequent audio texts text1-n3 and text2-m3. If the end time of the audio in text1-n3 and text2-m3 does not exceed the second duration range (e.g., 32ms), then (text1-n1~n3, text2-m1~m3) will be used as candidate text segments.
[0079] As an optional implementation, after selecting multiple pairs of candidate text segments that meet preset conditions from multiple voice texts, the method further includes: starting from the next voice text segment after the last candidate text segment, selecting new candidate text segments until all voice texts of the voice acquisition device have been traversed.
[0080] After identifying all candidate text segments, if the data stream from the voice acquisition device has not ended (i.e., there are still unsearched voice text segments), then the process continues to select new candidate text segments, starting from the next voice text segment after the last candidate text segment. This process is repeated until all voice text segments from the voice acquisition device have been traversed.
[0081] As an optional implementation, after identifying the recording corresponding to the target text segment as a repeated recording segment, the method further includes: identifying repeated recording segments between any two voice acquisition devices in the same store; and merging the same repeated recording segments.
[0082] If there are repeated segments {text1-n1~n5, text2-m1~m5} between voice acquisition device 1 and voice acquisition device 2, and repeated segments {text1-n1~n5, text3-x1~x5} between voice acquisition device 1 and voice acquisition device 3, then there are repeated recording segments between voice acquisition device 1, voice acquisition device 2, and voice acquisition device 3, which are merged into {text1-n1~n5, text2-m1~m5, text3-x1~x5}.
[0083] If there are repeated segments {text1-n1~n4, text2-m1~m4} between voice acquisition device 1 and voice acquisition device 2, and repeated segments {text1-m2~m5, text2-x2~x5} between voice acquisition device 2 and voice acquisition device 3, then the repeated recording segments between voice acquisition device 1, voice acquisition device 2, and voice acquisition device 3 are merged into {text1-n2~n4, text2-m2~m4, text3-x2~x4}. The repeated recording segments between voice acquisition device 1 and voice acquisition device 2 are merged into {text1-n1~n4, text2-m1~m4}. The repeated recording segments between voice acquisition device 2 are merged into {text1-m2~m5, text2-x2~x5}.
[0084] As an optional implementation, before selecting the target text segment with the lowest text content similarity from the candidate text segments, the method further includes: determining the text edit distance between two text segments in each pair of candidate text segments, wherein each text segment corresponds to a voice acquisition device; determining the text length and value of two text segments in the candidate text segments; and using the quotient of the text edit distance and the length and value as the text content similarity of the candidate text segments.
[0085] The server first determines the text edit distance between two corresponding text segments from two voice acquisition devices. The edit distance is mainly used to compare the similarity of two strings. The edit distance refers to the minimum number of editing operations required to transform one string into the other. The larger the distance, the more different they are. Then, the server determines the text length and value of two text segments in the candidate text segments. Finally, the quotient of the text edit distance and the length and value is used as the text content similarity of the candidate text segments.
[0086] The formula for calculating text content similarity is:
[0087] Text similarity = Text edit distance / (Length of text 1 + Length of text 2)
[0088] As an optional implementation, obtaining the voice-text information of each voice acquisition device in the same store includes: recognizing the voice collected by each voice acquisition device in each store as voice-text; determining the attributes of each voice-text, wherein the attributes include the store to which the voice-text belongs, the device to which it belongs, the text content, the start time of the voice, and the end time of the voice; obtaining the text data stream of the same voice acquisition device in the same store; and sorting the voice-text in the text data stream according to the start time of the voice.
[0089] The server performs speech recognition on the voice data collected from each device in each store, outputs the corresponding speech text, and presents it as a sentence. Then, it determines the attributes of each speech text. That is, the speech recognition result is a multi-line content, each line containing the store, the device, the text content, the start time of the sentence, and the end time of the speech.
[0090] All voice data are grouped by store, with each group of voice text corresponding to the same store; the data in the same group is divided into multiple data streams by device number, meaning data from the same acquisition device are in the same data stream; each data item in the data stream is sorted by the corresponding time, with the earlier the start time of the sentence, the earlier its position in the sequence; the text content of each data item is standardized, such as removing extra spaces and converting character case.
[0091] This application narrows the computational scope of the repeated recording recognition and extraction process by introducing information such as the start and end times of the voice recording and the store, reduces the amount of computation, improves the quality of the recognition and extraction results, and reduces computational costs and overhead.
[0092] Optionally, embodiments of this application also provide a flowchart for determining repeated recording segments, such as... Figure 3 As shown, the specific steps are as follows.
[0093] from Figure 3As can be seen, this application collects multiple voice data through multiple voice acquisition modules, then recognizes each voice as a voice text, and obtains repeated recording segments by comparing the similarity of the voice texts.
[0094] Based on the same technical concept, embodiments of this application also provide a device for determining repeated audio recording segments, such as... Figure 4 As shown, the device includes:
[0095] The acquisition module 401 is used to acquire the voice text information of each voice acquisition device in the same store, wherein the voice text information includes the voice text corresponding to each voice and the start and end times of the voice.
[0096] The first selection module 402 is used to select multiple pairs of candidate text segments that meet preset conditions from multiple voice texts according to the start and end times of the voice. Each pair of candidate text segments includes voice texts from two voice acquisition devices, and each candidate text segment includes at least one voice text from each voice acquisition device.
[0097] The second selection module 403 is used to select the target text segment with the lowest text content similarity from the candidate text segments;
[0098] As module 404, if the similarity of the target text segment is less than a preset threshold, the recording corresponding to the target text segment is treated as a repeated recording segment.
[0099] Optionally, the first selection module 402 is used for:
[0100] From the starting position of the speech text of the two speech acquisition devices, the initial speech text with the difference in the start time of the speech within the first time range is taken as the candidate text segment;
[0101] Starting with each subsequent speech text, perform the following operation: If the difference in the end times of speech texts belonging to the same level in two speech acquisition devices is within the second duration, then the speech text from the initial speech text to the current speech text will be considered as candidate text segments.
[0102] The time limit continues until the difference between the end times of the current speech texts of the two speech acquisition devices exceeds the second duration range, or the duration of the current candidate text segment exceeds the preset duration threshold.
[0103] Optionally, the device is also used for:
[0104] Determine the text edit distance between the two text segments in each pair of candidate text segments, where each text segment corresponds to a voice acquisition device;
[0105] Determine the text length and value of two text segments among the candidate text segments;
[0106] The quotient of the text edit distance and length is used as the text content similarity of candidate text segments.
[0107] Optionally, module 401 is used for:
[0108] The voice collected by each voice collection device in each store is recognized as voice text;
[0109] Determine the attributes of each voice text, including the store, device, text content, start time, and end time of the voice text;
[0110] Acquire text data streams from the same voice acquisition device in the same store;
[0111] Sort the speech text in the text data stream according to the start time of the speech.
[0112] Optionally, module 401 is used for:
[0113] The voice texts are grouped according to the store they belong to, with each group of voice texts corresponding to the same store.
[0114] The speech text in the same group is divided into multiple data streams according to the device number, with each data stream corresponding to a speech acquisition device.
[0115] Optionally, the device is also used for:
[0116] Starting from the next voice text after the last candidate text segment, a new candidate text segment is selected until all voice texts from the voice acquisition device have been traversed.
[0117] Optionally, the device is also used for:
[0118] Identify duplicate recording segments between any two voice acquisition devices in the same store;
[0119] Merge the same repeated audio segments.
[0120] According to another aspect of the embodiments of this application, this application provides an electronic device, such as... Figure 5 As shown, the system includes a memory 503, a processor 501, a communication interface 502, and a communication bus 504. The memory 503 stores a computer program that can run on the processor 501. The memory 503 and the processor 501 communicate through the communication interface 502 and the communication bus 504. When the processor 501 executes the computer program, it implements the steps of the above method.
[0121] The memory and processor in the aforementioned electronic devices communicate with each other via a communication bus and a communication interface. The communication bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc.
[0122] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0123] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0124] According to another aspect of the embodiments of this application, a computer-readable medium having processor-executable non-volatile program code is also provided.
[0125] Optionally, in embodiments of this application, the computer-readable medium is configured to store program code for the processor to execute the above-described method.
[0126] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments, and will not be repeated here.
[0127] In specific implementation, the embodiments of this application can be referred to the above embodiments and have corresponding technical effects.
[0128] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or combinations thereof.
[0129] For software implementation, the techniques described herein can be implemented by units that perform the functions described herein. The software code can be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.
[0130] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0131] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0132] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0133] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0134] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0135] If the aforementioned function is implemented as 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 embodiments of this application, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks. It should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. In the absence of further restrictions, an element defined by the phrase "comprising a..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0136] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for determining repeated audio recording segments, characterized in that, The method includes: Acquire the voice text information of each voice acquisition device in the same store, wherein the voice text information includes the voice text corresponding to each voice and the start and end times of the voice; Based on the start and end times of the speech, multiple pairs of candidate text segments that meet preset conditions are selected from multiple speech texts. Each pair of candidate text segments includes speech texts from two speech acquisition devices, and each candidate text segment includes at least one speech text from each speech acquisition device. Select the target text segment with the lowest text content similarity from the candidate text segments; If the similarity of the target text segment is less than a preset threshold, the recording corresponding to the target text segment will be regarded as a duplicate recording segment. Among them, selecting multiple pairs of candidate text segments that meet preset conditions from multiple speech texts based on the start and end times of the speech includes: Acquire text data streams from the same voice acquisition device in the same store; The speech texts in the text data stream are sorted according to the start time of the speech. The earlier the start time of the speech text, the earlier its position in the sequence. From the starting position of the speech text of the two speech acquisition devices, the initial speech text with the difference in the start time of the speech within the first time range is taken as the candidate text segment; Starting from each speech text after the initial speech text, the following operation is performed: if the difference in the end time of speech texts belonging to the same level in two speech acquisition devices is within the second duration, then the speech text from the initial speech text to the current speech text is taken as a candidate text segment, where speech texts of the same level refer to speech texts in the same position in the text data stream; Until the difference between the end times of the current speech text of the two speech acquisition devices exceeds the second duration range, or the duration of the current candidate text segment exceeds the preset duration threshold; The method further includes, after treating the recording corresponding to the target text segment as a repeated recording segment: Identify duplicate recording segments between any two voice acquisition devices in the same store; Merge the same repeated audio segments.
2. The method according to claim 1, characterized in that, Before selecting the target text segment with the lowest text content similarity from the candidate text segments, the method further includes: Determine the text edit distance between the two text segments in each pair of candidate text segments, where each text segment corresponds to a voice acquisition device; Determine the text length and value of two text segments among the candidate text segments; The quotient of the text edit distance and the length sum is used as the text content similarity of the candidate text fragments.
3. The method according to claim 1, characterized in that, The acquisition of voice and text information from each voice acquisition device in the same store includes: The voice collected by each voice collection device in each store is recognized as voice text; Determine the attributes of each voice text, wherein the attributes include the store to which the voice text belongs, the device to which it belongs, the text content, the start time of the voice, and the end time of the voice; Acquire text data streams from the same voice acquisition device in the same store; The speech text in the text data stream is sorted according to the start time of the speech.
4. The method according to claim 3, characterized in that, Obtaining text data streams from the same voice acquisition device in the same store includes: The voice texts are grouped according to the store they belong to, with each group of voice texts corresponding to the same store. The speech text in the same group is divided into multiple data streams according to the device number, and each data stream corresponds to a speech acquisition device.
5. The method according to claim 1, characterized in that, After selecting multiple pairs of candidate text segments that meet preset conditions from the multiple spoken texts, the method further includes: Starting from the next voice text after the last candidate text segment, a new candidate text segment is selected until all voice texts from the voice acquisition device have been traversed.
6. An apparatus for determining repeated audio recording segments, characterized in that, The device includes: The acquisition module is used to acquire the voice text information of each voice acquisition device in the same store, wherein the voice text information includes the voice text corresponding to each voice and the start and end times of the voice; The first selection module is used to select multiple pairs of candidate text segments that meet preset conditions from multiple voice texts according to the start and end times of the voice. Each pair of candidate text segments includes voice texts from two voice acquisition devices, and the candidate text segments include at least one voice text from each voice acquisition device. The second selection module is used to select the target text segment with the lowest text content similarity from the candidate text segments; As a module, if the similarity of the target text segment is less than a preset threshold, the recording corresponding to the target text segment is regarded as a repeated recording segment. Wherein, the first selection module is used for: Acquire text data streams from the same voice acquisition device in the same store; The speech texts in the text data stream are sorted according to the start time of the speech. The earlier the start time of the speech text, the earlier its position in the sequence. From the starting position of the speech text of the two speech acquisition devices, the initial speech text with the difference in the start time of the speech within the first time range is taken as the candidate text segment; Starting from each speech text after the initial speech text, the following operation is performed: if the difference in the end time of speech texts belonging to the same level in two speech acquisition devices is within the second duration, then the speech text from the initial speech text to the current speech text is taken as a candidate text segment, where speech texts of the same level refer to speech texts in the same position in the text data stream; Until the difference between the end times of the current speech text of the two speech acquisition devices exceeds the second duration range, or the duration of the current candidate text segment exceeds the preset duration threshold; The device is also used for: Identify duplicate recording segments between any two voice acquisition devices in the same store; Merge the same repeated audio segments.
7. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the steps of the method described in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the method described in any one of claims 1-5.
Citation Information
Patent Citations
Audio information processing method and system and computer readable storage medium
CN113539269A
Information processing apparatus, information processing system, and information processing method
JP2019164327A
