METHOD OF CONVERTING SPEECH

Abstract: The invention relates to a method of converting speech, in which method reflection coefficients are calculated from a speech signal (601) of a speaker, from which reflection coefficients are calculated (604) charateristics of cross-sectional areas of cylinder portions of a lossless tube modelling the speaker's vocal tract, sounds are identified (605) from said characteristics of the speaker and provided with respective identifiers. Subsequently, differences between the stored (608) characteristics representing said sound and respective following characteristics representing the same sound are calculated (606), a second speaker's speaker-specific characteristics modelling that speaker's vocal tract for the same sound are searched for (610) in a memory (611) on the basis of the identifier of the identified sound, a sum is formed (613) by summing said differences (617) and the second speaker's speaker-specific characteristics (612) modelling that second speaker's vocal tract for the same sound, new reflection coefficients are calculated (614) from that sum, and a new speech signal (616) is produced (615) from said new reflection coefficients.

Description: Method of converting speech Field of the Invention The invention relates to a method of converting speech, in which method samples are taken of a speech signal produced by a first speaker for the calcula¬ tion of reflection coefficients. Background of the Invention The speech of speech-handicapped persons is often unclear and sounds included therein are diffi¬ cult to identify. The speech quality of speech- handicapped persons causes problems especially when a communications device or network is used for trans- mitting and transferring a speech signal produced by a speech-handicapped person to a receiver. On account of the limited transmission capacity and acoustic properties of the communications network, the speech produced by the speech-handicapped person is then still more difficult to identify and understand for a listener. On the other hand, regardless of whether a communications device or network transferring speech signals is used, it is always difficult for a lis¬ tener to identify and understand the speech of a speech-handicapped person. In addition, at times there is a need to try to change a speech produced by a speaker in such a way that the sounds of the speech could be corrected to a better sound format or that the sounds of the speech produced by that speaker would be converted into the same sounds of another speaker and then the speech of the first speaker would actually sound like the speech of the second speaker. Disclosure of the Invention The object of this invention is to provide a method, by which a speech of a speaker can be changed or corrected in such a way that the speech heard by a listener or the corrected or changed speech signal obtained by a receiver corresponds either to a speech produced by another speaker or to the speech of the same speaker corrected in some desired manner. This novel method of converting speech is pro- vided by a method according to the invention, which is characterized by the following method steps: from the reflection coefficients are calculated charac¬ teristics of cross-sectional areas of cylinder por¬ tions of a lossless tube modelling the first speak- er's vocal tract, said characteristics of the cross- sectional areas of the cylinder portions of the loss¬ less tube of the first speaker are compared with at least one previous speaker's respective stored sound- specific characteristics of cross-sectional areas of cylinder portions of a lossless tube modelling the speaker's vocal tract for the identification of sounds, and for providing identified sounds with re¬ spective identifiers, differences between the stored characteristics of the cross-sectional areas of the cylinder portions of the lossless tube modelling the speaker's vocal tract for said sound and the respec¬ tive following characteristics for the same sound are calculated, a second speaker's speaker-specific char¬ acteristics of cross-sectional areas of cylinder por- tions of a lossless tube modelling that speaker's vocal tract for the same sound are searched for in a memory on the basis of the identifier of the identi¬ fied sound, a sum is formed by summing said differ¬ ences and the second speaker's speaker-specific char- acteristics of the cross-sectional areas of the cyl- inder portions of the lossless tube modelling that speaker's vocal tract for the same sound, new reflec¬ tion coefficients are calculated from that sum and a new speech signal is produced from said new reflec- tion coefficients. The invention is based on the idea that a speech signal is analyzed by means of the LPC (Linear Prediction Coding) method, and a set of parameters modelling a speaker's vocal tract is created, which parameters typically are characteristics of reflec¬ tion coefficients. According to the invention, sounds are then identified from the speech to be converted by comparing the cross-sectional areas of the cylin¬ ders of the lossless tube calculated from the reflec- tion coefficients of the sound to be converted with several speakers' previously received respective cross-sectional areas of the cylinders calculated for the same sound. After this, some characteristic, ty¬ pically an average, is calculated for the cross-sec- tional areas of each sound for each speaker. Subse¬ quently, from this characteristic are subtracted sound parameters corresponding to each sound, i.e. the cross-sectional areas of the cylinders of the speaker's lossless vocal tract, providing a differ- ence to be transferred to next conversion step to¬ gether with the identifier of the sound. Before that, the characteristics of the sound parameters corre¬ sponding to each sound identifier of the speaker to be imitated, i.e. the target person, have been agreed upon, and therefore, by summing said difference and the characteristic of the sound parameters for the same sound of the target person searched for in the memory, the original sound may be reproduced, but as if the target person would have uttered it. By adding that difference, information between the sounds of the speech is brought along, i.e. the sounds not in¬ cluded in the sounds on the basis of the identifiers of which the characteristics corresponding to those sounds have been searched for in the memory, i.e. typically the averages of the cross-sectional areas of the cylinders of the lossless tube of the speak¬ er's vocal tract. An advantage of such a method of converting speech is that the method makes it possible to cor- rect errors and inaccuracies, occurring in speech sounds and caused by the speaker's physical proper¬ ties, in such a way that the speech can be more easi¬ ly understood by the listener. Furthermore, the method according to the inven- tion makes it possible to convert a speaker's speech into a speech sounding like the speech of another speaker. The cross-sectional areas of the cylinder por¬ tions of the lossless tube model used in the inven- tion can be calculated easily from so-called reflec¬ tion coefficients produced in conventional speech coding algorithms. Naturally, some other cross-sec¬ tional dimension of the area, such as radius or dia¬ meter, may also be determined to a reference para- meter. On the other hand, instead of being circular, the cross-section of the tube may also have some other shape. Description of the Drawings In the following, the invention will be de¬ scribed in more detail with reference to the attached drawings, in which Figures 1 and 2 illustrate a model of a speak¬ er's vocal tract by means of a lossless tube compris- ing successive cylinder portions of the lossless tube modelling the speaker's vocal tract, Figure 3 illustrates how the lossless tube models change during speech, and Figure 4 shows a flow chart illustrating how sounds are identified and converted to comply with desired parameters, Figure 5a is a block diagram illustrating speech coding according to the invention on a sound level in a speech converter, Figure 5b is a transaction diagram illustrating a reproduction step of a speech signal on a sound level according to the invention by speech signal converting method, Figure 6 is a functional and simplified block diagram of a speech converter implementing one em¬ bodiment of the method according to the invention. Detailed Description of the Invention Reference is now made to Figure 1 showing a perspective view of a lossless tube model comprising successive cylinder portions Cl to C8 and constitut¬ ing a rough model of a human vocal tract. The loss¬ less tube model of Figure 1 can be seen in side view in Figure 2. The human vocal tract generally refers to a vocal passage defined by the human vocal cords, the larynx, the mouth of pharynx and the lips, by means of which tract a man produces speech sounds. In the Figures 1 and 2, the cylinder portion Cl illus- trates the shape of a vocal tract portion immmediate- ly after the glottis between the vocal cords, the cylinder portion C8 illustrates the shape of the vo¬ cal tract at the lips and the cylinder portions C2 to C7 inbetween illustrate the shape of the discrete vocal tract portions between the glottis and the lips. The shape of the vocal tract typically varies continuously during speaking, when sounds of differ¬ ent kinds are produced. Similarly, the diameters and areas of the discrete cylinders Cl to C8 representing the various parts of the vocal tract also vary during speaking. However, a previous international patent application WO 92/20064 of this same inventor dis¬ closes that the average shape of the vocal tract cal¬ culated from a relatively high number of instantane- ous vocal tract shapes is a constant characteristic of each speaker, which constant may be used for a more compact transmission of sounds in a telecommuni¬ cation system, for recognizing the speaker or even for converting the speaker's speech. Correspondingly, the averages of the cross-sectional areas of the cyl¬ inder portions Cl to C8 calculated in the long term from the instantaneous values of the cross-sectional areas of the cylinders Cl to C8 of the lossless tube model of the vocal tract are also relatively exact constants. Furthermore, the values of the cross-sec¬ tional dimensions of the cylinders are also deter¬ mined by the values of the actual vocal tract and are thus relatively exact constants characteristic of the speaker. The method according to the invention utilizes so-called reflection coefficients produced as a pro¬ visional result at Linear Predictive Coding (LPC) well-known in the art, i.e. so-called PARCOR-coeffi- cients r κ having a certain connection with the shape and structure of the vocal tract. The connection be¬ tween the reflection coefficients r κ and the areas A κ of the cylinder portions C κ of the lossless tube model of the vocal tract is according to the formula (1) A(k+1) - A(k) - r(k) = (1) A(k+1) + A(k) where k = 1, 2, 3,.... The LPC analysis producing the reflection coef¬ ficients used in the invention is utilized in many known speech coding methods. In the following, these method steps will be described only generally in those parts which are essential for the understanding of the invention with reference to the flow chart of Figure 4. In Figure 4, an input signal IN is sampled in block 10 at a sam¬ pling frequency 8 kHz, and an 8-bit sample sequence S 0 is formed. In block 11, a DC component is extracted from the samples so as to eliminate an interfering side tone possible occurring in coding. After this, the sample signal is pre-emphasized in block 12 by weighting high signal frequencies by a first-order FIR (Finite Impulse Response) filter. In block 13 the samples are segmented into frames of 160 samples, the duration of each frame being about 20 ms. In block 14, the spectrum of the speech signal is modelled by performing an LPC analysis on each frame by an auto-correlation method, the performance level being p=8. p+1 values of the auto-correlation function ACF are then calculated from the frame by means of the formula (2) as follows: 160 ACF(k) = Σ s(i)s(i-k) (2) i=l where k = 0, 1,..., 8. Instead of the auto-correlation function, it is possible to use some other suitable function, such as a co-variance function. The values of eight so-called reflection coefficients r κ of a short-term analysis filter used in a speech coder are calculated from the obtained values of the auto-correlation function by Schur's recursion or some other suitable recursion method. Schur's recursion produces new reflection coefficients every 20th ms. In one embodiment of the invention the coefficients comprise 16 bits and their number is 8. By applying Schur's recursion for a longer time, the number of the reflection coeffici¬ ents can be increased, if desired. In step 16, the cross-sectional area A κ of each cylinder portion C κ of the lossless tube modelling the speaker's vocal tract by means of the cylindrical portions is calculated from the reflection coeffici¬ ents r κ calculated from each frame. As Schur's recur- sion produces new reflection coefficients every 20th ms, 50 cross-sectional areas per second will be ob¬ tained for each cylinder portion C κ . After the cross- sectional areas of the cylinders of the lossless tube have been calculated, the sound of the speech signal is identified in step 17 by comparing these calcu¬ lated cross-sectional areas of the cylinders with the values of the cross-sectional areas of the cylinders stored in a parameter memory. This comparing opera¬ tion will be presented in more detail in connection with the explanation of Figure 5a referring to refer¬ ence numerals 60, 60A and 61, 61A. In step 18, aver¬ ages of the first speaker's previous parameters for the same sound are searched for in the memory and from these averages are subtracted the instantaneous parameters of a sample just arrived from the same speaker, thus producing a difference, which is stored in the memory. Then in step 19, the prestored averages of the cross-sectional areas of the cylinders of several samples of the target person's sound concerned are searched for in the memory, the target person being the person whose speech the converted speech shall resemble. The target person may also be e.g. the first speaker, but in such a way that the articula- tion errors made by the speaker are corrected by using in this conversion step new, more exact parame¬ ters, by means of which the speaker's speech can be converted into a more clear or more distinct speech, for example. After this in step 20, the difference calcu¬ lated above in step 18 is added to the average of the cross-sectional areas of the cylinders of the same sound of the target person. From this sum are calcu¬ lated in step 21 reflection coefficients, which are LPC-decoded in step 22, which decoding produces elec¬ tric speech signals to be applied to a microphone or a data communications system, for instance. In the embodiment of the invention shown in Figure 5a, the analysis used for speech coding on a sound level is described in such a way that the aver¬ ages of the cross-sectional areas of the cylinder portions of the lossless tube modelling the vocal tract are calculated from the areas of the cylinder portions of instantaneous lossless tube models creat- ed during a predetermined sound from a speech signal to be analyzed. The duration of one sound is rather long, so that several, even tens of temporally con¬ secutive lossless tube models can be calculated from a single sound present in the speech signal. This is illustrated in Figure 3, which shows four temporally consecutive instantaneous lossless tube models SI to S4. From Figure 3 can be seen clearly that the radii and cross-sectional areas of the individual cylinders of the lossless tube vary in time. For instance, the instantaneous models SI, S2 and S3 could roughly classified be created during the same sound, due to which an average could be calculated for them. The model S4, instead, is clearly different and associ¬ ated with another sound and therefore not taken into account in the averaging. In the following, speech conversion on a sound level will be described with reference to the block diagram of Figure 5a. Even though speech can be coded and converted by means of a single sound, it is rea- sonable to use at conversion all such sounds a con¬ version of which is desired to be performed in such a way that the listener hears them as new sounds. For instance, speech can be converted so as to sound as if another speaker spoke instead of the actual speak- er or so as to improve the speech quality for example in such a way that the listener distinguishes the sounds of the converted speech more clearly than the sounds of the original, unconverted speech. At speech conversion can be used for instance all vowels and consonants. The instantaneous lossless tube model 59 (Fig¬ ure 5a) created from a speech signal can be identi¬ fied in block 52 to correspond to a certain sound, if the cross-sectional dimension of each cylinder por- tion of the instantaneous lossless tube model 59 is within the predetermined stored limit values of a known speaker's respective sound. These sound-speci¬ fic and cylinder-specific limit values are stored in a so-called quantization table 54 creating a so- called sound mask. In Figure 5a, the reference numer¬ als 60 and 61 illustrate how said sound- and cylin¬ der-specific limit values create a mask or model for each sound, within the allowed area 60A and 61A (un¬ shadowed areas) of which the instantaneous vocal tract model 59 to be identified has to fit. In Figure 5a, the instantaneous vocal tract model 59 fits the sound mask 60, but does obviously not fit the sound mask 61. Block 52 thus acts as a kind of sound fil¬ ter, which classifies the vocal tract models into correct sound groups a, e, i, etc. After the sounds have been identified, parameters corresponding to each sound, such as a, e, i, k, are searched for in a parameter memory 55 on the basis of identifiers 53 of the sounds identified in block 52 of Figure 5a, the parameters being sound-specific characteristics, e.g. averages, of the cross-sectional areas of the cylin¬ ders of the lossless tube. At the identification 52 of sounds, it has also been possible to provide each sound to be identified with an identifier 53, by means of which parameters corresponding to each in¬ stantaneous sound can be searched for in the para¬ meter memory 55. These parameters can be applied to a subtraction means calculating 56 according to Figure 5a the difference between the parameters of a sound searched for in the parameter memory by means of the sound identifier, i.e. the characteristic of the cross-sectional areas of the cylinders of the loss¬ less tube, typically the average, and the instantane¬ ous values of said sound. This difference is sent further to be summed and decoded in the manner shown in Figure 5b, which will be described in more detail in connection with the explanation of said figure. Figure 5b is a transaction diagram illustrating a reproduction of a speech signal on a sound level in the speech conversion method according to the inven¬ tion. An identifier 500 of an identified sound is re¬ ceived and parameters corresponding to the sound are searched for in a parameter memory 501 on the basis of the sound parameter 500 and supplied 502 to a sum- mer 503 creating new reflection coefficients by sum- ming the difference and the parameters. A new speech signal is calculated by decoding the new reflection coefficients. Such a creation of a speech signal by summing will be described in greater detail in Figure 6 and in the explanation corresponding thereto. Figure 6 is a functional and simplified block diagram of a speech converter 600 implementing one embodiment of the method according to the invention. The speech of a first speaker, i.e. the speaker to be imitated, comes to the speech converter 600 through a microphone 601. The converter may also be connected to some data communication system, whereby the speech signal to be converted enters the converter as an electric signal. The speech signal converted by the micophone 601 is LPC-coded 602 (encoded) and from that are calculated reflection coefficients for each sound. The other parts of the signal are sent 603 forward to be decoded 615 later. The calculated re¬ flection coefficients are transmitted to a unit 604 for the calculation of characteristics, which unit calculates from the reflection coefficients the char¬ acteristics of the cross-sectional areas of the cyl¬ inders of the lossless tube modelling the speaker's vocal tract for each sound, which characteristics are transmitted further to a sound identification unit 605. The sound identification unit 605 identifies the sound by comparing cross-sectional areas of cylinder portions of a lossless tube model of the speaker's vocal tract, calculated from the reflection coeffi- cients of the sound produced by the first speaker, i.e. the speaker to be imitated, with at least one previous speaker's respective previously identified sound-specific values stored in some memory. As a result of this comparison is obtained the identifier of the identified sound. By means of the identifier of the identified sound, parameters are searched for 607, 609 in a parameter table 608 of the speaker, in which table have been stored earlier some character¬ istics, e.g. averages, of this first speaker's (to be imitated) respective parameters for the same sound and the subtraction means 606 subtracts from them the instantaneous parameters of a sample just arrived from the same speaker. Thus is created a difference, which is stored in the memory. Further, by means of the identifier of the sound identified in block 605, the characteristic/ characteristics corresponding to that identified sound, e.g. the sound-specific average of the cross- sectional areas of the lossless tube modelling the speaker's vocal tract calculated from the reflection coefficients, is searched for 610, 612 in a parameter table 611 of the target person, i.e. a second speaker being the speaker into whose speech the speech of the first speaker shall be converted, and is supplied to a summer 613. To the summer has also been brought 617 from the substraction means 606 the difference calcu¬ lated by the subtraction means, which difference is added by the summer 617 to the characteristic/charac¬ teristics searched for in the parameter table 611 of the subject person, for instance to the sound-specif¬ ic average of the cross-sectional areas of the cylin¬ ders of the lossless tube, modelling the speaker's vocal tract calculated from the reflection coeffici¬ ents of the speaker's vocal tract. A total is then produced, from which are calculated reflection coef¬ ficients in a reproduction block 614 of reflection coefficients. Moreover, from the reflection coeffici¬ ents can be produced a signal, in which the first speaker's speech signal is converted into acoustic form in such a way that the listener believes that he hears the second speaker's speech, though the actual speaker is the first speaker whose speech has been converted so as to sound like the second speaker's speech. This speech signal is applied further to an LPC decoder 615, in which it is LPC-decoded and the LPC uncoded parts 603 of the speech signal are added thereto. Thus is provided the final speech signal, which is converted into acoustic form in a loud¬ speaker 616. At this stage, this speech signal can be left in electric form just as well and transferred to some data or telecommunication system to be transmit¬ ted or transferred further. The above method according to the invention can be implemented in practice for instance by means of software, by utilizing a conventional signal proces¬ sor. The drawings and the explanation associated with them are only intended to illustrate the idea of the invention. As to the details, the method of con- verting speech according to the invention may vary within the scope of the claims. Though the invention has above been described primarily in connection with speech imitation, the speech converter can be util¬ ized also for speech conversion of some kind.

