CN104575508A - Processing method and device for audio signal modulation - Google Patents

Processing method and device for audio signal modulation Download PDF

Info

Publication number
CN104575508A
CN104575508A CN201310481900.8A CN201310481900A CN104575508A CN 104575508 A CN104575508 A CN 104575508A CN 201310481900 A CN201310481900 A CN 201310481900A CN 104575508 A CN104575508 A CN 104575508A
Authority
CN
China
Prior art keywords
frame
data
length
delete
addnum
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
CN201310481900.8A
Other languages
Chinese (zh)
Other versions
CN104575508B (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.)
Capital Microelectronics Beijing Technology Co Ltd
Original Assignee
Capital Microelectronics Beijing 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 Capital Microelectronics Beijing Technology Co Ltd filed Critical Capital Microelectronics Beijing Technology Co Ltd
Priority to CN201310481900.8A priority Critical patent/CN104575508B/en
Publication of CN104575508A publication Critical patent/CN104575508A/en
Application granted granted Critical
Publication of CN104575508B publication Critical patent/CN104575508B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Abstract

The invention discloses a processing method and device for audio signal modulation. The method comprises steps as follows: dividing an audio signal into multiple data frames with equal lengths; judging sound tones of all the data frames with the equal lengths; when the sound tones are rising tones, selecting insertion points in the data frames, and inserting a corresponding quantity of data; or when the sound tones are falling tones, selecting deletion points in the data frames, and deleting a corresponding quantity of data. The device comprises a dividing module, a judging module and a processing module. According to the method and the device, the play time of the audio signal before and after modulation can be ensured to be equal.

Description

