KR20240014251A - Method and tts system for changing the speed and the pitch of the speech - Google Patents

Method and tts system for changing the speed and the pitch of the speech Download PDF

Info

Publication number
KR20240014251A
KR20240014251A KR1020220091777A KR20220091777A KR20240014251A KR 20240014251 A KR20240014251 A KR 20240014251A KR 1020220091777 A KR1020220091777 A KR 1020220091777A KR 20220091777 A KR20220091777 A KR 20220091777A KR 20240014251 A KR20240014251 A KR 20240014251A
Authority
KR
South Korea
Prior art keywords
voice
spectrogram
length
pitch
voice signal
Prior art date
Application number
KR1020220091777A
Other languages
Korean (ko)
Inventor
주동원
강진범
남용욱
Original Assignee
주식회사 자이냅스
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 주식회사 자이냅스 filed Critical 주식회사 자이냅스
Priority to KR1020220091777A priority Critical patent/KR20240014251A/en
Publication of KR20240014251A publication Critical patent/KR20240014251A/en

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L13/00Speech synthesis; Text to speech systems
    • G10L13/02Methods for producing synthetic speech; Speech synthesisers
    • G10L13/033Voice editing, e.g. manipulating the voice of the synthesiser
    • G10L13/0335Pitch control
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L13/00Speech synthesis; Text to speech systems
    • G10L13/08Text analysis or generation of parameters for speech synthesis out of text, e.g. grapheme to phoneme translation, prosody generation or stress or intonation determination
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/02Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using spectral analysis, e.g. transform vocoders or subband vocoders
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/03Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters
    • G10L25/18Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters the extracted parameters being spectral information of each sub-band

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

속도 및 피치가 변경된 음성을 합성하는 방법이 제공된다.
본 발명의 방법은, 제 1 음성 신호에 제 1 홉 길이 및 제 1 윈도우 길이를 기반으로 단시간 푸리에 변환을 수행하여 스펙트로그램을 생성하고, 스펙트로그램으로부터 제 2 홉 길이 간격으로 제 2 윈도우 길이를 갖는 구간들의 음성 신호들을 생성할 수 있다. 이 때, 제 2 홉 길이에 대한 제 1 홉 길이의 비는 배속율의 값과 같고, 제 2 윈도우 길이에 대한 제 1 윈도우 길이의 비는 피치 변경율의 값과 같도록 설정하여 속도 및 피치가 변경된 제 2 음성 신호를 생성할 수 있다.
A method for synthesizing voices with changed speed and pitch is provided.
The method of the present invention generates a spectrogram by performing a short-time Fourier transform on the first voice signal based on the first hop length and the first window length, and has a second window length at a second hop length interval from the spectrogram. Voice signals of sections can be generated. At this time, the ratio of the first hop length to the second hop length is set to be equal to the value of the double speed rate, and the ratio of the first window length to the second window length is set to be equal to the value of the pitch change rate so that the speed and pitch are A changed second voice signal can be generated.

Description

음성의 속도 및 피치를 변경하는 방법 및 음성 합성 시스템{METHOD AND TTS SYSTEM FOR CHANGING THE SPEED AND THE PITCH OF THE SPEECH}Method and voice synthesis system for changing the speed and pitch of voice {METHOD AND TTS SYSTEM FOR CHANGING THE SPEED AND THE PITCH OF THE SPEECH}

본 개시는 음성의 속도 및 피치를 변경하는 방법 및 음성 합성 시스템에 관한다.This disclosure relates to a method for changing the speed and pitch of speech and a speech synthesis system.

최근 인공 지능 기술의 발달로 음성 신호를 활용하는 인터페이스가 보편화되고 있다. 이에 따라, 주어진 상황에 따라 합성된 음성을 발화할 수 있도록 하는 음성 합성(speech synthesis) 기술에 대한 연구가 활발히 진행되고 있다.With the recent development of artificial intelligence technology, interfaces that utilize voice signals are becoming common. Accordingly, research is being actively conducted on speech synthesis technology that allows speech synthesis to be performed according to a given situation.

음성 합성 기술은 인공 지능에 기반한 음성 인식 기술과 접목하여 가상 비서, 오디오북, 자동 통번역 및 가상 성우 등의 많은 분야에 적용되고 있다. Voice synthesis technology, combined with artificial intelligence-based voice recognition technology, is being applied to many fields such as virtual assistants, audiobooks, automatic interpretation and translation, and virtual voice actors.

종래의 음성 합성 방법으로는 연결 합성(Unit Selection Synthesis, USS) 및 통계 기반 파라미터 합성(HMM-based Speech Synthesis, HTS) 등의 다양한 방법이 있다. USS 방법은 음성 데이터를 음소 단위로 잘라서 저장하고 음성 합성 시 발화에 적합한 음편을 찾아서 이어붙이는 방법이고, HTS 방법은 음성 특징에 해당하는 파라미터들을 추출해 통계 모델을 생성하고 통계 모델에 기반하여 텍스트를 음성으로 재구성하는 방법이다. 그러나, 상술한 종래의 음성 합성 방법은 화자의 발화 스타일 또는 감정 표현 등을 반영한 자연스러운 음성을 합성하는 데 많은 한계가 있었다. Conventional speech synthesis methods include various methods such as unit selection synthesis (USS) and statistical parameter synthesis (HMM-based Speech Synthesis, HTS). The USS method is a method of cutting and storing speech data into phoneme units and finding and concatenating sound fragments suitable for speech during speech synthesis. The HTS method extracts parameters corresponding to speech characteristics, creates a statistical model, and converts the text into speech based on the statistical model. This is a way to reconstruct it. However, the conventional voice synthesis method described above has many limitations in synthesizing natural voices that reflect the speaker's speaking style or emotional expression.

이에 따라, 최근에는 인공 신경망(Artificial Neural Network)에 기반하여 텍스트로부터 음성을 합성하는 음성 합성 방법이 주목받고 있다.Accordingly, recently, a speech synthesis method for synthesizing speech from text based on an artificial neural network has been attracting attention.

실제 발화자가 말하는 듯한 자연스러운 음성을 구현할 수 있는 인공 지능 기반의 음성 합성 기술을 제공하는 데 있다. The goal is to provide artificial intelligence-based voice synthesis technology that can produce natural voices that sound like actual speakers are speaking.

텍스트로부터 합성된 음성 신호의 속도 및 피치를 자유롭게 변경할 수 있는 인공 지능 기반의 음성 합성 기술을 제공하는 데 있다. The goal is to provide artificial intelligence-based speech synthesis technology that can freely change the speed and pitch of speech signals synthesized from text.

해결하고자 하는 기술적 과제는 상기된 바와 같은 기술적 과제들로 한정되지 않으며, 또 다른 기술적 과제들이 유추될 수 있다.The technical challenges to be solved are not limited to the technical challenges described above, and other technical challenges can be inferred.

상술한 기술적 과제를 달성하기 위한 기술적 수단으로서, 본 개시의 제 1 측면은, 제 1 음성 신호에서 제 1 홉 길이(hop length)를 기반으로 제 1 윈도우 길이(window length)를 갖는 구간들을 설정하는 단계; 상기 구간들에 대하여 단시간 푸리에 변환(Short-time Fourier transform)을 수행하여 스펙트로그램을 생성하는 단계; 상기 제 1 음성 신호의 속도 및 피치를 변경하기 위한 배속율 및 피치 변경율을 결정하는 단계; 상기 스펙트로그램으로부터 제 2 홉 길이를 기반으로 제 2 윈도우 길이를 갖는 구간들의 음성 신호들을 생성하는 단계; 및 상기 구간들의 음성 신호들을 기반으로 속도 및 피치가 변경된 제 2 음성 신호를 생성하는 단계를 포함하고, 상기 제 2 홉 길이에 대한 제 1 홉 길이의 비는 배속율의 값과 같고, 상기 제 2 윈도우 길이에 대한 제 1 윈도우 길이의 비는 피치 변경율의 값과 같도록 설정되는, 방법을 제공할 수 있다. As a technical means for achieving the above-described technical problem, the first aspect of the present disclosure is to set sections having a first window length based on the first hop length in the first voice signal. step; generating a spectrogram by performing short-time Fourier transform on the sections; determining a speed and pitch change rate for changing the speed and pitch of the first voice signal; generating voice signals in sections having a second window length based on the second hop length from the spectrogram; and generating a second voice signal with changed speed and pitch based on the voice signals of the sections, wherein the ratio of the first hop length to the second hop length is equal to the value of the double speed rate, and the second A method may be provided in which the ratio of the first window length to the window length is set to be equal to the value of the pitch change rate.

또한, 상기 제 2 홉 길이의 값은 기 설정된 값에 해당하고, 상기 제 1 홉 길이는 상기 제 2 홉 길이에 상기 배속율을 곱한 값과 같도록 설정될 수 있다. Additionally, the value of the second hop length may correspond to a preset value, and the first hop length may be set to be equal to the value obtained by multiplying the second hop length by the speed ratio.

또한, 제 1 윈도우 길이의 값은 기 설정된 값에 해당하고, 상기 제 2 윈도우 길이는 상기 제 1 윈도우 길이를 상기 피치 변경율로 나눈 값과 같도록 설정될 수 있다.Additionally, the value of the first window length may be set to a preset value, and the second window length may be set to be equal to the value obtained by dividing the first window length by the pitch change rate.

또한, 상기 제 2 윈도우 길이를 갖는 구간들의 음성 신호들을 생성하는 단계는, 상기 스펙트로그램에 단시간 푸리에 변환 및 역 단시간 푸리에 변환(Inverse Short-time Fourier Transform)을 반복적으로 수행하여 위상 정보를 추정하는 단계; 및 상기 위상 정보를 기반으로 상기 제 2 홉 길이를 기반으로 제 2 윈도우 길이를 갖는 구간들의 음성 신호들을 생성하는 단계를 포함할 수 있다.In addition, generating voice signals in sections having the second window length includes estimating phase information by repeatedly performing short-time Fourier transform and inverse short-time Fourier transform on the spectrogram. ; and generating voice signals of sections having a second window length based on the second hop length based on the phase information.

본 발명은 텍스트로부터 합성된 음성 신호의 속도 및 피치를 자유롭게 변경하여 고품질의 음성을 제공할 수 있다.The present invention can provide high-quality speech by freely changing the speed and pitch of the speech signal synthesized from text.

