CN104461889A - Debug method and device of phonological competence scripts - Google Patents

Debug method and device of phonological competence scripts Download PDF

Info

Publication number
CN104461889A
CN104461889A CN201410767088.XA CN201410767088A CN104461889A CN 104461889 A CN104461889 A CN 104461889A CN 201410767088 A CN201410767088 A CN 201410767088A CN 104461889 A CN104461889 A CN 104461889A
Authority
CN
China
Prior art keywords
script
variate
debug
value
object information
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.)
Pending
Application number
CN201410767088.XA
Other languages
Chinese (zh)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410767088.XA priority Critical patent/CN104461889A/en
Publication of CN104461889A publication Critical patent/CN104461889A/en
Pending legal-status Critical Current

Links

Abstract

An embodiment of the invention discloses a debug method and device of phonological competence scripts and belongs to scripts debugging. According to the embodiment, the debug method includes acquiring incoming information; in the case that the incoming information meets preset debug conditions, acquiring a debug script; inserting breakpoint identifiers in the script; executing the script according to a first variable value of the script; in the case that the executed script contains the breakpoint identifiers, sending the first variable value of the executed script and first result information to a debug platform. In this way, by inserting the breakpoint identifiers in the scripts, once one script containing the breakpoint identifier is executed, the first result information and the first variable value of the executed script are sent to the debug platform, and accordingly single-step debugging of the scripts is realized.

Description

A kind of speech capability script debugging method and device
Technical field
The present invention relates to the communications field, particularly relate to a kind of speech capability script debugging method and device.
Background technology
Due to internet, voice services etc. have the tight demand of the platform of telecommunication speech ability, ability open platform provide not only number in speech capability, Call-Control1, IVR (interactive voiceresponse, interactive voice response), seat, meeting, FAX (facsimile, fax), VOIP (VoiceOver Internet Protocol, by analog signal figure, real-time transmission is done on ip networks with the form of data packet) resource capability API (Application Programming Interface, application programming interface) opening, additionally provide the opening of scripting capabilities, developer utilizes the opening of scripting capabilities, the service logic of oneself can be customized, develop the script applications of oneself.
Developer develops script applications, be deployed to cloud platform, binding access code, terminal user makes a call to access code, trigger script applications, obtain the URL (uniform resource locator, Universal Resource Locator) of script applications, perform script, in script, call the resource of oneself of business.There is provided speech online query to wrap up for logistics company, in the speech online query wrapping foot this application of logistics company, arrange inquiry access code, deployment script application associates binding with to access code.User dials inquiry access code, the execution of rear triggering voice online query wrapping foot this application put through by phone, and prompting user inputs parcel odd numbers, and script is according to input odd numbers, in the insider information system of inquiry logistics company, obtain parcel relevant information, then play to user.
In the prior art, when outbound calling and access phone, need speech Enabler (CTI/UAP, Computer Telephony Integration/Unified Application Platform) execution of triggering voice ability script is carried out according to the connection situation of speech channel, ability open platform triggers script according to the script applications of association and performs after call is set up, due to speech path control bottom signaling requirement of real-time, script engine and incoming call access Enabler hardware are closely related, script executing engine cannot support debugging, thus script cannot commissioning in real time.
Summary of the invention
Embodiments provide a kind of speech capability script debugging method and device, can realize debugging with to script.
First aspect present invention provides a kind of speech capability script debugging method, comprising:
Obtain call-in message;
When described call-in message meets default debugging condition, obtain debug script;
Breakpoint mark is inserted in described script;
The first variate-value according to described script performs described script;
When performed script comprise described breakpoint mark time, by the first variate-value of performed script with
And first object information send to debug platform.
In conjunction with embodiment of the present invention first aspect, in the first implementation of embodiment of the present invention first aspect, before described acquisition call-in message, described method also comprises: arrange debugging condition.
In conjunction with the first implementation of embodiment of the present invention first aspect, in the second implementation of embodiment of the present invention first aspect, described debugging condition is set before, described method also comprises: from debug platform obtain debugging condition.
In conjunction with the first implementation of embodiment of the present invention first aspect, first aspect and the second implementation of first aspect, in the third implementation of embodiment of the present invention first aspect, described when comprising described breakpoint mark when performed script, before first variate-value of performed script and the first object information are sent to debug platform, described method also comprises:
Whether the script performed by judgement comprises described breakpoint mark.
In conjunction with the first implementation of embodiment of the present invention first aspect, first aspect and the second implementation of first aspect, in the 4th kind of implementation of embodiment of the present invention first aspect, described method also comprises:
Whether the script performed by judgement comprises described breakpoint mark, if not, then continues to perform described script.
In conjunction with the first implementation of embodiment of the present invention first aspect, first aspect and the second implementation of first aspect, in 5th kind of implementation of embodiment of the present invention first aspect, before the first variate-value of performed script and the first object information are sent to debug platform, described method also comprises:
Hang up the execution of described script;
Preserve the first object information performing described script and obtain.
In conjunction with the first implementation of embodiment of the present invention first aspect, first aspect and the second implementation of first aspect, in 6th kind of implementation of embodiment of the present invention first aspect, after the first variate-value of performed script and the first object information are sent to debug platform, described method also comprises:
Obtain the second variate-value after the change of described debug platform, perform described script according to described second variate-value.
In conjunction with the 6th kind of implementation of embodiment of the present invention first aspect, in the 7th kind of implementation of embodiment of the present invention first aspect, after performing described script according to described second variate-value, described method also comprises:
The second object information obtained according to described second variate-value execution script is sent to debug platform.
In conjunction with the 7th kind of implementation of embodiment of the present invention first aspect, in the 8th kind of implementation of embodiment of the present invention first aspect, before performing described script according to described second variate-value, described method also comprises:
Debug command is obtained from described debug platform.
In conjunction with the first implementation of embodiment of the present invention first aspect, first aspect and the second implementation of first aspect, in 9th kind of implementation of embodiment of the present invention first aspect, described acquisition script comprises: from script server, obtain script.
In conjunction with the first implementation of embodiment of the present invention first aspect, first aspect and the second implementation of first aspect, in the tenth kind of implementation of embodiment of the present invention first aspect, described breakpoint mark of inserting in described script comprises:
Breakpoint mark is inserted at every a line end of described script.
Second aspect present invention provides a kind of speech capability script debugging device, comprising:
First acquiring unit, for obtaining call-in message;
Second acquisition unit, for when described call-in message meets default debugging condition, obtains debug script;
Plug-in unit, for inserting breakpoint mark in described script;
First performance element, performs described script for the first variate-value according to described script;
First transmitting element, during for comprising described breakpoint mark when performed script, sends to debug platform by the first variate-value of performed script and the first object information.
In conjunction with embodiment of the present invention second aspect, in the first implementation of embodiment of the present invention second aspect, described device also comprises:
Setting unit, before described acquisition call-in message, arranges debugging condition.
In conjunction with the first implementation of embodiment of the present invention second aspect, in the second implementation of embodiment of the present invention second aspect, described device also comprises:
3rd acquiring unit, for described debugging condition is set before, from debug platform obtain debugging condition.
In conjunction with the first implementation of embodiment of the present invention second aspect, second aspect and the second implementation of second aspect, in the third implementation of embodiment of the present invention second aspect, described device also comprises:
Judging unit, for when comprising described breakpoint mark when performed script, before the first variate-value of performed script and the first object information are sent to debug platform, whether the script performed by judgement comprises described breakpoint mark.
In conjunction with the third implementation of embodiment of the present invention second aspect, in the 4th kind of implementation of embodiment of the present invention second aspect, described device also comprises:
Second performance element, during for comprising described breakpoint mark when performed script, continues to perform described script.
In conjunction with the first implementation of embodiment of the present invention second aspect, second aspect and the second implementation of second aspect, in the 5th kind of implementation of embodiment of the present invention second aspect, described device also comprises:
Hang up unit, for before the first variate-value of performed script and the first object information are sent to debug platform, hang up the execution of described script;
Storage unit, for before the first variate-value of performed script and the first object information are sent to debug platform, preserves the first object information performing described script and obtain.
In conjunction with the first implementation of embodiment of the present invention second aspect, second aspect and the second implementation of second aspect, in the 6th kind of implementation of embodiment of the present invention second aspect, described device also comprises:
4th acquiring unit, for after the first variate-value of performed script and the first object information are sent to debug platform, obtains the second variate-value after the change of described debug platform;
3rd performance element, for performing described script according to described second variate-value.
In conjunction with the 6th kind of implementation of embodiment of the present invention second aspect, in the 7th kind of implementation of embodiment of the present invention second aspect, described device also comprises:
Second transmitting element, for after performing described script according to described second variate-value, sends to debug platform by the second object information obtained according to described second variate-value execution script.
In conjunction with the 7th kind of implementation of embodiment of the present invention second aspect, in the 8th kind of implementation of embodiment of the present invention second aspect, described device also comprises:
5th acquiring unit, for before performing described script according to described second variate-value, obtains debug command from described debug platform.
In conjunction with the first implementation of embodiment of the present invention second aspect, second aspect and the second implementation of second aspect, in the 9th kind of implementation of embodiment of the present invention second aspect, described second acquisition unit comprises:
Second acquisition module, for obtaining script from script server.
In conjunction with the first implementation of embodiment of the present invention second aspect, second aspect and the second implementation of second aspect, in the tenth kind of implementation of embodiment of the present invention second aspect, described plug-in unit comprises:
Insert module, inserts breakpoint mark for the every a line end at described script.
The embodiment of the present invention provides a kind of speech capability script debugging method, comprise: obtain call-in message, when described call-in message meets default debugging condition, obtain debug script, breakpoint mark is inserted in described script, the first variate-value according to described script performs described script, when performed script comprises described breakpoint mark, the first variate-value of performed script and the first object information is sent to debug platform.Like this, by inserting breakpoint mark in script, often perform a script, when performed script comprises breakpoint mark, the first variate-value in the first object information then obtained by performed script and performed script sends to debug platform, just achieves the single-step debug to script.
Accompanying drawing explanation
Fig. 1 is an embodiment schematic diagram of speech capability script debugging entity apparatus in the embodiment of the present invention;
Fig. 2 is an embodiment schematic diagram of speech capability script debugging method in the embodiment of the present invention;
Fig. 3 is another embodiment schematic diagram of speech capability script debugging method in the embodiment of the present invention;
Fig. 4 is another embodiment schematic diagram of speech capability script debugging method in the embodiment of the present invention;
Fig. 5 is an embodiment schematic diagram of speech capability script debugging device in the embodiment of the present invention;
Fig. 6 is another embodiment schematic diagram of speech capability script debugging device in the embodiment of the present invention;
Fig. 7 is another embodiment schematic diagram of speech capability script debugging device in the embodiment of the present invention.
Embodiment
Embodiments provide a kind of speech capability script debugging method and device, for realizing the debugging to script.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those skilled in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Shown in Fig. 1, take debugging condition as incoming call 999 number, speech capability script debugging device for debug engine be example, be specifically described an embodiment of entity apparatus of the present invention, in the embodiment of the present invention, an embodiment of speech capability script debugging device comprises:
It is incoming call 99555 number that developer sets debugging condition in debug platform, and debugging condition is sent to debug engine, incoming call 99555 number is set to the debugging condition of debug engine by debug engine, when there being user's incoming call, then obtaining the incoming call number of user, if incoming call number is 99555, then meeting debugging condition, debug engine then obtains the script (supposing that the script debugged is loop play audio files) that developer researches and develops from script server, debug engine inserts breakpoint mark Trap in obtained script, and start to perform script the first row (playing alert tones), obtain the first object information (broadcasting result), script comprises the first variate-value (path/audio/voice1.wav that preservation plays sound), in a line performed by judgement or one section of script, whether include breakpoint mark Trap, if have, then hang up the execution of script, first object information of the script performed by preservation and the first variate-value, and send to debug platform, debug platform shows that sound is play result and is success or failure, if nothing, then continue to perform script, until script is finished, debug platform is after the first variate-value receiving debug engine transmission and the first object information, developer can issue the order of amendment variate-value, change the first variate-value and obtain the second variate-value, / audio/voice2.wav is revised as in path by audio files, and send to debug engine, debug engine receives the debug command that the second variate-value and debug platform send, carry out second time according to the second variate-value to first time execution script to perform, obtain the second object information, then the second object information is sent to debug platform, like this, whenever a breakpoint mark, just carry out such single job, until script circulation is finished.
In the embodiment of the present invention, by inserting breakpoint mark in script, often perform a script, just judge in script, whether to comprise script mark, if comprise, the first variate-value in the first object information then obtained by performed script and performed script sends to debug platform, just achieves the single-step debug to script.After debug platform receives the first variate-value, first variate-value change is obtained the second variate-value, second variate-value is sent to debug engine, debug engine performs script with sentence second variate-value again and obtains the second object information, and the second object information is sent to debug platform, like this, just achieve the two-way debugging of debug platform to debug engine, developer also can be found in script by judgement first object information and the second object information exists Bug.
With reference to shown in Fig. 2, in the embodiment of the present invention, an embodiment of speech capability script debugging method comprises:
101, call-in message is obtained;
Only have when user is when carrying out incoming call event, ability triggering voice ability script debugging engine, debug engine needs to judge whether this incoming call enters debugging mode, then need first to obtain user's call-in message, and call-in message comprises user's incoming call.
102, when described call-in message meets default debugging condition, debug script is obtained;
Because comprise multiple engine at script executing engine, be generally commercial engine, commercial engine then directly obtains script in a triggered, then script is performed, cannot realize the debugging to script, the present invention arranges a debug engine, take debugging condition as the interface of debug engine, when judging to meet debugging condition, then enter debug engine.When incoming signal meets debugging condition, then enter debugging mode, debug engine is the debugging for performing script, so need first to obtain script.
103, in described script, insert breakpoint mark;
Because comprise multistage code in script, if desired know every section of code perform after the result that obtains or state what, then need, after often performing one section of code, to export successively the result obtained or state, to reach single-step debug and to facilitate developer to judge according to object information.It should be noted that, the rule inserting breakpoint mark in script for the rule preset, also can be inserted according to demand for developer.
104, described script is performed according to the first variate-value of described script;
After obtaining script, then need to perform script, script is made up of lines of code, multiple variate-value is there is in scripted code, and often perform one section of scripted code, then can obtain first object information, the first object information can for performing according to the first variate-value the result or a kind of state that obtain after script.
105, when performed script comprises described breakpoint mark, the first variate-value of performed script and the first object information are sent to debug platform;
When not having other to limit, in execution scenario process, all can perform script according to the executing rule of agreement, obtain final result, but after insert breakpoint mark in script, in the process performed, point identification is resolved when encountering, then can not continuing to perform, if do not encounter breakpoint mark, then performing follow-up scripted code by continuing.After running into breakpoint mark, the first object information that the first variate-value of the scripted code before performed breakpoint mark and execution obtain first is sent to debug platform by debug engine.
The embodiment of the present invention provides a kind of speech capability script debugging method, comprise: obtain call-in message, when described call-in message meets default debugging condition, obtain debug script, breakpoint mark is inserted in described script, the first variate-value according to described script performs described script, when performed script comprises described breakpoint mark, the first variate-value of performed script and the first object information is sent to debug platform.Like this, by inserting breakpoint mark in script, often perform a script, when performed script comprises breakpoint mark, the first variate-value in the first object information then obtained by performed script and performed script sends to debug platform, just achieves the single-step debug to script.
In above-described embodiment, describe when call-in message meets default debugging condition, then obtain debug script, in actual applications, also comprised before acquisition call-in message and debugging condition is set, and debug engine obtains script from script server, shown in Fig. 3, in the embodiment of the present invention, another embodiment of speech capability script debugging method comprises:
201, debugging condition is obtained from debug platform;
Because debug engine self cannot generate debugging condition, debugging condition generally writes generation by developer at debug platform, so debug engine needs to obtain debugging condition from debug platform.Such as, developer sets user's incoming call 99555 number, then can enter debugging, and so incoming call numbers 99555, be then debugging condition.
202, debugging condition is set;
After debug engine gets debugging condition from debug platform, then debugging condition can be arranged on debug engine, like this, debugging condition then can be used as the interface entering debugging mode.
203, call-in message is obtained;
Only have when user is when carrying out incoming call event, ability triggering voice ability script debugging engine, debug engine needs to judge whether this incoming call enters debugging mode, then need first to obtain user's call-in message, and call-in message comprises user's incoming call.
204, judge whether described call-in message meets default debugging condition, if so, then performs 205, if not, then perform other;
Because comprise multiple engine at script executing engine, be generally commercial engine, commercial engine then directly obtains script in a triggered, then script is performed, cannot realize the debugging to script, the present invention arranges a debug engine, take debugging condition as the interface of debug engine, when judging to meet debugging condition, then enter debug engine.
205, from script server, debug script is obtained;
When incoming signal meets debugging condition, then enter debugging mode, debug engine is the debugging for performing script, so need first to obtain script, and debug engine self do not have can the storer of permanent storage script, all scripts are all in script server, so needs obtain script from script server.
206, in described script, insert breakpoint mark;
Because comprise multistage code in script, if desired know every section of code perform after the result that obtains or state what, then need after often performing one section of code, the result obtained or state are exported successively, to reach single-step debug and to facilitate developer to judge according to object information, such as in script, insert Trap order, using Trap order as the breakpoint mark in script.It should be noted that, the rule inserting breakpoint mark in script for the rule preset, also can be inserted according to demand for developer.
207, described script is performed according to the first variate-value of described script;
After obtaining script, then need to perform script, script is made up of lines of code, multiple variate-value is there is in scripted code, and often perform one section of scripted code, then can obtain first object information, the first object information can for performing according to the first variate-value the result or a kind of state that obtain after script.
Whether the script 208, performed by judgement comprises described breakpoint mark, if so, then performs 209, if not, then performs 207;
When not having other to limit, in execution scenario process, all can perform script according to the executing rule of agreement, obtain final result, but after insert breakpoint mark in script, in the process performed, point identification is resolved when encountering, then can not continuing to perform, if do not encounter breakpoint mark, then performing follow-up scripted code by continuing.
209, the first variate-value of performed script and the first object information are sent to debug platform;
After running into breakpoint mark, the first object information that the first variate-value of the scripted code before performed breakpoint mark and execution obtain first is sent to debug platform by debug engine.
In the embodiment of the present invention, debug engine is by obtaining debugging condition from debug platform, and arranges debugging condition, and like this, developer can to facilitate at debug platform change debugging condition, improves debugging efficiency; Debug engine obtains script from script server, because the script stored in script server is up-to-date scripted code, so the script accessed by debug engine is also up-to-date scripted code, like this, improves the real-time of speech capability script debugging.
In above-described embodiment, describe debug engine and the first variate-value of performed script and the first object information are sent to debug platform, in actual applications, breakpoint mark can be inserted at every a line end of described script, before the first variate-value of performed script and the first object information are sent to debug platform, the execution of described script can also be hung up, preserve the first object information performing described script and obtain; After the first variate-value of performed script and the first object information are sent to debug platform, the second variate-value after the change of described debug platform can also be obtained, described script is performed according to described second variate-value, shown in Fig. 4, in the embodiment of the present invention, another embodiment of speech capability script debugging method comprises:
301, debugging condition is obtained from debug platform;
Because debug engine self cannot generate debugging condition, debugging condition generally writes generation by developer at debug platform, so debug engine needs to obtain debugging condition from debug platform.Such as, developer sets user's incoming call 99555 number, then can enter debugging, and so incoming call numbers 99555, be then debugging condition.
302, debugging condition is set;
After debug engine gets debugging condition from debug platform, then debugging condition can be arranged on debug engine, like this, debugging condition then can be used as the interface entering debugging mode.
303, call-in message is obtained;
Only have when user is when carrying out incoming call event, ability triggering voice ability script debugging engine, debug engine needs to judge whether this incoming call enters debugging mode, then need first to obtain user's call-in message, and call-in message comprises user's incoming call.
304, judge whether described call-in message meets default debugging condition, if so, then performs 305, if not, then perform other;
Because comprise multiple engine at script executing engine, be generally commercial engine, commercial engine then directly obtains script in a triggered, then script is performed, cannot realize the debugging to script, the present invention arranges a debug engine, take debugging condition as the interface of debug engine, when judging to meet debugging condition, then enter debug engine.
305, from script server, debug script is obtained;
When incoming signal meets debugging condition, then enter debugging mode, debug engine is the debugging for performing script, so need first to obtain script, and debug engine self do not have can the storer of permanent storage script, all scripts are all in script server, so needs obtain script from script server.
306, breakpoint mark is inserted at every a line end of described script;
Because comprise multistage code in script, if desired know every section of code perform after the result that obtains or state what, then need after often performing one section of code, the result obtained or state are exported successively, to reach single-step debug and to facilitate developer to judge according to object information, such as in script, insert Trap order, using Trap order as the breakpoint mark in script.It should be noted that, the rule inserting breakpoint mark in script for the rule preset, also can be inserted according to demand for developer.
307, described script is performed according to the first variate-value of described script;
After obtaining script, then need to perform script, script is made up of lines of code, in scripted code, there is multiple variate-value and often perform one section of scripted code, then can obtain first object information, the first object information can for performing according to the first variate-value the result or a kind of state that obtain after script.
Whether the script 308, performed by judgement comprises described breakpoint mark, if so, then performs 309, if not, then performs 307;
When not having other to limit, in execution scenario process, all can perform script according to the executing rule of agreement, obtain final result, but after insert breakpoint mark in script, in the process performed, point identification is resolved when encountering, then can not continuing to perform, if do not encounter breakpoint mark, then performing follow-up scripted code by continuing.
309, the execution of described script is hung up;
When in the process performing script, encounter breakpoint mark, then can not continue to perform, debug engine can hang up the execution of script.
310, the first object information performing described script and obtain is preserved;
An interim internal memory can be set in debug engine, after often performing one section of scripted code for preservation, the first object information obtained, because in the process of script execution, may need scripted code above to perform rear the first object information produced in follow-up scripted code.
311, the first variate-value of performed script and the first object information are sent to debug platform;
After running into breakpoint mark, the first object information that the first variate-value of the scripted code before performed breakpoint mark and execution obtain first is sent to debug platform by debug engine.
312, the second variate-value after the change of described debug platform is obtained;
After the first object information and the first variate-value are sent to debug platform by debug engine, developer if desired carries out two-way debugging to script, then can change the first variate-value and obtain the second variate-value, then the second variate-value is sent to debug engine.
313, debug command is obtained from described debug platform;
After debug engine receives the second variate-value that debug platform sends, need to obtain a debug command from debug platform, script could be performed according to the second variate-value.
314, described script is performed according to described second variate-value;
Debug engine carried out second time according to the second variate-value performed performing this script accordingly, because variate-value have changed, object information can be changed naturally.
315, the second object information obtained according to described second variate-value execution script is sent individual to debug platform;
Second object information is sent to debug platform by debug engine, and like this, developer then can find the Bug in script according to contrast first object information and the second object information, also facilitate developer to debug at this script.
In the embodiment of the present invention, breakpoint mark is inserted at every a line end of described script, so often perform a line scripted code, just the first variate-value of this row scripted code and the first object information are preserved and be sent to debug platform, after debug platform receives the first variate-value, first variate-value change is obtained the second variate-value, second variate-value is sent to debug engine, debug engine performs script with sentence second variate-value again and obtains the second object information, and the second object information is sent to debug platform, like this, just the two-way debugging of debug platform to debug engine is achieved, developer also can be found in script by judgement first object information and the second object information exists Bug.
With reference to shown in Fig. 5, in the embodiment of the present invention, an embodiment of speech capability script debugging device comprises:
First acquiring unit 401, for obtaining call-in message;
Only have when user is when carrying out incoming call event, ability triggering voice ability script debugging engine, debug engine needs to judge whether this incoming call enters debugging mode, then need first to obtain user's call-in message, and call-in message comprises user's incoming call.
Second acquisition unit 402, for when described call-in message meets default debugging condition, obtains script;
Because comprise multiple engine at script executing engine, be generally commercial engine, commercial engine then directly obtains script in a triggered, then script is performed, cannot realize the debugging to script, the present invention arranges a debug engine, take debugging condition as the interface of debug engine, when judging to meet debugging condition, then enter debug engine.When incoming signal meets debugging condition, then enter debugging mode, debug engine is the debugging for performing script, so need first to obtain script.
Plug-in unit 403, for when described call-in message meets default debugging condition, inserts breakpoint mark in described script;
Because comprise multistage code in script, if desired know every section of code perform after the result that obtains or state what, then need, after often performing one section of code, to export successively the result obtained or state, to reach single-step debug and to facilitate developer to judge according to object information.It should be noted that, the rule inserting breakpoint mark in script for the rule preset, also can be inserted according to demand for developer.
First performance element 404, performs described script for the first variate-value according to described script;
After obtaining script, then need to perform script, script is made up of lines of code, multiple variate-value is there is in scripted code, and often perform one section of scripted code, then can obtain first object information, the first object information can for performing according to the first variate-value the result or a kind of state that obtain after script.
First transmitting element 405, during for comprising described breakpoint mark when performed script, sends to debug platform by the first variate-value of performed script and the first object information;
When not having other to limit, in execution scenario process, all can perform script according to the executing rule of agreement, obtain final result, but after insert breakpoint mark in script, in the process performed, point identification is resolved when encountering, then can not continuing to perform, if do not encounter breakpoint mark, then performing follow-up scripted code by continuing.After running into breakpoint mark, the first object information that the first variate-value of the scripted code before performed breakpoint mark and execution obtain first is sent to debug platform by debug engine.
The embodiment of the present invention provides a kind of speech capability script debugging device, comprise: obtain call-in message, when described call-in message meets default debugging condition, obtain debug script, breakpoint mark is inserted in described script, the first variate-value according to described script performs described script, when performed script comprises described breakpoint mark, the first variate-value of performed script and the first object information is sent to debug platform.Like this, by inserting breakpoint mark in script, often perform a script, when performed script comprises breakpoint mark, the first variate-value in the first object information then obtained by performed script and performed script sends to debug platform, just achieves the single-step debug to script.
In above-described embodiment, describe debug engine and judge whether described call-in message meets default debugging condition, if, then obtain script, in actual applications, judge described call-in message also comprises and arranges debugging condition before whether meeting default debugging condition, and debug engine obtains script from script server, shown in Fig. 6, in the embodiment of the present invention, another embodiment of speech capability script debugging device comprises:
3rd acquiring unit 501, for obtaining debugging condition from debug platform;
Because debug engine self cannot generate debugging condition, debugging condition generally writes generation by developer at debug platform, so debug engine needs to obtain debugging condition from debug platform.Such as, developer sets user's incoming call 99555 number, then can enter debugging, and so incoming call numbers 99555, be then debugging condition.
Setting unit 502, for before described acquisition call-in message, arranges debugging condition;
After debug engine gets debugging condition from debug platform, then debugging condition can be arranged on debug engine, like this, debugging condition then can be used as the interface entering debugging mode.
First acquiring unit 503, for obtaining call-in message;
Only have when user is when carrying out incoming call event, ability triggering voice ability script debugging engine, debug engine needs to judge whether this incoming call enters debugging mode, then need first to obtain user's call-in message, and call-in message comprises user's incoming call.
First judging unit 504, for judging whether described call-in message meets default debugging condition;
Because comprise multiple engine at script executing engine, be generally commercial engine, commercial engine then directly obtains script in a triggered, then script is performed, cannot realize the debugging to script, the present invention arranges a debug engine, take debugging condition as the interface of debug engine, when judging to meet debugging condition, then enter debug engine.
Described second acquisition unit 505 comprises the second acquisition module 5051, for obtaining debug script from script server.
When incoming signal meets debugging condition, then enter debugging mode, debug engine is the debugging for performing script, so need first to obtain script, and debug engine self do not have can the storer of permanent storage script, all scripts are all in script server, so needs obtain script from script server.
Plug-in unit 506, for when described call-in message meets default debugging condition, inserts breakpoint mark in described script;
Because comprise multistage code in script, if desired know every section of code perform after the result that obtains or state what, then need after often performing one section of code, the result obtained or state are exported successively, to reach single-step debug and to facilitate developer to judge according to object information, such as in script, insert Trap order, using Trap order as the breakpoint mark in script.It should be noted that, the rule inserting breakpoint mark in script for the rule preset, also can be inserted according to demand for developer.
First performance element 507, performs described script for the first variate-value according to described script;
After obtaining script, then need to perform script, and often perform one section of scripted code, then can obtain first object information, the first object information can be a result obtaining after performing script according to the first variate-value or a kind of state.
Second judging unit 508, for judging whether performed script comprises described breakpoint mark;
When not having other to limit, in execution scenario process, all can perform script according to the executing rule of agreement, obtain final result, but after insert breakpoint mark in script, in the process performed, resolve point identification when encountering, then can not continue to perform.
Second performance element 509, during for not comprising described breakpoint mark when performed script, continues to perform described script.
If do not encounter breakpoint mark, then perform follow-up scripted code by continuing.
First transmitting element 510, during for comprising described breakpoint mark when performed script, sends to debug platform by the first variate-value of performed script and the first object information;
After running into breakpoint mark, the first object information that the first variate-value of the scripted code before performed breakpoint mark and execution obtain first is sent to debug platform by debug engine.
In the embodiment of the present invention, debug engine is by obtaining debugging condition from debug platform, and arranges debugging condition, and like this, developer can to facilitate at debug platform change debugging condition, improves debugging efficiency; Debug engine obtains script from script server, because the script stored in script server is up-to-date scripted code, so the script accessed by debug engine is also up-to-date scripted code, like this, improves the real-time of speech capability script debugging.
In above-described embodiment, describe debug engine and the first variate-value of performed script and the first object information are sent to debug platform, in actual applications, breakpoint mark can be inserted at every a line end of described script, before the first variate-value of performed script and the first object information are sent to debug platform, the execution of described script can also be hung up, preserve the first object information performing described script and obtain; After the first variate-value of performed script and the first object information are sent to debug platform, the second variate-value after the change of described debug platform can also be obtained, described script is performed according to described second variate-value, shown in Fig. 7, in the embodiment of the present invention, another embodiment of speech capability script debugging device comprises:
3rd acquiring unit 601, for obtaining debugging condition from debug platform;
Because debug engine self cannot generate debugging condition, debugging condition generally writes generation by developer at debug platform, so debug engine needs to obtain debugging condition from debug platform.Such as, developer sets user's incoming call 99555 number, then can enter debugging, and so incoming call numbers 99555, be then debugging condition.
Setting unit 602, for before described acquisition call-in message, arranges debugging condition;
After debug engine gets debugging condition from debug platform, then debugging condition can be arranged on debug engine, like this, debugging condition then can be used as the interface entering debugging mode.
First acquiring unit 603, for obtaining call-in message;
Only have when user is when carrying out incoming call event, ability triggering voice ability script debugging engine, debug engine needs to judge whether this incoming call enters debugging mode, then need first to obtain user's call-in message, and call-in message comprises user's incoming call.
First judging unit 604, for judging whether described call-in message meets default debugging condition;
Because comprise multiple engine at script executing engine, be generally commercial engine, commercial engine then directly obtains script in a triggered, then script is performed, cannot realize the debugging to script, the present invention arranges a debug engine, take debugging condition as the interface of debug engine, when judging to meet debugging condition, then enter debug engine.
Described second acquisition unit 605 comprises the second acquisition module 6051, for obtaining debug script from script server.
When incoming signal meets debugging condition, then enter debugging mode, debug engine is the debugging for performing script, so need first to obtain script, and debug engine self do not have can the storer of permanent storage script, all scripts are all in script server, so needs obtain script from script server.
Plug-in unit 606, for when described call-in message meets default debugging condition, inserts breakpoint mark in described script;
Because comprise multistage code in script, if desired know every section of code perform after the result that obtains or state what, then need after often performing one section of code, the result obtained or state are exported successively, to reach single-step debug and to facilitate developer to judge according to object information, such as in script, insert Trap order, using Trap order as the breakpoint mark in script.It should be noted that, the rule inserting breakpoint mark in script for the rule preset, also can be inserted according to demand for developer.
First performance element 607, performs described script for the first variate-value according to described script;
After obtaining script, then need to perform script, and often perform one section of scripted code, then can obtain first object information, the first object information can be a result obtaining after performing script according to the first variate-value or a kind of state.
Second judging unit 608, for judging whether performed script comprises described breakpoint mark;
When not having other to limit, in execution scenario process, all can perform script according to the executing rule of agreement, obtain final result, but after insert breakpoint mark in script, in the process performed, resolve point identification when encountering, then can not continue to perform.
Second performance element 609, during for not comprising described breakpoint mark when performed script, continues to perform described script.
If do not encounter breakpoint mark, then perform follow-up scripted code by continuing.
Hang up unit 610, for before the first variate-value of performed script and the first object information are sent to debug platform, hang up the execution of described script;
When in the process performing script, encounter breakpoint mark, then can not continue to perform, debug engine can hang up the execution of script.
Storage unit 611, for before the first variate-value of performed script and the first object information are sent to debug platform, preserves the first object information performing described script and obtain;
An interim internal memory can be set in debug engine, after often performing one section of scripted code for preservation, the first object information obtained, because in the process of script execution, may need scripted code above to perform rear the first object information produced in follow-up scripted code.
First transmitting element 612, during for comprising described breakpoint mark when performed script, sends to debug platform by the first variate-value of performed script and the first object information;
After running into breakpoint mark, the first object information that the first variate-value of the scripted code before performed breakpoint mark and execution obtain first is sent to debug platform by debug engine.
4th acquiring unit 613, for after the first variate-value of performed script and the first object information are sent to debug platform, obtains the second variate-value after the change of described debug platform;
After the first object information and the first variate-value are sent to debug platform by debug engine, developer if desired carries out two-way debugging to script, then can change the first variate-value and obtain the second variate-value, then the second variate-value is sent to debug engine.
5th acquiring unit 614, for before performing described script according to described second variate-value, obtains debug command from described debug platform;
After debug engine receives the second variate-value that debug platform sends, need to obtain a debug command from debug platform, script could be performed according to the second variate-value.
3rd performance element 615, for performing described script according to described second variate-value;
Debug engine carried out second time according to the second variate-value performed performing this script accordingly, because variate-value have changed, object information can be changed naturally.
Second transmitting element 616, for after performing described script according to described second variate-value, sends to debug platform by the second object information obtained according to described second variate-value execution script;
Second object information is sent to debug platform by debug engine, and like this, developer then can find the Bug in script according to contrast first object information and the second object information, also facilitate developer to debug at this script.
In the embodiment of the present invention, breakpoint mark is inserted at every a line end of described script, so often perform a line scripted code, just the first variate-value of this row scripted code and the first object information are preserved and be sent to debug platform, after debug platform receives the first variate-value, first variate-value change is obtained the second variate-value, second variate-value is sent to debug engine, debug engine performs script with sentence second variate-value again and obtains the second object information, and the second object information is sent to debug platform, like this, just the two-way debugging of debug platform to debug engine is achieved, developer also can be found in script by judgement first object information and the second object information exists Bug.
The above, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (22)