A kind of disposal route of sound signal modified tone and device thereof
Technical field
The present invention relates to Audio Signal Processing technology, particularly relate to disposal route and the device thereof of the modified tone of a kind of sound signal.
Background technology
Audio pitch shifting changes for the tone of sound signal, when audio pitch shifting, the frequency gets higher that rising tune can make data export, falling tone can be then that data frequency reduces, thus cause sound signal modify tone before and after reproduction time Length discrepancy.If it is isometric to need to accomplish to play front and back, then need to do certain process to data.
The disposal route of audio pitch shifting is divided into hardware implementing and software simulating two kinds of methods: the algorithm of hardware processing method seldom has manufacturer open, large scale integrated circuit YSS222D and YS216B of such as Yamaha company, and its algorithm is external disclosure mistake never; The method mainly frequency domain facture of software process, but this method is transplanted on hardware very difficult, needs corresponding hardware resource and performance.
Summary of the invention
The object of the present invention is to provide a kind of new audio pitch shifting disposal route, be adapted at hardware and software realizes, to the resource of hardware and performance requirement not high.
To achieve these goals, on the one hand, the invention provides the disposal route of a kind of sound signal modified tone, the method step comprises: Frame sound signal being divided into multiple equal length; Judge the acoustic tones of each equal length Frame; When acoustic tones is rising tune, select insertion point in a data frame, and insert the data of respective numbers; Or when acoustic tones is falling tone, selects in a data frame to delete point, and delete the data of respective numbers.
Further, when rising tune, calculated the data inserting respective numbers in each frame by following computing formula: Frame_Addnum=frame_length*(2 n/12-1), wherein, Frame_Addnum is the quantity of data inserting in frame, and frame_length is data frame length, n=1,2,3,4,5.
Further: above-mentioned insertion point is determined by following steps: calculate the difference of i and i+Frame_Addnum position corresponding data square, i=1,2,3 ..., frame_length-Frame_Addnum, wherein, Frame_Addnum is the quantity of data inserting in frame, and frame_length is data frame length; According to whole frame scope interpolation square position corresponding to minimum value determine the insertion point of wanting data inserting.
Further, in order to obtain good effect, filtering is carried out to the data content inserted during rising tune, the data of insertion are multiplied by filter factor, this filter factor formula is: Filter (m)=(1-alpha)+alpha* (1-sin (pi*m/Frame_Addnum)), wherein, and 0<alpha<1, adjustable, pi=3.1415926, m=1,2,3 ... Frame_Addnum; Frame_Addnum is the quantity of data inserting in frame.
Further, when falling tone, calculated the data needing in each frame to delete respective numbers by following computing formula: Frame_Delete_num=frame_length* (1-2 n/12), wherein, the data volume will deleted when Frame_Delete_num is falling tone, frame_length is data frame length, n=-1 ,-2 ,-3 ,-4 ,-5.
Further, above-mentioned deletion point is determined by following steps: calculate the difference of i and i+Frame_Delete_num+1 position corresponding data square, i=1,2,3 ..., frame_length-Frame_Delete_num, wherein, the data volume will deleted when Frame_Delete_num is falling tone, frame_length is data frame length; According to whole frame scope interpolation square minimum value determine to delete the starting point of data.
On the other hand, the invention provides the treating apparatus of a kind of sound signal modified tone, this device comprises:
Divide module, for sound signal being divided into the Frame of multiple equal length;
Judge module, for judging the acoustic tones of described each equal length Frame;
Processing module, when described acoustic tones is rising tune, selects insertion point in a data frame, and inserts the data of respective numbers; Or when described acoustic tones is falling tone, selects in a data frame to delete point, and delete the data of respective numbers.
According to the present invention, can guarantee that the sound signal reproduction time before and after modifying tone is isometric.
Accompanying drawing explanation
The disposal route of a kind of sound signal modified tone that Fig. 1 provides for the embodiment of the present invention;
Fig. 2 is that data insert schematic diagram;
Fig. 3 is that data delete schematic diagram;
The treating apparatus of a kind of sound signal modified tone that Fig. 4 provides for the embodiment of the present invention.
Embodiment
After being described in detail embodiments of the present invention by way of example below in conjunction with accompanying drawing, other features of the present invention, feature and advantage will be more obvious.
The disposal route of a kind of sound signal modified tone that Fig. 1 provides for the embodiment of the present invention, the method comprising the steps of 100-103:
In step 100, sound signal is divided into the Frame of multiple equal length.
In step 101, judge the acoustic tones of each equal length Frame, when the acoustic tones of current data frame is rising tune, perform step 102; When the acoustic tones of current data frame is falling tone, perform step 103.
In step 102, when acoustic tones is rising tune, select insertion point in a data frame, and insert the data of respective numbers.
Particularly, insert data from current data frame, its insertion point selection gist is: calculate the difference of i and i+Frame_Addnum position corresponding data square, i=1,2,3 ... frame_length-Frame_Addnum.Whole frame scope interpolation square i+Frame_Addnum/2 corresponding to minimum value be the insertion point of wanting data inserting, name this position to be up_index.The quantity of the data that will copy when Frame_Addnum is rising tune, its basis is: Frame_Addnum=frame_length*(2 n/12-1), wherein n=1,2,3,4,5; Frame_length is frame length.
The data content step inserted in current data frame during rising tune is: insert Frame_Addnum data from up_index, by data content called after C1 corresponding for up_index-Frame_Addnum/2 to index position, the data content called after C2 that up_index to up_index+Frame_Addnum/2 position is corresponding, the data then inserted are C2C1, by Frame_Addnum/2 data cross each before and after index place, be inserted into up_index place.According to the finding method of Article 1 index value, up_index-Frame_Addnum/2 place and up_index+Frame_Addnum/2 place respective value difference square be minimum value within the scope of whole frame, so, the data C2C1 that index place inserts, also be the most level and smooth in junction, large saltus step can not be produced.
In order to obtain good effect, carry out filtering process to the data content inserted, its step is that the data of insertion are multiplied by filter factor.Filter factor formula is: Filter (m)=(1-alpha)+alpha* (1-sin (pi*m/Frame_Addnum)).Wherein, 0<alpha<1, adjustable; Pi=3.1415926; M=1,2,3 ... Frame_Addnum.Data insertion step during rising tune as shown in Figure 2.
In step 103, when acoustic tones is falling tone, selects in a data frame to delete point, and delete the data of respective numbers.
Particularly, when acoustic tones is falling tone, need to delete Frame_Delete_num data at present frame, the selection step of the deletion point in current data frame is: calculate the difference of i and i+Frame_Delete_num+1 position corresponding data square, i=1,2,3 ... frame_length-Frame_Delete_num.Whole frame scope interpolation square minimum value be the starting point will deleting data, called after down_index.The data volume will deleted when Frame_Delete_num is falling tone, its basis is: Frame_Delete_num=frame_length* (1-2 n/12), wherein n=-1 ,-2 ,-3 ,-4 ,-5.Data corresponding for down_index+1 to down_index+Frame_Delete_num position are deleted.Processing procedure during falling tone is as shown in Figure 3:
The disposal route of the sound signal modified tone that the embodiment of the present invention provides by the data inserting when sound signal rising tune, and deletes data when sound signal falling tone, can guarantee that the sound signal reproduction time before and after modifying tone is isometric.
Correspondingly, present invention also offers the treating apparatus of a kind of sound signal modified tone, the treating apparatus of a kind of sound signal modified tone that Fig. 4 provides for the embodiment of the present invention.As shown in Figure 4, this device comprises division module 41, judge module 42 and processing module 43.
Divide module 41 for received audio signal, and the sound signal of reception is divided into the Frame of multiple equal length.
Judge module 42 is for judging the acoustic tones being divided rear each equal length Frame by division module 41.
Processing module 43 is for performing corresponding operation according to the judged result of judge module 42.Such as, when acoustic tones is rising tune, then select insertion point in a data frame, and insert the data of respective numbers in insertion point; Or when acoustic tones is falling tone, selects in a data frame to delete point, and deleting the data of point deletion respective numbers.
Particularly, when judge module 42 judges that acoustic tones is rising tune, processing module 43 performs following operation:
Calculate Frame_Addnum=frame_length*(2 n/12-1), wherein, Frame_Addnum is the quantity of data inserting in frame, and frame_length is data frame length, n=1,2,3,4,5.
Calculate the difference of i and i+Frame_Addnum position corresponding data square, i=1,2,3 ..., frame_length-Frame_Addnum, wherein, Frame_Addnum is the quantity of data inserting in frame, and frame_length is data frame length; According to whole frame scope interpolation square position corresponding to minimum value determine the insertion point of wanting data inserting.
Preferably, the data content inserted during processing module 43 pairs of rising tunes carries out filtering process, and the data of insertion are multiplied by filter factor, and this filter factor formula is: Filter (m)=(1-alpha)+alpha* (1-sin (pi*m/Frame_Addnum)), wherein, 0<alpha<1, adjustable, pi=3.1415926, m=1,2,3 ... Frame_Addnum; Frame_Addnum is the quantity of data inserting in frame.
When judge module 42 judges that acoustic tones is falling tone, processing module 43 performs following operation:
Calculate Frame_Delete_num=frame_length* (1-2 n/12), wherein, the data volume will deleted when Frame_Delete_num is falling tone, frame_length is data frame length, n=-1 ,-2 ,-3 ,-4 ,-5.
Calculate the difference of i and i+Frame_Delete_num+1 position corresponding data square, i=1,2,3 ..., frame_length-Frame_Delete_num, wherein, the data volume will deleted when Frame_Delete_num is falling tone, frame_length is data frame length; According to whole frame scope interpolation square minimum value determine to delete the starting point of data.
The treating apparatus of the sound signal modified tone that the embodiment of the present invention provides by the data inserting when sound signal rising tune, and deletes data when sound signal falling tone, can guarantee that the sound signal reproduction time before and after modifying tone is isometric.
Obviously, under the prerequisite not departing from true spirit of the present invention and scope, the present invention described here can have many changes.Therefore, all changes that it will be apparent to those skilled in the art that, all should be included within scope that these claims contain.The present invention's scope required for protection is only limited by described claims.

