CN116246655A - Audio processing method, device, computer equipment and storage medium - Google Patents

Audio processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116246655A
CN116246655A CN202310243176.9A CN202310243176A CN116246655A CN 116246655 A CN116246655 A CN 116246655A CN 202310243176 A CN202310243176 A CN 202310243176A CN 116246655 A CN116246655 A CN 116246655A
Authority
CN
China
Prior art keywords
audio
length
audio length
processed
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310243176.9A
Other languages
Chinese (zh)
Inventor
李千伟
张敬锋
刘翔
龙步新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BDstar Intelligent and Connected Vehicle Technology Co Ltd
Original Assignee
BDstar Intelligent and Connected Vehicle Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BDstar Intelligent and Connected Vehicle Technology Co Ltd filed Critical BDstar Intelligent and Connected Vehicle Technology Co Ltd
Priority to CN202310243176.9A priority Critical patent/CN116246655A/en
Publication of CN116246655A publication Critical patent/CN116246655A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/03Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters
    • G10L25/18Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters the extracted parameters being spectral information of each sub-band
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/27Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the analysis technique
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention discloses an audio processing method, an audio processing device, computer equipment and a storage medium, and relates to the technical field of audio processing. Calculating the target audio length which can be identified by a target identification system, and confirming the audio length to be processed according to the target audio length; creating a plurality of storage containers adapting to the target audio length and the audio length to be processed according to the target audio length and the audio length to be processed, and storing all the storage containers into a buffer area; filling the data set corresponding to the audio length to be processed into all storage containers in the buffer area; and reading the data set in the storage container from the buffer zone according to the target audio length, and sending the read data set to a target recognition system as data to be recognized. The invention is suitable for audio acquisition of all vehicle types and has good compatibility.

Description

