Audio signal processor and method for synchronizing speech and text using machine learning model
A neural network-based audio signal processing method with UNet and cross-correlation analysis effectively synchronizes speech and text in audio signals, addressing alignment issues in songs with repeated sounds, achieving superior synchronization accuracy.
Patent Information
- Application Number
- JP2024045057
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-24
- Filing Date
- 2024-03-21
- Publication Date
- 2024-10-07
- Estimated Expiration
- 2044-03-21
AI Technical Summary
Existing methods for synchronizing speech and text in audio signals, such as DTW and Viterbi algorithms, struggle with alignment performance in songs with repeated specific sounds, leading to deterioration in synchronization accuracy.
An audio signal processing method using a neural network model with a UNet structure, incorporating CNN and RNN layers, to analyze branch-like and global similarity regions, and a cross-correlation-based approach to synchronize audio and text by extracting features from frames and sections of pronunciation information.
The method achieves high-performance synchronization of text and audio, particularly in songs with repeated words, by accurately predicting timestamps for text sections in the audio signal, outperforming conventional models in terms of alignment accuracy.
Smart Images

Figure 2024137877000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an audio signal processing method and apparatus for synchronizing text with speech contained in an audio signal using a machine learning model. [Background technology]
[0002] As machine learning models have developed, methods of using machine learning models in image and video processing have been discussed. Machine learning models have been used to identify objects contained in images and to search for objects contained in images. Recently, machine learning models have been applied to audio in addition to image and video processing. In particular, methods of using machine learning models to replace tasks that should have been performed directly by humans have been discussed. For example, a method of converting voice to text and text to voice using machine learning models has been introduced. As a result, machine learning models that can synchronize voice and text, such as songs and lyrics, contained in audio signals have also been discussed.
[0003] For example, the audio signal processing device can use dynamic time warping (DTW), which is a type of forced alignment algorithm, to synchronize the included voice and text. In DTW, the audio signal processing device compares two time series data and searches for a time point in the second time series data having the most similar data, starting from the first time point of the first time series data. In this manner, the distance between the time points of the second time series corresponding to the time points of the first time series is called a warping distance, and the audio signal processing device searches for an optimal warping path that minimizes the warping distance. The audio signal processing device aligns the voice and text according to the optimal warping path. At this time, the audio signal processing device converts the input audio and the input text into the same latent feature space. At this time, the audio signal processing device can extract audio features using non-negative matrix factorization (NMF) and use vowel class tokens as text features.
[0004] In addition, the audio signal processing device can use the Viterbi algorithm, which is a type of forced alignment algorithm, for voice and text synchronization. The Viterbi algorithm is particularly suitable for an automatic speech recognition (ASR) model. The ASR model outputs pronunciation and character logits from the voice on a frame-by-frame basis. Therefore, the audio signal device can align the voice and text by using the Viterbi algorithm on the output of the ASR model and the text. However, this method has a problem in that alignment performance decreases for certain voices, for example, songs in which certain words are likely to be repeated. Summary of the Invention [Problem to be solved by the invention]
[0005] An object of the present invention is to provide an audio signal processing method and apparatus for synchronizing text with speech contained in an audio signal using a machine learning model. [Means for solving the problem]
[0006] According to one embodiment of the present invention, an audio signal processing device for synchronizing an audio signal including speech and text corresponding to the speech with the speech signal includes a processor, wherein the processor obtains first audio pronunciation information corresponding to the speech, the first audio pronunciation information being divided into a plurality of frames included in the audio signal, obtains first text pronunciation information corresponding to the text, the first text pronunciation information being divided into a plurality of sections, obtains information indicating a correlation between second audio pronunciation information which is a feature extracted from each of the plurality of frames of the first audio pronunciation information and the second text pronunciation information which is a feature extracted from each of the plurality of sections of the first text pronunciation information, and synchronizes the text with the speech signal using the information indicating the correlation.
[0007] The processor may extract the speech from components indicative of spoken language in the audio signal.
[0008] The processor may convert the text into a code corresponding to the text, and obtain the first text pronunciation information based on the converted code.
[0009] The converted code may be in the international phonetic alphabet (IPA).
[0010] The correlation between the second audio pronunciation information and the second text pronunciation information may be a cross correlation.
[0011] The processor may obtain a similarity between the second audio pronunciation information and the second text pronunciation information, and based on the similarity, obtain timestamps indicating a time at which each of a plurality of sections of the text corresponding to each of a plurality of sections of the second pronunciation information corresponds to an audio signal.
[0012] The processor may obtain the similarity measure using a neural network model.
[0013] The neural network model has a UNet structure, and the UNet includes a CNN and an RNN. Within a layer included in the UNet, the CNN can perform analysis on a granular similarity region, and the RNN can perform analysis on a global similarity region.
[0014] A loss function may be used to train the neural network model, the loss function having as its output value the difference between the time at which speech corresponding to each of the multiple sections of the text is spoken in the audio signal and the predicted time at which each of the multiple sections of the text is synchronized with the audio signal.
[0015] The loss function may use cross-entropy.
[0016] According to an embodiment of the present invention, a machine learning device for generating a neural network model for synchronizing an audio signal including a voice and a text corresponding to the voice with the voice signal includes a processor, which acquires first audio pronunciation information corresponding to the voice, the first audio pronunciation information being divided into a plurality of frames included in the audio signal, acquires first text pronunciation information corresponding to the text, the first text pronunciation information being divided into a plurality of sections, acquires information indicating a correlation between second audio pronunciation information, which is a feature extracted from each of the plurality of frames of the first audio pronunciation information, and the second text pronunciation information, which is a feature extracted from each of the plurality of sections of the first text pronunciation information, and learns to synchronize the text with the voice signal using the information indicating the correlation.
[0017] The processor may extract the speech from components indicative of spoken language in the audio signal.
[0018] The processor may convert the text into a code corresponding to the text, and obtain the first text pronunciation information based on the converted code.
[0019] The converted code may be in the international phonetic alphabet (IPA).
[0020] The correlation between the second audio pronunciation information and the second text pronunciation information may be a cross correlation.
[0021] The processor may obtain a similarity between the second audio pronunciation information and the second text pronunciation information, and obtain timestamps indicating a time at which each of a plurality of sections of the text corresponding to each of a plurality of sections of the second pronunciation information corresponds to an audio signal based on the similarity.
[0022] The neural network model has a UNet structure, and the UNet includes a CNN and an RNN. Within a layer included in the UNet, the CNN can perform analysis on a granular similarity region, and the RNN can perform analysis on a global similarity region.
[0023] A loss function may be used to train the neural network model, the loss function having as its output value the difference between the time at which speech corresponding to each of the multiple sections of the text is spoken in the audio signal and the predicted time at which each of the multiple sections of the text is synchronized with the audio signal.
[0024] The loss function may use cross-entropy. Effect of the Invention
[0025] An apparatus and method according to an embodiment of the present invention may provide an audio signal processing method and apparatus for synchronizing text with speech contained in an audio signal using a machine learning model. [Brief description of the drawings]
[0026] [Figure 1] 4 is a block diagram showing a process in which an audio signal processing apparatus according to an embodiment of the present invention trains a prediction module. [Diagram 2] This shows that the English text is converted into IPA tokens by the text preprocessor. [Diagram 3] 1 illustrates a linear layer added to a CHBG according to an embodiment of the present invention. [Figure 4] 3 shows a specific structure of a prediction module according to an embodiment of the present invention; [Diagram 5] We present the results of testing a predictive model according to an embodiment of the present invention to synchronize lyrics to multiple songs, as well as the predictive performance of existing models. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0027] Hereinafter, with reference to the accompanying drawings, an embodiment of the present invention will be described in detail so that a person having ordinary skill in the art to which the present invention belongs can easily carry out the embodiment. However, the present invention may be embodied in various other forms and is not limited to the embodiments described herein. In addition, in the drawings, in order to clearly explain the present invention, parts that are not related to the description will be omitted, and similar parts will be given similar reference numerals throughout the specification. In addition, when a part is described as "including" a certain element, this does not mean that other elements are excluded, but that other elements may be further included, unless otherwise specified.
[0028] FIG. 1 is a block diagram showing a process in which an audio signal processing apparatus according to an embodiment of the present invention trains a prediction module.
[0029] If the audio signal processing apparatus according to the embodiment of the present invention divides the process of training the prediction module into software functional blocks, the training process may be divided into an audio pre-processing unit 100, a text pre-processing unit 200, an audio encoder 300, a text encoder 400, a prediction module 500, and a loss evaluation unit 600. These software functional blocks may be operated by one or more processors.
[0030] The audio pre-processing unit 100 extracts a voice included in the input audio signal and obtains pronunciation information corresponding to the voice. Specifically, the audio pre-processing unit 100 may extract the voice from a component indicating a language spoken in the input audio signal. For convenience of explanation, the pronunciation information corresponding to the voice is referred to as first audio pronunciation information. At this time, the audio pre-processing unit 100 may use a pre-specified voice extraction method. In addition, the audio pre-processing unit 100 may convert the extracted voice into pronunciation information, for example, a mel spectrogram or an FFT spectrogram. Specifically, the audio pre-processing unit 100 may convert the voice extracted from the input audio signal into an STFT signal, and convert the STFT signal into a mel spectrogram using a mel filter bank. In addition, the audio pre-processing unit 100 may sample an audio signal corresponding to the extracted voice. At this time, the audio pre-processing unit 100 may adjust a sampling unit according to an alignment unit.
[0031] The text pre-processing unit 200 converts the input text so that features can be extracted from the input text. Specifically, the text pre-processing unit 200 can convert the input text into pronunciation information. For convenience of explanation, the pronunciation information corresponding to the text is referred to as first text pronunciation information. At this time, the pronunciation information may be an international phonetic alpahbet (IPA) token. At this time, a conversion method predefined according to the language of the text may be used to convert the information into the IPA token. For example, the Python library [eng2ipa, Kopron] may be used to convert the text between English and Korean. FIG. 2 shows that the English text is converted into an IPA token by the text pre-processing unit 200. In addition, the text pre-processing unit 200 can remove characters unrelated to the pronunciation before converting the input text into the IPA token. At this time, the characters unrelated to the pronunciation may be a sentence symbol or "-" corresponding to a long vowel expression in Japanese. The sentence symbol may include at least one of "?", "!", ",", and ".".
[0032] The audio encoder 300 encodes the first audio pronunciation information acquired by the audio signal pre-processing unit 100 in an input format of a prediction module. The text encoder 400 encodes the first text pronunciation information acquired by the text pre-processing unit 200 in an input format of a prediction module. Specifically, the audio encoder 300 and the text encoder 400 may use a CHBG (convolution bank+highway+GRU). The CBHG is a combination of a one-dimensional (1D) convolutional bank, a highway network, and a gated recurrent unit (GRU), and is used to extract features from a long sequence. The 1D convolutional bank performs a convolutional operation on the pre-processed input to obtain a matrix, and max pooling is performed on the obtained matrix. Thus, the audio encoder 300 and the text encoder 400 extract second audio pronunciation information and second text information reflecting sequence features of an audio signal and a text from the first audio pronunciation information and the first text pronunciation information. In this case, the sequence features may include at least one of phonetic sequences and repeated words. The highway network amplifies important features among the features extracted from the 1D convolutional bank. The GRU outputs features that reflect the correlation between consecutive sequences. A linear layer that increases the number of channels may be added to the end of the CBHG. FIG. 3 shows a linear layer added to the CHBG according to an embodiment of the present invention.
[0033] In Figure 3, C in represents the number of channels output after the linear layer. Also, L represents the number of processing units into which the IPA preprocessed text, for example, IPA tokens, are divided. L may be the number of sentences corresponding to the IPA tokens. Also, T represents the number of processing units into which the preprocessed audio signal, the speech audio signal, is divided. T represents the number of time frames corresponding to the preprocessed audio signal. C output by the CBHG encoderA tensor of the form xLxT is then linearly layered into C in ×L×T tensor.
[0034] In addition to CBHG, other models capable of extracting features from long sequences, such as RNN and LSTM, may be used according to specific embodiments.
[0035] The prediction module 500 synchronizes the text with the audio signal based on a correlation between the second audio pronunciation information, which is a feature extracted from each of a plurality of frames of the first audio pronunciation information, and the second text pronunciation information, which is a feature extracted from each of a plurality of sections of the first text information. Specifically, the prediction module 500 can synchronize the text with the audio signal based on a cross-correlation between the second audio pronunciation information extracted from each of a plurality of frames of the first audio pronunciation information and the second text pronunciation information extracted from each of a plurality of sections of the first text pronunciation information. At this time, the prediction module 500 can output a timestamp of the audio signal corresponding to each section of the text. At this time, the timestamp may be a start time of the section of the second text pronunciation information used for the prediction. Specifically, the prediction module 500 synchronizes the text with the audio signal based on a cross-correlation between the second audio pronunciation information extracted from each of a plurality of frames of the first audio pronunciation information and the second text pronunciation information extracted from each of a plurality of sections of the first text pronunciation information. inThe text may be synchronized to the audio signal based on a matrix indicating the correlation of the L×L×T tensor. The prediction module 500 may output an L×T tensor indicating the similarity between the second audio pronunciation information and the second text pronunciation information. The prediction module 500 may output the time information of the frame of the second audio pronunciation information having the highest correlation to the second text pronunciation information having the highest correlation. In this case, the prediction module 500 may use an argmax function. The prediction module 500 may be a UNet structure using a GRU. The UNet may be configured by a combination of a CNN and an RNN. In this case, within a layer included in the UNet, the CNN may perform an analysis on a branch-like similarity region. In addition, within a layer included in the UNet, the RNN may perform an analysis on a global similarity region. The initial 2D convolutional layer of the prediction module 500 may output a tensor of 32 channels. After each pooling layer, the channel size is increased by two times. At each depth level, there are two convolutional layers, and there is a skip connection between the downsampling and the upsampling. FIG. 4 shows a specific structure of a prediction module 500 according to an embodiment of the present invention.
[0036] The prediction module 500 may be trained using a loss function 600 that assumes a difference between a timestamp at which the text should be output, i.e., a time at which a voice corresponding to each of the multiple sections of the text corresponding to each of the multiple sections of the second text-pronunciation information is spoken in the audio signal, and a timestamp predicted by the prediction module 500, as a loss. In this case, the loss may be a cross-entropy loss with respect to the time axis.
[0037] The prediction module 500 trained through such a learning process can exhibit high performance in synchronizing text and speech where similar or identical words are repeated or appear several times, such as in song lyrics.
[0038] The prediction module 500 can perform two-stage prediction when synchronizing text and speech. For example, the prediction module 500 can predict the timestamp of a first unit of text and output the timestamp of a second unit of text. In this case, the first unit can be a unit larger than the second unit. Specifically, the first unit can be a sentence, and the second unit can be a word.
[0039] FIG. 5 shows the results of testing a predictive model according to an embodiment of the present invention to synchronize lyrics to multiple songs, and the predictive performance of existing models.
[0040] In Figure 5, ST is the prediction model of D. Stoller, S. Durand, and S. Ewert, “End-to-end lyrics alignment for polyphonic music using an audio-tocharacter recognition model,” published in ICASSP 2019-2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 2019, pp. 181-185. Also, in Figure 5, VA is the prediction model of A. Vaglio, R. Hennequin, M. Moussallam, G. Richard, and F. d'Alche Buc, “Multilingual lyrics-to-audio alignment,” presented at the International Society for Music Information Retrieval Conference (ISMIR), 2020. In FIG. 5, GU is a prediction model of “Automatic lyrics alignment and transcription in polyphonic music: Does background music help?” by C. Gupta, E. Y1lmaz, and H. Li, published in ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 2020, pp. 496-500. Also, in FIG. 5, GTS-D is a model in which a prediction model according to an embodiment of the present invention is trained using DALI (registered trademark). Also, in FIG. 5, GTS-IH is a model in which a prediction model according to an embodiment of the present invention is trained using internal data from Gaudio Lab. In FIG. 5, the evaluation items are MAE (Mean Absolute Error), Med (AE) Median Absolute Error (MedAE), Perc, and Mauch metric. Perc represents the length of the section in which the prediction was made accurately out of the total length of the audio signal.The Mauch metric represents the ratio of predicted time within a certain interval from the actual voice time. Equation 1 shows the method of measuring MAE in FIG. 5, Equation 2 shows the method of measuring MedAE in FIG. 5, Equation 3 shows the method of measuring Perc in FIG. 5, and Equation 4 shows the method of measuring the Mauch metric.
[0041]
number
[0042]
number
[0043]
number
[0044]
number
[0045] W represents the total number of words in a song, and w represents the index of a word. w pred represents the predicted start time for the word corresponding to word index w, and t w ref represents the actual start time of the word corresponding to the word index w. w represents the end time of a word. The evaluation in Figure 5 was done on a per-song basis and was evaluated using the Jamendo dataset from MIREX 2019. Since the Jamendo dataset does not include the end time of a word, e w was set to the start time of the next word. From Fig. 5, it can be seen that the model according to the embodiment of the present invention shows higher performance than the conventional model. In Fig. 5, the items marked as N / A are open source items whose measurements are not publicly available or items that are not recorded in the paper in which the model is described.
[0046] The prediction module trained according to the above embodiment can obtain information indicating a correlation between each pronunciation of a plurality of frames of the first pronunciation information and each pronunciation of a plurality of intervals of the second pronunciation information, and can synchronize the text to the speech signal based on the information indicating the correlation.
[0047] An audio signal processing apparatus according to an embodiment of the present invention includes at least one processor. The audio signal processing operations described in the present invention may be operations of a set of instructions running on a processor included in the audio signal processing apparatus.
[0048] Some embodiments may be embodied in the form of a recording medium including computer executable instructions, such as a program module executed by the computer. A computer readable medium may be any available medium accessible by a computer, and may include both volatile and non-volatile media, and separate and non-separate media. A computer readable medium may also include a computer storage medium. A computer storage medium may include both volatile and non-volatile, separate and non-separate media embodied in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data.
[0049] Although the present disclosure has been described above with reference to specific examples, those skilled in the art who have ordinary knowledge in the technical field to which the present disclosure belongs can modify and change the present disclosure without departing from the spirit and scope of the present disclosure. That is, although the present disclosure has described an example of loudness level correction for an audio signal, the present disclosure can be equally applied and extended to various multimedia signals including video signals in addition to audio signals. Therefore, anything that can be easily inferred by a person in the technical field to which the present disclosure belongs from the detailed description and examples of the present disclosure is deemed to fall within the scope of the present disclosure.
Claims
1. An audio signal processing device for synchronizing an audio signal including speech and a text corresponding to the speech with the speech signal, comprising: A processor is included. The processor, obtaining first audio pronunciation information corresponding to the voice, the first audio pronunciation information being divided into a plurality of frames included in the audio signal; obtaining first text pronunciation information corresponding to the text, the first text pronunciation information being divided into a plurality of sections; obtaining information indicating a correlation between second audio pronunciation information, which is a feature extracted from each of a plurality of frames of the first audio pronunciation information, and second text pronunciation information, which is a feature extracted from each of a plurality of sections of the first text pronunciation information; Synchronizing the text to the audio signal using the correlation information. Audio signal processing device.
2. The processor, 2. The apparatus of claim 1, further comprising: an audio signal processor for extracting the speech from components indicative of spoken language in the audio signal.
3. The processor, The audio signal processing apparatus according to claim 1 , further comprising: converting the text into a code corresponding to the text; and obtaining the first text-to-phonetic information based on the converted code.
4. The audio signal processing apparatus according to claim 3 , wherein the converted code is an international phonetic alphabet (IPA).
5. The apparatus of claim 1 , wherein the correlation between the second audio pronunciation information and the second text pronunciation information is a cross-correlation.
6. The processor, obtaining a similarity between the second audio pronunciation information and the second text pronunciation information; The audio signal processing apparatus according to claim 1 , further comprising: obtaining a time stamp indicating a time at which each of a plurality of sections of the text corresponding to each of a plurality of sections of the second pronunciation information corresponds to an audio signal based on the similarity.
7. The processor, The audio signal processing apparatus according to claim 6 , wherein the similarity is obtained using a neural network model.
8. The neural network model has a UNet structure, UNet includes CNN and RNN, The audio signal processing apparatus according to claim 7 , wherein within a layer included in the UNet, a CNN performs analysis on a branch-like similarity region, and an RNN performs analysis on a global similarity region.
9. 8. The audio signal processing device according to claim 7, wherein a loss function having as an output value a difference between a time at which a voice corresponding to each of a plurality of sections of the text is spoken in the audio signal and a time predicted as a time at which each of the plurality of sections of the text is synchronized with the audio signal is used for training the neural network model.
10. The audio signal processing apparatus according to claim 9 , wherein the loss function uses cross-entropy.
11. A machine learning device that generates a neural network model that synchronizes an audio signal including a voice and a text corresponding to the voice with the voice signal, A processor is included. The processor, obtaining first audio pronunciation information corresponding to the voice, the first audio pronunciation information being divided into a plurality of frames included in the audio signal; obtaining first text pronunciation information corresponding to the text, the first text pronunciation information being divided into a plurality of sections; obtaining information indicating a correlation between second audio pronunciation information, which is a feature extracted from each of a plurality of frames of the first audio pronunciation information, and second text pronunciation information, which is a feature extracted from each of a plurality of sections of the first text pronunciation information; A machine learning device that learns to synchronize the text to the speech signal using information indicative of the correlation.
12. The processor, The machine learning device of claim 11 , wherein the speech is extracted from components indicative of the spoken language in the audio signal.
13. The processor, The machine learning device according to claim 11 , further comprising: converting the text into a code corresponding to the text; and obtaining the first text-to-phonetic information based on the converted code.
14. The machine learning device according to claim 13 , wherein the converted code is an international phonetic alphabet (IPA).
15. The machine learning device of claim 11 , wherein the correlation between the second audio pronunciation information and the second textual pronunciation information is a cross-correlation.
16. The processor, obtaining a similarity between the second audio pronunciation information and the second text pronunciation information; The machine learning device of claim 11 , further comprising: a time stamp indicating a time at which each of a plurality of sections of the text corresponding to each of a plurality of sections of the second pronunciation information corresponds to an audio signal based on the similarity.
17. The neural network model has a UNet structure, UNet includes CNN and RNN, The machine learning device according to claim 11 , wherein within a layer included in the UNet, a CNN performs analysis on a branched similarity region, and an RNN performs analysis on a global similarity region.
18. The machine learning device of claim 11, wherein a loss function having as an output value a difference between a time at which a voice corresponding to each of a plurality of sections of the text is spoken in the audio signal and a time predicted as a time at which each of the plurality of sections of the text is synchronized with the audio signal is used for training the neural network model.
19. The machine learning device of claim 18 , wherein the loss function uses cross-entropy.
Citation Information
Patent Citations
Voice synthesis dictionary generation device, voice synthesis device, voice synthesis dictionary generation method and voice synthesis dictionary generation program
JP2016020972A
Text displaying synchronization information generation device and method, and speech recognition device and method
JP2021043338A
Audio processing method, device, electronic device, and computer program
JP2022529641A
Speaker recognition method, speaker recognition device and speaker recognition program
WO2022113218A1
Cited By
Timestamp generation method, system, device, and program
JP2026179843A
Timestamp generation method, system, device, and program
JP2026180125A
Time stamp generation method, system, device, and program
JP7770605B1