Claims: Claims : 1. A method of converting speech, in which method samples are taken of a speech signal (IN) pro- duced by a first speaker for the calculation of re¬ flection coefficients (r κ ), the method being c h a r¬ a c t e r i z e d in the following method steps: from the reflection coefficients (r κ ) are calcu¬ lated (16; 51; 604) characteristics of cross-section- al areas (Figure 2; A κ ) of cylinder portions of a lossless tube (Figures 1 and 2) modelling the first speaker's vocal tract, said characteristics of the cross-sectional areas (Figure 2; A κ ) of the cylinder portions of the lossless tube (Figures 1 and 2) of the first speaker are compared (17; 52; 605) with at least one previous speaker's respective stored sound-specific charac¬ teristics of cross-sectional areas (A κ ) of cylinder portions of a lossless tube modelling the speaker's vocal tract for the identification of sounds, and for providing the identified sounds with respective iden¬ tifiers, differences between the stored characteristics of the cross-sectional areas (Figure 2; A κ ) of the cylinder portions of the lossless tube modelling the speaker's vocal tract for said sound and the follow¬ ing respective characteristics for the same sound are calculated, a second speaker's speaker-specific character- istics of cross-sectional areas (Figure 2; A κ ) of cyl¬ inder portions of a lossless tube modelling that speaker's vocal tract for the same sound are searched for (19; 610) in a memory (611) on the basis of the identifier of the identified sound, a sum is formed (20; 613) by summing said dif- ferences (617) and the second speaker's speaker-spe¬ cific characteristics (612) of the cross-sectional areas of the cylinder portions of the lossless tube modelling that speaker's vocal tract for the same sound, new reflection coefficients are calculated (614) from that sum, and a new speech signal (616) is produced (615) from said new reflection coefficients. 2. A method according to claim 1, c h a r a c¬ t e r i z e d in that a characteristic is calculated (604) for the physical dimensions of the lossless tube representing the same sound of the first speaker and stored in a memory (608).

Inventors: VAENSKAE MARKO, VAENSKAE, MARKO
Applicants: NOKIA TELECOMMUNICATIONS OY, VAENSKAE MARKO, VAENSKAE, MARKO
Application year: 1994
Main classification: G10L9
IPC codes: G10L11, G10L21