CN105632509B - A kind of audio-frequency processing method and apparatus for processing audio - Google Patents

A kind of audio-frequency processing method and apparatus for processing audio Download PDF

Info

Publication number
CN105632509B
CN105632509B CN201410629188.6A CN201410629188A CN105632509B CN 105632509 B CN105632509 B CN 105632509B CN 201410629188 A CN201410629188 A CN 201410629188A CN 105632509 B CN105632509 B CN 105632509B
Authority
CN
China
Prior art keywords
audio data
processing
data
audio
unit
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.)
Active
Application number
CN201410629188.6A
Other languages
Chinese (zh)
Other versions
CN105632509A (en
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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201410629188.6A priority Critical patent/CN105632509B/en
Publication of CN105632509A publication Critical patent/CN105632509A/en
Application granted granted Critical
Publication of CN105632509B publication Critical patent/CN105632509B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses a kind of audio-frequency processing method and apparatus for processing audio, wherein a kind of audio-frequency processing method includes: to obtain audio data to be treated;High-pass filtering processing and gain control processing are successively carried out to audio data, obtain the high fdrequency component of audio data;Low-pass filtering treatment and gain control processing are successively carried out to audio data, obtain the low frequency component of audio data;Obtain the top N numerical value of the low frequency component, and by top N numerical value preceding N/2 bit value and rear N/2 bit value carry out convolution algorithm processing with carry-over factor respectively after sum and carry out M rank filtering operation, obtain the high-frequency-band data of low frequency component;The first harmonic and second harmonic of generation high-frequency-band data simultaneously carry out convolution algorithm processing, obtain virtual sub-woofer data;The high fdrequency component of above-mentioned audio data and virtual sub-woofer data are subjected to output after logical addition operation treated audio data;Technical solution provided by the invention can effectively improve the bass effect of audio.

Description

A kind of audio-frequency processing method and apparatus for processing audio
Technical field
The present invention relates to audio areas, and in particular to a kind of audio-frequency processing method and apparatus for processing audio.
Background technique
Audio is the pith of multimedia equipment, therefore the impression that the quality of sound can directly influence user does not have The sound having had, even if it is also defective that the application of multimedia equipment again more.
With user to the volume of multimedia equipment (such as smart television, handheld device and other electronic equipments) and outside The requirement of shape, multimedia equipment also increasingly develops toward light, thin direction at present, however, this makes the loudspeaker of multimedia equipment Size is also greatly limited, and it is higher that the limitation of size causes loudspeaker resonance frequency, therefore can not give off and be lower than The signal component of its resonance frequency, so as to cause the missing of the bass part of audio.Although being set low by matching for multimedia equipment Sound big gun speaker can restore the bass part of audio, however, being multimedia equipment since the price of subwoofer speaker is usually higher Configuration subwoofer speaker undoubtedly increases user cost, meanwhile, the volume of subwoofer speaker is usually larger, is also not easy to user and takes Band.
Summary of the invention
The present invention provides a kind of audio-frequency processing method and apparatus for processing audio, for improving the bass effect of audio.
First aspect present invention provides a kind of audio-frequency processing method, comprising:
Obtain audio data to be treated;
High-pass filtering processing and gain control processing are successively carried out to above-mentioned audio data, obtain the height of above-mentioned audio data Frequency component;
Low-pass filtering treatment and gain control processing are successively carried out to above-mentioned audio data, obtain the low of above-mentioned audio data Frequency component;
Obtain the top N numerical value of above-mentioned low frequency component, wherein above-mentioned N is even number;
By in above-mentioned top N numerical value preceding N/2 bit value and rear N/2 bit value rolled up respectively with preset carry-over factor It sums after product calculation process;
The data that above-mentioned summation is obtained carry out M rank filtering operation, obtain the high-frequency-band data of above-mentioned low frequency component, In, above-mentioned M is greater than or equal to 2;
Generate the first harmonic and second harmonic of above-mentioned high-frequency-band data;
Above-mentioned first harmonic and above-mentioned second harmonic are subjected to convolution algorithm processing, obtain virtual sub-woofer data;
The high fdrequency component of above-mentioned audio data and above-mentioned virtual sub-woofer data are subjected to logical addition operation, after obtaining processing Audio data;
Export treated audio data.
Another aspect of the present invention provides a kind of apparatus for processing audio, comprising:
First acquisition unit, for obtaining audio data to be treated;
High pass filter unit, for carrying out high-pass filtering processing to above-mentioned audio data;
First gain control unit, the audio data for handling above-mentioned high pass filter unit carry out gain control Processing, obtains the high fdrequency component of above-mentioned audio data;
Low-pass filter unit, for carrying out low-pass filtering treatment to above-mentioned audio data;
Second gain control unit, the audio data for handling above-mentioned low-pass filter unit carry out gain control Processing, obtains the low frequency component of above-mentioned audio data;
Second acquisition unit, for obtaining the top N numerical value of above-mentioned low frequency component, wherein above-mentioned N is even number;
Convolution summation unit, for by above-mentioned top N numerical value preceding N/2 bit value and rear N/2 bit value respectively and in advance If carry-over factor carry out convolution algorithm processing after sum;
Filtering operation unit, the data for above-mentioned convolution summation unit to be summed carry out M rank filtering operation, obtain The high-frequency-band data of above-mentioned low frequency component, wherein above-mentioned M is greater than or equal to 2;
Generation unit, for generating the first harmonic and second harmonic of above-mentioned high-frequency-band data;
Convolution algorithm unit obtains void for above-mentioned first harmonic and above-mentioned second harmonic to be carried out convolution algorithm processing Quasi- sub-woofer data;
Computing unit, the high fdrequency component and above-mentioned convolution algorithm unit for exporting above-mentioned first gain control unit are defeated Virtual sub-woofer data out carries out logical addition operation, the audio data that obtains that treated;
Output unit, treated for exporting above-mentioned computing unit audio data.
From above-mentioned technical proposal of the present invention it is found that the present invention can be the difference of the high band harmonic wave of bass fundamental frequency using human ear Frequency sound is heard as this physiologic character of the tone of original bass fundamental frequency, by carrying out high-pass filtering processing, low to audio data Pass filter goes out and gain control processing obtains the high fdrequency component and low frequency component of audio data, and obtains the low frequency point of audio data The top N numerical value of amount carries out convolution algorithm summation, the filtering processing of M rank and harmonic management, obtains virtual sub-woofer data, then will be first The high fdrequency component of the audio of preceding acquisition and virtual sub-woofer data carry out logical addition operation, thus the audio number that obtains that treated According to by technical solution of the present invention, since treated, audio data includes through handling obtained virtual sub-woofer data, energy The reproduction for enough improving the bass frequencies of audio data, effectively improves the bass effect of audio.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other drawings based on these drawings.
Fig. 1 is a kind of audio-frequency processing method one embodiment flow diagram provided by the invention;
Fig. 2 is a kind of another embodiment flow diagram of audio-frequency processing method provided by the invention;
Fig. 3 is a kind of apparatus for processing audio one embodiment structural schematic diagram provided by the invention;
Fig. 4 is a kind of another example structure schematic diagram of apparatus for processing audio provided by the invention.
Specific embodiment
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described reality Applying example is only a part of the embodiment of the present invention, and not all embodiments.Based on the embodiments of the present invention, the common skill in this field Art personnel every other embodiment obtained without making creative work belongs to the model that the present invention protects It encloses.
One of embodiment of the present invention audio-frequency processing method is described below, referring to Fig. 1, the embodiment of the present invention In audio-frequency processing method include:
101, audio data to be treated is obtained;
In the embodiment of the present invention, apparatus for processing audio obtains audio data to be treated from multimedia equipment, wherein needs Audio data to be processed refers to the audio data that will be played or the audio data that will be pushed to other application.
Optionally, apparatus for processing audio obtains high-definition multimedia interface (HDMI, High Definition Multimedia Interface) signal, and from isolating audio data in HDMI signal and being stored in XY memory, it is needing Audio data is read from XY memory when processing.It should be noted that the XY memory in the embodiment of the present invention is a kind of high The storage system of performance may be configured to read two source operands simultaneously and write a purpose behaviour in one cycle It counts, to greatly improve the storage efficiency of data.
Optionally, for the audio data of two-channel, apparatus for processing audio obtains left channel audio number from multimedia equipment According to right channel audio data (such as left channel audio data and right channel audio data are read from aforementioned XY memory), and Subsequent method flow is executed for left channel audio data and right channel audio data respectively.
102, high-pass filtering processing and gain control processing are successively carried out to above-mentioned audio data, obtain above-mentioned audio data High fdrequency component;
In the embodiment of the present invention, high-pass filtering processing is carried out to audio data and mainly sets audio data in advance with one group Fixed filter coefficient carries out multiply-accumulate operation, realizes the effect for filtering out the low frequency component of audio data, wherein the filtering The high-pass filtering effect of device coefficient according to actual needs is set.Gain control processing will mainly be handled by high-pass filtering Data afterwards are multiplied by preset gain coefficient, wherein the gain effect of the gain coefficient according to actual needs is set. Specifically, existing high-pass filtering technology and gain are referred to the high-pass filtering processing of audio data and gain control processing Control technology realizes that details are not described herein again.
It optionally, can be distinctive embedded by ARC processor if the ARC processor architecture that apparatus for processing audio uses Assembly code and 64 bit accumulators complete above-mentioned high-pass filtering treatment process, to make full use of 64 bit accumulators of ARC processor The preservation in multinomial operation to intermediate result is reduced, assignment statement optimization algorithm structure is simplified, improves operation efficiency.
103, low-pass filtering treatment and gain control processing are successively carried out to above-mentioned audio data, obtain above-mentioned audio data Low frequency component;
In the embodiment of the present invention, low-pass filtering treatment is carried out to audio data and mainly sets audio data in advance with one group Fixed filter coefficient carries out multiply-accumulate operation, realizes the effect for filtering out the high fdrequency component of audio data, wherein the filtering The low-pass filter effect of device coefficient according to actual needs is set.Gain control processing will mainly pass through low-pass filtering treatment Data afterwards are multiplied by preset gain coefficient, wherein the gain effect of the gain coefficient according to actual needs is set. Specifically, existing low-pass filtering technique and gain are referred to the low-pass filtering treatment of audio data and gain control processing Control technology realizes that details are not described herein again.
It optionally, can be distinctive embedded by ARC processor if the ARC processor architecture that apparatus for processing audio uses Assembly code and 64 bit accumulators complete above-mentioned low-pass filtering treatment process, to make full use of 64 bit accumulators of ARC processor The preservation in multinomial operation to intermediate result is reduced, assignment statement optimization algorithm structure is simplified, improves operation efficiency.
104, the top N numerical value of above-mentioned low frequency component is obtained, wherein above-mentioned N is even number;
Optionally, above-mentioned N takes the even number value more than or equal to 6.Certainly, above-mentioned N can also take the even number value less than 6, this Place is not construed as limiting.
For example, when above-mentioned N takes 6, then first 6 of the low frequency component that apparatus for processing audio obtaining step 103 exports Numerical value.
105, by above-mentioned top N numerical value preceding N/2 bit value and rear N/2 bit value respectively with preset carry-over factor into It sums after the processing of row convolution algorithm;
In the embodiment of the present invention, preceding N/2 bit value in the top N numerical value that apparatus for processing audio obtains step 104 with Preset carry-over factor carries out convolution algorithm processing, it is assumed that the data obtained after processing are known as the first data, step 104 is obtained The rear N/2 bit value and carry-over factor progress convolution algorithm processing in top N numerical value obtained, it is assumed that the number that will be obtained after processing It is stated to be the second data, then the first data and the second data is summed.
Specifically, above-mentioned convolution algorithm, which can refer to existing convolution algorithm formula, realizes that details are not described herein again.
106, the data for obtaining above-mentioned summation carry out M rank filtering operation, obtain the high-frequency-band data of above-mentioned low frequency component;
Wherein, above-mentioned M is greater than or equal to 2.
It illustrates, it is assumed that above-mentioned M takes 2, then the data that step 105 summation obtains are carried out 2 ranks by apparatus for processing audio The obtained data of step 105 summation are first carried out 1 rank filtering operation by filtering operation, optionally, apparatus for processing audio, then by 1 rank The data of filtering operation output carry out 2 rank filtering operations.
107, the high-frequency-band data after the disposal of gentle filter is generated into the one of above-mentioned high-frequency-band data by harmonic generation device Subharmonic and second harmonic;
In the embodiment of the present invention, apparatus for processing audio passes through the low frequency component that harmonic generation device obtaining step 106 obtains The first harmonic and second harmonic of high-frequency-band data.Harmonic generation device in the embodiment of the present invention is by one group of specific harmonic generation Coefficient and the quadratic polynomial operation composition based on harmonic generation coefficient.Specifically, the principle and structure of harmonic generation device It is referred to existing harmonic generation device, details are not described herein again.
It optionally, can be in the first harmonic and two for generating above-mentioned high-frequency-band data in order to further decrease noise jamming Before subharmonic, the disposal of gentle filter first is carried out to the high-frequency-band data that step 106 exports, such as by ultramagnifier to step The high-frequency-band data of 106 outputs carries out the disposal of gentle filter, regenerates one of the high-frequency-band data after the disposal of gentle filter Subharmonic and second harmonic.
108, above-mentioned first harmonic and second harmonic are subjected to convolution algorithm processing, obtain virtual sub-woofer data;
Specifically, above-mentioned convolution algorithm, which can refer to existing convolution algorithm formula, realizes that details are not described herein again.
109, the high fdrequency component of above-mentioned audio data and above-mentioned virtual sub-woofer data are subjected to logical addition operation, obtained everywhere Audio data after reason;
In the embodiment of the present invention, step 102 is obtained the high fdrequency component of audio data to apparatus for processing audio and step 108 obtains The virtual sub-woofer data arrived carries out logical addition operation, is integrated into the complete audio data of a frame.
Optionally, symbol maximum positive integer (or has less than 16 if the result of above-mentioned logical addition operation is greater than 16 Symbol minimum negative integer), then take this 16 maximum positive integers (or this 16 minimum negative integers) as treated audio data.
110, treated audio data is exported;
Specifically, the audio data that apparatus for processing audio can obtain step 109 is output in power amplifier and drives loudspeaking The audio data is passed through in device output, alternatively, the audio data that apparatus for processing audio can obtain step 109 is output to other answer In, is handled so that other application is based on the audio data, be not construed as limiting herein.
Optionally, the embodiment of the present invention provides a user virtual bass control interface, and user passes through the virtual bass control Interface can be configured and be managed to virtual bass, for example, controlling virtual bass function by the virtual bass control interface Open and close, when user open virtual bass function when, Fig. 1 implement in method flow can just execute, when user closing When virtual bass function, apparatus for processing audio (such as reads audio data from XY memory, which deposits obtaining audio data Store in reservoir from the audio data separated in HDMI signal) after, it writes direct in power amplifier and is somebody's turn to do by loudspeaker output Audio data.Further, user can also be adjusted the bass effect of virtual bass by the virtual controlling interface, example Such as, virtual bass control instruction is sent to apparatus for processing audio by the virtual bass control interface, which refers to The carry-over factor needed is indicated in order, so that apparatus for processing audio is after receiving the virtual bass control instruction, according to the void Quasi- bass control instruction adjusts transmission system, and in the step 105 of embodiment shown in Fig. 1, the low frequency point that step 104 is obtained Preceding N/2 bit value and rear N/2 bit value in the top N numerical value of amount carry out at convolution algorithm with carry-over factor adjusted respectively It sums after reason.Optionally, above-mentioned configuration and management to virtual bass can pass through the consumer electronics control channel of HDMI interface (CEC, Consumer Electronics Control) realizes that, to improve order efficiency of transmission, the CEC of HDMI interface can make Various control order is transmitted for the transmission channel of custom command, the execution of order mainly passes through customized association shown in table 1 View is realized.
Table 1
SYNC SN Len CMD CRC
In table 1, SYNC field is packet header sync byte, and the fixation value of usual SYNC field is Ox5A5A; The length of SN field is 16bit, wherein packet sequence number is transmitted in preceding 12bit expressions in SN field, is sent every time tired Add, rear 4bit expression identification codes in SN field are used to indicate re-transmission or response, it should be noted that if transmission data When packet is confirms character (ACK, Acknowledgement) data packet, the value of SN field does not add up;Len field is used to indicate number According to length, the maximum length of data packet is limited to 256 bytes;CMD field is for carrying control command word;Crc field is for holding It carries cyclic redundancy check code (CRC, Cyclic Redundancy Check).Specifically, the transmission of virtual bass control instruction can Mainly guaranteed by following mechanism by property:
Data are sent: the data sent will be needed to be packaged as data packet;The value of SN field is added one;According to the SN of data packet Field judges whether the data packet is that the data packet for needing response is then connect by HDMI if it is the data packet for not needing response The CEC layer of mouth sends the data packet, if it is the data packet for needing response, then sends the data by the CEC layer of HDMI interface Packet, and the data packet is stored in the time-out management medium packet to be answered of queue should if receiving the response bag of the data packet Data packet removes time-out management queue and retransmits the data packet if not receiving the response bag of the data packet after a time out and lay equal stress on New timing, until the response bag of the data packet is received, alternatively, still not receiving the data packet after retransmitting the data packet three times Response bag, exit the transmission flow of the data packet, and report this to virtual bass application layer and send failure information, complete mistake Processing.
Data receiver: upon reception of the data packet, CRC check is carried out to the data packet, if CRC check mistake, abandons The data packet judges whether the data packet is response according to the SN field in the data packet if CRC check is correct Packet is deleted the corresponding data packet in time-out management queue, if the data packet is response bag if the data packet is not Response bag then further judges whether the data packet needs response, if desired replys, then is completed by the CEC layer of HDMI interface Then data packet is passed to virtual bass application layer and is parsed and controlled operation processing, if not needing response, directly by response It connects and data packet is passed into virtual bass application layer is parsed and controlled operation processing.
Optionally, the apparatus for processing audio in the embodiment of the present invention can integrate in module TV, and mode TV includes Display screen end and smart card end two parts, are active link between display screen end and smart card end, and smart card end can be by inserting Slot is adapted to connection with display end, and display screen end is data exposition, the output etc. including image and sound.Specifically, above-mentioned Apparatus for processing audio is integrated in the display screen end of module TV, after the display screen end electrifying startup of module TV, after initial Stage registers the apparatus for processing audio in the embodiment of the present invention into sound card driver, and display screen end sound card driver is believed from HDMI It is isolated in number in audio data deposit XY memory, if by registering above-mentioned apparatus for processing audio in sound card driver, Method flow shown in FIG. 1 is then executed by above-mentioned apparatus for processing audio, if above-mentioned by not registering in sound card driver Audio data in XY memory is then written power amplifier and passes through loudspeaker output by apparatus for processing audio.It further, will be to audio The function management of processing unit is integrated in the smart card end of above-mentioned module TV, and user can pass through the intelligence of above-mentioned module TV Is realized to the virtual bass of apparatus for processing audio by flexible management and configuration for card end.
It should be noted that the apparatus for processing audio in the embodiment of the present invention also can integrate in other multimedia equipments (such as handheld device, car-mounted terminal etc.), certainly, above-mentioned apparatus for processing audio is also possible to independently of multimedia equipment, and energy The device enough communicated by wired mode or wireless mode and the multimedia equipment, is not construed as limiting herein.
From above-mentioned technical proposal of the present invention it is found that the present invention can be the difference of the high band harmonic wave of bass fundamental frequency using human ear Frequency sound is heard as this physiologic character of the tone of original bass fundamental frequency, by carrying out high-pass filtering processing, low to audio data Pass filter goes out and gain control processing obtains the high fdrequency component and low frequency component of audio data, and obtains the low frequency point of audio data The top N numerical value of amount carries out convolution algorithm summation, the filtering processing of M rank and harmonic management, obtains virtual sub-woofer data, then will be first The high fdrequency component of the audio of preceding acquisition and virtual sub-woofer data carry out logical addition operation, thus the audio number that obtains that treated According to by technical solution of the present invention, since treated, audio data includes through handling obtained virtual sub-woofer data, energy The reproduction for enough improving the bass frequencies of audio data, effectively improves the bass effect of audio.
Since the data type of audio data is usually floating number, it is contemplated that multimedia equipment processing floating number efficiency compares It is low, in order to improve arithmetic speed, after converting the audio data of integer type for the audio data of floating type in the embodiment of the present invention It is handled again.Referring to Fig. 2, the audio-frequency processing method in the embodiment of the present invention, comprising:
201, audio data to be treated is obtained;
In the embodiment of the present invention, apparatus for processing audio obtains audio data to be treated from multimedia equipment, wherein needs Audio data to be processed refers to the audio data that will be played or the audio data that will be pushed to other application.
Optionally, apparatus for processing audio obtains HDMI signal, and isolates audio data from HDMI signal and be stored in XY In memory, audio data is read from XY memory when needing to handle.It should be noted that the XY in the embodiment of the present invention Memory is a kind of high performance storage system, may be configured to read two source operands simultaneously and in a cycle In write a destination operand, to greatly improve the storage efficiency of data.
Optionally, for the audio data of two-channel, apparatus for processing audio obtains left channel audio number from multimedia equipment According to right channel audio data (such as left channel audio data and right channel audio data are read from aforementioned XY memory), and Subsequent method flow is executed for left channel audio data and right channel audio data respectively.
202, by above-mentioned audio data multiplied by presupposition multiple;
In the embodiment of the present invention, the data type of audio data is floating number, after step 201 obtains audio data, sound The audio data that frequency processing device obtains step 201 is multiplied by presupposition multiple, that is, the decimal point of audio data moved to right, it will The audio data of floating type is converted to the audio data of integer type.Specifically, above-mentioned multiple is according to the number of actual audio data It is set according to precision, if for example, the precision setting of audio data is to be accurate to after decimal point three, then above-mentioned multiple can be with Be set as 1000, after step 201 obtains audio data, audio data that apparatus for processing audio obtains step 201 multiplied by 1000, to guarantee to be converted to the audio data into the audio data of integer type.
203, high-pass filtering processing and gain control processing are successively carried out to above-mentioned audio data, obtain above-mentioned audio data High fdrequency component;
In the embodiment of the present invention, the audio data for the integer type that step 202 is converted to carry out high-pass filtering processing and Gain control processing.
Specifically, above-mentioned High frequency filter processing mainly carries out audio data and one group of preset filter coefficient Multiply-accumulate operation realizes the effect for filtering out the low frequency component of audio data, wherein the filter coefficient is according to actual needs High-pass filtering effect set.Above-mentioned gain control processing mainly will be by high-pass filtering treated data multiplied by pre- The gain coefficient first set, wherein the gain effect of the gain coefficient according to actual needs is set.Specifically, to audio High-pass filtering processing and gain the control processing of data are referred to existing high-pass filtering technology and gain control is realized, Details are not described herein again.
It optionally, can be distinctive embedded by ARC processor if the ARC processor architecture that apparatus for processing audio uses Assembly code and 64 bit accumulators complete above-mentioned high-pass filtering treatment process, to reduce assignment statement optimization algorithm structure, improve Operation efficiency.
204, low-pass filtering treatment and gain control processing are successively carried out to above-mentioned audio data, obtain above-mentioned audio data Low frequency component;
In the embodiment of the present invention, the audio data for the integer type that step 202 is converted to carry out low-pass filtering treatment and Gain control processing.
Specifically, above-mentioned low-pass filtering treatment mainly carries out audio data and one group of preset filter coefficient Multiply-accumulate operation realizes the effect for filtering out the high fdrequency component of audio data, wherein the filter coefficient is according to actual needs Low-pass filter effect set.Above-mentioned gain control processing is mainly by the data after low-pass filtering treatment multiplied by pre- The gain coefficient first set, wherein the gain effect of the gain coefficient according to actual needs is set.Specifically, to audio The low-pass filtering treatment of data and gain control processing are referred to existing low-pass filtering technique and gain control is realized, Details are not described herein again.
It optionally, can be distinctive embedded by ARC processor if the ARC processor architecture that apparatus for processing audio uses Assembly code and 64 bit accumulators complete above-mentioned low-pass filtering treatment process, to make full use of 64 bit accumulators of ARC processor The preservation in multinomial operation to intermediate result is reduced, assignment statement optimization algorithm structure is simplified, improves operation efficiency.
205, the top N numerical value of above-mentioned low frequency component is obtained, wherein above-mentioned N is even number;
Optionally, above-mentioned N takes the even number value more than or equal to 6.Certainly, above-mentioned N can also take the even number value less than 6, this Place is not construed as limiting.
For example, when above-mentioned N takes 6, then first 6 of the low frequency component that apparatus for processing audio obtaining step 204 exports Numerical value.
206, by above-mentioned top N numerical value preceding N/2 bit value and rear N/2 bit value respectively with preset carry-over factor into It sums after the processing of row convolution algorithm;
In the embodiment of the present invention, preceding N/2 bit value in the top N numerical value that apparatus for processing audio obtains step 205 with Preset carry-over factor carries out convolution algorithm processing, it is assumed that the data obtained after processing are known as the first data, step 205 is obtained The rear N/2 bit value and carry-over factor progress convolution algorithm processing in top N numerical value obtained, it is assumed that the number that will be obtained after processing It is stated to be the second data, then the first data and the second data is summed.
Specifically, above-mentioned convolution algorithm, which can refer to existing convolution algorithm formula, realizes that details are not described herein again.
207, the data for obtaining above-mentioned summation carry out M rank filtering operation, obtain the high-frequency-band data of above-mentioned low frequency component;
Wherein, above-mentioned M is greater than or equal to 2.
It illustrates, it is assumed that above-mentioned M takes 2, then the data that step 206 summation obtains are carried out 2 ranks by apparatus for processing audio The obtained data of step 206 summation are first carried out 1 rank filtering operation by filtering operation, optionally, apparatus for processing audio, then by 1 rank The data of filtering operation output carry out 2 rank filtering operations.
208, the high-frequency-band data after the disposal of gentle filter is generated into the one of above-mentioned high-frequency-band data by harmonic generation device Subharmonic and second harmonic;
In the embodiment of the present invention, apparatus for processing audio passes through the low frequency component that harmonic generation device obtaining step 207 obtains The first harmonic and second harmonic of high-frequency-band data.Harmonic generation device in the embodiment of the present invention is by one group of specific harmonic generation Coefficient and the quadratic polynomial operation composition based on harmonic generation coefficient.Specifically, the principle and structure of harmonic generation device It is referred to existing harmonic generation device, details are not described herein again.
It optionally, can be in the first harmonic and two for generating above-mentioned high-frequency-band data in order to further decrease noise jamming Before subharmonic, the disposal of gentle filter first is carried out to the high-frequency-band data that step 207 exports, such as by ultramagnifier to step The high-frequency-band data of 207 outputs carries out the disposal of gentle filter, regenerates one of the high-frequency-band data after the disposal of gentle filter Subharmonic and second harmonic.
209, above-mentioned first harmonic and second harmonic are subjected to convolution algorithm processing, obtain virtual sub-woofer data;
Specifically, above-mentioned convolution algorithm, which can refer to existing convolution algorithm formula, realizes that details are not described herein again.
210, the high fdrequency component of above-mentioned audio data and above-mentioned virtual sub-woofer data are subjected to logical addition operation, obtained everywhere Audio data after reason;
In the embodiment of the present invention, step 203 is obtained the high fdrequency component of audio data to apparatus for processing audio and step 209 obtains The virtual sub-woofer data arrived carries out logical addition operation, is integrated into the complete audio data of a frame.
Optionally, symbol maximum positive integer (or has less than 16 if the result of above-mentioned logical addition operation is greater than 16 Symbol minimum negative integer), then take this 16 maximum positive integers (or this 16 minimum negative integers) as treated audio data.
211, by the audio data obtained after above-mentioned logical addition operation divided by above-mentioned presupposition multiple;
The audio data that audio processing data obtain step 210 is divided by presupposition multiple, wherein the multiple and step 202 In multiple it is consistent, the audio data of integer type is reduced to the audio data of floating type.
212, treated audio data is exported;
Specifically, apparatus for processing audio can treated that audio data is output in power amplifier and drives raises by step 211 Sound device exports the audio data, alternatively, the audio data that apparatus for processing audio can obtain step 211 is output to other application In, it is handled so that other application is based on the audio data, is not construed as limiting herein.
Optionally, the embodiment of the present invention provides a user virtual bass control interface, and user passes through the virtual bass control Interface can be configured and be managed to virtual bass, for example, controlling virtual bass function by the virtual bass control interface Open and close, when user open virtual bass function when, Fig. 2 implement in method flow can just execute, when user closing When virtual bass function, apparatus for processing audio (such as reads audio data from XY memory, which deposits obtaining audio data Store in reservoir from the audio data separated in HDMI signal) after, it writes direct in power amplifier and is somebody's turn to do by loudspeaker output Audio data.Further, user can also be adjusted the bass effect of virtual bass by the virtual controlling interface, example Such as, virtual bass control instruction is sent to apparatus for processing audio by the virtual bass control interface, which refers to The carry-over factor needed is indicated in order, so that apparatus for processing audio is after receiving the virtual bass control instruction, according to the void Quasi- bass control instruction adjusts transmission system, and in the step 206 of embodiment shown in Fig. 2, the low frequency point that step 205 is obtained Preceding N/2 bit value and rear N/2 bit value in the top N numerical value of amount carry out at convolution algorithm with carry-over factor adjusted respectively It sums after reason.Optionally, above-mentioned configuration and management to virtual bass can be realized by the CEC of HDMI interface, to improve life Efficiency of transmission is enabled, the CEC of HDMI interface can transmit various control order as the transmission channel of custom command, order It executes and is mainly realized by custom protocol shown in above-mentioned table 1.
Specifically, the transmission reliability of virtual bass control instruction is mainly guaranteed by following mechanism:
Data are sent: the data sent will be needed to be packaged as data packet;The value of SN field is added one;According to the SN of data packet Field judges whether the data packet is that the data packet for needing response is then connect by HDMI if it is the data packet for not needing response The CEC layer of mouth sends the data packet, if it is the data packet for needing response, then sends the data by the CEC layer of HDMI interface Packet, and the data packet is stored in the time-out management medium packet to be answered of queue should if receiving the response bag of the data packet Data packet removes time-out management queue and retransmits the data packet if not receiving the response bag of the data packet after a time out and lay equal stress on New timing, until the response bag of the data packet is received, alternatively, still not receiving the data packet after retransmitting the data packet three times Response bag, exit the transmission flow of the data packet, and report this to virtual bass application layer and send failure information, complete mistake Processing.
Data receiver: upon reception of the data packet, CRC check is carried out to the data packet, if CRC check mistake, abandons The data packet judges whether the data packet is response according to the SN field in the data packet if CRC check is correct Packet is deleted the corresponding data packet in time-out management queue, if the data packet is response bag if the data packet is not Response bag then further judges whether the data packet needs response, if desired replys, then is completed by the CEC layer of HDMI interface Then data packet is passed to virtual bass application layer and is parsed and controlled operation processing, if not needing response, directly by response It connects and data packet is passed into virtual bass application layer is parsed and controlled operation processing.
Optionally, the apparatus for processing audio in the embodiment of the present invention can integrate in module TV, and mode TV includes Display screen end and smart card end two parts, are active link between display screen end and smart card end, and smart card end can be by inserting Slot is adapted to connection with display end, and display screen end is data exposition, the output etc. including image and sound.Specifically, above-mentioned Apparatus for processing audio is integrated in the display screen end of module TV, after the display screen end electrifying startup of module TV, after initial Stage registers the apparatus for processing audio in the embodiment of the present invention into sound card driver, and display screen end sound card driver is believed from HDMI It is isolated in number in audio data deposit XY memory, if by registering above-mentioned apparatus for processing audio in sound card driver, Method flow shown in FIG. 1 is then executed by above-mentioned apparatus for processing audio, if above-mentioned by not registering in sound card driver Audio data in XY memory is then written power amplifier and passes through loudspeaker output by apparatus for processing audio.It further, will be to audio The function management of processing unit is integrated in the smart card end of above-mentioned module TV, and user can pass through the intelligence of above-mentioned module TV Is realized to the virtual bass of apparatus for processing audio by flexible management and configuration for card end.
It should be noted that the apparatus for processing audio in the embodiment of the present invention also can integrate in other multimedia equipments (such as handheld device, car-mounted terminal etc.), certainly, above-mentioned apparatus for processing audio is also possible to independently of multimedia equipment, and energy The device enough communicated by wired mode or wireless mode and the multimedia equipment, is not construed as limiting herein.
From above-mentioned technical proposal of the present invention it is found that the present invention can be the difference of the high band harmonic wave of bass fundamental frequency using human ear Frequency sound is heard as this physiologic character of the tone of original bass fundamental frequency, by carrying out high-pass filtering processing, low to audio data Pass filter goes out and gain control processing obtains the high fdrequency component and low frequency component of audio data, and obtains the low frequency point of audio data The top N numerical value of amount carries out convolution algorithm summation, the filtering processing of M rank and harmonic management, obtains virtual sub-woofer data, then will be first The high fdrequency component of the audio of preceding acquisition and virtual sub-woofer data carry out logical addition operation, thus the audio number that obtains that treated According to by technical solution of the present invention, since treated, audio data includes through handling obtained virtual sub-woofer data, energy The reproduction for enough improving the bass frequencies of audio data, effectively improves the bass effect of audio.Further, audio data is being got Afterwards, it is handled again after the audio data of floating type to be first converted to the audio data of integer type, operation speed can be effectively improved Rate, and then improve the treatment effeciency to audio data.
The embodiment of the present invention also provides a kind of apparatus for processing audio, as shown in figure 3, the audio processing in the embodiment of the present invention Device 300, comprising:
First acquisition unit 301, for obtaining audio data to be treated;
High pass filter unit 302, the audio data for obtaining to first acquisition unit 301 carry out high-pass filtering processing;
First gain control unit 303, the audio data for obtaining to the processing of high pass filter unit 302 carry out gain control System processing, obtains the high fdrequency component of above-mentioned audio data;
Low-pass filter unit 304, the audio data for obtaining to first acquisition unit 301 carry out low-pass filtering treatment;
Second gain control unit 305, the audio data for obtaining to the processing of low-pass filter unit 304 carry out gain control System processing, obtains the low frequency component of above-mentioned audio data;
Second acquisition unit 306, for obtaining the top N numerical value of above-mentioned low frequency component, wherein above-mentioned N is even number;
Convolution summation unit 307, for by above-mentioned top N numerical value preceding N/2 bit value and rear N/2 bit value respectively with Preset carry-over factor is summed after carrying out convolution algorithm processing;
Filtering operation unit 308, for convolution summation unit 307 to be summed, obtained data carry out M rank filtering operation, obtain To the high-frequency-band data of above-mentioned low frequency component, wherein above-mentioned M is greater than or equal to 2;
Generation unit 309, for generating the first harmonic and second harmonic of above-mentioned high-frequency-band data;
Convolution algorithm unit 310 is obtained for above-mentioned first harmonic and above-mentioned second harmonic to be carried out convolution algorithm processing Virtual sub-woofer data;
Computing unit 311, high fdrequency component and convolution algorithm unit 310 for exporting the first gain control unit 303 The virtual sub-woofer data of output carries out logical addition operation, the audio data that obtains that treated;
Output unit 312, treated for exporting computing unit 311 audio data.
Optionally, on the basis of embodiment shown in Fig. 3, first acquisition unit 301 is specifically used for: obtaining left channel audio Data and right channel audio data;High pass filter unit 302, the first gain control unit 303, low-pass filter unit 304, second Gain control unit 305, second acquisition unit 306, convolution summation unit 307, filtering operation unit 308, generation unit 309, Convolution algorithm unit 310, computing unit 311 and output unit 312 are to above-mentioned left channel audio data and above-mentioned right channel audio Data are respectively processed.Specifically, first acquisition unit 301 includes: sub- acquisition list on the basis of embodiment shown in Fig. 3 Member, for obtaining HDMI signal;Audio discrete memory location, for isolating audio data from above-mentioned HDMI signal and being stored in In XY memory;Reading unit, for reading audio data from above-mentioned XY memory.Further, above-mentioned reading unit is specific For: left channel audio data and right channel audio data are read from above-mentioned XY memory;High pass filter unit 302, first Gain control unit 303, low-pass filter unit 304, the second gain control unit 305, second acquisition unit 306, convolution summation Unit 307, filtering operation unit 308, generation unit 309, convolution algorithm unit 310, computing unit 311 and output unit 312 Above-mentioned left channel audio data and above-mentioned right channel audio data are respectively processed.
Optionally, in the embodiment of the present invention, apparatus for processing audio further include: smoothing processing unit, for being transported to filtering It calculates the high-frequency-band data that unit 308 exports and carries out the disposal of gentle filter;Generation unit 309 is specifically used for: will be through above-mentioned smooth place High-frequency-band data after managing unit the disposal of gentle filter generates the high frequency of above-mentioned smoothing processing unit output by harmonic generation device The first harmonic and second harmonic of segment data.
Optionally, the apparatus for processing audio in the embodiment of the present invention further include:
Receiving unit, for receiving virtual bass control instruction, wherein indicate to need in above-mentioned virtual bass control instruction Carry-over factor;
Adjustment unit, for adjusting the carry-over factor according to above-mentioned virtual bass control instruction;
Convolution summation unit 307 is specifically used for: by the preceding N/2 bit value and rear N/2 bit value point in above-mentioned top N numerical value It sums after not carrying out convolution algorithm processing with carry-over factor adjusted.
Further, the embodiment of the present invention can also provide a user virtual bass control interface, and user is virtual low by this Sound control interface can be configured and be managed to virtual bass, for example, controlling virtual bass by the virtual bass control interface The opening and closing of function, when user starts virtual bass function, the virtual bass of apparatus for processing audio of the embodiment of the present invention Function just triggers, and when user closes virtual bass function, apparatus for processing audio is obtaining audio data (such as from XY memory Middle reading audio data, storage is from the audio data separated in HDMI signal in the XY memory) after, write direct power amplifier In and the audio data exported by loudspeaker.Optionally, the apparatus for processing audio in the embodiment of the present invention further include: receive single Member, for receiving virtual bass control instruction, wherein the carry-over factor needed is indicated in above-mentioned virtual bass control instruction;It adjusts Whole unit, for adjusting above-mentioned carry-over factor according to above-mentioned virtual bass control instruction;Convolution summation unit 307 is specifically used for: By in above-mentioned top N numerical value preceding N/2 bit value and rear N/2 bit value respectively with carry-over factor adjusted carry out convolution algorithm It sums after processing.
It should be noted that the apparatus for processing audio in the embodiment of the present invention also can integrate in other multimedia equipments (such as handheld device, car-mounted terminal etc.), certainly, above-mentioned apparatus for processing audio is also possible to independently of multimedia equipment, and energy The device enough communicated by wired mode or wireless mode and the multimedia equipment, is not construed as limiting herein.The present invention is implemented Apparatus for processing audio in example can be used to implement above method reality such as the apparatus for processing audio in above method embodiment Whole technical solutions in example are applied, specific implementation process can refer to the associated description in above method embodiment, herein no longer It repeats.
From above-mentioned technical proposal of the present invention it is found that the present invention can be the difference of the high band harmonic wave of bass fundamental frequency using human ear Frequency sound is heard as this physiologic character of the tone of original bass fundamental frequency, by carrying out high-pass filtering processing, low to audio data Pass filter goes out and gain control processing obtains the high fdrequency component and low frequency component of audio data, and obtains the low frequency point of audio data The top N numerical value of amount carries out convolution algorithm summation, the filtering processing of M rank and harmonic management, obtains virtual sub-woofer data, then will be first The high fdrequency component of the audio of preceding acquisition and virtual sub-woofer data carry out logical addition operation, thus the audio number that obtains that treated According to by technical solution of the present invention, since treated, audio data includes through handling obtained virtual sub-woofer data, energy The reproduction for enough improving the bass frequencies of audio data, effectively improves the bass effect of audio.Further, audio data is being got Afterwards, it is handled again after the audio data of floating type to be first converted to the audio data of integer type, operation speed can be effectively improved Rate, and then improve the treatment effeciency to audio data.
Since the data type of audio data is usually floating number, it is contemplated that multimedia equipment processing floating number efficiency compares It is low, in order to improve arithmetic speed, after converting the audio data of integer type for the audio data of floating type in the embodiment of the present invention It is handled again.Another apparatus for processing audio provided in an embodiment of the present invention is described below, as shown in figure 4, this hair Apparatus for processing audio 400 in bright embodiment, comprising:
First acquisition unit 401, for obtaining audio data to be treated;
Converting unit 402, the audio data for obtaining first acquisition unit 401, will be above-mentioned multiplied by presupposition multiple Audio data is converted to the audio data of integer type;
High pass filter unit 403, the audio data for being converted to converting unit 402 carry out high-pass filtering processing;
First gain control unit 404, the audio data for obtaining to the processing of high pass filter unit 403 carry out gain control System processing, obtains the high fdrequency component of above-mentioned audio data;
Low-pass filter unit 405, for being carried out at low-pass filtering to the audio data being converted to converting unit 402 Reason;
Second gain control unit 406, the audio data for obtaining to the processing of low-pass filter unit 405 carry out gain control System processing, obtains the low frequency component of above-mentioned audio data;
Second acquisition unit 407, for obtaining the top N numerical value of above-mentioned low frequency component, wherein above-mentioned N is even number;
Convolution summation unit 408, for by above-mentioned top N numerical value preceding N/2 bit value and rear N/2 bit value respectively with Preset carry-over factor is summed after carrying out convolution algorithm processing;
Filtering operation unit 409, for convolution summation unit 408 to be summed, obtained data carry out M rank filtering operation, obtain To the high-frequency-band data of above-mentioned low frequency component, wherein above-mentioned M is greater than or equal to 2;
Generation unit 410, for generating the first harmonic and second harmonic of above-mentioned high-frequency-band data;
Convolution algorithm unit 411 is obtained for above-mentioned first harmonic and above-mentioned second harmonic to be carried out convolution algorithm processing Virtual sub-woofer data;
Computing unit 412, high fdrequency component and convolution algorithm unit 411 for exporting the first gain control unit 404 The virtual sub-woofer data of output carries out logical addition operation, will obtain audio data divided by above-mentioned pre- after above-mentioned logical addition operation If multiple, the audio data that obtains that treated;
Output unit 413, treated for exporting computing unit 412 audio data.
Optionally, first acquisition unit 401 is specifically used for: obtaining left channel audio data and right channel audio data;Turn Change unit 402, high pass filter unit 403, the first gain control unit 404, low-pass filter unit 405, the second gain control list First 406, second acquisition unit 407, convolution summation unit 408, filtering operation unit 409, generation unit 410, convolution algorithm list Member 411, computing unit 412 and output unit 413 to above-mentioned left channel audio data and above-mentioned right channel audio data respectively into Row processing.Specifically, on the basis of the embodiment shown in fig. 4, first acquisition unit 401 includes: sub- acquiring unit, for obtaining HDMI signal;Audio discrete memory location, for isolating audio data from above-mentioned HDMI signal and being stored in XY memory; Reading unit, for reading audio data from above-mentioned XY memory.Further, above-mentioned reading unit is specifically used for: from above-mentioned Left channel audio data and right channel audio data are read in XY memory;Converting unit 402, high pass filter unit 403, first Gain control unit 404, low-pass filter unit 405, the second gain control unit 406, second acquisition unit 407, convolution summation Unit 408, filtering operation unit 409, generation unit 410, convolution algorithm unit 411, computing unit 412 and output unit 413 Above-mentioned left channel audio data and above-mentioned right channel audio data are respectively processed.
Optionally, in the embodiment of the present invention, apparatus for processing audio further include: smoothing processing unit, for being transported to filtering It calculates the high-frequency-band data that unit 409 exports and carries out the disposal of gentle filter;Generation unit 410 is specifically used for: will be through above-mentioned smooth place Manage unit the disposal of gentle filter after high-frequency-band data, by harmonic generation device generate above-mentioned high-frequency-band data first harmonic and Second harmonic.
Further, the embodiment of the present invention can also provide a user virtual bass control interface, and user is virtual low by this Sound control interface can be configured and be managed to virtual bass, for example, controlling virtual bass by the virtual bass control interface The opening and closing of function, when user starts virtual bass function, the virtual bass of apparatus for processing audio of the embodiment of the present invention Function just triggers, and when user closes virtual bass function, apparatus for processing audio is obtaining audio data (such as from XY memory Middle reading audio data, storage is from the audio data separated in HDMI signal in the XY memory) after, write direct power amplifier In and the audio data exported by loudspeaker.Optionally, the apparatus for processing audio in the embodiment of the present invention further include: receive single Member, for receiving virtual bass control instruction, wherein the carry-over factor needed is indicated in above-mentioned virtual bass control instruction;It adjusts Whole unit, for adjusting above-mentioned carry-over factor according to above-mentioned virtual bass control instruction;Convolution summation unit 408 is specifically used for: By in above-mentioned top N numerical value preceding N/2 bit value and rear N/2 bit value respectively with carry-over factor adjusted carry out convolution algorithm It sums after processing.
It should be noted that the apparatus for processing audio in the embodiment of the present invention also can integrate in other multimedia equipments (such as handheld device, car-mounted terminal etc.), certainly, above-mentioned apparatus for processing audio is also possible to independently of multimedia equipment, and energy The device enough communicated by wired mode or wireless mode and the multimedia equipment, is not construed as limiting herein.The present invention is implemented Apparatus for processing audio in example can be used to implement above method reality such as the apparatus for processing audio in above method embodiment Whole technical solutions in example are applied, specific implementation process can refer to the associated description in above method embodiment, herein no longer It repeats.
From above-mentioned technical proposal of the present invention it is found that the present invention can be the difference of the high band harmonic wave of bass fundamental frequency using human ear Frequency sound is heard as this physiologic character of the tone of original bass fundamental frequency, by carrying out high-pass filtering processing, low to audio data Pass filter goes out and gain control processing obtains the high fdrequency component and low frequency component of audio data, and obtains the low frequency point of audio data The top N numerical value of amount carries out convolution algorithm summation, the filtering processing of M rank and harmonic management, obtains virtual sub-woofer data, then will be first The high fdrequency component of the audio of preceding acquisition and virtual sub-woofer data carry out logical addition operation, thus the audio number that obtains that treated According to by technical solution of the present invention, since treated, audio data includes through handling obtained virtual sub-woofer data, energy The reproduction for enough improving the bass frequencies of audio data, effectively improves the bass effect of audio.Further, audio data is being got Afterwards, it is handled again after the audio data of floating type to be first converted to the audio data of integer type, operation speed can be effectively improved Rate, and then improve the treatment effeciency to audio data.Further, after getting audio data, first by the audio number of floating type According to being handled again after the audio data for being converted to integer type, arithmetic speed can be effectively improved, and then improve to audio data Treatment effeciency.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of said units, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit Letter connection can be electrical property, mechanical or other forms.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this hair Necessary to bright.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
The above are to a kind of description of audio-frequency processing method and apparatus for processing audio provided by the present invention, for this field Those skilled in the art, thought according to an embodiment of the present invention has change in specific embodiments and applications Place, to sum up, the contents of this specification are not to be construed as limiting the invention.

Claims (10)

1. a kind of audio-frequency processing method characterized by comprising
Obtain audio data to be treated;
High-pass filtering processing and gain control processing are successively carried out to the audio data, obtain the high frequency division of the audio data Amount;
Low-pass filtering treatment and gain control processing are successively carried out to the audio data, obtain the low frequency point of the audio data Amount;
Obtain the top N numerical value of the low frequency component, wherein the N is even number;
By in the top N numerical value preceding N/2 bit value and rear N/2 bit value respectively with preset carry-over factor carry out convolution fortune It sums after calculation processing;
The obtained data of summing are subjected to M rank filtering operation, obtain the high-frequency-band data of the low frequency component, wherein institute M is stated more than or equal to 2;
Generate the first harmonic and second harmonic of the high-frequency-band data;
The first harmonic and the second harmonic are subjected to convolution algorithm processing, obtain virtual sub-woofer data;
The high fdrequency component of the audio data and the virtual sub-woofer data are subjected to logical addition operation, the sound that obtains that treated Frequency evidence;
Output is described treated audio data.
2. the method according to claim 1, wherein the acquisition audio data to be treated includes:
Obtain left channel audio data and right channel audio data;
The audio-frequency processing method specifically: respectively for described in the left channel audio data and the execution of right channel audio data The step of the step of carrying out high-pass filtering processing and gain control processing, the progress low-pass filtering treatment and gain control processing And subsequent step.
3. method according to claim 1 or 2, which is characterized in that
The data type of the audio data is floating number;
The step of acquisition audio data to be treated, include: later
By the audio data multiplied by presupposition multiple, the audio data is converted to the audio data of integer type;
Described the step of high-pass filtering processing and gain control processing are successively carried out to the audio data, specifically:
High-pass filtering processing and gain control processing are successively carried out to the audio data of the integer type;
Described the step of low-pass filtering treatment and gain control processing are successively carried out to the audio data, specifically:
Low-pass filtering treatment and gain control processing are successively carried out to the audio data of the integer type;
It is described by the high fdrequency component of the audio data and the step of the virtual sub-woofer data carries out logical addition operation, later Further include:
By the audio data obtained after the logical addition operation divided by the presupposition multiple.
4. method according to claim 1 or 2, which is characterized in that the first harmonic for generating the high-frequency-band data And second harmonic, include: before
The disposal of gentle filter is carried out to the high-frequency-band data;
The first harmonic and second harmonic for generating the high-frequency-band data, specifically: after the disposal of gentle filter High-frequency-band data generates the first harmonic and second harmonic of the high-frequency-band data by harmonic generation device.
5. method according to claim 1 or 2, which is characterized in that the preceding N/2 digit by the top N numerical value Value and rear N/2 bit value carry out the step of summing after convolution algorithm processing with preset carry-over factor respectively, before further include:
Receive virtual bass control instruction, wherein the carry-over factor needed is indicated in the virtual bass control instruction;
The carry-over factor is adjusted according to the virtual bass control instruction;
The preceding N/2 bit value by the top N numerical value and rear N/2 bit value are rolled up with preset carry-over factor respectively It sums after product calculation process, specifically:
By in the top N numerical value preceding N/2 bit value and rear N/2 bit value respectively with carry-over factor adjusted carry out convolution It sums after calculation process.
6. a kind of apparatus for processing audio characterized by comprising
First acquisition unit, for obtaining audio data to be treated;
High pass filter unit, for carrying out high-pass filtering processing to the audio data;
First gain control unit, the audio data for handling the high pass filter unit carry out at gain control Reason, obtains the high fdrequency component of the audio data;
Low-pass filter unit, for carrying out low-pass filtering treatment to the audio data;
Second gain control unit, the audio data for handling the low-pass filter unit carry out at gain control Reason, obtains the low frequency component of the audio data;
Second acquisition unit, for obtaining the top N numerical value of the low frequency component, wherein the N is even number;
Convolution summation unit, for by the top N numerical value preceding N/2 bit value and rear N/2 bit value respectively with it is preset Carry-over factor is summed after carrying out convolution algorithm processing;
Filtering operation unit, the data for the convolution summation unit to be summed carry out M rank filtering operation, obtain described The high-frequency-band data of low frequency component, wherein the M is greater than or equal to 2;
Generation unit, for generating the first harmonic and second harmonic of the high-frequency-band data;
Convolution algorithm unit obtains virtual low for the first harmonic and the second harmonic to be carried out convolution algorithm processing Sound data;
Computing unit, what high fdrequency component and the convolution algorithm unit for exporting first gain control unit exported Virtual sub-woofer data carries out logical addition operation, the audio data that obtains that treated;
Output unit, treated for exporting computing unit audio data.
7. apparatus for processing audio according to claim 6, which is characterized in that the first acquisition unit is specifically used for: obtaining Take left channel audio data and right channel audio data;
The high pass filter unit, first gain control unit, the low-pass filter unit, second gain control are single First, the described second acquisition unit, the convolution summation unit, the filtering operation unit, the generation unit, convolution fortune Unit, the computing unit and the output unit is calculated to distinguish the left channel audio data and the right channel audio data It is handled.
8. apparatus for processing audio according to claim 6 or 7, which is characterized in that the data type of the audio data is Floating number;
The apparatus for processing audio further include:
Converting unit, for the audio data multiplied by presupposition multiple, to be converted to the sound of integer type by the audio data Frequency evidence;
The high pass filter unit is specifically used for the audio data being converted to the converting unit and carries out high-pass filtering processing;
The low-pass filter unit is specifically used for the audio data being converted to the converting unit and carries out low-pass filtering treatment;
The computing unit is also used to: will obtain audio data divided by the presupposition multiple after the logical addition operation.
9. apparatus for processing audio according to claim 6 or 7, which is characterized in that the apparatus for processing audio further include:
Smoothing processing unit, the high-frequency-band data for exporting to the filtering operation unit carry out the disposal of gentle filter;
The generation unit is specifically used for: the high-frequency-band data after the smoothing processing unit the disposal of gentle filter being passed through humorous Wave generator generates the first harmonic and second harmonic of the high-frequency-band data.
10. apparatus for processing audio according to claim 6 or 7, which is characterized in that the apparatus for processing audio further include:
Receiving unit, for receiving virtual bass control instruction, wherein the biography needed is indicated in the virtual bass control instruction Pass coefficient;
Adjustment unit, for adjusting the carry-over factor according to the virtual bass control instruction;
The convolution summation unit is specifically used for: by the preceding N/2 bit value and rear N/2 bit value difference in the top N numerical value It sums after carrying out convolution algorithm processing with carry-over factor adjusted.
CN201410629188.6A 2014-11-07 2014-11-07 A kind of audio-frequency processing method and apparatus for processing audio Active CN105632509B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410629188.6A CN105632509B (en) 2014-11-07 2014-11-07 A kind of audio-frequency processing method and apparatus for processing audio

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410629188.6A CN105632509B (en) 2014-11-07 2014-11-07 A kind of audio-frequency processing method and apparatus for processing audio

Publications (2)

Publication Number Publication Date
CN105632509A CN105632509A (en) 2016-06-01
CN105632509B true CN105632509B (en) 2019-07-19

Family

ID=56047350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410629188.6A Active CN105632509B (en) 2014-11-07 2014-11-07 A kind of audio-frequency processing method and apparatus for processing audio

Country Status (1)

Country Link
CN (1) CN105632509B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106328153B (en) * 2016-08-24 2020-05-08 青岛歌尔声学科技有限公司 Electronic communication equipment voice signal processing system and method and electronic communication equipment
CN111508510B (en) * 2020-04-23 2024-01-19 惠州Tcl移动通信有限公司 Audio processing method and device, storage medium and electronic equipment
CN112562703B (en) * 2020-11-17 2024-07-26 普联国际有限公司 Audio high-frequency optimization method, device and medium
CN113205794B (en) * 2021-04-28 2022-10-14 电子科技大学 Virtual bass conversion method based on generation network

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505443A (en) * 2009-03-13 2009-08-12 北京中星微电子有限公司 Virtual supper bass enhancing method and system
CN102484759A (en) * 2009-04-17 2012-05-30 森迪亚逻辑有限公司 Processing audio signals
CN102547517A (en) * 2011-12-30 2012-07-04 Tcl集团股份有限公司 Bass signal harmonic generating method and device and sound playing equipment
CN103369429A (en) * 2013-06-17 2013-10-23 深圳Tcl新技术有限公司 Low voice enhancing method and device and voice control device
WO2013168200A1 (en) * 2012-05-11 2013-11-14 パイオニア株式会社 Audio processing device, playback device, audio processing method, and program
CN103517183A (en) * 2012-10-09 2014-01-15 Tcl集团股份有限公司 Method and device for strengthening subwoofer signals

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505443A (en) * 2009-03-13 2009-08-12 北京中星微电子有限公司 Virtual supper bass enhancing method and system
CN102484759A (en) * 2009-04-17 2012-05-30 森迪亚逻辑有限公司 Processing audio signals
CN102547517A (en) * 2011-12-30 2012-07-04 Tcl集团股份有限公司 Bass signal harmonic generating method and device and sound playing equipment
WO2013168200A1 (en) * 2012-05-11 2013-11-14 パイオニア株式会社 Audio processing device, playback device, audio processing method, and program
CN103517183A (en) * 2012-10-09 2014-01-15 Tcl集团股份有限公司 Method and device for strengthening subwoofer signals
CN103369429A (en) * 2013-06-17 2013-10-23 深圳Tcl新技术有限公司 Low voice enhancing method and device and voice control device

Also Published As

Publication number Publication date
CN105632509A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
CN105632509B (en) A kind of audio-frequency processing method and apparatus for processing audio
CN111277388B (en) HARQ-ACK codebook generating method, information sending method and equipment
TWI300302B (en) Circuit and Method for Micro-Coded Accelerator Based Operations, and Machine-Readable Medium That Provides Instructions
CN109194620A (en) Multichannel communication method, intelligent gateway and readable storage medium storing program for executing
CN202663412U (en) Sending equipment, receiving equipment and transmission system
CN108702480A (en) Electronic equipment and method for driving its display
CN107241563A (en) Method, intelligent mobile terminal and the device with store function of transmission of video
CN107247629A (en) Cloud computing system and cloud computing method and device for controlling server
JP2023549354A (en) Data transmission methods and electronic devices
CN105356947B (en) Audio sends and receives the sending and receiving method of terminal, target data
US20070168579A1 (en) DMA transfer and hardware acceleration of PPP frame processing
CN103987009A (en) Method for operating a hearing device and hearing device
CN104424949A (en) Method for transmitting and receiving voice packet and electronic device implementing the same
EP2487858B1 (en) Systems and methods for encoding control messages in an audio bitstream
US11620250B2 (en) Systems and methods for data transfer over a shared interface
CN115913473B (en) Data selective retransmission method and system, storage medium and electronic equipment thereof
CN111225077B (en) Network distribution method, device and system for Internet of things equipment
US20230224078A1 (en) Robust retransmission topologies using error correction
CN102318250B (en) Cyclic redundancy check processing method, device and LTE terminal in communication system
US20230032237A1 (en) Deterministic replay of events between software entities
US20170221447A1 (en) Data transmission method, data transmission system and portable display device
CN114339739A (en) Intelligent management system of wireless communication protocol
KR101476908B1 (en) Transmitter, receiver and communication system using earphone port of mobile terminal
CN106775551A (en) Audio frequency playing method and system
CN102594989A (en) Data communication method, system and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant