[summary of the invention]
The purpose of this part is to summarize some aspects of embodiments of the invention and briefly introduces some preferred embodiments.In this part and the application's specification digest and denomination of invention, may do a little simplification or omit avoiding the making purpose of this part, specification digest and denomination of invention fuzzy, and this simplification or omit and can not be used to limit the scope of the invention.
The object of the present invention is to provide a kind of Phonological tone changing method and device, can reach the normal voice signal transition is become the effect of " transfer in ocean, foreign chamber ".
In order to reach purpose of the present invention, according to an aspect of the present invention, the invention provides a kind of Phonological tone changing method, described method comprises: the time-delay factor that goes out the current time correspondence according to the modified tone function calculation that changes in time; With carry out delay process according to the pending voice of described time-delay factor pair.
Further, described delay process is meant: after the current functional value Δ Dn time-delay of pending voice x (n) according to the modified tone function D (n) that changes in time, voice signal y (n)=x (n-Δ Dn) after output modifies tone, wherein n is the independent variable time.
Further, described modified tone function can be D (n)=A+Bsin (2 π n)/T, and wherein T is the default modified tone cycle, A, B for default delay amplitude and A 〉=| B|>0.
Further, described modified tone function can also be D (n)=A+ Δ n, wherein
Wherein, n is the independent variable time, and T is the default modified tone cycle, A for default delay amplitude and | A|>0.
Further, by setting parameter T, A or the B of described modified tone function D (n), to reach the effect that transfer in ocean, foreign chamber.
According to a further aspect in the invention, the invention provides a kind of breaking of voice device, described device comprises: the modified tone unit is used for treating processes voice signals and adopts the modified tone function that changes in time and the change processing that modifies tone; The unit is set, is used for being provided with the modified tone amplitude of modified tone function.
Further, described modified tone is handled and is meant: after the current functional value Δ Dn time-delay of pending voice x (n) according to the modified tone function D (n) that changes in time, voice signal y (n)=x (n-Δ Dn) after output modifies tone, wherein n is the independent variable time.
Further, described modified tone function can be D (n)=A+Bsin (2 π n)/T, and wherein T is the default modified tone cycle, A, B for default delay amplitude and A 〉=| B|>0.
Further, described modified tone function can also be D (n)=A+ Δ n, wherein
Wherein, n is the independent variable time, and T is the default modified tone cycle, A for default delay amplitude and | A|>0.
Further, set parameter T, A or the B of described modified tone function D (n), to reach the effect that transfer in ocean, foreign chamber by described setup unit.
Compared with prior art, modified tone method of the present invention is not to adopt fixing amplitude to come voice signal is carried out rising tune or falling tone, but has adopted time dependent functional value as the modified tone amplitude, has reached the effect that sound is become " transfer in ocean, foreign chamber "; And adopted parabolic function to simulate to the sine function in the modified tone function, and make fixed point handle and become simple, be beneficial to Phonological tone changing method of the present invention and on the chip of handling based on fixed point digital signal, handle.
[embodiment]
Detailed description of the present invention is mainly come the running of direct or indirect simulation technical solution of the present invention by program, step, logical block, process or other symbolistic descriptions.Be the thorough the present invention that understands, in ensuing description, stated a lot of specific detail.And when not having these specific detail, the present invention then may still can realize.Affiliated those of skill in the art use these descriptions herein and state that the others skilled in the art in affiliated field effectively introduce their work essence.In other words, be the purpose of the present invention of avoiding confusion, owing to method, program, composition and the circuit known are readily appreciated that, so they are not described in detail.
Alleged herein " embodiment " or " embodiment " are meant special characteristic, structure or the characteristic that can be contained at least one implementation of the present invention.Different in this manual local " in one embodiment " that occur not are all to refer to same embodiment, neither be independent or optionally mutually exclusive with other embodiment embodiment.In addition, represent the sequence of modules in method, process flow diagram or the functional block diagram of one or more embodiment and revocablely refer to any particular order, also be not construed as limiting the invention.
Phonological tone changing method of the present invention can realize becoming the breaking of voice device by the combination of software, hardware or software and hardware, described breaking of voice device not only can be used for the end that sends of voice, the receiving terminal that can also be used for voice, even can also be used on the voice playing equipment.The audience is heard normal voice changed into the special efficacy voice that have " transfer in ocean, foreign chamber ".
As everyone knows, standard Chinese is a kind of language that has tone.It has four kinds of tones: high and level tone, rising tone, go up sound, falling tone, or be referred to as, two, three, the four tones of standard Chinese pronunciation.Tone is one of main attribute of standard Chinese, is bearing the effect that meaning distinguished in important structure word.The syllable that identical initial consonant and simple or compound vowel of a Chinese syllable constitute has diverse meaning along with the different of tone, corresponding different Chinese characters, for example mother, fiber crops, horse, scolding.
The sound wave that the people speaks, sends when singing is very complicated, is made up of fundamental tone and the abundant partials of composition from frequency domain.Fundamental tone is the minimum vibration of sound wave medium frequency, i.e. our daily described voiced sound, and it has certain periodicity, and this cycle is referred to as pitch period.Voiceless sound then has bigger randomness.Pitch period is one of most important parameter during voice signal is handled, and has critical application at aspects such as audio coder ﹠ decoder (codec), speech recognitions.The inverse in gene cycle is exactly a fundamental frequency, and tone is characterized by the track of fundamental frequency.We establish fundamental frequency F
0Represent that the typical curve of four kinds of tones of Chinese can be with reference to shown in Figure 1 when then saying a syllable separately.
Gene frequency has not only determined tone, and for the tone important influence of speaking.Can make between the tone by the gene frequency that changes original voice signal and to change, even indicative mood can be become the query tone, this process complexity very certainly.Prior art modified tone algorithm also is by changing gene frequency F
0Thereby, make the hearer produce wrong judgement to speaker's sex.But this variation is not transferred the tone harmony of speaking and is produced any variation.This mainly is because only make gene frequency F in the modified tone algorithm in the prior art
0Increase or reduced a constant, do not change F
0Change curve.If to gene frequency F
0Do a nonlinearities change, along with gene frequency F
0The change of change curve, the tone and the tone certainly lead to great changes, and the tone intonation of speaking is become in queer tune.
The method that breaking of voice is handled can have multiple, mainly is divided into Time-Domain algorithm and frequency domain algorithm two big classes.Frequency domain algorithm generally adopts phase vocoder (Phase Vocoder) to realize; The method that Time-Domain algorithm generally adopts speed change to add variable sampling rate realizes.What adopt among the present invention is the method realization breaking of voice processing of variable sampling rate.
Please refer to Fig. 2, it shows the method flow diagram of Phonological tone changing method 200 of the present invention.Described Phonological tone changing method 200 may further comprise the steps.
Step 202 goes out the time-delay factor of current time correspondence according to the modified tone function calculation that changes in time;
In digital signal processing, pending voice signal is based on the discrete signal of certain sampling rate, has just adopted the sample frequency of 44.1kHz such as small-sized radium-shine dish CD.After the sampled point in the voice signal is carried out delay process, can cause the variation of the sampling rate of voice signal; The variation of the sampling rate of voice signal can cause the variation of the pitch period of voice signal, and also change has taken place the fundamental frequency that promptly is equal to voice signal.Adopt the modified tone function calculation that changes in time and change to go out the time-delay factor of current time correspondence among the present invention, make the signal for each sampled point in the pending voice signal carry out the not time-delay of fixed amplitude, also i.e. change by the pending voice signal sampling rate of the different time-delay factor pairs gene frequency that caused treating in the processed voice has realized nonlinearities change.
Step 204, the voice pending according to described time-delay factor pair carry out delay process.
In one embodiment, voice signal y (n)=x (n-Δ Dn) after the voice signal output of each sampled point of described the variation in time and the modified tone function D (n) that the changes pending voice x of time-delay (n) modifies tone, wherein n is the independent variable time, x (n) is the acoustic signal of input, y (n) is the voice signal after the modified tone of exporting, and Δ Dn is the current functional value (factor of also promptly delaying time) of modified tone function D (n).Described modified tone to voice signal is handled and is carried out frame by frame, all uses time-delay factor Dn to do delay process for each sampled point in the voice signal.The time-delay factor Dn that should be familiar with is a nonnegative number.
In another embodiment, the described variation in time and the modified tone function that changes are:
D(n)=A+Asin(2πn)/T,
Wherein, n is the independent variable time, and T is the default modified tone cycle, and A is default delay amplitude and A>0.Wherein, the value of A and T can be different in different embodiment.Fig. 3 shows that the present invention changes in time and enforcement synoptic diagram among the embodiment of the modified tone function D (n) that changes.For the ease of realizing, can adopt earlier to pending voice x (n) time-delay A, and then the mode of time-delay Δ n=Asin (2 π n/T) realizes changing in time and modified tone function D (n)=A+ Δ n of changing, and described Δ n can adopt LF oscillator to obtain, and its functional digraph can be with reference to Fig. 4.
When function D (n) that voice signal is modified tone handled, the current functional value that need go out described modified tone function according to current Time Calculation was as current modified tone factor Dn.When Δ Dn increased, word speed was slack-off, was equivalent to and rose sampling, be i.e. fundamental frequency F
0Reduce; When Δ Dn reduced, word speed accelerated, be equivalent to down-sampled, i.e. fundamental frequency F
0Increase.And the variation of Δ Dn is non-linear, so fundamental frequency F
0Variation also be to change in time and constantly.Fundamental frequency F
0The heterogeneity that changes has produced effect in queer tune.Increase A and reduce T and can reach quickening fundamental frequency F
0The purpose of pace of change, thus effect in queer tune also can be more obvious.By selecting proper A and T the effect of " transfer in ocean, foreign chamber " just can occur.And described the variation in time and the modified tone function D (n) that the changes function of sine function class not necessarily, can also be other functions, such as D (n)=A-Acos (2 π n)/CYCLE, A>0 or D (n)=A-Bsin (2 π n)/CYCLE, A>B>0 or the like.
In another embodiment, because digital signal processor can be divided into two kinds of floating-point signal processor and fixed-point dsps, most fixed-point dsps do not support directly to ask certain to import the operation of the common function value of data, for example, extraction of square root, logarithm and trigonometric function.And realize among this embodiment that hardware of the present invention can adopt the chip based on fixed-point dsp, be difficult to the shortcoming of implementation algorithm fixed point in order to keep away the string function of reforming, so the present invention has adopted parabola shaped modified tone function as described below to replace aforementioned sine function Δ n:
Wherein, n is the independent variable time, and T is the default modified tone cycle, A for default delay amplitude and | A|>0.
Its functional digraph can be with reference to figure 5.Wherein, n is the independent variable time, and T is the default modified tone cycle, and A is default delay amplitude.Wherein, the value of A and T can be different in different embodiment.
Para-curve can well the analog sine function characteristic, experiment showed, treatment effect with not obviously difference of sine function.
In summary, the present invention adopts the modified tone function that changes in time and change to come pending voice signal is carried out delay process, has caused the fundamental frequency of pending voice signal to produce nonlinearities change.The effect that just can occur " transfer in ocean, foreign chamber " by adjusting the modified tone function parameters.But the setting of described modified tone function is various; will be appreciated that; no matter how described modified tone function is set; as long as described modified tone function is to change in time and change; and caused having produced behind the pending breaking of voice effect of " transfer in ocean, foreign chamber ", just because of being protection scope of the present invention.Based on different implementation platforms, can select suitable modified tone function to be easy to realize simultaneously, also be one of advantage of the present invention.
Please refer to Fig. 6, it shows the structural representation of the breaking of voice device 600 among the present invention.Described breaking of voice device 600 comprises: modified tone unit 602 and unit 604 is set.It is the time that described modified tone unit 602 is used for described voice signal is adopted independent variable, and dependent variable changes and the processing that modifies tone of the modified tone function that changes in time; Described the modified tone amplitude that unit 604 is used for being provided with the modified tone function is set.
Described modified tone unit 602 is the time by adopting independent variable, dependent variable change in time and the modified tone function that changes to the processing that modifies tone of described voice signal.In one embodiment, described modified tone unit 602 has adopted modified tone function D (n)=A+Asin (2 π n)/T to come the processing that modifies tone of described voice signal, and wherein, n is the independent variable time, and T is the default modified tone cycle, and A is default delay amplitude; In another embodiment, described modified tone unit 604 has adopted parabola shaped segmentation modified tone function to replace sine-shaped modified tone function, and described modified tone function is: D (n)=A+ Δ n, wherein
Wherein, n is the independent variable time, and T is the default modified tone cycle, A for default delay amplitude and | A|>0.Wherein the value of A and T can be different in different embodiment.
Described the modified tone amplitude that unit 604 is used for being provided with the modified tone function is set.Be default modified tone period T and the default delay amplitude A in the modified tone function that adopted of described modified tone unit 604.By setting different values, can reach quickening fundamental frequency F such as increasing A and reducing T
0The purpose of pace of change, thus effect in queer tune also can be more obvious.The effect of " transfer in ocean, foreign chamber " just can appear in user by selecting proper A and T.
And need to prove that the occurrence of the various parameters that provide in the embodiment of the invention all is preferable value, rather than unique value, the value of various parameters can be provided with according to actual needs.The technical scheme that the embodiment of the invention provides can be applied in the transmitting terminal of voice, also can be applied in the receiving end of voice.Can preestablish the modified tone degree of wanting " transfer in ocean, foreign chamber " that hear the receiving end user of voice, receiving end just can change into the voice signal that receives the voice that have " the foreign accent in foreign chamber " automatically.The present invention even can also be integrated in the portable voice playing device, by the pre-set modified tone parameter of slip-stick artist, realize that portable voice playing device can become the voice signal of playing the voice that have " transfer in ocean, foreign chamber ", to reach " transfer in ocean, foreign chamber " special sound effect that the user wants.
Above-mentioned explanation has fully disclosed the specific embodiment of the present invention.It is pointed out that and be familiar with the scope that any change that the person skilled in art does the specific embodiment of the present invention does not all break away from claims of the present invention.Correspondingly, the scope of claim of the present invention also is not limited only to described embodiment.