Summary of the invention
Based on this, be necessary for the problems referred to above, a kind of intelligent sound exchange method and system are provided.
A kind of intelligent sound exchange method, comprises the steps:
The communication connection of voice exchange driver and client is set up according to connection profile;
Voice menu data are sent to described client according to voice menu configuration file;
Receive the reply data of client and send it to service end and carry out corresponding Business Processing;
The corresponding voice service data of acquisition that return results according to business configuration file and described Business Processing are sent to described client.
A kind of intelligent speech interactive system, comprising:
Connect module, for setting up the communication connection of voice exchange driver and client according to connection profile;
Menu sending module, for sending voice menu data according to voice menu configuration file to described client;
Service Processing Module, for receiving the reply data of client and sending it to service end and carry out corresponding Business Processing;
Service returns module, for being sent to described client according to the corresponding voice service data of acquisition that return results of business configuration file and described Business Processing.
Above-mentioned intelligent sound exchange method and system, set up the communication connection of intelligent voice system according to connection profile, send the voice service data returned results of voice menu data processing according to voice menu configuration file to client; By adopting the interactive form of " service end-middle service layer-client ", client and service end separate, by middle service layer in the face of service end also provides service to client, service end is without the need to clear and definite client.Intelligent sound platform program can be facilitated like this to develop and debugging, and service end changes the configuration file only needing corresponding change middle service layer to some extent, and need not revise and restart client, make to build and develop becoming of an intelligent sound platform application and be more prone to, efficiently, improve the interactive efficiency of intelligent sound platform.
Embodiment
Be described in detail below in conjunction with the embodiment of accompanying drawing to intelligent sound exchange method of the present invention.
Fig. 1 shows the intelligent sound exchange method flow chart of an embodiment, comprises the steps:
Step S10: the communication connection of setting up voice exchange driver and client according to connection profile.
In the present embodiment, the process that step S10 establishes a communications link comprises the steps:
Step S101, loads the connection profile prestored; Concrete, when client needs to dial, load the connection profile prestored; Wherein, the relevant information of connection profile record intelligent sound service, comprise the IP address, port, voice data file etc. of voice exchange, user can modify to this connection profile, to be adapted to dissimilar client, connection profile stores on one server, and this server is communicated to connect by the voice server of the service end of network and intelligent voice system.
Step S102, configures IP address and the port numbers of the voice exchange be connected with client according to described connection profile; Concrete, according to corresponding IP address and the port of connection profile configured voice switch.
Step S103, sets up the connection of client-side program and voice exchange driver on corresponding voice server according to described IP address and port numbers; Concrete, set up the connection between client-side program and the voice server being located at service end according to IP address and port numbers, wherein, described voice exchange driver operates on voice server.
In one embodiment, the above-mentioned process connected comprises:
First start voice service by the mode of client-side program far call (webservice) and the relevant parameter of input for connecting client, then set up between client-side program and server according to connection profile and communicate to connect; Wherein, client comprises the information (as telephone number) of the difference client terminal attributes such as telephone set; Then the communication connection with corresponding voice exchange driver on voice server is set up according to described IP address and port numbers and described relevant parameter.
Step S20: send voice menu data to described client according to voice menu configuration file.
In the present embodiment, when after the communication connection of successfully setting up voice exchange driver, search the passage of switch free time, from the voice menu configuration file prestored, select the voice menu data for pointing out to be sent to client, user can modify to this voice menu configuration file, to configure the voice menu corresponding to different phonetic service for different client demand; Concrete, the voice menu relevant to digital keys can be sent to telephone set, the service needed for prompting user is selected by digital keys.
Step S30: receive the reply data of client and send it to service end and carry out corresponding Business Processing.
In this step, particularly, read the reply data of user, reply data comprises the selection instruction that user is inputted by client-side program according to the prompting of voice menu data; Such as, by the instruction of telephone set digital keys input selection, the service in choice menus; Reply data is sent in the operation system on voice server and make corresponding Business Processing, for user provides required service; Such as, carry out expert's reservation, in operation system, determine that whether reservation is successful.
Step S40: the corresponding voice service data of acquisition that return results according to business configuration file and described Business Processing are sent to described client.
In the present embodiment, step S40 can comprise the steps:
Step S401, reads returning results of described Business Processing; Concrete, such as, expert preengages failure, obtains preengage returning results unsuccessfully, preengages successfully, then obtain returning results of reservation success and associated subscription information.
Step S402, selects to return results corresponding voice service data with described from business configuration file; Particularly, from the business configuration file prestored, record returns results the corresponding voice service data needing to return to client, accordingly, returns results in basis the voice service data can selecting its correspondence; User can modify to this business configuration file, to serve for the configuration of different client demand is different.
Described voice service data are sent to corresponding client by step S403; Concrete, voice service data are sent to voice exchange, then transfer to client and play, user obtains final returning results.
Be described in detail below in conjunction with the embodiment of accompanying drawing to intelligent speech interactive system of the present invention.
Fig. 2 shows the structural representation of the intelligent speech interactive system of an embodiment, comprising: the module that connects, menu sending module, Service Processing Module and service return module.
The described module that connects, for setting up the communication connection of voice exchange driver and client according to connection profile.
Described menu sending module, for sending voice menu data according to voice menu configuration file to described client.
Described Service Processing Module, for receiving the reply data of client and sending it to service end and carry out corresponding Business Processing.
Described service returns module, for being sent to described client according to the corresponding voice service data of acquisition that return results of business configuration file and described Business Processing.
In one embodiment, the module that connects described in comprises: files loading unit, address configuration unit and program linkage unit.
Described files loading unit, for loading the connection profile prestored.
Described address configuration unit, for configuring IP address and the port numbers of the voice exchange be connected with client according to described connection profile.
Described program linkage unit, sets up the connection of client-side program and voice exchange driver on corresponding voice server according to described IP address and port numbers.
In one embodiment, described program linkage unit is further used for: start voice service by the mode of client-side program far call and the relevant parameter of input for connecting client; The communication connection with corresponding voice exchange driver on voice server is set up according to described IP address and port numbers and described relevant parameter.
In one embodiment, described client comprises telephone set.
In one embodiment, described service returns module and comprises: result reading unit, service selecting unit and service transmitting element.
Described result reading unit, for reading returning results of described Business Processing.
Described service selecting unit, returns results corresponding voice service data for selecting from business configuration file with described.
Described service transmitting element, for being sent to corresponding client by described voice service data.
Intelligent speech interactive system of the present invention and intelligent sound exchange method one_to_one corresponding of the present invention, the technical characteristic of setting forth in the embodiment of above-mentioned intelligent sound exchange method and beneficial effect thereof are all applicable in the embodiment of intelligent speech interactive system, do not repeat them here.
Technology of the present invention, change traditional intelligent sound interaction flow, the communication between service end and client is carried out by the form of " intermediary service ", connection voice exchange program and interactive voice program is made to become more flexible, different clients can be directed to corresponding configuration file is set, during change client, only configuration file need be revised.Such as, when needing to revise the menu in interactive voice process, and to client transmissions for play voice service data time, only need arrange corresponding configuration file can achieve the goal.Concerning program developer, which kind of voice hardware without the need to clear and definite connected client, only need client can input its relevant parameter and can obtain returning results of voice service, intelligent sound platform provides a convenience to client, easy-to-use intelligent sound dials service, make to build and develop becoming more efficiently of an intelligent sound platform application, improve the interactive efficiency of intelligent sound platform.
The above embodiment only have expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.