CN104575508B - A kind of processing method and its device of audio signal modified tone - Google Patents

A kind of processing method and its device of audio signal modified tone Download PDF

Info

Publication number
CN104575508B
CN104575508B CN201310481900.8A CN201310481900A CN104575508B CN 104575508 B CN104575508 B CN 104575508B CN 201310481900 A CN201310481900 A CN 201310481900A CN 104575508 B CN104575508 B CN 104575508B
Authority
CN
China
Prior art keywords
frame
data
length
addnum
delete
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310481900.8A
Other languages
Chinese (zh)
Other versions
CN104575508A (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 the processing methods and its device of a kind of modified tone of audio signal, and this approach includes the following steps:Audio signal is divided into the data frame of multiple equal lengths;Judge the acoustic tones of each equal length data frame;When the acoustic tones are rising tune, insertion point is selected in a data frame, and be inserted into the data of respective numbers;Or when the acoustic tones are falling tone, point is deleted in selection in a data frame, and deletes the data of respective numbers;The device includes:Division module, judgment module and processing module.In accordance with the invention it is possible to ensure that the audio signal reproduction time for modifying tone front and back is isometric.

Description

A kind of processing method and its device of audio signal modified tone
Technical field
The processing method and its dress to modify tone the present invention relates to Audio Signal Processing technology more particularly to a kind of audio signal It sets.
Background technology
Audio pitch shifting is changed for the tone of audio signal, and in audio pitch shifting, rising tune can be such that data export Frequency is got higher, and falling tone can be then data frequency reduction, to cause the front and back reproduction time Length discrepancy of audio signal modified tone.If needed Accomplish that broadcasting is front and back isometric, then needs to do data certain processing.
The processing method of audio pitch shifting is divided into two methods of hardware realization and software realization:The algorithm of hardware processing method is very Rare manufacturer discloses, for example, Yamaha company large scale integrated circuit YSS222D and YS216B, algorithm never external disclosure It crosses;The method of software processing is mainly frequency domain facture, but this method is transplanted to highly difficult on hardware, needs corresponding Hardware resource and performance.
Invention content
The purpose of the present invention is to provide a kind of new audio pitch shifting processing methods, are suitble to realize on hardware and software, It is not high to the resource and performance requirement of hardware.
To achieve the goals above, on the one hand, the present invention provides a kind of processing method of audio signal modified tone, this method Step includes:Audio signal is divided into the data frame of multiple equal lengths;Judge the acoustic tones of each equal length data frame;Work as sound When tone is rising tune, insertion point is selected in a data frame, and be inserted into the data of respective numbers;Or when acoustic tones are falling tone, Point is deleted in selection in a data frame, and deletes the data of respective numbers.
Further, in rising tune, the data for being inserted into respective numbers in each frame are calculated by following calculation formula: Frame_Addnum=frame_length*(2n/12-1), wherein Frame_Addnum is the quantity that data are inserted into frame, Frame_length is data frame length, n=1,2,3,4,5.
Further:Above-mentioned insertion point is determined by following steps:Calculate the positions i and i+Frame_Addnum corresponding data Difference square, i=1,2,3 ..., frame_length-Frame_Addnum, wherein Frame_Addnum be inserted into frame The quantity of data, frame_length are data frame length;According to whole frame range internal difference square the corresponding position of minimum value Determination will be inserted into the insertion point of data.
Further, good effect in order to obtain, is filtered the data content being inserted into when rising tune, by the number of insertion According to being multiplied by filter factor, which 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 To be inserted into the quantity of data in frame.
Further, in falling tone, the number for needing to delete respective numbers in each frame is calculated by following calculation formula According to:Frame_Delete_num=frame_length*(1-2n/12), wherein Frame_Delete_num will be deleted when being falling tone Data volume, frame_length is data frame length, n=- 1, -2, -3, -4, -5.
Further, above-mentioned deletion point is determined by following steps:Calculate the positions pair i and i+Frame_Delete_num+1 Answer square of the difference of data, i=1,2,3 ..., frame_length-Frame_Delete_num, wherein Frame_Delete_ The data volume to be deleted when num is falling tone, frame_length is data frame length;According to whole frame range internal difference square most Small value determines the starting point for deleting data.
On the other hand, the present invention provides a kind of processing unit of audio signal modified tone, which includes:
Division module, the data frame for audio signal to be divided into multiple equal lengths;
Judgment module, the acoustic tones for judging each equal length data frame;
Processing module selects insertion point, and be inserted into respective numbers in a data frame when the acoustic tones are rising tune Data;Or when the acoustic tones are falling tone, point is deleted in selection in a data frame, and deletes the data of respective numbers.
In accordance with the invention it is possible to ensure that the audio signal reproduction time for modifying tone front and back is isometric.
Description of the drawings
Fig. 1 is a kind of processing method of audio signal modified tone provided in an embodiment of the present invention;
Fig. 2 is that data are inserted into schematic diagram;
Fig. 3 is that data delete schematic diagram;
Fig. 4 is a kind of processing unit of audio signal modified tone provided in an embodiment of the present invention.
Specific implementation mode
After embodiments of the present invention are described in detail by way of example below in conjunction with attached drawing, of the invention its His features, characteristics, and advantages will be more obvious.
Fig. 1 is a kind of processing method of audio signal modified tone provided in an embodiment of the present invention, the method comprising the steps of 100- 103:
In step 100, audio signal is divided into the data frame of multiple equal lengths.
In step 101, the acoustic tones of each equal length data frame are judged, when the acoustic tones of current data frame are rising tune When, execute step 102;When the acoustic tones of current data frame are falling tone, step 103 is executed.
In step 102 insertion point is selected in a data frame, and be inserted into the number of respective numbers when acoustic tones are rising tune According to.
Specifically, the data source being inserted into is in current data frame, insertion point selection gist:Calculate i and i+ Square of the difference of the positions Frame_Addnum corresponding data, i=1,2,3 ... frame_length-Frame_Addnum.Whole frame model Enclose internal difference square the corresponding i+Frame_Addnum/2 of minimum value be to be inserted into the insertion points of data, name this position to be up_index.The quantity for the data to be replicated, calculation basis are when Frame_Addnum is rising tune:Frame_Addnum= frame_length*(2n/12-1), wherein n=1,2,3,4,5;Frame_length is frame length.
The data content step being inserted into current data frame when rising tune is:Frame_Addnum is inserted into from up_index Up_index-Frame_Addnum/2 to the corresponding data content in the positions index is named as C1 by a data, and up_index is extremely The corresponding data content in the positions up_index+Frame_Addnum/2 is named as C2, then the data being inserted into are C2C1, i.e., will index The front and back each Frame_Addnum/2 data cross in place, is inserted at up_index.According to the finding method of first index value, The difference of respective value square is entire frame at up_index-Frame_Addnum/2 and at up_index+Frame_Addnum/2 Minimum value in range, so, the data C2C1 being inserted at index is in junction and most smooth, not will produce big saltus step.
Good effect in order to obtain is filtered the data content of insertion, and step is the data that will be inserted into It is multiplied by filter factor.Filter factor formula is:Filter(m)=(1-alpha)+alpha*(1-sin(pi*m/Frame_ Addnum)).Wherein, 0<alpha<1, it is adjustable;pi=3.1415926;M=1,2,3 ... Frame_Addnum.Data when rising tune Inserting step is as shown in Figure 2.
In step 103, when acoustic tones are falling tone, point is deleted in selection in a data frame, and deletes the number of respective numbers According to.
Specifically, it when acoustic tones are falling tone, needs, in Frame_Delete_num data of current frame deletion, working as In preceding data frame deletion point select step for:Calculate the difference of the positions i and i+Frame_Delete_num+1 corresponding data Square, i=1,2,3 ... frame_length-Frame_Delete_num.Whole frame range internal difference square minimum value be to delete Except the starting point of data, it is named as down_index.Frame_Delete_num be falling tone when the data volume to be deleted, calculate according to According to for:Frame_Delete_num=frame_length*(1-2n/12), wherein n=- 1, -2, -3, -4, -5.By down_index + 1 deletes to the corresponding data in the positions down_index+Frame_Delete_num.Processing procedure when falling tone is as shown in Figure 3:
The processing method of audio signal provided in an embodiment of the present invention modified tone by being inserted into data in audio signal rising tune, And delete data in audio signal falling tone, it can be ensured that the front and back audio signal reproduction time that modifies tone is isometric.
Correspondingly, the present invention also provides a kind of processing unit of audio signal modified tone, Fig. 4 provides for the embodiment of the present invention A kind of audio signal modified tone processing unit.As shown in figure 4, the device includes division module 41, judgment module 42 and processing Module 43.
The audio signal of reception is divided into the data of multiple equal lengths by division module 41 for receiving audio signal Frame.
The acoustic tones of each equal length data frame after judgment module 42 is used to judge to be divided by division module 41.
Processing module 43 is for executing corresponding operation according to the judging result of judgment module 42.For example, working as sound sound When being adjusted to rising tune, then insertion point is selected in a data frame, and be inserted into the data of respective numbers in insertion point;Or when acoustic tones are When falling tone, point is deleted in selection in a data frame, and in the data for deleting point deletion respective numbers.
Specifically, when judgment module 42 judges acoustic tones for rising tune, processing module 43 then executes following operation:
Calculate Frame_Addnum=frame_length*(2n/12-1), wherein Frame_Addnum is to be inserted into frame The quantity of data, frame_length are data frame length, n=1,2,3,4,5.
Calculate square of the difference of i and i+Frame_Addnum positions corresponding data, i=1,2,3 ..., frame_length- Frame_Addnum, wherein Frame_Addnum is the quantity that data are inserted into frame, and frame_length is data frame length Degree;According to whole frame range internal difference square the corresponding location determination of minimum value to be inserted into the insertion points of data.
Preferably, processing module 43 is filtered the data content being inserted into when rising tune, and the data of insertion are multiplied by Filter factor, the filter factor formula are: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 To be inserted into the quantity of data in frame.
When judgment module 42 judges acoustic tones for falling tone, processing module 43 then executes following operation:
Calculate Frame_Delete_num=frame_length* (1-2n/12), wherein Frame_Delete_num is drop The data volume to be deleted of timing, frame_length are data frame length, n=- 1, -2, -3, -4, -5.
Calculate square of the difference of i and i+Frame_Delete_num+1 positions corresponding data, i=1,2,3 ..., frame_ Length-Frame_Delete_num, wherein the data volume to be deleted when Frame_Delete_num is falling tone, frame_ Length is data frame length;According to whole frame range internal difference square minimum value determine delete data starting point.
The processing unit of audio signal provided in an embodiment of the present invention modified tone by being inserted into data in audio signal rising tune, And delete data in audio signal falling tone, it can be ensured that the front and back audio signal reproduction time that modifies tone is isometric.
It is clear that under the premise of without departing from true spirit and scope of the present invention, invention described herein can be with There are many variations.Therefore, all it will be apparent to those skilled in the art that change, be intended to be included in present claims Within the scope of book is covered.Scope of the present invention is only defined by described claims.

Claims (8)

1. a kind of processing method of audio signal modified tone, it is characterised in that:
Audio signal is divided into the data frame of multiple equal lengths;
Judge the acoustic tones of each equal length data frame;
When the acoustic tones are rising tune, insertion point is selected in a data frame, and be inserted into the data of respective numbers;Or
When the acoustic tones are falling tone, point is deleted in selection in a data frame, and deletes the data of respective numbers;
In rising tune, the data for being inserted into respective numbers in each frame are calculated by following calculation formula:
Frame_Addnum=frame_length* (2n/12- 1), wherein Frame_Addnum is the number that data are inserted into frame Amount, frame_length is data frame length, n=1,2,3,4,5;
In falling tone, the data for deleting respective numbers in each frame are calculated by following calculation formula:
Frame_Delete_num=frame_length* (1-2n/12), wherein Frame_Delete_num will be deleted when being falling tone The data volume removed, frame_length are data frame length, n=-1, -2, -3, -4, -5.
2. processing method according to claim 1, it is characterised in that:The insertion point is determined by following steps:
Calculate square of the difference of i and i+Frame_Addnum positions corresponding data, i=1,2,3 ..., frame_length- Frame_Addnum, wherein Frame_Addnum is the quantity that data are inserted into frame, and frame_length is data frame length Degree;
According to whole frame range internal difference square the corresponding location determination of minimum value to be inserted into the insertion points of data.
3. processing method according to claim 1, it is characterised in that:The data content being inserted into when rising tune is filtered, The data of insertion are multiplied by filter factor, the filter factor formula is:
Filter (m)=(1-alpha)+alpha* (1-sin (pi*m/Frame_Addnum)), wherein 0<alpha<1, it can It adjusts, pi=3.1415926, m=1,2,3 ... Frame_Addnum;Frame_Addnum is the quantity that data are inserted into frame.
4. processing method according to claim 1, it is characterised in that:The deletion point is determined by following steps:
Calculate square of the difference of i and i+Frame_Delete_num+1 positions corresponding data, i=1,2,3 ..., frame_ Length-Frame_Delete_num, wherein the data volume to be deleted when Frame_Delete_num is falling tone, frame_ Length is data frame length;
According to whole frame range internal difference square minimum value determine delete data starting point.
5. a kind of processing unit of audio signal modified tone, which is characterized in that including:
Division module, the data frame for audio signal to be divided into multiple equal lengths;
Judgment module, the acoustic tones for judging each equal length data frame;
Processing module selects insertion point, and be inserted into the number of respective numbers in a data frame when the acoustic tones are rising tune According to;Or
When the acoustic tones are falling tone, point is deleted in selection in a data frame, and deletes the data of respective numbers;
In rising tune, the processing module calculates the number for needing to be inserted into respective numbers in each frame by following calculation formula According to:
Calculate Frame_Addnum=frame_length* (2n/12- 1), wherein Frame_Addnum is that data are inserted into frame Quantity, frame_length is data frame length, n=1,2,3,4,5;
In falling tone, the processing module calculates the number for needing to delete respective numbers in each frame by following calculation formula According to:
Frame_Delete_num=frame_length* (1-2n/12), wherein Frame_Delete_num will be deleted when being falling tone The data volume removed, frame_length are data frame length, n=-1, -2, -3, -4, -5.
6. processing unit according to claim 5, it is characterised in that:The processing module specifically executes following operation:
Calculate square of the difference of i and i+Frame_Addnum positions corresponding data, i=1,2,3 ..., frame_length- Frame_Addnum, wherein Frame_Addnum is the quantity that data are inserted into frame, and frame_length is data frame length Degree;
According to whole frame range internal difference square the corresponding location determination of minimum value to be inserted into the insertion points of data.
7. processing unit according to claim 5, it is characterised in that:The processing module is in the data be inserted into when rising tune Appearance is filtered, and the data of insertion is multiplied by filter factor, the filter factor formula is:
Filter (m)=(1-alpha)+alpha* (1-sin (pi*m/Frame_Addnum)), wherein 0<alpha<1, it can It adjusts, pi=3.1415926, m=1,2,3 ... Frame_Addnum;Frame_Addnum is the quantity that data are inserted into frame.
8. processing unit according to claim 5, it is characterised in that:The processing module is determined by following steps and is deleted Point:
Calculate square of the difference of i and i+Frame_Delete_num+1 positions corresponding data, i=1,2,3 ..., frame_ Length-Frame_Delete_num, wherein the data volume to be deleted when Frame_Delete_num is falling tone, frame_ Length is data frame length;
According to whole frame range internal difference square minimum value determine delete data starting point.
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 CN104575508A (en) 2015-04-29
CN104575508B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106057208B (en) * 2016-06-14 2019-11-15 科大讯飞股份有限公司 A kind of audio modification method and device
CN106228973A (en) * 2016-07-21 2016-12-14 福州大学 Stablize the music voice modified tone method of tone color
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

Citations (4)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3776004B2 (en) * 2001-05-28 2006-05-17 シャープ株式会社 Encoding method of digital data

Patent Citations (4)

* 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
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

Also Published As

Publication number Publication date
CN104575508A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104575508B (en) A kind of processing method and its device of audio signal modified tone
CN104883642B (en) A kind of effect adjusting method
CN104410379B (en) A kind of volume adjusting method
CN105872253A (en) Live broadcast sound processing method and mobile terminal
CN106020765B (en) A kind of effect adjusting method and device
US10861472B2 (en) Algorithm-based audio optimization method, intelligent terminal and storage device
CN103177743B (en) A kind of playback of songs method and device
CN107039043B (en) The method and device of signal processing, the method and system of multi-conference
CN104282322A (en) Mobile terminal and method and device for identifying chorus part of song thereof
CN110838301B (en) Method, device terminal and non-transitory computer readable storage medium for suppressing howling
CN105632508A (en) Audio frequency processing method and audio frequency processing device
CN104363510B (en) A kind of playback terminal
CN105404642B (en) A kind of audio frequency playing method and user terminal
CN105138557A (en) Music random play method and apparatus
CN108616791A (en) A kind of audio signal playing method and device
CN106775568A (en) A kind of effect adjusting method, device and mobile terminal
CN115866487B (en) Sound power amplification method and system based on balanced amplification
CN106886387A (en) A kind of audio data processing method and its equipment
CN110688518A (en) Rhythm point determining method, device, equipment and storage medium
US10008997B2 (en) Filter generator, filter generation method, and filter generation program
JP2016539409A (en) Method and apparatus for processing mobile terminal applications
CN105843584A (en) Method and device for adjusting recording volume
CN105635418A (en) Method and device for cutting bell
JP5598589B1 (en) Equalizer device and equalizer program
CN108882015A (en) Recall the broadcasting speed method of adjustment and relevant device of video

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