CN109902163A - A kind of intelligent response method, apparatus, equipment and storage medium - Google Patents

A kind of intelligent response method, apparatus, equipment and storage medium Download PDF

Info

Publication number
CN109902163A
CN109902163A CN201910150423.4A CN201910150423A CN109902163A CN 109902163 A CN109902163 A CN 109902163A CN 201910150423 A CN201910150423 A CN 201910150423A CN 109902163 A CN109902163 A CN 109902163A
Authority
CN
China
Prior art keywords
function
service request
service
voice messaging
providing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910150423.4A
Other languages
Chinese (zh)
Other versions
CN109902163B (en
Inventor
赵永乐
甄林铁
曹洪伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Shanghai Xiaodu Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910150423.4A priority Critical patent/CN109902163B/en
Publication of CN109902163A publication Critical patent/CN109902163A/en
Application granted granted Critical
Publication of CN109902163B publication Critical patent/CN109902163B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the present invention proposes a kind of intelligent response method, apparatus, equipment and storage medium, and wherein method includes: to carry out the extraction of word slot and intention assessment at least one voice messaging, obtains the corresponding service request of at least one described voice messaging;Judge whether current business system is capable of providing the corresponding business service of the service request, if it is not, the voice messaging for updating the service request is re-entered in prompt.The embodiment of the present invention can provide the chance of change service request when current business system can not provide the corresponding business service of service request for user, rather than the service request of directly refusal user, therefore be able to ascend user experience.

Description

A kind of intelligent response method, apparatus, equipment and storage medium
Technical field
The present invention relates to field of artificial intelligence more particularly to a kind of intelligent response method, apparatus, equipment and storage to be situated between Matter.
Background technique
Intelligent response is a kind of to be realized by artificial intelligence and machine learning, solved for substituting a part of human cost The method of cumbersome question and answer work.Intelligent response is widely used in a large amount of fields at present, and such as enterprise's customer service, comes amusement chat Electricity reply etc., greatly reduces human cost, offers convenience for user.
Existing intelligent response equipment generally uses natural language processing (NLP, Natural Language Processing)/natural language understanding (NLU, Natural Language Understanding) mode, by more with user Wheel dialogue fills up all word slots until obtaining required word slot information.Later, the business that will be determined according to word slot information Request is sent to operation system, finally obtains the result of business service success or failure.
Word slot refers to and converts completion required for clear user instruction for initial user intention in mostly wheel dialog procedure Information.One word slot is corresponding with a kind of information of required acquisition in the processing of thing.For reserving physical examination, need to obtain Information include branch title, time, user's phone number etc., these contents are word slot.By taking turns interaction with user, obtain more Particular content to upper predicate slot is word slot information.
Such as following dialogue:
Which branch will intelligent response device: you reserve?
User: Zhichun Road shop.
Intelligent response device: it is good, when?
User: this Thursday.
Intelligent response device: your telephone number please be provide.
User: 186XXXXXXXX.
In the dialogue of above-mentioned three-wheel, word slot information needed for intelligent response device gets reservation physical examination.Later, by the use The corresponding service request of above-mentioned three voice messagings (reserving the physical examination in this Thursday Zhichun Road branch) at family is sent to business system System.If operation system inquires this Thursday Zhichun Road, branch has expired, and can not provide service for the user, then intelligent response fills Setting can be according to the result to user feedback voice messaging, such as: " reservation failure ".
In above process, user has only obtained " reservation after having carried out more wheel interactive voices and providing multinomial information Failure " as a result, both without failure cause and also without other suggestion, it is clear that user experience is bad.
Summary of the invention
The embodiment of the present invention provides a kind of intelligent response method and device, at least to solve the above technology in the prior art Problem.
In a first aspect, the embodiment of the invention provides a kind of intelligent response methods, comprising:
The extraction of word slot and intention assessment are carried out at least one voice messaging, it is corresponding to obtain at least one described voice messaging Service request;
Judge whether current business system is capable of providing the corresponding business service of the service request, if it is not, mentioning Show the voice messaging re-entered for updating the service request.
It is in one embodiment, described that the extraction of word slot and intention assessment are carried out at least one voice messaging, comprising:
The extraction of word slot and meaning are carried out at least one described voice messaging using pre-set natural language understanding function Figure identification.
In one embodiment, described to judge whether current business system is capable of providing the corresponding industry of the service request Business service, if it is not, voice messaging is re-entered in prompt, comprising:
Judge whether current business system is capable of providing the service request pair using pre-set service observation function The business service answered;
If it is not, determining that the current business system provides condition required when the business service, according to described Condition determines the word slot for needing to re-enter, and re-enters the language for updating the service request according to determining word slot prompt Message breath.
In one embodiment, the service observation function is reservation waiting function, for judging current business system Whether the service request corresponding subscription services are capable of providing;And/or
The service observation function is bluetooth connection function, for judging whether current business system is capable of providing the industry Corresponding bluetooth connection is requested in business;And/or
The service observation function is Wireless Fidelity contiguous function, for judging whether current business system is capable of providing institute State the corresponding Wireless Fidelity connection of service request.
In one embodiment, the prompt is re-entered after voice messaging, further includes:
The voice messaging re-entered is received, the extraction of word slot is carried out to the voice messaging re-entered and is intended to know Not;
Using institute's predicate slot extract and intention assessment as a result, updating the service request;
For updated service request, the step of executing the judgement is returned.
Second aspect, the embodiment of the present invention also propose a kind of intelligent response device, comprising:
Service request generation module obtains institute for carrying out the extraction of word slot and intention assessment at least one voice messaging State the corresponding service request of at least one voice messaging;
Judgment module, for judging whether current business system is capable of providing the corresponding business service of the service request;
Cue module, for when the result judged as cannot when, prompt to re-enter and asks for updating the business The voice messaging asked.
In one embodiment, the service request generation module, for using pre-set natural language understanding Function carries out the extraction of word slot and intention assessment at least one described voice messaging.
In one embodiment, the judgment module, for current using the judgement of pre-set service observation function Whether operation system is capable of providing the corresponding business service of the service request;
The cue module, for when the result judged as cannot when, determine that the current business system provides institute Condition required when business service is stated, the word slot for needing to re-enter is determined according to the condition, is prompted according to determining word slot Re-enter the voice messaging for updating the service request.
In one embodiment, the service observation function is reservation waiting function;The judgment module is for using The reservation waiting function judges whether current business system is capable of providing the corresponding subscription services of the service request;And/or
The service observation function is bluetooth connection function, and the judgment module is used to sentence using the bluetooth connection function Whether disconnected current business system is capable of providing the corresponding bluetooth connection of the service request;And/or
The service observation function is Wireless Fidelity contiguous function, and the judgment module is used to connect using the Wireless Fidelity It connects function and judges whether current business system is capable of providing the corresponding Wireless Fidelity connection of the service request.
In one embodiment, the service request generation module is also used to, and receives the voice messaging re-entered, right The voice messaging re-entered carries out the extraction of word slot and intention assessment;Using the extraction of institute's predicate slot and the knot of intention assessment Fruit updates the service request;
The judgment module is also used to, and it is corresponding to judge whether current business system is capable of providing updated service request Business service.
The third aspect, the embodiment of the invention provides a kind of intelligent response equipment, the function of the equipment can be by hard Part is realized, corresponding software realization can also be executed by hardware.The hardware or software include one or more and above-mentioned function It can corresponding module.
It is described to deposit including processor and memory in the structure of the intelligent response equipment in a possible design Reservoir is used to store the program for supporting the equipment to execute above-mentioned intelligent response method, the processor is configured to for executing The program stored in the memory.The equipment can also include communication interface, for logical with other equipment or communication network Letter.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, set for storing intelligent response Standby computer software instructions used comprising for executing program involved in above-mentioned intelligent response method.
A technical solution in above-mentioned technical proposal have the following advantages that or the utility model has the advantages that
The intelligent response method and apparatus that the embodiment of the present invention proposes, in the process for carrying out more wheel interactive voices with user In, get service request corresponding to user speech information.Judging that current business system can not provide the business and ask When seeking corresponding business service, user is prompted to re-enter the voice messaging for more new service request.This mode is to user The chance of change service request is provided, rather than directly refuses the service request of user when business service can not be provided, because This is able to ascend user experience.
Above-mentioned general introduction is merely to illustrate that the purpose of book, it is not intended to be limited in any way.Except foregoing description Schematical aspect, except embodiment and feature, by reference to attached drawing and the following detailed description, the present invention is further Aspect, embodiment and feature, which will be, to be readily apparent that.
Detailed description of the invention
In the accompanying drawings, unless specified otherwise herein, otherwise indicate the same or similar through the identical appended drawing reference of multiple attached drawings Component or element.What these attached drawings were not necessarily to scale.It should be understood that these attached drawings depict only according to the present invention Disclosed some embodiments, and should not serve to limit the scope of the present invention.
Fig. 1 is a kind of intelligent response method implementation flow chart of the embodiment of the present invention;
Fig. 2 is another intelligent response method implementation flow chart of the embodiment of the present invention;
Fig. 3 is that the process for the script that the embodiment of the present invention writes realization intelligent response method by the way of figure dragging is shown It is intended to one;
Fig. 4 is that the process for the script that the embodiment of the present invention writes realization intelligent response method by the way of figure dragging is shown It is intended to two;
Fig. 5 is a kind of intelligent response apparatus structure schematic diagram of the embodiment of the present invention;
Fig. 6 is a kind of intelligent response device structure schematic diagram of the embodiment of the present invention.
Specific embodiment
Hereinafter, certain exemplary embodiments are simply just described.As one skilled in the art will recognize that Like that, without departing from the spirit or scope of the present invention, described embodiment can be modified by various different modes. Therefore, attached drawing and description are considered essentially illustrative rather than restrictive.
The embodiment of the present invention mainly provides a kind of intelligent response method and apparatus, separately below by following embodiment into The expansion of row technical solution describes.
Such as a kind of intelligent response method implementation flow chart that Fig. 1 is the embodiment of the present invention, comprising:
S11: carrying out the extraction of word slot and intention assessment at least one voice messaging, obtains at least one described voice messaging Corresponding service request.
S12: judging whether current business system is capable of providing the corresponding business service of the service request, if it could not, Then follow the steps S13.
S13: the voice messaging for updating the service request is re-entered in prompt.
As shown in Fig. 2, a kind of intelligent response method implementation flow chart of the embodiment of the present invention can further include:
S14: receiving the voice messaging re-entered, carries out the extraction of word slot and intention to the voice messaging re-entered Identification.
S15: using institute's predicate slot extract and intention assessment as a result, updating the service request.Later, after for update Service request, return execute above-mentioned steps S12.
In a kind of possible embodiment, the extraction of word slot and intention are carried out at least one voice messaging in above-mentioned S11 Identification may include: to carry out word slot at least one described voice messaging using pre-set natural language understanding function to mention It takes and intention assessment.
Wherein, natural language understanding function can be the built-in function for encapsulating natural language understanding function, implement below Example will be described in detail the built-in function for encapsulating natural language understanding function.
In a kind of possible embodiment, it is described to judge whether current business system is capable of providing in above-mentioned steps S12 The corresponding business service of service request may include: to judge that current business system is using pre-set service observation function It is no to be capable of providing the corresponding business service of the service request;
Correspondingly, step S13 may include: that determining current business system provides condition required when the business service, root The word slot for needing to re-enter is determined according to the condition, is re-entered according to determining word slot prompt and is asked for updating the business The voice messaging asked.
Specifically, different application scenarios are corresponded to, the service observation function used in step S12 can be to reserve waiting letter Number, for judging whether current business system is capable of providing the corresponding subscription services of the service request;And/or
The service observation function can be bluetooth connection function, for judging whether current business system is capable of providing institute State the corresponding bluetooth connection of service request;And/or
The service observation function can be Wireless Fidelity (Wi-Fi, WIreless-FIdelity) contiguous function, be used for Judge whether current business system is capable of providing the corresponding Wi-Fi connection of the service request.
In addition, the embodiment of the present invention may further include: if the judging result in above-mentioned steps S12 is to be capable of providing The corresponding business service of the service request then uses pre-set business to provide function and indicates the current operation system for user There is provided service request corresponding business service.
Wherein, service observation function and business provide function and can be realized by the function that developer writes in advance, below It will be described in detail service observation function in embodiment and business provide function.
By taking the application scenarios mentioned in background technique as an example, developer can be write in advance for reserving waiting inspection Function (hereinafter referred to as reservation waiting function) reservCheck, using the function as service observation function.Service observation function is used In judging whether operation system is capable of providing the corresponding business service of service request, and can be determined in the case where that cannot provide The word slot for needing to re-enter.In addition, developer can also write the function for saving reservation information in advance SaveReserv provides function using the function as business.Business provides function for providing operation system service request Corresponding business service.Further, the built-in function for encapsulating natural language understanding function can also be write in advance NeedReply, using the built-in function as natural language understanding function.Natural language understanding function is for realizing to voice messaging Carry out the extraction of word slot and intention assessment.In some cases, built-in function needReply can be preset corresponding to word slot Multiple candidate items of word slot information.Carry out word slot extract when, by voice messaging respectively with multiple candidate items of word slot information into Row matching detection.When with the success of the matching detection of some candidate item, being somebody's turn to do comprising word slot information in voice messaging is identified Candidate item.Due to constraining the identification range of word slot information by candidate item, the meaning of user can be more accurately identified Figure.In addition, built-in function needReply can also realize common semantics recognition, the table for interrupting, exiting process is represented for identification Up to mode.
Using the above-mentioned function and built-in function realized in advance, the non-developer such as product manager can be according to words art process It writes for realizing the script of intelligent response method.The script high modularization.The process for writing script can be graphically to drag The mode dragged is completed.
If Fig. 3 is to write the flow diagram for realizing the script of intelligent response method by the way of figure dragging, comprising:
Which branch will step 301: voice broadcast: you reserve?
In a kind of possible embodiment, voice broadcast can be realized using built-in function (such as built-in function tts).
Step 302: after user's input voice information, using point of above-mentioned built-in function needReply identification user's input Shop information.Wherein, built-in function needReply can be using each branch information as candidate item.
If recognition failures, built-in function tts casting content can be used for " unreadable woulds you please say again " Voice messaging, and go to step 302 initial position.
It, can be using above-mentioned built-in letter if identifying that the content of voice messaging is to exit or terminate current service request Number tts casting content is the voice messaging of " good, can to contact me when needing to reserve at any time ", and jumps to the stop bits of script It sets.
If identifying effective branch information, the branch information is recorded, and step 303 can be continued to execute.
Step 303: voice broadcast: you to reserve when?
Voice broadcast can be realized using above-mentioned built-in function tts.
Step 304: after user's input voice information, using above-mentioned built-in function needReply identification user input when Between information.
If recognition failures, built-in function tts casting content can be used for " unreadable woulds you please say again " Voice messaging, and go to step 304 initial position.
It, can be using above-mentioned built-in letter if identifying that the content of voice messaging is to exit or terminate current service request Number tts casting content is the voice messaging of " good, can to contact me when needing to reserve at any time ", and jumps to the stop bits of script It sets.
If identifying effective temporal information, the temporal information is recorded, and step 305 can be continued to execute.
Step 305: using function reservCheck, branch information and step 304 that above-mentioned steps 303 record are recorded Variable of the temporal information as function reservCheck, whether inquiry can reserve.
If cannot reserve, can use above-mentioned built-in function tts casting content is that " shyly, Date is about Man Liao changes time " voice messaging, and go to step 304 initial position;Wherein, " Date " in content is broadcasted It is specifically as follows the temporal information in above-mentioned steps 304 identifying and recording.
If can reserve, can use above-mentioned built-in function tts casting content for " your telephone number please be provide? " Voice messaging, and continue to execute step 306.
Step 306: after user's input voice information, using the electricity of above-mentioned built-in function needReply identification user's input Talk about number.
If recognition failures, above-mentioned built-in function tts casting content can be used for " unreadable woulds you please put off until some time later one All over " voice messaging, and go to step 306 initial position.
It, can be using above-mentioned built-in letter if identifying that the content of voice messaging is to exit or terminate current service request Number tts casting content is the voice messaging of " good, can to contact me when needing to reserve at any time ", and jumps to the stop bits of script It sets.
If identifying effective telephone number, the telephone number is recorded, and can broadcast using above-mentioned built-in function tts Report that content is " good, then be Number under confirming, is it right? " voice messaging, and continue to execute step 307;Wherein, content is broadcasted In " Number " be specifically as follows the telephone number for identifying and recording in this step.
Step 307: after user's input voice information, using answering for above-mentioned built-in function needReply identification user's input Answer information.
If identify response message be "no" or indicate identical meanings other content (as " not to ", " mistake ", " wrong " etc.), then above-mentioned built-in function tts casting content can be used for the voice messaging of " that woulds you please say again ", and jump Go to the initial position of step 307.
If identify response message be "Yes" or indicate identical meanings other content (as " yes ", " correct ", " do not have It is wrong " etc.), then reservation can be saved using above-mentioned function saveReserv, and use above-mentioned built-in function tts broadcast content for The voice messaging of " good, to be your reservation ... ".It may include the branch letter recorded in above-mentioned process in the content of casting The contents such as breath, temporal information.
Above-mentioned process describes a kind of specific reality write using figure pulling mode and realize the script of intelligent response method Apply mode.In the above-described embodiment, non-developer is without writing natural language understanding function, service observation function and business It provides function (being specifically as follows above-mentioned built-in function needReply, function reservCheck and function saveReserv), and Only above-mentioned function need to be used according to words art process, in such a way that figure pulls, to write out the foot for realizing intelligent response method This.The script write by this process is relatively easy, is easily modified and safeguards.Also, it is not necessarily to examine during writing script Consider the asynchronous condition of each business interface.Meanwhile business development personnel do not need to be situated between when developing above-mentioned function and built-in function Enter to talk about art process, and only need to develop function and built-in function, to realize related service interface.Also, natural language understanding Function does not need carrying words art flow tasks yet, and need to only carry out the extraction of word slot and intention assessment.As it can be seen that in above embodiment In, NLU/NLP function can be utilized to be absorbed in for the extraction of word slot and intention assessment;And make business development staff concentration in realization industry Business interface, without paying close attention to NLU/NLP processing logic;And non-developer is made to be absorbed in design session process, promote user experience.
The intelligent response method that the embodiment of the present invention proposes is used not only for question and answer and realizes service logic, can also use In realization and hardware interactions.For example, the embodiment of the present invention can also be applied to following scene:
Firstly, the voice messaging for receiving and identifying out user's input is " connection bluetooth equipment ".
Later, intelligent response equipment voice broadcast or image show following content:
" following equipment is searched, you can directly tell will connect for which equipment:
1, xxx ' s airpods
2, Baffle Box of Bluetooth-x50
3, xxxxxxxxx "
Later, the voice messaging for receiving and identifying out user's input is " connection second ".
Later, intelligent response equipment voice broadcast or image are shown " good, in connection, please wait a moment ", and with Baffle Box of Bluetooth- X50 establishes bluetooth connection.After the completion of connection, voice broadcast or image show " connecting Baffle Box of Bluetooth-x50 for you ".
In order to realize that use above scene, the embodiment of the present invention can preset for bluetooth discovery and establish bluetooth company The function connect.Wherein, it can be used as business for the function of bluetooth discovery (hereinafter referred to as bluetooth discovery function) and function be provided, use It not only can be used as business offer function in the function (hereinafter referred to as bluetooth connection function) for establishing bluetooth connection but also can be used as industry Business checks function.And it is possible to preset natural language understanding function, the extraction of word slot is carried out to the voice messaging of user's input And intention assessment.On the basis of aforementioned pre-set function, it can be formed by the way of pulling for intelligent response Script.
Intelligent response may be implemented using above-mentioned script.Detailed process includes:
When user issues voice messaging, the extraction of word slot and intention assessment are carried out to the voice messaging.It can be using preparatory The natural language understanding function of setting carries out the extraction of word slot and intention assessment.
If identifying that user requires connection bluetooth equipment, set using pre-set bluetooth discovery Selecting Function System bluetooth It is standby.After the completion of search, voice broadcast or image show the bluetooth equipment searched.
The voice messaging that user issues is received, the extraction of word slot and meaning are carried out using pre-set natural language understanding function Figure identification, obtains the corresponding service request of the voice messaging, that is, requires the bluetooth equipment information of access.
Judge whether current business system is capable of providing the corresponding business service of the service request, if it is not, prompt Re-enter voice messaging.If it can, then providing corresponding business service for the service request.It specifically, can be using preparatory The bluetooth connection function of setting judges that user requires whether the bluetooth equipment of access belongs to the bluetooth equipment searched, if do not belonged to In, then cannot provide the service request corresponding business service, therefore prompt re-enter voice messaging.If belonged to, can mention For the corresponding business service of the service request, therefore the present apparatus is established using bluetooth connection function and requires the bluetooth of access to set with user Bluetooth connection between standby.
The embodiment of the present invention can also be applied to following application scenarios:
Firstly, the voice messaging for receiving and identifying out user's input is " asking Configuration network ".
Later, intelligent response equipment voice broadcast or image show following content:
" following Wi-Fi is searched for you, you directly can tell which Wi-Fi " I connects
1, xxxx ' s home
2, cdma web
3,yyy public Wi-Fi”
Later, the voice messaging for receiving and identifying out user's input is " connection first ".
Later, intelligent response equipment voice broadcast or image show " please letter-by-letter input Wi-Fi password on the touch pad, To double-click Trackpad as terminating ".Then, the information that user inputs on the touch pad is received, and judges the information of user's input It is whether consistent with Wi-Fi password is pre-saved.If consistent, intelligent response equipment is connected to the Wi-Fi net of user's selection Network.Can voice broadcast " connecting xxxx ' s home for you, please later " during the connection process, voice after the completion of connection The contents such as casting " successful connection welcomes to use ".
In order to realize use above example, it is (following that the embodiment of the present invention can preset the function for scanning Wi-Fi Abbreviation Wi-Fi scanning function), the function (hereinafter referred to as Wi-Fi connection function) for connecting Wi-Fi and for receiving touch-control The function of plate input.Aforementioned three functions provide function collectively as business, wherein Wi-Fi connection function is also used as industry Business checks function.And it is possible to preset natural language understanding function, the voice messaging for inputting to user carries out word slot Extraction and intention assessment.It is aforementioned preset function on the basis of, can using pull by the way of be formed for intelligent response Script.
Intelligent response may be implemented using above-mentioned script.Detailed process includes:
When user issues voice messaging, the extraction of word slot and intention assessment are carried out to the voice messaging.It can be using preparatory The natural language understanding function of setting carries out the extraction of word slot and intention assessment.
If identifying that user requires Configuration network, Wi-Fi net is searched for using pre-set Wi-Fi scanning function Network.After the completion of search, voice broadcast or image show the Wi-Fi network searched.
The voice messaging that user issues is received, the extraction of word slot and meaning are carried out using pre-set natural language understanding function Figure identification, obtains the corresponding service request of the voice messaging, that is, requires the Wi-Fi network of configuration.
Judge whether current business system is capable of providing the corresponding business service of the service request, if it is not, prompt Re-enter voice messaging.If it can, providing corresponding business service for the service request.Specifically, it can use and set in advance The Wi-Fi connection function set judges that user requires whether the Wi-Fi network of configuration belongs to the Wi-Fi network searched, if not Belong to, then cannot provide the service request corresponding business service, therefore voice messaging is re-entered in prompt.If belonged to, mention Show that user inputs Wi-Fi password on the touch pad.Later, it is connect using pre-set for receiving the function of Trackpad input Receive the Wi-Fi password of user's input.When the Wi-Fi password of user's input is correct, Wi-Fi connection function can be used for this dress It sets and configures the Wi-Fi network that the user requires.
In the present embodiment, non-developer is without considering above-mentioned function, and only needs to utilize figure according to words art process Above-mentioned function is organized into script by the mode of dragging.If Fig. 4 is that the embodiment of the present invention writes realization by the way of figure dragging The flow diagram of the script of intelligent response method, comprising:
Step 401: user's input voice information " asks Configuration network ", identifies the language using built-in function needReply Message ceases corresponding text information.
If recognition failures, built-in function tts casting content can be used for " unreadable woulds you please say again " Voice messaging, and go to step 401 initial position.
If identifying the text information of " asking Configuration network " or the text information of other same meaning, step is continued to execute Rapid 402.
Step 402: Wi-Fi network is scanned using pre-set Wi-Fi scanning function.Using above-mentioned built-in function tts The Wi-Fi network that voice broadcast scans.
Step 403: user's input voice information may include the letter of the Wi-Fi network of user's selection in the voice messaging Breath.
The corresponding text information of the voice messaging is identified using built-in function needReply.
If recognition failures, built-in function tts casting content can be used for " unreadable woulds you please say again " Voice messaging, and go to step 403 initial position.
If identifying the Wi-Fi network of user's selection, and the Wi-Fi network belongs to the Wi- for being currently able to scan Fi network, then continue to execute step 404.
Step 404: voice broadcast: " please letter-by-letter input Wi-Fi password on the touch pad, to double-click Trackpad as knot Beam ".Voice broadcast can be carried out using built-in function tts.
User inputs information on the touch pad.
Step 405: using the information of function identification user's input for receiving Trackpad input.
If user input time-out, go to step 404 initial position.
If identifying that the information that user inputs on the touch pad is identical as pre-stored Wi-Fi password, can adopt With above-mentioned built-in function tts casting content it is the voice messaging of " being your connection ", and continues to execute step 406.
Step 406: using the function for connecting Wi-Fi, equipment being connected to the Wi-Fi network of user's selection.
If it fails to connect, then using above-mentioned built-in function tts voice broadcast " connection failure please retry ", and jump to The initial position of step 401;
If successful connection, using above-mentioned built-in function tts voice broadcast " successful connection welcomes to use ".So far, whole The process of a connection Wi-Fi network terminates.
The script introduced in above embodiments can be run in server end, can also be run in equipment end.Partial service Logic can dynamically transfer to equipment end completion, without frequently interacting with server.It is based on the simple voice of equipment end simultaneously Recognition capability can provide the simple interaction under no net environment, such as distribution process.Due to the flexible and light weight of script, service End, which recognizes after a process is intended to, directly to transfer to equipment end the situation script of relevant context, complete meeting by equipment end Words;If not transferring to equipment end, which be may operate on server.This way provides bigger freedom Degree, can according to need and selected.
The embodiment of the present invention also proposes a kind of intelligent response device.Referring to Fig. 5, Fig. 5 is a kind of intelligence of the embodiment of the present invention Energy answering device structural schematic diagram, comprising:
Service request generation module 510 is obtained for carrying out the extraction of word slot and intention assessment at least one voice messaging The corresponding service request of described at least one voice messaging;
Judgment module 520, for judging whether current business system is capable of providing the corresponding business clothes of the service request Business;
Cue module 530, for when the result judged as cannot when, prompt re-enter for updating the business The voice messaging of request.
In a kind of possible embodiment, the service request generation module 510, for using pre-set nature Language understanding function carries out the extraction of word slot and intention assessment at least one described voice messaging.
In a kind of possible embodiment, the judgment module 520, for using pre-set service observation function Judge whether current business system is capable of providing the corresponding business service of the service request;
The cue module 530, for when the result judged as cannot when, determine that the current business system provides Required condition when the business service determines the word slot for needing to re-enter according to the condition, is mentioned according to determining word slot Show the voice messaging re-entered for updating the service request.
In a kind of possible embodiment, the service observation function is reservation waiting function;The judgment module 520 For judging whether current business system is capable of providing the corresponding reservation clothes of the service request using the reservation waiting function Business;And/or
The service observation function is bluetooth connection function, and the judgment module 520 is used to use the bluetooth connection letter Number judges whether current business system is capable of providing the corresponding bluetooth connection of the service request;And/or
The service observation function is Wireless Fidelity contiguous function, and the judgment module 520 is used to use the wireless guarantor True contiguous function judges whether current business system is capable of providing the corresponding Wireless Fidelity connection of the service request.
In a kind of possible embodiment, the service request generation module 510 is also used to, and receives the language re-entered Message breath carries out the extraction of word slot and intention assessment to the voice messaging re-entered;It is extracted and is intended to using institute's predicate slot Identification as a result, updating the service request;
The judgment module 520 is also used to, and judges whether current business system is capable of providing updated service request pair The business service answered.
The function of each module in each device of the embodiment of the present invention may refer to the corresponding description in the above method, herein not It repeats again.
The embodiment of the present invention also proposes a kind of intelligent response equipment, such as the intelligent response equipment that Fig. 6 is the embodiment of the present invention Structural schematic diagram, comprising:
Memory 601 and processor 602, memory 601 are stored with the computer program that can be run on processor 602. The processor 602 realizes the intelligent response method in above-described embodiment when executing the computer program.The memory 601 Quantity with processor 602 can be one or more.
The equipment can also include:
Communication interface 603 carries out data exchange transmission for being communicated with external device.
Memory 601 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non- Volatile memory), a for example, at least magnetic disk storage.
If memory 601, processor 602 and the independent realization of communication interface 603, memory 601,602 and of processor Communication interface 603 can be connected with each other by bus and complete mutual communication.The bus can be industrial standard body Architecture (ISA, Industry Standard Architecture) bus, external equipment interconnection (PCI, Peripheral Component Interconnect) bus or extended industry-standard architecture (EISA, Extended Industry Standard Architecture) etc..The bus can be divided into address bus, data/address bus, control bus etc..For convenient for It indicates, is only indicated with a thick line in Fig. 6, be not offered as only a bus or a type of bus.
Optionally, in specific implementation, if memory 601, processor 602 and communication interface 603 are integrated in one piece of core On piece, then memory 601, processor 602 and communication interface 603 can complete mutual communication by internal interface.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.Moreover, particular features, structures, materials, or characteristics described It may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, without conflicting with each other, this The technical staff in field can be by the spy of different embodiments or examples described in this specification and different embodiments or examples Sign is combined.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic." first " is defined as a result, the feature of " second " can be expressed or hidden It include at least one this feature containing ground.In the description of the present invention, the meaning of " plurality " is two or more, unless otherwise Clear specific restriction.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable read-only memory (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other suitable Jie Matter, because can then be edited, be interpreted or when necessary with other for example by carrying out optical scanner to paper or other media Suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In readable storage medium storing program for executing.The storage medium can be read-only memory, disk or CD etc..
In conclusion the intelligent response method and apparatus that the embodiment of the present invention proposes, are handed over carrying out more wheel voices with user In mutual process, service request corresponding to user speech information is got.Judging that current business system can not provide When the corresponding business service of the service request, user is prompted to re-enter voice messaging, so that user changes service request.It is this Mode provide the user the chance of change service request, rather than directly refuse the industry of user when that can not provide business service Business request, therefore it is able to ascend user experience.Further, user can re-enter voice messaging according to prompt.Later, originally The method that inventive embodiments propose can receive the voice messaging re-entered, and after carrying out the extraction of word slot and intention assessment more New service request rejudges whether current business system is capable of providing corresponding business clothes for updated service request Business.In addition, the embodiment of the present invention can carry out the extraction of word slot to voice messaging using pre-set natural language understanding function And intention assessment, it is corresponding to judge whether current business system is capable of providing service request using pre-set service observation function Business service, and using pre-set business provide model provide business service.Aforementioned each model can be using preparatory The mode for writing function is realized, wherein natural language understanding function can use the built-in function for encapsulating NLU function to realize, Service observation function and business provide model can write function by business development personnel in advance.Using the aforementioned letter realized in advance Several and built-in function, non-developer can write according to words art process for realizing the script of intelligent response method.In this way, energy It is absorbed in NLU/NLP function for the extraction of word slot and intention assessment;Make business development staff concentration in realization business interface, nothing NLU/NLP processing logic need to be paid close attention to;And non-developer is made to be absorbed in design session process, promote user experience.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in its various change or replacement, These should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with the guarantor of the claim It protects subject to range.

Claims (12)

1. a kind of intelligent response method characterized by comprising
The extraction of word slot and intention assessment are carried out at least one voice messaging, obtain the corresponding industry of at least one described voice messaging Business request;
Judge whether current business system is capable of providing the corresponding business service of the service request, if it is not, prompt weight Newly input the voice messaging for updating the service request.
2. the method according to claim 1, wherein it is described at least one voice messaging carry out the extraction of word slot and Intention assessment, comprising:
The extraction of word slot is carried out at least one described voice messaging using pre-set natural language understanding function and is intended to know Not.
3. the method according to claim 1, wherein described, to judge whether current business system is capable of providing described The corresponding business service of service request, if it is not, voice messaging is re-entered in prompt, comprising:
It is corresponding to judge whether current business system is capable of providing the service request using pre-set service observation function Business service;
If it is not, determining that the current business system provides condition required when the business service, according to the condition It determines the word slot for needing to re-enter, the voice for updating the service request is re-entered according to determining word slot prompt and is believed Breath.
4. according to the method described in claim 3, it is characterized in that, the service observation function is used for reserve waiting function Judge whether current business system is capable of providing the corresponding subscription services of the service request;And/or
The service observation function is bluetooth connection function, is asked for judging whether current business system is capable of providing the business Ask corresponding bluetooth connection;And/or
The service observation function is Wireless Fidelity contiguous function, for judging whether current business system is capable of providing the industry Corresponding Wireless Fidelity connection is requested in business.
5. method according to any one of claims 1 to 4, which is characterized in that the prompt is re-entered after voice messaging, Further include:
The voice messaging re-entered is received, the extraction of word slot and intention assessment are carried out to the voice messaging re-entered;
Using institute's predicate slot extract and intention assessment as a result, updating the service request;
For updated service request, the step of executing the judgement is returned.
6. a kind of intelligent response device characterized by comprising
Service request generation module, for carrying out the extraction of word slot and intention assessment at least one voice messaging, obtain it is described extremely Few corresponding service request of a voice messaging;
Judgment module, for judging whether current business system is capable of providing the corresponding business service of the service request;
Cue module, for when the result judged as cannot when, prompt re-enter for updating the service request Voice messaging.
7. device according to claim 6, which is characterized in that the service request generation module is set in advance for using The natural language understanding function set carries out the extraction of word slot and intention assessment at least one described voice messaging.
8. device according to claim 6, which is characterized in that the judgment module, for using pre-set business Check that function judges whether current business system is capable of providing the corresponding business service of the service request;
The cue module, for when the result judged as cannot when, determine that the current business system provides the industry Required condition, the word slot for needing to re-enter is determined according to the condition when business service, again according to determining word slot prompt Input the voice messaging for updating the service request.
9. device according to claim 8, which is characterized in that the service observation function is reservation waiting function;It is described Judgment module is used to judge whether current business system is capable of providing the service request using the reservation waiting function corresponding Subscription services;And/or
The service observation function is bluetooth connection function, and the judgment module is used to work as using bluetooth connection function judgement Whether preceding operation system is capable of providing the corresponding bluetooth connection of the service request;And/or
The service observation function is Wireless Fidelity contiguous function, and the judgment module is used to connect letter using the Wireless Fidelity Number judges whether current business system is capable of providing the corresponding Wireless Fidelity connection of the service request.
10. according to any device of claim 6 to 9, which is characterized in that the service request generation module is also used to, The voice messaging re-entered is received, the extraction of word slot and intention assessment are carried out to the voice messaging re-entered;Using institute Predicate slot extract and intention assessment as a result, updating the service request;
The judgment module is also used to, and judges whether current business system is capable of providing the corresponding business of updated service request Service.
11. a kind of intelligent response equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors Realize such as method as claimed in any one of claims 1 to 5.
12. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the program is held by processor Such as method as claimed in any one of claims 1 to 5 is realized when row.
CN201910150423.4A 2019-02-28 2019-02-28 Intelligent response method, device, equipment and storage medium Active CN109902163B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910150423.4A CN109902163B (en) 2019-02-28 2019-02-28 Intelligent response method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910150423.4A CN109902163B (en) 2019-02-28 2019-02-28 Intelligent response method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109902163A true CN109902163A (en) 2019-06-18
CN109902163B CN109902163B (en) 2022-03-01

Family

ID=66945928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910150423.4A Active CN109902163B (en) 2019-02-28 2019-02-28 Intelligent response method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109902163B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110659360A (en) * 2019-10-09 2020-01-07 初米网络科技(上海)有限公司 Man-machine conversation method, device and system
CN111488444A (en) * 2020-04-13 2020-08-04 深圳追一科技有限公司 Dialogue method and device based on scene switching, electronic equipment and storage medium
CN112131360A (en) * 2020-09-04 2020-12-25 交通银行股份有限公司太平洋信用卡中心 Intelligent multi-turn dialogue customization method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080187109A1 (en) * 2007-02-05 2008-08-07 International Business Machines Corporation Audio archive generation and presentation
CN103533021A (en) * 2012-07-03 2014-01-22 三星电子株式会社 Display apparatus, interactive system and method for providing response information
CN108345672A (en) * 2018-02-09 2018-07-31 平安科技(深圳)有限公司 Intelligent response method, electronic device and storage medium
CN109003605A (en) * 2018-07-02 2018-12-14 北京百度网讯科技有限公司 Intelligent sound interaction processing method, device, equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080187109A1 (en) * 2007-02-05 2008-08-07 International Business Machines Corporation Audio archive generation and presentation
CN103533021A (en) * 2012-07-03 2014-01-22 三星电子株式会社 Display apparatus, interactive system and method for providing response information
CN108345672A (en) * 2018-02-09 2018-07-31 平安科技(深圳)有限公司 Intelligent response method, electronic device and storage medium
CN109003605A (en) * 2018-07-02 2018-12-14 北京百度网讯科技有限公司 Intelligent sound interaction processing method, device, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110659360A (en) * 2019-10-09 2020-01-07 初米网络科技(上海)有限公司 Man-machine conversation method, device and system
CN111488444A (en) * 2020-04-13 2020-08-04 深圳追一科技有限公司 Dialogue method and device based on scene switching, electronic equipment and storage medium
CN112131360A (en) * 2020-09-04 2020-12-25 交通银行股份有限公司太平洋信用卡中心 Intelligent multi-turn dialogue customization method and system

Also Published As

Publication number Publication date
CN109902163B (en) 2022-03-01

Similar Documents

Publication Publication Date Title
CN105183422B (en) The method and apparatus of voice control application program
CN106503236B (en) Artificial intelligence based problem classification method and device
CN103988200B (en) For the lightweight frame of web applications
CN100397340C (en) Application abstraction aimed at dialogue
CN109902163A (en) A kind of intelligent response method, apparatus, equipment and storage medium
EP3912077A1 (en) Maintaining machine language model state across communications channels
EP0774853B1 (en) Method and system for graphically displaying and navigating through an interactive voice response menu
CN109727041A (en) Intelligent customer service takes turns answering method, equipment, storage medium and device more
CN109643331A (en) By automating natural language task/dialog authoring using existing content
CN107943796A (en) A kind of interpretation method and device, terminal, readable storage medium storing program for executing
CN101536084A (en) Dialog analysis
CN105718267B (en) A kind of more apply merges into the implementation method singly applied and its realization system
US7395206B1 (en) Systems and methods for managing and building directed dialogue portal applications
CN105519141A (en) Seamless call transitions with pre-escalation participation confirmation
CN108475190A (en) The natural language task that creation is experienced for third party completes platform
US20070143625A1 (en) Voice-capable system and method for providing input options for authentication
CN114730321A (en) Visual design of conversation robot
CN101589427A (en) Speech application instrumentation and logging
CN110348793A (en) It is a kind of to send part method, apparatus, express delivery cabinet and storage medium
CN106027368A (en) Service data processing method and device
CN109710214A (en) Construction method, device, terminal device and the storage medium of electronic signature software
CN109271503A (en) Intelligent answer method, apparatus, equipment and storage medium
CN105075230A (en) Voice print tagging of interactive voice response sessions
CN109726533A (en) User account judgment method and device
US20200066267A1 (en) Dialog Manager for Supporting Multi-Intent Dialogs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210507

Address after: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing

Applicant after: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

Applicant after: Shanghai Xiaodu Technology Co.,Ltd.

Address before: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing

Applicant before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant