CN105323371A - Audio clipping method and mobile terminal - Google Patents

Audio clipping method and mobile terminal Download PDF

Info

Publication number
CN105323371A
CN105323371A CN201510083804.7A CN201510083804A CN105323371A CN 105323371 A CN105323371 A CN 105323371A CN 201510083804 A CN201510083804 A CN 201510083804A CN 105323371 A CN105323371 A CN 105323371A
Authority
CN
China
Prior art keywords
time
volume
editing
peak
valley
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
CN201510083804.7A
Other languages
Chinese (zh)
Other versions
CN105323371B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201510083804.7A priority Critical patent/CN105323371B/en
Publication of CN105323371A publication Critical patent/CN105323371A/en
Application granted granted Critical
Publication of CN105323371B publication Critical patent/CN105323371B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to the technical field of audio processing, and discloses an audio clipping method. The audio clipping method comprises the following steps: receiving an audio clipping indication, and obtaining a clip starting time and a clip stopping time corresponding to the audio clipping indication; obtaining a first volume peak value time and a first volume valley value time adjacent to the clip starting time, and a second volume peak value time and a second volume valley value time adjacent to the clip stopping time; determining the final clip starting time according to the first volume peak value time and the first volume valley value time, and determining the final clip stopping time according to the second volume peak value time and the second volume valley value time; and performing audio clipping according to the final clip starting time and the final clip stopping time. The invention further discloses a mobile terminal, which is controlled through the above method. The clipped audio volume in the invention is relatively soft; and the user experience is improved.

Description