도 1은 음성 합성 시스템의 동작을 개략적으로 나타내는 도면이다.
도 2는 음성 합성 시스템의 일 실시예를 나타내는 도면이다.
도 3은 음성 합성 시스템의 합성부의 일 실시예를 나타내는 도면이다.
도 4는 합성부를 통해 멜 스펙트로그램을 출력하는 일 실시예를 나타내는 도면이다.
도 5는 음성 합성 시스템의 일 실시예를 나타내는 도면이다.
도 6은 입력된 음성 신호에 단시간 푸리에 변환(Short-time Fourier Transform)를 수행하는 일 실시예를 나타내는 도면이다.
도 7은 음성 후처리부에서 속도를 변경하는 일 실시예를 나타내는 도면이다.
도 8은 음성 후처리부에서 피치(pitch)를 변경하는 일 실시예를 나타내는 도면이다.
도 9는 음성 신호의 속도 및 피치를 변경하는 방법의 일 실시예를 도시한 흐름도이다.
1 is a diagram schematically showing the operation of a voice synthesis system.
Figure 2 is a diagram showing an embodiment of a voice synthesis system.
Figure 3 is a diagram showing an embodiment of a synthesis unit of a voice synthesis system.
Figure 4 is a diagram showing an embodiment of outputting a Mel spectrogram through a synthesis unit.
Figure 5 is a diagram showing an embodiment of a voice synthesis system.
Figure 6 is a diagram showing an embodiment of performing short-time Fourier Transform on an input voice signal.
Figure 7 is a diagram showing an embodiment of changing the speed in the voice post-processing unit.
Figure 8 is a diagram showing an embodiment of changing the pitch in a voice post-processing unit.
Figure 9 is a flowchart showing an embodiment of a method for changing the speed and pitch of a voice signal.

본 실시예들에서 사용되는 용어는 본 실시예들에서의 기능을 고려하면서 가능한 현재 널리 사용되는 일반적인 용어들을 선택하였으나, 이는 당 분야에 종사하는 기술자의 의도 또는 판례, 새로운 기술의 출현 등에 따라 달라질 수 있다. 또한, 특정한 경우는 출원인이 임의로 선정한 용어도 있으며, 이 경우 해당되는 부분에서 상세히 그 의미를 기재할 것이다. 따라서, 본 실시예들에서 사용되는 용어는 단순한 용어의 명칭이 아닌, 그 용어가 가지는 의미와 본 실시예들 전반에 걸친 내용을 토대로 정의되어야 한다.The terms used in the present embodiments were selected as widely used general terms as possible while considering the functions in the present embodiments, but this may vary depending on the intention or precedent of a technician working in the field, the emergence of new technology, etc. there is. In addition, in certain cases, there are terms arbitrarily selected by the applicant, and in this case, the meaning will be described in detail in the relevant section. Therefore, the terms used in the present embodiments should be defined based on the meaning of the term and the overall content of the present embodiments, rather than simply the name of the term.

본 실시예들은 다양한 변경을 가할 수 있고 여러 가지 형태를 가질 수 있는바, 일부 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 실시예들을 특정한 개시형태에 대해 한정하려는 것이 아니며, 본 실시예들의 사상 및 기술범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 본 명세서에서 사용한 용어들은 단지 실시예들의 설명을 위해 사용된 것으로, 본 실시예들을 한정하려는 의도가 아니다.Since these embodiments can be subject to various changes and have various forms, some embodiments will be illustrated in the drawings and described in detail. However, this is not intended to limit the present embodiments to a specific disclosure form, and should be understood to include all changes, equivalents, and substitutes included in the spirit and technical scope of the present embodiments. The terms used in this specification are merely used to describe the embodiments and are not intended to limit the embodiments.

본 실시예들에 사용되는 용어들은 다르게 정의되지 않는 한, 본 실시예들이 속하는 기술분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미가 있다. 일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥상 가지는 의미와 일치하는 의미를 가지는 것으로 해석되어야 하며, 본 실시예들에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않아야 한다.Unless otherwise defined, the terms used in the present embodiments have the same meaning as generally understood by those skilled in the art to which the present embodiments belong. Terms such as those defined in commonly used dictionaries should be interpreted as having meanings consistent with the meanings they have in the context of the related technology, and unless clearly defined in the present embodiments, they should not be used in an ideal or excessively formal sense. It should not be interpreted.

후술하는 본 발명에 대한 상세한 설명은, 본 발명이 실시될 수 있는 특정 실시예를 예시로서 도시하는 첨부 도면을 참조한다. 이러한 실시예는 당업자가 본 발명을 실시할 수 있기에 충분하도록 상세히 설명된다. 본 발명의 다양한 실시예는 서로 다르지만 상호 배타적일 필요는 없음이 이해되어야 한다. 예를 들어, 본 명세서에 기재되어 있는 특정 형상, 구조 및 특성은 본 발명의 정신과 범위를 벗어나지 않으면서 일 실시예로부터 다른 실시예로 변경되어 구현될 수 있다. 또한, 각각의 실시예 내의 개별 구성요소의 위치 또는 배치도 본 발명의 정신과 범위를 벗어나지 않으면서 변경될 수 있음이 이해되어야 한다. 따라서, 후술하는 상세한 설명은 한정적인 의미로서 행하여지는 것이 아니며, 본 발명의 범위는 특허청구범위의 청구항들이 청구하는 범위 및 그와 균등한 모든 범위를 포괄하는 것으로 받아들여져야 한다. 도면에서 유사한 참조부호는 여러 측면에 걸쳐서 동일하거나 유사한 구성요소를 나타낸다.The detailed description of the present invention described below refers to the accompanying drawings, which show by way of example specific embodiments in which the present invention may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the invention. It should be understood that the various embodiments of the present invention are different from one another but are not necessarily mutually exclusive. For example, specific shapes, structures and characteristics described herein may be implemented with changes from one embodiment to another without departing from the spirit and scope of the invention. Additionally, it should be understood that the location or arrangement of individual components within each embodiment may be changed without departing from the spirit and scope of the present invention. Accordingly, the detailed description described below is not to be taken in a limiting sense, and the scope of the present invention should be taken to encompass the scope claimed by the claims and all equivalents thereof. Like reference numbers in the drawings indicate identical or similar elements throughout various aspects.

한편, 본 명세서에서 하나의 도면 내에서 개별적으로 설명되는 기술적 특징은 개별적으로 구현될 수도 있고, 동시에 구현될 수도 있다.Meanwhile, technical features described individually in one drawing in this specification may be implemented individually or simultaneously.

이하에서는, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자가 본 발명을 용이하게 실시할 수 있도록 하기 위하여, 본 발명의 여러 실시예에 관하여 첨부된 도면을 참조하여 상세히 설명하기로 한다.Hereinafter, several embodiments of the present invention will be described in detail with reference to the attached drawings in order to enable those skilled in the art to easily practice the present invention.

도 1은 음성 합성 시스템의 동작을 개략적으로 나타내는 도면이다. 1 is a diagram schematically showing the operation of a voice synthesis system.

음성 합성(Speech Synthesis) 시스템은 텍스트를 사람의 음성으로 변환하는 시스템이다. A speech synthesis system is a system that converts text into human voice.

예를 들어, 도 1의 음성 합성 시스템(100)는 인공 신경망(Artificial Neural Network) 기반의 음성 합성 시스템일 수 있다. 인공 신경망은 시냅스의 결합으로 네트워크를 형성한 인공 뉴런이 학습을 통해 시냅스의 결합 세기를 변화시켜, 문제 해결 능력을 가지는 모델 전반을 의미한다. For example, the voice synthesis system 100 of FIG. 1 may be a voice synthesis system based on an artificial neural network. Artificial neural network refers to an overall model in which artificial neurons, which form a network by combining synapses, change the strength of synaptic connections through learning and have problem-solving capabilities.

음성 합성 시스템(100)는 PC(personal computer), 서버 디바이스, 모바일 디바이스, 임베디드 디바이스 등의 다양한 종류의 디바이스들로 구현될 수 있고, 구체적인 예로서 인공 신경망를 이용하여 음성 합성을 수행하는 스마트폰, 태블릿 디바이스, AR(Augmented Reality) 디바이스, IoT(Internet of Things) 디바이스, 자율주행 자동차, 로보틱스, 의료기기, 전자책 단말기 및 네비게이션 등에 해당될 수 있으나, 이에 제한되지 않는다. The voice synthesis system 100 can be implemented with various types of devices such as personal computers (PCs), server devices, mobile devices, and embedded devices. Specific examples include smartphones and tablets that perform voice synthesis using an artificial neural network. This may apply to devices, AR (Augmented Reality) devices, IoT (Internet of Things) devices, self-driving cars, robotics, medical devices, e-readers, and navigation, but is not limited thereto.

나아가서, 음성 합성 시스템(100)는 위와 같은 디바이스에 탑재되는 전용 하드웨어 가속기(HW accelerator)에 해당될 수 있다. 또는, 음성 합성 시스템(100)는 인공 신경망의 구동을 위한 전용 모듈인 NPU(neural processing unit), TPU(Tensor Processing Unit), Neural Engine 등과 같은 하드웨어 가속기일 수 있으나, 이에 제한되지 않는다.Furthermore, the voice synthesis system 100 may correspond to a dedicated hardware accelerator (HW accelerator) mounted on the above device. Alternatively, the voice synthesis system 100 may be a hardware accelerator such as a neural processing unit (NPU), a tensor processing unit (TPU), or a neural engine, which are dedicated modules for driving an artificial neural network, but is not limited thereto.

도 1을 참고하면, 음성 합성 시스템(100)는 텍스트 입력과 특정 화자 정보를 수신할 수 있다. 예를 들어, 음성 합성 시스템(100)는 텍스트 입력으로써 도 1에 도시된 바와 같이 “Have a good day!”를 수신할 수 있고, 화자 정보 입력으로써 “화자 1”을 수신할 수 있다. Referring to FIG. 1, the speech synthesis system 100 can receive text input and specific speaker information. For example, the voice synthesis system 100 may receive “Have a good day!” as shown in FIG. 1 as a text input, and “Speaker 1” as speaker information input.

“화자 1”은 기 설정된 화자 1의 발화 특징을 나타내는 음성 신호 또는 음성 샘플에 해당할 수 있다. 예를 들어, 화자 정보는 음성 합성 시스템(100)에 포함된 통신부를 통해 외부 장치로부터 수신될 수 있다. 또는, 화자 정보는 음성 합성 시스템(100)의 사용자 인터페이스를 통해 사용자로부터 입력될 수 있고, 음성 합성 시스템(100)의 데이터 베이스에 미리 저장된 다양한 화자 정보들 중 하나로 선택될 수도 있으나, 이에 제한되는 것은 아니다.“Speaker 1” may correspond to a voice signal or voice sample representing the preset speech characteristics of Speaker 1. For example, speaker information may be received from an external device through a communication unit included in the voice synthesis system 100. Alternatively, speaker information may be input from the user through the user interface of the voice synthesis system 100, and may be selected as one of various speaker information pre-stored in the database of the voice synthesis system 100, but is not limited thereto. no.

