CN109671448A - A kind of data processing method and device - Google Patents

A kind of data processing method and device Download PDF

Info

Publication number
CN109671448A
CN109671448A CN201811647498.5A CN201811647498A CN109671448A CN 109671448 A CN109671448 A CN 109671448A CN 201811647498 A CN201811647498 A CN 201811647498A CN 109671448 A CN109671448 A CN 109671448A
Authority
CN
China
Prior art keywords
data
fragment data
former
amplitude
audio data
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.)
Granted
Application number
CN201811647498.5A
Other languages
Chinese (zh)
Other versions
CN109671448B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201811647498.5A priority Critical patent/CN109671448B/en
Publication of CN109671448A publication Critical patent/CN109671448A/en
Application granted granted Critical
Publication of CN109671448B publication Critical patent/CN109671448B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0316Speech enhancement, e.g. noise reduction or echo cancellation by changing the amplitude
    • G10L21/0324Details of processing therefor
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0316Speech enhancement, e.g. noise reduction or echo cancellation by changing the amplitude
    • G10L21/0324Details of processing therefor
    • G10L21/0332Details of processing therefor involving modification of waveforms
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0316Speech enhancement, e.g. noise reduction or echo cancellation by changing the amplitude
    • G10L21/0324Details of processing therefor
    • G10L21/034Automatic adjustment