1. a speech capability script debugging method, is characterized in that, comprising:
Obtain call-in message;
When described call-in message meets default debugging condition, obtain debug script;
Breakpoint mark is inserted in described script;
The first variate-value according to described script performs described script;
When performed script comprise described breakpoint mark time, by the first variate-value of performed script with
And first object information send to debug platform.
2. method according to claim 1, it is characterized in that, before described acquisition call-in message, described method also comprises: arrange debugging condition.
3. method according to claim 2, is characterized in that, described debugging condition is set before, described method also comprises: obtain debugging condition from debug platform.
4. according to claims 1 to 3 wherein method described in any one, it is characterized in that, described when comprising described breakpoint mark when performed script, before the first variate-value of performed script and the first object information are sent to debug platform, described method also comprises:
Whether the script performed by judgement comprises described breakpoint mark.
5. method according to claim 4, it is characterized in that, described method also comprises:
Whether the script performed by judgement comprises described breakpoint mark, if not, then continues to perform described script.
6. according to claims 1 to 3 wherein method described in any one, it is characterized in that, before the first variate-value of performed script and the first object information are sent to debug platform, described method also comprises:
Hang up the execution of described script;
Preserve the first object information performing described script and obtain.
7. according to claims 1 to 3 wherein method described in any one, it is characterized in that, after the first variate-value of performed script and the first object information are sent to debug platform, described method also comprises:
Obtain the second variate-value after the change of described debug platform, perform described script according to described second variate-value.
8. method according to claim 7, it is characterized in that, after performing described script according to described second variate-value, described method also comprises:
The second object information obtained according to described second variate-value execution script is sent to debug platform.
9. method according to claim 8, it is characterized in that, before performing described script according to described second variate-value, described method also comprises:
Debug command is obtained from described debug platform.
10. according to claims 1 to 3 wherein method described in any one, it is characterized in that, described acquisition script comprises: from script server, obtain script.
11., according to claims 1 to 3 wherein method described in any one, is characterized in that, described breakpoint mark of inserting in described script comprises:
Breakpoint mark is inserted at every a line end of described script.
12. 1 kinds of speech capability script debugging devices, is characterized in that, comprising:
First acquiring unit, for obtaining call-in message;
Second acquisition unit, for when described call-in message meets default debugging condition, obtains debugging
Script;
Plug-in unit, for inserting breakpoint mark in described script;
First performance element, performs described script for the first variate-value according to described script;
First transmitting element, during for comprising described breakpoint mark when performed script, by performed
First variate-value and first object information of script send to debug platform.
13., according to device described in claim 12, is characterized in that, described device also comprises:
Setting unit, for before described acquisition call-in message, arranges debugging condition.
14., according to device described in claim 13, is characterized in that, described device also comprises:
3rd acquiring unit, for described debugging condition is set before, from debug platform obtain debugging condition.
15. according to claim 12 to 14 wherein devices described in any one, and it is characterized in that, described device also comprises:
Judging unit, for when comprising described breakpoint mark when performed script, before the first variate-value of performed script and the first object information are sent to debug platform, whether the script performed by judgement comprises described breakpoint mark.
16., according to device described in claim 15, is characterized in that, described device also comprises:
Second performance element, during for not comprising described breakpoint mark when performed script, continues to perform described script.
17. according to claim 12 to 14 wherein devices described in any one, and it is characterized in that, described device also comprises:
Hang up unit, for before the first variate-value of performed script and the first object information are sent to debug platform, hang up the execution of described script;
Storage unit, for before the first variate-value of performed script and the first object information are sent to debug platform, preserves the first object information performing described script and obtain.
18. according to claim 12 to 14 wherein devices described in any one, and it is characterized in that, described device also comprises:
4th acquiring unit, for after the first variate-value of performed script and the first object information are sent to debug platform, obtains the second variate-value after the change of described debug platform;
3rd performance element, for performing described script according to described second variate-value.
19., according to device described in claim 18, is characterized in that, described device also comprises:
Second transmitting element, for after performing described script according to described second variate-value, sends to debug platform by the second object information obtained according to described second variate-value execution script.
20., according to device described in claim 19, is characterized in that, described device also comprises:
5th acquiring unit, for before performing described script according to described second variate-value, obtains debug command from described debug platform.
21. according to claim 12 to 14 wherein devices described in any one, and it is characterized in that, described second acquisition unit comprises:
Second acquisition module, for obtaining script from script server.
22. according to claim 12 to 14 wherein devices described in any one, and it is characterized in that, described plug-in unit comprises:
Insert module, inserts breakpoint mark for the every a line end at described script.
CN201410767088.XA 2014-12-12 2014-12-12 Debug method and device of phonological competence scripts Pending CN104461889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410767088.XA CN104461889A (en) 2014-12-12 2014-12-12 Debug method and device of phonological competence scripts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410767088.XA CN104461889A (en) 2014-12-12 2014-12-12 Debug method and device of phonological competence scripts

