Idiom handling in voice service systems

Abstract: The grammar of the speech input to a voice service system (3,4) is normally specified by the voice service system. However, this can produce problems in respect of idioms, such as dates, which are expressed different ways by different users. To facilitate the handling of idioms, a user (2) is permitted to specify their own idiom grammar (31) which is then used by the voice service system (3) to interpret idioms in speech input from that user. Typically, the normal grammar of speech input is specified by grammar tags used to mark up a voice page script (15) interpreted by a voice page browser (3); in this case, it will generally be the voice browser (3) that is responsible for employing the user-specified idiom grammar (31) to interpret the corresponding idiom in the speech input by the user (2). The user-specified grammar can be pre-specified directly to the voice browser by the user or fetched by the browser from a remote location on the fly.

Description: Field of the Invention The present invention relates to how idioms are handled by voice service systems; in the present specification, the term "idiom" is used to mean commonly occurring speech blocks, such as dates, that are set out in different ways by different users. Background of the Invention In recent years there has been an explosion in the number of services available over the World Wide Web on the public internet (generally referred to as the "web"), the web being composed of a myriad of pages linked together by hyperlinks and delivered by servers on request using the HTTP protocol. Each page comprises content marked up with tags to enable the receiving application (typically a GUI browser) to render the page content in the manner intended by the page author; the markup language used for standard web pages is HTML (HyperText Markup Language). However, today far more people have access to a telephone than have access to a computer with an Internet connection. Sales of cellphones are outstripping PC sales so that many people have already or soon will have a phone within reach where ever they go. As a result, there is increasing interest in being able to access web-based services from phones. 'Voice Browsers' offer the promise of allowing everyone to access web-based services from any phone, making it practical to access the Web any time and any where, whether at home, on the move, or at work. Voice browsers allow people to access the Web using speech synthesis, pre-recorded audio, and speech recognition. Figure 1 of the accompanying drawings illustrates the general role played by a voice browser. As can be seen, a voice browser is interposed between a user 2 and a voice page server 4. This server 4 holds voice service pages (text pages) that are marked-up with tags of a voice-related markup language (or languages). When a page is requested by the user 2, it is interpreted at a top level (dialog level) by a dialog manager 7 of the voice browser 3 and output intended for the user is passed in text form to a Text-To-Speech (TTS) converter 6 which provides appropriate voice output to the user. User voice input is converted to text by speech recognition module 5 of the voice browser 3 and the dialog manager 7 determines what action is to be taken according to the received input and the directions in the original page. The voice input / output interface can be supplemented by keypads and small displays. In general terms, therefore, a voice browser can be considered as a largely software device which interprets a voice markup language and generate a dialog with voice output, and possibly other output modalities, and / or voice input, and possibly other modalities (this definition derives from a working draft, dated September 2000, of the Voice browser Working Group of the World Wide Web Consortium). Voice browsers may also be used together with graphical displays, keyboards, and pointing devices (e.g. a mouse) in order to produce a rich "multimodal voice browser". Voice interfaces and the keyboard, pointing device and display maybe used as alternate interfaces to the same service or could be seen as being used together to give a rich interface using all these modes combined. Some examples of devices that allow multimodal interactions could be multimedia PC, or a communication appliance incorporating a display, keyboard, microphone and speaker/headset, an in car Voice Browser might have display and speech interfaces that could work together, or a Kiosk. Some services may use all the modes together to provide an enhanced user experience, for example, a user could touch a street map displayed on a touch sensitive display and say "Tell me how I get here?". Some services might offer alternate interfaces allowing the user flexibility when doing different activities. For example while driving speech could be used to access services, but a passenger might used the keyboard. Figure 2 of the accompanying drawings shows in greater detail the components of an example voice browser for handling voice pages 15 marked up with tags related to four different voice markup languages, namely: tags of a dialog markup language that serves to specify voice dialog behaviour; tags of a multimodal markup language that extends the dialog markup language to support other input modes (keyboard, mouse, etc.) and output modes (large and small screens); tags of a speech grammar markup language that serve to specify the grammar of user input; and tags of a speech synthesis markup language that serve to specify voice characteristics, types of sentences, word emphasis, etc. When a page 15 is loaded into the voice browser, dialog manager 7 determines from the dialog tags and multimodal tags what actions are to be taken (the dialog manager being programmed to understand both the dialog and multimodal languages 19). These actions may include auxiliary functions 18 (available at any time during page processing) accessible through APIs and including such things as database lookups, user identity and validation, telephone call control etc. When speech output to the user is called for, the semantics of the output is passed, with any associated speech synthesis tags, to output channel 12 where a language generator 23 produces the final text to be rendered into speech by text-to-speech converter 6 and output to speaker 17. In the simplest case, the text to be rendered into speech is fully specified in the voice page 15 and the language generator 23 is not required for generating the final output text; however, in more complex cases, only semantic elements are passed, embedded in tags of a natural language semantics markup language (not depicted in Figure 2) that is understood by the language generator. The TTS converter 6 takes account of the speech synthesis tags when effecting text to speech conversion for which purpose it is cognisant of the speech synthesis markup language 25. User voice input is received by microphone 16 and supplied to an input channel of the voice browser. Speech recogniser 5 generates text which is fed to a language understanding module 21 to produce semantics of the input for passing to the dialog manager 7. The speech recogniser 5 and language understanding module 21 work according to specific lexicon and grammar markup language 22 and, of course, take account of any grammar tags related to the current input that appear in page 15. The semantic output to the dialog manager 7 may simply be a permitted input word or may be more complex and include embedded tags of a natural language semantics markup language. The dialog manager 7 determines what action to take next (including, for example, fetching another page) based on the received user input and the dialog tags in the current page 15. Any multimodal tags in the voice page 15 are used to control and interpret multimodal input/output. Such input/output is enabled by an appropriate recogniser 27 in the input channel 11 and an appropriate output constructor 28 in the output channel 12. Whatever its precise form, the voice browser can be located at any point between the user and the voice page server. Figures 3 to 5 illustrate three possibilities in the case where the voice browser functionality is kept all together; many other possibilities exist when the functional components of the voice browser are separated and located in different logical/physical locations. In Figure 3, the voice browser 3 is depicted as incorporated into an end-user system 8 (such as a PC or mobile entity) associated with user 2. In this case, the voice page server 4 is connected to the voice browser 3 by any suitable data-capable bearer service extending across one or more networks 9 that serve to provide connectivity between server 4 and end-user system 8. The data-capable bearer service is only required to carry text-based pages and therefore does not require a high bandwidth. Figure 4 shows the voice browser 3 as co-located with the voice page server 4. In this case, voice input/output is passed across a voice network 9 between the end-user system 8 and the voice browser 3 at the voice page server site. The fact that the voice service is embodied as voice pages interpreted by a voice browser is not apparent to the user or network and the service could be implemented in other ways without the user or network being aware. In Figure 5, the voice browser 3 is located in the network infrastructure between the end-user system 8 and the voice page server 4, voice input and output passing between the end-user system and voice browser over one network leg, and voice-page text data passing between the voice page server 4 and voice browser 3 over another network leg. This arrangement has certain advantages; in particular, by locating expensive resources (speech recognition, TTS converter) in the network, they can be used for many different users with user profiles being used to customise the voice-browser service provided to each user. As already noted with reference to the Figure 2 voice browser, voice processing systems use speech grammars to recognize words the users speaks and to control the form in which a user may utter a particular sentence. For example, a grammar may limit a user to speaking a date as a number followed by a month followed by a two digit year. There are several readily identifiable "idioms" used in human/computer interfaces such as dates, credit card numbers etc. These idioms are, in effect, common building blocks. Current voice systems provide recognition of idioms by attempting to recognize all the ways in which the majority of users might say a particular idiom. This leads to a very complex grammar for what is conceptually a very simple task. It is normal for speech recognition systems to use some form of probability model derived from the grammar to make decisions about how the speech will be recognized. The more complex the grammar, the more difficult it is for the recognizer to determine which sentential form the utterance has come from. WO-A-99/57714 discloses a voice user interface with personality. The disclosed voice user interface envisages the use of customised recognition grammars, allowing for personal vocabulary options such as namelists. It is an object of the present invention to provide a method and apparatus for facilitating the recognition of idioms input by a user in their preferred way of speaking. Summary of the Invention According to one aspect of the present invention, there is provided a method of handling commonly occurring speech blocks, herein idioms, in speech input by a user to a voice service system, the grammar of the speech input being normally specified by the voice service system; said method involving using a user-specified idiom grammar to interpret the corresponding idiom in speech input from that user. Typically, the normal grammar of speech input is specified by grammar tags used to mark up a voice page script interpreted by a voice page browser; in this case, it will generally be the voice browser that is responsible for employing the user-specified idiom grammar to interpret the corresponding idiom in the speech input by the user. The user-specified grammar can be pre-specified directly to the voice browser by the user or fetched by the browser from a remote location on the fly. According to another aspect of the present invention, there is provided a voice browser comprising: a voice-server interface for interfacing with a voice page server to provide user input to the server and to receive voice pages from the server in the form of text with embedded voice markup tags including grammar tags; an input channel, including a speech recogniser, for interpreting user voice input; a dialog manager for effecting dialog control on the basis of output from the input channel and voice pages received from the voice page server; and an output channel, including a text-to-speech converter, for generating voice output from the received voice pages under the control of the dialog manager; characterised in that the voice browser further comprises user-grammar functionality for facilitating the handling of commonly occurring speech blocks, herein idioms, in said user voice input, the user-grammar functionality being arranged to access a user-specified idiom grammar and to cause the input channel to use that grammar to interpret a corresponding idiom in voice input from that user. Brief Description of the Drawings A method and apparatus embodying the invention will now be described, by way of nonlimiting example, with reference to the accompanying diagrammatic drawings, in which: Figure 1 is a diagram illustrating the role of a voice browser; Figure 2 is a diagram showing the functional elements of a voice browser and their relationship to different types of voice markup tags; Figure 3 is a diagram showing a voice service implemented with voice browser functionality located in an end-user system; Figure 4 is a diagram showing a voice service implemented with voice browser functionality co-located with a voice page server; Figure 5 is a diagram showing a voice service implemented with voice browser functionality located in a network between the end-user system and voice page server; and Figure 6 is a diagram illustrating an embodiment of the present invention implemented in a network-based voice browser. Best Mode of Carrying Out the Invention In the following description, voice services are described based on voice page servers serving pages with embedded voice markup tags to voice browsers. Unless otherwise indicated, the foregoing description of voice browsers, and their possible locations and access methods is to be taken as applying also to the described embodiments of the invention. Furthermore, although voice-browser based forms of voice services are preferred, the present invention in its widest conception, is not limited to these forms of voice service system and other suitable systems will be apparent to persons skilled in the art. The scope of the invention is limited by the appended claims only. Figure 6 shows a voice browser 3, similar in form to that of Figure 2, which is located at a service system within communications infrastructure 9 and is being used by user 2 to browse a voice site hosted by voice page server 4. The user is connected via user equipment 8 and voice channel 29 to the voice browser. Server 4 serves voice pages 15 to the browser and receives back user input in text form. Voice browser 3 includes a grammar substitution block 30 the role of which is to cause the user's preferred idiom grammar to be used by the input channel 11 of the browser in interpreting the user's voice input of the idiom. The user's preferred grammar for one or more idioms is pre-specified by the user, this specified grammar (or a reference to it) being stored in store 31. When a voice page is served that contains an idiom, the page may explicitly state that the browser should use a built-in grammar for the idiom; in this case, the block 30 retrieves the user's preferred grammar for the idiom concerned and supplies it to the input channel 11 for interpreting the user's input. The input channel will then generally provide a name-value pair for feedback to the voice site on server 4. If the user has failed to specify a preferred idiom grammar, then the browser will use a default idiom grammar (which could be specified by the voice page 15). The grammar substitution block 30 can also act to override whatever grammar is specified by voice page 15 even if the latter does not explicitly provide for this. In this case, the block must actively look for idioms in the page 15 and then substitute the user's preferred grammar. If the voice site expects the user's input back as name-value pairs, then the block 30 need take no further action; however, if the voice site expects feedback in the form of an ordered string of values with the order being set by the grammar specified in the page, then block 30 must ensure that the output obtained from input channel 11 using the user's preferred grammar, is correctly ordered for provision back to the voice site. The voice browser 3 need not permanently hold the user's preferred idiom grammars in store 31 and can be arranged to load these grammars from a remote site, such as site 33, only when the user logs on to the voice browser service system. This remote site could, for example, be a "home" voice browser service system of the user, the address of this home service system being supplied to the current voice browser at log on to enable the latter to fetch the idiom grammars from site 33. Alternatively, the user can supply their preferred idiom grammars from user equipment 8 to the voice browser 3 at log on. A further possibility is for the user's preferred grammar for a particular idiom to be fetched from a remote site, such as site 33, as and when needed for a particular voice page 15, that is, on the fly. If it transpires that the user has not specified a grammar for a particular idiom, then either the user's remote resource site 33 can be made responsible for supplying a default grammar, or this can be supplied by the voice browser (or be specified in the page 15). By allowing a user to use their own personal grammar for idioms in the foregoing manner, the user can say a particular idiom in a way with which he/she feels most comfortable without compromising the efficiency of the voice recognition system. Two examples will now be given of a flight-booking system voice page, written using VoiceXML (c.f. Voice XML Forum), where the user can select his/her departure date. VoiceXML scripts accept 3 kinds of grammars, namely: inline grammars (written in the script itself), external grammars (referred to by a URL), and built-in grammars; the present example concern the second and third kinds of grammar. Example 1 - Using built-in Grammars <?xml version=1.0"?> <vxml version="1.0"> <form id= "flightBooking"> <block> Welcome to the booking system.</block> <field name= "travelDate"> <grammar src= "builtin:grammar/date/"> <prompt> When do you want to leave ? </prompt> </field> </form> </vxml> The <grammar> element tells the browser 3 to use a built-in grammar to handle spoken date information. The user has pre-configured the browser by specifying pointers to the built-in grammars he prefers to use. So instead of loading the default built-in grammars, the browser fetches grammars specific to the user. Such a grammar could look like: #JSGF V1.0 ISO8859-1 en; grammar builtin.grammar.date; import <com.sun.speech.app.month>; import <com.sun.speech.app.day>; import <com.sun.speech.app.year>; public <date> = <month> <day> <year>; ('JSGF' refers to the Java Speech Grammar Format) Example 2 - using external grammars. A user of a voice browser resource service (such as provided by server 33) can be given a unique identifier which, for example, is made up of: a voice browser service identifier (example: "www.myvoicebrowser.com") a user ID (example: johnDoe). All the grammars used by "www.myvoicebrowser.com" users are stored under www.myvoicebrowser/grammars. The "myvoicebrowser.com" resource can also store other user preferences as language, dialect, gender, etc. A VoiceXML script 15 can then explicitly specify, for example, the fetching on the fly of a grammar corresponding to a particular user of a voice browser using servlet-like requests. <?xml version=1.0"?> <vxml version="1.0"> <form id= "flightBooking"> <block> Welcome to the booking system.</block> <field name= "travelDate"> <grammar expr="'http://' + session.vbid + '/grammar?type=date&id=session.uid'"> <prompt> When do you want to leave ? </prompt> </field> </form> </vxml> where: session.vbid - is a session variable holding the voice browser identifier. Session.uid - is a session variable holding the user ID. The grammar tag contains an expression which when it is interpreted indicates the URL of the grammar to load. For instance: http://www.myvoicebrowser.com/grammar?type=date&id=johnDoe" If the user's grammar is not found at the site www.myvoicebrowser.com , then this site could redirect to a default grammar located on a well-known web site, for example: www.grammar.com/?type=date Many variants are, of course, possible to the arrangements described above. For example, since the user may still input an idiom in a format that does not correspond to that of their preferred grammar, the voice browser can be arranged to remind the user of what format to use, either before input or following an uninterpretable input of the idiom.

