Acquiring Information from Sources Responsive to Naturally-Spoken-Speech Commands Provided by a Voice-Enabled Device
20190043505 ยท 2019-02-07
Inventors
Cpc classification
G10L15/30
PHYSICS
H04L67/02
ELECTRICITY
G06F3/167
PHYSICS
Y10S707/99942
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
G10L15/22
PHYSICS
H04M3/4938
ELECTRICITY
G10L15/187
PHYSICS
G10L15/193
PHYSICS
Y10S707/99943
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
International classification
G10L15/30
PHYSICS
G10L15/187
PHYSICS
G10L15/22
PHYSICS
Abstract
The present invention relates to a system for acquiring information from sources on a network, such as the Internet. A voice browsing system maintains a database containing a list of information sources, such as web sites, connected to a network. Each of the information sources is assigned a rank number which is listed in the database along with the record for the information source. In response to a speech command received from a user, a network interface system accesses the information source with the highest rank number in order to retrieve information requested by the user.
Claims
1. A system comprising: (a) at least one data processor, the at least one data processor operatively coupled to a plurality of communication data networks; (b) at least one speaker-independent speech-recognition engine operatively coupled to the data processor; (c) memory accessible to the at least one data processor and storing at least: (i) an instruction set for querying of information to be retrieved from a plurality of sources coupled to the plurality of communication data networks, the instruction set comprising: an indication of the plurality of sources, each identified by a source identifier, and each identifying certain information to be retrieved from the source identifier, and (ii) at least one recognition grammar executable code corresponding to each instruction set and corresponding to data characterizing audio containing a naturally-spoken-speech command including an information request, (d) wherein the at least one speaker-independent-speech-recognition engine is adapted to: (1) receive the data characterizing audio containing the naturally-spoken-speech command from a voice-enabled device via a first of the plurality of communication data networks; (2) to recognize phenomes in the data characterizing audio containing naturally-spoken-speech commands to understand spoken words; and (3) to generate recognition results data, (e) wherein the at least one data processor is adapted to: (1) select the corresponding at least one recognition grammar executable code upon receiving the data characterizing the audio containing the naturally-spoken-speech command and to convert the data characterizing the audio containing the naturally-spoken-speech command into a data message for transmission to a network interface adapted to access a second of the plurality of communication data networks; and (2) retrieve the instruction set corresponding to the recognition grammar executable codes provided by the at least one speaker-independent-speech-recognition engine and to access the information source queried by the instruction set to obtain at least a part of the information to be retrieved, and (f) at least one speech-synthesis device operatively coupled to the at least one data processor, the at least one speech-synthesis device configured to produce an audio message relating to any resulting information retrieved from the plurality of information sources including a text-to-speech conversion of at least certain data in said any resulting information retrieved from the plurality of information sources, and to convey the audio message via the voice-enabled device.
2. The system of claim 1, wherein the plurality of communication data networks includes the Internet.
3. The system of claim 1, wherein the plurality of communication data networks include a local-area network.
4. The system of claim 1, wherein the voice-enabled device is a home device.
5. The method of claim 1, wherein the voice-enabled device is at least one of a group of an IP telephone, a cellular phone, a personal computer, a media player appliance, and a television or other video display device.
6. The system of claim 1, wherein the speaker-independent-speech-recognition engine is adapted to analyze the phonemes to recognize conversational naturally-spoken-speech commands.
7. The system of claim 1, wherein the speaker-independent-speech-recognition engine is adapted to recognize the naturally-spoken-speech commands.
8. The system of claim 1, wherein the instruction set executable code further comprises: a content descriptor associated with each information-source identifier, the content descriptor pre-defining a portion of the information source containing the information to be retrieved.
9. The system of claim 1, further comprising: a database operatively connected to the data processor, the database adapted to store the information gathered from the information sources in response to the information requests.
10. The system of claim 8, wherein each recognition grammar executable code and each instruction set for querying of information to be retrieved are stored in the database.
11. A method comprising: (a) providing at least one data processor, the data processor operatively coupled to a plurality of communication data networks; (b) providing at least one speaker-independent-speech-recognition engine operatively coupled to the at least one data processor (c) providing memory accessible to the data processor storing at least: (i) an instruction set for querying of the information to be retrieved from a plurality of sources coupled to the plurality of communication data networks, the instruction set comprising: an indication of the plurality of sources, each identified by an information-source identifier, and each identifying certain information to be retrieved from the information-source identifier, and (ii) at least one recognition grammar executable code corresponding to each instruction set and corresponding to data characterizing audio containing a naturally-spoken-speech command including an information request, (d) the at least one speaker-independent-speech-recognition engine: (i) receiving the data characterizing audio containing the naturally-spoken-speech command from the voice-enabled device via a first of the communication data networks, (ii) recognizing phenomes in the data characterizing audio containing the naturally-spoken-speech commands to understand spoken words, and (iii) generating recognition-results data, (e) the least one data processor programmed to: (i) select the corresponding at least one recognition grammar executable code upon receiving the data characterizing audio containing the naturally-spoken-speech command and convert the data characterizing audio containing naturally-spoken-speech command into a data message for transmission to a network interface adapted to access a second of the one communication networks; and (ii) retrieve the instruction set corresponding to the recognition grammar executable provided by the at least one speaker-independent-speech-recognition device and access the information source identified by the instruction set to obtain at least a part of the information to be retrieved; and (f) providing at least one speech-synthesis device operatively connected to the at least one data processor, and by the at least one speech-synthesis device adapted to: (i) produce an audio message relating to any resulting information retrieved from the plurality of information sources including text-to-speech conversion of said any resulting information retrieved from the plurality of information sources, and (ii) transmit the audio message via the voice-enabled device.
12. The method of claim 11, wherein the plurality of communication data networks includes the Internet.
13. The method of claim 11, wherein the plurality of communication data networks include a local-area network.
14. The method of claim 11, wherein the voice-enabled device is a telephone.
15. The method of claim 11, wherein the speaker-independent-speech-recognition engine is adapted to analyze the phonemes to recognize conversational naturally-spoken-speech commands.
16. The method of claim 11, wherein the speaker-independent-speech-recognition engine is adapted to recognize the naturally-spoken-speech commands.
17. The method of claim 11, wherein the instruction set executable code further comprises: a content descriptor associated with each information-source identifier, the content descriptor pre-defining a portion of the information source containing the information to be retrieved.
18. The method of claim 11, further comprising: providing a database and operatively connecting the database to the data processor and storing the information gathered from the information sources in response to the information requests in the database.
19. The method of claim 18, wherein each recognition grammar executable code and each instruction set are stored in the database.
20. The method of claim 18, wherein the voice-enabled device is at least one of a group of an IP telephone, a cellular phone, a personal computer, a media player appliance, and a television or other video display device.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0021]
[0022]
[0023]
[0024]
[0025]
DETAILED DESCRIPTION OF THE INVENTION
[0026] A first embodiment of the present invention is a system and method for allowing users to browse information sources, such as web sites, by using naturally spoken, conversational voice commands spoken into a voice enabled device. Users are not required to learn a special language or command set in order to communicate with the voice browsing system of the present invention. Common and ordinary commands and phrases are all that is required for a user to operate the voice browsing system. The voice browsing system recognizes naturally spoken voice commands and is speaker-independent; it does not have to be trained to recognize the voice patterns of each individual user. Such speech recognition systems use phonemes to recognize spoken words and not predefined voice patterns.
[0027] The first embodiment allows users to select from various categories of information and to search those categories for desired data by using conversational voice commands. The voice browsing system of the first preferred embodiment includes a user interface system referred to as a media server. The media server contains a speech recognition software engine. This speech recognition engine is used to recognize natural, conversational voice commands spoken by the user and converts them into data messages based on the available recognition grammar. These data messages are then sent to a network interface system. In the first preferred embodiment, the network interface system is referred to as a web browsing server. The web browsing server then accesses the appropriate information source, such as a web site, to gather information requested by the user.
[0028] Responses received from the information sources are then transferred to the media server where speech synthesis engine converts the responses into audio messages that are transmitted to the user. A more detailed description of this embodiment will now be provided.
[0029] Referring to
[0030] Table 1 below depicts two database records 200 that are used with the preferred embodiment. These records also contain a field indicating the category of the record, which is weather in each of these examples.
TABLE-US-00001 TABLE 1 category: weather URL:URL=http://cgi.cnn.com/cgi- bin/weather/redirect?zip=_zip rank: 1 command: web_dispatch.pl weather_cnn browsingServer: wportal1 browsingServerBackup: wportal2 dateTime: Dec 21 2000 2:15 PM category: weather URL: URL= http: //weather.lycos.com/wcfiveday.asp?city=zip rank: 2 command: web_dispatch.pl weather_lycos browsingServer: wportal1 browsingServerBackup: wportal2 dateTime: Dec 21 2000 1:45 PM
[0031] The database also contains a listing of pre-recorded audio files used to create concatenated phrases and sentences. Further, database 100 may contain customer profile information, system activity reports, and any other data or software servers necessary for the testing or administration of the voice browsing system.
[0032] The operation of the media servers 106 will now be discussed in relation to
[0033] The speech recognition function is performed by a speech recognition engine 300 that converts voice commands received from the user's voice enabled device 112 (i.e., any type of wireline or wireless telephone, Internet Protocol (IP) phones, or other special wireless units) into data messages. In the preferred embodiment, voice commands and audio messages are transmitted using the PSTN 116 and data is transmitted using the TCP/IP communications protocol. However, one skilled in the art would recognize that other transmission protocols may be used for either voice or data. Other possible transmission protocols would include SIP/VoIP (Session Initiation Protocol/Voice over IP), Asynchronous Transfer Mode (ATM) and Frame Relay. A preferred speech recognition engine is developed by Nuance Communications of 1380 Willow Road, Menlo Park, Calif. 94025 (www.nuance.com). The Nuance engine capacity is measured in recognition units based on CPU type as defined in the vendor specification. The natural speech recognition grammars (i.e., what a user can say that will be recognized by the speech recognition engine) were developed by Webley Systems.
[0034] Table 2 below provides a partial source code listing of the recognition grammars used by the speech recognition engine of the preferred embodiment for obtaining weather information.
TABLE-US-00002 TABLE 2 ?WHAT_IS ?the weather?[info information report conditions] ?( (?like in) ] UScities:n {<paraml $n.zip> <param2$n.city> <param3 $n.state>} ( (area code) AREA_CODE:n ) {<paraml $n>} ( AREA_CODE:n (area code) ) {<paraml $n>} ( (ZIP_CODE:n (zip ?code) ) {<paraml $n>} ] ) ) {<mem 194>}
[0035] The media server 106 uses recognition results generated by the speech recognition engine 300 to retrieve a web site record 200 stored in the database 100 that can provide the information requested by the user. The media server 106 processes the recognition result data identifying keywords that are used to search the web site records 200 contained in the database 100. For instance, if the user's request was What is the weather in Chicago?, the keywords weather and Chicago would be recognized. A web site record 200 with the highest rank number from the weather category within the database 100 would then be selected and transmitted to the web browsing server 102 along with an identifier indicating that Chicago weather is being requested.
[0036] The media servers 106 also contain a speech synthesis engine 302 that converts the data retrieved by the web browsing servers 102 into audio messages that are transmitted to the user's voice enabled device 112. A preferred speech synthesis engine is developed by Lernout and Hauspie Speech Products, 52 Third Avenue, Burlington, Mass. 01803 (www.lhsl.com).
[0037] A further description of the web browsing server 102 will be provided in relation to
[0038] Upon receiving a web site record 200 from the database 100 in response to a user request, the web browsing server 102 invokes the content extraction agent command 206 contained in the record 200. The content extraction agent 400 allows the web browsing server 102 to properly format requests and read responses provided by the web site 114 identified in the URL field 204 of the web site record 200. Each content extraction agent command 206 invokes the content extraction agent and identifies a content description file associated with the web page identified by the URL 204. This content description the directs the extraction agent where to extract data from the accessed web page and how to format a response to the user utilizing that data. For example, the content description for a web page providing weather information would indicate where to insert the city name or ZIP code in order to retrieve Chicago weather information. Additionally, the content description file for each supported URL indicates the location on the web page where the response information is provided. The extraction agent 400 uses this information to properly extract from the web page the information requested by the user.
[0039] Table 3 below contains source code for a content extraction agent 400 used by the preferred embodiment.
TABLE-US-00003 TABLE 3 #!/usr/local/www/bin/sybper15 #$Header: /usr/local/cvsroot/webley/agents/service/web_dispatch.pl,v 1.6 # Dispatches all web requests #http://wcorp.itn.net/cgi/flstat?carrier=ua&flight_no=155&mo n_abbr=jul&date= 6&stamp=OhLN~PdbuuE*itn/ord,itn/cb/sprint_hd #http://cgi.cnnfn.com/flightview/rlm?airline=amt&number=300 require config_tmp.pl ; #check parameters die Usage: $0 service [params]\n if $#ARGV < 1; #print STDERR @ARGV; #get parameters my %Services = ( weather_cnn => webget.pl weather_cnn, weather_lycos => webget.pl weather_lycos, weather_weather => webget.pl weather_weather, weather_snap => webget.pl weather_snap, weather_infospace => webget.pl weather_infospace, stockQuote_yahoo => webget.pl stock, flightStatus_itn => webget.pl flight_delay, yellowPages_yahoo => yp_data.pl, yellowPages_yahoo => yp_data.pl, newsHeaders_newsreal => news.pl, newsArticle_newsreal => news.pl, ) ; # test param my $date = date; chop ( $date ); my ( $short_date ) = $date =~ / \s+ (\w{3}\s+\d{1,2})\s+/; my %Test = ( weather_cnn => 60053, weather_lycos => 60053, weather_weather => 60053, weather_snap => 60053, weather_infospace => 60053, stockQuote_yahoo => msft, flightStatus_itn => ua 155 . $short_date, yellowPages_yahoo => tires 60015, newsHeaders_newsreal => 1, newsArticle_newsreal => 1 1, ); die $date: $0: error: no such service: $service (check this script)\n unless $Services {$service }; # prepare absolute path to run other scripts my ( $path, $script ) = $0 =~ ml{circumflex over ()} (*/) ([{circumflex over ()}/]*) | ; # store the service to compare against datatable my $service_stored = $service; # run service While ( !( $response = $path$Services [$service }@param ) ) { # response failed # check with test parameters $response = $path$Services{service }$Test{$service }; if ( $response ) { $service = &switch_service ( $service ); # print Wrong parameter values were supplied: $service - @param\n; # die $date: $0: error: wrong parameters: $service - @param\n; } else { # change priority and notify $service = &increase_attempt( $service ) ; } } # output the response print $response; sub increase_attempt { my ( $service ) = @_; my ( $service_name ) + split ( /_/, $service ); print STDERR $date: $0: attn.: changing priority for service: $service\n; # update priority &db_query( update mcServiceRoute / set priority = ( select max ( priority ) from mcServiceRoute . where service = $service_name ) + 1 . date = getdate( ), . attempt = attempt + 1 . where route = $script $service ); # print ---$route===\n; # find new route my $route = @{&db_query( select route from mcServiceRoute . where service = $service_name . and attempt < 5 . order by priority ) } > [0] {route }; &db_query( update mcServiceRoute . set attempt = ) . where route = $script $service ) if ( $route eq $script $service_stored ) ; or $route eq $script $service_stored ) ; ( $service_name, $service ) = split( / \ s + /, $route ); die $date: $0: error: no route for the service: $service (add more) \n unless $service; return $service; } sub switch_swervice { my ( $service ) = @_; my ( $service_name ) = split( /_/, $service ); print STDERR $date: $0: attn.: changing priority for service: $service\n; # update priority &db_query( update mcServiceRoute . set priority = ( select max ( priority ) from mcServiceRoute . where service = $service_name ) + 1, . date = getdate ( ) . where route = $script $service ) ; # print ---$route===\n; # find new route my $route = @{&db_query( select route from mcServiceRoute . where service = $service_name . and attempt < 5 . order by priority ) } > [0] {route }; die $date: $0: error: there is the only service: $route (add more) \n if ( $route eq $script $service or $route eq $script $service_stored ) ; ( $service_name, $service ) = split( / \s+/, $route ); die $date: $0: error: no route for the service: $service (add more) \n nless $service; return $service; } -
[0040] Table 4 below contains source code of the content fetcher 402 used with the content extraction agent 400 to retrieve information from a web site.
TABLE-US-00004 TABLE 4 #!/usr/local/www/bin/sybper15 #-T # -w # $Header: /usr/local/cvsroote/Webley/agents/service/webget.pl,v 1.4 # Agent to get info from the web. # Parameters: service_name [service_parameters], i.e. stock msft or weather 60645 # Configuration stored in files service_name.ini # if this file is absent the configuration is received from mcServices table # This script provides autoupdate to datatable if the .ini file is newer. $debug= 1; use URI : : URL; use LWP : : UserAgent; use HTTP : : Request : : Common; use Vail : : VarList; use Sybase : : CTlib; use HTTP : : Cookies; #print Sybase: : CTlib $DB_USR, $DB_PWD, $DB_SRV; ; open (STDERR, >>$0.log ) if $debug; #open ( STDERR, >&STDOUT ) ; $log = date; #$response = ./url.pl http://cgi.cnn.com/cgi-bin/weather/redirect?zip=60605 ; #$response = pwd; #print STDERR ls = $response\n ; #$response = ls; #print STDERR ls = $response\n; chop ( $log ); $log .= pwd= . pwd; chop ( $log ); #$debug2 = 1; my $service = shift; $log .= $service: . Join( : , @ARGV ) . \n ; Print STDERR $log if $debug; #$response = ./url.pl /http://cgi.cnn.com/cgi-bin/weather/redirect?zip=60605 ; my @ini = &read_ini ( $service ); chop( @ini ); my $section = ; do ($section = &process_section ( $section ) }while $section; #$response = ./url.pl http://cgi.cnn.com/cgi-bin/weather/redirect?zip=60605 ; exit; sub read_ini { my ( $service ) = @_; my @ini = ( ); # first, try to read file $0 =~ m|{circumflex over ()} (.*/) [{circumflex over ()}/]*|; $service = $1 . $service; if ( open ( INI, $service.ini ) ) { @ ini = ( <INI> ); return @ ini unless ( $DB_SRV ); # update datatable My $file_time = time int( ( -M $service.ini ) * 24* 3600 ) ; # print time $file_time\n; my $dbh = new Sybase: : CTlib $DB_USR, $DB_PWD, $DB_SRV; unless ( $dbh ) { print STDERR webget.pl: Cannot connect to dataserver $DB_SRV:$DB_USR:$DB_PWD\n; return @ini; } my @row_refs = $dbh > ct_sql ( select lastUpdate from mcServices where service = $service , undef, 1 ); if ($dbh > RC } == CS_FAIL ) { print STDERR webget.pl: DB select from mcServices failed\n; return @ini; } unless (defined @ row_refs ) { # have to insert my ( @ini_escaped ) = map { ( my $x = $_ ) =~ } s/ \ / \ \ / g; $x; }@ini; $dbh> ct_sql ( insert mcServices values ( $service, @ini_escaped, $file_time ) ); if ( $dbh> {RC } = CS_FAIL ) { print STDERR webget,pl: DB insert to mcServices failed\n; } return @ini; } Print time $file_time:.$row_refs [ 0 ] >{lastUpdate } . \n ; if ( $file_time > $row_refs [0] => {lastUpdate }) { # have to update my ( @ini_escaped ) = map { ( my $x = $_ ) =~s/ \/ \\/g; $x; }@ini; $dbh>ct_sql ( update mcServices set config = @ini_escaped, lastUpdate = $file_time where service = $service ); if ( $dbh > {RC } ==CS_FAIL ) { print STDERR webget.pl: DB update to mcServices failed\n; } } return @ini; } else { print STDERR $0: WARNING: $service.ini n/a in . pwd . Try to read DB\n; } # then try to read datatable die webget.pl: Unable to find service $service\n unless ( $DB_SRV) ) ; my $dbh = new Sybase : : CTlib $DB_USR, $DB_PWD, $DB_SRV; die webgetlpl: Cannot connect to dataserver $DB_SRV : $DB_USR: $DB_PWD\n unless ( $dbh ); my @row_refs = $dbh > ct_sql ( select config from mcServices where service = $service , undef, 1 ); die webget.pl: Unable to find service $service\n unless ( defined @row_refs ) ; $row_refs [0] > {config } =~ s/\n /\n\r/g; @ini = split ( / \ r /, $row_refs [ 0 ] > {config } ); return @ini; } - ######################################################################### sub process_section { my ( $prev_section ) = @_; my ( $section, $output, $content ); my %Param; my %Content; # print ######################\n; foreach ( @ini ) { # print; # chop; s/ \s+ $ / / ; s/ {circumflex over ()} \s+ / /; # get section name if( /{circumflex over ()}\ [ (.* ) / ] / ) { # print $_: $section:$prev_section\n; last if $section; next if $1 eq print ; next if $prev_section ne and $prev_section ne $1; if ( $prev_section eq $1 ) { $prev_section = next; } $section = $1; } # get parameters push ( @{$Param{$1 }}, $2 ) if $section and /([{circumflex over ()}=]+) (.*) / ; } # print ++++++++++++++++++++++++++++++++++\n ; return 0 unless $section; # print section $section\n; # substitute parameters with values map {$Param{URL } > [ 0 ] =~ s/$Param{ Input } > [ $_ ] / $ARGV [ $_ ] / g }0 . . $#{$Param{Input }}; # get page content ( $Content{TIME }, $content ) = &get_url_content ( ${$Param {URL } } [ 0 ] ) ; # filter it map { if ( / \ ([{circumflex over ()}\] + ) \ ([{circumflex over ()}\]*) \ / or / \ / ( [{circumflex over ()} \ / ] + ) \ / ( [ {circumflex over ()} \ /]*) \ / / ) { my $out = $2; $content =~ s/$1/$out/g; } -}@{$Param {Pre-filter } }; #print STDERR $content; #do main regular expression unless ( @values = $content =~ /$ {$Param {Regular_expression } } [ 0 ] / ) { &die_hard ( ${$Param{Regular_expression } } [0 ], $content ); return $section; } %Content = map { ( $Param[Output } > [ $_ ], $values [ $_ ] ) }0 . . $*{$Param{Output }} ; # filter it map { if ( / ([{circumflex over ()}\]+) \ ([{circumflex over ()}\] +) \ = ( [{circumflex over ()}\] +) \ / or / ([{circumflex over ()}\ /]+) \ / ([{circumflex over ()} \ / ] + ) \ / ( [ {circumflex over ()} \ / ] * ) \ / / ) { my $out = $3; $Content {$1 } =~ s/$2/$out/g; } _ }@{Param {Pre-filer } }; #print STDERR $content; # do main regular expression unless ( @values = $content =~ /${$Param{Regular_expression } } [ 0 ] / ) { &die_hard( ${$Param{Regular_expression}} [ 0 ], $content ); return $section; } %Content= map { ( $Param{Output }>[ $_ ], $values [ $_ ] ) }0 .. $#{$Param{Output }}; #filter it map { if ( / ([ {circumflex over ()} \] +) \ ( [ {circumflex over ()}\]+) \ ( [ {circumflex over ()} \ ] * ) \ / or / ( [{circumflex over ()}\ / ] + ) \ / ( [ {circumflex over ()} \ / ] + ) \ / ( [ {circumflex over ()} \ / ] * ) \ / / ) { my $out = $3; $Content {$1 } =~ s/$2/$out/g; } }@{$Param{Post-filter } }; # calculate it map { if { / ( [ {circumflex over ()} = ] + ) = (.*) / ) { my $eval = $2; map {$eval =~ s/$_ /$Content {$_ } / g } keys %Content; $Content {$1 } = eval ($eval ) ; } }@{$Param{Calculate }}; # read section [print] foreach $i ( 0 .. $#ini ) { next unless $ini [ $i ] =~ /{circumflex over ()}\ [print \ ] /; foreach ( $i + 1 . . $#ini ) { last if $ini [ $_ ] =~ /{circumflex over ()}\ [.+\]/; $output .= $ini [ $_] . \n; } last; } # prepare output map {$output =~ s/$_/$Content{$_} / g }keys %Content; print $output; -return 0; } ####################################################### sub get_url_content { my ( $url ) = @_; print STDERR $url if $debug; # $response= ./url.pl $url ; $response = ./url.pl $url ; return( $time time, $response ); my $ua = LWP: :UserAgent>new; $ua>agent( Mozilla/4.0 [en] (X11; I; freeBSD 2.2.8- STABLE i386) ) ; # $ua>proxy( [http, https], http://proxy.webley:3128/ ) ; # $ua>no_proxy( webley, vail ); my $cookie= HTTP::Cookies>new; $ua>cookie_jar( $cookie ) ; $url = url $url; print $unl\n if $debug2; my $time = time; my $res = $ua>request( GET $url ); print Response: . ( time $time sec\n if $debug2; return( $time time, $res>content ) ; }] ###################################################### sub die_hard { my ( $re, $content ) = @_; my ( $re_end, $pattern ) ; while( $content !~ /$re/ ) { if ( $re =~ s/(\([\(\))+\) [\(\) | *$) / / ) } $re_end = $1 . $re_end; } else { $re_end = $re; last; } } $content =~ /$re/; Print STDERR The regular expression did not match:\n $ re\n Possible misuse: $re end:\n Matched: $&\n Mismatched: $\n if $debug; if ( $debug ) { print STDERR Content:\n $content\n unless $; - } } #######################################################
[0041] Table 5 below contains the content descriptor file source code for obtaining weather information from the web site www.cnn.com that is used by the extraction agent 400 of the preferred embodiment.
TABLE-US-00005 TABLE 5 [cnn] Input=_zip URL=http://cgi.cnn.com/cgi-bin/weather/redirect?zip=_zip Pre-filter=\n Pre-filter=<[{circumflex over ()}< >]+> Pre-filter=/ \s+/ / Pre-filter= [ \ ( \) \ | ] ! Output=_location Output=first_day_name Output=first_day_weather Output=first_day_high_F Output=first_day_high_C Output=first_day_low_F Output=first_day_low_C Output=second_day_name Output=second_day_weather Output=second_day_high_F Output=second_day_high_C Output=second_day_low_F Output=second_day_low_C Output=third_day_name Output=third_day_weather Output=third_day_high_F Output=third_day_high_C Output=third_day_low_F Output=third_day_low_C Output=fourth_day_name Output=fourth_day_weather Output=fourth_day_high_F Output=fourth_day_high_C Output=fourth_day_low_F Output=fourth_day_low_C Output=undef Output=_current_time Output=_current_month Output=_current_day Output=_current_weather Output=_current_tempenature_F Output=_current_temperature_C Output=_humidity Output=_wind Output=_pressure Output=_sunrise Output=_sunset Regular_expression=Author (.+) Four Day Forecast (\S+) (\S+) HIGH (\S+) F (\S+) C LOW (\S+) F (\S+) C (\S+) (\S+) HIGH (\S+) F (\S+) C LOW (\S+) F (\S+) C (\S+) (\S+) HIGH (\S+) F (\S+) C LOW (\S+) F (\S+) C (\S+) (\S+) HIGH (\S+) F (\S+J C LOW (\S+) F (\S+) C (.+) Current Conditions (.+) ! local ! , (\S+) (\S+) (. t) Temp: (\S+) F, (\S+) C Rel. Humidity: ( \S+) Wind: (.+) Pressure: (.+) Sunrise: (.+) Sunset: (.+) Related Links Post-filter=_current_weather p/ partly Post-filter=_current weatherl/little Post-filter=_current_weatherm/mostly Post-filter=_current_weathert-/thunder - Post-filter=_windNNorth Post-filter=_windEEast Post-filter=_windSSouth -- Post-filter=_windWWest fl Post-filter=_wind/mph/miles per hour/ Post-filter=_wind/kph!/kilometers per hour/ Post-filter=_wind \s+ !, [print] Current weather in _location is_current_weather. Temperature is _current_temperature_F Fahrenheit, _current_temperature_C Celsium. Humidity is_humidity. Wind from the _wind.
[0042] Table 6 below contains the content descriptor file source code for obtaining weather information from the web site www.lycos.com that is used by the extraction agent 400 of the preferred embodiment.
TABLE-US-00006 TABLE 6 [lycos] Input=zip Input=_city URL=http://weather.lycos.com/wcfiveday.asp?city=zip Pre-filter=\n Pne-filter=</TD>td Pre-filter=<!.*?> Pre-filter=<br>_br_ Pre-filter=/alt/>alt=/ Pre-filter=<[{circumflex over ()}< >]+> Pre-filter= Pre-filter=/ \s+/ / Output=_location Output=_current_weather Output=_current_temperature_F Output=_humidity Output=_winddir Output=_windspeed Output=_windmeasure Output=_pressure Output=first_day_name Output=second_day_name Output=third_day_name Output=fourth_day_name Output=fifth_day_name Output=first_day_weather Output=second_day_weather Output=third_day_weather Output=fourth_day_weather Output=fifth_day_weather Output=first_day_high_F Output=first_day_low_F Output=second_day_high_F Output=second_day_low_F Output=third_day_high_F Output=third_day_low_F Output =fourth_day_high_F Output=fourth_day_low_F Output=fifth_day_high_F Output=fifth_day_low_F Output=_windkmh Regular expression=Guide My Lycos (.+) Click image to enlarge alt=([{circumflex over ()}]+) (?:.+) Temp: (\d+) (?:.+)F_br_Humidity: (\S+) (?:.+) Wind: (.+?) _br_ Output=_current_temperature_C Post-filter=_location_br_ Post-filter=_current_weatherp/partly Post-filter=_current_weatherm/mostly Post-filter=_current weathert-/thunder Post-filter=_winddir@ at Post-filter=_winddir/mph/miles per hour/ Post-filter=_wind/kph!/kilometers per hour/ Calculate=_current_temperature_C=int ( (_current_temperature_F 32) * 5/9) Calculate=_windkmh=int(_windspeed*1.6) [print] The current weather in _location is _current_weather. The current temperature is _current_temperature_F_Farenheit _current_temperature_C Celsius. Humidity is _humidity. Winds _winddir.
[0043] Once the web browsing server 102 accesses the web site specified in the URL 204 and retrieves the requested information, the information is forwarded to the media server 106. The media server uses the speech synthesis engine 302 to create an audio message that is then transmitted to the user's voice enabled device 112. In the preferred embodiment, each web browsing server 102 is based upon Intel's Dual Pentium III 730 MHz microprocessor system.
[0044] Referring to
[0045] As an example, if a user wishes to obtain restaurant information, he may speak into his telephone the phrase yellow pages. The FIR application would then ask the user what he would like to find and the user may respond by stating restaurants. The user may then be provided with further options related to searching for the desired restaurant. For instance, the user may be provided with the following restaurant options, Mexican Restaurants, Italian Restaurants, or American Restaurants. The user then speaks into the telephone 112 the restaurant type of interest. The IVR application running on the media server 106 may also request additional information limiting the geographic scope of the restaurants to be reported to the user. For instance, the IVR application may ask the user to identify the zip code of the area where the restaurant should be located. The media server 106 uses the speech recognition engine 300 to interpret the speech commands received from the user. Based upon these commands, the media server 106 retrieves the appropriate web site record 200 from the database 100. This record and any additional data, which may include other necessary parameters needed to perform the user's request, are transmitted to a web browsing server 102. A firewall 104 may be provided that separates the web browsing server 102 from the database 100 and media server 106. The firewall provides protection to the media server and database by preventing unauthorized access in the event the firewall for web browsing server 108 fails or is compromised. Any type of firewall protection technique commonly known to one skilled in the art could be used, including packet filter, proxy server, application gateway, or circuit-level gateway techniques.
[0046] The web browsing server 102 then uses the web site record and any additional data and executes the extraction agent 400 and relevant content descriptor file 406 to retrieve the requested information.
[0047] The information received from the responding web site 114 is then processed by the web browsing server 102 according to the content descriptor file 406 retrieval by the extraction agent. This processed response is then transmitted 30 to the media server 106 for conversion into audio messages using either the speech synthesis software 302 or selecting among a database of prerecorded voice responses contained within the database 100.
[0048] As mentioned above, each web site record contains a rank number 202 as shown in
[0049] The web site ranking method and system of the present invention provides robustness to the voice browser system and enables it to adapt to changes that may occur as web sites evolve. For instance, the information required by a web site 114 to perform a search or the format of the reported response data may change. Without the ability to adequately monitor and detect these changes, a search requested by a user may provide an incomplete response, no response, or an error. Such useless responses may result from incomplete data being provided to the web site 114 or the web browsing server 102 being unable to recognize the response data messages received from the searched web site 114.
[0050] The robustness and reliability of the voice browsing system of the present invention is further improved by the addition of a polling mechanism. This polling mechanism continually polls or pings each of the sites listed in the database 100. During this polling function, a web browsing server 102 sends brief data requests or polling digital data to each web site listed in database 100. The web browsing server 102 monitors the response received from each web site and determines whether it is a complete response and whether the response is in the expected format specified by the content descriptor file 406 used by the extraction agent 400. The polled web sites that provide complete responses in the format expected by the extraction agent 400 have their ranking established based on their response lime. That is, web sites with faster response times will be will be assigned higher rankings than those with slower response times. If the web browsing server 102 receives no response from the polled web site or if the response received is not in the expected format, then the rank of that web site is lowered. Additionally, the web browsing server contains a warning mechanism that generates a warning message or alarm for the system administrator indicating that the specified web site has been modified or is not responsive and requires further review.
[0051] Since the web browsing servers 102 access web sites based upon their ranking number, only those web sites that produce useful and error-free responses will be used by the voice browser system to gather information requested by the user. Further, since the ranking numbers are also based upon the speed of a web site in providing responses, only the most time efficient sites are accessed. This system assures that users will get complete, timely, and relevant responses to their requests. Without this feature, users may be provided with information that is not relevant to their request or may not get any information at all. The constant polling and reranking of the web sites used within each category allows the voice browser of the present invention to operate efficiently. Finally, it allows the voice browser system of the present invention to dynamically adapt to changes in the rapidly evolving web sites that exist on the Internet.
[0052] It should be noted that the web sites accessible by the voice browser of the preferred embodiment may use any type of mark-up language, including Extensible Markup Language (XML), Wireless Markup Language (WML), Handheld Device Markup Language (HDML), Hyper Text Markup Language (HTML), or any variation of these languages.
[0053] A second embodiment of the present invention is depicted in
[0054] Each of these devices 500 is connected to a network 502. These devices 500 may contain embedded microprocessors or may be connected to other computer equipment that allow the device 500 to communicate with network 502. In the preferred embodiment, the devices 500 appear as web sites connected to the network 502. This allows a network interface system, such as a device browsing server 506, a database 508, and a user interface system, such as a media server 510, to operate similar to the web browsing server 102, database 100 and media server 106 described in the first preferred embodiment above. A network 502 interfaces with one or more network interface systems, which are shown as device browsing servers 506 in
[0055] Database 508 lists all devices that are connected to the network 502. For each device 500, the database 508 contains a record similar to that shown in
[0056] The content extraction agent operates similarly to that described in the first embodiment. A device descriptor file contains a listing of the options and functions available for each of the devices 500 connected on the network 502. Furthermore, the device descriptor file contains the information necessary to properly communicate with the networked devices 500. Such information would include, for example, communication protocols, message formatting requirements, and required operating parameters.
[0057] The device browsing server 506 receives messages from the various networked devices 500, appropriately formats those messages and transmits them to one or more media servers 510 which are part of the device browsing system. The user's voice enabled devices 504 can access the device browsing system by calling into a media server 510 via the Public Switched Telephone Network (PSTN) 512. In the preferred embodiment, the device browsing server is based upon Intel's Dual Pentium III 730 MHz microprocessor system.
[0058] The media servers 510 act as user interface systems and perform the functions of natural speech recognition, speech synthesis, data processing, and call handling. The media server 510 operates similarly to the media server 106 depicted in
[0059] First, a user may call into a media server 510 by dialing a telephone number associated with an established device browsing system. Once the user is connected, the IVR application of the media server 510 will provide the user with a list of available systems that may be monitored or controlled based upon information contained in database 508.
[0060] For example, the user may be provided with the option to select Home Systems or Office Systems. The user may then speak the command access home systems. The media server 510 would then access the database 508 and provide the user with a listing of the home subsystems or devices 500 available on the network 502 for the user to monitor and control. For instance, the user may be given a listing of subsystems such as Outdoor Lighting System, Indoor Lighting System, Security System, or Heating and Air Conditioning System. The user may then select the indoor lighting subsystem by speaking the command Indoor Lighting System. The IVR application would then provide the user with a set of options related to the indoor lighting system. For instance the media server 510 may then provide a listing such as Dining Room, Living Room, Kitchen, or Bedroom. After selecting the desired room, the IVR application would provide the user with the options to hear the status of the lighting in that room or to turn on, turn off', or dim the lighting in the desired room. These commands are provided by the user by speaking the desired command into the users voice enabled device 504. The media server 510 receives this command and translates it into a data message. This data message is then forwarded to the device browsing server 506 which routes the message to the appropriate device 500.
[0061] The device browsing system 514 of this embodiment of the present invention also provides the same robustness and reliability features described in the first embodiment. The device browsing system 514 has the ability to detect whether new devices have been added to the system or whether current devices are out-of-service. This robustness is achieved by periodically polling or pinging all devices 500 listed in database 508. The device browsing server 506 periodically polls each device 500 and monitors the response. If the device browsing server 506 receives a recognized and expected response from the polled device, then the device is categorized as being recognized and in-service. However, if the device browsing server 506 does not receive a response from the polled device 500 or receives an unexpected response, then the device 500 is marked as being either new or out-of-service. A warning message or a report may then be generated for the user indicating that a new device has been detected or that an existing device is experiencing trouble.
[0062] Therefore, this embodiment allows users to remotely monitor and control any devices that are connected to a network, such as devices within a home or office. Furthermore, no special telecommunications equipment is required for users to remotely access the device browser system. Users may use any type of voice enabled device (i.e., wireline or wireless telephones, IP phones, or other wireless units) available to them. Furthermore, a user may perform these functions from anywhere without having to subscribe to additional services. Therefore, no additional expenses are incurred by the user.
[0063] The descriptions of the preferred embodiments described above are set forth for illustrative purposes and are not intended to limit the present invention in any manner. Equivalent approaches are intended to be included within the scope of the present invention. While the present invention has been described with reference to the particular embodiments illustrated, those skilled in the art will recognize that many changes and variations may be made thereto without departing from the spirit and scope of the present invention. These embodiments and obvious variations thereof are contemplated as falling within the scope and spirit of the claimed invention.