Claims (12)

1. a disposal route for sound signal modified tone, is characterized in that:
Sound signal is divided into the Frame of multiple equal length;
Judge the acoustic tones of described each equal length Frame;
When described acoustic tones is rising tune, select insertion point in a data frame, and insert the data of respective numbers; Or
When described acoustic tones is falling tone, selects in a data frame to delete point, and delete the data of respective numbers.
2. disposal route according to claim 1, is characterized in that: when rising tune, is calculated the data inserting respective numbers in each frame by following computing formula:
Frame_Addnum=frame_length*(2 n/12-1), wherein, Frame_Addnum is the quantity of data inserting in frame, and frame_length is data frame length, n=1,2,3,4,5.
3. disposal route according to claim 1 and 2, is characterized in that: described insertion point is determined by following steps:
Calculate the difference of i and i+Frame_Addnum position corresponding data square, i=1,2,3 ..., frame_length-Frame_Addnum, wherein, Frame_Addnum is the quantity of data inserting in frame, and frame_length is data frame length;
According to whole frame scope interpolation square position corresponding to minimum value determine the insertion point of wanting data inserting.
4. disposal route according to claim 1, is characterized in that: carry out filtering to the data content inserted during rising tune, and the data of insertion are multiplied by filter factor, and described filter factor formula is:
Filter (m)=(1-alpha)+alpha* (1-sin (pi*m/Frame_Addnum)), wherein, 0<alpha<1, adjustable, pi=3.1415926, m=1,2,3 ... Frame_Addnum; Frame_Addnum is the quantity of data inserting in frame.
5. disposal route according to claim 1, is characterized in that: when falling tone, is calculated the data needing in each frame to delete respective numbers by following computing formula:
Frame_Delete_num=frame_length* (1-2 n/12), wherein, the data volume will deleted when Frame_Delete_num is falling tone, frame_length is data frame length, n=-1 ,-2 ,-3 ,-4 ,-5.
6. disposal route according to claim 1 or 5, is characterized in that: described deletion point is determined by following steps:
Calculate the difference of i and i+Frame_Delete_num+1 position corresponding data square, i=1,2,3 ..., frame_length-Frame_Delete_num, wherein, the data volume will deleted when Frame_Delete_num is falling tone, frame_length is data frame length;
According to whole frame scope interpolation square minimum value determine to delete the starting point of data.
7. a treating apparatus for sound signal modified tone, is characterized in that, comprising:
Divide module, for sound signal being divided into the Frame of multiple equal length;
Judge module, for judging the acoustic tones of described each equal length Frame;
Processing module, when described acoustic tones is rising tune, selects insertion point in a data frame, and inserts the data of respective numbers; Or
When described acoustic tones is falling tone, selects in a data frame to delete point, and delete the data of respective numbers.
8. treating apparatus according to claim 7, is characterized in that: described processing module specifically performs following operation:
Calculate Frame_Addnum=frame_length*(2 n/12-1), wherein, Frame_Addnum is the quantity of data inserting in frame, and frame_length is data frame length, n=1,2,3,4,5.
9. the treating apparatus according to claim 7 or 8, is characterized in that: described processing module specifically performs following operation:
Calculate the difference of i and i+Frame_Addnum position corresponding data square, i=1,2,3 ..., frame_length-Frame_Addnum, wherein, Frame_Addnum is the quantity of data inserting in frame, and frame_length is data frame length;
According to whole frame scope interpolation square position corresponding to minimum value determine the insertion point of wanting data inserting.
10. treating apparatus according to claim 7, is characterized in that: described processing module carries out filtering to the data content inserted during rising tune, and the data of insertion are multiplied by filter factor, and described filter factor formula is:
Filter (m)=(1-alpha)+alpha* (1-sin (pi*m/Frame_Addnum)), wherein, 0<alpha<1, adjustable, pi=3.1415926, m=1,2,3 ... Frame_Addnum; Frame_Addnum is the quantity of data inserting in frame.
11. treating apparatus according to claim 7, is characterized in that: when falling tone, and described processing module calculates the data needing in each frame to delete respective numbers by following computing formula:
Frame_Delete_num=frame_length* (1-2 n/12), wherein, the data volume will deleted when Frame_Delete_num is falling tone, frame_length is data frame length, n=-1 ,-2 ,-3 ,-4 ,-5.
12. treating apparatus according to claim 7 or 11, is characterized in that: described processing module is determined to delete point by following steps:
Calculate the difference of i and i+Frame_Delete_num+1 position corresponding data square, i=1,2,3 ..., frame_length-Frame_Delete_num, wherein, the data volume will deleted when Frame_Delete_num is falling tone, frame_length is data frame length;
According to whole frame scope interpolation square minimum value determine to delete the starting point of data.
CN201310481900.8A 2013-10-15 2013-10-15 A kind of processing method and its device of audio signal modified tone Active CN104575508B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310481900.8A CN104575508B (en) 2013-10-15 2013-10-15 A kind of processing method and its device of audio signal modified tone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310481900.8A CN104575508B (en) 2013-10-15 2013-10-15 A kind of processing method and its device of audio signal modified tone