음성 합성 시스템(100)는 입력으로 수신한 텍스트 입력과 특정 화자 정보에 기초하여 음성(speech)를 출력할 수 있다. 예를 들어, 음성 합성 시스템(100)는 “Have a good day!” 및 “화자 1”을 입력으로 수신하여, 화자 1의 발화 특징이 반영된 “Have a good day!”에 대한 음성을 출력할 수 있다. 화자 1의 발화 특징은 화자 1의 음성, 운율, 음높이 및 감정 등 다양한 요소들 중 적어도 하나를 포함할 수 있다. 즉, 출력되는 음성은 화자 1이 “Have a good day!”를 자연스럽게 발음하는 듯한 음성일 수 있다. 음성 합성 시스템(100)의 구체적인 동작은 도 2 내지 도 4에서 후술한다. The speech synthesis system 100 can output speech based on text input received as input and specific speaker information. For example, speech synthesis system 100 may say “Have a good day!” and “Speaker 1” can be received as input, and a voice for “Have a good day!” reflecting the speech characteristics of Speaker 1 can be output. Speaker 1's speech characteristics may include at least one of various elements such as Speaker 1's voice, prosody, pitch, and emotion. In other words, the voice output may be a voice that seems to be Speaker 1 naturally pronouncing “Have a good day!” The specific operation of the voice synthesis system 100 will be described later with reference to FIGS. 2 to 4.

도 2는 음성 합성 시스템의 일 실시예를 나타내는 도면이다. 도 2의 음성 합성 시스템(200)는 도 1의 음성 합성 시스템(100)와 동일할 수 있다.Figure 2 is a diagram showing an embodiment of a voice synthesis system. The voice synthesis system 200 of FIG. 2 may be the same as the voice synthesis system 100 of FIG. 1 .

도 2를 참조하면, 음성 합성 시스템(200)은 화자 인코더(210), 합성부(220) 및 보코더(230)를 포함할 수 있다. 한편, 도 2에 도시된 음성 합성 시스템(200)에는 일 실시예와 관련된 구성요소들만이 도시되어 있다. 따라서, 음성 합성 시스템(200)에는 도 2에 도시된 구성요소들 외에 다른 범용적인 구성요소들이 더 포함될 수 있음은 당해 기술분야의 통상의 기술자에게 자명하다.Referring to FIG. 2, the voice synthesis system 200 may include a speaker encoder 210, a synthesis unit 220, and a vocoder 230. Meanwhile, in the voice synthesis system 200 shown in FIG. 2, only components related to one embodiment are shown. Accordingly, it is obvious to those skilled in the art that the voice synthesis system 200 may further include other general-purpose components in addition to the components shown in FIG. 2.

도 2의 음성 합성 시스템(200)은 화자 정보 및 텍스트(text)를 입력으로 수신하여 음성(speech)을 출력할 수 있다. The speech synthesis system 200 of FIG. 2 can receive speaker information and text as input and output speech.

예를 들어, 음성 합성 시스템(200)의 화자 인코더(210)는 화자 정보를 입력으로 수신하여 화자 임베딩 벡터(embedding vector)를 생성할 수 있다. 화자 정보는 화자의 음성 신호 또는 음성 샘플에 해당할 수 있다. 화자 인코더(210)는 화자의 음성 신호 또는 음성 샘플을 수신하여, 화자의 발화 특징을 추출할 수 있으며 이를 임베딩 벡터로 나타낼 수 있다. For example, the speaker encoder 210 of the speech synthesis system 200 may receive speaker information as input and generate a speaker embedding vector. Speaker information may correspond to the speaker's voice signal or voice sample. The speaker encoder 210 can receive the speaker's voice signal or voice sample, extract the speaker's speech characteristics, and represent this as an embedding vector.

화자의 발화 특징은 발화 속도, 휴지 구간, 음높이, 음색, 운율, 억양 또는 감정 등 다양한 요소들 중 적어도 하나를 포함할 수 있다. 즉, 화자 인코더(210)는 화자 정보에 포함된 불연속적인 데이터 값을 연속적인 숫자로 구성된 벡터로 나타낼 수 있다. 예를 들어, 화자 인코더(210)는 pre-net, CBHG 모듈, DNN(Deep Neural Network), CNN(convolutional neural network), RNN(Recurrent Neural Network), LSTM(Long Short-Term Memory Network), BRDNN(Bidirectional Recurrent Deep Neural Network) 등 다양한 인공 신경망 모델 중 적어도 하나 또는 둘 이상의 조합에 기반하여 화자 임베딩 벡터를 생성할 수 있다. A speaker's speech characteristics may include at least one of various factors such as speech rate, pause, pitch, timbre, prosody, intonation, or emotion. That is, the speaker encoder 210 can represent discontinuous data values included in speaker information as a vector composed of continuous numbers. For example, the speaker encoder 210 includes a pre-net, a CBHG module, a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a long short-term memory network (LSTM), and a BRDNN ( A speaker embedding vector can be generated based on at least one or a combination of two or more of various artificial neural network models such as Bidirectional Recurrent Deep Neural Network).

예를 들어, 음성 합성 시스템(200)의 합성부(220)는 텍스트(text) 및 화자의 발화 특징을 나타내는 임베딩 벡터를 입력으로 수신하여 스펙트로그램(spectrogram)을 출력할 수 있다. For example, the synthesis unit 220 of the speech synthesis system 200 may receive text and an embedding vector representing the speaker's speech characteristics as input and output a spectrogram.

도 3은 음성 합성 시스템의 합성부의 일 실시예를 나타내는 도면이다. 도 3의 합성부(300)는 도 2의 합성부(220)와 동일할 수 있다. Figure 3 is a diagram showing an embodiment of a synthesis unit of a voice synthesis system. The synthesis unit 300 of FIG. 3 may be the same as the synthesis unit 220 of FIG. 2 .

도 3을 참조하면, 음성 합성 시스템(200)의 합성부(300)는 텍스트 인코더 및 디코더를 포함할 수 있다. 한편, 합성부(300)에는 도 3에 도시된 구성요소들 외에 다른 범용적인 구성요소들이 더 포함될 수 있음은 당해 기술분야의 통상의 기술자에게 자명하다.Referring to FIG. 3, the synthesis unit 300 of the speech synthesis system 200 may include a text encoder and decoder. Meanwhile, it is obvious to those skilled in the art that the synthesis unit 300 may further include other general-purpose components in addition to the components shown in FIG. 3.

화자의 발화 특징을 나타내는 임베딩 벡터는 상술한 바와 같이 화자 인코더(210)로부터 생성될 수 있으며, 합성부(300)의 인코더 또는 디코더는 화자 인코더(210)로부터 화자의 발화 특징을 나타내는 임베딩 벡터를 수신할 수 있다. An embedding vector representing the speaker's speech characteristics may be generated from the speaker encoder 210 as described above, and the encoder or decoder of the synthesis unit 300 receives the embedding vector representing the speaker's speech characteristics from the speaker encoder 210. can do.

합성부(300)의 텍스트 인코더는 텍스트를 입력으로 수신하여 텍스트 임베딩 벡터를 생성할 수 있다. 텍스트는 특정 자연 언어로 된 문자들의 시퀀스를 포함할 수 있다. 예를 들어, 문자들의 시퀀스는 알파벳 문자들, 숫자들, 문장 부호들 또는 기타 특수 문자들을 포함할 수 있다. The text encoder of the synthesis unit 300 may receive text as input and generate a text embedding vector. Text may contain sequences of characters in a particular natural language. For example, a sequence of characters may include alphabetic characters, numbers, punctuation marks, or other special characters.

텍스트 인코더는 입력된 텍스트를 자모 단위, 글자 단위 또는 음소 단위로 분리할 수 있고, 분리된 텍스트를 인공 신경망 모델에 입력할 수 있다. 예를 들어, 텍스트 인코더는 pre-net, CBHG 모듈, DNN, CNN, RNN, LSTM, BRDNN 등 다양한 인공 신경망 모델 중 적어도 하나 또는 둘 이상의 조합에 기반하여 텍스트 임베딩 벡터를 생성할 수 있다. The text encoder can separate the input text into alphabet units, letter units, or phoneme units, and input the separated text into an artificial neural network model. For example, the text encoder may generate a text embedding vector based on at least one or a combination of two or more of various artificial neural network models such as pre-net, CBHG module, DNN, CNN, RNN, LSTM, and BRDNN.

또는, 텍스트 인코더는 입력된 텍스트를 복수의 짧은 텍스트들로 분리하고, 짧은 텍스트들 각각에 대하여 복수의 텍스트 임베딩 벡터들을 생성할 수도 있다. Alternatively, the text encoder may separate the input text into a plurality of short texts and generate a plurality of text embedding vectors for each of the short texts.

합성부(300)의 디코더는 화자 인코더(210)로부터 화자 임베딩 벡터 및 텍스트 임베딩 벡터를 입력으로 수신할 수 있다. 또는, 합성부(300)의 디코더는 화자 인코더(210)로부터 화자 임베딩 벡터를 입력으로 수신하고, 텍스트 인코더로부터 텍스트 임베딩 벡터를 입력으로 수신할 수 있다. The decoder of the synthesis unit 300 may receive a speaker embedding vector and a text embedding vector as input from the speaker encoder 210. Alternatively, the decoder of the synthesis unit 300 may receive a speaker embedding vector as an input from the speaker encoder 210 and a text embedding vector as an input from the text encoder.

디코더는 화자 임베딩 벡터와 텍스트 임베딩 벡터를 인공 신경망 모델에 입력하여, 입력된 텍스트에 대응되는 스펙트로그램을 생성할 수 있다. 즉, 디코더는 화자의 발화 특징이 반영된 입력 텍스트에 대한 스펙트로그램을 생성할 수 있다. 예를 들면, 스펙트로그램은 멜 스펙트로그램(mel-spectrogram)에 해당할 수 있으나, 이에 제한되는 것은 아니다.The decoder can input the speaker embedding vector and the text embedding vector into the artificial neural network model to generate a spectrogram corresponding to the input text. In other words, the decoder can generate a spectrogram for the input text that reflects the speaker's speech characteristics. For example, the spectrogram may correspond to a mel-spectrogram (mel-spectrogram), but is not limited thereto.

