CN107979856A - Connect the method and apparatus of engine - Google Patents

Connect the method and apparatus of engine Download PDF

Info

Publication number
CN107979856A
CN107979856A CN201711177181.5A CN201711177181A CN107979856A CN 107979856 A CN107979856 A CN 107979856A CN 201711177181 A CN201711177181 A CN 201711177181A CN 107979856 A CN107979856 A CN 107979856A
Authority
CN
China
Prior art keywords
engine
echo message
specified
engines
heartbeat packet
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
CN201711177181.5A
Other languages
Chinese (zh)
Other versions
CN107979856B (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.)
Shenzhen waterward Software Technology Co.,Ltd.
Original Assignee
Shenzhen Water World 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 Shenzhen Water World Co Ltd filed Critical Shenzhen Water World Co Ltd
Priority to CN201711177181.5A priority Critical patent/CN107979856B/en
Publication of CN107979856A publication Critical patent/CN107979856A/en
Application granted granted Critical
Publication of CN107979856B publication Critical patent/CN107979856B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/08Speech classification or search
    • G10L15/083Recognition networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Machine Translation (AREA)
  • Telephonic Communication Services (AREA)

Abstract

Present invention is disclosed a kind of method and apparatus for connecting engine, wherein, the method for connecting engine, including:The first heartbeat packet is sent respectively to multiple specified engines at the same time;Receive the first echo message that multiple above-mentioned specified engines are fed back respectively according to above-mentioned first heartbeat packet;It is attached according to above-mentioned first echo message and the corresponding above-mentioned engine of preset rules selection.The present invention is attached according to the use habit of user or by judging that the network state of different specified engines automatically selects suitable third party's engine, and speech recognition class engine, translation class engine and the phonetic synthesis class engine of the translator of the present invention are according to independent demand of all categories, each suitable third party's engine is made choice in multiple third party's engines respectively to be attached, and monitor and Engine-Network connection status in use, targetedly switched according to Engine-Network state in time, realize the function of real time translation, improve translation efficiency.

Description

