Audio processing method and device, computer device and storage medium

By calculating the target audio length and creating a suitable storage container, the problem that existing audio acquisition algorithms cannot be applied to all vehicle models is solved, and the audio processing method achieves wide applicability and compatibility.

CN116246655BActive Publication Date: 2026-03-27BEI DOU ZHI LIAN KE JI YOU XIAN GONG SI
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-14
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Existing audio acquisition algorithms are not applicable to all car models and have poor compatibility.

Method used

By calculating the target audio length that the target recognition system can recognize, an adapted storage container is created, and the dataset of the audio length to be processed is filled into the buffer. The dataset is then read from the buffer according to the target audio length and sent to the target recognition system.

Benefits of technology

This invention enables an audio processing method applicable to all vehicle models, thus improving compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116246655B_ABST
    Figure CN116246655B_ABST
Patent Text Reader

Abstract

The application discloses an audio processing method and device, computer equipment and a storage medium, and relates to the technical field of audio processing. The method comprises the following steps: calculating the length of target audio that can be recognized by a target recognition system, and confirming the length of audio to be processed according to the length of the target audio; creating a plurality of storage containers that are adapted to the length of the target audio and the length of the audio to be processed according to the length of the target audio and the length of the audio to be processed, and storing all the storage containers in a buffer area; filling a data set corresponding to the length of the audio to be processed into all the storage containers in the buffer area; reading the data set in the storage container from the buffer area according to the length of the target audio, and sending the read data set to the target recognition system as to-be-recognized data. The application can be applied to audio acquisition of all vehicle types, and has good compatibility.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of audio processing, and in particular to an audio processing method and device, a computer device and a storage medium. BACKGROUND

[0002] One of the important components of the vehicle entertainment system is the vehicle voice, and the driver can control the entertainment function of the vehicle through the vehicle voice, so as to facilitate the driver to focus on driving the vehicle and improve the safety.

[0003] The principle of the vehicle voice is to collect human voice through an audio collection algorithm, and input the human voice to a matching recognition software for recognition. After the recognition is completed, the recognition software converts the human voice into an instruction and transmits it back to the vehicle system for processing, and finally the vehicle system executes the instruction. However, because the types of recognition software and microphones configured by different vehicle models are different, the requirements for the collected human voice are also different. However, the existing audio collection algorithm can only be applied to one or a few vehicle models, and cannot be applied to all vehicle models, and the compatibility is poor. SUMMARY

[0004] Embodiments of the present application provide an audio processing method, device, computer device and storage medium, aiming to solve the problem that the existing audio collection algorithm cannot be applied to all vehicle models and has poor compatibility.

[0005] In a first aspect, embodiments of the present application provide an audio processing method, which comprises:

[0006] calculating a target audio length that can be recognized by a target recognition system, and confirming a to-be-processed audio length according to the target audio length;

[0007] creating a plurality of storage containers that adapt to the target audio length and the to-be-processed audio length according to the target audio length and the to-be-processed audio length, and storing all the storage containers in a buffer area;

[0008] filling a data set corresponding to the to-be-processed audio length into all the storage containers in the buffer area;

[0009] reading the data set in the storage container from the buffer area according to the target audio length, and sending the read data set as to-be-recognized data to the target recognition system.

[0010] In a second aspect, embodiments of the present application further provide an audio processing device, which comprises:

[0011] a first obtaining unit configured to calculate a target audio length that can be recognized by a target recognition system, and confirm a to-be-processed audio length according to the target audio length;

[0012] a second obtaining unit, configured to create a plurality of storage containers that are adapted to the target audio length and the to-be-processed audio length according to the target audio length and the to-be-processed audio length, and store all the storage containers into a buffer;

[0013] a first filling unit, configured to fill a data set corresponding to the to-be-processed audio length into all the storage containers in the buffer;

[0014] a first reading unit, configured to read the data set in the storage container from the buffer according to the target audio length, and send the read data set to a target recognition system as to-be-recognized data.

[0015] In a third aspect, an embodiment of the present application further provides a computer device, which comprises a memory and a processor, the memory has stored thereon a computer program, and the processor implements the above method when executing the computer program.

[0016] In a fourth aspect, an embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the computer program can implement the above method when being executed by a processor.

[0017] The embodiments of the present application provide an audio processing method and device, a computer device and a storage medium. The method comprises the following steps: calculating a target audio length that can be recognized by a target recognition system, and confirming a to-be-processed audio length according to the target audio length; creating a plurality of storage containers that are adapted to the target audio length and the to-be-processed audio length according to the target audio length and the to-be-processed audio length, and storing all the storage containers into a buffer; filling a data set corresponding to the to-be-processed audio length into all the storage containers in the buffer; and reading the data set in the storage container from the buffer according to the target audio length, and sending the read data set to a target recognition system as to-be-recognized data. The technical scheme of the embodiments of the present application can obtain a to-be-processed audio length according to a target audio length that can be recognized by a target recognition system, so that a storage container that is adapted to the target audio length and the to-be-processed audio length can be set, the to-be-processed audio length can store its data set into the storage container, and since the storage container is also adapted to the target audio length, the data set in the storage container in the buffer can be directly read and sent to the target recognition system, which is convenient for the target recognition system to perform speech recognition, and thus the technical scheme can be applied to recognition systems of all vehicle models, and the compatibility is improved. BRIEF DESCRIPTION OF DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiment description. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings.

[0019] Figure 1 A flowchart of an audio processing method provided by an embodiment of the present application;

[0020] Figure 2 A schematic block diagram of an audio processing device provided by an embodiment of the present application; and

[0021] Figure 3 A schematic block diagram of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0022] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without any creative effort fall within the scope of protection of the present application.

[0023] It should be understood that, when used in the specification and the appended claims, the terms "comprise" and "include" indicate the presence of the described features, integers, steps, operations, elements, and / or components, but do not exclude one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0024] It should also be understood that the terms used in the present application specification are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the present application specification and the appended claims, the singular forms "a", "an" and "the" are intended to include the plural forms unless the context clearly indicates otherwise.

[0025] It should be further understood that the term "and / or" used in the present application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0026] As used in the specification and the appended claims, the term "if' can be interpreted as meaning "when," or "upon," or "in response to determining," or "in response to detecting" depending on the context. Similarly, the phrase "if it is determined" or "if [a described condition or event] is detected" can be interpreted to mean "upon determining" or "in response to determining" or "upon detecting [a described condition or event]" or "in response to detecting [a described condition or event]" depending on the context.

[0027] The audio processing method provided by the present application can be configured in a computer device, which can be a central control system configured in a vehicle entertainment system. Figure 1 is a flowchart of the audio processing method provided by the present application. As shown in Figure 1 the method comprises the following steps S100-S130.

[0028] S100, calculate the target audio length that can be recognized by a target recognition system, and confirm the to-be-processed audio length according to the target audio length.

[0029] In the present application, the recognition system refers to a system for recognizing voice carried by the vehicle entertainment system, which can be the vehicle entertainment system itself or an algorithm in the vehicle entertainment system. The audio length of different recognition systems is different, and different vehicle models are often configured with different recognition systems. The target recognition system is the recognition system of the current vehicle model. It should be noted that the audio length of human voice is usually much longer than the audio length that can be recognized by the recognition system.

[0030] The audio in the vehicle is often of various types, such as ambient sound, sound of machine operation, or sound of conversation of passengers in the vehicle. The vehicle entertainment system acquires all the sound in real time, processes the acquired sound, and sends the processed audio to a corresponding recognition system. The recognition system identifies all the audio and extracts a control instruction, which is then returned to the vehicle entertainment system for execution of the control instruction. The target audio length is the length of audio that can be identified by the target recognition system. The length of audio acquired by the vehicle entertainment system is often greater than the target audio length, and thus cannot be directly identified by the target recognition system. Therefore, after the target audio length is determined, the length of audio to be processed needs to be confirmed. The length of audio to be processed is not necessarily the same as the target audio length, but the length of audio to be processed and the target audio length have certain commonalities. For example, if the target audio length is 2048, the length of audio to be processed can be 5120. 2048 and 5120 have multiple common divisors, and an intermediate audio length that conforms to the common divisors can be set to process the length of audio to be processed, so that the length of audio to be processed can be identified by the target audio length. It should be noted that the shortest audio length that can be supported by different vehicle entertainment systems is different, and the shortest audio length is often much greater than the target audio length. Therefore, the length of audio to be processed cannot be set to be the same as the target audio length.