스펙트로그램은 음성 신호의 스펙트럼을 시각화하여 그래프로 표현한 것이다. 스펙트로그램의 x축은 시간, y축은 주파수를 나타내며 각 시간당 주파수가 가지는 값을 값의 크기에 따라 색으로 표현할 수 있다. 스펙토그램은 연속적으로 주어지는 음성 신호에 STFT(Short-time Fourier transform)를 수행한 결과물일 수 있다. A spectrogram is a visualization of the spectrum of a voice signal and expressed as a graph. The x-axis of the spectrogram represents time and the y-axis represents frequency, and the value of each time frequency can be expressed in color according to the size of the value. A spectogram may be the result of performing STFT (Short-time Fourier transform) on continuously given voice signals.

STFT는 음성 신호를 일정한 길이의 구간들로 나누고 각 구간에 대하여 푸리에 변환을 적용하는 방법이다. 이 때, 음성 신호에 STFT를 수행한 결과물은 복소수 값이기 때문에, 복소수 값에 절대값을 취해 위상(phase) 정보를 소실시키고 크기(magnitude) 정보만을 포함하는 스펙트로그램을 생성할 수 있다. STFT is a method of dividing a voice signal into sections of a certain length and applying Fourier transform to each section. At this time, since the result of performing STFT on the voice signal is a complex value, the absolute value of the complex value is taken, phase information is lost, and a spectrogram containing only magnitude information can be generated.

한편, 멜 스펙트로그램은 스펙트로그램의 주파수 간격을 멜 스케일(Mel Scale)로 재조정한 것이다. 사람의 청각기관은 고주파수(high frequency) 보다 저주파수(low frequency) 대역에서 더 민감하며, 이러한 특성을 반영해 물리적인 주파수와 실제 사람이 인식하는 주파수의 관계를 표현한 것이 멜 스케일이다. 멜 스펙트로그램은 멜 스케일에 기반한 필터 뱅크(filter bank)를 스펙트로그램에 적용하여 생성될 수 있다.Meanwhile, the Mel spectrogram is a re-adjustment of the frequency interval of the spectrogram into Mel Scale. The human hearing system is more sensitive to low frequencies than to high frequencies, and the Mel scale reflects this characteristic and expresses the relationship between physical frequencies and frequencies perceived by humans. A Mel spectrogram can be generated by applying a filter bank based on the Mel scale to the spectrogram.

한편, 도 3에는 도시되어 있지 않으나, 합성부(300)는 어텐션 얼라이먼트를 생성하기 위한 어텐션 모듈을 더 포함할 수 있다. 어텐션 모듈은 디코더의 특정 타임 스텝(time-step)의 출력이 인코더의 모든 타임 스텝의 출력 중 어떤 출력과 가장 연관이 있는가를 학습하는 모듈이다. 어텐션 모듈을 이용하여 더 고품질의 스펙트로그램 또는 멜 스펙트로그램을 출력할 수 있다. Meanwhile, although not shown in FIG. 3, the synthesis unit 300 may further include an attention module for generating attention alignment. The attention module is a module that learns which output of a specific time step of the decoder is most related to the output of all time steps of the encoder. Using the attention module, a higher quality spectrogram or mel spectrogram can be output.

도 4는 합성부를 통해 멜 스펙트로그램을 출력하는 일 실시예를 나타내는 도면이다. 도 4의 합성부(400)는 도 3의 합성부(300)와 동일할 수 있다.Figure 4 is a diagram showing an embodiment of outputting a Mel spectrogram through a synthesis unit. The synthesis unit 400 of FIG. 4 may be the same as the synthesis unit 300 of FIG. 3 .

도 4를 참조하면, 합성부(400)는 입력 텍스트들과 이에 대응되는 화자 임베딩 벡터들을 포함하는 리스트를 수신할 수 있다. 예를 들어, 합성부(400)는 'first sentence'라는 입력 텍스트와 이에 대응되는 화자 임베딩 벡터인 embed_voice1, 'second sentence'라는 입력 텍스트와 이에 대응되는 화자 임베딩 벡터인 embed_voice2, 'third sentence'라는 입력 텍스트와 이에 대응되는 화자 임베딩 벡터인 embed_voice3을 포함하는 리스트(410)를 입력으로 수신할 수 있다.Referring to FIG. 4, the synthesis unit 400 may receive a list including input texts and speaker embedding vectors corresponding to them. For example, the synthesis unit 400 inputs the input text 'first sentence', the corresponding speaker embedding vector, embed_voice1, the input text 'second sentence', the corresponding speaker embedding vector, embed_voice2, and the 'third sentence' input. A list 410 containing text and the corresponding speaker embedding vector, embed_voice3, can be received as input.

합성부(400)는 수신한 리스트(410)에 포함된 입력 텍스트의 개수만큼의 멜 스펙트로그램(420)을 생성할 수 있다. 도 4를 참고하면, 'first sentence', 'second sentence' 및 'third sentence' 각각의 입력 텍스트에 대응하는 멜 스펙트로그램들이 생성된 것을 알 수 있다.The synthesis unit 400 may generate a Mel spectrogram 420 equal to the number of input texts included in the received list 410. Referring to FIG. 4, it can be seen that Mel spectrograms corresponding to each input text of 'first sentence', 'second sentence', and 'third sentence' were generated.

또는, 합성부(400)는 입력 텍스트의 개수만큼의 멜 스펙트로그램(420) 및 어텐션 얼라인먼트(attention alignment)을 함께 생성할 수 있다. 도 4에는 도시되어 있지 않으나, 예를 들어 'first sentence', 'second sentence' 및 'third sentence' 각각의 입력 텍스트에 대응하는 어텐션 얼라인먼트가 추가적으로 생성될 수 있다. 또는, 합성부(400)는 입력 텍스트들 각각에 대하여 복수의 멜 스펙트로그램 및 복수의 어텐션 얼라인먼트를 생성할 수도 있다. Alternatively, the synthesis unit 400 may generate as many mel spectrograms 420 and attention alignment as the number of input texts. Although not shown in FIG. 4, for example, attention alignment corresponding to each input text of 'first sentence', 'second sentence', and 'third sentence' may be additionally generated. Alternatively, the synthesis unit 400 may generate a plurality of mel spectrograms and a plurality of attention alignments for each of the input texts.

다시 도 2로 돌아와서, 음성 합성 시스템(200)의 보코더(230)는 합성부(220)에서 출력된 스펙트로그램을 실제 음성(speech)으로 생성할 수 있다. 상술한 바와 같이 출력된 스펙트로그램은 멜 스펙트로그램일 수 있다. Returning to FIG. 2, the vocoder 230 of the voice synthesis system 200 can generate the spectrogram output from the synthesis unit 220 as actual speech. As described above, the output spectrogram may be a Mel spectrogram.

일 실시예에서, 보코더(230)는 ISFT(Inverse Short-Time Fourier Transform)를 이용하여 합성부(220)에서 출력된 스펙트로그램을 실제 음성 신호로 생성할 수 있다. 스펙트로그램 또는 멜 스펙트로그램은 위상 정보를 포함하고 있지 않으므로, ISFT를 이용하여 음성 신호를 생성하는 경우 스펙트로그램 또는 멜 스펙트로그램의 위상 정보는 고려되지 않는다. In one embodiment, the vocoder 230 may generate the spectrogram output from the synthesis unit 220 as an actual voice signal using an inverse short-time Fourier transform (ISFT). Since the spectrogram or Mel spectrogram does not contain phase information, when generating a voice signal using ISFT, the phase information of the spectrogram or Mel spectrogram is not considered.

다른 실시예에서, 보코더(230)는 그리핀-림 알고리즘(Griffin-Lim algorithm)을 사용하여 합성부(220)에서 출력된 스펙트로그램을 실제 음성 신호로 생성할 수 있다. 그리핀-림 알고리즘은 스펙트로그램 또는 멜 스펙트로그램의 크기 정보에서 위상 정보 추정하는 알고리즘이다. In another embodiment, the vocoder 230 may generate the spectrogram output from the synthesis unit 220 as an actual voice signal using the Griffin-Lim algorithm. The Griffin-Rim algorithm is an algorithm that estimates phase information from the size information of a spectrogram or mel spectrogram.

또는, 보코더(230)는 예를 들어 뉴럴 보코더(neural vocoder)에 기초하여 합성부(220)에서 출력된 스펙트로그램을 실제 음성 신호로 생성할 수 있다. Alternatively, the vocoder 230 may generate the spectrogram output from the synthesis unit 220 as an actual voice signal based on, for example, a neural vocoder.

뉴럴 보코더는 스펙트로그램 또는 멜 스펙트로그램을 입력으로 받아 음성 신호를 생성하는 인공 신경망 모델이다. 뉴럴 보코더는 스펙트로그램 또는 멜 스펙트로그램과 음성 신호 사이의 관계를 다량의 데이터를 통해 학습할 수 있고, 이를 통해 고품질의 실제 음성 신호를 생성할 수 있다. A neural vocoder is an artificial neural network model that receives a spectrogram or mel spectrogram as input and generates a voice signal. A neural vocoder can learn the relationship between a spectrogram or mel spectrogram and a voice signal through a large amount of data, and through this, can generate high-quality real voice signals.

뉴럴 보코더는 WaveNet, Parallel WaveNet, WaveRNN, WaveGlow 또는 MelGAN 등과 같은 인공 신경망 모델에 기반한 보코더에 해당할 수 있으나, 이에 제한되는 것은 아니다. A neural vocoder may correspond to a vocoder based on an artificial neural network model such as WaveNet, Parallel WaveNet, WaveRNN, WaveGlow, or MelGAN, but is not limited thereto.

예를 들어, WaveNet 보코더는 여러 층의 dilated causal convolution layer들로 구성되며, 음성 샘플들 간의 순차적 특징을 이용하는 자기회귀(Autoregressive) 모델이다. WaveRNN 보코더는 WaveNet의 여러 층의 dilated causal convolution layer를 GRU(Gated Recurrent Unit)로 대체한 자기회귀 모델이다. WaveGlow 보코더는 가역성(invertible)을 지닌 변환 함수를 이용하여 스펙트로그램 데이터셋(x)으로부터 가우시안 분포와 같이 단순한 분포가 나오도록 학습할 수 있다. WaveGlow 보코더는 학습이 끝난 후 변환 함수의 역함수를 이용하여 가우시안 분포의 샘플로부터 음성 신호를 출력할 수 있다. For example, the WaveNet vocoder is composed of several dilated causal convolution layers and is an autoregressive model that uses sequential features between speech samples. The WaveRNN vocoder is an autoregressive model that replaces WaveNet's multiple layers of dilated causal convolution layers with a GRU (Gated Recurrent Unit). WaveGlow vocoder can learn to produce a simple distribution such as Gaussian distribution from the spectrogram dataset (x) using an invertible transformation function. After learning, the WaveGlow vocoder can output voice signals from samples of Gaussian distribution using the inverse function of the conversion function.