Connect the method and apparatus of engine
Technical field
The present invention relates to electronic equipment and Network Connection field, the method and dress of connection engine are especially related to Put.
Background technology
Translator is subject to that the vast personage's that goes abroad is joyous by feat of compact portable appearance, powerful multi-lingual interpretative function Meet, while be also the good assistant of foreign language studying.Mainstream translator combination modern electronic technology has reached stronger use on the market Effect.It is the favorite of around-the-world trip fan to support multi-lingual interpretative function.Speech voice input function reduce further translation Machine uses door, there is provided more conveniences, are liked be subject to numerous people going abroad.Existing translator, is specified mostly Third-party single engine, it is impossible to select respectively speech recognition class engine, translation class engine and phonetic synthesis class engine Select respective most suitable third party's engine, it is impossible to deep learning is carried out according to the use habit of user and carried out intelligent cut later Change, and any one engine in fixed single engine because network connection paralyse when, then cause whole translator not use, give User makes troubles.
Therefore, the prior art could be improved.
The content of the invention
The main object of the present invention is a kind of method for connecting engine of offer, it is intended to which solving translator cannot be according to user's Use habit or Engine-Network situation automatically select the technical problem that suitable engine is attached.
The present invention proposes a kind of method for connecting engine, including:
The first heartbeat packet is sent respectively to multiple specified engines at the same time;
Receive the first echo message that multiple specified engines are fed back respectively according to first heartbeat packet;
It is attached according to first echo message and the corresponding engine of preset rules selection.
Preferably, described the step of being attached according to first echo message and preset rules selection engine, bag Include:
Judge whether to receive first echo message of default setting engine feedback;
If it is determined that it is no, then analyze the chronological order that multiple specified engines feed back first echo message respectively;
Connection is established according to the chronological order specified engine corresponding with being initially received first echo message.
Preferably, it is the first engine to be initially received the corresponding specified engine of first echo message, it is described with first After receiving the step of corresponding first engine of first echo message establishes connection, including:
According to first scheduled time monitoring heartbeat packet is sent to first engine;
Monitor the second echo message that first engine is fed back according to the monitoring heartbeat packet first responds duration;
Judge whether the first response duration is more than preset value;
If it is determined that it is then to send the second heartbeat packet respectively to multiple specified engines at the same time again;
Monitor the time time for the 3rd echo message that multiple specified engines are fed back respectively according to second heartbeat packet Sequence;
Connection is established according to the chronological order specified engine corresponding with being initially received the 3rd echo message.
Preferably, it is the first engine to be initially received the corresponding specified engine of first echo message, it is described with first After receiving the step of corresponding specified engine of first echo message establishes connection, further include:
The 3rd heartbeat packet is sent respectively to multiple specified engines at the same time again according to second scheduled time;
Receive the 4th echo message that multiple specified engines are fed back respectively according to the 3rd heartbeat packet;
Analysis is initially received specified engine corresponding to the 4th echo message and whether first engine is identical, Wherein, it is the 3rd engine to be initially received the specified engine corresponding to the 4th echo message;
If differing, the 3rd engine is switched to by first engine.
Preferably, described the step of judging whether to receive first echo message of default setting engine feedback it Afterwards, including:
If it is determined that it is then to establish and connect with the default setting engine.
Preferably, described the step of judging whether to receive first echo message of default setting engine feedback it Before, including:
Monitor the frequency of use of multiple specified engines;
Screen the highest specified engine of the frequency of use;
It is the default setting engine to be set using the highest specified engine of frequency.
Preferably, described the step of judging whether to receive first echo message of default setting engine feedback it Before, further include:
Analyze user's history engine use information;
The default setting engine is set according to the history engine use information.
Preferably, described the step of judging whether to receive first echo message of default setting engine feedback it Before, further include:
Analysis engine handles the application feature information of data;
The default setting engine is set according to the application feature information.
The present invention also provides a kind of device for connecting engine, including:
First sending module, for sending the first heartbeat packet respectively to multiple specified engines at the same time;
First receiving module, first fed back respectively according to first heartbeat packet for receiving multiple specified engines Echo message;
Selecting module, for being connected according to first echo message and the corresponding engine of preset rules selection Connect.
Preferably, the selecting module, including:
First judging unit, for judging whether to receive first echo message of default setting engine feedback;
First analytic unit, feeds back described first for if it is determined that no, then analyzing multiple specified engines and responds respectively The chronological order of information;
First establishes unit, for according to chronological order finger corresponding with being initially received first echo message Determine engine and establish connection.
Preferably, it is the first engine to be initially received the corresponding specified engine of first echo message, the selection mould Block, including
Second transmitting element, for sending monitoring heartbeat packet to first engine according to first scheduled time;
First monitoring unit, the second echo message fed back for monitoring first engine according to the monitoring heartbeat packet First respond duration;
Second judging unit, for judging whether the first response duration is more than preset value;
3rd transmitting element, for if it is determined that being then to send second heart respectively to multiple specified engines at the same time again Jump bag;
Second monitoring unit, the 3rd fed back respectively according to second heartbeat packet for monitoring multiple specified engines The chronological order of echo message;
Second establishes unit, for according to chronological order finger corresponding with being initially received the 3rd echo message Determine engine and establish connection.
Preferably, it is the first engine to be initially received the corresponding specified engine of first echo message, the selection mould Block, further includes:
4th transmitting element, for sending the respectively to multiple specified engines at the same time again according to second scheduled time Three heartbeat packets;
3rd receiving unit, the 4th fed back respectively according to the 3rd heartbeat packet for receiving multiple specified engines Echo message;
Second analytic unit, for analyze be initially received specified engine corresponding to the 4th echo message with it is described Whether the first engine is identical, wherein, it is the 3rd engine to be initially received the specified engine corresponding to the 4th echo message;
Switch unit, if being differed for the 3rd engine with first engine, is switched by first engine To the 3rd engine.
Preferably, the selecting module, including:
3rd establishes module, for if it is determined that receive the first echo message of the default setting engine feedback, then with The default setting engine establishes connection.
Preferably, the selecting module, including:
Monitoring unit, for monitoring the frequency of use of multiple specified engines;
Screening unit, for screening the highest specified engine of the frequency of use;
First setting unit, is the default setting engine for being set using the highest specified engine of frequency.
Preferably, the selecting module, further includes:
3rd analytic unit, for analyzing user's history engine use information;
Second setting unit, for setting the default setting engine according to the history engine use information.
Preferably, the selecting module, further includes:
4th analytic unit, the application feature information for analysis engine processing data;
3rd setting unit, for setting the default setting engine according to the application feature information.
Advantageous effects of the present invention:The present invention is according to the use habit of user or the net by judging different specified engines Network state automatically selects suitable third party's engine and is attached, and the present invention translator speech recognition class engine, turn over Class engine and phonetic synthesis class engine are translated according to independent demand of all categories, is made choice respectively in multiple third party's engines Respective suitable third party's engine is attached, and monitors draw with Engine-Network connection status, timely basis in use Hold up network state targetedly to be switched, realize the function of real time translation, improve translation efficiency.
Brief description of the drawings
The method flow schematic diagram of the connection engine of Fig. 1 one embodiment of the invention;
The flow diagram of step S3 in Fig. 2 one embodiment of the invention;
The method Optimizing Flow schematic diagram of the connection engine of Fig. 3 one embodiment of the invention;
The method flow schematic diagram of the connection engine of Fig. 4 another embodiment of the present invention;
The method flow schematic diagram of the connection engine of Fig. 5 yet another embodiment of the invention;
The method Optimizing Flow schematic diagram of the connection engine of Fig. 6 yet another embodiment of the invention;
The method flow schematic diagram of the connection engine of Fig. 7 further embodiment of this invention;
The method flow schematic diagram of the connection engine of Fig. 8 further embodiment of this invention;
The apparatus structure schematic diagram of the connection engine of Fig. 9 one embodiment of the invention;
The structure diagram of the selecting module of Figure 10 one embodiment of the invention;
The apparatus structure optimization schematic diagram of the connection engine of Figure 11 one embodiment of the invention;
The apparatus structure schematic diagram of the connection engine of Figure 12 another embodiment of the present invention;
The apparatus structure schematic diagram of the connection engine of Figure 13 yet another embodiment of the invention;
The apparatus structure optimization schematic diagram of the connection engine of Figure 14 yet another embodiment of the invention;
The apparatus structure schematic diagram of the connection engine of Figure 15 further embodiment of this invention;
The apparatus structure schematic diagram of the connection engine of Figure 16 further embodiment of this invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Reference Fig. 1, the method for the connection engine of one embodiment of the invention, including:
S1:The first heartbeat packet is sent respectively to multiple specified engines at the same time.
In the embodiment of the present invention, the method for connecting engine is applied to terminal device, and the terminal device is by taking translator as an example.This The management server of translator sends multiple specified engines of function of the same race to translator in advance in inventive embodiments, such as:This Engine in embodiment includes drawing for speech recognition class engine, translation class engine and three kinds of functions of phonetic synthesis class speech engine Classification is held up, each engine classification corresponds to respective multiple specified engines respectively, for example, speech recognition class engine includes HKUST News Speech recognition engine, Microsoft's speech recognition engine, IBM speech recognition engines, Baidu's speech recognition engine, Google's speech recognition are drawn Hold up, Kingsoft speech recognition engine etc.;Translation engine includes:Baidu's translation engine, Google's translation engine, IBM translation engines, University of Science and Technology News fly translation engine etc.;Speech synthesis engine includes:Baidu's speech synthesis engine, Google's speech synthesis engine, IBM phonetic syntheses Engine, HKUST News speech synthesis engine etc..The engine classification of three kinds of functions is respectively according to corresponding more in the present embodiment The network state of a specified engine makes choice connection.For example translator, when selecting speech recognition engine, meeting is at the same time to University of Science and Technology News fly speech recognition engine, Microsoft's speech recognition engine, IBM speech recognition engines, Baidu's speech recognition engine, Google's voice and know Other engine, Kingsoft speech recognition engine etc. send the first heartbeat packet to judge the network state of each third party's engine.
Engine of the present invention refers to server, for example, specifying engine to refer to given server, speech recognition class engine finger speech Sound identifies class server, and Baidu's translation engine refers to Baidu's translating server etc..
S2:Receive the first echo message that multiple above-mentioned specified engines are fed back respectively according to above-mentioned first heartbeat packet.
Such as above-mentioned HKUST News speech recognition engine, Microsoft's speech recognition engine, IBM speech recognition engines, Baidu's language After sound identification engine, Google's speech recognition engine, Kingsoft speech recognition engine etc. receive the first heartbeat packet, fed back to translator First echo message judges according to the sequencing for receiving the first echo message the network of each third party's engine so as to translator State, the network state being initially received are best.
S3:It is attached according to first echo message and the corresponding above-mentioned engine of preset rules selection.
The step of preset rules of the present embodiment, includes:S301 judges whether that receive default setting engine first responds Information, S302 select to be connected with default setting engine if receiving;If S303 is not received, compare and receive other engines The precedence of first echo message of feedback, the engine with being initially received the first echo message link;And the present embodiment In can individually be selected according to the engine classification of different functions.For example speech recognition engine Chinese University of Science and Technology news fly speech recognition and draw The network state held up is optimal, then selects HKUST News speech recognition engine;The network state of Baidu's translation engine in translation engine Most preferably, then Baidu's translation engine is selected;The network state of IBM speech synthesis engines is optimal in speech synthesis engine, then selects IBM Speech synthesis engine.
With reference to Fig. 2, further, the method for the connection engine of one embodiment of the invention, multiple above-mentioned specified engines include First engine, step S3, including:
S30:Judge whether to receive above-mentioned first echo message of default setting engine feedback.
S31:If it is determined that it is no, then analyze the time time that multiple above-mentioned specified engines feed back above-mentioned first echo message respectively Sequence.
S32:The first engine corresponding to according to chronological order and being initially received above-mentioned first echo message, which is established, to be connected.
First echo message of feedback reach at first translator for the first engine.First in the embodiment of the present invention is Easy to state, do not limit, first, second, third, fourth grade elsewhere is also identical, does not repeat.
With reference to Fig. 3, further, the method for the connection engine of one embodiment of the invention, the present invention will be with being initially received Corresponding specified the first engine of engine definitions of first echo message, after step S32, further includes:
S320:According to first scheduled time monitoring heartbeat packet is sent to above-mentioned first engine.
Such as first the scheduled time for 15min, 30min etc., preset by the server of translator.This implementation Example is described in detail exemplified by selecting connection speech recognition class engine.
S321:Monitor above-mentioned first engine according to above-mentioned monitoring heartbeat packet feed back the second echo message first respond when It is long.
This step by monitor the first response duration the speech recognition class that judges currently to connect the first engine (such as: HKUST News speech recognition engine) network state, to avoid translation efficiency is influenced because of network failure during use.
S322:Judge whether above-mentioned first response duration is more than preset value.
For example preset value is 10S or 15S.
S323:If it is determined that it is then to send the second heartbeat packet respectively to multiple above-mentioned specified engines at the same time again.
For example preset value is set as 10S, the response duration listened to is more than 10S, then it is assumed that current speech identifies engine net Network failure is, it is necessary to rejudge the network state of above-mentioned each speech recognition engine.
S324:Monitor the 3rd echo message that multiple specified engines feed back respectively according to above-mentioned second heartbeat packet and right The chronological order answered.
S325:Specified engine corresponding to according to the chronological order and being initially received above-mentioned 3rd echo message is established Connection.
Such as the speech recognition class engine rejudged the second engine (such as:IBM speech recognition engines) it is network-like State is preferable, then is connected with IBM speech recognition engines.The present invention by with the finger that is initially received corresponding to above-mentioned 3rd echo message It is the second engine to determine engine definitions.
With reference to Fig. 4, the method for the connection engine of another embodiment of the present invention, the present embodiment will be initially received described first The corresponding specified engine definitions of echo message are the first engine, after step S32, are further included:
S326:The 3rd heartbeat packet is sent respectively to multiple above-mentioned specified engines at the same time again according to second scheduled time.
Such as:Second scheduled time was half an hour or 1 hour, and the second pre- timing is controlled by translator server Between.The present embodiment refers to during normally use is connected with the first engine of speech recognition class engine, can separated in time weight The Network status of above-mentioned each engine of speech recognition class is newly judged, to replace the more preferable speech recognition engine of Network status in time.
S327:Receive the 4th echo message that multiple above-mentioned specified engines are fed back respectively according to above-mentioned 3rd heartbeat packet;
S328:Analyze the corresponding chronological order of multiple 4th echo messages received;
S329:According to the chronological order analysis be initially received above-mentioned 4th echo message corresponding to specified engine with Whether above-mentioned first engine is identical, wherein, it is initially received the specified engine corresponding to the 4th echo message and draws for the 3rd Hold up.
By analysis, if above-mentioned 3rd engine and above-mentioned first engine are identical engine, or engine differs, but the Four echo message feedback times are identical, then the Network status of the first engine is still best, continue to connect the first engine.
S330:If differing, above-mentioned 3rd engine is switched to by above-mentioned first engine.
If differing, illustrate that the Network status of the 3rd engine is better than the first engine, then switch the first engine currently connected To more preferable 3rd engine of Network status, to further improve translation efficiency.
With reference to Fig. 5, the method for the connection engine of yet another embodiment of the invention, after step S30, including:
S301:If it is determined that it is then to establish and connect with above-mentioned default setting engine.
Exist in the present embodiment in translator by the default default setting engine of translator server.If it is determined that receive silent The first echo message that engine feedback is set is recognized, to judge current translator whether in the coverage of default setting engine. If receiving the first echo message of default setting engine feedback in the present embodiment, even if the first of default setting engine feedback Echo message is not initially received, it is also preferred that being connected with default setting engine, to further conform to user's use habit, is carried High user experience.
With reference to Fig. 6, further, the method for the connection engine of yet another embodiment of the invention, before step S30, including:
S302:Monitor the frequency of use of multiple above-mentioned specified engines.
Frequency of use includes access times monthly or access times weekly.
S303:Screen the highest specified engine of above-mentioned frequency of use.
Such as:The highest HKUST News speech recognition engine monthly to use 2 times using 10 times or weekly of frequency of use.
S304:If more than it is above-mentioned default setting engine to set the highest specified engine of above-mentioned frequency of use.
The present embodiment sets default setting engine according to frequency of use, with the use demand being further close to the users.
With reference to Fig. 7, the method for the connection engine of further embodiment of this invention, before step S30, further includes:
S305:Analyze user's history engine use information.
User's history engine use information includes history translation custom in this step, such as, commonly using Chinese-English translation, in Method translation, often matched engine, each engine use the usage records such as duration, cost of use.
S306:Above-mentioned default setting engine is set according to above-mentioned history engine use information.
This step refers to according to after the progress depth analysis study of the use habit of user, and further setting meets user and uses habit Used default setting engine, so that the function of the intelligent switch engine of translator progress more meets the use demand of user, raising makes With experience.
With reference to Fig. 8, the method for the connection engine of further embodiment of this invention, before step S30, further includes:
S307:Analysis engine handles the application feature information of data.
Language that application feature information in this step includes each engine is supportive, translation efficiency, accuracy and expense The application feature information such as standard.Such as the preferred high speech recognition class engine of recognition accuracy;Turned over it is preferred that translation accuracy is strong Translate class engine;Synthesize the phonetic synthesis class engine that voice compactness is high and expense is low.Application feature information can be drawn by third party The official website network data held up obtains, such as supportive by engine attributive analysis language;With the user of collection to translating accuracy Accreditation scoring be used as accuracy reference analysis accuracy.
S308:Above-mentioned default setting engine is set according to above application condition information.
Citing ground, translator use HKUST News voice in two months to the application feature information of server feedback for user Identify the recognition accuracy highest of engine;The translation efficiency highest of Baidu's translation engine;The synthesis accuracy rate of IBM Compositing Engines is most It is high;Each default setting engine of translator is then set by above application condition information.
With reference to Fig. 9, the device of the connection engine of one embodiment of the invention, is integrated on terminal device, including:
First sending module 1, for sending the first heartbeat packet respectively to multiple specified engines at the same time.
In the embodiment of the present invention, terminal device is by taking translator as an example.The server of translator is advance in the embodiment of the present invention Multiple specified engines of function of the same race are sent to translator, such as:Engine in the present embodiment includes speech recognition class engine, turns over The engine classification of three kinds of functions of class engine and phonetic synthesis class speech engine is translated, each engine classification corresponds to respective more respectively A specified engine, for example, speech recognition class engine includes HKUST News speech recognition engine, Microsoft's speech recognition engine, IBM languages Sound identification engine, Baidu's speech recognition engine, Google's speech recognition engine, Kingsoft speech recognition engine etc.;Translation engine includes: Baidu's translation engine, Google's translation engine, IBM translation engines, HKUST News translation engine etc.;Speech synthesis engine includes:Hundred Spend speech synthesis engine, Google's speech synthesis engine, IBM speech synthesis engines, HKUST News speech synthesis engine etc..This implementation The engine classification of three kinds of functions makes choice connection according to the network state of corresponding multiple specified engines respectively in example.Than Such as, translator is when selecting speech recognition engine, can by the first sending module 1 at the same time to HKUST News speech recognition engine, Microsoft's speech recognition engine, IBM speech recognition engines, Baidu's speech recognition engine, Google's speech recognition engine, Kingsoft voice are known Other engine etc. sends the first heartbeat packet to judge the network state of each third party's engine.
First receiving module 2, fed back respectively according to above-mentioned first heartbeat packet for receiving multiple specified engines One echo message.
Such as above-mentioned HKUST News speech recognition engine, Microsoft's speech recognition engine, IBM speech recognition engines, Baidu's language After sound identification engine, Google's speech recognition engine, Kingsoft speech recognition engine etc. receive the first heartbeat packet, fed back to translator First echo message is so that translator is by 2 first echo message of the first receiving module, according to receiving the first echo message Sequencing judges the network state of each third party's engine, and the network state being initially received is best.
Selecting module 3, for selecting corresponding engine to be attached according to first echo message and preset rules.
Can individually it be selected by selecting module 3 according to the engine classification of different functions in the present embodiment.Such as voice Identify that the network state of the winged speech recognition engine of engine Chinese University of Science and Technology news is optimal, then select HKUST News speech recognition engine;Translation The network state of Baidu's translation engine is optimal in engine, then selects Baidu's translation engine;IBM phonetic syntheses in speech synthesis engine The network state of engine is optimal, then selects IBM speech synthesis engines.
Reference Figure 10, further, the selecting module 3 of one embodiment of the invention, including:
First judging unit 30, for judging whether to receive first echo message of default setting engine feedback.
First analytic unit 31, for if it is determined that no, then analyzing multiple specified engines and feeding back respectively described first time Answer the chronological order of information;
First establishes unit 32, for corresponding with being initially received first echo message according to above-mentioned chronological order Engine is specified to establish connection.
The above-mentioned preset rules of the present embodiment include judging whether that receiving default setting draws by the first judging unit 30 The first echo message held up, selects to be connected with default setting engine if receiving;It is single by the first analysis if not receiving The precedence that member 31 compares the first echo message for receiving other engine feedbacks, then by first establish unit 32 with most The engine link of the first echo message is first received, the first echo message of feedback is reached translator by the embodiment of the present invention at first Definition be the first engine.First in the embodiment of the present invention for ease of statement, does not limit, and elsewhere first, the 2nd, the three, 4th etc. is also identical, does not repeat.
With reference to Figure 11, further, the selecting module 3 of one embodiment of the invention, further includes
Second transmitting element 320, for sending monitoring heartbeat packet to first engine according to first scheduled time.
Such as first the scheduled time for 15min, 30min etc., preset by the server of translator.This implementation Example is described in detail exemplified by selecting connection speech recognition class engine.
First monitoring unit 321, is responded for monitoring first engine is fed back according to above-mentioned monitoring heartbeat packet second The first of information responds duration.
First response duration is monitored by monitoring unit 321 to judge the first engine of speech recognition class currently connected (such as:HKUST News speech recognition engine) network state, to avoid influenced during use because of network failure translation effect Rate.
Second judging unit 322, for judging whether the first response duration is more than preset value.
For example preset value is 10S or 15S.
3rd transmitting element 323, for if it is determined that being then to send second respectively to multiple specified engines at the same time again Heartbeat packet.
For example preset value is set as 10S, the response duration listened to is more than 10S, then it is assumed that current speech identifies engine net Network failure, it is necessary to multiple specified engines send the second heartbeat packet respectively at the same time again by the 3rd transmitting element 323, with Rejudge the network state of above-mentioned each speech recognition engine.
Second monitoring unit 324, feeds back for monitoring multiple specified engines respectively according to above-mentioned second heartbeat packet The chronological order of 3rd echo message;.
Second establishes unit 325, for corresponding with being initially received the 3rd echo message according to above-mentioned chronological order Specified engine establish connection.
Such as the speech recognition class engine rejudged the second engine (such as:IBM speech recognition engines) it is network-like State is preferable, then establish unit 325 by second is connected with IBM speech recognition engines.
With reference to Figure 12, the selecting module 3 of another embodiment of the present invention, further includes:
4th transmitting element 326, for being sent out respectively to multiple specified engines at the same time again according to second scheduled time Send the 3rd heartbeat packet.
Such as:Second scheduled time was half an hour or 1 hour, and the second pre- timing is controlled by translator server Between.The present embodiment refers to during normally use is connected with the first engine of speech recognition class engine, can be sent by the 4th single First 326 separated in time rejudge the Network status of above-mentioned each engine of speech recognition class, to replace Network status in time More preferable speech recognition engine.
3rd receiving unit 327, feeds back for receiving multiple specified engines respectively according to the 3rd heartbeat packet 4th echo message.
Time series analysis unit 328, for analyzing the corresponding chronological order of multiple 4th echo messages received;
Second analytic unit 329, corresponding to being initially received the 4th echo message according to chronological order analysis Specified engine and first engine it is whether identical, wherein, be initially received corresponding to the 4th echo message specify Engine is the 3rd engine.
Analyzed by the second analytic unit 329, if above-mentioned 3rd engine is identical with above-mentioned first engine, the first engine Network status is still best, continues to connect the first engine.
Switch unit 330, if for the 3rd engine and the different engine of the first engine, or engine not phase Together, but the 4th echo message feedback time is identical, then switches to the 3rd engine by first engine.
If being analyzed by the second analytic unit 329, above-mentioned 3rd engine is differed with above-mentioned first engine, illustrates that the 3rd draws The Network status held up is better than the first engine, then switches the first engine currently connected by switch unit 330 to Network status more 3rd engine, to further improve translation efficiency.
Reference Figure 13, the selecting module 3 of yet another embodiment of the invention, including:
3rd establishes module 301, for if it is determined that receiving the first echo message of the default setting engine feedback, then Establish and connect with the default setting engine.
Exist in the present embodiment in translator by the default default setting engine of translator server.If the first judging unit Whether 30 judge to receive the first echo message of default setting engine feedback, to judge current translator in default setting engine Coverage in.If the first echo message of default setting engine feedback is received, even if default setting in the present embodiment First echo message of engine feedback is not initially received, and is drawn it is also preferred that establishing module 301 by the 3rd with default setting Connection is held up, to further conform to user's use habit, improves user experience.
Reference Figure 14, further, the selecting module 3 of yet another embodiment of the invention, including:
Monitoring unit 302, for monitoring the frequency of use of multiple specified engines.
Frequency of use includes access times monthly or access times weekly.
Screening unit 303, for screening the highest specified engine of the frequency of use.
Such as:The highest HKUST News speech recognition engine monthly to use 2 times using 10 times or weekly of frequency of use.
First setting unit 304, is the default setting engine for being set using the highest specified engine of frequency.
The present embodiment by the first setting unit 304 according to frequency of use set default setting engine, with further close to The use demand of user.
With reference to Figure 15, the selecting module 3 of further embodiment of this invention, further includes:
3rd analytic unit 305, for analyzing user's history engine use information.
User's history engine use information includes history translation custom in the present embodiment, such as, commonly using Chinese-English translation, Middle method translation, often matched engine, each engine use the usage records such as duration, cost of use.
Second setting unit 306, for setting the default setting engine according to the history engine use information.
After depth analysis study being carried out in the present embodiment according to the use habit of user by the second setting unit 306, into One step sets the default setting engine for meeting user's use habit, and the function that intelligent switch engine is carried out so as to translator more meets The use demand of user, improves usage experience.
With reference to Figure 16, the selecting module 3 of further embodiment of this invention, further includes:
4th analytic unit 307, the application feature information for analysis engine processing data.
Language that application feature information in the present embodiment includes each engine is supportive, translation efficiency, accuracy and takes With the application feature information such as standard.Such as the preferred high speech recognition class engine of recognition accuracy;It is preferred that translation accuracy is strong Translate class engine;Synthesize the phonetic synthesis class engine that voice compactness is high and expense is low.Application feature information can pass through third party The official website network data of engine obtains, such as supportive by engine attributive analysis language;It is accurate to translating with the user of collection The accreditation scoring of degree is used as accuracy reference analysis accuracy.
3rd setting unit 308, for setting the default setting engine according to the application feature information.
Citing ground, translator use HKUST News voice in two months to the application feature information of server feedback for user Identify the recognition accuracy highest of engine;The translation efficiency highest of Baidu's translation engine;The synthesis accuracy rate of IBM Compositing Engines is most It is high;All kinds of default setting engines of translator are then set respectively by above application condition information by the 3rd setting unit 308.
The embodiment of the present invention is according to the use habit of user or by judging that the network state of different specified engines is selected automatically Select suitable third party's engine to be attached, and the speech recognition class engine of the translator of the embodiment of the present invention, translation class are drawn Hold up and phonetic synthesis class engine is according to independent demand of all categories, make choice respective conjunction in multiple third party's engines respectively Suitable third party's engine is attached, and monitoring and Engine-Network connection status in use, in time according to Engine-Network State is targetedly switched, and realizes the function of real time translation, improves translation efficiency.
The foregoing is merely the preferred embodiment of the present invention, is not intended to limit the scope of the invention, every utilization The equivalent structure or equivalent flow shift that description of the invention and accompanying drawing content are made, it is related to be directly or indirectly used in other Technical field, be included within the scope of the present invention.