Publications (1)

Publication Number Publication Date
CN104461889A true CN104461889A (en) 2015-03-25

Family

ID=52907978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410767088.XA Pending CN104461889A (en) 2014-12-12 2014-12-12 Debug method and device of phonological competence scripts

Country Status (1)

Country Link
CN (1) CN104461889A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110012175A (en) * 2018-07-19 2019-07-12 贵阳朗玛信息技术股份有限公司 For debugging device, system and its application method of IVR business

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030212561A1 (en) * 2002-05-08 2003-11-13 Williams Douglas Carter Method of generating test scripts using a voice-capable markup language
US20050132261A1 (en) * 2003-12-12 2005-06-16 International Business Machines Corporation Run-time simulation environment for voiceXML applications that simulates and automates user interaction
CN102868717A (en) * 2011-07-08 2013-01-09 华为软件技术有限公司 Method, device and system for editing and debugging voice extensible markup language script
CN102981957A (en) * 2012-11-30 2013-03-20 福建天晴数码有限公司 Virtual breakpoint script debugging method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030212561A1 (en) * 2002-05-08 2003-11-13 Williams Douglas Carter Method of generating test scripts using a voice-capable markup language
US20050132261A1 (en) * 2003-12-12 2005-06-16 International Business Machines Corporation Run-time simulation environment for voiceXML applications that simulates and automates user interaction
CN102868717A (en) * 2011-07-08 2013-01-09 华为软件技术有限公司 Method, device and system for editing and debugging voice extensible markup language script
CN102981957A (en) * 2012-11-30 2013-03-20 福建天晴数码有限公司 Virtual breakpoint script debugging method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110012175A (en) * 2018-07-19 2019-07-12 贵阳朗玛信息技术股份有限公司 For debugging device, system and its application method of IVR business
CN110012175B (en) * 2018-07-19 2021-05-07 贵阳朗玛信息技术股份有限公司 Device and system for debugging IVR service and application method thereof