도 5는 음성 합성 시스템의 일 실시예를 나타내는 도면이다. 도 5의 음성 합성 시스템(500)는 도 1의 음성 합성 시스템(100) 또는 도 2의 음성 합성 시스템(200)와 동일할 수 있다.Figure 5 is a diagram showing an embodiment of a voice synthesis system. The voice synthesis system 500 of FIG. 5 may be the same as the voice synthesis system 100 of FIG. 1 or the voice synthesis system 200 of FIG. 2.

도 5를 참조하면, 음성 합성 시스템(500)은 화자 인코더(510), 합성부(520), 보코더(530) 및 음성 후처리부(540)를 포함할 수 있다. 한편, 도 5에 도시된 음성 합성 시스템(500)에는 일 실시예와 관련된 구성요소들만이 도시되어 있다. 따라서, 음성 합성 시스템(500)에는 도 5에 도시된 구성요소들 외에 다른 범용적인 구성요소들이 더 포함될 수 있음은 당해 기술분야의 통상의 기술자에게 자명하다.Referring to FIG. 5 , the voice synthesis system 500 may include a speaker encoder 510, a synthesis unit 520, a vocoder 530, and a voice post-processing unit 540. Meanwhile, only components related to one embodiment are shown in the voice synthesis system 500 shown in FIG. 5. Accordingly, it is obvious to those skilled in the art that the voice synthesis system 500 may further include other general-purpose components in addition to the components shown in FIG. 5.

도 5의 화자 인코더(510), 합성부(520) 및 보코더(530) 각각은 상술한 도 2의 화자 인코더(210), 합성부(220) 및 보코더(230)와 동일할 수 있다. 따라서, 도 5의 화자 인코더(510), 합성부(520) 및 보코더(530)에 대한 설명은 생략한다. Each of the speaker encoder 510, synthesis unit 520, and vocoder 530 of FIG. 5 may be the same as the speaker encoder 210, synthesis unit 220, and vocoder 230 of FIG. 2 described above. Therefore, descriptions of the speaker encoder 510, synthesis unit 520, and vocoder 530 of FIG. 5 are omitted.

상술한 바와 같이, 합성부(520)는 텍스트(text) 및 화자 인코더(510)로부터 수신한 화자 임베딩 벡터를 입력으로 하여 스펙트로그램 또는 멜 스펙트로그램을 생성할 수 있다. 또한, 보코더(530)는 스펙트로그램 또는 멜 스펙트로그램을 입력으로 하여 실제 음성(speech)을 생성할 수 있다. As described above, the synthesis unit 520 can generate a spectrogram or mel spectrogram using text and the speaker embedding vector received from the speaker encoder 510 as input. Additionally, the vocoder 530 can generate actual speech by using a spectrogram or mel spectrogram as input.

도 5의 음성 후처리부(540)는 보코더(530)에서 생성된 음성을 입력으로 수신하여 노이즈(noise) 제거, 오디오 스트레칭(audio stretching) 또는 피치 변경(pitch shifting) 등의 후처리 작업을 수행할 수 있다. 음성 후처리부(540)는 입력된 음성에 후처리 작업을 수행하여 사용자에게 최종적으로 들려줄 보정된 음성을 생성할 수 있다. The voice post-processing unit 540 in FIG. 5 receives the voice generated by the vocoder 530 as an input and performs post-processing tasks such as noise removal, audio stretching, or pitch shifting. You can. The voice post-processing unit 540 may perform post-processing on the input voice to generate a corrected voice that will be finally heard by the user.

예를 들어, 음성 후처리부(540)는 페이즈 보코더(phase vocoder)에 해당할 수 있으나, 이에 제한되는 것은 아니다. 페이즈 보코더는 위상 정보를 이용하여 음성의 주파수 영역 및 시간 영역을 조절할 수 있는 보코더에 해당한다.For example, the voice post-processing unit 540 may correspond to a phase vocoder, but is not limited thereto. A phase vocoder corresponds to a vocoder that can adjust the frequency domain and time domain of a voice using phase information.

페이즈 보코더는 입력된 음성 신호에 단시간 푸리에 변환(Short-time Fourier transform, STFT)를 수행하여, 시간 도메인의 음성 신호를 시간-주파수 도메인의 음성 신호로 변환할 수 있다. 도 2 에서 상술한 바와 같이 STFT는 음성 신호를 짧은 시간의 여러 구간들로 나누고 각 구간들에 대해 푸리에 변환을 수행하므로, 시간에 따라 변화하는 주파수 특성을 확인할 수 있다. The phase vocoder can convert a voice signal in the time domain into a voice signal in the time-frequency domain by performing a short-time Fourier transform (STFT) on the input voice signal. As described above in FIG. 2, STFT divides the voice signal into several short-time sections and performs Fourier transform on each section, so that frequency characteristics that change with time can be confirmed.

또는, 페이즈 보코더는 변환된 시간-주파수 도메인의 음성 신호는 복소수 값을 가지므로, 복소수 값에 절대값을 취해 크기 정보만을 포함하는 스펙트로그램을 생성할 수 있다. 또는, 페이즈 보코더는 스펙트로그램의 주파수 간격을 멜 스케일로 재조정하여 멜 스펙트로그램을 생성할 수도 있다. Alternatively, since the converted voice signal in the time-frequency domain has a complex value, the phase vocoder can generate a spectrogram containing only size information by taking the absolute value of the complex value. Alternatively, the phase vocoder may generate a Mel spectrogram by readjusting the frequency interval of the spectrogram to the Mel scale.

페이즈 보코더는 변환된 시간-주파수 도메인의 음성 신호 또는 스펙트로그램을 이용하여 노이즈 제거, 오디오 스트레칭 또는 피치 변경 등의 후처리 작업을 수행할 수 있다. The phase vocoder can perform post-processing tasks such as noise removal, audio stretching, or pitch change using the converted time-frequency domain voice signal or spectrogram.

도 6은 음성 신호에 단시간 푸리에 변환(Short-time Fourier transform)를 수행하는 일 실시예를 나타내는 도면이다. Figure 6 is a diagram showing an embodiment of performing short-time Fourier transform on a voice signal.

도 6을 참고하면, 음성 후처리부(540)는 시간 도메인의 음성 신호를 일정한 윈도우 길이(window length)를 갖는 구간으로 나누고, 각 구간에 대하여 푸리에 변환을 수행할 수 있다. 이에 따라. 각 구간에 대하여 변환된 시간-주파수 도메인의 음성 신호 또는 스펙트로그램을 생성할 수 있다. 도 6은 각 구간에 대하여 푸리에 변환을 수행하여 스펙트로그램이 생성된 것을 나타낸다. 이 때, 스펙트로그램은 멜 스펙트로그램에 해당할 수도 있다. 한편, 윈도우 길이는 푸리에 변환을 수행할 샘플들의 개수를 의미하는 FFT 사이즈(Fast Fourier Transform size)와 동일한 값으로 설정될 수 있으나, 이에 제한되는 것은 아니다.Referring to FIG. 6, the voice post-processing unit 540 may divide the voice signal in the time domain into sections with a certain window length and perform Fourier transform on each section. Accordingly. For each section, a converted time-frequency domain voice signal or spectrogram can be generated. Figure 6 shows that a spectrogram is generated by performing Fourier transform on each section. At this time, the spectrogram may correspond to a mel spectrogram. Meanwhile, the window length may be set to the same value as the FFT size (Fast Fourier Transform size), which means the number of samples to perform Fourier transformation, but is not limited to this.

한편, 주파수 해상도(resolution)과 시간 해상도 간의 트레이드 오프(trade off) 관계를 고려하여, 일정한 윈도우 길이(window length)를 갖는 구간들이 겹치도록 홉 길이(hop length)를 설정할 수 있다. Meanwhile, considering the trade-off relationship between frequency resolution and time resolution, the hop length can be set so that sections with a constant window length overlap.

예를 들어, 샘플링 레이트(sampling rate)의 값이 24000이고, 윈도우 길이(window length)가 0.05초인 경우에는, 각 구간에 대하여 1200개의 샘플들을 이용하여 푸리에 변환을 수행할 수 있다. 또한, 홉 길이(hop length)가 0.125초인 경우에는, 제 1 윈도우 길이를 갖는 구간들 사이의 길이는 0.125초에 해당할 수 있다.For example, if the sampling rate is 24000 and the window length is 0.05 seconds, Fourier transform can be performed using 1200 samples for each section. Additionally, when the hop length is 0.125 seconds, the length between sections having the first window length may correspond to 0.125 seconds.

페이즈 보코더는 상술한 바와 같이 생성된 스펙트로그램에 후처리 작업을 수행한 후, 역 단시간 푸리에 변환(Inverse Short-time Fourier transform)를 이용하여 최종 음성을 출력할 수 있다. 또는, 페이즈 보코더는 상술한 바와 같이 생성된 스펙트로그램에 후처리 작업을 수행한 후, 그리핀-림 알고리즘(Griffin-Lim algorithm)을 사용하여 최종 음성을 출력할 수도 있다. The phase vocoder can perform post-processing on the spectrogram generated as described above and then output the final voice using an inverse short-time Fourier transform. Alternatively, the phase vocoder may perform post-processing on the generated spectrogram as described above and then output the final voice using the Griffin-Lim algorithm.

도 7은 음성 후처리부에서 속도를 변경하는 일 실시예를 나타내는 도면이다. Figure 7 is a diagram showing an embodiment of changing the speed in the voice post-processing unit.

상술한 도 5의 음성 처리부(540)는 보코더(530)에서 생성한 음성의 속도를 변경할 수 있으며, 이는 오디오 스트레칭(audio stretching)이라고도 지칭된다. 오디오 스트레칭은 음성 신호의 피치(pitch)에는 영향을 주지 않으면서 음성 신호의 속도 또는 재생 시간을 변경하는 것이다.The voice processing unit 540 of FIG. 5 described above can change the speed of the voice generated by the vocoder 530, which is also referred to as audio stretching. Audio stretching is changing the speed or playback time of an audio signal without affecting the pitch of the audio signal.

음성 처리부(540)는 보코더(530)에서 생성한 음성으로부터 스펙트로그램을 생성하고, 생성된 스펙트토그램을 다시 음성으로 복원하는 과정에서 음성의 속도를 변경할 수 있다. The voice processing unit 540 may generate a spectrogram from the voice generated by the vocoder 530 and change the speed of the voice in the process of restoring the generated spectrogram back to voice.