Claims (10)

  1. A kind of 1. method for connecting engine, it is characterised in that including:
    The first heartbeat packet is sent respectively to multiple specified engines at the same time;
    Receive the first echo message that multiple specified engines are fed back respectively according to first heartbeat packet;
    It is attached according to first echo message and the corresponding engine of preset rules selection.
  2. 2. it is according to claim 1 connection engine method, it is characterised in that it is described according to first echo message with And preset rules selections engine the step of being attached, including:
    Judge whether to receive first echo message of default setting engine feedback;
    If it is determined that it is no, then analyze the chronological order that multiple specified engines feed back first echo message respectively;
    Connection is established according to the chronological order specified engine corresponding with being initially received first echo message.
  3. 3. the method for connection engine according to claim 2, it is characterised in that described to be initially received first response The corresponding specified engine of information is the first engine, and the specified engine corresponding with being initially received first echo message is built After the step of vertical connection, further include:
    According to first scheduled time monitoring heartbeat packet is sent to first engine;
    Monitor the second echo message that first engine is fed back according to the monitoring heartbeat packet first responds duration;
    Judge whether the first response duration is more than preset value;
    If it is determined that it is then to send the second heartbeat packet respectively to multiple specified engines at the same time again;
    Monitor the chronological order that multiple specified engines feed back the 3rd echo message according to above-mentioned second heartbeat packet respectively;
    Connection is established according to the chronological order specified engine corresponding with being initially received the 3rd echo message.
  4. 4. the method for connection engine according to claim 2, it is characterised in that described to be initially received first response The corresponding specified engine of information is the first engine, and the specified engine corresponding with being initially received first echo message is built After the step of vertical connection, further include:
    The 3rd heartbeat packet is sent respectively to multiple specified engines at the same time again according to second scheduled time;
    Receive the 4th echo message that multiple specified engines are fed back respectively according to the 3rd heartbeat packet;
    Analysis is initially received specified engine corresponding to the 4th echo message and whether first engine is identical, its In, the specified engine being initially received corresponding to the 4th echo message is the 3rd engine;
    If differing, the 3rd engine is switched to by first engine.
  5. 5. the method for connection engine according to claim 2, it is characterised in that described to judge whether to receive default setting After the step of first echo message of engine feedback, further include:
    If it is determined that it is then to establish and connect with the default setting engine.
  6. A kind of 6. device for connecting engine, it is characterised in that including:
    First sending module, for sending the first heartbeat packet respectively to multiple specified engines at the same time;
    First receiving module, is responded for receiving multiple specified engines are fed back respectively according to first heartbeat packet first Information;
    Selecting module, for being attached according to first echo message and the corresponding engine of preset rules selection.
  7. 7. the device of connection engine according to claim 6, it is characterised in that the selecting module, including:
    First judging unit, for judging whether to receive first echo message of default setting engine feedback;
    First analytic unit, for if it is determined that no, then analyzing multiple specified engines and feeding back first echo message respectively Chronological order;
    First establishes unit, for being drawn according to specify corresponding with being initially received first echo message of the chronological order Hold up foundation connection.
  8. 8. the device of connection engine according to claim 7, it is characterised in that described to be initially received first response The corresponding specified engine of information is the first engine, the selecting module, including
    Second transmitting element, for sending monitoring heartbeat packet to first engine according to first scheduled time;
    First monitoring unit, the of the second echo message fed back for monitoring first engine according to the monitoring heartbeat packet One responds duration;
    Second judging unit, for judging whether the first response duration is more than preset value;
    3rd transmitting element, for if it is determined that being then to send the second heartbeat packet respectively to multiple specified engines at the same time again;
    Second monitoring unit, is responded for monitoring the multiple specified engines are fed back respectively according to above-mentioned second heartbeat packet the 3rd The chronological order of information;
    Second establishes unit, for being drawn according to specify corresponding with being initially received the 3rd echo message of the chronological order Hold up foundation connection.
  9. 9. the device of connection engine according to claim 7, it is characterised in that described to be initially received first response The corresponding specified engine of information is the first engine, and the selecting module, further includes:
    4th transmitting element, for sending three-core respectively to multiple specified engines at the same time again according to second scheduled time Jump bag;
    3rd receiving unit, is responded for receiving the multiple specified engines are fed back respectively according to the 3rd heartbeat packet the 4th Information;
    Second analytic unit, for analyzing the specified engine and described first being initially received corresponding to the 4th echo message Whether engine is identical, wherein, the specified engine being initially received corresponding to the 4th echo message is the 3rd engine;
    Switch unit, if being differed for the 3rd engine with first engine, institute is switched to by first engine State the 3rd engine.
  10. 10. the device of connection engine according to claim 7, it is characterised in that the selecting module, including:
    3rd establishes module, for if it is determined that receive the first echo message of the default setting engine feedback, then with it is described Default setting engine establishes connection.
