CN108182953A - Audio tail portion POP voice handling methods and device - Google Patents

Audio tail portion POP voice handling methods and device Download PDF

Info

Publication number
CN108182953A
CN108182953A CN201711450557.5A CN201711450557A CN108182953A CN 108182953 A CN108182953 A CN 108182953A CN 201711450557 A CN201711450557 A CN 201711450557A CN 108182953 A CN108182953 A CN 108182953A
Authority
CN
China
Prior art keywords
audio data
audio
pending
tail portion
amplitude
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
CN201711450557.5A
Other languages
Chinese (zh)
Other versions
CN108182953B (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.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Chuanying Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Chuanying Information Technology Co Ltd filed Critical Shanghai Chuanying Information Technology Co Ltd
Priority to CN201711450557.5A priority Critical patent/CN108182953B/en
Publication of CN108182953A publication Critical patent/CN108182953A/en
Application granted granted Critical
Publication of CN108182953B publication Critical patent/CN108182953B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/10537Audio or video recording
    • G11B2020/10546Audio or video recording specifically adapted for audio data
    • G11B2020/10555Audio or video recording specifically adapted for audio data wherein the frequency, the amplitude, or other characteristics of the audio signal is taken into account
    • G11B2020/10574Audio or video recording specifically adapted for audio data wherein the frequency, the amplitude, or other characteristics of the audio signal is taken into account volume or amplitude

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The present invention provides a kind of audio tail portion POP voice handling methods and device, obtains the playing duration of pending audio data and pending audio data first;And according to the playing duration of pending audio data, the tail portion audio data with preset tail portion playing duration is obtained from pending audio data;After the corresponding multiple audio amplitudes of tail portion audio data are obtained, judge whether the multiple audio amplitude is respectively less than or equal to POP sound threshold values, if not, show that pending audio data has the possibility for sending out POP sounds, the tail portion audio data in pending audio data is then replaced with preset replacement audio data, the audio data that obtains that treated, to eliminate the POP sounds of audio tail portion, wherein, all audio amplitudes for replacing audio data are respectively less than or equal to POP sound threshold values, realize the processing that tail data is carried out to audio data, the POP sounds of audio data tail portion are eliminated under the premise of hardware circuit is not changed, improve user experience, reduce the injury to user's ear.

Description

Audio tail portion POP voice handling methods and device
Technical field
This application involves signal processing technology more particularly to a kind of audio tail portion POP voice handling methods and device.
Background technology
User may generate POP sounds during audio frequency apparatus is used to play audio file.POP sounds refer to audio Abnormally occurs distorsion in playing process, such as magnitude of sound is flown up at the end of audio plays.POP sounds seriously affect The impression of user, it is also possible to which potential injury is caused to the ear of user.
The reason of generating POP sounds have it is very much, eliminate at present the defects of method of POP sounds is primarily directed on hardware circuit into Row improves.However, the producing cause of many POP sounds be also likely to be audio data in itself.Such as also there is the external world during recording stopping Sound, this will cause in the larger external sound of audio tail portion typing;Or the button that will press stop key when stopping of recording A part of the sound inputting audio file as audio, it is suddenly increased that these reasons have resulted in audio tail portion generation volume POP sounds can not be eliminated by existing circuits improvement.
Existing POP sounds removing method can not be eliminated because of POP sounds caused by audio reason itself.
Invention content
The present invention provides a kind of audio tail portion POP voice handling methods and device, to eliminate because audio reason itself causes POP sounds, improve user experience.
According to the first aspect of the invention, a kind of audio tail portion POP voice handling methods are provided, including:
Obtain the playing duration of pending audio data and the pending audio data;
According to the playing duration of the pending audio data, obtained from the pending audio data with preset The tail portion audio data of tail portion playing duration;
Obtain the corresponding multiple audio amplitudes of the tail portion audio data;
Judge whether the multiple audio amplitude is respectively less than or equal to POP sound threshold values, if it is not, then with preset replacement audio Data replace the tail portion audio data in the pending audio data, the audio data that obtains that treated, wherein, the replacement All audio amplitudes of audio data are respectively less than or equal to the POP sounds threshold values.
As a kind of realization method, in all audio amplitudes for replacing audio data, the posterior sound of reproduction time The audio amplitude of frequency evidence is respectively less than or the audio amplitude equal to the preceding audio data of reproduction time.
As a kind of realization method, if the multiple audio amplitude is respectively less than or equal to POP sound threshold values, the method is also wrapped It includes:
In the multiple audio amplitude, judge the posterior audio data of reproduction time audio amplitude whether be respectively less than or Equal to the audio amplitude of the preceding audio data of reproduction time;
If it is not, then replacing the tail portion audio data in the pending audio data with the replacement audio data, obtain Treated audio data.
As a kind of realization method, judge whether the multiple audio amplitude is respectively less than or equal to POP sound threshold values described Before, it further includes:Obtain the source-information of the pending audio data;
After the audio data that obtains that treated, further include:
Treated the audio data is played, and according to the source-information determines to preserve or treated described in deleting Audio data.
It is described to determine to preserve according to the source-information or treated described in deleting audio number as a kind of realization method According to, including:
Judge whether the pending audio data is the audio data locally recorded according to the source-information;
If so, preserving treated the audio data, and delete the pending audio data of former storage;
If it is not, then delete treated the audio data.
As a kind of realization method, it is described obtain pending audio data and the pending audio data broadcasting when It is long, including:
After audio playing request is obtained, audio file to be played is decoded, obtains decoded pending sound Frequency is according to this and the playing duration of the pending audio data.
According to the second aspect of the invention, a kind of audio tail portion POP sound processors are provided, including:
Pending audio acquisition module, for obtaining the broadcasting of pending audio data and the pending audio data Duration;
Tail portion audio acquisition module, for the playing duration according to the pending audio data, from the pending sound Frequency obtains the tail portion audio data with preset tail portion playing duration in;
Amplitude acquisition module, for obtaining the corresponding multiple audio amplitudes of the tail portion audio data;
Judging treatmenting module, for judging whether the multiple audio amplitude is respectively less than or equal to POP sound threshold values, if it is not, Tail portion audio data in the pending audio data then is replaced with preset replacement audio data, the audio that obtains that treated Data, wherein, all audio amplitudes for replacing audio data are respectively less than or equal to the POP sounds threshold value.
As a kind of realization method, in all audio amplitudes for replacing audio data, the posterior sound of reproduction time The audio amplitude of frequency evidence is respectively less than or the audio amplitude equal to the preceding audio data of reproduction time.
The judging treatmenting module is additionally operable to:
If the multiple audio amplitude is respectively less than or equal to POP sound threshold values, in the multiple audio amplitude, judge to broadcast Put time posterior audio data audio amplitude whether be respectively less than or the audio width equal to the preceding audio data of reproduction time Value;If it is not, the tail portion audio data in the pending audio data is then replaced with the replacement audio data, after obtaining processing Audio data.
As a kind of realization method, the pending audio acquisition module is additionally operable to:Judge the multiple audio described Amplitude whether be respectively less than or equal to POP sound threshold values before, obtain the source-information of the pending audio data;
The judging treatmenting module, is additionally operable to:After the audio data that obtains that treated, after playing the processing Audio data, and according to the source-information determine to preserve or treated described in deleting audio data.
As a kind of realization method, the judging treatmenting module is specifically used for:
After the audio data that obtains that treated, play treated the audio data, and according to it is described come Source information judges whether the pending audio data is the audio data locally recorded;
If so, preserving treated the audio data, and delete the pending audio data of former storage;
If it is not, then delete treated the audio data.
As a kind of realization method, the pending audio acquisition module is specifically used for:
After audio playing request is obtained, audio file to be played is decoded, obtains decoded pending sound Frequency is according to this and the whole playing duration of the pending audio data.
According to the third aspect of the invention we, a kind of terminal is provided, including:Memory, processor and computer program, institute It states computer program to be stored in the memory, the processor runs the computer program and performs first aspect and first The audio tail portion POP voice handling methods of the various possible designs of aspect.
According to the fourth aspect of the invention, a kind of storage medium is provided, including:Readable storage medium storing program for executing and computer program, The computer program is used to implement first aspect and the various possible design audio tail portion POP sounds processing sides of first aspect Method.
A kind of audio tail portion POP voice handling methods and device provided by the invention, obtain first pending audio data with And the playing duration of pending audio data;And according to the playing duration of pending audio data, from pending audio data Obtain the tail portion audio data with preset tail portion playing duration;Obtaining the corresponding multiple audio amplitudes of tail portion audio data Afterwards, judge whether the multiple audio amplitude is respectively less than or equal to POP sound threshold values, if it is not, showing that pending audio data exists The possibility of POP sounds is sent out, then the tail portion audio data in pending audio data is replaced with preset replacement audio data, is obtained Treated audio data, to eliminate the POP sounds of audio tail portion, wherein, all audio amplitudes for replacing audio data are respectively less than Or equal to POP sound threshold values, the processing for the audio data progress tail data that POP sounds may be generated in tail portion is realized, is not being changed The POP sounds of audio data tail portion are eliminated under the premise of becoming hardware circuit, user experience is improved, reduces the wound to user's ear Evil.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below Have technology describe needed in attached drawing do and simply introduce, it should be apparent that, the accompanying drawings in the following description is the present invention Some embodiments, for those of ordinary skill in the art, without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is a kind of audio tail portion POP voice handling method flow diagrams provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of audio tail portion POP sound processing examples provided in an embodiment of the present invention;
Fig. 3 is another audio tail portion POP sound process flow schematic diagrames provided in an embodiment of the present invention;
Fig. 4 is a kind of audio tail portion POP sound processors provided in an embodiment of the present invention;
Fig. 5 is a kind of hardware architecture diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only Only it is part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill Personnel's all other embodiments obtained without making creative work, shall fall within the protection scope of the present invention.
It should be appreciated that term " comprising " and " having " used herein and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not listing clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
Depending on linguistic context, as used in this " if " can be construed to " ... when " or " when ... " or " in response to determining " or " in response to detection ".
It should be appreciated that the application sound intermediate frequency data are to record the data of acoustic information, can be from other electronic equipments or It is being obtained at network server or locally recording.
Technical scheme of the present invention is described in detail with specifically embodiment below.These specific implementations below Example can be combined with each other, and the same or similar concept or process may be repeated no more in some embodiments.
The present invention is directed to because audio data reason itself causes to lead to the problem of POP sounds, especially because in audio tail Typing amplitude in portion's is larger or suddenly caused by increased audio data the problem of POP sounds, it is proposed that a kind of audio tail portion POP sounds Treating method and apparatus replaces original tail portion audio data with the replacement audio data preset, sets about in itself from audio data It is handled, realizes and eliminate because of POP sounds caused by audio reason itself, improve user experience.
Fig. 1 is a kind of audio tail portion POP voice handling method flow diagrams provided in an embodiment of the present invention.It is real shown in Fig. 1 The executive agent for applying example can be audio tail portion POP sound processors, which can be the electronic equipment of such as terminal, also may be used To be the audio treatment unit being embedded in electronic equipment.The terminal can be mobile terminal or fixed terminal.It is mobile Terminal include but not limited to mobile phone, personal digital assistant (Personal Digital Assi stant, PDA), tablet computer, Portable equipment (for example, portable computer, pocket computer or handheld computer) etc. has the function of the shifting of audio frequency process Dynamic equipment.The fixation that fixed terminal includes but not limited to gate inhibition, intelligent fixed-line telephone, console etc. and has the function of audio frequency process is set It is standby.The embodiment of the present invention does not limit the form of terminal.Embodiment illustrated in fig. 1 includes:
S101 obtains the playing duration of pending audio data and pending audio data.
In one implementation, it can be when getting new audio file, be obtained according to audio file pending Audio data.Wherein, when getting new audio file, can be specifically received for the first time from other-end or for the first time from Network it is locally downloading without audio file at the time of or locally recording obtain new audio file at the time of. When detecting to have obtained pending audio data, from the attribute information of pending audio data, such as obtained in data head To the playing duration of pending audio data.Such as the recording file locally recorded after End of Tape, it is obtained from file header Playing duration to the recording file is 10 minutes.
In another implementation, it can be when receiving the request for playing audio file, be obtained from the audio file Pending audio data or when receiving the request of audio data for playing and specifying, using specified audio data as treating Handle audio data.Wherein, when receiving the request for playing audio file, pending audio data is obtained from the audio file Specific implementation can be:After audio playing request is obtained, audio file to be played is decoded, after obtaining decoding Pending audio data, pending audio data for example can be decoded coding modulation data (pulse code Modulation, referred to as:PCM).Obtain the playing duration of pending audio data again after pending audio data is obtained.
S102, according to the playing duration of pending audio data, being obtained from pending audio data has preset tail The tail portion audio data of portion's playing duration.
Wherein, tail portion playing duration can be specifically according to largely there are the audio data sample of POP sounds, obtain most The tail portion playing duration of POP sounds may be caused.Tail portion playing duration for example can be 1 second, 2 seconds or 3 seconds.When tail portion plays It is long, can also be specifically to be determined, such as with pending audio data with the playing duration percentage of pending audio data The 1% of playing duration is used as tail portion playing duration, such as the pending audio data that playing duration is 300 seconds, tail portion play Shi Changwei 3 seconds.In an optional implementation manner, it is interior according to the content and this of the pending audio data of playing sequence acquisition Hold corresponding play time, and whether be tail according to the content that the judgement of the playing duration of pending audio data is currently got Portion's audio data if the content got is not tail portion audio data, plays out the content got, if obtained To content be tail data, then carry out the processing step of S103.
S103 obtains the corresponding multiple audio amplitudes of tail portion audio data.
Specifically, it can be that amplitude sampling is carried out to tail portion audio data, it is corresponding according to broadcasting to obtain tail portion audio data Put multiple audio amplitudes of Time alignment.Audio amplitude is the height variation for illustrating the volume when playing tail portion audio data, When audio amplitude is larger, broadcast sound volume increases.So if audio amplitude is in sometime unexpected saltus step increase or at some Suddenly rise after moment, then can send out unexpected explosion sound at the time point when playing tail portion audio data, be consequently formed POP sounds, not only reduce user experience, it is also possible to cause potential injury to the ear of user.It should be noted that in sampling frequency When rate is too small, the high-frequency pulse signal occurred in sampling interval duration can not just be collected, the pulse of amplitude is caused to be leaked Inspection.And when the coding frequency that sample frequency is more than pending audio data conciliates code frequency, and sampling progress can not be improved, again Increase calculated load.Therefore, sample frequency during amplitude sampling is carried out to tail portion audio data, can be and pending audio The coding frequency of data solves code frequency unanimously or is less than the coding frequency of pending audio data or solution code frequency. Coding frequency refers to the sample frequency used when carrying out data encoding to pending audio data, and solution code frequency refers to pending Audio data carries out the sample frequency used during data decoding.
S104, judges whether the multiple audio amplitude is respectively less than or equal to POP sound threshold values, if it is not, being then transferred to S105.
S105 replaces the tail portion audio data in pending audio data with preset replacement audio data, is handled Audio data afterwards, wherein, all audio amplitudes for replacing audio data are respectively less than or equal to POP sound threshold values.
Specifically, can be first determining acquisition multiple audio amplitudes maximum amplitude, with maximum amplitude and POP threshold values into Row multilevel iudge if maximum amplitude is less than or equal to POP threshold values, shows the multiple audio amplitudes obtained both less than or is equal to POP sound threshold values will not generate POP sounds in the case where POP sound threshold values are sufficiently small, then pending audio data can not be carried out The processing of POP sounds can further be judged whether there is the possibility for generating POP sounds.If maximum amplitude is more than POP thresholds Value then shows the audio amplitude for having more than POP sound threshold values in the audio data of tail portion, it is possible to create POP sounds.
After the tail portion audio data that pending audio data is determined is there may be POP sounds, then with preset replacement sound Frequency is according to the tail portion audio data replaced in pending audio data, the audio data that obtains that treated.Specifically, can be by The audio-frequency unit for replacing audio data and pending audio data removing tail portion audio data is spliced, the sound that obtains that treated Frequency evidence.In one implementation, it can be generated according to tail portion audio data to replace audio data, replace audio data Playing duration it is identical with tail portion audio data, thus obtained treated audio data has and pending audio data phase Same playing duration.Such as when the playout length of tail portion audio data is 3 seconds, generate one section of replacement audio data of 3 seconds. In another realization method, replacing audio data can also prestore, and playout length is fixed, with tail portion audio number According to playing duration may be different, thus obtained treated the playing duration of audio data and broadcasting for pending audio data Putting duration may be different.Such as the replacement audio data that playing duration is 2 seconds is previously stored with, in tail portion, audio data length is At 3 seconds, still spliced by the replacement audio data of 2 seconds of playing duration, thus obtained treated audio data 1 second fewer than the playing duration of pending audio data of playing duration.
Wherein, POP sounds threshold value can be determined according to the corresponding amplitude of POP sounds in multiple audio data samples.It replaces All audio amplitudes of audio data are respectively less than or equal to POP sound threshold values.Specifically, all audio amplitudes of audio data are replaced Can all be identical audio amplitude or the audio amplitude being gradually reduced.The audio amplitude being gradually reduced has preferable Fading effect, and with preferable user experience.
A kind of audio tail portion POP voice handling methods provided in this embodiment, obtain pending audio data and treat first Handle the playing duration of audio data;And it according to the playing duration of pending audio data, is obtained from pending audio data Tail portion audio data with preset tail portion playing duration;After the corresponding multiple audio amplitudes of tail portion audio data are obtained, Judge whether the multiple audio amplitude is respectively less than or equal to POP sound threshold values, sent out if it is not, showing that pending audio data exists The possibility of POP sounds then replaces the tail portion audio data in pending audio data with preset replacement audio data, is handled Audio data afterwards, to eliminate the POP sounds of audio tail portion, wherein, all audio amplitudes for replacing audio data are respectively less than or wait In POP sound threshold values, the processing for the audio data progress tail data that POP sounds may be generated in tail portion is realized, it is hard not changing The POP sounds of audio data tail portion are eliminated under the premise of part circuit, user experience is improved, reduces the injury to user's ear.
Fig. 2 is a kind of schematic diagram of audio tail portion POP sound processing examples provided in an embodiment of the present invention.Reality shown in Fig. 2 It is a kind of realization method on the basis of embodiment shown in Fig. 1 to apply example.As shown in Fig. 2, in all sounds for replacing audio data In frequency amplitude, the audio amplitude of the posterior audio data of reproduction time is respectively less than or equal to the preceding audio data of reproduction time Audio amplitude.The taper that the amplitude presentation of audio data is gradually reduced is replaced shown in Fig. 2, there is preferable effect of fading out, improve User experience.As shown in Fig. 2, determining the audio amplitude of tail portion audio data in pending audio data, judgement obtains tail The part audio amplitude of portion's audio data is more than POP sound threshold values, then by preset replacement audio data and tail portion audio data it Preceding audio is spliced, and obtains treated audio data.The audio amplitude of treated shown in Fig. 2 audio data tail portion is in The state being gradually reduced, what user heard is the sound effect gradually desalinated.
On the basis of Fig. 1 and embodiment illustrated in fig. 2, in order to improve to there may be the detections of the audio data of POP sounds Rate in the deterministic process shown in S104, can judge to show that the multiple audio amplitude is respectively less than or equal to POP sound threshold values The following processes further judged of Shi Jinhang.
In the multiple audio amplitude, further judge whether the audio amplitude of the posterior audio data of reproduction time is equal Less than or equal to the audio amplitude of the preceding audio data of reproduction time;
If it is not, show that pending audio data is not the sound effect gradually desalinated, in this case it is still possible to generate POP sounds, then Tail portion audio data in pending audio data is replaced with audio data is replaced, the audio data that obtains that treated;
If so, show pending audio data will not usually POP sounds, then tail portion POP sounds are not done to pending audio data Processing.
Replacement audio data in the present embodiment can be that audio amplitude as shown in Figure 2 is gradually reduced.
Fig. 3 is another audio tail portion POP sound process flow schematic diagrames provided in an embodiment of the present invention.In above-described embodiment In, pending audio data may be local recording generation, it is also possible to be obtained from outside.And for from outside obtain Pending audio data although tail portion audio data influences user experience there may be POP sounds, cannot exclude its tail portion There are the possibility of useful information for audio data.Therefore, on the basis of above-described embodiment, the present embodiment is judging the multiple sound Frequency amplitude whether be respectively less than or equal to POP sound threshold values before, also carried out carrying out pending audio data source judgement, it is and right The local pending audio data for recording generation and the pending audio data obtained from outside carry out sound with Different treatments The POP sounds processing of frequency tail portion, is described in detail the present embodiment with reference to Fig. 3.
S201 obtains the source-information of the pending audio data.
Specifically, it can be when needing to play pending audio data, believe from the file attribute of pending audio data In breath, the pending audio data is got, be the local pending audio data for recording generation or is treated from what outside obtained Handle audio data.A kind of realization method can be local specific to all local pending audio data settings for recording generation Identification information, when detecting such identification information, be then judged as YES the pending audio data locally recorded, and do not having When detecting such identification information, then the pending audio data obtained from outside is judged as YES.
S202 obtains the playing duration of pending audio data and the pending audio data.
S203, according to the playing duration of the pending audio data, being obtained from the pending audio data has The tail portion audio data of preset tail portion playing duration.
S204 obtains the corresponding multiple audio amplitudes of the tail portion audio data.
S205, judges whether the multiple audio amplitude is respectively less than or equal to POP sound threshold values, if it is not, being then transferred to S206.
S206 replaces the tail portion audio data in the pending audio data with preset replacement audio data, obtains Treated audio data.
The specific implementation of step S202-S206 may refer to the description of step S101-S105, realization principle and skill Art effect is similar, and details are not described herein again.
S207 plays treated the audio data, and according to the source-information determines to preserve or delete the place Audio data after reason.
The present embodiment is that above-mentioned audio tail portion POP sounds processing is carried out when preparing and playing pending audio data, is being obtained It is played out after treated audio data.It is that audio data gets buffering area waits for playing by treated during broadcasting Operation, during broadcasting or after playback ends, according to the source-information can determine to preserve or described in deleting Treated audio data.In one implementation, it determines to preserve according to the source-information or treated described in deleting Audio data can be specifically:Judge whether pending audio data is the audio data locally recorded according to source-information;If It is then to preserve treated audio data, and deletes the pending audio data of former storage;If it is not, the then sound after delete processing Frequency evidence.
Fig. 4 is a kind of audio tail portion POP sound processors provided in an embodiment of the present invention.Audio tail portion as shown in Figure 4 POP sound processors can be terminal or be embedded in the software module in terminal, hardware module or software and hardware The combination of module.The POP sound processors of audio tail portion shown in Fig. 4 include:
Pending audio acquisition module 41, for obtaining broadcasting for pending audio data and the pending audio data Put duration;
Tail portion audio acquisition module 42, for the playing duration according to the pending audio data, from described pending The tail portion audio data with preset tail portion playing duration is obtained in audio data;
Amplitude acquisition module 43, for obtaining the corresponding multiple audio amplitudes of the tail portion audio data;
Judging treatmenting module 44, for judging whether the multiple audio amplitude is respectively less than or equal to POP sound threshold values, if It is no, then tail portion audio data in the pending audio data is replaced with preset replacement audio data, obtain that treated Audio data, wherein, all audio amplitudes for replacing audio data are respectively less than or equal to the POP sounds threshold value.
The audio tail portion POP sound processors of embodiment illustrated in fig. 4 accordingly can be used for performing embodiment of the method shown in Fig. 1 In step, implementing principle and technical effect are similar, and details are not described herein again.
On the basis of above-described embodiment, in all audio amplitudes for replacing audio data, reproduction time is rear Audio data audio amplitude be respectively less than or the audio amplitude equal to the preceding audio data of reproduction time.
On the basis of above-described embodiment, judging treatmenting module is additionally operable to:
If the multiple audio amplitude is respectively less than or equal to POP sound threshold values, in the multiple audio amplitude, judge to broadcast Put time posterior audio data audio amplitude whether be respectively less than or the audio width equal to the preceding audio data of reproduction time Value;If it is not, the tail portion audio data in the pending audio data is then replaced with the replacement audio data, after obtaining processing Audio data.
On the basis of above-described embodiment, pending audio acquisition module is additionally operable to:Judge the multiple audio described Amplitude whether be respectively less than or equal to POP sound threshold values before, obtain the source-information of the pending audio data;
The judging treatmenting module, is additionally operable to:After the audio data that obtains that treated, after playing the processing Audio data, and according to the source-information determine to preserve or treated described in deleting audio data.
On the basis of above-described embodiment, judging treatmenting module is specifically used for:
After the audio data that obtains that treated, play treated the audio data, and according to it is described come Source information judges whether the pending audio data is the audio data locally recorded;
If so, preserving treated the audio data, and delete the pending audio data of former storage;
If it is not, then delete treated the audio data.
On the basis of above-described embodiment, pending audio acquisition module is specifically used for:
After audio playing request is obtained, audio file to be played is decoded, obtains decoded pending sound Frequency is according to this and the whole playing duration of the pending audio data.
Fig. 5 is a kind of hardware architecture diagram of terminal provided in an embodiment of the present invention.As shown in figure 5, the terminal includes: Processor 511 and memory 512;Wherein
Memory 512, for storing computer program, which can also be flash memory (flash).
Processor 511, for performing the execute instruction of memory storage, to realize above-mentioned audio tail portion POP sounds processing side Each step that terminal performs in method.The specific associated description that may refer in previous methods embodiment.
Optionally, memory 512 can also be integrated with processor 511 either independent.
When the memory 512 is independently of the device except processor 511, the terminal can also include:
Bus 513, for connecting the memory 512 and processor 511.
The present invention also provides a kind of readable storage medium storing program for executing, execute instruction is stored in readable storage medium storing program for executing, when terminal extremely When a few processor performs the execute instruction, terminal is performed at the audio tail portion POP sounds that above-mentioned various embodiments provide Reason method.
The present invention also provides a kind of program product, which includes execute instruction, which is stored in readable In storage medium.At least one processor of terminal can read the execute instruction, at least one processing from readable storage medium storing program for executing Device performs the execute instruction and terminal is caused to implement the audio tail portion POP voice handling methods that above-mentioned various embodiments provide.
In above-mentioned terminal or the embodiment of server, it should be appreciated that processor can be central processing unit (English: Central Processing Unit, referred to as:CPU), it can also be other general processors, digital signal processor (English: Digital Signal Processor, referred to as:DSP), application-specific integrated circuit (English:ApplicationSpecific Integrated Circuit, referred to as:ASIC) etc..General processor can be microprocessor or the processor can also be Any conventional processor etc..Hardware processor can be embodied directly in reference to the step of method disclosed in the present application to have performed Completion is performed into or with hardware in processor and software module combination.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe is described in detail the present invention with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to Can so modify to the technical solution recorded in foregoing embodiments either to which part or all technical features into Row equivalent replacement;And these modifications or replacement, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of audio tail portion POP voice handling methods, which is characterized in that including:
Obtain the playing duration of pending audio data and the pending audio data;
According to the playing duration of the pending audio data, being obtained from the pending audio data has preset tail portion The tail portion audio data of playing duration;
Obtain the corresponding multiple audio amplitudes of the tail portion audio data;
Judge whether the multiple audio amplitude is respectively less than or equal to POP sound threshold values, if it is not, then with preset replacement audio data Instead of the tail portion audio data in the pending audio data, the audio data that obtains that treated, wherein, the replacement audio All audio amplitudes of data are respectively less than or equal to the POP sounds threshold values.
2. according to the method described in claim 1, it is characterized in that, it is described replace audio data all audio amplitudes in, The audio amplitude of the posterior audio data of reproduction time is respectively less than or the audio amplitude equal to the preceding audio data of reproduction time.
3. according to the method described in claim 2, it is characterized in that, if the multiple audio amplitude is respectively less than or equal to POP sound Threshold value, the method further include:
In the multiple audio amplitude, judge whether the audio amplitude of the posterior audio data of reproduction time is respectively less than or is equal to The audio amplitude of the preceding audio data of reproduction time;
If it is not, then replacing the tail portion audio data in the pending audio data with the replacement audio data, handled Audio data afterwards.
4. method according to any one of claims 1 to 3, which is characterized in that judge the multiple audio amplitude described Whether be respectively less than or equal to POP sound threshold values before, further include:Obtain the source-information of the pending audio data;
After the audio data that obtains that treated, further include:
Treated the audio data is played, and according to the source-information determines to preserve or treated described in deleting audio Data.
5. according to the method described in claim 4, it is characterized in that, described according to the source-information determine to preserve or delete institute Audio data of stating that treated, including:
Judge whether the pending audio data is the audio data locally recorded according to the source-information;
If so, preserving treated the audio data, and delete the pending audio data of former storage;
If it is not, then delete treated the audio data.
6. the according to the method described in claim 1, it is characterized in that, pending audio data and described pending of obtaining The playing duration of audio data, including:
After audio playing request is obtained, audio file to be played is decoded, obtains decoded pending audio number According to this and the playing duration of the pending audio data.
7. a kind of audio tail portion POP sound processors, which is characterized in that including:
Pending audio acquisition module, during for obtaining the broadcasting of pending audio data and the pending audio data It is long;
Tail portion audio acquisition module, for the playing duration according to the pending audio data, from the pending audio number The tail portion audio data with preset tail portion playing duration is obtained according to middle;
Amplitude acquisition module, for obtaining the corresponding multiple audio amplitudes of the tail portion audio data;
Judging treatmenting module, for judging whether the multiple audio amplitude is respectively less than or equal to POP sound threshold values, if it is not, then using Preset audio data of replacing replaces tail portion audio data in the pending audio data, the audio number that obtains that treated According to, wherein, all audio amplitudes for replacing audio data are respectively less than or equal to the POP sounds threshold value.
8. device according to claim 7, which is characterized in that in all audio amplitudes for replacing audio data, The audio amplitude of the posterior audio data of reproduction time is respectively less than or the audio amplitude equal to the preceding audio data of reproduction time;
The judging treatmenting module is additionally operable to:
If the multiple audio amplitude is respectively less than or equal to POP sound threshold values, in the multiple audio amplitude, when judging to play Between posterior audio data audio amplitude whether be respectively less than or the audio amplitude equal to the preceding audio data of reproduction time;If It is no, then tail portion audio data in the pending audio data is replaced with the replacement audio data, the sound that obtains that treated Frequency evidence.
9. device according to claim 7 or 8, which is characterized in that the pending audio acquisition module is additionally operable to: It is described judge the multiple audio amplitude whether be respectively less than or equal to POP sound threshold values before, obtain the pending audio data Source-information;
The judging treatmenting module, is additionally operable to:After the audio data that obtains that treated, treated the sound is played Frequency evidence, and according to the source-information determine to preserve or treated described in deleting audio data.
10. device according to claim 9, which is characterized in that the judging treatmenting module is specifically used for:
After the audio data that obtains that treated, treated the audio data is played, and believe according to the source Breath judges whether the pending audio data is the audio data locally recorded;
If so, preserving treated the audio data, and delete the pending audio data of former storage;
If it is not, then delete treated the audio data.
CN201711450557.5A 2017-12-27 2017-12-27 Audio tail POP sound processing method and device Active CN108182953B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711450557.5A CN108182953B (en) 2017-12-27 2017-12-27 Audio tail POP sound processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711450557.5A CN108182953B (en) 2017-12-27 2017-12-27 Audio tail POP sound processing method and device

Publications (2)

Publication Number Publication Date
CN108182953A true CN108182953A (en) 2018-06-19
CN108182953B CN108182953B (en) 2021-03-16

Family

ID=62547949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711450557.5A Active CN108182953B (en) 2017-12-27 2017-12-27 Audio tail POP sound processing method and device

Country Status (1)

Country Link
CN (1) CN108182953B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175015A (en) * 2019-05-29 2019-08-27 Oppo广东移动通信有限公司 A kind of method, apparatus and terminal device of the volume of controlling terminal equipment
CN111083406A (en) * 2018-10-18 2020-04-28 浙江宇视科技有限公司 Audio processing method and camera

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11168379A (en) * 1997-12-02 1999-06-22 Nec Ic Microcomput Syst Ltd Noise elimination circuit
US20070033015A1 (en) * 2005-07-19 2007-02-08 Sanyo Electric Co., Ltd. Noise Canceller
CN101477801A (en) * 2009-01-22 2009-07-08 东华大学 Method for detecting and eliminating pulse noise in digital audio signal
CN102348150A (en) * 2010-07-22 2012-02-08 索尼公司 Audio signal processing apparatus, audio signal processing method, and program
CN102572642A (en) * 2010-12-14 2012-07-11 联芯科技有限公司 Audio POP sound elimination method and earphone audio circuit
CN103093782A (en) * 2013-02-19 2013-05-08 上海东方传媒集团有限公司 Data identification and replacement method of digital audio tape (DAT) missing audio
CN103187069A (en) * 2011-12-29 2013-07-03 福建联拓科技有限公司 Method and device for subaudio frequency last syllable detection
CN103440872A (en) * 2013-08-15 2013-12-11 大连理工大学 Transient state noise removing method
CN103700386A (en) * 2013-12-16 2014-04-02 联想(北京)有限公司 Information processing method and electronic equipment
CN106653037A (en) * 2015-11-03 2017-05-10 广州酷狗计算机科技有限公司 Audio data processing method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11168379A (en) * 1997-12-02 1999-06-22 Nec Ic Microcomput Syst Ltd Noise elimination circuit
US20070033015A1 (en) * 2005-07-19 2007-02-08 Sanyo Electric Co., Ltd. Noise Canceller
CN101477801A (en) * 2009-01-22 2009-07-08 东华大学 Method for detecting and eliminating pulse noise in digital audio signal
CN102348150A (en) * 2010-07-22 2012-02-08 索尼公司 Audio signal processing apparatus, audio signal processing method, and program
CN102572642A (en) * 2010-12-14 2012-07-11 联芯科技有限公司 Audio POP sound elimination method and earphone audio circuit
CN103187069A (en) * 2011-12-29 2013-07-03 福建联拓科技有限公司 Method and device for subaudio frequency last syllable detection
CN103093782A (en) * 2013-02-19 2013-05-08 上海东方传媒集团有限公司 Data identification and replacement method of digital audio tape (DAT) missing audio
CN103440872A (en) * 2013-08-15 2013-12-11 大连理工大学 Transient state noise removing method
CN103700386A (en) * 2013-12-16 2014-04-02 联想(北京)有限公司 Information processing method and electronic equipment
CN106653037A (en) * 2015-11-03 2017-05-10 广州酷狗计算机科技有限公司 Audio data processing method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111083406A (en) * 2018-10-18 2020-04-28 浙江宇视科技有限公司 Audio processing method and camera
CN111083406B (en) * 2018-10-18 2022-06-14 浙江宇视科技有限公司 Audio processing method and camera
CN110175015A (en) * 2019-05-29 2019-08-27 Oppo广东移动通信有限公司 A kind of method, apparatus and terminal device of the volume of controlling terminal equipment
CN110175015B (en) * 2019-05-29 2022-05-27 Oppo广东移动通信有限公司 Method and device for controlling volume of terminal equipment and terminal equipment

Also Published As

Publication number Publication date
CN108182953B (en) 2021-03-16

Similar Documents

Publication Publication Date Title
CN108738006B (en) Data transmission method and device based on Bluetooth
KR101158717B1 (en) Coding reverberant sound signals
CN108091352B (en) Audio file processing method and device, storage medium and terminal equipment
CN106228993B (en) Method and device for eliminating noise and electronic equipment
CN108182953A (en) Audio tail portion POP voice handling methods and device
US8892445B2 (en) Quality of user generated audio content in voice applications
EP3229443B1 (en) Data processing device, data processing method, and program
CN105869647B (en) A kind of primary DSD audio-frequency decoding method of smart phone, system and smart phone
US20160035359A1 (en) System and method to reduce transmission bandwidth via improved discontinuous transmission
CN103744505B (en) Information processing method and electronic equipment
CN105959466B (en) The treating method and apparatus of audio data
CN107967919A (en) Eliminate the method, device and mobile terminal of TDD noises
JP2006065067A (en) Apparatus, method, and program for speech processing
CN104202321B (en) A kind of method and device of sound recording
CN104934040A (en) Duration adjustment method and device for audio signal
CN112802453B (en) Fast adaptive prediction voice fitting method, system, terminal and storage medium
KR101349797B1 (en) Apparatus and method for voice file playing in electronic device
JP2965788B2 (en) Audio gain control device and audio recording / reproducing device
KR100604030B1 (en) Apparatus synchronizing audio and video data
CN107104650A (en) Gain adjusting method therefore, device, audio coder and stereo set
CN107331404A (en) The sound processing method and device of audio frequency and video
CN111863004A (en) Sound signal processing method, system, electronic device and storage medium
CN113259385B (en) Echo eliminating method and device for audio playing and electronic equipment
CN111710338B (en) Speaking playing method and device
JP2002287800A (en) Speech signal processor

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