Similar Documents

Publication Publication Date Title
US10154118B2 (en) System and method for telephony and communication services with message-based API
US10055742B2 (en) Call transfers for web-delivered calls
CN105119877B (en) Speech verification method, apparatus and system
TWI569618B (en) Communication method of hiding privacy and system thereof
CN103379449B (en) Method and device for showing called state on calling terminal in calling process
US8234368B1 (en) System, method, and computer program for reporting a communication flow to a lawful intercept framework
EP1886467A2 (en) Generating and transforming call control elements, dialog elements, and session initiation protocol messages for telephony service applications
JP2011511599A (en) Transfer error recovery technology
CN103761123B (en) Function activating method, device and terminal
CN104601833B (en) Intelligent guidance service system and method fusing IMS and intelligent terminal technology
US20160301805A1 (en) Government enterprise network communication device and communication method, and computer storage medium
CN105472430A (en) Method of making mobile terminal ring through intelligent television, equipment and system thereof
CN109582655B (en) Method and device for positioning system log and computer readable storage medium
CN104270509A (en) Displaying method of interface of mobile terminal, mobile terminal and server
EP2963957A1 (en) Method and device for calling by binding client to terminal
CN104954588B (en) Voice leaving method and tone information device
CN114401252B (en) Calling method of telephone traffic system and telephone traffic system
CN104461889A (en) Debug method and device of phonological competence scripts
CN103813031B (en) Call processing method and device
CN106789832A (en) Data processing method, device and system in a kind of communication process
CN105635497A (en) Terminal call transfer method and call transfer terminal
Ansari et al. SIP-based interactive voice response system using freeswitch epbx
RU2641724C2 (en) Method and home gateway for implementation of voice messages functions
JP5937796B2 (en) Call recording system and method in call center system
US8712028B2 (en) Telephone relaying apparatus, telephone relaying method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150325