CN107171874B - A voice engine switching method, mobile terminal and server - Google Patents
A voice engine switching method, mobile terminal and server Download PDFInfo
- Publication number
- CN107171874B CN107171874B CN201710601801.7A CN201710601801A CN107171874B CN 107171874 B CN107171874 B CN 107171874B CN 201710601801 A CN201710601801 A CN 201710601801A CN 107171874 B CN107171874 B CN 107171874B
- Authority
- CN
- China
- Prior art keywords
- engine
- voice
- voice engine
- server
- mobile terminal
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/61—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/28—Constructional details of speech recognition systems
- G10L15/30—Distributed recognition, e.g. in client-server systems, for mobile phones or network applications
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明提供了一种语音引擎切换方法、移动终端及服务器,涉及移动通信技术领域,该方法应用于移动终端,该方法包括:向服务器发送语音引擎切换请求;接收服务器反馈的当前可用的目标语音引擎的指示信息;根据指示信息,将移动终端的当前语音引擎切换至目标语音引擎,并使用目标语音引擎进行语音服务。本发明解决了当语音引擎出现异常时,语音服务中断或语音助手无法使用的问题。
The present invention provides a voice engine switching method, a mobile terminal and a server, and relates to the technical field of mobile communications. The method is applied to a mobile terminal. The method includes: sending a voice engine switching request to a server; receiving a currently available target voice fed back by the server The instruction information of the engine; according to the instruction information, switch the current speech engine of the mobile terminal to the target speech engine, and use the target speech engine for speech service. The present invention solves the problem that the voice service is interrupted or the voice assistant cannot be used when the voice engine is abnormal.
Description
技术领域technical field
本发明涉及移动通信技术领域,特别涉及一种语音引擎切换方法、移动终端及服务器。The present invention relates to the technical field of mobile communication, in particular to a voice engine switching method, a mobile terminal and a server.
背景技术Background technique
语音助手是一类可以通过语音交互来实现查询与操作的应用程序,通过此类应用程序,可以大大提高在不同场景下操作手机的便利性。语音引擎是语音助手类应用程序的核心部分。通常,当一种语音引擎失效或者语音服务出现异常的时候,整个语音助手就会出现异常,为了避免产生这种情况,需要多个语音引擎同时准备好以应对这种突发情况。A voice assistant is a kind of application that can realize query and operation through voice interaction. Through this kind of application, the convenience of operating a mobile phone in different scenarios can be greatly improved. The speech engine is a core part of a voice assistant-like application. Usually, when a voice engine fails or the voice service is abnormal, the entire voice assistant will be abnormal. In order to avoid this situation, multiple voice engines need to be prepared at the same time to deal with this unexpected situation.
然而,目前的语音助手具有一定的局限性,通常只支持内置,而不支持多语音引擎的切换,这样就会导致当内置的语音引擎对应的语音服务出现异常时,语音服务中断或语音助手无法使用。However, the current voice assistant has certain limitations, usually only supports the built-in, but does not support the switching of multiple voice engines, which will cause when the voice service corresponding to the built-in voice engine is abnormal, the voice service is interrupted or the voice assistant cannot use.
发明内容SUMMARY OF THE INVENTION
本发明提供了一种语音引擎切换方法、移动终端及服务器,其目的是为了解决目前的语音助手类应用程序,当内置的语音引擎出现异常时,语音服务中断或语音助手无法使用的问题。The present invention provides a voice engine switching method, a mobile terminal and a server, the purpose of which is to solve the problems of current voice assistant applications, when the built-in voice engine is abnormal, the voice service is interrupted or the voice assistant cannot be used.
一方面,本发明的实施例提供了一种语音引擎切换方法,该方法应用于移动终端,该方法包括:On the one hand, an embodiment of the present invention provides a voice engine switching method, the method is applied to a mobile terminal, and the method includes:
向服务器发送语音引擎切换请求;Send a voice engine switching request to the server;
接收服务器反馈的当前可用的目标语音引擎的指示信息;Receive the indication information of the currently available target speech engine fed back by the server;
根据指示信息,将移动终端的当前语音引擎切换至目标语音引擎,并使用目标语音引擎进行语音服务。According to the instruction information, the current voice engine of the mobile terminal is switched to the target voice engine, and the target voice engine is used for voice service.
另一方面,本发明的实施例还提供了一种语音引擎切换方法,应用于服务器,该方法包括:On the other hand, an embodiment of the present invention also provides a voice engine switching method, which is applied to a server, and the method includes:
接收移动终端的语音引擎切换请求;receiving a voice engine switching request of the mobile terminal;
查询当前可用的语音引擎以及语音引擎的服务质量参数,服务质量参数为依据语音引擎的当前拥堵程度以及连接成功率所确定的数值;Query the currently available voice engine and the QoS parameters of the voice engine. The QoS parameter is a value determined according to the current congestion level of the voice engine and the connection success rate;
根据服务质量参数,从当前可用的语音引擎中选择出一个目标语音引擎;According to the quality of service parameters, select a target speech engine from the currently available speech engines;
将目标语音引擎的指示信息发送给移动终端。Send the instruction information of the target speech engine to the mobile terminal.
又一方面,本发明的实施例还提供了一种移动终端,包括:In another aspect, an embodiment of the present invention also provides a mobile terminal, including:
请求发送模块,用于向服务器发送语音引擎切换请求;A request sending module is used to send a voice engine switching request to the server;
信息接收模块,用于接收服务器反馈的当前可用的目标语音引擎的指示信息;an information receiving module, used for receiving the indication information of the currently available target speech engine fed back by the server;
引擎切换模块,用于根据指示信息,将移动终端的当前语音引擎切换至目标语音引擎,并使用目标语音引擎进行语音服务。The engine switching module is used to switch the current voice engine of the mobile terminal to the target voice engine according to the instruction information, and use the target voice engine for voice service.
又一方面,本发明的实施例还提供了一种服务器,包括:In another aspect, an embodiment of the present invention also provides a server, including:
请求接收模块,用于接收移动终端的语音引擎切换请求;a request receiving module for receiving a voice engine switching request of the mobile terminal;
参数查询模块,用于查询当前可用的语音引擎以及语音引擎的服务质量参数,服务质量参数为依据语音引擎的当前拥堵程度以及连接成功率所确定的数值;The parameter query module is used to query the currently available voice engine and the service quality parameter of the voice engine, and the service quality parameter is a value determined according to the current congestion level of the voice engine and the connection success rate;
引擎选择模块,用于根据服务质量参数,从当前可用的语音引擎中选择出一个目标语音引擎;The engine selection module is used to select a target speech engine from the currently available speech engines according to the service quality parameter;
信息发送模块,用于将目标语音引擎的指示信息发送给移动终端。The information sending module is used for sending the instruction information of the target voice engine to the mobile terminal.
又一方面,本发明的实施例还提供了一种移动终端,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述语音引擎切换方法中的步骤。On the other hand, an embodiment of the present invention also provides a mobile terminal, including: a memory, a processor, and a computer program stored in the memory and running on the processor, and the above-mentioned voice engine switching is implemented when the processor executes the computer program steps in the method.
再一方面,本发明的实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述语音引擎切换方法中的步骤。In yet another aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored thereon, and when the computer program is executed by a processor, the steps in the above voice engine switching method are implemented.
再一方面,本发明的实施例还提供了一种服务器,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,计算机程序被处理器执行时实现上述语音引擎切换方法中的步骤。On the other hand, an embodiment of the present invention also provides a server, including: a memory, a processor, and a computer program stored in the memory and running on the processor, the above-mentioned voice engine switching is implemented when the computer program is executed by the processor steps in the method.
这样,本发明提供的语音引擎切换方法、移动终端及服务器,当移动终端的当前语音引擎服务异常时,向服务器发送语音引擎切换请求,并接收服务器反馈的携带有目标语音引擎的指示信息,根据指示信息切换至目标语音引擎,使得移动终端当前的语音服务得以继续进行,从而避免因为语音引擎服务异常,导致语音服务中断或语音助手类应用程序无法使用的情况。In this way, in the voice engine switching method, mobile terminal and server provided by the present invention, when the current voice engine service of the mobile terminal is abnormal, a voice engine switching request is sent to the server, and the instruction information carrying the target voice engine fed back by the server is received, according to The instruction information is switched to the target voice engine, so that the current voice service of the mobile terminal can continue, thereby avoiding the situation that the voice service is interrupted or the voice assistant applications cannot be used due to the abnormal voice engine service.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the drawings that are used in the description of the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. , for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.
图1表示本发明的一实施例提供的语音引擎切换方法的步骤流程图;1 shows a flowchart of steps of a voice engine switching method provided by an embodiment of the present invention;
图2表示本发明的一实施例提供的移动终端的框图;FIG. 2 shows a block diagram of a mobile terminal provided by an embodiment of the present invention;
图3表示本发明的又一实施例提供的语音引擎切换方法的步骤流程图;3 shows a flowchart of steps of a voice engine switching method provided by another embodiment of the present invention;
图4表示本发明的又一实施例提供的服务器的框图;4 shows a block diagram of a server provided by another embodiment of the present invention;
图5表示本发明的具体示例的步骤流程图之一;Figure 5 represents one of the flow charts of steps of a specific example of the present invention;
图6表示本发明的具体示例的步骤流程图之二;Fig. 6 represents the second step flow chart of the specific example of the present invention;
图7表示本发明的又一实施例提供的移动终端的框图;FIG. 7 shows a block diagram of a mobile terminal provided by another embodiment of the present invention;
图8表示本发明的又一实施例提供的移动终端的框图。FIG. 8 shows a block diagram of a mobile terminal provided by another embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
参见图1,本发明的一实施例提供了一种语音引擎切换方法,应用于移动终端,该方法包括:Referring to FIG. 1, an embodiment of the present invention provides a voice engine switching method, which is applied to a mobile terminal. The method includes:
步骤101,向服务器发送语音引擎切换请求。
其中,服务器可以是云端的服务器,服务器与移动终端的进行数据交互,接收移动终端的语音切换请求等。当移动终端的语音引擎服务异常时,移动终端向服务器发送语音引擎切换请求。The server may be a server in the cloud, and the server exchanges data with the mobile terminal, receives a voice switching request from the mobile terminal, and the like. When the voice engine service of the mobile terminal is abnormal, the mobile terminal sends a voice engine switching request to the server.
步骤102,接收服务器反馈的当前可用的目标语音引擎的指示信息。
其中,服务器根据移动终端发送的语音引擎切换请求,查询移动终端当前可用的语音引擎,并将包含目标语音引擎的指示信息反馈至移动终端,移动终端接收服务器反馈的信息,并获取包含目标语音引擎的指示信息。The server queries the currently available voice engine of the mobile terminal according to the voice engine switching request sent by the mobile terminal, and feeds back the instruction information including the target voice engine to the mobile terminal, and the mobile terminal receives the information fed back by the server, and obtains information including the target voice engine. instruction information.
步骤103,根据指示信息,将移动终端的当前语音引擎切换至目标语音引擎,并使用目标语音引擎进行语音服务。Step 103 , according to the instruction information, switch the current speech engine of the mobile terminal to the target speech engine, and use the target speech engine for speech service.
其中,根据服务器反馈的指示信息,确定目标语音引擎,并将为移动终端的语音助手类应用程序正在服务的当前语音引擎,切换至目标语音引擎,通过目标语音引擎继续进行语音服务,避免服务中断。Among them, according to the instruction information fed back by the server, the target voice engine is determined, and the current voice engine that is being served by the voice assistant application of the mobile terminal is switched to the target voice engine, and the voice service is continued through the target voice engine to avoid service interruption. .
这样,当移动终端的当前语音引擎服务异常时,向服务器发送语音引擎切换请求,并接收服务器反馈的携带有目标语音引擎的指示信息,根据指示信息切换至目标语音引擎,使得移动终端当前的语音服务得以继续进行,而不必因为语音引擎服务异常,导致语音服务中断或语音助手类应用程序无法使用。服务器端可设置多个为移动终端服务的语音引擎,当需要切换时,为移动终端提供多项选择,提升用户的使用体验。In this way, when the current voice engine service of the mobile terminal is abnormal, it sends a voice engine switching request to the server, and receives the instruction information that carries the target voice engine fed back by the server, and switches to the target voice engine according to the instruction information, so that the current voice engine of the mobile terminal is changed. Service can continue without interruption of voice service or unavailability of voice assistant-like applications due to abnormal voice engine service. The server side can be set up with multiple voice engines serving the mobile terminal. When switching is required, multiple choices can be provided for the mobile terminal to improve the user experience.
优选地,步骤101包括:Preferably,
检测到当前语音引擎服务失败时,向服务器发送语音引擎切换请求;When detecting that the current voice engine service fails, send a voice engine switching request to the server;
或者,or,
根据预设的切换频率,向服务器发送语音引擎切换请求。According to the preset switching frequency, a voice engine switching request is sent to the server.
具体地,当移动终端检测到语音引擎服务失败时,可向服务器发送音引擎切换请求,以便移动终端可及时切换新的语音引擎,避免语音服务中断或语音助手类应用程序无法使用。Specifically, when the mobile terminal detects that the voice engine service fails, it can send a voice engine switching request to the server, so that the mobile terminal can switch to a new voice engine in time to avoid voice service interruption or voice assistant applications being unavailable.
或者移动终端可根据预设的切换频率,定时向服务器发送语音引擎切换请求,定时切换语音引擎,以确保语音引擎处于正常工作状态,提高服务质量。Alternatively, the mobile terminal may periodically send a voice engine switching request to the server according to the preset switching frequency, and switch the voice engine regularly, so as to ensure that the voice engine is in a normal working state and improve the service quality.
优选地,步骤103之前,该方法还包括:Preferably, before step 103, the method further includes:
判断移动终端是否具有目标语音引擎的数据包:Determine whether the mobile terminal has the data packet of the target voice engine:
若判断结果为否,则下载并安装目标语音引擎的数据包。If the judgment result is no, download and install the data package of the target speech engine.
其中,当确定目标语音引擎之后,需判断移动终端是否具有该引擎的数据包:若有,可直接使用目标语音引擎进行语音服务,比如实现语音识别,语音播报和语音内容反馈的功能;若判断结果为否,则下载并安装目标语音引擎的数据包。Among them, after determining the target voice engine, it is necessary to judge whether the mobile terminal has the data package of the engine: if so, the target voice engine can be used directly for voice services, such as the functions of voice recognition, voice broadcast and voice content feedback; If the result is no, the data package for the target speech engine is downloaded and installed.
优选地,检测到当前语音引擎服务失败时的步骤,包括:Preferably, the steps of detecting the failure of the current voice engine service include:
接收到当前语音引擎与当前语音引擎的服务器连接失败的消息或连接超时的消息。Receive a message that the current voice engine fails to connect with the server of the current voice engine or that the connection times out.
其中,当移动终端接收到当前语音引擎与该引擎的服务器连接失败,或者连接超时以及其他连接异常的消息时,确认前语音引擎服务失败,则及时向服务器发送语音引擎切换请求,避免影响用户的正常使用。Among them, when the mobile terminal receives the message that the current voice engine fails to connect with the server of the engine, or the connection times out or other abnormal connections, and confirms that the previous voice engine service failed, it will send a voice engine switching request to the server in time to avoid affecting the user's Normal use.
本发明的上述实施例中,当移动终端的当前语音引擎服务异常时,向服务器发送语音引擎切换请求,并接收服务器反馈的携带有目标语音引擎的指示信息,根据指示信息切换至目标语音引擎,使得移动终端当前的语音服务得以继续进行,而不必因为语音引擎服务异常,导致语音服务中断或语音助手类应用程序无法使用。且移动终端可根据预设的切换频率,自动向服务器发送语音引擎切换请求,定时切换语音引擎,以确保语音引擎处于正常工作状态,提高服务质量。服务器端还可设置多个为移动终端服务的语音引擎,当需要切换时,为移动终端提供多项选择,提升用户的使用体验。本发明解决了目前的语音助手类应用程序,当语音引擎出现异常时,语音服务中断或语音助手无法使用的问题。In the above-mentioned embodiment of the present invention, when the current voice engine service of the mobile terminal is abnormal, the mobile terminal sends a voice engine switching request to the server, and receives the instruction information that carries the target voice engine fed back by the server, and switches to the target voice engine according to the instruction information, This enables the current voice service of the mobile terminal to continue without the need for the voice service to be interrupted or the voice assistant applications to be unavailable due to the abnormal voice engine service. And the mobile terminal can automatically send a voice engine switching request to the server according to the preset switching frequency, and switch the voice engine regularly, so as to ensure that the voice engine is in a normal working state and improve the service quality. The server side can also be provided with multiple voice engines serving the mobile terminal. When switching is required, multiple options are provided for the mobile terminal to improve the user experience. The present invention solves the problems of current voice assistant applications, when the voice engine is abnormal, the voice service is interrupted or the voice assistant cannot be used.
参见图2,本发明的一实施例提供了一种移动终端200,包括:Referring to FIG. 2, an embodiment of the present invention provides a
请求发送模块201,用于向服务器发送语音引擎切换请求。The
其中,服务器可以是云端的服务器,服务器与移动终端200的进行数据交互,接收移动终端200的语音切换请求等。当移动终端200的语音引擎服务异常时,移动终端200向服务器发送语音引擎切换请求。The server may be a server in the cloud, and the server performs data interaction with the
信息接收模块202,用于接收服务器反馈的当前可用的目标语音引擎的指示信息。The
其中,服务器根据移动终端200发送的语音引擎切换请求,查询移动终端200当前可用的语音引擎,并将包含目标语音引擎的指示信息反馈至移动终端200,移动终端200接收服务器反馈的信息,并获取包含目标语音引擎的指示信息。The server queries the currently available voice engine of the
引擎切换模块203,用于根据指示信息,将移动终端200的当前语音引擎切换至目标语音引擎,并使用目标语音引擎进行语音服务。The
其中,根据服务器反馈的指示信息,确定目标语音引擎,并将为移动终端200的语音助手类应用程序正在服务的当前语音引擎,切换至目标语音引擎,通过目标语音引擎继续进行语音服务,避免服务中断。The target voice engine is determined according to the instruction information fed back by the server, and the current voice engine that is being served by the voice assistant application of the
可选地,请求发送模块201包括:Optionally, the
第一发送子模块,用于检测到当前语音引擎服务失败时,向服务器发送语音引擎切换请求;The first sending submodule is used to send a voice engine switching request to the server when detecting that the current voice engine service fails;
或者,or,
第二发送子模块,用于根据预设的切换频率,向服务器发送语音引擎切换请求。The second sending sub-module is configured to send a voice engine switching request to the server according to the preset switching frequency.
可选地,移动终端200还包括:Optionally, the
判断模块,用于判断移动终端200是否具有目标语音引擎的数据包:The judgment module is used to judge whether the
若判断结果为否,则下载并安装目标语音引擎的数据包。If the judgment result is no, download and install the data package of the target speech engine.
可选地,第一发送子模块用于:Optionally, the first sending submodule is used for:
接收到当前语音引擎与当前语音引擎的服务器连接失败的消息或连接超时的消息。Receive a message that the current voice engine fails to connect with the server of the current voice engine or that the connection times out.
本发明的上述实施例中,当移动终端200的当前语音引擎服务异常时,向服务器发送语音引擎切换请求,并接收服务器反馈的携带有目标语音引擎的指示信息,根据指示信息切换至目标语音引擎,使得移动终端200当前的语音服务得以继续进行,而不必因为语音引擎服务异常,导致语音服务中断或语音助手类应用程序无法使用。且移动终端200可根据预设的切换频率,自动向服务器发送语音引擎切换请求,定时切换语音引擎,以确保语音引擎处于正常工作状态,提高服务质量。服务器端还可设置多个为移动终端200服务的语音引擎,当需要切换时,为移动终端200提供多项选择,提升用户的使用体验。In the above-mentioned embodiment of the present invention, when the current voice engine service of the
参见图3,本发明的又一实施例提供了一种语音引擎切换方法,应用于服务器,包括:Referring to FIG. 3, another embodiment of the present invention provides a voice engine switching method, applied to a server, including:
步骤301,接收移动终端的语音引擎切换请求。Step 301: Receive a voice engine switching request from a mobile terminal.
其中,服务器可以是云端的服务器,服务器与移动终端的进行数据交互,接收移动终端的语音切换请求等。The server may be a server in the cloud, and the server exchanges data with the mobile terminal, receives a voice switching request from the mobile terminal, and the like.
步骤302,查询当前可用的语音引擎以及语音引擎的服务质量参数,服务质量参数为依据语音引擎的当前拥堵程度以及连接成功率所确定的数值。Step 302 , query the currently available speech engine and the service quality parameter of the speech engine, and the service quality parameter is a value determined according to the current congestion level of the speech engine and the connection success rate.
其中,服务器根据移动终端发送的语音引擎切换请求,查询当前可用的语音引擎,以及查询当前可用的语音引擎的服务质量参数,服务质量参数为评价语音引擎当前可提供的服务质量的参考参数,至少依据语音引擎的当前拥堵程度以及连接成功率来确定。通常情况下,拥堵程度以及连接成功率对语音引擎的服务质量影响较大。Wherein, the server queries the currently available voice engines according to the voice engine switching request sent by the mobile terminal, and queries the service quality parameters of the currently available voice engines, and the service quality parameters are reference parameters for evaluating the service quality currently provided by the voice engine, at least Determined according to the current congestion level of the voice engine and the connection success rate. Usually, the degree of congestion and the connection success rate have a greater impact on the service quality of the voice engine.
步骤303,根据服务质量参数,从当前可用的语音引擎中选择出一个目标语音引擎。Step 303, according to the quality of service parameter, select a target speech engine from the currently available speech engines.
其中,可选择服务质量参数最优的语音引擎作为目标语音引擎,发送给移动终端。Among them, the speech engine with the optimal service quality parameter can be selected as the target speech engine and sent to the mobile terminal.
步骤304,将目标语音引擎的指示信息发送给移动终端。Step 304, sending the indication information of the target speech engine to the mobile terminal.
其中,将包含目标语音引擎的指示信息反馈至移动终端,使移动终端接收服务器反馈的信息,并根据指示信息切换语音引擎。The instruction information including the target voice engine is fed back to the mobile terminal, so that the mobile terminal receives the information fed back by the server, and switches the voice engine according to the instruction information.
优选地,连接成功率为语音引擎与语音引擎的服务器之间的连接成功率;Preferably, the connection success rate is the connection success rate between the speech engine and the server of the speech engine;
服务质量参数为根据预设的权值对当前拥堵程度以及连接成功率进行加权求和得到的综合权值。The quality of service parameter is a comprehensive weight obtained by weighting and summing the current congestion degree and the connection success rate according to the preset weight.
具体地,连接成功率为语音引擎与该语音引擎的服务器之间的连接成功率,语音引擎与其服务器连接成功后,方可提供语音服务。Specifically, the connection success rate is the connection success rate between the voice engine and the server of the voice engine, and the voice service can be provided only after the voice engine and its server are successfully connected.
服务质量参数为根据当前拥堵程度以及连接成功率进行加权求和后得到的综合权值,确保服务器所选择的目标语音引擎为服务质量较优的语音引擎。The quality of service parameter is a comprehensive weight obtained by weighted summation according to the current congestion level and the connection success rate, to ensure that the target voice engine selected by the server is a voice engine with better service quality.
本发明的上述实施例中,当接收到移动终端发送的语音引擎切换请求,查询当前可用的语音引擎以及语音引擎的服务质量参数,将服务质量较优的语音引擎作为目标语音引擎,并将携带有目标语音引擎的指示信息发送至移动终端,使移动终端根据指示信息切换至目标语音引擎,使得移动终端当前的语音服务得以继续进行,而不必因为语音引擎服务异常,导致语音服务中断或语音助手类应用程序无法使用。服务器端可设置多个为移动终端服务的语音引擎,当需要切换时,为移动终端提供多项选择,提升用户的使用体验。In the above-mentioned embodiment of the present invention, when a voice engine switching request sent by the mobile terminal is received, the currently available voice engine and the service quality parameters of the voice engine are inquired, the voice engine with better service quality is used as the target voice engine, and the The instruction information of the target voice engine is sent to the mobile terminal, so that the mobile terminal switches to the target voice engine according to the instruction information, so that the current voice service of the mobile terminal can continue without interruption of voice service or voice assistant due to abnormal voice engine service. Class applications cannot be used. The server side can be set up with multiple voice engines serving the mobile terminal. When switching is required, multiple choices can be provided for the mobile terminal to improve the user experience.
参见图4,本发明的一实施例提供了一种服务器400,包括:Referring to FIG. 4, an embodiment of the present invention provides a server 400, including:
请求接收模块401,用于接收移动终端的语音引擎切换请求。The
其中,服务器400可以是云端的服务器,服务器400与移动终端的进行数据交互,接收移动终端的语音切换请求等。The server 400 may be a server in the cloud, and the server 400 performs data interaction with the mobile terminal, receives a voice switching request from the mobile terminal, and the like.
参数查询模块402,用于查询当前可用的语音引擎以及语音引擎的服务质量参数,服务质量参数为依据语音引擎的当前拥堵程度以及连接成功率所确定的数值。The
其中,服务器400根据移动终端发送的语音引擎切换请求,查询当前可用的语音引擎,以及查询当前可用的语音引擎的服务质量参数,服务质量参数为评价语音引擎当前可提供的服务质量的参考参数,至少依据语音引擎的当前拥堵程度以及连接成功率来确定。通常情况下,拥堵程度以及连接成功率对语音引擎的服务质量影响较大。Wherein, the server 400 queries the currently available voice engine according to the voice engine switching request sent by the mobile terminal, and queries the service quality parameter of the currently available voice engine, and the service quality parameter is a reference parameter for evaluating the service quality currently provided by the voice engine, At least it depends on the current congestion level of the speech engine and the connection success rate. Usually, the degree of congestion and the connection success rate have a greater impact on the service quality of the voice engine.
引擎选择模块403,用于根据服务质量参数,从当前可用的语音引擎中选择出一个目标语音引擎。The
其中,可选择服务质量参数最优的语音引擎作为目标语音引擎,发送给移动终端。Among them, the speech engine with the optimal service quality parameter can be selected as the target speech engine and sent to the mobile terminal.
信息发送模块404,用于将目标语音引擎的指示信息发送给移动终端。The
其中,将包含目标语音引擎的指示信息反馈至移动终端,使移动终端接收服务器400反馈的信息,并根据指示信息切换语音引擎。The instruction information including the target voice engine is fed back to the mobile terminal, so that the mobile terminal receives the information fed back by the server 400 and switches the voice engine according to the instruction information.
优选地,连接成功率为语音引擎与语音引擎的服务器400之间的连接成功率;Preferably, the connection success rate is the connection success rate between the speech engine and the server 400 of the speech engine;
服务质量参数为根据预设的权值对当前拥堵程度以及连接成功率进行加权求和得到的综合权值。The quality of service parameter is a comprehensive weight obtained by weighting and summing the current congestion degree and the connection success rate according to the preset weight.
本发明的上述实施例中,当接收到移动终端发送的语音引擎切换请求,查询当前可用的语音引擎以及语音引擎的服务质量参数,将服务质量较优的语音引擎作为目标语音引擎,并将携带有目标语音引擎的指示信息发送至移动终端,使移动终端根据指示信息切换至目标语音引擎,使得移动终端当前的语音服务得以继续进行,而不必因为语音引擎服务异常,导致语音服务中断或语音助手类应用程序无法使用。服务器400端可设置多个为移动终端服务的语音引擎,当需要切换时,为移动终端提供多项选择,提升用户的使用体验。In the above-mentioned embodiment of the present invention, when a voice engine switching request sent by the mobile terminal is received, the currently available voice engine and the service quality parameters of the voice engine are inquired, the voice engine with better service quality is used as the target voice engine, and the The instruction information of the target voice engine is sent to the mobile terminal, so that the mobile terminal switches to the target voice engine according to the instruction information, so that the current voice service of the mobile terminal can continue without interruption of voice service or voice assistant due to abnormal voice engine service. Class applications cannot be used. The server 400 can be provided with multiple voice engines serving the mobile terminal, and when switching is required, multiple options are provided for the mobile terminal to improve the user experience.
可选地,作为一个具体示例,参见图5,移动终端的语音引擎切换主要包括以下步骤:Optionally, as a specific example, referring to FIG. 5 , the voice engine switching of the mobile terminal mainly includes the following steps:
步骤501:语音助手类应用程序确定语音服务的种类。Step 501: The voice assistant application program determines the type of voice service.
语音助手类应用程序在进行语音服务的过程中,可预设获取数据的规则确定语音服务的种类,比如json数据,key和value的键值对。In the process of voice service, the voice assistant application can preset the rules for acquiring data to determine the type of voice service, such as json data, key and value pairs.
例如,[“source_type”:”meishi”,“more_url”:”http://baidu.com/”];For example, ["source_type":"meishi","more_url":"http://baidu.com/"];
其中,source_type是key,value是meishi;Among them, source_type is key, value is meishi;
当通过key获取到的value是meishi的时候,就通过key值为more_url的数据中获取对应的value值即url地址,则给用户展示美食信息;When the value obtained by the key is meishi, the corresponding value value, that is, the url address, is obtained from the data whose key value is more_url, and the food information is displayed to the user;
还可设置有其他的垂类服务,如聊天,那么source_type对应的value值可能就是chat,jason字段中有对应的key值对应的value供展示。Other vertical services can also be set, such as chat, then the value corresponding to source_type may be chat, and the value corresponding to the corresponding key value in the jason field is displayed.
步骤502:检测到语音服务异常时,或通过预先设定的切换频率,向服务器发送语音引擎切换请求。Step 502 : When abnormality of the voice service is detected, or through a preset switching frequency, a voice engine switching request is sent to the server.
步骤503:接收服务器反馈的当前可用的目标语音引擎的指示信息,根据指示信息,确定目标语音引擎,并判断是否具有该引擎的数据包。Step 503: Receive the indication information of the currently available target speech engine fed back by the server, determine the target speech engine according to the indication information, and determine whether there is a data packet of the engine.
如果没有,则执行步骤504,再执行步骤505;如果有,则直接执行步骤305。If not, go to step 504, and then go to step 505; if so, go to step 305 directly.
步骤504:在应用商店或者其他地方下载目标语音引擎的数据包并安装。Step 504: Download and install the data package of the target speech engine in the application store or other places.
步骤505,将移动终端的当前语音引擎切换至目标语音引擎,使用目标语音引擎进行语音服务。Step 505: Switch the current speech engine of the mobile terminal to the target speech engine, and use the target speech engine to perform speech service.
其中,进行语音服务主要包括:语音识别,语音播报及语音识别内容的反馈等服务。Among them, the voice service mainly includes: voice recognition, voice broadcast and voice recognition content feedback and other services.
可选地,可根据语音助手规定的获取数据的规则去返回数据,如美食服务,比如用户输入附近有什么好吃的,返回的jason数据的key值与语音助手相同:Optionally, data can be returned according to the data acquisition rules specified by the voice assistant, such as food service, such as what delicious food is nearby when the user inputs, and the key value of the returned jason data is the same as that of the voice assistant:
[“source_type”:“meishi”,”more_url”:”http://****”];["source_type": "meishi", "more_url": "http://****"];
而聊天的jason数据为:The jason data of the chat is:
[“source_type”:“chat”,”more_url”:””,”show_text”:”你好!”]。["source_type":"chat","more_url":"","show_text":"Hello!"].
参见图6,服务器端主要执行以下流程:Referring to Figure 6, the server side mainly executes the following processes:
步骤601,接收移动终端的语音引擎切换请求。
步骤602,查询移动终端当前可用的语音引擎,以及语音引擎的服务质量参数。
步骤603,根据服务质量参数,从当前可用的语音引擎中指定一种可用的语音引擎类型供语音助手查询。
步骤604,将目标语音引擎的指示信息发送给移动终端。
一方面,本发明的实施例还提供了一种移动终端,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,计算机程序被处理器执行时实现上述语音引擎切换方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。On the one hand, an embodiment of the present invention also provides a mobile terminal, including: a memory, a processor, and a computer program stored in the memory and running on the processor, and the above-mentioned voice engine switching is implemented when the computer program is executed by the processor Each process of the method embodiment can achieve the same technical effect, and in order to avoid repetition, it will not be repeated here.
另一方面,本发明的实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述语音引擎切换方法中的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,计算机可读存储介质,可以是只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random AccessMemory,简称RAM)、磁碟或者光盘等。On the other hand, an embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process in the above voice engine switching method is implemented, and The same technical effect can be achieved, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk, or an optical disk.
另一方面,本发明的实施例还提供了一种服务器,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,计算机程序被处理器执行时实现上述语音引擎切换方法中的步骤。On the other hand, an embodiment of the present invention also provides a server, including: a memory, a processor, and a computer program stored in the memory and running on the processor, and the above-mentioned voice engine switching is implemented when the computer program is executed by the processor steps in the method.
参见图7,本发明的又一实施例提供了一种移动终端700。图7所示的移动终端700包括:至少一个处理器701、存储器702、至少一个网络接口704以及其他用户接口703。移动终端700中的各个组件通过总线系统705耦合在一起。可理解,总线系统705用于实现这些组件之间的连接通信。总线系统705除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图7中将各种总线都标为总线系统705。Referring to FIG. 7 , another embodiment of the present invention provides a
其中,用户接口703可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Among them, the
可以理解,本发明实施例中的存储器702可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambus RAM,DRRAM)。本文描述的系统和方法的存储器702旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the
在一些实施方式中,存储器702存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统7021和应用程序7022。In some embodiments,
其中,操作系统7021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序7022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务,实现本发明实施例方法的程序可以包含在应用程序7022中。The
在本发明实施例中,通过调用存储器702存储的程序或指令,具体的,可以是应用程序7022中存储的程序或指令,处理器701用于:向服务器发送语音引擎切换请求;接收服务器反馈的当前可用的目标语音引擎的指示信息;根据指示信息,将移动终端的当前语音引擎切换至目标语音引擎,并使用目标语音引擎进行语音服务。In this embodiment of the present invention, by calling the program or instruction stored in the
上述本发明实施例揭示的方法可以应用于处理器701中,或者由处理器701实现。处理器701可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器701中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器701可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器702,处理器701读取存储器702中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the above embodiments of the present invention may be applied to the processor 701 or implemented by the processor 701 . The processor 701 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above-mentioned method can be completed by an integrated logic circuit of hardware in the processor 701 or an instruction in the form of software. The above-mentioned processor 701 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a Field Programmable Gate Array (Field Programmable Gate Array, FPGA) or other possible Programming logic devices, discrete gate or transistor logic devices, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present invention can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the
可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuit,ASIC)、数字信号处理器(Digital Signal Processor,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It will be appreciated that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSP Device, DSPD), programmable logic Device (Programmable Logic Device, PLD), Field Programmable Gate Array (Field Programmable Gate Array, FPGA), general purpose processor, controller, microcontroller, microprocessor, other electronic unit for performing the functions described in this application or in its combination.
对于软件实现,可通过执行本文所述功能的模块(例如过程、函数等)来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein may be implemented through modules (eg, procedures, functions, etc.) that perform the functions described herein. Software codes may be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.
可选地,作为另一个实施例,处理器701还用于:检测到当前语音引擎服务失败时,向服务器发送语音引擎切换请求;或者,根据预设的切换频率,向服务器发送语音引擎切换请求。Optionally, as another embodiment, the processor 701 is further configured to: when detecting that the current voice engine service fails, send a voice engine switching request to the server; or, according to a preset switching frequency, send a voice engine switching request to the server .
可选地,作为另一个实施例,处理器701还用于:判断移动终端是否具有目标语音引擎的数据包:若判断结果为否,则下载并安装目标语音引擎的数据包。Optionally, as another embodiment, the processor 701 is further configured to: determine whether the mobile terminal has a data package of the target speech engine: if the determination result is no, download and install the data package of the target speech engine.
可选地,作为另一个实施例,处理器701还用于:接收到当前语音引擎与当前语音引擎的服务器连接失败的消息或连接超时的消息。Optionally, as another embodiment, the processor 701 is further configured to: receive a message that the current voice engine fails to connect with the server of the current voice engine or a message that the connection times out.
移动终端700能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The
本发明实施例的移动终端700,通过处理器701当移动终端的当前语音引擎服务异常时,向服务器发送语音引擎切换请求,并接收服务器反馈的携带有目标语音引擎的指示信息,根据指示信息切换至目标语音引擎,使得移动终端当前的语音服务得以继续进行,而不必因为语音引擎服务异常,导致语音服务中断或语音助手类应用程序无法使用。且移动终端可根据预设的切换频率,自动向服务器发送语音引擎切换请求,定时切换语音引擎,以确保语音引擎处于正常工作状态,提高服务质量。服务器端还可设置多个为移动终端服务的语音引擎,当需要切换时,为移动终端提供多项选择,提升用户的使用体验。The
参见图8,本发明的又一实施例提供了一种移动终端800。具体地,图8中的移动终端800可以为手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、或车载电脑等。Referring to FIG. 8 , another embodiment of the present invention provides a
图8中的移动终端800包括射频(Radio Frequency,RF)电路810、存储器820、输入单元830、显示单元840、处理器850、Wi-Fi(Wireless Fidelity)模块860、音频电路870、电源880。The
其中,输入单元830可用于接收用户输入的数字或字符信息,以及产生与移动终端800的用户设置以及功能控制有关的信号输入。Wherein, the
具体地,本发明实施例中,该输入单元830可以包括触控面板831。触控面板831,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板831上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板831可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器850,并能接收处理器850发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板831。除了触控面板831,输入单元830还可以包括其他输入设备832,其他输入设备832可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Specifically, in this embodiment of the present invention, the
其中,显示单元840可用于显示由用户输入的信息或提供给用户的信息以及移动终端800的各种菜单界面。显示单元840可包括显示面板841,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板841。The
应注意,触控面板831可以覆盖显示面板841,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器850以确定触摸事件的类型,随后处理器850根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the
触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch screen includes the application program interface display area and the commonly used controls display area. The arrangement of the application program interface display area and the common control display area is not limited, and may be an arrangement that can distinguish the two display areas, such as up-down arrangement, left-right arrangement, or the like. The application program interface display area can be used to display the interface of the application program. Each interface may contain at least one application icon and/or interface elements such as widget desktop controls. The application program interface display area can also be an empty interface that does not contain any content. The commonly used control display area is used to display controls with high usage rate, such as setting buttons, interface numbers, scroll bars, phonebook icons and other application icons.
在本发明实施例中,通过调用存储该第一存储器821内的软件程序和/或模块和/或该第二存储器822内的数据,处理器850用于:向服务器发送语音引擎切换请求;接收服务器反馈的当前可用的目标语音引擎的指示信息;根据指示信息,将移动终端的当前语音引擎切换至目标语音引擎,并使用目标语音引擎进行语音服务。In this embodiment of the present invention, by calling and storing software programs and/or modules in the
可选地,作为另一个实施例,处理器850还用于:检测到当前语音引擎服务失败时,向服务器发送语音引擎切换请求;或者,根据预设的切换频率,向服务器发送语音引擎切换请求。Optionally, as another embodiment, the
可选地,作为另一个实施例,处理器850还用于:判断移动终端是否具有目标语音引擎的数据包:若判断结果为否,则下载并安装目标语音引擎的数据包。Optionally, as another embodiment, the
可选地,作为另一个实施例,处理器850还用于:接收到当前语音引擎与当前语音引擎的服务器连接失败的消息或连接超时的消息。Optionally, as another embodiment, the
移动终端800能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The
本发明实施例的移动终端800,通过处理器850当移动终端的当前语音引擎服务异常时,向服务器发送语音引擎切换请求,并接收服务器反馈的携带有目标语音引擎的指示信息,根据指示信息切换至目标语音引擎,使得移动终端当前的语音服务得以继续进行,而不必因为语音引擎服务异常,导致语音服务中断或语音助手类应用程序无法使用。且移动终端可根据预设的切换频率,自动向服务器发送语音引擎切换请求,定时切换语音引擎,以确保语音引擎处于正常工作状态,提高服务质量。服务器端还可设置多个为移动终端服务的语音引擎,当需要切换时,为移动终端提供多项选择,提升用户的使用体验。The
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟、光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, removable hard disk, ROM, RAM, magnetic disk, optical disk and other media that can store program codes.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710601801.7A CN107171874B (en) | 2017-07-21 | 2017-07-21 | A voice engine switching method, mobile terminal and server |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710601801.7A CN107171874B (en) | 2017-07-21 | 2017-07-21 | A voice engine switching method, mobile terminal and server |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107171874A CN107171874A (en) | 2017-09-15 |
| CN107171874B true CN107171874B (en) | 2020-02-18 |
Family
ID=59817349
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710601801.7A Active CN107171874B (en) | 2017-07-21 | 2017-07-21 | A voice engine switching method, mobile terminal and server |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107171874B (en) |
Families Citing this family (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107945797B (en) * | 2017-12-07 | 2021-12-31 | 携程旅游信息技术(上海)有限公司 | Monitoring system based on speech recognition |
| CN108831448B (en) * | 2018-03-22 | 2021-03-02 | 北京小米移动软件有限公司 | Method, device and storage medium for voice control of intelligent equipment |
| CN108881377B (en) * | 2018-04-28 | 2021-12-03 | 上海车音智能科技有限公司 | Application service calling method, terminal equipment and server |
| CN108847229A (en) * | 2018-05-23 | 2018-11-20 | 上海爱优威软件开发有限公司 | A kind of information interacting method and terminal based on voice assistant |
| CN109243464A (en) * | 2018-07-04 | 2019-01-18 | 平安科技(深圳)有限公司 | Speech recognition tools dispositions method, device, computer equipment and storage medium |
| CN111179934A (en) * | 2018-11-12 | 2020-05-19 | 奇酷互联网络科技(深圳)有限公司 | Method of selecting a speech engine, mobile terminal and computer-readable storage medium |
| CN111614701B (en) * | 2019-02-22 | 2022-09-02 | 杭州海康威视数字技术股份有限公司 | Distributed cluster and container state switching method and device |
| CN109859755B (en) * | 2019-03-13 | 2020-10-09 | 深圳市同行者科技有限公司 | Voice recognition method, storage medium and terminal |
| CN111105793B (en) * | 2019-12-03 | 2022-09-06 | 杭州蓦然认知科技有限公司 | Voice interaction method and device based on interaction engine cluster |
| CN111128125A (en) * | 2019-12-30 | 2020-05-08 | 深圳市优必选科技股份有限公司 | Voice service configuration system and voice service configuration method and device |
| CN111862972B (en) * | 2020-07-08 | 2023-11-14 | 北京梧桐车联科技有限责任公司 | Voice interaction service method, device, equipment and storage medium |
| CN113449141A (en) * | 2021-06-08 | 2021-09-28 | 阿波罗智联(北京)科技有限公司 | Voice broadcasting method and device, electronic equipment and storage medium |
| CN113591000B (en) * | 2021-07-13 | 2024-04-19 | 青岛海信移动通信技术有限公司 | Browser engine switching method, device and equipment |
| CN114171022A (en) * | 2021-11-30 | 2022-03-11 | 中汽创智科技有限公司 | A control method, device, device and storage medium for a vehicle voice engine |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103325371A (en) * | 2013-06-05 | 2013-09-25 | 杭州网豆数字技术有限公司 | Voice recognition system and method based on cloud |
| CN106373565A (en) * | 2016-08-24 | 2017-02-01 | 安徽咪鼠科技有限公司 | Method for automatically switching speech recognition engines |
| CN106411585A (en) * | 2016-09-21 | 2017-02-15 | 深圳市智物联网络有限公司 | Server switching method, adapter, server and scheduling device |
| CN106710594A (en) * | 2016-11-17 | 2017-05-24 | 北京中科汇联科技股份有限公司 | Intelligent speech interaction system based on cloud end |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090043583A1 (en) * | 2007-08-08 | 2009-02-12 | International Business Machines Corporation | Dynamic modification of voice selection based on user specific factors |
-
2017
- 2017-07-21 CN CN201710601801.7A patent/CN107171874B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103325371A (en) * | 2013-06-05 | 2013-09-25 | 杭州网豆数字技术有限公司 | Voice recognition system and method based on cloud |
| CN106373565A (en) * | 2016-08-24 | 2017-02-01 | 安徽咪鼠科技有限公司 | Method for automatically switching speech recognition engines |
| CN106411585A (en) * | 2016-09-21 | 2017-02-15 | 深圳市智物联网络有限公司 | Server switching method, adapter, server and scheduling device |
| CN106710594A (en) * | 2016-11-17 | 2017-05-24 | 北京中科汇联科技股份有限公司 | Intelligent speech interaction system based on cloud end |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107171874A (en) | 2017-09-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107171874B (en) | A voice engine switching method, mobile terminal and server | |
| CN107466077B (en) | Network switching method and mobile terminal | |
| CN105828397B (en) | Method and mobile terminal for switching wireless access point | |
| CN106406656B (en) | A kind of control method and mobile terminal of application tool bar | |
| CN106453953B (en) | A wireless access point connection method and mobile terminal | |
| CN106708367A (en) | Display method of conversation interface and mobile terminal | |
| CN107426765B (en) | A kind of measurement report generation method and mobile terminal | |
| CN106453925B (en) | Information transmission method and mobile terminal | |
| CN105898705A (en) | Method for controlling scanning frequency of wireless local area network and mobile terminal | |
| CN106504777A (en) | A kind of processing method of recording data and mobile terminal | |
| CN107508749B (en) | A message sending method and mobile terminal | |
| CN107172287B (en) | Multi-card communication method and mobile terminal | |
| CN106973424A (en) | The creation method and terminal of a kind of WAP | |
| US20140282058A1 (en) | Electronic device with a funiction of applying applications of different operating systems, system and method thereof | |
| CN106453931B (en) | A method and mobile terminal for reminding mistaken dialing | |
| CN106445669A (en) | Task processing method of application program and mobile terminal | |
| CN106254694A (en) | A kind of method of incoming call blocking, mobile terminal and core net | |
| CN106375591A (en) | Method for detecting audio input device, and mobile terminal | |
| CN107728898B (en) | An information processing method and mobile terminal | |
| CN106445280A (en) | Voice message playing method and mobile terminal | |
| CN106790768A (en) | A kind of dns server method to set up and mobile terminal | |
| CN107357747B (en) | Identification method of external equipment interface and mobile terminal | |
| CN107682902A (en) | Method for controlling electronic equipment and electronic equipment | |
| CN106376045A (en) | Method for switching communication systems of mobile terminal and mobile terminal | |
| CN106850683A (en) | The control method and mobile terminal of a kind of application program |
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 |