CN201711177181.5A 2017-11-22 2017-11-22 Method and device for connecting engines Active CN107979856B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711177181.5A CN107979856B (en) 2017-11-22 2017-11-22 Method and device for connecting engines

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711177181.5A CN107979856B (en) 2017-11-22 2017-11-22 Method and device for connecting engines

Publications (2)

Publication Number Publication Date
CN107979856A true CN107979856A (en) 2018-05-01
CN107979856B CN107979856B (en) 2020-10-27

Family

ID=62011080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711177181.5A Active CN107979856B (en) 2017-11-22 2017-11-22 Method and device for connecting engines

Country Status (1)

Country Link
CN (1) CN107979856B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108959276A (en) * 2018-07-23 2018-12-07 传神语联网网络科技股份有限公司 A kind of term discovery method and its system for translation
CN108984540A (en) * 2018-07-23 2018-12-11 传神语联网网络科技股份有限公司 A kind of method and auxiliary translation system of supplementary translation
CN109493862A (en) * 2018-12-24 2019-03-19 深圳Tcl新技术有限公司 Terminal, the determination method of voice server and computer readable storage medium
CN109859755A (en) * 2019-03-13 2019-06-07 深圳市同行者科技有限公司 A kind of audio recognition method, storage medium and terminal

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101196928A (en) * 2007-12-29 2008-06-11 杭州华三通信技术有限公司 Contents searching method, system and engine distributing unit
US20080208731A1 (en) * 2007-02-28 2008-08-28 Bellsouth Intellectual Property Corporation Methods and computer program products for auctioning on-line advertisements based on Internet search term query origination location
CN102945284A (en) * 2012-11-22 2013-02-27 北京奇虎科技有限公司 Method and device for obtaining status of search engine and browser
CN103077718A (en) * 2013-01-09 2013-05-01 华为终端有限公司 Speech processing method, system and terminal
CN103092919A (en) * 2012-12-24 2013-05-08 北京百度网讯科技有限公司 Search guide method and search engine
CN103294682A (en) * 2012-02-24 2013-09-11 摩根全球购物有限公司 Multi-language retrieving method, computer readable storage medium and network searching system
CN103455507A (en) * 2012-05-31 2013-12-18 国际商业机器公司 Method and device for recommending search engines
CN106021239A (en) * 2016-04-29 2016-10-12 北京创鑫旅程网络技术有限公司 Method for real-time evaluation of translation quality

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080208731A1 (en) * 2007-02-28 2008-08-28 Bellsouth Intellectual Property Corporation Methods and computer program products for auctioning on-line advertisements based on Internet search term query origination location
CN101196928A (en) * 2007-12-29 2008-06-11 杭州华三通信技术有限公司 Contents searching method, system and engine distributing unit
CN103294682A (en) * 2012-02-24 2013-09-11 摩根全球购物有限公司 Multi-language retrieving method, computer readable storage medium and network searching system
CN103455507A (en) * 2012-05-31 2013-12-18 国际商业机器公司 Method and device for recommending search engines
CN102945284A (en) * 2012-11-22 2013-02-27 北京奇虎科技有限公司 Method and device for obtaining status of search engine and browser
CN103092919A (en) * 2012-12-24 2013-05-08 北京百度网讯科技有限公司 Search guide method and search engine
CN103077718A (en) * 2013-01-09 2013-05-01 华为终端有限公司 Speech processing method, system and terminal
CN106021239A (en) * 2016-04-29 2016-10-12 北京创鑫旅程网络技术有限公司 Method for real-time evaluation of translation quality

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108959276A (en) * 2018-07-23 2018-12-07 传神语联网网络科技股份有限公司 A kind of term discovery method and its system for translation
CN108984540A (en) * 2018-07-23 2018-12-11 传神语联网网络科技股份有限公司 A kind of method and auxiliary translation system of supplementary translation
CN109493862A (en) * 2018-12-24 2019-03-19 深圳Tcl新技术有限公司 Terminal, the determination method of voice server and computer readable storage medium
CN109493862B (en) * 2018-12-24 2021-11-09 深圳Tcl新技术有限公司 Terminal, voice server determination method, and computer-readable storage medium
CN109859755A (en) * 2019-03-13 2019-06-07 深圳市同行者科技有限公司 A kind of audio recognition method, storage medium and terminal