Publications (2)

Publication Number Publication Date
CN104575508A true CN104575508A (en) 2015-04-29
CN104575508B CN104575508B (en) 2018-07-13

Family

ID=53091408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310481900.8A Active CN104575508B (en) 2013-10-15 2013-10-15 A kind of processing method and its device of audio signal modified tone

Country Status (1)

Country Link
CN (1) CN104575508B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106057208A (en) * 2016-06-14 2016-10-26 科大讯飞股份有限公司 Audio correction method and device
CN106228973A (en) * 2016-07-21 2016-12-14 福州大学 Stablize the music voice modified tone method of tone color
CN110602579A (en) * 2019-09-18 2019-12-20 陈伟 Sound changing implementation method and system for sound equipment
CN111739544A (en) * 2019-03-25 2020-10-02 Oppo广东移动通信有限公司 Voice processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1256586A (en) * 1998-12-10 2000-06-14 凌阳科技股份有限公司 Tone regulating method and device
JP2002351500A (en) * 2001-05-28 2002-12-06 Sharp Corp Method of encoding digital data
CN101354889A (en) * 2008-09-18 2009-01-28 北京中星微电子有限公司 Method and apparatus for tonal modification of voice
CN101840703A (en) * 2010-05-07 2010-09-22 无锡中星微电子有限公司 Phonological tone changing method and device
CN101847404A (en) * 2010-03-18 2010-09-29 北京天籁传音数字技术有限公司 Method and device for realizing audio pitch shifting

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1256586A (en) * 1998-12-10 2000-06-14 凌阳科技股份有限公司 Tone regulating method and device
JP2002351500A (en) * 2001-05-28 2002-12-06 Sharp Corp Method of encoding digital data
CN101354889A (en) * 2008-09-18 2009-01-28 北京中星微电子有限公司 Method and apparatus for tonal modification of voice
CN101847404A (en) * 2010-03-18 2010-09-29 北京天籁传音数字技术有限公司 Method and device for realizing audio pitch shifting
CN101840703A (en) * 2010-05-07 2010-09-22 无锡中星微电子有限公司 Phonological tone changing method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106057208A (en) * 2016-06-14 2016-10-26 科大讯飞股份有限公司 Audio correction method and device
CN106228973A (en) * 2016-07-21 2016-12-14 福州大学 Stablize the music voice modified tone method of tone color
CN111739544A (en) * 2019-03-25 2020-10-02 Oppo广东移动通信有限公司 Voice processing method and device, electronic equipment and storage medium
CN111739544B (en) * 2019-03-25 2023-10-20 Oppo广东移动通信有限公司 Voice processing method, device, electronic equipment and storage medium
CN110602579A (en) * 2019-09-18 2019-12-20 陈伟 Sound changing implementation method and system for sound equipment

