1. Technical Field
The present disclosure relates to low latency text-to-speech and more specifically to web-based low latency text-to-speech without plugins.
2. Introduction
Current approaches for incorporating text-to-speech (TTS) functionality for web browsing or other web-based applications suffer from several limitations. For a system to be responsive, or in other words to have low latency characteristics, current approaches feed the text to be synthesized to the synthesizer in small chunks, and use Adobe® Flash® Player or some other external program or web browser plug-in to render the audio. These other programs may not always be available, especially so on mobile or other low-resource devices. Thus, the TTS system is often deprived of potentially valuable information that would be present in complete sentences or paragraphs. This information, if it were available, could be used to render the audio with appropriate prosody or other features. These approaches can provide either good latency or good prosody, but provide each at the expense of the other. In other words, current approaches for web-based TTS are unable to provide both good latency and good prosody at the same time, and rely on browser plug-ins.
Additional features and advantages of the disclosure will be set forth in the description which follows, and in part will be understood 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.
Disclosed are systems, methods, and non-transitory computer-readable storage media for reducing latency in web-browsing TTS systems without the use of a plug-in or Flash® module. A system configured according to this disclosure allows the browser to send prosodically meaningful sections of text to a web server. The web server in turn passes on the text to a TTS server for processing, which begins outputting audio and notifications. Upon identifying an independent intonational phrase within which the intonation does not depend on any variables outside the intonational phrase, the TTS server generates speech for the intonational phrase, which the web server caches in an audio buffer, indexed by a unique identifier associated with the input text plus an index number. Notification information can likewise be stored, although in a separate section of the file from the audio. Thus, the client can fetch audio corresponding to the first intonational phrase, which is generated with appropriate intonation, for playback while the remaining intonational phrases are being processed and stored in the cache as they become available.
As the system continues converting text into speech, when identical text appears the system uses the cached audio corresponding to the identical text without the need for re-synthesis via the TTS server. Because the audio does not need to be resynthesized, if an intonational phrase is detected which matches a previously synthesized text, the system can prepare an audio request for that text out of sequence. In addition, making the prosodically meaningful sections of text align with intonational phrases creates section boundaries in silence, such that any network delay results in a longer pause between phrases, rather than broken audio. This approach can provide a more natural sounding output, because the pauses occur in appropriate locations, i.e. between sentences or clauses, and not mid-word.
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 text-to-speech conversion in web browsing. A system, method and non-transitory computer-readable media are disclosed which reduce latency in web-browsing TTS systems without the use of a plug-in or Flash® module. A brief introductory description of a basic general purpose system or computing device in
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 system (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 components of a computing system, the disclosure now returns to a discussion of web-browser based speech synthesis using intonational phrases.
The web browser 204, web server 208, and/or the TTS server 210 can detect prosodically meaningful segments of text. For example, the web browser 204 can transmit those segments over the network 206 to the web server 208 which analyzes the text. If the text has not been previously synthesized, the text is converted to audio in the TTS server 210. This audio is then saved in the cache 212 as well as transmitted back to the user 202. If the text has been previously synthesized, the web server 208 instead requests the previously synthesized audio from the cache 212.
As another example, the web server 208 can receive text from the web browser 204 and identify intonational phrases in the text. The web server 208 passes the intonational phrases to the TTS server 210 for speech synthesis. The web server 208 receives the synthesized speech from the TTS server 210 and stores it in the cache 212, and can optionally notify the web browser 204 that the intonational phrase is available. In another example, the web browser 204 submits text to the web server 208 for speech synthesis. The web server 208 passes the text to the TTS server 210 which parses the text to identify the intonational phrases, and performs text-to-speech synthesis on the first intonational phrase and stores the synthesized speech in the cache 212.
As illustrated, the web server 208, the cache 212, and the TTS server 210 are all separate components. However, in certain configurations any of the web server 208, the cache 212, and the TTS server 210 can be combined together, such that the web server 208 contains the cache 212, a TTS module 210, or both 210, 212. In other configurations, the cache 212 and the TTS server 210 are a combined component, with the web server 208 being separate. In such a configuration, the web server 208 functions to prepare the requests to the combined TTS server/cache 210, 212. In any configuration, whether a combination or separated, the text sent to the TTS server 210 is communicated out in manageable, prosodically significant pieces.
Intonational phrases define prosodically significant segments of audio, and can include sentences, clauses, and in certain instances, individual words. The system can identify intonational phrases based on punctuation marks, such as periods, exclamation marks, question marks, and commas, for example. Because text can contain multiple intonational phrases, the system can change the size of text sent to the TTS server 210 or audio portions identified by the TTS server 210. For example, if a system is configured to process paragraph sized text, which will in turn be converted to audio by the TTS server 210 and stored in the cache 212, then the paragraph sized text will also contain within it sentence sized text. If the system detects network traffic or delays, or the data indicates that latency is too high to convert full paragraphs, the system can change the size of audio files produced to sentences from paragraphs, thereby reducing latency. Similarly, the system can change from small audio transfers (e.g. sentences) to large audio transfers (e.g. paragraphs) if the system detects that such a change is desirable. In an alternate configuration, the system does not consider size at all when identifying intonationally independent phrases, and determines boundaries for intonational phrases based on text having self-contained intonation cues that do not depend or rely on information outside of that intonational phrase.
Upon identifying intonational phrases, the server generates speech for the first intonational phrase (4), which the server sends to the client (5). This speech is audibly played at the client (6a), while the server continues to generate speech for additional intonational phrases (6b). This approach can be implemented using JavaScript and XML on the web browser side that communicates with the server via AJAX style calls without any browser plug-ins or other software modules external to the browser. In generating speech for additional intonational phrases (6b), the server checks to see if any of the previously synthesized text matches the intonational phrases found in the text awaiting synthesis. These previously synthesized intonational phrases are indexed according to the specifics of the text, such that the server can easily locate them upon finding additional, identical text. As the user uses the web browser, the client continues to fetch additional speech from the server as needed (7). In certain cases, this additional request comes because the user has accessed a new web page, whereas in other cases the user has scrolled to another part of the page, is focusing on a specific part of the page, or the page has become modified and requires a new TTS conversion. In situations where modifications occur to the webpage, determining if the page has become sufficiently modified that it requires a new TTS conversion can be done by comparing the updated text to the previous text, and if the differences surpass a threshold value performing the TTS conversion a second time. For example, if the webpage text changed from “their” to “there,” the threshold might not be met. However, if the text changed from “their” to “three,” the threshold might be met. In other cases, every change to the webpage prompts synthesis of the text if the new text has not been previously cached.
Having disclosed some basic system components and concepts, the disclosure now turns to the exemplary method embodiment shown in
The system 100 receives, from a client, text associated with a request for text-to-speech synthesis (402). The system 100 then identifies a set of intonational phrases in the text (404) and generates a file containing text-to-speech data for a first intonational phrase of the set of intonational phrases, wherein the first intonational phrase is indexed by a unique identifier (406). The intonational phrase can be a phrase in which intonation within the phrase only depends on text inside of the phrase. The unique identifier used to index the first intonational phrase can be a text identifier, an offset index, or both the text identifier and offset index together. This unique identifier can further be used to index the file associated with the intonational phrase.
The file generated, in addition to text-to-speech data, can also contain notification information, which the system 100 can use to synchronize the synthesized audio to a visualization of the text. For example, if performing the text-to-speech conversion for a child's book, the system 100 could use the notification information to display a bouncing ball alongside displayed syllables of the synthesized text as it plays. For adults, the notification information could correspond to a virtual news anchor's facial expressions, a mouth on a virtual reader, or other virtual persona mouthing the words as they play. Depending on the particular situation, the system 100 can generate parallel versions of the file and the files using different text-to-speech voices. For instance, if different users have voice preferences then the system 100 can use those preferences to generate the files and eliminate the need to resynthesize those files in the future. In other instances if the text contains a transcription of a real occurrence there can exist a conversation between multiple people recorded. In such situations it can improve the comprehension and quality of the audible playback if there exist different voices within the speech files.
The system 100, after generating the file, then transmits the file to the client in response to the request (408), and generates files containing additional text-to-speech data for remaining intonational phrases of the set of intonational phrases, wherein the system indexes each of the files by the unique identifier plus a respective offset (410). The system 100 can continue storing these files indefinitely, creating an index for recognized intonational phrases and greatly increasing future TTS occurrences. Alternatively, the system 100 can delete the cache daily, upon powering down, upon receiving input from the user directing the deletion of the files, and/or upon an expiration threshold. One example of an expiration threshold is an absolute time value, such as 2 hours from creation. Another example of an expiration threshold is based on the frequency and recency of access to a particular cache entry. Another configuration allows the system 100 to determine which of the files the system considers as unlikely in future text-to-speech instances. The system can then delete those files, or present the files to a user, on the client side and/or the server side, for confirmation prior to deletion.
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. For example, the principles herein equally to text-to-speech used for the visually impaired, child education, and as a tool when one's attention is focused elsewhere. 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.
Number | Name | Date | Kind |
---|---|---|---|
4692941 | Jacks et al. | Sep 1987 | A |
4852168 | Sprague | Jul 1989 | A |
5850629 | Holm et al. | Dec 1998 | A |
5983190 | Trower et al. | Nov 1999 | A |
6081780 | Lumelsky | Jun 2000 | A |
6246672 | Lumelsky | Jun 2001 | B1 |
6260011 | Heckerman et al. | Jul 2001 | B1 |
6510413 | Walker | Jan 2003 | B1 |
6546366 | Ronca et al. | Apr 2003 | B1 |
6810379 | Vermeulen et al. | Oct 2004 | B1 |
7027568 | Simpson et al. | Apr 2006 | B1 |
7035803 | Ostermann et al. | Apr 2006 | B1 |
7174295 | Kivimaki | Feb 2007 | B1 |
7500193 | Spielberg et al. | Mar 2009 | B2 |
7627478 | Cosatto et al. | Dec 2009 | B2 |
8224647 | Niemeyer | Jul 2012 | B2 |
8321225 | Jansche et al. | Nov 2012 | B1 |
20020095552 | Kavipurapu | Jul 2002 | A1 |
20020103646 | Kochanski et al. | Aug 2002 | A1 |
20020143543 | Sirivara | Oct 2002 | A1 |
20020173961 | Guerra | Nov 2002 | A1 |
20040186713 | Gomas et al. | Sep 2004 | A1 |
20040215460 | Cosatto et al. | Oct 2004 | A1 |
20050114137 | Saito et al. | May 2005 | A1 |
20050125236 | Agapi | Jun 2005 | A1 |
20050182629 | Coorman et al. | Aug 2005 | A1 |
20060015342 | Kurzweil et al. | Jan 2006 | A1 |
20060200355 | Sideman | Sep 2006 | A1 |
20070047719 | Dhawan | Mar 2007 | A1 |
20070112571 | Thirugnana | May 2007 | A1 |
20090063153 | Kapilow et al. | Mar 2009 | A1 |
20100114579 | Ostermann et al. | May 2010 | A1 |
20110071835 | Chen et al. | Mar 2011 | A1 |
20120065979 | Wong et al. | Mar 2012 | A1 |
Number | Date | Country |
---|---|---|
WO 2007007215 | Jan 2007 | WO |
Entry |
---|
Cosatto et al, “Lifelike talking faces for interactive services,” , 2003, In Proceedings of the IEEE , vol. 91, No. 9, pp. 1406-1429. |
Number | Date | Country | |
---|---|---|---|
20130144624 A1 | Jun 2013 | US |