Audio processing method, device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of audio processing, in particular to an audio processing method, an audio processing device, computer equipment and a storage medium.
Background
One of the important components of the vehicle-mounted entertainment system is vehicle-mounted voice, and a driver can control entertainment functions of the vehicle through the vehicle-mounted voice, so that the driver can concentrate on driving the vehicle conveniently, and safety is improved.
The principle of the vehicle-mounted voice is that voice audio is collected through an audio collection algorithm and is input to matched recognition software for recognition, after recognition is completed, the recognition software converts the voice audio into instructions and transmits the instructions back to a vehicle-mounted system for processing, and finally the vehicle-mounted system executes the instructions. However, because the types of the recognition software and the microphones configured by different vehicle types are different, the requirements on the collected voice audio are different, and the existing audio collection algorithm is often only applicable to one or more vehicle types, cannot be applicable to all vehicle types, and has poor compatibility.
Disclosure of Invention
The embodiment of the invention provides an audio processing method, an audio processing device, computer equipment and a storage medium, which aim to solve the problems that the existing audio acquisition algorithm cannot be applied to all vehicle types and has poor compatibility.
In a first aspect, an embodiment of the present invention provides an audio processing method, including:
calculating the target audio length which can be identified by the target identification system, and confirming the audio length to be processed according to the target audio length;
creating a plurality of storage containers adapting to the target audio length and the audio length to be processed according to the target audio length and the audio length to be processed, and storing all the storage containers into a buffer area;
filling the data set corresponding to the audio length to be processed into all storage containers in the buffer area;
and reading the data set in the storage container from the buffer zone according to the target audio length, and sending the read data set to a target recognition system as data to be recognized.
In a second aspect, an embodiment of the present invention further provides an audio processing apparatus, including:
the first acquisition unit is used for calculating the target audio length which can be identified by the target identification system and confirming the audio length to be processed according to the target audio length;
a second obtaining unit, configured to create a plurality of storage containers adapted to the target audio length and the audio length to be processed according to the target audio length and the audio length to be processed, and store all the storage containers into a buffer area;
the first filling unit is used for filling the data set corresponding to the audio length to be processed into all the storage containers in the buffer area;
and the first reading unit is used for reading the data set in the storage container from the buffer zone according to the target audio length and sending the read data set to a target recognition system as data to be recognized.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the method when executing the computer program.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the above method.
The embodiment of the invention provides an audio processing method, an audio processing device, computer equipment and a storage medium. Wherein the method comprises the following steps: calculating the target audio length which can be identified by the target identification system, and confirming the audio length to be processed according to the target audio length; creating a plurality of storage containers adapting to the target audio length and the audio length to be processed according to the target audio length and the audio length to be processed, and storing all the storage containers into a buffer area; filling the data set corresponding to the audio length to be processed into all storage containers in the buffer area; and reading the data set in the storage container from the buffer zone according to the target audio length, and sending the read data set to a target recognition system as data to be recognized. According to the technical scheme of the embodiment of the invention, the length of the audio to be processed can be obtained according to the length of the audio to be identified by the target identification system, so that a storage container which is adaptive to the length of the audio to be processed and the length of the audio to be processed can be arranged, the length of the audio to be processed can be stored in the storage container, and as the storage container is also adaptive to the length of the audio to be processed, the data set in the storage container in the buffer zone can be directly read and sent to the target identification system, the target identification system is convenient to carry out voice identification, the method is applicable to identification systems of all vehicle types, and compatibility is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of an audio processing method according to an embodiment of the present invention;
fig. 2 is a schematic block diagram of an audio processing apparatus according to an embodiment of the present invention; and
fig. 3 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
The audio processing method provided by the invention can be configured in computer equipment, and the computer equipment can be a central control system which is configured in a vehicle-mounted entertainment system. Fig. 1 is a flow chart of an audio processing method according to an embodiment of the present invention. As shown in fig. 1, the method includes the following steps S100 to S130.
S100, calculating the target audio length which can be identified by the target identification system, and confirming the audio length to be processed according to the target audio length.
In the embodiment of the invention, the recognition system refers to a system for recognizing voice, which is carried by the vehicle-mounted entertainment system and can be the vehicle-mounted entertainment system itself or an algorithm in the vehicle-mounted entertainment system. The audio lengths of different recognition systems are different, and different vehicle types are often configured with different recognition systems, and the target recognition system is the recognition system of the current vehicle type. It should be noted that the audio length of the voice audio is generally much longer than the audio length that can be recognized by the recognition system.
The audio in a vehicle is often of a large variety, such as ambient sounds, sounds during operation of the machine, or sounds of conversations of occupants in the vehicle. The vehicle-mounted entertainment system can acquire all the sounds in real time, process the acquired sounds, send the processed audio to the corresponding recognition system, recognize all the audio by the recognition system, extract control instructions, and return the control instructions to the vehicle-mounted entertainment system, so that the vehicle-mounted entertainment system can conveniently execute the control instructions. The target audio length is the audio length which can be identified by the target identification system, and the audio length which is obtained by the vehicle-mounted entertainment system is often larger than the target audio length and cannot be directly identified by the target identification system. Therefore, after the target audio length is determined, the audio length to be processed needs to be confirmed. The audio length to be processed is not necessarily the same as the target audio length, but the audio length to be processed has a certain commonality with the target audio length. For example, if the target audio length is 2048, the audio length to be processed may be 5120, 2048 and 5120 may have a plurality of common divisors, and an intermediate audio length corresponding to the common divisors may be set, through which the audio length to be processed is processed so as to be recognized by the target audio length. It should be noted that, the shortest audio length that can be supported by different vehicle-mounted entertainment systems is different, and often the shortest audio length is far greater than the target audio length, so the length of the audio to be processed cannot be set to be the same as the target audio length.
In some embodiments, for example, the step of calculating the target audio length that can be identified by the target identification system includes the steps of: and confirming the number of the audio channels, and calculating the target audio length according to the number of the audio channels.
In the embodiment of the invention, the specific calculation method of the target audio length of the target recognition system can be that the number of audio channels is confirmed according to the number of voice zones, and then the target audio length is calculated according to the number of audio channels. For example, for a vehicle model with a two-tone region, which includes four channels, namely, left mic, right mic, left ref, and right ref, the target audio length is 256×4x2=2048, and for a vehicle model with a four-tone region, which includes six channels, namely, left mic, right mic, left rear mic, right rear mic, left ref, and right ref, the target audio length is 256×6x2=4096.
In some embodiments, for example, in this embodiment, the step of confirming the length of audio to be processed according to the target audio length may include the following steps: judging the size of the target audio length and the shortest audio length which can be supported by the vehicle-mounted entertainment system; if the target audio length is smaller than the shortest audio length, creating a standard audio length according to a preset rule; and acquiring a data set of the audio to be identified according to the standard audio length to acquire the audio length to be processed.
In the embodiment of the invention, the shortest audio length supported by the vehicle-mounted entertainment system is generally longer than the target audio length, and in special cases, the shortest audio length supported by the vehicle-mounted entertainment system is shorter than the target audio length, and in such cases, the audio length to be processed can be directly set to be equal to the target audio length. If the shortest audio length that the vehicle entertainment system can support is longer than the target audio length, a standard audio length may be created according to a preset rule, where the preset rule may be to preset a plurality of values, such as a first value and a second value, in advance according to experience, and take the value higher than and closest to the shortest audio length as the standard audio length. After confirming the standard audio length, a data set may be obtained from the audio to be identified to obtain the audio length to be processed. The audio to be identified is all the audio acquired by the vehicle entertainment system, and the length of the audio to be processed is equal to that of the standard audio, wherein the difference is that the length of the audio to be processed is acquired from the audio to be identified.
S110, creating a plurality of storage containers adapting to the target audio length and the audio length to be processed according to the target audio length and the audio length to be processed, and storing all the storage containers into a buffer area.
In the embodiment of the present invention, the length of the audio to be processed is generally greater than the target audio length, for example, the length of the audio to be processed is 5120, the length of the target audio is 2048, a storage container with a data set length adapted to the length of the audio to be processed and the length of the target audio can be created, the length of the data set can be found from the common divisors in 5120 and 2048, the common divisors of 5120 and 2048 are 2, 4, 10, … … and 1024, and the maximum common divisors of 5120 and 2048 can be used as the length of the storage container, namely 1024. The number of the storage containers depends on the length of the audio to be processed, if the length of the audio to be processed is 5120 and the length of the storage containers is 1024, the number of the storage containers is 5, and all the storage containers are stored in the buffer zone, so that the audio to be processed is convenient to read. The buffer may be a ring buffer for storing data.
In some embodiments, for example, the step S110 may include the following steps: confirming the greatest common divisor of the target audio length and the audio length to be processed; and creating the storage containers according to the numerical value corresponding to the greatest common divisor, and confirming the number of the storage containers according to the multiple relation between the length of the audio to be processed and the greatest common divisor.
In the embodiment of the invention, the greatest common divisor of the target audio length and the audio length to be processed can be used as the length of the storage container. For example, the target audio length is 1024 and the audio length to be processed is 5120, then the greatest common divisor of the target audio length and the audio length to be processed is 1024, and a storage container for storing the data set is created with 1024 as the length. If the multiple relationship between the audio lengths 5120 and 1024 to be processed is 5 times, 5 storage containers can be created.
And S120, filling the data set corresponding to the audio length to be processed into all storage containers in the buffer area.
In the embodiment of the invention, the length and the number of the storage containers are matched with the length of the audio to be processed, so that all data sets of the audio length to be processed can be just stored in all the storage containers, and the subsequent reading is convenient.
In some embodiments, for example, the step S120 may include the following steps: confirming filling times according to the number of the storage containers; and filling the data set corresponding to the audio length to be processed into all storage containers in the buffer area successively according to the filling times.
In the embodiment of the present invention, if the length of the audio to be processed is 5120 and the length of the storage container is 1024, 5 storage containers are required, and when the data set of the audio length to be processed is filled into the storage containers in the buffer area, one storage container is filled at a time, and five times of filling are required. In addition, the buffer area can be internally provided with an available counter, and the counter is added with 1 for each filling, so that the filling times can be conveniently recorded, and the buffer area can also be provided with a readable counter, and the counter is added with 1 for each reading, so that the reading times can be conveniently recorded. It should be noted that when the data set is stored in the storage container in the buffer, the storage container can be read while the data is being filled, instead of reading after the data is completely filled. For example, there are 5 storage containers in the buffer area, wherein 3 storage containers are filled with data, and the reading requirement of the target recognition system is met, the data in the storage containers can be read and sent to the target recognition system, and meanwhile, the data set with the rest audio length to be processed can be continuously filled into the storage containers.
S130, reading the data set in the storage container from the buffer area according to the target audio length, and sending the read data set to a target recognition system as data to be recognized.
In the embodiment of the invention, when the data sets in the storage containers are read, the data sets are also sequentially read, for example, if the length of the storage container is 1024 and the target audio length is 2048, the data sets in two storage containers can be read from the buffer area each time and sent to the target recognition system, or the data sets in one storage container are read each time and sent after being read twice, so that the read data sets can be ensured to meet the reading requirement of the target recognition system. If the audio length to be processed is 5120, five data sets are in the buffer area, and after four storage containers are read, one storage container remains, and then a new data set can be waited for filling for reading and sending.
In some embodiments, for example, the step S130 may include the following steps: confirming the single reading number of the data set in the storage container read from the buffer area according to the multiple relation between the target audio length and the greatest common divisor; and successively reading the data set in the storage container from the buffer area according to the single reading number.
In the embodiment of the present invention, if the target audio length is 2048 and the greatest common divisor is 1024, the data sets in two storage containers can be read at a time, and if the target audio length is 4096 and the greatest common divisor is 1024, the data sets in four storage containers can be read at a time.
In some embodiments, for example the present embodiment, the audio processing method further includes the steps of: and if the new audio length to be processed is acquired, filling the data set corresponding to the new audio length to be processed into all the storage containers in the buffer area to cover the data set in the storage containers.
In the embodiment of the present invention, if the audio length of the audio to be identified is 20000 and the audio length to be processed is 5120, the data set can be obtained from the audio to be identified all the time, so as to continuously obtain the audio length to be processed, until the data set in the audio to be identified is completely obtained. When a new length of audio to be processed is obtained, the new length of audio to be processed is filled into a storage container within the buffer, thereby overwriting the old data set.
Fig. 2 is a schematic block diagram of an audio processing apparatus 200 according to an embodiment of the present invention. As shown in fig. 2, the present invention also provides an audio processing apparatus 200 corresponding to the above audio processing method. The audio processing apparatus 200 includes a unit for performing the above-described audio processing method, and may be configured in a computer device. Specifically, referring to fig. 2, the audio processing apparatus 200 includes a first acquiring unit 201, a second acquiring unit 202, a first filling unit 203, and a first reading unit 204.
The first obtaining unit 201 is configured to calculate a target audio length that can be identified by the target identification system, and confirm a length of audio to be processed according to the target audio length; the second obtaining unit 202 is configured to create a plurality of storage containers adapted to the target audio length and the audio length to be processed according to the target audio length and the audio length to be processed, and store all the storage containers into a buffer; the first filling unit 203 is configured to fill a data set corresponding to the audio length to be processed into all storage containers in the buffer; 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 data to be identified to a target identification system.
In some embodiments, for example, in this embodiment, the first obtaining unit 201 includes a first calculating unit, a first judging unit, a first creating unit, and a second creating unit.
The first computing unit is used for confirming the number of audio channels and computing the target audio length according to the number of the audio channels; the first judging unit is used for judging the size of the target audio length and the shortest audio length which can be supported by the vehicle-mounted 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; the second creating unit is used for acquiring a data set of the audio to be identified according to the standard audio length so as to acquire the audio length to be processed.
In some embodiments, for example, the second obtaining unit 202 includes a first confirming unit and a third creating unit.
The first confirming unit is used for confirming the greatest common divisor of the target audio length and the audio length to be processed; the third creating unit is configured to create the storage containers according to the numerical value corresponding to the greatest common divisor, and confirm the number of the storage containers according to the multiple relationship between the length of the audio to be processed and the greatest common divisor.
In some embodiments, for example, the first filling unit 203 includes a second confirmation unit and a second filling unit.
The second confirming unit is used for confirming filling times according to the number of the storage containers; and the second filling unit is used for sequentially filling the data set corresponding to the audio length to be processed into all the storage containers in the buffer area according to the filling times.
In some embodiments, for example, the first reading unit 204 includes a third confirmation unit and a second reading unit.
The third confirming unit is used for confirming the single reading number of the data set in the storage container read from the buffer area according to the multiple relation between the target audio length and the greatest common divisor; the second reading unit is used for successively reading the data set in the storage container from the buffer area according to the single reading number.
In some embodiments, for example, the audio processing device 200 further includes a third obtaining unit.
And the third obtaining unit is used for filling the data set corresponding to the new audio length to be processed into all the storage containers in the buffer area so as to cover the data set in the storage containers if the new audio length to be processed is obtained.
The above-described audio processing means may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 3.
Referring to fig. 3, fig. 3 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device 300 is a device having wireless communication and wired communication.
With reference to FIG. 3, the computer device 300 includes a processor 302, a memory, and a network interface 305, which are connected by a system bus 301, wherein the memory may include a non-volatile storage medium 303 and an internal memory 304.
The non-volatile storage medium 303 may store an operating system 3031 and a computer program 3032. The computer program 3032, when executed, may cause the processor 302 to perform an audio processing method.
The processor 302 is used to provide computing and control capabilities to support the operation of the overall computer device 300.
The internal memory 304 provides an environment for the execution of a computer program 3032 in the non-volatile storage medium 303, which computer program 3032, when executed by the processor 302, causes the processor 302 to perform an audio processing method.
The network interface 305 is used for network communication with other devices. It will be appreciated by those skilled in the art that the structure shown in FIG. 3 is merely a block diagram of some of the structures associated with the present inventive arrangements and does not constitute a limitation of the computer device 300 to which the present inventive arrangements may be applied, and that a particular computer device 300 may include more or less components than those shown, or may combine some of the components, or have a different arrangement of components.
Wherein the processor 302 is configured to execute a computer program 3032 stored in a memory to implement any of the embodiments of the audio processing method described above.
It should be appreciated that in embodiments of the present invention, the processor 302 may be a central processing unit (Central Processing Unit, CPU), the processor 302 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable gate arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program may be stored in a storage medium that is a computer readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program. The computer program, when executed by a processor, causes the processor to perform any of the embodiments of the audio processing method described above.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or partly contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device to perform all or part of the steps of the method according to the embodiments of the present invention.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and for those portions of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. A method of audio processing, the method comprising:
calculating the target audio length which can be identified by the target identification system, and confirming the audio length to be processed according to the target audio length;
creating a plurality of storage containers adapting to the target audio length and the audio length to be processed according to the target audio length and the audio length to be processed, and storing all the storage containers into a buffer area;
filling the data set corresponding to the audio length to be processed into all storage containers in the buffer area;
and reading the data set in the storage container from the buffer zone according to the target audio length, and sending the read data set to a target recognition system as data to be recognized.
2. The method of claim 1, wherein the step of obtaining the audio length to be processed from the target audio length comprises:
judging the size of the target audio length and the shortest audio length which can be supported by the vehicle-mounted entertainment system;
if the target audio length is smaller than the shortest audio length, creating a standard audio length according to a preset rule;
and acquiring a data set of the audio to be identified according to the standard audio length to acquire the audio length to be processed.
3. The method of claim 2, wherein the method further comprises:
and if the new audio length to be processed is acquired, filling the data set corresponding to the new audio length to be processed into all the storage containers in the buffer area to cover the data set in the storage containers.
4. The method of claim 1, wherein the step of creating a plurality of storage containers adapted to the target audio length and the audio length to be processed from the target audio length and the audio length to be processed comprises:
confirming the greatest common divisor of the target audio length and the audio length to be processed;
and creating the storage containers according to the numerical value corresponding to the greatest common divisor, and confirming the number of the storage containers according to the multiple relation between the length of the audio to be processed and the greatest common divisor.
5. The method of claim 4, wherein the step of reading the data set in the storage container from the buffer according to the target audio length comprises:
confirming the single reading number of the data set in the storage container read from the buffer area according to the multiple relation between the target audio length and the greatest common divisor;
and successively reading the data set in the storage container from the buffer area according to the single reading number.
6. The method of claim 1, wherein the step of filling the data set corresponding to the length of audio to be processed into all storage containers in the buffer comprises:
confirming filling times according to the number of the storage containers;
and filling the data set corresponding to the audio length to be processed into all storage containers in the buffer area successively according to the filling times.
7. The method of claim 1, wherein the step of calculating a target audio length for the target recognition system comprises:
and confirming the number of the audio channels, and calculating the target audio length according to the number of the audio channels.
8. An audio processing apparatus, the apparatus comprising:
the first acquisition unit is used for calculating the target audio length which can be identified by the target identification system and confirming the audio length to be processed according to the target audio length;
a second obtaining unit, configured to create a plurality of storage containers adapted to the target audio length and the audio length to be processed according to the target audio length and the audio length to be processed, and store all the storage containers into a buffer area;
the first filling unit is used for filling the data set corresponding to the audio length to be processed into all the storage containers in the buffer area;
and the first reading unit is used for reading the data set in the storage container from the buffer zone according to the target audio length and sending the read data set to a target recognition system as data to be recognized.
9. A computer device comprising a memory and a processor, the memory having stored thereon a computer program, the processor implementing the method according to any of claims 1-7 when executing the computer program.
10. A computer readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any of claims 1-7.
CN202310243176.9A 2023-03-14 2023-03-14 Audio processing method, device, computer equipment and storage medium Pending CN116246655A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310243176.9A CN116246655A (en) 2023-03-14 2023-03-14 Audio processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310243176.9A CN116246655A (en) 2023-03-14 2023-03-14 Audio processing method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116246655A true CN116246655A (en) 2023-06-09