[0031] In some embodiments, such as the present embodiment, the step of calculating the target audio length that can be identified by the target recognition system includes the steps of: confirming the number of audio channels, and calculating the target audio length according to the number of audio channels.

[0032] In the embodiments of the present application, the specific calculation method of the target audio length of the target recognition system can be to confirm the number of audio channels according to the number of audio zones, and then calculate the target audio length according to the number of audio channels. For example, for a vehicle model with two audio zones, it contains four channels, which are left mic, right mic, left ref, and right ref, and the target audio length is 256*4*2=2048. For a vehicle model with four audio zones, it contains six channels, which are left mic, right mic, left rear mic, right rear mic, left ref, and right ref, and the target audio length is 256*6*2=4096.

[0033] In some embodiments, such as the present embodiment, the step of confirming the length of audio to be processed according to the target audio length can include the steps of: judging the size of the target audio length and the shortest audio length that can be supported by the vehicle entertainment system; if the target audio length is less than the shortest audio length, creating a standard audio length according to a preset rule; and obtaining a data set of the audio to be identified according to the standard audio length to obtain the length of audio to be processed.

[0034] In the embodiments of the present application, generally, the shortest audio length supported by the in-vehicle entertainment system is longer than the target audio length, and in special cases, the shortest audio length supported by the in-vehicle entertainment system is shorter than the target audio length, in which case, the to-be-processed audio length can be directly set to be equal to the target audio length. If the shortest audio length supported by the in-vehicle entertainment system is longer than the target audio length, a standard audio length can be created according to a preset rule, which can be a plurality of values preset in advance according to experience, such as a first value and a second value, and the value higher than and closest to the shortest audio length is taken as the standard audio length. After the standard audio length is confirmed, a data set can be obtained from the to-be-identified audio to obtain the to-be-processed audio length. The to-be-identified audio refers to all the audio obtained by the in-vehicle entertainment system, and the to-be-processed audio length is equal to the standard audio length, the difference being that the to-be-processed audio length is obtained from the to-be-identified audio.

[0035] S110, a plurality of storage containers adapted to the target audio length and the to-be-processed audio length are created according to the target audio length and the to-be-processed audio length, and all the storage containers are stored in a buffer.

[0036] In the embodiments of the present application, the to-be-processed audio length is generally greater than the target audio length, for example, the to-be-processed audio length is 5120 and the target audio length is 2048, then a storage container with a data set length adapted to the to-be-processed audio length and the target audio length can be created, and the data set length can be found from the greatest common divisor of 5120 and 2048, the greatest common divisor of 5120 and 2048 being 2, 4, 10, …, 1024, and the greatest common divisor of 5120 and 2048 can be taken as the length of the storage container, i.e. 1024. The number of storage containers depends on the to-be-processed audio length, if the to-be-processed audio length is 5120 and the length of the storage container is 1024, then the number of storage containers is 5, and all the storage containers are stored in a buffer for easy reading. The buffer can be a ring buffer for storing data.

[0037] In some embodiments, such as the present embodiment, the step S110 can include the following steps: confirming the greatest common divisor of the target audio length and the to-be-processed audio length; creating the storage container according to the value corresponding to the greatest common divisor, and confirming the number of storage containers according to the multiple relationship between the to-be-processed audio length and the greatest common divisor.

[0038] In the embodiment of the present application, the greatest common divisor of the target audio length and the to-be-processed audio length can be used as the length of the storage container. For example, the target audio length is 1024 and the to-be-processed audio length is 5120, the greatest common divisor of the target audio length and the to-be-processed audio length is 1024, and a storage container with a length of 1024 is created to store the data set. The to-be-processed audio length 5120 is 5 times the length of 1024, and therefore 5 storage containers can be created.

[0039] S120, filling the data set corresponding to the to-be-processed audio length into all the storage containers in the buffer.

[0040] In the embodiment of the present application, the length and the number of the storage containers are matched with the to-be-processed audio length, and therefore all the data sets of the to-be-processed audio length can be stored into all the storage containers, which is convenient for subsequent reading.

[0041] In some embodiments, for example, the step S120 can include the following steps: confirming the filling times according to the number of the storage containers; and filling the data set corresponding to the to-be-processed audio length into all the storage containers in the buffer according to the filling times.