The clipping method of audio frequency and mobile terminal
Technical field
The present invention relates to audio signal processing technique field, particularly relate to a kind of clipping method and mobile terminal of audio frequency.
Background technology
Ring making software category on current mobile terminal is various, but this kind of software is all that user can carry out the editing of audio fragment by the mode pulling progress bar or input editing time by providing progress bar or time input frame to intercept audio fragment for user.
But, existing ring making software is not to the audio fragment that user intercepts, especially the initial time of audio frequency and end time carry out intelligent adjustment, when the initial time of the audio fragment that user intercepts is by chance at larger volume place, the use sense that can bring user ear-piercing, lofty is subject to, if and volume is excessive at the end of audio clip plays, also can gives a kind of sense of discomfort of stopping abruptly of user, have impact on the experience of user.
Summary of the invention
For the clipping method overcoming prior art sound intermediate frequency affects the problem of user's experience, the embodiment of the present invention provides a kind of clipping method of audio frequency on the one hand, comprising:
Audio reception editing indicates, and obtains and indicates corresponding editing initial time and editing termination time with described editing;
Obtain the first volume time to peak adjacent with described editing initial time and the first volume valley time, and the second volume time to peak adjacent with the described editing termination time and the second volume valley time;
According to described first volume time to peak and the first volume valley time, determine final editing initial time, and described second volume time to peak and the second volume valley time, determine the final editing termination time;
According to described final editing initial time and described final editing termination time, editing is carried out to described audio frequency.
On the other hand, the embodiment of the present invention additionally provides a kind of mobile terminal, comprising:
Receiver module, for audio reception editing instruction, obtains and indicates corresponding editing initial time and editing termination time with described editing;
Acquisition module, for obtaining the first volume time to peak adjacent with described editing initial time and the first volume valley time, and the second volume time to peak adjacent with the described editing termination time and the second volume valley time;
Determination module, for according to described first volume time to peak and the first volume valley time, determines final editing initial time, and described second volume time to peak and the second volume valley time, determines the final editing termination time;
Editing module, for carrying out editing according to described final editing initial time and described final editing termination time to described audio frequency.
The embodiment of the present invention indicates corresponding editing initial time and editing termination time by obtaining with editing, and the first volume time to peak and the first volume valley time that are adjacent is searched according to editing initial time, the the second volume time to peak and the second volume valley time that are adjacent is searched according to the editing termination time, determine final editing initial time and final editing termination time, can avoid intercepting audio frequency at volume peak value place, make the volume of music comparatively soft, prevent from bringing ear-piercing, lofty effect to user, improve user's experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the second embodiment of the clipping method of audio frequency of the present invention;
Fig. 2 is the schematic flow sheet of the 3rd embodiment of the clipping method of audio frequency of the present invention;
Fig. 3 is the structural representation of the first embodiment of mobile terminal of the present invention;
Fig. 4 is the structural representation of the second embodiment of mobile terminal of the present invention;
Fig. 5 is the structural representation of the 3rd embodiment of mobile terminal of the present invention.
Embodiment
In order to make technical problem solved by the invention, technical scheme and beneficial effect clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
First embodiment of the clipping method of audio frequency of the present invention, the clipping method of this audio frequency comprises:
Step S11, audio reception editing indicates, and obtains and indicates corresponding editing initial time and editing termination time with described editing.
Audio clips instruction can be sent by user, obtain editing initial time and the operation of editing termination time and can start (this mode chosen can comprise chosen by progress bar or chosen by input time) after user chooses the initial time of audio clips, also can start after user confirms editing audio frequency.
Step S12, obtains the first volume time to peak adjacent with described editing initial time and the first volume valley time, and the second volume time to peak adjacent with the described editing termination time and the second volume valley time.
In the present embodiment, the first volume time to peak and the second volume time to peak can be the time points that volume is become when weakening from rising, and the first volume valley time and the second volume valley time can be that volume is from the time point weakened when becoming rising.
Before first volume time to peak and the first volume valley time can be positioned at editing initial time simultaneously, also after can being positioned at editing initial time simultaneously, in the present embodiment, before first volume time to peak and in the first volume valley time one are positioned at the first initial time, after another is positioned at the first initial time.Second volume time to peak and the second volume valley time the same.
Step S13, according to described first volume time to peak and the first volume valley time, determines final editing initial time, and described second volume time to peak and the second volume valley time, determines the final editing termination time.
In the present embodiment, final editing initial time can be the average of the first volume time to peak and the first volume valley time, and the final editing termination time can be the average of the second volume time to peak and the second volume valley time.For final editing initial time, if the first volume time to peak is t1, the first volume valley time was t2, then final editing initial time t=(t1+t2)/2.
Step S14, carries out editing according to described final editing initial time and described final editing termination time to described audio frequency.
The embodiment of the present invention indicates corresponding editing initial time and editing termination time by obtaining with editing, and the first volume time to peak and the first volume valley time that are adjacent is searched according to editing initial time, the the second volume time to peak and the second volume valley time that are adjacent is searched according to the editing termination time, determine final editing initial time and final editing termination time, can avoid intercepting audio frequency at volume peak value place, make the volume of music comparatively soft, prevent from bringing ear-piercing, lofty effect to user, improve user's experience.
Fig. 1, be the schematic flow sheet of the second embodiment of the clipping method of audio frequency of the present invention, the clipping method of this audio frequency comprises:
Step S21, audio reception editing indicates, and obtains and indicates corresponding editing initial time and editing termination time with described editing.
This step is identical with the corresponding step in the first embodiment, repeats no more here.
Step S22, obtains the volume Wave data of audio frequency.
In the present embodiment, volume Wave data can be expressed with the form of data group.
Step S23, time when reaching crest according to volume in described volume Wave data, generates volume time to peak array.
Step S24, time when reaching trough according to volume in described volume Wave data, generates volume valley time array.
In the present embodiment, time when volume in this volume time to peak array arrives crest can in chronological sequence sequentially arrange, and the time when volume in volume valley time array arrives trough also can arrange according to time order and function order.Exemplary, volume time to peak array is T={t1, t2, t3...tn}, wherein, time corresponding when t1, t2, t3...tn represent that volume reaches peak value, described t1<t2<t3<...LEssT .LTssT.LTtn.Volume valley time array be T '=t1 ', t2 ', t3 ' ... tn ' }, wherein, t1 ', t2 ', t3 ' ... time corresponding when tn ' represents that volume reaches valley, described t1 ' <t2 ' <t3 ' <...<tn '.
Step S25, by described volume time to peak array, the time to peak nearest with described editing initial time, as the first volume time to peak, with the time to peak that the described editing termination time is nearest, as the second volume time to peak.
In the present embodiment, search the first volume time to peak and the second volume time to peak concrete grammar can be, get the absolute value of the difference of the array element in editing initial time and volume time to peak array, the minimum numerical value element of corresponding absolute value is namely from the time to peak that editing initial time is nearest; Get the absolute value of the difference of the array element in editing termination time and volume time to peak array, the minimum numerical value element of corresponding absolute value is namely from the time to peak that the editing termination time is nearest.Exemplary, volume time to peak array is T={t1, t2, t3...tn}, and editing initial time is tk, and the editing termination time is tl.Array element each in tk and array T is compared, obtains the t3 that distance tk is nearest, as the first volume time to peak; Array element each in tl and array T is compared, obtains the t6 that distance tl is nearest, as the second volume time to peak.
Step S26, by described volume valley time array, the valley time nearest with described editing initial time, as the first volume valley time, with the valley time that the described editing termination time is nearest, as the second volume valley time.
In the present embodiment, searched for the first volume valley time and the second volume valley time can be identical with the method for searching the first volume time to peak and the second volume time to peak, exemplary, volume valley time array be T '=t1 ', t2 ', t3 ' ... tn ' }, editing initial time is tk, and the editing termination time is tl.Array element each in tk and array T ' is compared, obtains the t4 ' that distance tk is nearest, as the first volume valley time; Array element each in tl and array T ' is compared, obtains the t7 ' that distance tl is nearest, as the second volume valley time.
Step S27, is weighted to described first volume time to peak and described first volume valley time computing of averaging, obtains described final editing initial time.
In the present embodiment, how to obtain final editing initial time be further explained above-mentioned weighted average computing, exemplary, the first volume time to peak is t3, first volume valley time was t4 ', then final editing initial time is k1*t3+k2*t4 '.Wherein k1 represents weight shared by the first volume time to peak, and k2 represents weight shared by the first volume valley time, 0<k1≤1,0<k2≤1, k1, k2 can be default, as k2=1-k1, also can be that user sets, not limit at this.
Step S28, is weighted to described second volume time to peak and described second volume valley time computing of averaging, obtains the described final editing termination time.
In the present embodiment, how to obtain the final editing termination time be further explained above-mentioned weighted average computing, exemplary, the second volume time to peak is t6, second volume valley time was t7 ', then the final editing termination time is k3*t6+k4*t7 '.Wherein k3 represents weight shared by the second volume time to peak, and k4 represents weight 0<k3≤1 shared by the second volume valley time, 0<k4≤1, k3, k4 can be default, as k3=1-k4, also can be that user sets, not limit at this.
Step S29, carries out editing according to described final editing initial time and described final editing termination time to described audio frequency.
This step is identical with the corresponding step in the first embodiment, repeats no more here.
The present embodiment is by generating volume valley time array and volume time to peak array, rapidly the first volume valley time, volume two valley time and volume one time to peak, volume two time to peak can be positioned to rapidly in corresponding time array, and obtain final editing initial time and final editing termination time by searching, feedback rapidly, does not take too much memory space.
Fig. 2, be the schematic flow sheet of the 3rd embodiment of the clipping method of audio frequency of the present invention, the clipping method of this audio frequency comprises:
Step S31, audio reception editing indicates, and obtains and indicates corresponding editing initial time and editing termination time with described editing.
This step is identical with the corresponding step in the first embodiment, repeats no more here.
Step S32, obtains the volume Wave data of audio frequency.
In the present embodiment, volume Wave data can be expressed with the form of volume oscillogram, and the transverse axis of this volume oscillogram can be the time, and the longitudinal axis can be volume.Voice data can be the waveform of some fluctuations in volume oscillogram.
Step S33, search in described volume Wave data, the volume nearest with described editing initial time reaches time during crest, as described first volume time to peak, and time when nearest volume reaches crest with the described editing termination time, as described second volume time to peak.
Step S34, search in described volume Wave data, the volume nearest with described editing initial time reaches time during trough, as the described first volume valley time, and time when nearest volume reaches trough with the described editing termination time, as the described second volume valley time.
In the present embodiment, before the first volume time to peak and the first volume valley time can be positioned at editing initial time simultaneously, after also can being positioned at editing initial time simultaneously.Before second volume time to peak and the second volume valley time can be positioned at the editing termination time simultaneously, after also can being positioned at the editing termination time simultaneously.
Step S35, according to described first volume time to peak and the first volume valley time, determines final editing initial time, and described second volume time to peak and the second volume valley time, determines the final editing termination time.
This step is identical with the corresponding step in the first embodiment, repeats no more here.
Step S36, carries out editing according to described final editing initial time and described final editing termination time to described audio frequency.
This step is identical with the corresponding step in the first embodiment, repeats no more here.
Step S37, carries out ascending gradual change process to the volume in Preset Time from described final editing initial time.
Step S38, carries out descending gradual change process to the volume in Preset Time from the described final editing intermission.
Above-mentioned Preset Time can be default, also can be set by the user, and exemplary, the present embodiment gets 5s.
The first volume time to peak nearest with editing initial time and the first volume valley time is directly determined by volume Wave data in the present embodiment, the second volume time to peak nearest with the editing termination time and the second volume valley time, decrease the interior imputation method of mobile terminal, step is simple, and it is convenient to realize; Meanwhile, the present embodiment carries out ascending gradual change process to by the volume of the beginning of editing audio-frequency unit and ending, makes volume more level and smooth, further avoid music and bring ear-piercing, lofty sensation to user, improve user's experience.
Detailed introduction is done to the embodiment of the clipping method of audio frequency of the present invention above.Below the mobile terminal corresponding to said method is further elaborated.Wherein, mobile terminal can be mobile phone, panel computer, MP3, MP4 or notebook computer etc.
Fig. 3 is the structural representation of the first embodiment of mobile terminal of the present invention, and the mobile terminal 100 in the embodiment of the present invention can the clipping method of audio frequency in the first embodiment to implement the above described method.
The mobile terminal 100 of the embodiment of the present invention comprises: receiver module 110, acquisition module 120, determination module 130 and editing module 140.
Wherein, receiver module 110, is connected with acquisition module 120, for audio reception editing instruction, obtains and indicates corresponding editing initial time and editing termination time with described editing.
Audio clips instruction can be sent by user, obtain editing initial time and the operation of editing termination time and can start (this mode chosen can comprise chosen by progress bar or chosen by input time) after user chooses the initial time of audio clips, also can start after user confirms editing audio frequency.
Acquisition module 120, be connected with determination module 130, for obtaining the first volume time to peak adjacent with described editing initial time and the first volume valley time, and the second volume time to peak adjacent with the described editing termination time and the second volume valley time.
In the present embodiment, the first volume time to peak and the second volume time to peak can be the time points that volume is become when weakening from rising, and the first volume valley time and the second volume valley time can be that volume is from the time point weakened when becoming rising.
Before first volume time to peak and the first volume valley time can be positioned at editing initial time simultaneously, also after can being positioned at editing initial time simultaneously, in the present embodiment, before first volume time to peak and in the first volume valley time one are positioned at the first initial time, after another is positioned at the first initial time.Second volume time to peak and the second volume valley time the same.
Determination module 130, be connected with editing module 140, for according to described first volume time to peak and the first volume valley time, determine final editing initial time, and described second volume time to peak and the second volume valley time, determine the final editing termination time.
In the present embodiment, final editing initial time can be the average of the first volume time to peak and the first volume valley time, and the final editing termination time can be the average of the second volume time to peak and the second volume valley time.For final editing initial time, if the first volume time to peak is t1, the first volume valley time was t2, then final editing initial time t=(t1+t2)/2.
Editing module 140, for carrying out editing according to described final editing initial time and described final editing termination time to described audio frequency.
The embodiment of the present invention indicates corresponding editing initial time and editing termination time by obtaining with editing, and the first volume time to peak and the first volume valley time that are adjacent is searched according to editing initial time, the the second volume time to peak and the second volume valley time that are adjacent is searched according to the editing termination time, determine final editing initial time and final editing termination time, can avoid intercepting audio frequency at volume peak value place, make the volume of music comparatively soft, prevent from bringing ear-piercing, lofty effect to user, improve user's experience.
Fig. 4 is the structural representation of the second embodiment of mobile terminal of the present invention, and the mobile terminal 200 in the embodiment of the present invention can the clipping method of audio frequency in the second embodiment to implement the above described method.The mobile terminal 200 of the embodiment of the present invention comprises receiver module 210, acquisition module 220, determination module 230 and editing module 240.
Wherein, receiver module 210, is connected with acquisition module 220, for audio reception editing instruction, obtains and indicates corresponding editing initial time and editing termination time with described editing.
This module is identical with the respective modules in the first embodiment, repeats no more here.
Acquisition module 220, is connected with determination module 230, comprises acquiring unit 221, first generation unit 222, second generation unit 223, first and chooses unit 224 and second and choose unit 225.
Wherein, acquiring unit 221, is connected with the first generation unit 222 and the second generation unit 223, for obtaining the volume Wave data of audio frequency;
First generation unit 222, chooses unit 224 be connected with first, for reaching time during crest according to volume in described volume Wave data, generates volume time to peak array.
Second generation unit 223, chooses unit 225 be connected with second, for reaching time during trough according to volume in described volume Wave data, generates volume valley time array.
In the present embodiment, time when volume in this volume time to peak array arrives crest can in chronological sequence sequentially arrange, and the time when volume in volume valley time array arrives trough also can arrange according to time order and function order.Exemplary, volume time to peak array is T={t1, t2, t3...tn}, wherein, time corresponding when t1, t2, t3...tn represent that volume reaches peak value, described t1<t2<t3<...LEssT .LTssT.LTtn.Volume valley time array be T '=t1 ', t2 ', t3 ' ... tn ' }, wherein, t1 ', t2 ', t3 ' ... time corresponding when tn ' represents that volume reaches valley, described t1 ' <t2 ' <t3 ' <...<tn '.
First chooses unit 224, and for by described volume time to peak array, the time to peak nearest with described editing initial time, as the first volume time to peak, with the time to peak that the described editing termination time is nearest, as the second volume time to peak.
In the present embodiment, search the first volume time to peak and the second volume time to peak concrete grammar can be, get the absolute value of the difference of the array element in editing initial time and volume time to peak array, the minimum numerical value element of corresponding absolute value is namely from the time to peak that editing initial time is nearest; Get the absolute value of the difference of the array element in editing termination time and volume time to peak array, the minimum numerical value element of corresponding absolute value is namely from the time to peak that the editing termination time is nearest.Exemplary, volume time to peak array is T={t1, t2, t3...tn}, and editing initial time is tk, and the editing termination time is tl.Array element each in tk and array T is compared, obtains the t3 that distance tk is nearest, as the first volume time to peak; Array element each in tl and array T is compared, obtains the t6 that distance tl is nearest, as the second volume time to peak.
Second chooses unit 225, and for by described volume valley time array, the valley time nearest with described editing initial time, as the first volume valley time, with the valley time that the described editing termination time is nearest, as the second volume valley time.
In the present embodiment, searched for the first volume valley time and the second volume valley time can be identical with the method for searching the first volume time to peak and the second volume time to peak, exemplary, volume valley time array be T '=t1 ', t2 ', t3 ' ... tn ' }, editing initial time is tk, and the editing termination time is tl.Array element each in tk and array T ' is compared, obtains the t4 ' that distance tk is nearest, as the first volume valley time; Array element each in tl and array T ' is compared, obtains the t7 ' that distance tl is nearest, as the second volume valley time.
Determination module 230, is connected with editing module 240, comprises the first arithmetic element 231 and the second arithmetic element 232.
Wherein, the first arithmetic element 231, for being weighted to described first volume time to peak and described first volume valley time computing of averaging, obtains described final editing initial time.
In the present embodiment, how to obtain final editing initial time be further explained above-mentioned weighted average computing, exemplary, the first volume time to peak is t3, first volume valley time was t4 ', then final editing initial time is k1*t3+k2*t4 '.Wherein k1 represents weight shared by the first volume time to peak, and k2 represents weight shared by the first volume valley time, 0<k1≤1,0<k2≤1, k1, k2 can be default, as k2=1-k1, also can be that user sets, not limit at this.
Wherein the second arithmetic element 232, for being weighted to described second volume time to peak and described second volume valley time computing of averaging, obtains the described final editing termination time.
In the present embodiment, how to obtain the final editing termination time be further explained above-mentioned weighted average computing, exemplary, the second volume time to peak is t6, second volume valley time was t7 ', then the final editing termination time is k3*t6+k4*t7 '.Wherein k3 represents weight shared by the second volume time to peak, and k4 represents weight 0<k3≤1 shared by the second volume valley time, 0<k4≤1, k3, k4 can be default, as k3=1-k4, also can be that user sets, not limit at this.
In the present embodiment, how to obtain final editing initial time be further explained above-mentioned weighted average computing, exemplary, the first volume time to peak is x, and the first volume valley time was y, then final editing initial time can be k1x+k2y.Wherein k1 represents weight shared by the first volume time to peak, and k2 represents weight shared by the first volume valley time, 0<k1≤1,0<k2≤1, k1, k2 can be default, also can be that user sets, not limit at this.
Processing module 240, for carrying out editing according to described final editing initial time and described final editing termination time to described audio frequency.
This module is identical with the respective modules in the first embodiment, repeats no more here.
The present embodiment is by generating volume valley time array and volume time to peak array, rapidly the first volume valley time, volume two valley time and volume one time to peak, volume two time to peak can be positioned to rapidly in corresponding time array, and obtain final editing initial time and final editing termination time by searching, feedback rapidly, does not take too much memory space.
Fig. 5 is the structural representation of the 3rd embodiment of mobile terminal of the present invention, and the mobile terminal 300 in the embodiment of the present invention can the clipping method of audio frequency in the 3rd embodiment to implement the above described method.The mobile terminal 300 of the embodiment of the present invention comprises receiver module 310, acquisition module 320, determination module 330 and editing module 340.
Wherein, receiver module 310, is connected with acquisition module 320, indicates corresponding editing initial time and editing termination time for obtaining with described editing.
This module is identical with the respective modules in the first embodiment, repeats no more here.
Acquisition module 320, is connected with determination module 330, comprises acquiring unit 321, and first searches unit 322 and second searches unit 323.
Wherein, acquiring unit 321, for obtaining the volume Wave data of audio frequency.
In the present embodiment, volume Wave data can be expressed with the form of volume oscillogram, and the transverse axis of this volume oscillogram can be the time, and the longitudinal axis can be volume.Voice data can be the waveform of some fluctuations in volume oscillogram.
First searches unit 322, for searching in described volume Wave data, the volume nearest with described editing initial time reaches time during crest, as described first volume time to peak, and time when nearest volume reaches crest with the described editing termination time, as described second volume time to peak.
Second searches unit 323, for searching in described volume Wave data, the volume nearest with described editing initial time reaches time during trough, as the described first volume valley time, and time when nearest volume reaches trough with the described editing termination time, as the described second volume valley time.
In the present embodiment, before the first volume time to peak and the first volume valley time can be positioned at editing initial time simultaneously, after also can being positioned at editing initial time simultaneously.Before second volume time to peak and the second volume valley time can be positioned at the editing termination time simultaneously, after also can being positioned at the editing termination time simultaneously.
Determination module 330, be connected with editing module 340, for according to described first volume time to peak and the first volume valley time, determine final editing initial time, and described second volume time to peak and the second volume valley time, determine the final editing termination time;
This module is identical with the respective modules in the first embodiment, repeats no more here.
Editing module 340, for carrying out editing according to described final editing initial time and described final editing termination time to described audio frequency.
Editing module 340 also comprises the first processing unit 341 and the second processing unit 342.
Wherein, the first processing unit 341, for carrying out ascending gradual change process to the volume in Preset Time from described final editing initial time.
Second processing unit 342, for carrying out descending gradual change process to the volume in Preset Time from the described final editing intermission.
Above-mentioned Preset Time can be default, also can be set by the user, and exemplary, the present embodiment gets 5s.
The first volume time to peak nearest with editing initial time and the first volume valley time is directly determined by volume Wave data in the present embodiment, the second volume time to peak nearest with the editing termination time and the second volume valley time, decrease the interior imputation method of mobile terminal, step is simple, and it is convenient to realize; Meanwhile, the present embodiment carries out ascending gradual change process to by the volume of the beginning of editing audio-frequency unit and ending, makes volume more level and smooth, further avoid music and bring ear-piercing, lofty sensation to user, improve user's experience.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by device is divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that the clipping method of disclosed mobile terminal and audio frequency can realize by another way.Such as, mobile terminal embodiment described above is only schematic, the division of module or unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of embodiment of the present invention scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a chip unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising instruction in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of each embodiment method of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
These are only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. an audio clips method, is characterized in that, comprising:
Audio reception editing indicates, and obtains and indicates corresponding editing initial time and editing termination time with described editing;
Obtain the first volume time to peak adjacent with described editing initial time and the first volume valley time, and the second volume time to peak adjacent with the described editing termination time and the second volume valley time;
According to described first volume time to peak and the first volume valley time, determine final editing initial time, and described second volume time to peak and the second volume valley time, determine the final editing termination time;
According to described final editing initial time and described final editing termination time, editing is carried out to described audio frequency.
2. audio clips method as claimed in claim 1, it is characterized in that, the first volume time to peak that described acquisition is adjacent with described editing initial time and the first volume valley time, and the second volume time to peak adjacent with the described editing termination time and the step of the second volume valley time, comprising:
Obtain the volume Wave data of audio frequency;
Time when reaching crest according to volume in described volume Wave data, generate volume time to peak array;
Time when reaching trough according to volume in described volume Wave data, generate volume valley time array;
By in described volume time to peak array, the time to peak nearest with described editing initial time, as the first volume time to peak, with the time to peak that the described editing termination time is nearest, as the second volume time to peak;
By in described volume valley time array, the valley time nearest with described editing initial time, as the first volume valley time, with the valley time that the described editing termination time is nearest, as the second volume valley time.
3. the clipping method of audio frequency as claimed in claim 1, it is characterized in that, the first volume time to peak that described acquisition is adjacent with described editing initial time and the first volume valley time, and the second volume time to peak adjacent with the described editing termination time and the step of the second volume valley time, comprising:
Obtain the volume Wave data of audio frequency;
Search in described volume Wave data, the volume nearest with described editing initial time reaches time during crest, as described first volume time to peak, and time when nearest volume reaches crest with the described editing termination time, as described second volume time to peak;
Search in described volume Wave data, the volume nearest with described editing initial time reaches time during trough, as the described first volume valley time, and time when nearest volume reaches trough with the described editing termination time, as the described second volume valley time.
4. the clipping method of audio frequency as claimed in claim 1, it is characterized in that, described according to described first volume time to peak and the first volume valley time, determine final editing initial time, and described second volume time to peak and the second volume valley time, determine the step of final editing termination time, comprising:
Computing of averaging is weighted to described first volume time to peak and described first volume valley time, obtains described final editing initial time;
Computing of averaging is weighted to described second volume time to peak and described second volume valley time, obtains the described final editing termination time.
5. the clipping method of audio frequency as claimed in claim 1, is characterized in that, described step of according to described final editing initial time and described final editing termination time described audio frequency being carried out to editing, comprising:
Ascending gradual change process is carried out to the volume in Preset Time from described final editing initial time;
Descending gradual change process is carried out to the volume in Preset Time from the described final editing intermission.
6. a mobile terminal, is characterized in that, comprising:
Receiver module, for audio reception editing instruction, obtains and indicates corresponding editing initial time and editing termination time with described editing;
Acquisition module, for obtaining the first volume time to peak adjacent with described editing initial time and the first volume valley time, and the second volume time to peak adjacent with the described editing termination time and the second volume valley time;
Determination module, for according to described first volume time to peak and the first volume valley time, determines final editing initial time, and described second volume time to peak and the second volume valley time, determines the final editing termination time;
Editing module, for carrying out editing according to described final editing initial time and described final editing termination time to described audio frequency.
7. mobile terminal as claimed in claim 6, it is characterized in that, described acquisition module comprises:
Acquiring unit, for obtaining the volume Wave data of audio frequency;
First generation unit, for reaching time during crest according to volume in described volume Wave data, generates volume time to peak array;
Second generation unit, for reaching time during trough according to volume in described volume Wave data, generates volume valley time array;
First chooses unit, and for by described volume time to peak array, the time to peak nearest with described editing initial time, as the first volume time to peak, with the time to peak that the described editing termination time is nearest, as the second volume time to peak;
Second chooses unit, and for by described volume valley time array, the valley time nearest with described editing initial time, as the first volume valley time, with the valley time that the described editing termination time is nearest, as the second volume valley time.
8. mobile terminal as claimed in claim 6, it is characterized in that, described acquisition module, comprising:
Acquiring unit, for obtaining the volume Wave data of audio frequency;
First searches unit, for searching in described volume Wave data, the volume nearest with described editing initial time reaches time during crest, as described first volume time to peak, and time when nearest volume reaches crest with the described editing termination time, as described second volume time to peak;
Second searches unit, for searching in described volume Wave data, the volume nearest with described editing initial time reaches time during trough, as the described first volume valley time, and time when nearest volume reaches trough with the described editing termination time, as the described second volume valley time.
9. mobile terminal as claimed in claim 6, it is characterized in that, described determination module, comprising:
First arithmetic element, for being weighted to described first volume time to peak and described first volume valley time computing of averaging, obtains described final editing initial time;
Second arithmetic element, for being weighted to described second volume time to peak and described second volume valley time computing of averaging, obtains the described final editing termination time.
10. mobile terminal as claimed in claim 6, it is characterized in that, described editing module, comprising:
First processing unit, carries out ascending gradual change process to the volume in Preset Time from described final editing initial time;
Second processing unit, carries out descending gradual change process to the volume in Preset Time from the described final editing intermission.
CN201510083804.7A 2015-02-13 2015-02-13 The clipping method and mobile terminal of audio Active CN105323371B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510083804.7A CN105323371B (en) 2015-02-13 2015-02-13 The clipping method and mobile terminal of audio

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510083804.7A CN105323371B (en) 2015-02-13 2015-02-13 The clipping method and mobile terminal of audio