Landscapes

  • Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Quality & Reliability (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

This application discloses a kind of data processing methods, which comprises obtains media file, the first audio data of the first duration is included at least in the media file;Described first former fragment data is processed into first object fragment data by the amplitude parameter that the first former fragment data in first audio data is handled by first method, and the amplitude parameter is used to characterize the loudness of first audio data;Described second former fragment data is processed into the second target fragment data by the amplitude parameter that the second former fragment data in first audio data is handled by second method;Wherein, the described first former fragment data period different from the described second corresponding first duration of former fragment data, and the first method is different from the second method;Export the second audio data.The application further simultaneously discloses a kind of data processing equipment.

Description

A kind of data processing method and device
Technical field
This application involves data processing technique more particularly to a kind of data processing method and devices.
Background technique
It, can only be to the media file in the prior art when carrying out loudness adjusting to the media file being currently played Loudness carries out unified height-regulating or uniformly turns down, and is unable to satisfy the hearing enjoying of different user.
Summary of the invention
In view of this, the embodiment of the present application is intended to provide a kind of data processing method and device.
According to the one side of the embodiment of the present application, a kind of data processing method is provided, which comprises
Media file is obtained, the first audio data of the first duration is included at least in the media file;
First audio data is handled to obtain second audio data;
Export the second audio data;
Wherein, first audio data is handled to obtain second audio data, is included at least:
The amplitude parameter that the first former fragment data is handled in first audio data by first method, by described the One former fragment data is processed into first object fragment data, and the amplitude parameter is used to characterize the sound of first audio data Degree;
The amplitude parameter that the second former fragment data is handled in first audio data by second method, by described the Two former fragment datas are processed into the second target fragment data;
Wherein, the described first former fragment data it is different with corresponding first duration of the second original fragment data when Section, and the first method is different from the second method.
In above scheme, the former loudness difference of the described first former fragment data and the second former fragment data is greater than described The target loudness difference of first object fragment data and the second target fragment data.
In above scheme, in the peak swing value and the second former fragment data in the described first former fragment data most The difference of large amplitude value is greater than in the peak swing value and the second target fragment data in the first object fragment data Peak swing value difference;And the peak swing value of the first object fragment data and the second target patch number of segment Peak swing value in is identical.
The frequency in frequency parameter and the first object fragment data in above scheme, in the described first former fragment data Meet unchanged state between rate parameter;
Between the frequency parameter in frequency parameter and the second target fragment data in described second former fragment data Meet unchanged state.
In above scheme, before processing first audio data is to obtain second audio data, the method Further include:
Noise reduction process is carried out to first audio data, to obtain the first audio data after noise reduction.
In above scheme, the amplitude that the first former fragment data in first audio data is handled by first method Described first former fragment data is processed into first object fragment data by parameter, comprising:
Obtain the first adjustment parameter;The amplitude of the described first former fragment data is adjusted by the first adjustment parameter, The described first former fragment data is processed into first object fragment data;
The amplitude parameter that the second former fragment data in first audio data is handled by second method, by institute It states the second former fragment data and is processed into the second target fragment data, comprising:
Obtain second adjustment parameter;The amplitude of the described second former fragment data is adjusted by the second adjustment parameter, The described second former fragment data is processed into the second target fragment data.
In above scheme, the acquisition the first adjustment parameter, comprising:
According in first audio data the amplitude for meeting same or similar condition and the first former segment Peak swing value in data determines the first adjustment parameter;
Alternatively, according to the peak swing value in first audio data and the maximum in the first former fragment data Amplitude determines the first adjustment parameter;
Alternatively, according to the minimum amplitude value in first audio data and the maximum in the first former fragment data Amplitude determines the first adjustment parameter;
The acquisition second adjustment parameter, comprising:
According in first audio data the amplitude for meeting same or similar condition and the second former segment Peak swing value in data determines the second adjustment parameter;
Alternatively, according to the peak swing value in first audio data and the maximum in the second former fragment data Amplitude is determined as the second adjustment parameter;
Alternatively, according to the minimum amplitude value in first audio data and the maximum in the second former fragment data Amplitude is determined as the second adjustment parameter.
In above scheme, the acquisition the first adjustment parameter, comprising:
According to the peak swing value in the amplitude and the first former fragment data for meeting playback of media files requirement, Determine the first adjustment parameter;
The acquisition second adjustment parameter, comprising:
According to the peak swing value in the amplitude and the second former fragment data for meeting playback of media files requirement, Determine the second adjustment parameter.
In above scheme, processing first audio data is to obtain second audio data, at least further include:
Overflow data protection is carried out according to the former fragment data of the first adjustment parameter adjusted first to described;
Overflow data protection is carried out according to the former fragment data of the second adjustment parameter adjusted second to described.
According to the another aspect of the embodiment of the present application, a kind of data processing equipment is provided, described device includes:
Acquiring unit, for obtaining media file, the media file includes at least the first audio data of the first duration;
Processing unit, for handling first audio data to obtain second audio data;
Output unit, for exporting the second audio data;
The processing unit, comprising:
First subprocessing unit, for handling the first former fragment data in first audio data by first method Described first former fragment data is processed into first object fragment data by amplitude parameter, and the amplitude parameter is for characterizing institute State the loudness of the first audio data;
Second subprocessing unit, for handling the second former fragment data in first audio data by second method Described second former fragment data is processed into the second target fragment data by amplitude parameter;
Wherein, the described first former fragment data it is different with corresponding first duration of the second original fragment data when Section, and the first method is different from the second method.
A kind of data processing method provided herein and device, by obtaining media file, in the media file Including at least the first audio data of the first duration;First audio data is handled to obtain second audio data;Output institute State second audio data;Wherein, first audio data is handled to obtain second audio data, is included at least: by first Mode handles the amplitude parameter of the first former fragment data in first audio data, by the described first former fragment data processing At first object fragment data, the amplitude parameter is used to characterize the loudness of first audio data;At second method Described second former fragment data is processed into second by the amplitude parameter for managing the second former fragment data in first audio data Target fragment data;Wherein, in the described first former fragment data first duration corresponding with the second original fragment data not The same period, and the first method is different from the second method.In this way, can be with each fragment data of adjustment of fragment section Loudness.
Detailed description of the invention
Fig. 1 is the flow diagram of data processing method provided by the embodiments of the present application;
Fig. 2 is audio volume control schematic diagram one;
Fig. 3 is audio volume control schematic diagram two;
Fig. 4 is audio volume control schematic diagram three;
Fig. 5 is the structure composition schematic diagram one of data processing equipment in the embodiment of the present application;
Fig. 6 is the structure composition schematic diagram two of data processing equipment in the embodiment of the present application.
Specific embodiment
The characteristics of in order to more fully hereinafter understand the application and technology contents, with reference to the accompanying drawing to the reality of the application It is now described in detail, appended attached drawing purposes of discussion only for reference, is not used to limit the application.
Fig. 1 is the flow diagram of data processing method provided by the embodiments of the present application, method includes the following steps:
Step 101, media file is obtained, the first audio data of the first duration is included at least in the media file;
In the embodiment of the present application, this method is mainly used in the electronic equipment with audio playing function, such as the electronics Equipment can be tablet computer, smart phone, intelligent sound box, smartwatch etc..
When user implements the play operation of media file to the electronic equipment, which can receive broadcasting behaviour Make the playing request generated.It is corresponding with the playing request to be obtained from the database of operator according to the playing request Media file;Alternatively, obtaining media file corresponding with the playing request from the local data base of electronic equipment.
Here, the audio data for having the first duration is included at least in the media file, which refers to a time Section.
Specifically, electronic equipment is obtained from the database of operator corresponding with the playing request according to the playing request When media file, because digital audio is coding (coding refers to A/D conversion and compression) shape after discrete sampling to analogue audio frequency At, it is possible to it is decoded using media file of the mpg123 to acquisition, for example, decoding mp3 audio container format, or The Container Format for directly parsing wav, to obtain pulse code modulation (PCM, the Pulse Code for including in media file Modulation initial data (Raw Data)).
Here PCM Raw Data has only done the digital signal after A/D conversion after referring to equidistant extraction discrete sampling point.Its In, carry the attribute information of Raw Data in PCM Raw Data: sample rate, bit depth and channel number and subsidiary Byte-aligned number, average sample rate etc..
In the embodiment of the present application, electronic equipment, can also be as desired by filtering when getting the first audio data Device carries out noise reduction process to the first audio data, to obtain the first audio data after noise reduction.In this way, can be to avoid subsequent to When one audio data is handled, the case where noise that the first audio data is included is handled together appearance.
Step 102, first audio data is handled to obtain second audio data;
In the embodiment of the present application, electronic equipment needs first after getting the first audio data by the first audio data point At multiple former fragment datas, for example, the first audio data is divided into the first former fragment data and the second former fragment data.Wherein, First former fragment data corresponds to the period different in above-mentioned first duration from the second former fragment data.Then, pass through first party Formula handles the amplitude parameter of the first former fragment data in the first audio data, and the first former fragment data is processed into first object Fragment data.The amplitude parameter for handling the second former fragment data in the first audio data by second method again, by the second original Fragment data is processed into the second target fragment data.
Here, amplitude parameter is used to characterize the loudness of the first audio data.And first method and second method are different.
In the embodiment of the present application, first method and second method difference can specifically refer to first method and second method institute For adjustment direction it is different.It is different to can also refer to the targeted adjustment multiple of first method and second method.
The adjustment direction difference targeted with second method to first method is illustrated below:
For example, the first loudness value of the first former fragment data is turned up in such a way that loudness value is turned up, by that will ring The mode that angle value is turned down turns down the second loudness value of the second former fragment data;At this point, by the mode of loudness value height-regulating and will ring The targeted adjustment direction of the mode that angle value is turned down is different.
Alternatively, the first loudness value of the first former fragment data is turned down by way of turning down loudness value, by that will ring The mode that angle value is turned up is turned up by the second loudness value of the second former fragment data.At this point, by mode that loudness value is turned down and will ring The targeted adjustment direction of the mode that angle value is turned up is different.
And then by the corresponding adjustment to former fragment data, so that first object fragment data and the second target fragment data Target loudness difference less than the former loudness difference of the first former fragment data and the second original fragment data, and then can solve sound Suddenly big or suddenly small problem, so that sound is more stable;
Alternatively, the target loudness difference of first object fragment data and the second target fragment data is made to be greater than the first former piece The former loudness difference of segment data and the second former fragment data, so that sound is more uneven, impassioned pause and transition in rhythm or melody.
Specifically, the loudness of former fragment data can be adjusted by adjusting amplitude, for example, by the way that amplitude is turned up Mode is turned up by the amplitude of the first former fragment data, and by the vibration of the second former fragment data by way of turning down amplitude Amplitude is turned down;At this point, the mode that amplitude is turned up and the mode of turning down amplitude it is targeted adjustment direction it is different.
Or turned down the amplitude of the first former fragment data by way of turning down amplitude, and by by amplitude The mode of height-regulating is turned up by the amplitude of the second former fragment data.At this point, being turned up by mode that amplitude is turned down and by amplitude The targeted adjustment direction of mode it is different.
In this way, being adjusted by amplitude, so that peak swing value and the second target patch number of segment in first object fragment data The difference of peak swing value in less than in the first former fragment data peak swing value in the second former fragment data most The difference of large amplitude value;And the peak swing value of first object fragment data and the maximum in the second target fragment data can be made Amplitude is identical.And then have adjusted the loudness of audio data, can sound it is more steady.
Here, loudness value and amplitude are signified different, and what the maximum difference of the two was that loudness value characterizes is amplitude mean value, and Amplitude refers to vibration the reached actual value of physical quantity.
The adjustment multiple difference targeted with second method to first method is illustrated below:
For example, the first loudness value of the first former fragment data is higher than the second loudness value of the second former fragment data.Then pass through First loudness value of the first former fragment data is turned up 5 times by the first adjustment multiple, by second adjustment multiple by the second former segment Second loudness value of data is turned up 8 times;At this point, the first adjustment multiple is different with second adjustment multiple.
Alternatively, the first loudness value of the first former fragment data is turned down 3 times by the first adjustment multiple, and adjusted by second Second loudness value of the second former fragment data is turned down 2 times by integral multiple.At this point, the first adjustment multiple and second adjustment multiple are not Together.
And then by the corresponding adjustment to former fragment data, so that first object fragment data and the second target fragment data Target loudness difference less than the former loudness difference of the first former fragment data and the second original fragment data, it is suddenly big to can solve sound Suddenly small problem, so that sound is more stable;
Alternatively, the target loudness difference of first object fragment data and the second target fragment data is made to be greater than the first former piece The former loudness difference of segment data and the second former fragment data, so that sound is more uneven, impassioned pause and transition in rhythm or melody.
In the embodiment of the present application, the loudness of former fragment data can also be adjusted by adjusting amplitude.For example, the first former piece First amplitude of segment data is higher than the second amplitude of the second former fragment data.Then pass through the first adjustment multiple for the first former piece First amplitude of segment data is turned up 5 times, and the second amplitude of the second former fragment data is turned up 8 by second adjustment multiple Times;At this point, the first adjustment multiple is different with second adjustment multiple.
Alternatively, the first amplitude of the first former fragment data is turned down 3 times by the first adjustment multiple, and adjusted by second Second amplitude of the second former fragment data is turned down 2 times by integral multiple.At this point, the first adjustment multiple and second adjustment multiple are not Together.
In this way, being adjusted by amplitude, so that peak swing value and the second target patch number of segment in first object fragment data The difference of peak swing value in less than in the first former fragment data peak swing value in the second former fragment data most The difference of large amplitude value;And the peak swing value of first object fragment data and the maximum in the second target fragment data can be made Amplitude is identical.And then have adjusted the loudness of audio data, can sound it is more steady.
In the embodiment of the present application, when carrying out fragment segmentation to original audio data, due to, it is known that human ear distinguishes the precision of sound Value is about 0.1s or more, so the length of each original fragment data should be less than or equal to the audio sample of 0.1s duration, it is no It is right then if the too long and by chance suddenly big or suddenly small sound of former fragment data of time segmentation appears in the original fragment data The whole amplification effect of the original fragment data can not still solve the problems, such as that sound is suddenly big or suddenly small, so the former fragment data of segmentation Byte length should be determined on computers by following formula:
For example, for sample rate SampleRate=44100Hz, channel number Channel=2, bit depth BitsPerSample=16 original audio data (PCM data and or RAM data a), T=0.1s long isochronous surface just It is: SampleRate × Channel × BitsPerSample ÷ 8 × T=17640 byte length data.
It here, is 44100Hz for the most common sample rate, channel number is 2 sound channels, the audio that bit depth is 16 bit depth Sample, a reasonable isochronous surface length is about 16KB.
Physically, sound is the reaction that vibration of media generates in auditory system.Sound can be always broken down into not The superposition (Fourier transformation) of same frequency varying strength sine wave, and there are two basic physical attributes for sound: frequency and vibration Width, thus loudness control it is to be processed be audio data amplitude problem.
In the embodiment of the present application, the amplitude of the first former fragment data in first audio data is handled by first method Parameter specifically can be first according to the first audio number when the described first former fragment data is processed into first object fragment data The peak swing value in the former fragment data of peak swing value and first in, obtains and shakes for adjusting in the first former fragment data The first adjustment parameter of amplitude.Then, further according to the amplitude in the former fragment data of the first adjustment parameter adjustment first got Value, so that the first former fragment data is processed into first object fragment data.
For example, can by the peak swing value in the peak swing value and the first former fragment data in the first audio data it Between multiple value, be determined as the first adjustment parameter.
It, can also be first according to the minimum amplitude value and the first former fragment data in the first audio data in the embodiment of the present application In peak swing value, obtain for adjust first original fragment data in amplitude the first adjustment parameter.Then, further according to obtaining The amplitude in the former fragment data of the first adjustment parameter adjustment first got, so that the first former fragment data is processed into first Target fragment data.
For example, can by the peak swing value in the minimum amplitude value and the first former fragment data in the first audio data it Between multiple value, be determined as the first adjustment parameter.
In the embodiment of the present application, can also first according to meet in the first audio data same or similar condition amplitude and Peak swing value in first former fragment data obtains the first adjustment ginseng for adjusting amplitude in the first former fragment data Number.Then, further according to the amplitude in the former fragment data of the first adjustment parameter adjustment first got, thus by the first former piece Segment data is processed into first object fragment data.
It here, specifically can be by calculating first when meeting the amplitude of the same terms in determining the first audio data The frequency of occurrence of each amplitude, obtains calculated result in audio data.According to the calculated result amplitude that frequency of occurrence is most Value is determined as meeting the amplitude of the same terms.
It here, specifically can be first according to preset when meeting the amplitude of similar conditions in determining the first audio data Multiple amplitude sections determine that in the first audio data then amplitude section corresponding to each amplitude counts each vibration The quantity for the amplitude for including in amplitude section, obtains statistical result.Then, then by each amplitude section correspond to statistical result It is compared, obtains comparison result, the amplitude that will be included in the highest amplitude section of statistical result according to comparison result Mean value be determined as meeting the amplitude of similar conditions.
Then, then by the former fragment data of amplitude and first for meeting same or similar condition in the first audio data most Multiple value between large amplitude value is determined as the first adjustment parameter.
In the embodiment of the present application, joined by the amplitude that second method handles the second former fragment data in the first audio data Number specifically can be first according in the first audio data when the second former fragment data is processed into the second target fragment data Peak swing value in peak swing value and the second former fragment data is obtained for adjusting amplitude in the second former fragment data Second adjustment parameter.Then, further according to the amplitude in the former fragment data of second adjustment parameter adjustment second got, thus Second former fragment data is processed into the second target fragment data.
For example, can by the peak swing value in the peak swing value and the second former fragment data in the first audio data it Between multiple value, be determined as second adjustment parameter.
It, can also be first according to the minimum amplitude value and the second former fragment data in the first audio data in the embodiment of the present application In peak swing value, obtain for adjust second original fragment data in amplitude second adjustment parameter.Then, further according to obtaining The amplitude in the former fragment data of second adjustment parameter adjustment second got, so that the second former fragment data is processed into second Target fragment data.
For example, can by the peak swing value in the minimum amplitude value and the second former fragment data in the first audio data it Between multiple value, be determined as second adjustment parameter.
In the embodiment of the present application, can also first according to meet in the first audio data same or similar condition amplitude and Peak swing value in second former fragment data obtains the second adjustment ginseng for adjusting amplitude in the second former fragment data Number.Then, further according to the amplitude in the former fragment data of second adjustment parameter adjustment second got, thus by the second former piece Segment data is processed into the second target fragment data.
It here, specifically can be by calculating first when meeting the amplitude of the same terms in determining the first audio data The frequency of occurrence of each amplitude, obtains calculated result in audio data.According to the calculated result amplitude that frequency of occurrence is most Value is determined as meeting the amplitude of the same terms.
It here, specifically can be first according to preset when meeting the amplitude of similar conditions in determining the first audio data Multiple amplitude sections determine that in the first audio data then amplitude section corresponding to each amplitude counts each vibration The quantity for the amplitude for including in amplitude section, obtains statistical result.Then, then by each amplitude section correspond to statistical result It is compared, obtains comparison result, the amplitude that will be included in the highest amplitude section of statistical result according to comparison result Mean value be determined as meeting the amplitude of similar conditions.
Then, then by the former fragment data of amplitude and second for meeting same or similar condition in the first audio data most Multiple value between large amplitude value is determined as second adjustment parameter.
Here, the first adjustment parameter and second adjustment parameter may each be the first former fragment data and the second former fragment data Whole amplification factor.
Here, electronic equipment can specifically pass through one when calculating the whole amplification factor of each former fragment data Short pointer traverses a total size for the former fragment data of 16KB, in the sample data to seek out 8192 short length Then the value max of maximum absolute value calculates the whole amplification factor of the original fragment data using multiplied model.Wherein, the amplification Factor factor is result of the maximum short value divided by max.
Then, according to amplification factor factor, amplify all sampled points in the original fragment data.
The embodiment of the present application, by between the amplitude of original audio data and the peak swing value of each former fragment data Multiple value, the corresponding adjusting parameter of each former fragment data is determined, thus according to the corresponding former segment of adjusting parameter adjustment The amplitude or loudness value of data, in this way, the peak swing value of each former fragment data can be allowed to be in sustained height, so as to The enough loudness for adjusting audio data to a certain extent, avoids the loudness of the media file played from problem fluctuated occur.Separately Outside, the difference between the peak swing value in each former fragment data can also be made bigger, in this way, can provide for user stronger Sense of hearing impact force.
In the embodiment of the present application, electronic equipment can also according to meet in the first audio data playback of media files requirement Peak swing value in amplitude and the first former fragment data, determines the first adjustment parameter.Then, further according to first got Amplitude in the former fragment data of adjusting parameter adjustment first, so that the first former fragment data is processed into first object segments According to.
For example, by the former fragment data of amplitude and first for meeting playback of media files requirement in the first audio data Multiple value between peak swing value is determined as the first adjustment parameter.To according to the former segment of the first adjustment parameter adjustment first Amplitude in data.
In this way, the peak swing value in the adjusted first former fragment data can be made to want with playback of media files is met The amplitude asked is identical.
Here, meet playback of media files require refer to the customized amplitude of user or media file according to The best loudness value etc. that environment automatically determines.
In the embodiment of the present application, electronic equipment can also according to meet in the first audio data playback of media files requirement Peak swing value in amplitude and the second former fragment data, determines second adjustment parameter.Then, further according to second got Amplitude in the former fragment data of adjusting parameter adjustment second, so that the second former fragment data is processed into the second target patch number of segment According to.
For example, by the former fragment data of amplitude and second for meeting playback of media files requirement in the first audio data Multiple value between peak swing value is determined as second adjustment parameter.To according to the former segment of second adjustment parameter adjustment second Amplitude in data.
In this way, the peak swing value in the adjusted second former fragment data can be made to want with playback of media files is met The amplitude asked is identical.
Here, the amplitude for meeting playback of media files requirement specifically refers to the customized amplitude of user;Either matchmaker The best loudness value etc. that body file is automatically determined according to environment.
In the embodiment of the present application, electronic equipment, can be with when handling the first audio data to obtain second audio data Overflow data protection is carried out to according to the former fragment data of the first adjustment parameter adjusted first;And to according to second adjustment The former fragment data of parameter adjusted second carries out overflow data protection.
It specifically, can will be according to each amplitude in the former fragment data of the first adjustment parameter adjusted first respectively and most Large amplitude threshold value and minimum amplitude threshold value are compared, and obtain comparison result;Peak swing threshold value will be greater than in comparison result Amplitude is adjusted to the peak swing threshold value;The amplitude for being less than minimum amplitude threshold value in comparison result is adjusted to the minimum amplitude threshold Value.
It specifically, can will be according to each amplitude in the former fragment data of second adjustment parameter adjusted second respectively and most Large amplitude threshold value and minimum amplitude threshold value are compared, and obtain comparison result;Peak swing threshold value will be greater than in comparison result Amplitude is adjusted to the peak swing threshold value;The amplitude for being less than minimum amplitude threshold value in comparison result is adjusted to the minimum amplitude threshold Value.In this way, the data of spilling can be accomplished with protection is handled.
Here, peak swing threshold value and minimum amplitude threshold value can be understood as the amplitude that meeting data are overflowed.
In the embodiment of the present application, for the original number of non-pulse coded modulation (PCM, Pulse Code Modulation) According to such as data of the package in mp3, it would be desirable to which additionally going through following steps can just obtain:
1) attribute of PCM raw data in mp3, mainly sample rate, channel number, bit depth are obtained;
2) then, we will be decoded mp3, can just obtain PCM raw data.
Step 103, the second audio data is exported;
In the embodiment of the present application, electronic equipment can be defeated by least one audio player installed on the electronic equipment The second audio data out.
In the embodiment of the present application, electronic equipment is when obtaining first object fragment data and the second target fragment data, and Meet unchanged state between the frequency parameter in frequency parameter and first object fragment data in one former fragment data;Second Meet unchanged state between the frequency parameter in frequency parameter and the second target fragment data in former fragment data.
Here, unchanged state specifically refer to target fragment data relative to former fragment data frequency parameter substantially not Become, only has lesser frequency relative to the joining place of each former fragment data in the joining place of each target fragment data and become The frequency parameter for the complete original audio data changed, and included for media file is almost unchanged.
For example, Fig. 2 is audio volume control schematic diagram one, as shown in Fig. 2, audio is a series of discrete model in the time domain, It is unfolded in strict accordance with timestamp, just will form suddenly big or suddenly small audio volume control shown in Fig. 2.
However, by adjusting operating system sound size and amplify loudness value, be substantially just increased audio wave The amplitude of shape, as shown in figure 3, to unified 0.5 times of the amplification of each amplitude on the basis of Fig. 2, in this way, by each amplitude Value carries out the identical multiple value of unified amplification, and obtained sound still can be fluctuated.
And the embodiment of the present application obtains each original in original audio data by carrying out fragment segmentation to original audio data Fragment data, then by adjusting the amplitude in each former fragment data, so that the peak swing in each original fragment data It is worth identical, audio issue fluctuated can occurs to avoid when playing audio file.It is specific as shown in Figure 4.First by Fig. 2 In original audio data be divided into two fragment datas, the respectively first former fragment data 401 and the second former fragment data 402. Then according to the customized amplitude of user using the amplitude B in the second former fragment data 402 as adjusting parameter, then pass through vibration Amplitude B adjusts separately the amplitude of the first former fragment data 401, so that the maximum in the adjusted first former fragment data 401 Peak swing value B in the former fragment data 402 of amplitude A and second is identical.It, can be in this way, adjusted by the amplitude of fragment section Solve the problems, such as that sound is suddenly big or suddenly small, so that sound is more stable.
In addition, by adjusting the amplitude in each former fragment data, it is also possible that the vibration in each original fragment data Width difference reaches maximum, so bigger impact force can be acoustically generated to user when playing audio file.
Fig. 5 is the structure composition schematic diagram one of data processing equipment in the embodiment of the present application, as shown in figure 5, the device packet It includes:
Acquiring unit 501, for obtaining media file, the media file includes at least the first audio number of the first duration According to;
Processing unit 502, for handling first audio data to obtain second audio data;
Output unit 503, for exporting the second audio data;
Wherein, the processing unit 502, comprising:
First subprocessing unit 5021, for handling the first former segments in first audio data by first method According to amplitude parameter, the described first former fragment data is processed into first object fragment data, the amplitude parameter is used for table Levy the loudness of first audio data;
Second subprocessing unit 5022, for handling the second former segments in first audio data by second method According to amplitude parameter, the described second former fragment data is processed into the second target fragment data;
Wherein, the described first former fragment data it is different with corresponding first duration of the second original fragment data when Section, and the first method is different from the second method.
In the embodiment of the present application, the former loudness difference of the described first former fragment data and the described second former fragment data is greater than The target loudness difference of the first object fragment data and the second target fragment data.
In the embodiment of the present application, in the peak swing value and the second former fragment data in the described first former fragment data Peak swing value difference be greater than the first object fragment data in peak swing value and the second target patch number of segment The difference of peak swing value in;And the peak swing value of the first object fragment data and second target patch Peak swing value in segment data is identical.
In the embodiment of the present application, in the frequency parameter and the first object fragment data in the described first former fragment data Frequency parameter between meet unchanged state;
Between the frequency parameter in frequency parameter and the second target fragment data in described second former fragment data Meet unchanged state.
In the embodiment of the present application, described device further include:
Noise reduction unit 504, for before the processing first audio data is to obtain second audio data, to institute It states the first audio data and carries out noise reduction process, to obtain the first audio data after noise reduction.
In the embodiment of the present application, acquiring unit 501 is also used to obtain the first adjustment parameter and obtains second adjustment parameter;
First subprocessing unit 5021 is specifically used for adjusting the described first former fragment data by the first adjustment parameter Amplitude, the described first former fragment data is processed into first object fragment data;
Second subprocessing unit 5022 is specifically used for adjusting the described second former fragment data by the second adjustment parameter Amplitude, the described second former fragment data is processed into the second target fragment data.
In the embodiment of the present application, acquiring unit 501, specifically for according to meeting in first audio data it is identical or Peak swing value in the amplitude of similar conditions and the first former fragment data, determines the first adjustment parameter;Or Person, according to the peak swing value in first audio data and the peak swing value in the first former fragment data, really The fixed the first adjustment parameter;Alternatively, according to minimum amplitude value and the first former segment in first audio data Peak swing value in data determines the first adjustment parameter;
Acquiring unit 501, specifically for according to the amplitude for meeting same or similar condition in first audio data Peak swing value in value and the second former fragment data, determines the second adjustment parameter;Alternatively, according to described first The peak swing value in peak swing value and the second former fragment data in audio data, is determined as the second adjustment Parameter;Alternatively, according to the minimum amplitude value in first audio data and the maximum vibration in the second former fragment data Amplitude is determined as the second adjustment parameter.
In the embodiment of the present application, acquiring unit 501 is specifically also used to according to the amplitude for meeting playback of media files requirement And the peak swing value in the first original fragment data, determine the first adjustment parameter;
And according to the maximum vibration in the amplitude and the second former fragment data for meeting playback of media files requirement Amplitude determines the second adjustment parameter.
The processing unit 502 is also used to described according to the former segments of the first adjustment parameter adjusted first According to progress overflow data protection;Spilling number is carried out according to the former fragment data of the second adjustment parameter adjusted second to described According to protection.
It should be understood that data processing equipment provided by the above embodiment adjusts the loudness of audio data in execution When whole, only with the division progress of above-mentioned each program module for example, in practical application, it can according to need and by above-mentioned processing Distribution is completed by different program modules, i.e., the internal structure of data processing equipment is divided into different program modules, with complete At all or part of processing described above.In addition, data processing equipment provided by the above embodiment and above-mentioned data processing Embodiment of the method belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Fig. 6 is the structural schematic diagram two of data processing equipment in the embodiment of the present application, as shown in fig. 6, data processing equipment 600 can be intelligent sound box, mobile phone, smart pen, smartwatch, intelligent ring, Intelligent bracelet, Intelligent glove, smart television, put down Plate computer, video camera, recorder etc..Data processing equipment 600 shown in fig. 6 includes: at least one processor 601, memory 602, at least one network interface 604 and user interface 603.Various components in data processing equipment 600 pass through bus system 605 are coupled.It is understood that bus system 605 is for realizing the connection communication between these components.Bus system 605 is removed It further include power bus, control bus and status signal bus in addition except data/address bus.But for the sake of clear explanation, Various buses are all designated as bus system 605 in Fig. 6.
Wherein, user interface 603 may include display, keyboard, mouse, trace ball, click wheel, key, button, sense of touch Plate or touch screen etc..
It is appreciated that memory 602 can be volatile memory or nonvolatile memory, may also comprise volatibility and Both nonvolatile memories.Wherein, nonvolatile memory can be read-only memory (ROM, Read Only Memory), Programmable read only memory (PROM, Programmable Read-Only Memory), Erasable Programmable Read Only Memory EPROM (EPROM, Erasable Programmable Read-Only Memory), electrically erasable programmable read-only memory The storage of (EEPROM, Electrically Erasable Programmable Read-Only Memory), magnetic random access Device (FRAM, ferromagnetic random access memory), flash memory (Flash Memory), magnetic surface are deposited Reservoir, CD or CD-ROM (CD-ROM, Compact Disc Read-Only Memory);Magnetic surface storage can be Magnetic disk storage or magnetic tape storage.Volatile memory can be random access memory (RAM, Random Access Memory), it is used as External Cache.By exemplary but be not restricted explanation, the RAM of many forms is available, such as Static random access memory (SRAM, Static Random Access Memory), synchronous static random access memory (SSRAM, Synchronous Static Random Access Memory), dynamic random access memory (DRAM, Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access Memory), double data speed synchronous dynamic RAM (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random Access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links Dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus Random access memory (DRRAM, Direct Rambus Random Access Memory).The embodiment of the present application description is deposited Reservoir 602 is intended to include but is not limited to the memory of these and any other suitable type.
Memory 602 in the embodiment of the present application is for storing various types of data to support data processing equipment 600 Operation.The example of these data includes: any computer program for operating on data processing equipment 600, is such as operated System 6021 and application program 6022 etc..Wherein, operating system 6021 includes various system programs, such as ccf layer, core library Layer, driving layer etc., for realizing various basic businesses and the hardware based task of processing.Application program 6022 may include respectively Kind application program, such as media player (Media Player), browser (Browser) etc. apply industry for realizing various Business.Realize that the program of the embodiment of the present application method may be embodied in application program 6022.
The method that above-mentioned the embodiment of the present application discloses can be applied in processor 601, or be realized by processor 601. Processor 601 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.Above-mentioned processing Device 601 can be general processor, digital signal processor (DSP, Digital Signal Processor) or other can Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..Processor 601 may be implemented or hold Disclosed each method, step and logic diagram in row the embodiment of the present application.General processor can be microprocessor or appoint What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present application, can be embodied directly at hardware decoding Reason device executes completion, or in decoding processor hardware and software module combine and execute completion.Software module can be located at In storage medium, which is located at memory 602, and processor 601 reads the information in memory 602, in conjunction with its hardware The step of completing preceding method.
In the exemplary embodiment, data processing equipment 600 can be by one or more application specific integrated circuit (ASIC, Application Specific Integrated Circuit), DSP, programmable logic device (PLD, Programmable Logic Device), Complex Programmable Logic Devices (CPLD, Complex Programmable Logic Device), field programmable gate array (FPGA, Field-Programmable Gate Array), general processor, control Device, microcontroller (MCU, Micro Controller Unit), microprocessor (Microprocessor) or other electronics member Part is realized, for executing preceding method.
It when the specific processor 601 runs the computer program, executes: obtaining media file, the media file In include at least the first duration the first audio data;First audio data is handled to obtain second audio data;Output The second audio data;
Wherein, first audio data is handled to obtain second audio data, is included at least:
The amplitude parameter that the first former fragment data is handled in first audio data by first method, by described the One former fragment data is processed into first object fragment data, and the amplitude parameter is used to characterize the sound of first audio data Degree;The amplitude parameter of the second former fragment data in first audio data is handled by second method, it is former by described second Fragment data is processed into the second target fragment data;
Wherein, the described first former fragment data it is different with corresponding first duration of the second original fragment data when Section, and the first method is different from the second method.
The former loudness difference of described first former fragment data and the second former fragment data is greater than the first object piece The target loudness difference of segment data and the second target fragment data.
Peak swing value in described first former fragment data and the peak swing value in the described second former fragment data Difference is greater than the peak swing in the peak swing value and the second target fragment data in the first object fragment data The difference of value;And the maximum in the peak swing value of the first object fragment data and the second target fragment data Amplitude is identical.
Between the frequency parameter in frequency parameter and the first object fragment data in described first former fragment data Meet unchanged state;
Between the frequency parameter in frequency parameter and the second target fragment data in described second former fragment data Meet unchanged state.
It when the processor 601 runs the computer program, also executes: first audio data is carried out at noise reduction Reason, to obtain the first audio data after noise reduction.
It when the processor 601 runs the computer program, also executes: obtaining the first adjustment parameter;Pass through described One adjusting parameter adjusts the amplitude of the described first former fragment data, and the described first former fragment data is processed into first object Fragment data;And obtain second adjustment parameter;The vibration of the described second former fragment data is adjusted by the second adjustment parameter Described second former fragment data is processed into the second target fragment data by amplitude.
When the processor 601 runs the computer program, also execute: when obtaining second adjustment parameter, according to institute State the maximum vibration in the amplitude for meeting same or similar condition and the first former fragment data in the first audio data Amplitude determines the first adjustment parameter;Alternatively, according to the peak swing value and described first in first audio data Peak swing value in former fragment data determines the first adjustment parameter;Alternatively, according in first audio data most Peak swing value in small amplitude and the first former fragment data, determines the first adjustment parameter;
When the processor 601 runs the computer program, also execute: when obtaining second adjustment parameter, according to institute State the maximum vibration in the amplitude for meeting same or similar condition and the second former fragment data in the first audio data Amplitude determines the second adjustment parameter;Alternatively, according to the peak swing value and described second in first audio data Peak swing value in former fragment data is determined as the second adjustment parameter;Alternatively, according in first audio data Peak swing value in minimum amplitude value and the second former fragment data, is determined as the second adjustment parameter.
It when the processor 601 runs the computer program, also executes: when obtaining the first adjustment parameter, according to full The peak swing value in amplitude and the first former fragment data that sufficient playback of media files requires, determines that described first adjusts Whole parameter;
It when the processor 601 runs the computer program, also executes: when obtaining second adjustment parameter, according to full The peak swing value in amplitude and the second former fragment data that sufficient playback of media files requires, determines that described second adjusts Whole parameter.
When the processor 601 runs the computer program, also execute: to described according to the first adjustment parameter tune The first former fragment data after whole carries out overflow data protection;And to described according to the second adjustment parameter adjusted Two former fragment datas carry out overflow data protection.
In the exemplary embodiment, the embodiment of the present application also provides a kind of computer readable storage medium, for example including The memory 602 of computer program, above-mentioned computer program can be executed by the processor 601 of data processing equipment 600, to complete Step described in preceding method.Computer readable storage medium can be FRAM, ROM, PROM, EPROM, EEPROM, Flash The memories such as Memory, magnetic surface storage, CD or CD-ROM;It is also possible to include one of above-mentioned memory or any group The various equipment closed, such as mobile phone, computer, tablet device, personal digital assistant.
A kind of computer readable storage medium, is stored thereon with computer program, which is run by processor When, it executes: obtaining media file, the first audio data of the first duration is included at least in the media file;Handle described One audio data is to obtain second audio data;Export the second audio data;
Wherein, first audio data is handled to obtain second audio data, is included at least:
The amplitude parameter that the first former fragment data is handled in first audio data by first method, by described the One former fragment data is processed into first object fragment data, and the amplitude parameter is used to characterize the sound of first audio data Degree;The amplitude parameter of the second former fragment data in first audio data is handled by second method, it is former by described second Fragment data is processed into the second target fragment data;
Wherein, the described first former fragment data it is different with corresponding first duration of the second original fragment data when Section, and the first method is different from the second method.
The former loudness difference of described first former fragment data and the second former fragment data is greater than the first object piece The target loudness difference of segment data and the second target fragment data.
Peak swing value in described first former fragment data and the peak swing value in the described second former fragment data Difference is greater than the peak swing in the peak swing value and the second target fragment data in the first object fragment data The difference of value;And the maximum in the peak swing value of the first object fragment data and the second target fragment data Amplitude is identical.
Between the frequency parameter in frequency parameter and the first object fragment data in described first former fragment data Meet unchanged state;
Between the frequency parameter in frequency parameter and the second target fragment data in described second former fragment data Meet unchanged state.
It when the computer program is run by processor, also executes: noise reduction process is carried out to first audio data, with The first audio data after to noise reduction.
It when the computer program is run by processor, also executes: obtaining the first adjustment parameter;Joined by the first adjustment Described first former fragment data is processed into first object segments by the amplitude of the former fragment data of number adjustment described first According to;And obtain second adjustment parameter;The amplitude of the described second former fragment data is adjusted by the second adjustment parameter, with Described second former fragment data is processed into the second target fragment data.
When the computer program is run by processor, also execute: when obtaining second adjustment parameter, according to first sound Peak swing value of the frequency in the amplitude for meeting same or similar condition and the first former fragment data in, determines The first adjustment parameter;Alternatively, according in first audio data peak swing value and the first former segments Peak swing value in determines the first adjustment parameter;Alternatively, according to the minimum amplitude value in first audio data And the peak swing value in the first original fragment data, determine the first adjustment parameter;
When the computer program is run by processor, also execute: when obtaining second adjustment parameter, according to first sound Peak swing value of the frequency in the amplitude for meeting same or similar condition and the second former fragment data in, determines The second adjustment parameter;Alternatively, according in first audio data peak swing value and the second former segments Peak swing value in is determined as the second adjustment parameter;Alternatively, according to the minimum amplitude in first audio data Peak swing value in value and the second former fragment data, is determined as the second adjustment parameter.
It when the computer program is run by processor, also executes: literary according to media are met when obtaining the first adjustment parameter Peak swing value in the amplitude of part broadcast request and the first former fragment data, determines the first adjustment parameter;
It when the computer program is run by processor, also executes: literary according to media are met when obtaining second adjustment parameter Peak swing value in the amplitude of part broadcast request and the second former fragment data, determines the second adjustment parameter.
When the computer program is run by processor, also execute: to described adjusted according to the first adjustment parameter First former fragment data carries out overflow data protection;And to described according to the former piece of the second adjustment parameter adjusted second Segment data carries out overflow data protection.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any Those familiar with the art within the technical scope of the present application, can easily think of the change or the replacement, and should all contain Lid is within the scope of protection of this application.Therefore, the protection scope of the application should be based on the protection scope of the described claims.

Claims (10)

1. a kind of data processing method, which comprises
Media file is obtained, the first audio data of the first duration is included at least in the media file;
First audio data is handled to obtain second audio data;
Export the second audio data;
Wherein, first audio data is handled to obtain second audio data, is included at least:
The amplitude parameter of the first former fragment data in first audio data is handled by first method, it is former by described first Fragment data is processed into first object fragment data, and the amplitude parameter is used to characterize the loudness of first audio data;
The amplitude parameter of the second former fragment data in first audio data is handled by second method, it is former by described second Fragment data is processed into the second target fragment data;
Wherein, the described first former fragment data period different from the described second corresponding first duration of former fragment data, And the first method is different from the second method.
2. according to the method described in claim 1, the former loudness of the described first former fragment data and the second former fragment data Difference is greater than the target loudness difference of the first object fragment data and the second target fragment data.
3. according to the method described in claim 1, peak swing value and the second former piece in the described first former fragment data The difference of peak swing value in segment data is greater than peak swing value and second mesh in the first object fragment data The difference of peak swing value in standard film segment data;And the peak swing value of the first object fragment data and described the Peak swing value in two target fragment data is identical.
4. according to the method described in claim 1, frequency parameter and the first object piece in the described first former fragment data Meet unchanged state between frequency parameter in segment data;
Meet between the frequency parameter in frequency parameter and the second target fragment data in described second former fragment data Unchanged state.
5. according to the method described in claim 1, the processing first audio data with obtain second audio data it Before, the method also includes:
Noise reduction process is carried out to first audio data, to obtain the first audio data after noise reduction.
6. method according to claim 1, described handle the first former segment in first audio data by first method Described first former fragment data is processed into first object fragment data by the amplitude parameter of data, comprising:
Obtain the first adjustment parameter;The amplitude that the described first former fragment data is adjusted by the first adjustment parameter, will Described first former fragment data is processed into first object fragment data;
The amplitude parameter that the second former fragment data is handled in first audio data by second method, by described the Two former fragment datas are processed into the second target fragment data, comprising:
Obtain second adjustment parameter;The amplitude that the described second former fragment data is adjusted by the second adjustment parameter, will Described second former fragment data is processed into the second target fragment data.
7. according to the method described in claim 6, the acquisition the first adjustment parameter, comprising:
According to the amplitude for meeting same or similar condition and the first former fragment data in first audio data In peak swing value, determine the first adjustment parameter;
Alternatively, according to the peak swing value in first audio data and the peak swing in the first former fragment data Value, determines the first adjustment parameter;
Alternatively, according to the minimum amplitude value in first audio data and the peak swing in the first former fragment data Value, determines the first adjustment parameter;
The acquisition second adjustment parameter, comprising:
According to the amplitude for meeting same or similar condition and the second former fragment data in first audio data In peak swing value, determine the second adjustment parameter;
Alternatively, according to the peak swing value in first audio data and the peak swing in the second former fragment data Value, is determined as the second adjustment parameter;
Alternatively, according to the minimum amplitude value in first audio data and the peak swing in the second former fragment data Value, is determined as the second adjustment parameter.
8. according to the method described in claim 7, the acquisition the first adjustment parameter, comprising:
According to the peak swing value in the amplitude and the first former fragment data for meeting playback of media files requirement, determine The first adjustment parameter;
The acquisition second adjustment parameter, comprising:
According to the peak swing value in the amplitude and the second former fragment data for meeting playback of media files requirement, determine The second adjustment parameter.
9. method according to claim 7 or 8, processing first audio data to obtain second audio data, At least further include:
Overflow data protection is carried out according to the former fragment data of the first adjustment parameter adjusted first to described;
Overflow data protection is carried out according to the former fragment data of the second adjustment parameter adjusted second to described.
10. a kind of data processing equipment, described device include:
Acquiring unit, for obtaining media file, the media file includes at least the first audio data of the first duration;
Processing unit, for handling first audio data to obtain second audio data;
Output unit, for exporting the second audio data;
The processing unit, comprising:
First subprocessing unit, for handling the amplitude of the first former fragment data in first audio data by first method Described first former fragment data is processed into first object fragment data by parameter, and the amplitude parameter is for characterizing described the The loudness of one audio data;
Second subprocessing unit, for handling the amplitude of the second former fragment data in first audio data by second method Described second former fragment data is processed into the second target fragment data by parameter;
Wherein, the described first former fragment data period different from the described second corresponding first duration of former fragment data, And the first method is different from the second method.
CN201811647498.5A 2018-12-29 2018-12-29 Data processing method and device Active CN109671448B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811647498.5A CN109671448B (en) 2018-12-29 2018-12-29 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811647498.5A CN109671448B (en) 2018-12-29 2018-12-29 Data processing method and device

Publications (2)

Publication Number Publication Date
CN109671448A true CN109671448A (en) 2019-04-23
CN109671448B CN109671448B (en) 2021-05-18

Family

ID=66146585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811647498.5A Active CN109671448B (en) 2018-12-29 2018-12-29 Data processing method and device

Country Status (1)

Country Link
CN (1) CN109671448B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110231087A (en) * 2019-06-06 2019-09-13 江苏省广播电视集团有限公司 A kind of high definition television audio loudness analysis alarm and normalization production method and equipment

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2107558A1 (en) * 2008-03-31 2009-10-07 Fujitsu Limited Communication apparatus
CN104575515A (en) * 2013-10-23 2015-04-29 中兴通讯股份有限公司 Method and device for improving voice quality
CN105336327A (en) * 2015-11-17 2016-02-17 百度在线网络技术(北京)有限公司 Gain control method and gain control device for audio data
CN105375896A (en) * 2014-08-29 2016-03-02 中兴通讯股份有限公司 Method for automatically adjusting volume and electronic equipment
CN105513606A (en) * 2015-11-27 2016-04-20 百度在线网络技术(北京)有限公司 Voice signal processing method, apparatus, and system
US20160133270A1 (en) * 2014-11-12 2016-05-12 Unlimiter Mfa Co., Ltd. Method for reducing noise and computer program thereof and electronic device
CN105810225A (en) * 2016-04-21 2016-07-27 苏州蓝博控制技术有限公司 Speech segmentation, recombination and output method and device
CN105845151A (en) * 2016-05-30 2016-08-10 百度在线网络技术(北京)有限公司 Audio gain adjustment method and audio gain adjustment device applied to speech recognition front-end
CN106024007A (en) * 2016-06-21 2016-10-12 维沃移动通信有限公司 Sound processing method and mobile terminal
CN106504765A (en) * 2016-10-20 2017-03-15 广州视源电子科技股份有限公司 Automatic gain control method and device for audio signal
US20170092289A1 (en) * 2015-09-28 2017-03-30 Alpine Electronics, Inc. Speech recognition system and gain setting system
CN106878806A (en) * 2017-03-09 2017-06-20 深圳创维-Rgb电子有限公司 Audio method of adjustment, device and television set
CN107633850A (en) * 2017-10-10 2018-01-26 维沃移动通信有限公司 A kind of volume adjusting method and electronic equipment
CN108806714A (en) * 2018-07-19 2018-11-13 北京小米智能科技有限公司 The method and apparatus for adjusting volume

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2107558A1 (en) * 2008-03-31 2009-10-07 Fujitsu Limited Communication apparatus
CN104575515A (en) * 2013-10-23 2015-04-29 中兴通讯股份有限公司 Method and device for improving voice quality
CN105375896A (en) * 2014-08-29 2016-03-02 中兴通讯股份有限公司 Method for automatically adjusting volume and electronic equipment
US20160133270A1 (en) * 2014-11-12 2016-05-12 Unlimiter Mfa Co., Ltd. Method for reducing noise and computer program thereof and electronic device
US20170092289A1 (en) * 2015-09-28 2017-03-30 Alpine Electronics, Inc. Speech recognition system and gain setting system
CN105336327A (en) * 2015-11-17 2016-02-17 百度在线网络技术(北京)有限公司 Gain control method and gain control device for audio data
CN105513606A (en) * 2015-11-27 2016-04-20 百度在线网络技术(北京)有限公司 Voice signal processing method, apparatus, and system
CN105810225A (en) * 2016-04-21 2016-07-27 苏州蓝博控制技术有限公司 Speech segmentation, recombination and output method and device
CN105845151A (en) * 2016-05-30 2016-08-10 百度在线网络技术(北京)有限公司 Audio gain adjustment method and audio gain adjustment device applied to speech recognition front-end
CN106024007A (en) * 2016-06-21 2016-10-12 维沃移动通信有限公司 Sound processing method and mobile terminal
CN106504765A (en) * 2016-10-20 2017-03-15 广州视源电子科技股份有限公司 Automatic gain control method and device for audio signal
CN106878806A (en) * 2017-03-09 2017-06-20 深圳创维-Rgb电子有限公司 Audio method of adjustment, device and television set
CN107633850A (en) * 2017-10-10 2018-01-26 维沃移动通信有限公司 A kind of volume adjusting method and electronic equipment
CN108806714A (en) * 2018-07-19 2018-11-13 北京小米智能科技有限公司 The method and apparatus for adjusting volume

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110231087A (en) * 2019-06-06 2019-09-13 江苏省广播电视集团有限公司 A kind of high definition television audio loudness analysis alarm and normalization production method and equipment
CN110231087B (en) * 2019-06-06 2021-07-23 江苏省广播电视集团有限公司 High-definition television audio loudness analysis alarm and normalization manufacturing method and device

Also Published As

Publication number Publication date
CN109671448B (en) 2021-05-18

Similar Documents

Publication Publication Date Title
CN105872253B (en) Live broadcast sound processing method and mobile terminal
CN106024007B (en) A kind of sound processing method and mobile terminal
CN103714824B (en) A kind of audio-frequency processing method, device and terminal device
US20170060520A1 (en) Systems and methods for dynamically editable social media
CN104021148B (en) Method and device for adjusting sound effect
CN105827849A (en) Method for adjusting sound effect and mobile terminal
CN103440862A (en) Method, device and equipment for synthesizing voice and music
US20160133245A1 (en) Sound Processing Method And Terminal Device
WO2019033987A1 (en) Prompting method and apparatus, storage medium, and terminal
CN109348274B (en) Live broadcast interaction method and device and storage medium
US20130144626A1 (en) Rap music generation
US20140167940A1 (en) Method of converting audio signal to haptic signal and apparatus thereof
CN204559866U (en) Audio frequency apparatus
CN105427874B (en) A kind of method, system and mobile terminal that Baffle Box of Bluetooth play parameter is configured
CN107885479A (en) A kind of method for regulation of sound volume, terminal device and computer-readable medium
CN109195090A (en) Test method and system for microphone electro mechanical parameter in product
CN110191221A (en) Audio-frequency processing method, circuit and terminal
CN106714033A (en) Method for preventing cracking voice of audio device, and terminal
CN109671448A (en) A kind of data processing method and device
CN205282093U (en) Audio player
CN108600898A (en) A kind of method, wireless sound box and the terminal device of configuration wireless sound box
US20190287514A1 (en) Voice recognition method, device and computer storage medium
US8494206B2 (en) Electronic device and method thereof
CN107506168A (en) volume adjusting method, device, terminal device and storage medium
CN108492826B (en) Audio processing method and device, intelligent equipment and medium

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
GR01 Patent grant
GR01 Patent grant