Abstract:
This is a voice activated Hypermedia system using grammatical metadata, the system comprising: a speech user agent; a browsing module; and an information resource. The system may include: embedded intelligence in hypermedia source; a means for processing the actions of a user based on the embedded intelligence; a means for returning a result of the actions to the user. In addition, the hypermedia source maybe a HTML page or an instructional module for communicating allowed actions by a user. The system may also include embedded intelligence as a grammar or reference to a grammar. The grammar may be dynamically added to a speech recognizer. In addition, the actions can come from a speech recognizer. Furthermore, the system may include voice activated hypermedia links and intelligent modules that process information from the information resources for allowing actions from the user. Other devices, systems and methods are also disclosed.

Description:
CROSS-REFERENCE TO RELATED APPLICATIONS 
   The following coassigned patent applications are hereby incorporated herein by reference:
         Ser. No. 08/419,226 Filing Date Apr. 10, 1995.       

   FIELD OF THE INVENTION 
   This invention generally relates to voice activated HyperMedia Systems using grammatical metadata. 
   BACKGROUND OF THE INVENTION 
   Without limiting the scope of the invention, its background is described in connection with the World Wide Web pages on the Internet. 
   The Internet is the largest network of computer systems in the world. Technically, it&#39;s the global network that connects huge numbers of networks to one another. The Internet was initially implemented by the government as a network of military computers, defense contractors, and universities performing defense research. The original agency in charge of the Internet was the Advanced Research Procurement Agency (ARPA) and the network became known as the ARPANET. It mainly allowed sharing of information in the research being performed between the various sites, but also gave the government a means to research communication security and integrity in conditions like atomic attacks and associated electro-magnetic effects. However, the Internet has evolved from a primarily defense oriented network, to a multipurpose network that connects almost every other kind of computer to the original ARPANET, and thus defining the Internet. 
   Currently, the Internet links together the massive online service bureaus, such as Compuserve, Prodigy, and America Online. It also links together hundreds of thousands of universities, government agencies, and corporations located in almost a hundred countries around the world. It reaches out to small offices, school rooms, and even individual homes. According to the Internet Society (ISOC), the net reached nearly five million host computers and twenty five million users in 1994. Those numbers have seen a steady doubling every year since 1983. However, many other sources doubt those numbers and state that nobody really knows how big the Internet is. 
   From the user&#39;s perspective, the Internet is a truly massive resource of services. This network gives you access to the world&#39;s largest online source of reference information, publicly distributed software, and discussion groups, covering virtually every topic one could reasonably imagine and an embarrassingly high number of topics that one could not. A subsection of the information contained by the computers on the Internet is called the World Wide Web (heretofore known as WWW or Web). The Web consists of s system of information sites that connect through a series of hyperlinks. Hyperlinks allow a user to either point and click at a highlighted hyperlink (a highlighted hyperlink could be either text or a graphic) or enter a number corresponding to the highlighted link. Activating the highlighted hyperlink will access either another site, an audio clip, a video clip, a graphic, text based information or other types multi-media information being developed everyday. 
   This almost unlimited amount of information is very hard to digest without some sort of organization. A common software tool to organize the vast amount of information is called a “browser”. This common software tool utilizes a common programming language that define hyperlinks and the other information presented on the screen. The common programming language is called Hypertext Markup Language (HTML) (Hypertext is commonly referred to mean any hyperlink to multi-media information and will heretofore be interchangeable with hyperlink). There are several browsers being used for the World Wide Web. The National Center for Supercomputing Application (NCSA) has contributed to a browser called NCSA Mosaic and is probably the most widely used browser at the present time. Other browsers have been developed by software companies and/or online service providers (e.g. Netscape, America Online, . . . ). 
   SUMMARY OF THE INVENTION 
   As the popularity of the Web has skyrocketed over the past two years, so has the amount of information available. In addition, the nature of the users has shifted from scientists to the general public. At the same time, the power of workstations and PCs has increased to the point where they can support speaker independent, continuous speech recognition. The present invention describes a speech interface to the Web that allows easy access to information and a growth path toward intelligent user agents. 
   To allow anyone to walk up and use the system naturally without training, continuous, speaker independent speech recognition is used. Additionally, the recognizer uses phonetic models to allow recognition of any vocabulary word without training on that specific word. The ability to handle a flexible vocabulary, coupled with the ability to dynamically modify grammars in the recognizer, allows the invention to support grammars particular to a Web page. These features are utilized to support a Speakable Hotlist, speakable links, and smart pages in the speech user agent. 
   This is a technique for embedding voice activated control information in HTML pages as delivered on the World Wide Web. The voice control information is encoded in a grammar language and is interpreted by a Web client user-agent that translates user utterances into client actions. The user may also query the page about its functionality. 
   The invention includes a speaker independent, continuous, real-time, flexible vocabulary speech interface to the Web as an integral part of building an intelligent user agent. In addition to speakable control words (e.g., “scroll down”, “back”, etc.)., Internet browsers can be made speech aware in three distinct ways. First, the interface implements the idea of a Speakable Hotlist of Internet sites. Second, the interface includes Speakable Hyperlinks. This involves some lexical challenges (e.g., “DOW DOWN 1.68 AT 11”) and on-the-fly pronunciation generation and dynamic grammar modification. Furthermore, Smart Pages have been implemented, making it possible to associate a grammar with any Web page. In this way, the interface knows the language for that page, recognizes sentences using that language, and passes the result back to the page for interpretation. To avoid coverage issues, each Smart Page can briefly describe the language to the user. With this approach, knowledge can be effectively distributed rather than attempt to construct an omniscient user agent. 
   This is a voice activated Hypermedia system using grammatical metadata, the system comprising: a speech user agent; a browsing module; and an information resource. The system may include: embedded intelligence in hypermedia source; a means for processing the actions of a user based on the embedded intelligence; a means for returning a result of the actions to the user. In addition, the hypermedia source maybe a HTML page or an instructional module for communicating allowed actions by a user. The system may also include embedded intelligence as a grammar or reference to a grammar. The grammar may be dynamically added to a speech recognizer. In addition, the actions can come from a speech recognizer. Furthermore, the system may include voice activated hypermedia links and intelligent modules that process information from the information resources for allowing actions from the user. Other devices, systems and methods are also disclosed. 

   
     BRIEF DESCRIPTION OF THE DRAWINGS 
     In the drawings: 
       FIG. 1  is a diagram depicting the interaction between the speech user agent, the browser and the Web; and 
       FIG. 2  is a diagram depicting the loading and use of a Smart Page. 
     Corresponding numerals and symbols in the different figures refer to corresponding parts unless otherwise indicated. 
   

   DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS 
   Most browsers offer the quite useful concept of a “hotlist” to store and retrieve interesting or frequently used Uniform Resource Locations (URLs). After a short time, however, the hotlist can grow to the point where desired information becomes difficult to find. Besides the sheer number of items to examine, names of hotlist entries which seem perfectly reasonable at the time do not seem to associate well with the corresponding page over days or weeks. To help alleviate these problems, a Speakable Hotlist was developed. 
   In a Speakable Hotlist, the user constructs a grammar and associates it with a URL. To create a grammar currently, the user edits an ASCII grammar file and types in the grammar using a BNF syntax where “|” denotes alternatives, square brackets denote optionality, and parentheses provide grouping. The following is an example implementation:
         start(what_is_the_weather).   what_is_the_weather - - - &gt;
           (how is | how&#39;s) the weather [look | doing] [today] |   (how does | how&#39;s) the weather look [today] |   (what is | what&#39;s) the weather [today].
 
The user then associates the start symbol “what_is_the_weather” with the appropriate URL in a separate file. When the recognizer finds a string from one of the languages in the hotlist grammar file, it looks up the associated URL and directs the browser to fetch the page.
   
               

   To speak the phrase “how does the weather look today” at a normal rate requires a little under 1.5 seconds and requires very little mental or physical effort. To achieve the same result without speech requires at best 10 seconds between four button pushes, scrolling, and scanning. The combined strengths of natural phrases and random access make the Speakable Hotlist very attractive. 
   The hotlist was modified by voice using two commands. Speaking the phrase “add this page to my hotlist” adds the title of the page as the default grammar and automatically associates that grammar with the current URL. Speaking the phrase “edit the Speakable Hotlist [for this page]” then allows the user to manually add more syntactic flexibility in retrieving the page by voice. The ability to dynamically add grammars to the recognizer is described later. 
   Once the user has arrived at a page via the Speakable Hotlist, it seems natural to speak the underlined link names (or text portion of the anchors). This involves the following steps: getting the link name/URL pairs from the page, identifying the tokens in the link names, producing the pronunciation grammars for the tokens, creating grammars for the link tokens, creating a grammar for all the links on the page, and adding the created grammars to the current set known by the recognizer. For most pages, this entire process takes between 0.2 and 0.5 seconds depending on the density of the links on the page. This small delay occurs while the user reads the page, deciding where to go next. 
   In order to extract the link name/URL pairs from a page, a small change is required in the browser. NCSA Mosaic parses the incoming HTML into an internal form so that we simply extract the objects of the appropriate type [reference from the URL of: &lt;http://www.ncsa.uiuc.edu/SDG/Software/Mosaic/NCSAMosaicHome.html&gt;]. However, a given HTML page can have arbitrary length so for the purposes of the preferred embodiment, the link name/URL pairs were limited to those visible on the screen Therefore, directives such as “scroll down” also result in communicating the currently visible set of link name/URL pairs to the recognizer. 
   In addition, correct tokenization of the link names is quite challenging. Given that the user can visit any page in the world on any subject, the format of the link names varies wildly. In end of the spectrum consist of spelled words. The other end include E-mail addresses and pathnames. In between, link names can include:
         numbers as in “DOW DOWN 1.68 AT 11” (“one point six eight” or “one point sixty eight”?),   acronyms such as “CIA” in “PLOT TO BOMB CIA CENTER UNVEILED”,   invented words such as “DowVision”, and   novel use of punctuation, abbreviations, etc.
 
Given such a wide range of tokens and so many possible contexts, ambiguity should be allowed in the tokenization process. For example, “CIA” could be pronounced as the “C-I-A” or it could be pronounced as “see-ah” (the Spanish word for company).
       

   Token pronunciations provide another challenge. Primary searching could be implemented on a name dictionary, an abbreviation/acronym dictionary, and a standard English pronunciation dictionary containing more than 250,000 entries. If all of these fail, letter to phoneme rules could be implemented. All pronunciations then undergo a transformation from phonemes to phones (e.g., the introduction of the “flap” or “D”-like sound in words such as “butter” for the American English dialect). The phone pronunciations undergo a further transformation to allophones (i.e., the different realizations of a given phone in the context of different neighbor phones, [Y. H. Kao, C. T. Hemphill, B. J. Wheatley, P. K. Rajasekaran, “Toward Vocabulary Independent Telephone Speech Recognition,” Proceedings of ICASSP, 1994.]). 
   Once the grammar of tokens is created for a given link name, conversion to a form suitable for the recognizer is implemented. This includes minimizing the number of nonterminals (for efficiency), introducing an optional symbol to allow pauses between words, and segregating the grammar into different versions for males and females to connect (eventually) with the appropriate allophone (for accuracy), 
   Next, a single grammar containing references to all of the individual link grammars is formed. This simplifies the task of identifying when the user has uttered a link name and the corresponding lookup for the URL. 
   Finally, for all of the grammars formed, we add or replace each grammar in the current graph of regular grammars within the recognizer. This involves linking them together in a Directed Acyclic Graph (DAG) relationship and determining the maximum depth of each grammar in the DAG for processing purposes [Charles T. Hemphill and Joseph Picone, “Chart Parsing of Stochastic Spoken Language Models,” Proceedings of the DARPA Speech and Natural Language Workshop, Philadelphia, Pa., February, 1989.]. In the preferred embodiment, the interface caches all link grammars and token pronunciation grammars. This simplifies the job of supporting speakable links, but may become an issue for a given interface used over an extensive period of time with many hundreds of pages. Machines with limited memory might necessitate incorporation of a grammar replacement strategy. 
     FIG. 1  depicts the relationship between the speech user agent  50 , the Web browser  52 , and the World Wide Web  54 . 
   The Speakable Hotlist and speakable links capabilities go a long way toward making the Web browser speech aware, but they only make the existing capabilities of the browser easier to use. In addition to links, pages on the Web also contain forms and should also be addressed. To address this issue and a variety of others, the present invention includes Smart Pages. 
   A Smart Page is defined as a page that contains a reference to a grammar, as well as being able to interpret the result of recognition based on that grammar. The currently visible page defines a context and the Smart Page grammar admits sentences appropriate for that context. In addition, Smart Pages should briefly describe the language that the page understands and allow the user to look at the grammar, if desired, for full detail. 
   To create a Smart Page, the page author uses the same BNF syntax as described for the Speakable Hotlist. The grammars could take the form of a context-free grammar, but without embedded recursion. The following grammar represents a simple example from a weather Smart Page: (other rules expand the nonterminal symbols CITY and STATE)
         start(weather_smart_page).   weather_smart_page - - - &gt;
           [(how is | how&#39;s) the weather in] CITY_NAME [today] |   [(how does | how&#39;s) (the weather | it) look in] CITY_NAME [today] |   [(what&#39;s | what is | show [me]) the weather in] CITY_NAME [today] |
               [and] how about [the weather in] CITY_NAME |   what cities do you (know about | have) [in STATE_NAME] |   show me the Smart Page grammar.   
               
               

   In the preferred embodiment, a copy of NCSA Mosaic was modified to look for a special “LINK” relationship in the document “HEAD”. If found, the interface retrieves the specified grammar given the URL, converts it to a speech ready form, creates pronunciation grammars as in the case of speakable links, and loads the grammars into the recognizer. An example of a grammar reference within a page follows: 
   &lt;LINK REL=“X-GRAMMAR” HREF=“/speech/info/html/weather_smart_page.grm”&gt;The interface sends sentences recognized from the Smart Page grammar as arguments back to the page (or a URL designated in the page by a LINK relationship). Any number of interpretation schemes such as shell scripts, lex/yacc, Definite Clause Grammars (DCG), or custom parsers can then produce the desired URL. Declarative approaches such as DCG allow one grammar to be written with combined syntax and semantics, automatically extract the BNF form of the Smart Page grammar, and interpret the results [B. Wheatley, J. Tadlock, and C. Hemphill, “Automatic Efficiency Improvements for Telecommunications Application Grammars,” First IEEE Workshop on Interactive Voice Technology for Telecommunications Applications, Oct. 18-20, 1992, Piscataway, N.J., U.S.A.]. 
     FIG. 2  describes the mechanics of loading and using a Smart Page in detail. This diagram will be described with reference to a Smart Page version of the weather query. First, the user utters “how&#39;s the weather look today” from the Speakable Hotlist resulting in the Speech User Agent (SUA)  50  sending the URL directive:
         &lt;http://kiowa.csc.ti.com/cgi-bin/weatherpage#REPORT&gt;
 
to the Web Browser (WB)  52 . The WB  52  then passes this to the World Wide Web (WWW)  54  to return HTML (the HTML then includes the normal weather map). The WB  52  observes the grammar LINK in the Smart Page and asks the WWW  54  for the Smart Page Grammar (SPG) using the supplied URL:
   &lt;/speech/info/html/weather_smart_page.grm&gt;.
 
The WWW  54  returns the SPG as HTML and the WB  52  then passes this back to the SUA  50 . The SUA  50  dynamically adds the grammar to the recognizer as described above. After looking at the map and reading the instructions on the page, the user decides to utter “how about Chicago Ill.” to get more detail for that city. Recognizing that this string belongs to the Smart Page grammar, the SUA  50  then sends a directive with arguments:
   &lt;http://kiowa.csc.ti.com/cgi-bin/weatherpage?how+about+Chicago+Illinois&gt;
 
to the WB  52  which then passes it on to the WWW  54 . The WWW  54  page at the weather site (cgi-bin in this case) notices the arguments and interprets them to produce the URL relocation:
   &lt;http://rs560.cl.msu.edu/weather/interactive.html?id=ord REPORT&gt;
 
where “ord” is an airport code for that city. The WWW  54  then passes back the HTML for the desired information to the WB  52 . Based on the information displayed on the Smart Page, the user can then ask about the weather in other cities, ask about what cities it knows about (optionally in a particular state), or ask to see the Smart Page grammar.
       
   As a policy decision, the grammar for a given Smart Page could remain active until the interface encounters a-new Smart Page. In the example above, this allows the user to ask about the weather in several cities without having to retrieve a grammar for each of the associated pages. 
   Theoretically, there is no limit to the size of a given Smart Page grammar. Practically, however, the recognizer can begin to experience a decrease in speed and accuracy if the grammar grows beyond a moderate size. Further effort in this area will allow the user to use larger and larger Smart Page grammars and allow the apparent collective “intelligence” of the interface to increase. 
   An example implementation of a spoken language grammar is also provided. Using the HTML 2.0 LINK element, the spoken language grammar may be associated with an HTML document, file.html:
         &lt;HTML&gt;
           &lt;HEAD&gt;   [other HEAD elements omitted]   &lt;ISINDEX&gt;   &lt;LINK REL=“X-GRAMMAR” HREF=“file.cfg”&gt;   &lt;/HEAD&gt;   &lt;BODY&gt;   . . .   &lt;/BODY&gt;   
           &lt;/HTML&gt;
 
where file.cfg is a grammar file associated with the BASE file.html. The file extension in this case is CFG (context free grammars). However, other grammar formats are possible.
       

   The following is an example of a CFG file:
         start(“phone_list/ 1 ”).   “phone_list/ 1 ” - - - &gt; “lookup/ 0 ”, “name/ 1 ”.   “phone_list/ 1 ” - - - &gt; “whatis/ 0 ”, “name_pos/ 1 ”, “phonenumber/ 0 ”.   “phone_list/ 1 ” - - - &gt; “ ”.   “lookup/ 0 ” - - - &gt; “lookup”.   “whatis/ 0 ” - - - &gt; “whats”.   “whatis/ 0 ” - - - &gt; “what”, “is”.   “phonenumber/ 0 ” - - - &gt; “phone”, “number”.   “phonenumber/ 0 ” - - - &gt; “number”.   “name/ 1 ” - - - &gt; “charles/ 0 ”, “Hemphill”.   “name/ 1 ” - - - &gt; “philip/ 0 ”, “Thrift”.   “name/ 1 ” - - - &gt; “john/ 0 ”, “Linn”.   “name_pos/ 1 ” - - - &gt; “charles/ 0 ”, “Hemphills”.   “name_pos/ 1 ” - - - &gt; “philip/ 0 ”, “Thrifts”.   “name_pos/ 1 ” - - - &gt; “john/ 0 ”, “Linns”.   “charles/ 0 ” - - - &gt; “Charles”.   “charles/ 0 ” - - - &gt; “Chuck”.   “philip/ 0 ” - - - &gt; “Philip”.   “philip/ 0 ” - - - &gt; “Phil”.   “john/ 0 ” - - - &gt; “John”.
 
A unique predicate should be included to designate the start symbol for the grammar.
       

   The function of the grammar file is as follows. When the speech-capable client assesses the html file and detects an associated grammar file as indicated in the HEAD, the grammar file is also retrieved. The client uses the grammar to map user spoken utterances into query words. The query is then passed to the ISINDEX reference for server-side processing. 
   The invention implements a novel interface that lets the user surf the Web by voice in a variety of ways. These include simple command control of the browser, a voice controlled hotlist that allows for syntactic variation, voice control of the dynamically changing set of link names encountered, and voice queries in the context of Smart Pages. With the aid of the invention, surfing by voice will become commonplace after settling some relafively simple standards issues regarding how to communicate visible link name/URL pairs and retrieval of grammar links from a Smart Page. As the number of Smart Pages and the size of the Smart Page grammars grows, the Web should become more useful and easier to use. 
   In the preferred embodiment, it is assumed that speech comes in locally from a microphone, but it could just as well come from a telephone or any other audio source. In addition, speech processing takes place locally on the client machine. This simplifies processing of local requests such as “scroll down”, etc. However, there is nothing intrinsic in the architecture that would prevent speech processing on a server. The description of the interface concentrates on speech input, but could also work with mouse and keyboard input. 
   A few preferred embodiments have been described in detail hereinabove. It is to be understood that the scope of the invention also comprehends embodiments different from those described, yet within the scope of the claims. For example, even though the preferred embodiment is described in relation to a voice activated Internet Browser, the voice activated system could be used with other systems (e.g. on-line documentation systems, databases, . . . ). Words of inclusion are to be interpreted as nonexhaustive in considering the scope of the invention. 
   While this invention has been described with reference to illustrative embodiments, this description is not intended to be construed in a limiting sense. Various modifications and combinations of the illustrative embodiments, as well as other embodiments of the invention, will be apparent to persons skilled in the art upon reference to the description. It is therefore intended that the appended claims encompass any such modifications or embodiments.