[0042] In the embodiment of the present application, if the to-be-processed audio length is 5120 and the length of the storage container is 1024, 5 storage containers are needed, and when the data set of the to-be-processed audio length is filled into the storage containers in the buffer, one storage container is filled at a time, and a total of 5 times of filling are needed. In addition, an available counter can be set in the buffer, the counter is increased by 1 each time the filling is performed, which is convenient for recording the filling times, and a readable counter can also be set, the counter is increased by 1 each time the reading is performed, which is convenient for recording the reading times. It should be noted that when the storage containers in the buffer store the data set, the reading of the storage containers can be performed at the same time as the filling of the data, instead of waiting for the complete filling of the data before the reading is performed. For example, there are 5 storage containers in the buffer, 3 of which have been filled with data and meet the reading requirements of the target recognition system, and therefore the data in the storage containers can be read and sent to the target recognition system, and the remaining data set of the to-be-processed audio length can continue to be filled into the storage containers.

[0043] S130, reading the data set in the storage container from the buffer according to the target audio length, and sending the read data set to the target recognition system as to-be-recognized data.

[0044] In the embodiment of the present application, when reading the data sets in the storage containers, the reading is also sequential. For example, if the length of the storage container is 1024 and the target audio length is 2048, two data sets in the storage containers can be read from the buffer each time and sent to the target recognition system, or one data set in the storage container can be read each time, and after reading twice, the data sets are sent, so that the read data sets can meet the reading requirements of the target recognition system. If the length of the audio to be processed is 5120, there are five data sets in the buffer, and after four storage containers are read, one storage container is left, so that the reading and sending can be performed again after waiting for new data sets to be filled.

[0045] In some embodiments, such as the present embodiment, the step S130 can include the following steps: determining the number of single reading of the data sets in the storage containers from the buffer according to the multiple relationship between the target audio length and the greatest common divisor; and sequentially reading the data sets in the storage containers from the buffer according to the number of single reading.

[0046] In the embodiment of the present application, if the target audio length is 2048 and the greatest common divisor is 1024, two data sets in the storage containers can be read each time, and if the target audio length is 4096 and the greatest common divisor is 1024, four data sets in the storage containers can be read each time.

[0047] In some embodiments, such as the present embodiment, the audio processing method further includes the following step: if a new audio length to be processed is obtained, the data sets corresponding to the new audio length to be processed are filled into all the storage containers in the buffer to replace the data sets in the storage containers.

[0048] In the embodiment of the present application, if the audio length of the audio to be recognized is 20000 and the audio length to be processed is 5120, the data sets can be obtained from the audio to be recognized all the time to obtain the audio length to be processed until all the data sets in the audio to be recognized are obtained. When a new audio length to be processed is obtained, the new audio length to be processed is filled into the storage containers in the buffer to replace the old data sets.

[0049] Figure 2 is a schematic block diagram of an audio processing device 200 provided by the embodiment of the present application. As shown in Figure 2 Corresponding to the above audio processing method, the present application further provides an audio processing device 200. The audio processing device 200 includes units for executing the above audio processing method, and the device can be configured in a computer device. Specifically, please refer to Figure 2The audio processing device 200 comprises a first obtaining unit 201, a second obtaining unit 202, a first filling unit 203 and a first reading unit 204.

[0050] The first obtaining unit 201 is configured to calculate a target audio length that can be recognized by a target recognition system, and confirm a to-be-processed audio length according to the target audio length; the second obtaining unit 202 is configured to create a plurality of storage containers that are adapted to the target audio length and the to-be-processed audio length according to the target audio length and the to-be-processed audio length, and store all the storage containers into a buffer; the first filling unit 203 is configured to fill a data set corresponding to the to-be-processed audio length into all the storage containers in the buffer; and the first reading unit 204 is configured to read the data set in the storage container from the buffer according to the target audio length, and send the read data set as to-be-recognized data to the target recognition system.

[0051] In some embodiments, for example in the embodiment, the first obtaining unit 201 comprises a first calculating unit, a first judging unit, a first creating unit and a second creating unit.

[0052] The first calculating unit is configured to confirm a number of audio channels, and calculate the target audio length according to the number of audio channels; the first judging unit is configured to judge a size of the target audio length and a shortest audio length that can be supported by an in-vehicle entertainment system; the first creating unit is configured to create a standard audio length according to a preset rule if the target audio length is smaller than the shortest audio length; and the second creating unit is configured to obtain a data set of to-be-recognized audio according to the standard audio length to obtain the to-be-processed audio length.