Family

ID=86634976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310243176.9A Pending CN116246655A (en) 2023-03-14 2023-03-14 Audio processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116246655A (en)

Similar Documents

Publication Publication Date Title
CN108028790B (en) Abnormality detection method, abnormality detection device, and abnormality detection system
US11113382B2 (en) Vehicle network system whose security is improved using message authentication code
KR101921771B1 (en) Method and apparatus for adapting the data transmission security in a serial bus system
KR101921357B1 (en) Method and device for increasing the data transmission capacity in a serial bus system
US7769935B2 (en) Communication system with master and slave exchanging control data in predetermined communication period
CN113014464B (en) Abnormality detection method, abnormality detection device, and abnormality detection system
US11511748B2 (en) Velocity trajectory generation method, apparatus, and storage medium
CN106130972B (en) resource access control method and device
CN112889246A (en) Abnormality determination method, abnormality determination device, and program
JP2009212939A (en) Relay device, communication system, and communication method
CN110100243A (en) A kind of storage method of video data, device and terminal device
US10259469B2 (en) Methods and apparatus to selectively disable functions of electronic control units
CN116246655A (en) Audio processing method, device, computer equipment and storage medium
US10339091B2 (en) Packet data processing method, apparatus, and system
EP3503479B1 (en) Flow entry management method and device
JP6388093B1 (en) Data transmission apparatus, data processing system, and data transmission method
CN113110414B (en) Robot meal delivery method, meal delivery robot and computer readable storage medium
CN113632510B (en) Conversion device, conversion method, and recording medium
CN111417908A (en) ECU (electronic control Unit) recognizer, and recognition method, system, equipment and medium thereof
JP7087949B2 (en) TODO management device, TODO management method, and TODO management program
CN207481769U (en) A kind of vehicle switch function system for prompting
CN114827337B (en) Method, device, equipment and storage medium for adjusting volume
US20230306101A1 (en) System, vehicle, and method
KR101876636B1 (en) Apparatus and Method for transmitting/receiving message
CN115589583A (en) Information processing device, vehicle, and information processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination