The present disclosure relates to speech synthesis and more specifically to a more efficient approach to unit selection based speech synthesis.
A number of practical questions must be addressed for unit selection to operate efficiently. Building and using a unit selection database requires storage and rapid manipulation of large quantities of data such as speech units and their associated metadata. Existing unit selection algorithms can be too slow for real time synthesis based on such large quantities of data. High quality speech databases have tens of thousands or more speech units of different sounds, pitches, speeds, durations, and so forth. The functional complexity of unit selection is O(n2) because each list of n speech units is compared to n other speech units.
The basic approach can be unworkable with high quality speech databases and is inefficient with lower quality speech databases, leading to extra processing, storage, and memory requirements for speech synthesis systems and/or reduced quality synthesized speech. One approach to accelerating the runtime calculation of a path through the unit selection network is join cost caching. For example, a large body of text can be synthesized and the costs associated with the units used can be cached to speed up synthesis, without an enormous space penalty. Another approach to this problem is preselection. Preselection assigns a context-based cost to individual units prior to calculating the complete target cost. The context-based cost is used for pruning the number of possible candidates, which may number several thousand for a particular phone type, down to a number which can be used efficiently in the network—perhaps tens or low hundreds.
Even with join cost caching or preselection, the number of candidate units for synthesis is often very large. Accordingly, what is needed in the art is a more efficient way to perform unit selection in speech synthesis systems.
Additional features and advantages of the disclosure will be set forth in the description which follows, and in part will be obvious from the description, or can be learned by practice of the herein disclosed principles. The features and advantages of the disclosure can be realized and obtained by means of the instruments and combinations particularly pointed out in the appended claims. These and other features of the disclosure will become more fully apparent from the following description and appended claims, or can be learned by the practice of the principles set forth herein.
This disclosure addresses a way to more efficiently calculate concatenation costs for unit selection. This approach makes certain assumptions about f0 (or intrinsic pitch) distributions and can calculate the consequences in terms of concatenation choices. Based on the resulting distribution, this approach estimates which subset of possible concatenations are relevant, likely, and/or possible. This approach can identify the relevant concatenations by imposing an ordering constraint on candidate units based on their f0 value. In one aspect, unit selection calculations are based on observations of patterns of units that emerge from existing unit selection implementations. The approach disclosed herein is faster, more efficient, and uses less memory as well as provides at least an incidental improvement in synthesis quality.
Disclosed are systems, methods, and non-transitory computer-readable storage media for performing speech synthesis. A first exemplary method includes receiving a set of ordered lists of speech units, for each respective speech unit in each ordered list in the set of ordered lists, constructing a sublist of speech units from a next ordered list which are suitable for concatenation, performing a cost analysis of paths through the set of ordered lists of speech units based on the sublist of speech units for each respective speech unit, and synthesizing speech using a lowest cost path of speech units through the set of ordered lists based on the cost analysis. A second exemplary method includes, in a text-to-speech synthesis system that uses unit selection, imposing ordering constraints on speech units, the ordering constraints indicating speech unit pairs which are suitable for concatenation based on a respective pitch of each speech unit, and, when performing unit selection to synthesize speech, considering speech unit pairs in which a difference in pitch is below a threshold value based on the imposed ordering constraints.
In order to describe the manner in which the above-recited and other advantages and features of the disclosure can be obtained, a more particular description of the principles briefly described above will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings. Understanding that these drawings depict only exemplary embodiments of the disclosure and are not therefore to be considered to be limiting of its scope, the principles herein are described and explained with additional specificity and detail through the use of the accompanying drawings in which:
Various embodiments of the disclosure are discussed in detail below. While specific implementations are discussed, it should be understood that this is done for illustration purposes only. A person skilled in the relevant art will recognize that other components and configurations may be used without parting from the spirit and scope of the disclosure.
The present disclosure addresses the need in the art for more efficient calculation of costs when performing unit selection based speech synthesis. First the disclosure briefly discusses this approach at a high level. Next, a brief discussion of a basic general purpose system or computing device in
The disclosure now turns to a brief discussion of efficient unit selection. Modern speech synthesizers frequently use unit selection and concatenative methods to generate audible speech. For example, a speech synthesizer can combine a first half of one “ah” speech unit with a second half of another “ah” speech unit to create part of a specific word. In order to sound natural, the two “ah” speech units typically have a pitch difference of 10 Hz or less, for example. A characteristic feature of unit selection and concatenation is a large inventory of recorded speech with multiple variants of units available for concatenation. Appropriate units for synthesis are selected at run time and the waveforms concatenated to make the desired synthetic utterance. The synthesis is generally very natural-sounding and of very high quality.
Some examples of speech units include phones, diphones, triphones, and half phones. Typically unit selection is modeled mathematically as a network with two cost functions.
A unit selection database consists of high fidelity recordings of continuous speech from a single speaker. It can consist of many thousands or even millions of units, and is a vital element in the development of a high quality unit selection synthesizer. The speech units in the database can include labels of a number of features such as phone identity, probability of voicing, f0, and so forth. These and other variations shall be discussed herein as the various embodiments are set forth. The disclosure now turns to
With reference to
The system bus 110 may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures. A basic input/output (BIOS) stored in ROM 140 or the like, may provide the basic routine that helps to transfer information between elements within the computing device 100, such as during start-up. The computing device 100 further includes storage devices 160 such as a hard disk drive, a magnetic disk drive, an optical disk drive, tape drive or the like. The storage device 160 can include software modules 162, 164, 166 for controlling the processor 120. Other hardware or software modules are contemplated. The storage device 160 is connected to the system bus 110 by a drive interface. The drives and the associated computer readable storage media provide nonvolatile storage of computer readable instructions, data structures, program modules and other data for the computing device 100. In one aspect, a hardware module that performs a particular function includes the software component stored in a non-transitory computer-readable medium in connection with the necessary hardware components, such as the processor 120, bus 110, display 170, and so forth, to carry out the function. The basic components are known to those of skill in the art and appropriate variations are contemplated depending on the type of device, such as whether the device 100 is a small, handheld computing device, a desktop computer, or a computer server.
Although the exemplary embodiment described herein employs the hard disk 160, it should be appreciated by those skilled in the art that other types of computer readable media which can store data that are accessible by a computer, such as magnetic cassettes, flash memory cards, digital versatile disks, cartridges, random access memories (RAMs) 150, read only memory (ROM) 140, a cable or wireless signal containing a bit stream and the like, may also be used in the exemplary operating environment. Non-transitory computer-readable storage media expressly exclude media such as energy, carrier signals, electromagnetic waves, and signals per se.
To enable user interaction with the computing device 100, an input device 190 represents any number of input mechanisms, such as a microphone for speech, a touch-sensitive screen for gesture or graphical input, keyboard, mouse, motion input, speech and so forth. An output device 170 can also be one or more of a number of output mechanisms known to those of skill in the art. In some instances, multimodal systems enable a user to provide multiple types of input to communicate with the computing device 100. The communications interface 180 generally governs and manages the user input and system output. There is no restriction on operating on any particular hardware arrangement and therefore the basic features here may easily be substituted for improved hardware or firmware arrangements as they are developed.
For clarity of explanation, the illustrative system embodiment is presented as including individual functional blocks including functional blocks labeled as a “processor” or processor 120. The functions these blocks represent may be provided through the use of either shared or dedicated hardware, including, but not limited to, hardware capable of executing software and hardware, such as a processor 120, that is purpose-built to operate as an equivalent to software executing on a general purpose processor. For example the functions of one or more processors presented in
The logical operations of the various embodiments are implemented as: (1) a sequence of computer implemented steps, operations, or procedures running on a programmable circuit within a general use computer, (2) a sequence of computer implemented steps, operations, or procedures running on a specific-use programmable circuit; and/or (3) interconnected machine modules or program engines within the programmable circuits. The system 100 shown in
Having disclosed some basic system components, the disclosure now turns to the exemplary spoken dialog system as shown in
The ASR module 202 analyzes speech input and provides a textual transcription of the speech input as output. SLU module 204 can receive the transcribed input and can use a natural language understanding model to analyze the group of words that are included in the transcribed input to derive a meaning from the input. The role of the DM module 206 is to interact in a natural way and help the user to achieve the task that the system is designed to support. The DM module 206 receives the meaning of the speech input from the SLU module 204 and determines an action, such as, for example, providing a response, based on the input. The SLG module 208 generates a transcription of one or more words in response to the action provided by the DM 206. The synthesizing module 210 receives the transcription as input and provides generated audible speech as output based on the transcribed speech.
Thus, the modules of system 200 recognize speech input, such as speech utterances, transcribe the speech input, identify (or understand) the meaning of the transcribed speech, determine an appropriate response to the speech input, generate text of the appropriate response and from that text, generate audible “speech” from system 200, which the user then hears. In this manner, the user can carry on a natural language dialog with system 200. Those of ordinary skill in the art will understand the programming languages for generating and training ASR module 202 or any of the other modules in the spoken dialog system. Further, the modules of system 200 can operate independent of a full dialog system. For example, a computing device such as a smartphone (or any processing device having a phone capability) can include an ASR module wherein a user says “call mom” and the smartphone acts on the instruction without a “spoken dialog.”
The disclosure now turns to a more detailed discussion of speech synthesis using a more efficient approach for unit selection. A unit selection approach to speech synthesis selects a string of speech units, such as phonemes or half-phones, and concatenates or joins them together to form words and phrases. The speech units are selected from a large database of indexed speech units. At run-time for unit selection, speech synthesis system receives incoming text and manipulates that text to output speech sounds in a particular pitch and duration, for example. The system examines the speech unit database and generates a list of candidate units, 50-100 candidates for example, for each individual position in the desired output. The system models the various proposed combinations of speech units and determines a target cost for the proposed combinations. The target cost can represent multiple factors. For example, the target cost can represent how much in isolation does the proposed combination look like what is desired, how well two candidates join, and other factors. The system makes a network or lattice of proposed combinations and selects the lowest cost sequence of units in the network or lattice. The system concatenates those speech units from the database to form output speech.
Observations show that speech units join in relatively few of the theoretically possible combinations. The solution described herein imposes at least one ordering constraint on the units considered as suitable for concatenation. One ordering constraint is the intrinsic pitch or f0 of the units in question. With two ordered lists the range of pairs considered can be controlled in a straightforward manner. Only pairs of units where the delta or difference of f0 is less than a threshold value need be considered. This is typically a much smaller subset of the entire set of speech units used in current approaches. Hence the overall cost calculation for a set of given proposed speech unit combinations requires fewer steps and can execute using less resources. This approach can be combined with other unit selection optimization techniques.
Concatenation costs approximate a human's perceptual judgments about how well the speech units being concatenated fit together. Relevant factors include abrupt changes in f0, spectrum, and energy. For voiced sounds one possible measure is cross correlation. Anything more than Just Noticeable Differences (JND) will degrade quality to some degree. In a simple model of concatenation, consider the value of f0 at the mid-point of each vowel in a large speech database. The range of Left Hand Side (LHS) f0 values can be approximated by a Gaussian N(μ,σ2), where μ is the mean value of f0 and σ is the standard deviation of f0, both speaker dependent. The range of Right Hand Side (RHS) f0 values will have an almost identical distribution. Now assume that the system can concatenate any LHS of a vowel of a particular type with any RHS of a vowel of the same type. The difference in f0 across the boundary will form a distribution that is N(0,2σ2). The absolute value of the difference in f0 is given by the half-normal distribution.
The cumulative distribution function is given by
where erf is the error function and x is in Hz. The distribution function has the property that there are relatively few values close to zero.
A small fraction of the possible combinations have a Δf0 of less than 5 Hz. In other words, even given many candidates, only very few may provide acceptable joins for whatever Δf0 is considered acceptable. With some caveats about signal modification that will be addressed shortly, this suggests that the choice of network paths is considerably limited when taking into account the f0 component of concatenation cost calculations. At the same time, given that concatenation combinatorics are O(n2), any reduction in the number of joins to be calculated can lead to a significant performance increase. However, in order to realize a real-world performance benefit, the process of identifying relevant joins must be less expensive than just doing the calculations.
Signal modification is an effective method of avoiding perceptually jarring f0 mismatches albeit at some cost in terms of naturalness. On the other hand, signal modification can permit a higher acceptable threshold for A f0 values across a join.
One goal of join cost caching is also to reduce the calculation load. Based on an analysis of a large body of synthesized text, the number of join costs needed for high quality synthesis is surprisingly small—around 1% of all possible join costs. The observations about f0 values at joins seem to offer a plausible explanation for these results.
In summary, even given hundreds of candidates or more on each side of a join, only relatively few combinations produce acceptable joins. In the abstract case the number of acceptable joins is roughly proportional to n2 where n is the number of candidates presented on each side of a join. These principles can be applied to voiced sounds as well as unvoiced sounds.
The disclosure now turns to one modified approach to concatenation cost calculations. This modified approach assumes that (1) if the number of join options is increased (by increasing the size of the database) the speech synthesis has better join choices and possibly higher quality synthesis, and (2) given that each speech unit generally tends to join with just a few others, the system can avoid a full set of concatenation cost calculations. One approach to (2) is to cache the data, but caching the data leaves open the question of efficiently using the cached data. Also cache building can be slow and cumbersome. The size of the cache can be quite large, and rebuilding the cache is required even for minor configuration changes, such as the inclusion of new material in the database. The approach disclosed herein focuses on (1) by structuring the unit selection and join cost calculations to reduce the complexity and number of calculations performed.
One way to achieve this is to order the candidate speech units based on f0, or the fundamental frequency. f0 is not the only relevant parameter, but it is dominant for concatenation in voiced regions. The candidate speech units can be ordered based on other parameters and can even be ordered based on multiple parameters. For example, if five speech units are tied on the f0 parameter, the system can order those five speech units based on a secondary parameter. In another variation the speech units are ordered based on a sum of three parameters, for example.
Two example approaches for ordering candidates are discussed below. These and other approaches also apply to unvoiced speech units. The first approach involves finding an average f0 value for each speech unit, such as half phones, and using the speech unit f0 values to order the speech units. One advantage of this approach is simplicity. Each unit list can be given a unique order prior to the calculation of the optimal path through the network 400, as illustrated in
Instead of a set of n×n concatenation costs associated with the basic approach, the concatenations are only calculated for the most relevant subset of candidates. As a simple example, assume both lists of candidates are of length 100, and that each candidate from the left list 402 only needs join to a maximum of 10 on the right list 404. In this case, the extra complexity of ordering the lists is inexpensive, O(n log n), and more than compensates for the calculation time required by reducing the number of join calculations by a factor of ten. In this example, speech unit 406 in the left list 402 can be joined with speech unit 414 in the right list 404 and calculations do not need to be performed with the remaining speech units in the right list 404. Similarly, speech unit 408 can be joined with speech unit 416, speech unit 410 can be joined with speech unit 416, and speech unit 412 can be joined with any of speech units 418, 420, 422. A single speech unit on the left side can map to one or more speech units on the right side, multiple speech units on the left side can map to a single speech unit on the right side, and multiple speech units on the left side can map to one or more of the same speech units on the right side. In most situations, the Δf0 values for best path units are less than 50 Hz.
The approach can be enhanced by considering f0 values at the leading and trailing edges of a unit. This necessitates a more complicated manipulation of list structures, but only a relatively small increase in complexity in the form of an additional list sort. The improved performance outweighs the increased computational complexity because the distribution of Δf0 values at the boundaries is much narrower. In most cases Δf0 is less than 10 Hz.
The system can also deal with unvoiced segments. In one variation, the system makes no special accommodation for unvoiced edges (f0=0). In another variation, the system interpolates the f0 contour across unvoiced segments so that every unit has at least a nominal f0 value.
Large unit selection databases can be processed in a more computationally efficient way. Ordering candidate units provides a way to calculate a limited set of join costs including only plausible join candidates in a more efficient manner than with a standard Viterbi calculation. As long as the set of candidates is not too restricted, this partial calculation has a minimal impact on speech synthesis quality.
Having disclosed some basic system components and concepts, the disclosure now turns to the exemplary method embodiment shown in
The system 100 considers speech unit pairs in which a difference in pitch is below a threshold value based on the imposed ordering constraints when performing unit selection to synthesize speech (504). The threshold value can be static or can be adjusted dynamically. For example, the system 100 may respond to temporarily high demands for processor time by lowering the threshold and decreasing the number of candidate speech units to process. Alternately, if the system 100 has unused available CPU cycles, cache, or memory, the system 100 can increase the threshold and devote those additional resources to processing more candidate speech units.
The system 100 performs a cost analysis of paths through the set of ordered lists of speech units based on the sublist of speech units for each respective speech unit (606). One approach to performing a cost analysis is to generate a weighted lattice representing different paths through the candidate speech unit lists based on the sublists. The system 100 synthesizes speech using a lowest cost path of speech units through the set of ordered lists based on the cost analysis (608).
Embodiments within the scope of the present disclosure may also include tangible and/or non-transitory computer-readable storage media for carrying or having computer-executable instructions or data structures stored thereon. Such non-transitory computer-readable storage media can be any available media that can be accessed by a general purpose or special purpose computer, including the functional design of any special purpose processor as discussed above. By way of example, and not limitation, such non-transitory computer-readable media can include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to carry or store desired program code means in the form of computer-executable instructions, data structures, or processor chip design. When information is transferred or provided over a network or another communications connection (either hardwired, wireless, or combination thereof) to a computer, the computer properly views the connection as a computer-readable medium. Thus, any such connection is properly termed a computer-readable medium. Combinations of the above should also be included within the scope of the computer-readable media.
Computer-executable instructions include, for example, instructions and data which cause a general purpose computer, special purpose computer, or special purpose processing device to perform a certain function or group of functions. Computer-executable instructions also include program modules that are executed by computers in stand-alone or network environments. Generally, program modules include routines, programs, components, data structures, objects, and the functions inherent in the design of special-purpose processors, etc. that perform particular tasks or implement particular abstract data types. Computer-executable instructions, associated data structures, and program modules represent examples of the program code means for executing steps of the methods disclosed herein. The particular sequence of such executable instructions or associated data structures represents examples of corresponding acts for implementing the functions described in such steps.
Those of skill in the art will appreciate that other embodiments of the disclosure may be practiced in network computing environments with many types of computer system configurations, including personal computers, hand-held devices, multi-processor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, and the like. Embodiments may also be practiced in distributed computing environments where tasks are performed by local and remote processing devices that are linked (either by hardwired links, wireless links, or by a combination thereof) through a communications network. In a distributed computing environment, program modules may be located in both local and remote memory storage devices.
The various embodiments described above are provided by way of illustration only and should not be construed to limit the scope of the disclosure. Those skilled in the art will readily recognize various modifications and changes that may be made to the principles described herein without following the example embodiments and applications illustrated and described herein, and without departing from the spirit and scope of the disclosure.
The present application is a continuation of U.S. patent application Ser. No. 14/282,040, filed May 20, 2014, which is a continuation of U.S. patent application Ser. No. 12/818,835, filed Jun. 18, 2010, now U.S. Pat. No. 8,731,931, issued May 20, 2014, the content of which are incorporated herein by reference in their entirety.
Number | Name | Date | Kind |
---|---|---|---|
6088673 | Lee | Jul 2000 | A |
6185533 | Holm | Feb 2001 | B1 |
6260016 | Holm | Jul 2001 | B1 |
6505158 | Conkie | Jan 2003 | B1 |
6665641 | Coorman | Dec 2003 | B1 |
6988069 | Phillips | Jan 2006 | B2 |
7013278 | Conkie | Mar 2006 | B1 |
7139712 | Yamada | Nov 2006 | B1 |
7165030 | Yi et al. | Jan 2007 | B2 |
7460997 | Conkie | Dec 2008 | B1 |
7603278 | Fukada | Oct 2009 | B2 |
7689421 | Li | Mar 2010 | B2 |
7869999 | Amato et al. | Jan 2011 | B2 |
7979280 | Wouters et al. | Jul 2011 | B2 |
7983919 | Conkie | Jul 2011 | B2 |
8155964 | Hirose | Apr 2012 | B2 |
8321222 | Pollet et al. | Nov 2012 | B2 |
20020184032 | Hisaminato | Dec 2002 | A1 |
20030061051 | Kondo | Mar 2003 | A1 |
20050137871 | Capman | Jun 2005 | A1 |
20060136213 | Hirose et al. | Jun 2006 | A1 |
20060259303 | Bakis | Nov 2006 | A1 |
20070073542 | Chittaluru | Mar 2007 | A1 |
20080082333 | Nurminen | Apr 2008 | A1 |
20080140407 | Aylett | Jun 2008 | A1 |
20080288256 | Agapi | Nov 2008 | A1 |
20080312931 | Mizutani | Dec 2008 | A1 |
20100312564 | Plumpe | Dec 2010 | A1 |
20100312565 | Wang | Dec 2010 | A1 |
20110246200 | Song | Oct 2011 | A1 |
Entry |
---|
Stöber, Karlheinz, et al. “Definition of a training set for unit selection-based speech synthesis.” 4th ISCA Tutorial and Research Workshop (ITRW) on Speech Synthesis. Sep. 2001, pp. 1-6. (Year: 2001). |
Chu et et al., “Modeling stylized invariance and local variability of prosody in text-to-speech synthesis”, Speech Communication, 48.6 (2006) pp. 716-726. |
Black et al., “Automatically clustering similar units for unit selection speech synthesis,” in Proc Eurospeech, Rhodes, Greece, Sep. 1997, pp. 1-4. |
Hunt et al., “Unit selection in a concatenative speech synthesis system using a large speech database,” Acoustics, Speech and Signal Processing, 1996, ICASSP-96, Conference Proceedings, 1996 IEEE International Conference, vol. 1, May 1996, pp. 373-376. |
Breen et al., “Using F0 within a phonologically motivated method of unit selection,” 6th International Conference on Spoken Language Processing, ISCLP 2000, Beijing, China, Oct. 2000, pp. 1-4. |
Conkie et al., “Using F0 to constrain the unit selection Viterbi network,” Acoustics, Speech and Signal Processing (ICASSP), 2011 IEEE International Conference, May 22-27, 2011, pp. 5376-5379. |
Raux et al., “A unit selection approach to F0 modeling and its application to emphasis”, Automatic Speech Recognition and Understanding, 2003, ASRU '03, 2003 IEEE Workshop on IEEE, Dec. 2003, pp. 700-705. |
Hon, H et al., “Automatic generation of synthesis units for trainable text-to-speech systems”, Acoustics, Speech and Signal Processing, 1998, Proceedings of the 1988 IEEE International Conference on. vol. 1, IEEE, May 1998, pp. 293-296. |
Zhao, Yong et al., “Custom-tailoring TTS Voice font-keeping the naturalness when reducing database size.” Interspeech, Sep. 2003, pp. 2957-2960. |
Number | Date | Country | |
---|---|---|---|
20190019496 A1 | Jan 2019 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 14282040 | May 2014 | US |
Child | 16133156 | US | |
Parent | 12818835 | Jun 2010 | US |
Child | 14282040 | US |