Publications (2)

Publication Number Publication Date
CN105323371A true CN105323371A (en) 2016-02-10
CN105323371B CN105323371B (en) 2018-11-30

Family

ID=55249934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510083804.7A Active CN105323371B (en) 2015-02-13 2015-02-13 The clipping method and mobile terminal of audio

Country Status (1)

Country Link
CN (1) CN105323371B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018040576A1 (en) * 2016-09-05 2018-03-08 中兴通讯股份有限公司 Video editing method, device, terminal, and computer storage medium
CN109068163A (en) * 2018-08-28 2018-12-21 哈尔滨市舍科技有限公司 A kind of audio-video synthesis system and its synthetic method
CN109119101A (en) * 2018-09-20 2019-01-01 维沃移动通信有限公司 A kind of processing method of audio data, device and mobile terminal
CN109194887A (en) * 2018-10-26 2019-01-11 北京亿幕信息技术有限公司 A kind of cloud cuts video record and clipping method and plug-in unit
CN109889882A (en) * 2019-01-24 2019-06-14 北京亿幕信息技术有限公司 A kind of video clipping synthetic method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030150319A1 (en) * 2002-02-13 2003-08-14 Yamaha Corporation Musical tone generating apparatus, musical tone generating method, and program for implementing the method
CN102930887A (en) * 2012-10-31 2013-02-13 深圳市宜搜科技发展有限公司 Audio file processing method and system
CN103312883A (en) * 2012-03-16 2013-09-18 宇达电脑(上海)有限公司 Ring playing method
CN103854644A (en) * 2012-12-05 2014-06-11 中国传媒大学 Automatic duplicating method and device for single track polyphonic music signals
CN104282322A (en) * 2014-10-29 2015-01-14 深圳市中兴移动通信有限公司 Mobile terminal and method and device for identifying chorus part of song thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030150319A1 (en) * 2002-02-13 2003-08-14 Yamaha Corporation Musical tone generating apparatus, musical tone generating method, and program for implementing the method
CN103312883A (en) * 2012-03-16 2013-09-18 宇达电脑(上海)有限公司 Ring playing method
CN102930887A (en) * 2012-10-31 2013-02-13 深圳市宜搜科技发展有限公司 Audio file processing method and system
CN103854644A (en) * 2012-12-05 2014-06-11 中国传媒大学 Automatic duplicating method and device for single track polyphonic music signals
CN104282322A (en) * 2014-10-29 2015-01-14 深圳市中兴移动通信有限公司 Mobile terminal and method and device for identifying chorus part of song thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018040576A1 (en) * 2016-09-05 2018-03-08 中兴通讯股份有限公司 Video editing method, device, terminal, and computer storage medium
CN109068163A (en) * 2018-08-28 2018-12-21 哈尔滨市舍科技有限公司 A kind of audio-video synthesis system and its synthetic method
CN109068163B (en) * 2018-08-28 2021-01-29 青岛一舍科技有限公司 Audio and video synthesis system and synthesis method thereof
CN109119101A (en) * 2018-09-20 2019-01-01 维沃移动通信有限公司 A kind of processing method of audio data, device and mobile terminal
CN109194887A (en) * 2018-10-26 2019-01-11 北京亿幕信息技术有限公司 A kind of cloud cuts video record and clipping method and plug-in unit
CN109889882A (en) * 2019-01-24 2019-06-14 北京亿幕信息技术有限公司 A kind of video clipping synthetic method and system