*도 7을 참고하면, 음성 처리부(540)는 보코더(530)에서 생성한 제 1 음성 신호(710)에 단시간 푸리에 변환을 수행할 수 있다. 도 7의 스펙트로그램(720)은 보코더(530)에서 생성한 제 1 음성 신호(710)에 단시간 푸리에 변환을 수행하여 생성된 스펙트로그램에 해당할 수 있다. 예를 들어, 도 7의 스펙트로그램(720)은 멜 스펙트로그램에 해당할 수도 있다. * Referring to FIG. 7, the voice processor 540 may perform a short-time Fourier transform on the first voice signal 710 generated by the vocoder 530. The spectrogram 720 of FIG. 7 may correspond to a spectrogram generated by performing a short-time Fourier transform on the first voice signal 710 generated by the vocoder 530. For example, the spectrogram 720 of FIG. 7 may correspond to a Mel spectrogram.

예를 들어, 음성 후처리부(540)는 보코더(530)에서 생성한 제 1 음성 신호(710)에서 제 1 홉 길이(hop length)를 기반으로 제 1 윈도우 길이(window length)를 갖는 구간들을 설정할 수 있다. 제 1 홉 길이는 제 1 윈도우 길이를 갖는 구간들 사이의 길이에 해당할 수 있다. For example, the voice post-processing unit 540 sets sections having a first window length based on the first hop length in the first voice signal 710 generated by the vocoder 530. You can. The first hop length may correspond to the length between sections having the first window length.

예를 들어 도 7을 참고하면, 샘플링 레이트의 값이 24000인 경우, 제 1 윈도우 길이는 0.05초일 수 있고, 제 1 홉 길이는 0.025초일 수 있다. 이러한 경우, 음성 후처리부(540)는 각 구간에 대하여 1200개의 샘플들을 이용하여 푸리에 변환을 수행할 수 있다. For example, referring to FIG. 7, when the value of the sampling rate is 24000, the first window length may be 0.05 seconds, and the first hop length may be 0.025 seconds. In this case, the voice post-processing unit 540 may perform Fourier transform using 1200 samples for each section.

음성 후처리부(540)는 상술한 바와 같이 분할한 구간들에 대하여 단시간 푸리에 변환을 수행하여 시간-주파수 도메인의 음성 신호를 생성할 수 있고, 시간-주파수 도메인의 음성 신호를 기반으로 스펙트로그램(720)을 생성할 수 있다. 구체적으로, 시간-주파수 도메인의 음성 신호는 복소수 값을 가지므로, 복소수 값에 절대값을 취해 위상 정보를 소실시키고 크기 정보만을 포함하는 스펙트로그램(720)을 생성할 수 있다. 이 때, 스펙트로그램(720)은 멜 스펙트로그램에 해당할 수도 있다.The voice post-processing unit 540 can generate a voice signal in the time-frequency domain by performing a short-time Fourier transform on the divided sections as described above, and a spectrogram (720) based on the voice signal in the time-frequency domain. ) can be created. Specifically, since the voice signal in the time-frequency domain has a complex value, the phase information can be lost by taking the absolute value of the complex value and a spectrogram 720 containing only size information can be generated. At this time, the spectrogram 720 may correspond to a Mel spectrogram.

한편, 음성 후처리부(540)는 보코더(530)에서 생성한 제 1 음성 신호(710)의 속도를 변경하기 위하여 배속율을 결정할 수 있다. 예를 들어, 보코더(530)에서 생성한 제 1 음성 신호(710)의 속도보다 2배 빠른 음성을 생성하기 위해서는, 배속율은 2로 결정될 수 있다.Meanwhile, the voice post-processing unit 540 may determine a speed ratio to change the speed of the first voice signal 710 generated by the vocoder 530. For example, in order to generate a voice that is twice as fast as the speed of the first voice signal 710 generated by the vocoder 530, the speed ratio may be set to 2.

음성 후처리부(540)는 스펙트로그램(720)으로부터 제 2 홉 길이를 기반으로 제 2 윈도우 길이를 갖는 구간들의 음성 신호들을 생성할 수 있다. 예를 들어, 음성 후처리부(540)는 스펙트로그램(720)에 단시간 푸리에 변환 및 역 단시간 푸리에 변환(Inverse Short-time Fourier transform)을 반복적으로 수행하여 위상 정보를 추정할 수 있고, 추정한 위상 정보를 기반으로 상기 구간들의 음성 신호들을 생성할 수 있다. 음성 후처리부(540)는 상기 구간들의 음성 신호들을 기반으로 속도가 변경된 제 2 음성 신호(730)를 생성할 수 있다. The voice post-processing unit 540 may generate voice signals of sections having a second window length based on the second hop length from the spectrogram 720. For example, the voice post-processing unit 540 may estimate phase information by repeatedly performing short-time Fourier transform and inverse short-time Fourier transform on the spectrogram 720, and the estimated phase information. Based on , voice signals of the above sections can be generated. The voice post-processing unit 540 may generate a second voice signal 730 whose speed is changed based on the voice signals of the above sections.

음성 후처리부(540)는 제 1 음성 신호(710)의 속도를 변경하기 위하여 제 2 홉 길이에 대한 제 1 홉 길이의 비가 배속율과 같도록 설정할 수 있다. 예를 들어, 제 2 홉 길이는 기 설정된 값에 해당할 수 있고, 제 1 홉 길이는 제 2 홉 길이에 배속율을 곱한 값과 같도록 설정될 수 있다. 또는, 제 1 홉 길이는 기 설정된 값에 해당할 수 있고, 제 2 홉 길이가 제 1 홉 길이를 배속율로 나눈 값과 같도록 설정될 수 있다. 한편, 제 1 윈도우 길이 및 제 2 윈도우 길이는 서로 동일할 수 있으나, 이에 제한되는 것은 아니다. In order to change the speed of the first voice signal 710, the voice post-processing unit 540 may set the ratio of the first hop length to the second hop length to be equal to the double speed rate. For example, the second hop length may correspond to a preset value, and the first hop length may be set to be equal to the second hop length multiplied by the double speed rate. Alternatively, the first hop length may correspond to a preset value, and the second hop length may be set to be equal to the first hop length divided by the double speed rate. Meanwhile, the first window length and the second window length may be the same, but are not limited thereto.

예를 들어 도 7을 참고하면, 제 2 윈도우 길이는 제 1 윈도우 길이와 동일하게 0.05초이고, 제 2 홉 길이는 0.0125초일 수 있다. 도 7에서는 제 1 음성 신호(710)의 속도보다 2배 빠른 음성을 생성하는 과정을 도시한 것으로, 제 2 홉 길이에 대한 제 1 홉 길이의 비는 2와 같도록 설정된 것임을 알 수 있다. For example, referring to FIG. 7, the second window length may be 0.05 seconds, the same as the first window length, and the second hop length may be 0.0125 seconds. Figure 7 shows the process of generating a voice that is twice as fast as the speed of the first voice signal 710, and it can be seen that the ratio of the first hop length to the second hop length is set to be equal to 2.

음성 후처리부(540)는 제 2 홉 길이를 기반으로 제 2 윈도우 길이를 갖는 구간들의 음성 신호들을 기반으로 속도 및 피치가 변경된 제 2 음성 신호(730)를 생성할 수 있다. 보정된 음성 신호는 제 1 음성 신호(710)의 속도가 배속율만큼 변경된 음성 신호에 해당할 수 있다. 도 7을 참고하면, 제 1 음성 신호(710)의 속도보다 2배 빠른 제 2 음성 신호(730)이 생성되었음을 알 수 있다. The voice post-processing unit 540 may generate a second voice signal 730 whose speed and pitch are changed based on voice signals in sections having a second window length based on the second hop length. The corrected voice signal may correspond to a voice signal in which the speed of the first voice signal 710 is changed by the double speed rate. Referring to FIG. 7, it can be seen that the second voice signal 730 is generated at twice the speed of the first voice signal 710.

도 8은 음성 후처리부에서 피치(pitch)를 변경하는 일 실시예를 나타내는 도면이다.Figure 8 is a diagram showing an embodiment of changing the pitch in a voice post-processing unit.

상술한 도 5의 음성 처리부(540)는 보코더(530)에서 생성한 음성의 피치를 변경할 수 있으며, 이는 피치 쉬프팅(pitch shifting)이라고도 지칭된다. 피치 쉬프팅은 음성 신호의 속도 또는 재생 시간에는 영향을 주지 않으면서 음성 신호의 피치를 변경하는 것이다. The voice processing unit 540 of FIG. 5 described above can change the pitch of the voice generated by the vocoder 530, which is also referred to as pitch shifting. Pitch shifting is changing the pitch of a voice signal without affecting the speed or reproduction time of the voice signal.

음성 처리부(540)는 보코더(530)에서 생성한 음성으로부터 스펙트로그램을 생성하고, 생성된 스펙트토그램을 다시 음성으로 복원하는 과정에서 음성의 피치를 변경할 수 있다.The voice processing unit 540 may generate a spectrogram from the voice generated by the vocoder 530 and change the pitch of the voice in the process of restoring the generated spectrogram back to voice.

도 7에서 상술한 바와 마찬가지로, 음성 처리부(540)는 보코더(530)에서 생성한 제 1 음성 신호에 단시간 푸리에 변환을 수행하여 스펙트로그램 또는 멜 스펙트로그램을 생성할 수 있다. As described above in FIG. 7 , the voice processor 540 may perform a short-time Fourier transform on the first voice signal generated by the vocoder 530 to generate a spectrogram or Mel spectrogram.

예를 들어, 음성 후처리부(540)는 보코더(530)에서 제 1 홉 길이를 기반으로 제 1 윈도우 길이를 갖는 구간들을 설정할 수 있다. For example, the voice post-processing unit 540 may set sections having a first window length based on the first hop length in the vocoder 530.

예를 들어, 샘플링 레이트의 값이 24000인 경우, 제 1 윈도우 길이는 0.05초일 수 있고, 제 1 홉 길이는 0.0125초일 수 있다.For example, if the value of the sampling rate is 24000, the first window length may be 0.05 seconds, and the first hop length may be 0.0125 seconds.

음성 후처리부(540)는 분할한 구간들에 대하여 단시간 푸리에 변환을 수행하여 시간-주파수 도메인의 음성 신호를 생성할 수 있고, 시간-주파수 도메인의 음성 신호를 기반으로 스펙트로그램 또는 멜 스펙트로그램을 생성할 수 있다. The voice post-processing unit 540 can generate a voice signal in the time-frequency domain by performing a short-time Fourier transform on the divided sections, and generate a spectrogram or Mel spectrogram based on the voice signal in the time-frequency domain. can do.