Also Published As

Publication number Publication date
CN107979856B (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN107979856A (en) Connect the method and apparatus of engine
US10250847B2 (en) Video endpoints and related methods for transmitting stored text to other video endpoints
KR20180092914A (en) System and method for provining sercive in response to voice command
US11146599B1 (en) Data stream processing to facilitate conferencing based on protocols
CN104010267A (en) Method and system for supporting a translation-based communication service and terminal supporting the service
CN110086692A (en) A kind of automated testing method based on Internet of Things, device and computer equipment
CN113170000A (en) Equipment control method, device, system, electronic equipment and cloud server
ITRM20120142A1 (en) PROCEDURE AND SYSTEM FOR THE REAL TIME COLLECTION OF A FEEDBACK BY THE PUBLIC OF A TELEVISION OR RADIOPHONE TRANSMISSION
CN105912358A (en) Intelligent electronic device and setting method thereof
CN106205622A (en) Information processing method and electronic equipment
CN109036416A (en) simultaneous interpretation method and system, storage medium and electronic device
CN106921911A (en) Voice acquisition method and device
CN106506644A (en) Terminal Debugging message collection method and system
US8301452B2 (en) Voice activated application service architecture and delivery
CN104010154B (en) Information processing method and electronic equipment
CN103974112B (en) A kind of TV set control method and device
KR20130122300A (en) Method and apparatus for providing emotion analysis service during telephone conversation
CN107766335A (en) A kind of interpretation method and device of software to be translated
CN101909311A (en) Method for testing wireless networking function of mobile phone
CN106899467A (en) The intelligent domestic system that a kind of combination big data is collected
CN105791043B (en) A kind of business network service experience automatic Evaluation of Quality method and system
CN109489337A (en) A kind of man-machine interaction method of artificial intelligence refrigerator
CN103634321B (en) Voice recognition result display method and device
CN106598712A (en) Method for starting application programs during calls and communication terminal
CN106850662B (en) A kind of method and server of Dialog processing

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210914

Address after: Room 602, block B, huayuancheng digital building, 1079 Nanhai Avenue, Yanshan community, zhaoshang street, Nanshan District, Shenzhen, Guangdong 518000

Patentee after: Shenzhen waterward Software Technology Co.,Ltd.

Address before: 518000 B, 503, 602, digital city building, garden city, 1079 Shekou Road, Shekou, Nanshan District, Shenzhen, Guangdong.

Patentee before: SHENZHEN WATER WORLD Co.,Ltd.

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 518000 201, No.26, yifenghua Innovation Industrial Park, Xinshi community, Dalang street, Longhua District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen waterward Software Technology Co.,Ltd.

Address before: Room 602, block B, huayuancheng digital building, 1079 Nanhai Avenue, Yanshan community, zhaoshang street, Nanshan District, Shenzhen, Guangdong 518000

Patentee before: Shenzhen waterward Software Technology Co.,Ltd.