Also Published As

Publication number Publication date
CN105323371B (en) 2018-11-30

Similar Documents

Publication Publication Date Title
CN105323371A (en) Audio clipping method and mobile terminal
US10818151B2 (en) Vibration method, electronic device and computer readable storage medium
CN108334193B (en) Method and device for generating motor brake signal
CN103220435B (en) The information output method of terminal and device
CN103456332A (en) Audio playing device and volume adjusting method
CN109493849A (en) Voice awakening method, device and electronic equipment
CN104123938A (en) Voice control system, electronic device and voice control method
CN104994401A (en) Barrage processing method, device and system
CN103841495A (en) Method and device for adjusting voice frequency parameters
CN103092981B (en) A kind of method and electronic equipment setting up phonetic symbol
US20190206200A1 (en) Method and device of custom vibration sense
CN105487987A (en) Method and device for processing concurrent sequential reading IO (Input/Output)
CN110287473A (en) Electrical form edit methods and device
CN105159979A (en) Good friend recommendation method and apparatus
CN105677152A (en) Voice touch screen operation processing method and device and terminal
CN105446489A (en) Voice dual-mode control method and apparatus, and user terminal
CN102968313A (en) Generation method and terminal of desktop widget
CN103838412A (en) Method for providing feedback and electronic device
CN102118492A (en) Key sound prompting method and device
CN103809911A (en) Method and system for setting vibration modes of mobile terminal
CN104836921A (en) Intelligent mobile phone automatic hang up method and device
CN104575545A (en) Method for generating playlist
CN104166459A (en) Methods and systems for managing dialog of speech systems
CN104348436A (en) Parameter adjusting method and electronic equipment
CN105549744A (en) Brightness control method and device of terminal screen

Legal Events

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