한편, 음성 후처리부(540)는 제 1 음성 신호의 피치를 변경하기 위하여 피치 변경율을 결정할 수 있다. 예를 들어, 제 1 음성 신호의 피치보다 1.25배 높은 피치의 음성을 생성하기 위해서는, 피치 변경율은 1.25로 결정될 수 있다.Meanwhile, the voice post-processing unit 540 may determine a pitch change rate to change the pitch of the first voice signal. For example, to generate a voice with a pitch 1.25 times higher than the pitch of the first voice signal, the pitch change rate may be determined to be 1.25.

음성 후처리부(540)는 스펙트로그램으로부터 제 2 홉 길이를 기반으로 제 2 윈도우 길이를 갖는 구간들의 음성 신호들을 생성할 수 있다. 예를 들어, 음성 후처리부(540)는 스펙트로그램에 단시간 푸리에 변환 및 역 단시간 푸리에 변환을 반복적으로 수행하여 위상 정보를 추정할 수 있고, 추정한 위상 정보를 기반으로 상기 구간들의 음성 신호들을 생성할 수 있다. 음성 후처리부(540)는 음성 후처리부(540)는 상기 구간들의 음성 신호들을 기반으로 피치가 변경된 제 2 음성 신호를 생성할 수 있다.The voice post-processing unit 540 may generate voice signals in sections having a second window length based on the second hop length from the spectrogram. For example, the voice post-processing unit 540 may estimate phase information by repeatedly performing short-time Fourier transform and inverse short-time Fourier transform on the spectrogram, and generate voice signals of the sections based on the estimated phase information. You can. The voice post-processing unit 540 may generate a second voice signal with the pitch changed based on the voice signals of the above sections.

음성 후처리부(540)는 제 1 음성 신호의 피치를 변경하기 위하여 제 2 윈도우 길이에 대한 제 1 윈도우 길이의 비가 피치 변경율과 같도록 설정할 수 있다. 예를 들어, 제 1 윈도우 길이는 기 설정된 값에 해당할 수 있고, 제 2 윈도우 길이는 제 1 윈도우 길이를 피치 변경율로 나눈 값과 같도록 설정될 수 있다. 또는, 제 2 윈도우 길이는 기 설정된 값에 해당할 수 있고, 제 1 윈도우 길이는 제 2 윈도우 길이에 피치 변경율을 곱한 값과 같도록 설정될 수 있다. 한편, 제 1 홉 길이 및 제 2 홉 길이는 서로 동일할 수 있으나, 이에 제한되는 것은 아니다. In order to change the pitch of the first voice signal, the voice post-processing unit 540 may set the ratio of the first window length to the second window length to be equal to the pitch change rate. For example, the first window length may correspond to a preset value, and the second window length may be set to be equal to the first window length divided by the pitch change rate. Alternatively, the second window length may correspond to a preset value, and the first window length may be set to be equal to the second window length multiplied by the pitch change rate. Meanwhile, the first hop length and the second hop length may be the same, but are not limited thereto.

예를 들어, 도 8의 (b)는 보코더(530)에서 생성한 제 1 음성 신호 및 제 1 음성 신호에 샘플링 레이트의 값이 24000, 제 1 윈도우 길이가 0.05초, 제 1 홉 길이가 0.0125초인 단시간 푸리에 변환을 수행하여 생성된 스펙트로그램을 나타낸다. 생성된 스펙트로그램은 20hz간격으로 12000hz까지 601개의 주파수 배열을 가질 수 있다. For example, in (b) of FIG. 8, the first voice signal generated by the vocoder 530 and the first voice signal have a sampling rate of 24000, a first window length of 0.05 seconds, and a first hop length of 0.0125 seconds. Shows a spectrogram generated by performing a short-time Fourier transform. The generated spectrogram can have 601 frequency arrays up to 12000hz at 20hz intervals.

한편, 피치 변경율이 1.25인 경우, 9600hz이상의 주파수 성분은 피치 변경 후 12000hz가 되므로 9600hz 이상인 주파수 성분들은 소실될 수 있다. 따라서, 9600hz 이하인 주파수 성분들에 대해서만 피치 변경을 수행할 수 있으며, 20hz간격으로 9600hz까지는 481개의 주파수 배열을 가질 수 있다. 즉, 스펙트로그램으로부터 피치가 1.25배 보정된 음성 신호를 생성하는 경우, 481개의 주파수 배열만을 이용하기 위해 제 2 윈도우 길이는 제 1 윈도우 길이의 값을 피치 변경율 1.25로 나눈 값인 0.04초로 설정될 수 있다. 도 8의 (c)는 도 8의 (b)의 스펙트로그램에 대하여 0.0125초의 제 2 홉 길이를 기반으로 0.04초의 제 2 윈도우 길이를 갖는 구간들의 음성 신호들을 생성하고, 상기 구간들의 음성 신호들을 기반으로 피치가 1.25배 변경된 제 2 음성 신호를 나타낼 수 있다. Meanwhile, when the pitch change rate is 1.25, the frequency components above 9600hz become 12000hz after the pitch change, so the frequency components above 9600hz may be lost. Therefore, pitch change can be performed only for frequency components below 9600hz, and there can be 481 frequency arrays up to 9600hz at 20hz intervals. That is, when generating a voice signal whose pitch has been corrected by 1.25 times from the spectrogram, in order to use only 481 frequency arrays, the second window length can be set to 0.04 seconds, which is the value of the first window length divided by the pitch change rate of 1.25. there is. FIG. 8(c) generates voice signals in sections with a second window length of 0.04 seconds based on a second hop length of 0.0125 seconds with respect to the spectrogram in FIG. 8(b), and generates voice signals in sections with a second window length of 0.04 seconds. This can represent a second voice signal whose pitch has been changed by 1.25 times.

또는, 피치 변경율이 0.75인 경우에는, 601개의 주파수 배열의 크기를 801개로 늘리기 위해, 나머지 200개의 주파수 성분은 제로 패딩(zero padding)할 수 있다. 따라서, 제 2 윈도우 길이는 제 1 윈도우 길이의 값을 피치 변경율 0.75로 나눈 값으로 설정할 수 있다. 도 8의 (a)는 도 8의 (b)의 음성 신호의 피치가 0.75배 변경된 제 2 음성 신호를 나타낼 수 있다. Alternatively, when the pitch change rate is 0.75, the remaining 200 frequency components can be zero padded to increase the size of the 601 frequency array to 801. Therefore, the second window length can be set as the value of the first window length divided by the pitch change rate of 0.75. Figure 8 (a) may represent a second voice signal in which the pitch of the voice signal in Figure 8 (b) is changed by 0.75 times.

상술한 바와 같이, 보코더(530)에서 생성한 제 1 음성 신호의 속도를 보정하기 위해서는, 제 2 홉 길이에 대한 제 1 홉 길이의 비는 배속율의 값과 같도록 설정할 수 있다. 또한, 보코더(530)에서 생성한 제 1 음성 신호의 피치를 보정하기 위해서는, 제 2 윈도우 길이에 대한 제 1 윈도우 길이의 비는 피치 변경율의 값과 같도록 설정할 수 있다. As described above, in order to correct the speed of the first voice signal generated by the vocoder 530, the ratio of the first hop length to the second hop length can be set to be equal to the value of the double speed rate. Additionally, in order to correct the pitch of the first voice signal generated by the vocoder 530, the ratio of the first window length to the second window length can be set to be equal to the value of the pitch change rate.

이를 종합하여, 보코더(530)에서 생성한 제 1 음성 신호의 속도 및 피치를 동시에 보정할 수도 있다. 예를 들어, 제 2 홉 길이에 대한 제 1 홉 길이의 비는 배속율의 값과 같고, 제 2 윈도우 길이에 대한 제 1 윈도우 길이의 비는 피치 변경율의 값과 같도록 설정하는 경우, 제 1 음성 신호의 속도를 배속율만큼 변경할 수 있고, 제 1 음성 신호의 피치를 피치 변경율만큼 변경할 수 있다. In combination with this, the speed and pitch of the first voice signal generated by the vocoder 530 can be corrected simultaneously. For example, when the ratio of the first hop length to the second hop length is set to be equal to the value of the double speed rate, and the ratio of the first window length to the second window length is set to be equal to the value of the pitch change rate, 1 The speed of the voice signal can be changed by the double speed rate, and the pitch of the first voice signal can be changed by the pitch change rate.

도 9는 음성 신호의 속도 및 피치를 변경하는 방법의 일 실시예를 도시한 흐름도이다.Figure 9 is a flowchart showing an embodiment of a method for changing the speed and pitch of a voice signal.

도 9를 참조하면, 단계 810에서 음성 후처리부는 제 1 음성 신호에서 제 1 홉 길이(hop length)를 기반으로 제 1 윈도우 길이(window length)를 갖는 구간들을 설정할 수 있다. Referring to FIG. 9, in step 810, the voice post-processing unit may set sections having a first window length based on the first hop length in the first voice signal.

단계 820에서 음성 후처리부는 구간들에 대하여 단시간 푸리에 변환(Short-time Fourier transform)을 수행하여 스펙트로그램을 생성할 수 있다. In step 820, the speech post-processing unit may generate a spectrogram by performing short-time Fourier transform on the sections.

예를 들어, 음성 후처리부는 각 구간에 대하여 푸리에 변환을 수행하여 시간-주파수 도메인의 음성 신호를 생성할 수 있다. 음성 후처리부는 시간-주파수 도메인의 음성 신호에 절대값을 취해 위상 정보를 소실시키고 크기 정보만을 포함하는 스펙트로그램을 생성할 수 있다.For example, the voice post-processing unit may perform Fourier transform on each section to generate a voice signal in the time-frequency domain. The speech post-processing unit can take the absolute value of the speech signal in the time-frequency domain, cancel out the phase information, and generate a spectrogram containing only size information.

단계 830에서 음성 후처리부는 제 1 음성 신호의 속도 및 피치를 변경하기 위한 배속율 및 피치 변경율을 결정할 수 있다. 예를 들어, 보코더에서 생성한 제 1 음성 신호의 속도보다 2배 빠른 음성을 생성하기 위해서는, 배속율은 2로 결정될 수 있다. 또는, 보코더에서 생성한 제 1 음성 신호의 피치보다 1.25배 높은 피치의 음성을 생성하기 위해서는, 피치 변경율은 1.25로 결정될 수 있다.In step 830, the voice post-processing unit may determine a speed and pitch change rate for changing the speed and pitch of the first voice signal. For example, in order to generate a voice that is twice as fast as the speed of the first voice signal generated by the vocoder, the speed ratio may be set to 2. Alternatively, in order to generate a voice with a pitch 1.25 times higher than the pitch of the first voice signal generated by the vocoder, the pitch change rate may be determined to be 1.25.