Claims: A method of handling commonly occurring speech blocks, denoted herein as idioms, in speech input by a user (2) to a voice service system (3, 4), the grammar of the speech input being normally specified by the voice service system; said method involving using a user-specified idiom grammar (31) to interpret the corresponding idiom in speech input from that user (2). A method according to claim 1, wherein the voice service provided by the voice service system (3, 4) is effected by the serving of voice pages (15) in the form of text with embedded voice markup tags, including grammar tags, to a voice browser (3); the voice browser (3) interpreting these pages (15) and carrying out speech recognition of user voice input, text to speech conversion to generate voice output, and dialog management; the voice browser (3) being disposed between a voice page server (4) and the user (2), and the voice browser (3) retrieving and using said user-specified idiom grammar (31). A method according to claim 2, wherein the voice browser (3) permanently stores said user-specified idiom grammar (31) and uses it whenever a voice page (15) permits use of a built-in grammar for the idiom concerned. A method according to claim 2, wherein the voice browser (3) fetches said user-specified idiom grammar (31) from a remote location (33) as and when a voice page (4) permits use of a user grammar for the idiom concerned. A method according to claim 2, wherein the voice browser (3) fetches said user-specified idiom grammar (31) from a remote location (33) upon user logon to the browser, the voice browser (3) using the fetched idiom grammar (31) whenever a voice page (15) permits use of a built-in or user grammar for the idiom concerned. A method according to claim 2, wherein the voice browser (3) substitutes said user-specified idiom grammar (31) for a grammar specified in a voice page (15) for that idiom independently of whether the voice page explicitly permits such substitution. A method according to any one of the preceding claims, wherein said idiom is a date. A voice browser (3) comprising: a voice-server interface for interfacing with a voice page server (4) to provide user input to the server and to receive voice pages (15) from the server in the form of text with embedded voice markup tags including grammar tags; an input channel (11), including a speech recogniser (5), for interpreting user voice input; a dialog manager (7) for effecting dialog control on the basis of output from the input channel (11) and voice pages (15) received from the voice page server (4); and an output channel (12), including a text-to-speech converter (6), for generating voice output from the received voice pages (15) under the control of the dialog manager (7); characterised in that the voice browser further comprises user-grammar functionality (30) for facilitating the handling of commonly occurring speech blocks, denoted herein as idioms, in said user voice input, the user-grammar functionality (30) being arranged to access a user-specified idiom grammar (31) and to cause the input channel (11) to use that grammar to interpret a corresponding idiom in voice input from that user. A voice browser (3) according to claim 8, wherein the user-grammar functionality (30) includes a data store for permanently storing said user-specified idiom grammar (31). A voice browser (3) according to claim 9, wherein the user-grammar functionality (30) includes means for determining whether a served voice page (15) containing said idiom permits use of a grammar for that idiom different to any specified in the page itself, the user-grammar functionality (30) being operative to cause the input channel (11) to use the stored user-specified idiom grammar (31) only when permitted by the voice page concerned. A voice browser (3) according to claim 8, wherein the user-grammar functionality (30) includes means for fetching said user-specified grammar from a remote location (33), the user-grammar functionality (30) being operative to fetch that user-specified idiom grammar (31) for use by the input channel (11) whenever a voice page (15) including the idiom is served to the browser (3) for said user. A voice browser (3) according to claim 8, wherein the user-grammar functionality (30) includes: means for fetching said user-specified idiom grammar (31) from a remote location (33), and means for determining whether a served voice page (15) containing said idiom permits use of a grammar for that idiom different to any specified in the page itself, the user-grammar functionality (30) being operative to fetch said user-specified idiom grammar (31) for use by the input channel (11) only when a served voice page (15) containing the idiom permits use of a grammar for that idiom different to any specified in the page itself. A voice browser (3) according to claim 8, wherein the user-grammar functionality (30) includes means, responsive to said user (2) connecting to the browser (3), to fetch said user-specified idiom grammar (31) from a remote location (33) and temporarily store it. A voice browser (3) according to claim 13, wherein the user-grammar functionality (30) includes means for determining whether a served voice page (15) containing said idiom permits use of a grammar for that idiom different to any specified in the page (15) itself, the user-grammar functionality (30) being operative to cause the input channel (11) to use the temporarily-stored user-specified idiom grammar (31) only when permitted by the voice page concerned. A voice browser (3) according to claim 8, wherein the user-grammar functionality (30) is operative to substitute said user-specifiedidiom grammar for a grammar specified in a voice page (15) for that idiom independently of whether the voice page explicitly permits such substitution. A voice browser (3) according to any one of claims 8 to 15, wherein said idiom is a date.

Inventors: BELROSE GUILLAUME, HICKEY MARIANNE, HINDE STEPHEN JOHN, THOMAS ANDREW, BELROSE, GUILLAUME, HICKEY, MARIANNE, HINDE, STEPHEN JOHN, THOMAS, ANDREW
Applicants: HEWLETT PACKARD CO, HEWLETT-PACKARD COMPANY
Application year: 2001
Main classification: G10L15
IPC codes: G10L15