[0053] In some embodiments, for example in the embodiment, the second obtaining unit 202 comprises a first confirming unit and a third creating unit.

[0054] The first confirming unit is configured to confirm a greatest common divisor of the target audio length and the to-be-processed audio length; and the third creating unit is configured to create the storage containers according to a value corresponding to the greatest common divisor, and confirm a number of the storage containers according to a multiple relationship between the to-be-processed audio length and the greatest common divisor.

[0055] In some embodiments, for example in the embodiment, the first filling unit 203 comprises a second confirming unit and a second filling unit.

[0056] The second confirming unit is configured to confirm the filling times according to the number of the storage containers; and the second filling unit is configured to fill the data set corresponding to the length of the audio to be processed into all the storage containers in the buffer one by one according to the filling times.

[0057] In some embodiments, for example in the embodiment, the first reading unit 204 comprises a third confirming unit and a second reading unit.

[0058] The third confirming unit is configured to confirm the single reading times of the data set in the storage container from the buffer according to the multiple relationship between the target audio length and the greatest common divisor; and the second reading unit is configured to read the data set in the storage container from the buffer one by one according to the single reading times.

[0059] In some embodiments, for example in the embodiment, the audio processing apparatus 200 further comprises a third obtaining unit.

[0060] The third obtaining unit is configured to, if a new length of audio to be processed is obtained, fill the data set corresponding to the new length of audio to be processed into all the storage containers in the buffer to replace the data set in the storage containers.

[0061] The above audio processing apparatus can be implemented in the form of a computer program, which can run on a computer device as shown in Figure 3 .

[0062] Please refer to Figure 3 , Figure 3 is a schematic block diagram of a computer device provided by an embodiment of the present application. The computer device 300 is a device with wireless communication and wired communication.

[0063] Referring to Figure 3 , the computer device 300 comprises a processor 302, a memory and a network interface 305 connected through a system bus 301, wherein the memory can comprise a non-volatile storage medium 303 and an internal memory 304.

[0064] The non-volatile storage medium 303 can store an operating system 3031 and a computer program 3032. The computer program 3032, when executed, can make the processor 302 execute an audio processing method.

[0065] The processor 302 is configured to provide computing and control capabilities to support the operation of the entire computer device 300.

[0066] The internal memory 304 provides an environment for the running of the computer program 3032 in the non-volatile storage medium 303, which, when executed by the processor 302, can cause the processor 302 to perform an audio processing method.

[0067] The network interface 305 is configured to perform network communication with other devices. Those skilled in the art can understand that, Figure 3 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device 300 to which the scheme of the present application is applied. The specific computer device 300 can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0068] The processor 302 is configured to run the computer program 3032 stored in the memory to implement any of the embodiments of the audio processing method described above.

[0069] It should be understood that, in the embodiments of the present application, the processor 302 can be a central processing unit (CPU), and the processor 302 can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor.

[0070] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments of the method can be completed by a computer program instructing related hardware. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the above-mentioned embodiments of the method.

[0071] Therefore, the present application also provides a storage medium. The storage medium can be a computer-readable storage medium. The storage medium stores a computer program. The computer program is executed by a processor to cause the processor to perform any of the above-mentioned embodiments of the audio processing method.

[0072] The storage medium can be a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk, and various computer readable storage media that can store program codes.

[0073] Those skilled in the art can realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been described in the above description in a general manner. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person 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 the present application.

[0074] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and actual implementation can have another division manner. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0075] The steps in the method embodiments of the present application can be adjusted, combined and deleted in sequence according to actual needs. The units in the device embodiments of the present application can be combined, divided and deleted according to actual needs. In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit.

[0076] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a storage medium. Based on such understanding, the technical solutions of the present application essentially or say the parts that make contributions to the prior art, or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device to execute all or part of the steps of the methods described in each embodiment of the present application.

[0077] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0078] It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application cover modifications and variations of this application provided they come within the scope of the appended claims and their equivalents.