Also Published As

Publication number Publication date
CN104575508B (en) 2018-07-13

Similar Documents

Publication Publication Date Title
CN104575508A (en) Processing method and device for audio signal modulation
CN104282322B (en) A kind of mobile terminal and its method and apparatus for identifying song climax parts
CN110838301B (en) Method, device terminal and non-transitory computer readable storage medium for suppressing howling
WO2015080994A1 (en) Audio signal processing
CN107682802B (en) Method and device for debugging sound effect of audio equipment
CN109217834A (en) Gain adjusting method, audio frequency apparatus and readable storage medium storing program for executing
CN103903625B (en) The sound mixing method and device of audio
CN104185088B (en) A kind of method for processing video frequency and device
CN102737690B (en) Method and terminal that music application starts
CN110688518A (en) Rhythm point determining method, device, equipment and storage medium
CN115866487B (en) Sound power amplification method and system based on balanced amplification
KR20180048786A (en) Sound-mixing processing method, apparatus and device, and storage medium
CN105244041A (en) Song audition evaluation method and device
KR20160076316A (en) Apparatus and method for producing a rhythm game, and computer program for executing the method
CN104091591B (en) A kind of audio-frequency processing method and device
CN104615333A (en) Grouping method of playing devices and playing system
CN107481739A (en) Audio cutting method and device
CN105635418A (en) Method and device for cutting bell
CN112053669B (en) Method, device, equipment and medium for eliminating human voice
CN108495177A (en) A kind of audio speed changing processing method and processing device
CN114268831B (en) Video editing method and device
CN116186060A (en) Data query method, device, equipment and storage medium
CN106170113B (en) Method and device for eliminating noise and electronic equipment
CN109545174A (en) A kind of audio-frequency processing method, device and equipment
CN111752912B (en) Data processing method and device

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