단계 840에서 음성 후처리부는 스펙트로그램으로부터 제 2 홉 길이를 기반으로 제 2 윈도우 길이를 갖는 구간들의 음성 신호들을 생성할 수 있다. In step 840, the voice post-processing unit may generate voice signals of sections having a second window length based on the second hop length from the spectrogram.

예를 들어, 음성 후처리부는 스펙트로그램에 단시간 푸리에 변환 및 역 단시간 푸리에 변환(Inverse Short-time Fourier transform)을 반복적으로 수행하여 위상 정보를 추정할 수 있다. 예를 들어, 음성 후처리부는 그리핀-림 알고리즘(Griffin-Lim algorithm)을 이용할 수 있으나, 이에 제한되는 것은 아니다. 음성 후처리부는 추정된 위상 정보를 기반으로, 제 2 홉 길이를 기반으로 제 2 윈도우 길이를 갖는 구간들의 음성 신호들를 생성할 수 있다.For example, the voice post-processing unit may estimate phase information by repeatedly performing short-time Fourier transform and inverse short-time Fourier transform on the spectrogram. For example, the voice post-processing unit may use the Griffin-Lim algorithm, but is not limited thereto. The voice post-processing unit may generate voice signals of sections having a second window length based on the estimated phase information and the second hop length.

단계 840에서 음성 후처리부는 구간들의 음성 신호들을 기반으로 속도 및 피치가 변경된 제 2 음성 신호를 생성할 수 있다.In step 840, the voice post-processing unit may generate a second voice signal whose speed and pitch are changed based on the voice signals of the sections.

예를 들어, 음성 후처리부는 구간들의 음성 신호들을 모두 합하여 최종적으로 제 1 음성 신호의 속도 및 피치가 각각 배속율 및 피치 변경율만큼 변경된 제 2 음성 신호를 생성할 수 있다. For example, the voice post-processing unit may add up all the voice signals of the sections and finally generate a second voice signal in which the speed and pitch of the first voice signal are changed by the speed rate and pitch change rate, respectively.

본 개시의 다양한 실시예들은 기기(machine) 의해 읽을 수 있는 저장 매체(storage medium)에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램))로서 구현될 수 있다. 예를 들면, 기기의 프로세서는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장매체는, 비일시적(non-transitory) 저장매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.Various embodiments of the present disclosure may be implemented as software (eg, a program) including one or more instructions stored in a storage medium that can be read by a machine. For example, the processor of the device may call at least one instruction among one or more instructions stored from a storage medium and execute it. This allows the device to be operated to perform at least one function according to the at least one instruction called. The one or more instructions may include code generated by a compiler or code that can be executed by an interpreter. A storage medium that can be read by a device may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not contain signals (e.g. electromagnetic waves). This term refers to cases where data is stored semi-permanently in the storage medium. There is no distinction between temporary storage cases.

본 명세서에서, “부”는 프로세서 또는 회로와 같은 하드웨어 구성(hardware component), 및/또는 프로세서와 같은 하드웨어 구성에 의해 실행되는 소프트웨어 구성(software component)일 수 있다.In this specification, a “part” may be a hardware component, such as a processor or circuit, and/or a software component executed by the hardware component, such as a processor.

전술한 본 명세서의 설명은 예시를 위한 것이며, 본 명세서의 내용이 속하는 기술분야의 통상의 지식을 가진 자는 본 발명의 기술적 사상이나 필수적인 특징을 변경하지 않고서 다른 구체적인 형태로 쉽게 변형이 가능하다는 것을 이해할 수 있을 것이다. 그러므로 이상에서 기술한 실시예들은 모든 면에서 예시적인 것이며 한정적이 아닌 것으로 이해해야만 한다. 예를 들어, 단일형으로 설명되어 있는 각 구성 요소는 분산되어 실시될 수도 있으며, 마찬가지로 분산된 것으로 설명되어 있는 구성 요소들도 결합된 형태로 실시될 수 있다.The description of the present specification described above is for illustrative purposes, and those skilled in the art will understand that the present invention can be easily modified into other specific forms without changing the technical idea or essential features of the present invention. You will be able to. Therefore, the embodiments described above should be understood in all respects as illustrative and not restrictive. For example, each component described as unitary may be implemented in a distributed manner, and similarly, components described as distributed may also be implemented in a combined form.

본 실시예의 범위는 상기 상세한 설명보다는 후술하는 특허청구범위에 의하여 나타내어지며, 특허청구범위의 의미 및 범위 그리고 그 균등 개념으로부터 도출되는 모든 변경 또는 변형된 형태가 포함되는 것으로 해석되어야 한다.The scope of this embodiment is indicated by the patent claims described later rather than the detailed description above, and should be interpreted to include all changes or modified forms derived from the meaning and scope of the claims and their equivalent concepts.

Claims (4)

제 1 음성 신호에서 제 1 홉 길이(hop length)를 기반으로 제 1 윈도우 길이(window length)를 갖는 구간들을 설정하는 단계;
상기 구간들에 대하여 단시간 푸리에 변환(Short-time Fourier Transform)을 수행하여 스펙트로그램을 생성하는 단계;
상기 제 1 음성 신호의 속도 및 피치를 변경하기 위한 배속율 및 피치 변경율을 결정하는 단계;
상기 스펙트로그램으로부터 제 2 홉 길이를 기반으로 제 2 윈도우 길이를 갖는 구간들의 음성 신호들을 생성하는 단계; 및
상기 구간들의 음성 신호들을 기반으로 속도 및 피치가 변경된 제 2 음성 신호를 생성하는 단계를 포함하고,
상기 제 2 홉 길이에 대한 제 1 홉 길이의 비는 배속율의 값과 같고, 상기 제 2 윈도우 길이에 대한 제 1 윈도우 길이의 비는 피치 변경율의 값과 같도록 설정되는, 방법.
Setting sections having a first window length based on a first hop length in the first voice signal;
Generating a spectrogram by performing short-time Fourier Transform on the sections;
determining a speed and pitch change rate for changing the speed and pitch of the first voice signal;
generating voice signals in sections having a second window length based on the second hop length from the spectrogram; and
Generating a second voice signal with changed speed and pitch based on the voice signals of the sections,
The ratio of the first hop length to the second hop length is set to be equal to a value of the double speed rate, and the ratio of the first window length to the second window length is set to be equal to a value of the pitch change rate.
제 1 항에 있어서,
상기 제 2 홉 길이의 값은 기 설정된 값에 해당하고, 상기 제 1 홉 길이는 상기 제 2 홉 길이에 상기 배속율을 곱한 값과 같도록 설정되는, 방법.
According to claim 1,
The method wherein the value of the second hop length corresponds to a preset value, and the first hop length is set to be equal to a value obtained by multiplying the second hop length by the speed ratio.
제 1 항에 있어서,
상기 제 1 윈도우 길이의 값은 기 설정된 값에 해당하고, 상기 제 2 윈도우 길이는 상기 제 1 윈도우 길이를 상기 피치 변경율로 나눈 값과 같도록 설정되는, 방법.
According to claim 1,
The method wherein the value of the first window length corresponds to a preset value, and the second window length is set to be equal to the first window length divided by the pitch change rate.
제 1 항에 있어서,
상기 제 2 윈도우 길이를 갖는 구간들의 음성 신호들을 생성하는 단계는,
상기 스펙트로그램에 단시간 푸리에 변환 및 역 단시간 푸리에 변환(Inverse Short-time Fourier Transform)을 반복적으로 수행하여 위상 정보를 추정하는 단계; 및
상기 위상 정보를 기반으로 상기 제 2 홉 길이를 기반으로 제 2 윈도우 길이를 갖는 구간들의 음성 신호들을 생성하는 단계를 포함하는, 방법.
According to claim 1,
The step of generating voice signals of sections having the second window length includes:
estimating phase information by repeatedly performing short-time Fourier transform and inverse short-time Fourier transform on the spectrogram; and
A method comprising generating voice signals of sections having a second window length based on the second hop length based on the phase information.
KR1020220091777A 2022-07-25 2022-07-25 Method and tts system for changing the speed and the pitch of the speech KR20240014251A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020220091777A KR20240014251A (en) 2022-07-25 2022-07-25 Method and tts system for changing the speed and the pitch of the speech

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020220091777A KR20240014251A (en) 2022-07-25 2022-07-25 Method and tts system for changing the speed and the pitch of the speech

Publications (1)

Publication Number Publication Date
KR20240014251A true KR20240014251A (en) 2024-02-01

Family

ID=89859376

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220091777A KR20240014251A (en) 2022-07-25 2022-07-25 Method and tts system for changing the speed and the pitch of the speech

Country Status (1)

Country Link
KR (1) KR20240014251A (en)

Similar Documents

Publication Publication Date Title
Sisman et al. An overview of voice conversion and its challenges: From statistical modeling to deep learning
CN106688034B (en) Text-to-speech conversion with emotional content
KR20230003056A (en) Speech recognition using non-speech text and speech synthesis
KR102449209B1 (en) A tts system for naturally processing silent parts
KR102449223B1 (en) Method and tts system for changing the speed and the pitch of the speech
KR20210059586A (en) Method and Apparatus for Emotional Voice Conversion using Multitask Learning with Text-to-Speech
US20220165247A1 (en) Method for generating synthetic speech and speech synthesis system
JP7393585B2 (en) WaveNet self-training for text-to-speech
KR102528019B1 (en) A TTS system based on artificial intelligence technology
JP2021006897A (en) Method, apparatus and equipment for synthesizing voice in parallel, and computer-readable storage medium
JP2024505076A (en) Generate diverse, natural-looking text-to-speech samples
JP5807921B2 (en) Quantitative F0 pattern generation device and method, model learning device for F0 pattern generation, and computer program
KR102568145B1 (en) Method and tts system for generating speech data using unvoice mel-spectrogram
US11776528B2 (en) Method for changing speed and pitch of speech and speech synthesis system
KR20220071523A (en) A method and a TTS system for segmenting a sequence of characters
KR20220071522A (en) A method and a TTS system for generating synthetic speech
KR20240014251A (en) Method and tts system for changing the speed and the pitch of the speech
KR102463589B1 (en) Method and tts system for determining the reference section of speech data based on the length of the mel-spectrogram
KR102463570B1 (en) Method and tts system for configuring mel-spectrogram batch using unvoice section
KR20240014252A (en) Method and tts system for determining the unvoice section of the mel-spectrogram
KR102503066B1 (en) A method and a TTS system for evaluating the quality of a spectrogram using scores of an attention alignment
KR102532253B1 (en) A method and a TTS system for calculating a decoder score of an attention alignment corresponded to a spectrogram
KR20240014257A (en) A method and a TTS system for generating synthetic speech
KR20230018312A (en) Method and system for synthesizing speech by scoring speech
Matoušek et al. VITS: quality vs. speed analysis