[0079] The above description is only specific embodiments of the present application, but the protection scope of the present application is not limited to this. Any skilled person in the art can easily think of various equivalent modifications or replacements within the technical range disclosed by the present application, and these modifications or replacements should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. An audio processing method, characterized by, The method comprises: calculating a target audio length that can be recognized by a target recognition system, and confirming a to-be-processed audio length according to the target audio length; creating a plurality of storage containers that adapt to the target audio length and the to-be-processed audio length according to the target audio length and the to-be-processed audio length, and storing all the storage containers in a buffer; filling a data set corresponding to the to-be-processed audio length into all the storage containers in the buffer; reading the data set in the storage container from the buffer according to the target audio length, and sending the read data set as to-be-recognized data to the target recognition system; wherein the step of confirming the to-be-processed audio length according to the target audio length comprises: judging the size of the target audio length and the shortest audio length that can be supported by an in-vehicle entertainment system; if the target audio length is smaller than the shortest audio length, creating a standard audio length according to a preset rule, wherein the preset rule comprises: obtaining a plurality of preset values, and taking the value that is higher than and closest to the shortest audio length among the plurality of values as the standard audio length; obtaining a data set of to-be-recognized audio according to the standard audio length to obtain the to-be-processed audio length; the step of creating a plurality of storage containers that adapt to the target audio length and the to-be-processed audio length according to the target audio length and the to-be-processed audio length comprises: confirming the greatest common divisor of the target audio length and the to-be-processed audio length; creating the storage container according to the value corresponding to the greatest common divisor, and confirming the number of the storage containers according to the multiple relationship between the to-be-processed audio length and the greatest common divisor.

2. The method of claim 1, wherein, The method further comprises: if a new to-be-processed audio length is obtained, filling the data set corresponding to the new to-be-processed audio length into all the storage containers in the buffer to cover the data set in the storage container.

3. The method of claim 1, wherein, The step of reading the data set in the storage container from the buffer according to the target audio length comprises: confirming the number of single reading of the data set in the storage container from the buffer according to the multiple relationship between the target audio length and the greatest common divisor; reading the data set in the storage container from the buffer one by one according to the number of single reading.

4. The method of claim 1, wherein, The step of filling the data set corresponding to the to-be-processed audio length into all the storage containers in the buffer comprises: confirming the number of filling according to the number of the storage containers; filling the data set corresponding to the to-be-processed audio length into all the storage containers in the buffer one by one according to the number of filling.

5. The method of claim 1, wherein, The step of calculating the target audio length of the target recognition system comprises: confirming the number of audio channels, and calculating the target audio length according to the number of audio channels.

6. An audio processing apparatus, characterized by comprising: The device comprises: a first obtaining unit configured to calculate a target audio length that can be recognized by a target recognition system, and confirm a to-be-processed audio length according to the target audio length. The second obtaining unit is configured to create a plurality of storage containers that are adapted to the target audio length and the to-be-processed audio length according to the target audio length and the to-be-processed audio length, and store all the storage containers into a buffer; The first filling unit is configured to fill a data set corresponding to the to-be-processed audio length into all the storage containers in the buffer; The first reading unit is configured to read the data set in the storage container from the buffer according to the target audio length, and send the read data set as to-be-identified data to a target identification system; The first obtaining unit comprises: The first judging unit is configured to judge the size of the target audio length and a shortest audio length that can be supported by the in-vehicle entertainment system; The first creating unit is configured to create a standard audio length according to a preset rule if the target audio length is smaller than the shortest audio length, wherein the preset rule comprises: obtaining a plurality of preset values, and taking a value that is higher than and closest to the shortest audio length from the plurality of values as the standard audio length; The second creating unit is configured to obtain a data set of to-be-identified audio according to the standard audio length to obtain the to-be-processed audio length; The second obtaining unit comprises: The first confirming unit is configured to confirm the greatest common divisor of the target audio length and the to-be-processed audio length; The third creating unit is configured to create the storage containers according to a value corresponding to the greatest common divisor, and confirm the number of the storage containers according to a multiple relationship between the to-be-processed audio length and the greatest common divisor.

7. A computer device, comprising: The storage medium stores a computer program, and the computer program can implement the method in any one of claims 1-5 when executed by a processor.

8. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, and the computer program can implement the method in any one of claims 1-5 when executed by a processor.

Citation Information

Patent Citations

  • Audio data synchronization processing method and device, computer equipment and storage medium

    CN113035246A