CN110472254A - Voice translation method, communication terminal and computer readable storage medium - Google Patents
Voice translation method, communication terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN110472254A CN110472254A CN201910767374.9A CN201910767374A CN110472254A CN 110472254 A CN110472254 A CN 110472254A CN 201910767374 A CN201910767374 A CN 201910767374A CN 110472254 A CN110472254 A CN 110472254A
- Authority
- CN
- China
- Prior art keywords
- communication terminal
- voice information
- information
- voice
- translation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2242/00—Special services or facilities
- H04M2242/12—Language recognition, selection or translation arrangements
Landscapes
- Machine Translation (AREA)
Abstract
本发明公开了一种语音翻译方法,包括以下步骤:通信终端将接收到的语音信息发送至翻译模组,其中,所述翻译模组用于将所述语音信息翻译为目标语音信息;接收所述翻译模组发送的所述目标语音信息,并输出所述目标语音。本发明还公开了一种通信终端及计算机可读存储介质,达成了消除使用不同语言的用户在通过程中的沟通障碍的效果。
The invention discloses a voice translation method, comprising the following steps: a communication terminal sends received voice information to a translation module, wherein the translation module is used for translating the voice information into target voice information; The target voice information sent by the translation module is output, and the target voice is output. The invention also discloses a communication terminal and a computer-readable storage medium, which achieves the effect of eliminating communication barriers for users who use different languages during communication.
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及语音翻译方法、通信终端及计算机可读存储介质。The present invention relates to the field of communication technologies, and in particular, to a speech translation method, a communication terminal and a computer-readable storage medium.
背景技术Background technique
随着通信技术的发展,手机及电话已经成为人们生活中不可或缺的生活工具。但是在传统的通话过程中,只是将发送端接收到的声音发送到接收端播放。当通话双方对应不同语言时,通话过程中会存在沟通障碍。With the development of communication technology, mobile phones and telephones have become indispensable tools in people's lives. But in the traditional call process, only the sound received by the sender is sent to the receiver for playback. When the two parties on the call correspond to different languages, there will be communication barriers during the call.
发明内容SUMMARY OF THE INVENTION
本发明的主要目的在于提供一种语音翻译方法、通信终端及计算机可读存储介质,旨在达成消除使用不同语言的用户在通过程中的沟通障碍的效果。The main purpose of the present invention is to provide a speech translation method, a communication terminal and a computer-readable storage medium, aiming to achieve the effect of eliminating communication barriers between users who use different languages during communication.
为实现上述目的,本发明提供一种语音翻译方法,所述语音翻译方法包括以下步骤:In order to achieve the above-mentioned purpose, the present invention provides a kind of speech translation method, and described speech translation method comprises the following steps:
通信终端将接收到的语音信息发送至翻译模组,其中,所述翻译模组用于将所述语音信息翻译为目标语音信息;The communication terminal sends the received voice information to a translation module, wherein the translation module is used to translate the voice information into target voice information;
接收所述翻译模组发送的所述目标语音信息,并输出所述目标语音。Receive the target voice information sent by the translation module, and output the target voice.
可选地,所述翻译模组设置于第三方系统中,或者设置于所述通信终端中。Optionally, the translation module is provided in a third-party system or in the communication terminal.
可选地,所述将接收到的语音信息发送至翻译模组的步骤之前,还包括Optionally, before the step of sending the received voice information to the translation module, it also includes
建立所述通信终端与至少一个其它通信终端之间的通话连接,并接收所述其它通信终端发送的所述语音信息。A call connection between the communication terminal and at least one other communication terminal is established, and the voice information sent by the other communication terminal is received.
可选地,将所述目标语音在所述通信终端播放。Optionally, the target voice is played on the communication terminal.
可选地,所述通信终端将接收到的语音信息发送至翻译模组的步骤之前,还包括:Optionally, before the step of sending the received voice information to the translation module by the communication terminal, the method further includes:
所述通信终端接收到所述语音信息时,获取所述语音信息对应的第一语言参数;When the communication terminal receives the voice information, obtain the first language parameter corresponding to the voice information;
获取所述通信终端对应的第二语言参数;acquiring the second language parameter corresponding to the communication terminal;
对比所述第一语言参数与所述第二语言参数,并根据对比结果确定是否执行所述通信终端将接收到的语音信息发送至翻译模组的步骤。The first language parameter and the second language parameter are compared, and according to the comparison result, it is determined whether to execute the step of the communication terminal sending the received voice information to the translation module.
可选地,所述获取所述通信终端对应的第二语言参数的步骤包括:Optionally, the step of acquiring the second language parameter corresponding to the communication terminal includes:
获取所述通信终端的系统语言参数,并将所述系统语言参数作为所述第二语言参数;或者Obtain the system language parameter of the communication terminal, and use the system language parameter as the second language parameter; or
获取所述通信终端的麦克风采集的语音数据,并将所述语音数据对应的语言参数作为所述第二语言参数。Acquire the voice data collected by the microphone of the communication terminal, and use the language parameter corresponding to the voice data as the second language parameter.
可选地,所述对比所述第一语言参数与所述第二语言参数的步骤包括:Optionally, the step of comparing the first language parameter and the second language parameter includes:
对比所述第一语言参数与所述第二语言参数;comparing the first language parameter with the second language parameter;
在所述第一语言参数与所述第二语言参数相同时,输出所述语音信息;When the first language parameter is the same as the second language parameter, outputting the voice information;
在所述第一语言参数与所述第二语言参数不相同时,执行所述通信终端将接收到的语音信息发送至翻译模组的步骤。When the first language parameter is different from the second language parameter, the step of sending the received voice information to the translation module by the communication terminal is performed.
可选地,所述获取所述通信终端对应的第二语言参数的步骤之后,还包括:Optionally, after the step of acquiring the second language parameter corresponding to the communication terminal, the method further includes:
将所述第二语言参数发送至所述翻译模组,或者,在接收到所述翻译模组发送的语言查询指令时,向所述翻译模组发送所述第二语言参数。Send the second language parameter to the translation module, or send the second language parameter to the translation module when receiving a language query instruction sent by the translation module.
可选地,所述语音信息包括语音内容及声音特征,所述通信终端将接收到的语音信息发送至翻译模组的步骤之前,还包括:Optionally, the voice information includes voice content and sound features, and before the step of sending the received voice information to the translation module by the communication terminal, the method further includes:
接收多个其它终端发送的语音信息;Receive voice information sent by multiple other terminals;
所述通信终端将接收到的语音信息发送至翻译模组的步骤包括:The step of the communication terminal sending the received voice information to the translation module includes:
将所述多个其它语音信息发送至翻译模组,以供所述翻译模组根据每一语音信息的所述语音内容及所述声音特征生成目标语音信息,其中,目标语音信息的声音特征根据对应的语音信息的声音特征确定。Send the plurality of other voice information to the translation module, so that the translation module generates target voice information according to the voice content and the sound feature of each voice information, wherein the sound feature of the target voice information is based on The sound feature of the corresponding voice information is determined.
可选地,所述语音翻译方法还包括以下步骤:Optionally, the speech translation method further includes the following steps:
建立通信终端与翻译模组之间的通信连接;Establish a communication connection between the communication terminal and the translation module;
所述通信终端实时向翻译模组发送语音信息,其中,所述翻译模组在接收到所述语音信息时,将所述语音信息实时翻译为目标语音信息,并将所述目标语音信息实时发送至其他通信终端,以供其他通信终端播放所述目标语音信息。The communication terminal sends voice information to the translation module in real time, wherein when the translation module receives the voice information, the translation module translates the voice information into target voice information in real time, and sends the target voice information in real time to other communication terminals, so that other communication terminals can play the target voice information.
可选地,所述翻译模组设置于第三方系统中,或者设置于所述通信终端中。Optionally, the translation module is provided in a third-party system or in the communication terminal.
可选地,所述建立通信终端与翻译模组之间的通话连接的步骤之前,还包括:Optionally, before the step of establishing a call connection between the communication terminal and the translation module, the method further includes:
获取所述通信终端对应的第一语言参数,及所述其它通信终端对应的第二语言参数;obtaining the first language parameter corresponding to the communication terminal and the second language parameter corresponding to the other communication terminal;
在所述第一语言参数与所述第二语言参数相同时,所述通信终端直接将所述语音信息发送至所述其它通信终端,以供所述其它通信终端播放所述语音信息;When the first language parameter is the same as the second language parameter, the communication terminal directly sends the voice information to the other communication terminal for the other communication terminal to play the voice information;
在所述第一语言参数与所述第二语言参数不相同时,执行所述建立通信终端与翻译模组之间的通信连接的步骤。When the first language parameter is different from the second language parameter, the step of establishing a communication connection between the communication terminal and the translation module is performed.
可选地,所述翻译模组与所述其它通信终端之间通信连接。Optionally, the translation module is in communication connection with the other communication terminals.
可选地,所述语音翻译方法包括以下步骤:Optionally, the speech translation method includes the following steps:
通信终端接收其他通信终端发送的文字信息和/或语音信息;The communication terminal receives text information and/or voice information sent by other communication terminals;
所述通信终端将所述文字信息和/或所述语音信息发送至翻译模组,所述翻译模组将所述文字信息和/或所述语音信息翻译为目标文字信息和/或目标语音信息;The communication terminal sends the text information and/or the voice information to a translation module, and the translation module translates the text information and/or the voice information into target text information and/or target voice information ;
所述通信终端接收所述目标文字信息和/或所述目标语音信息;The communication terminal receives the target text information and/or the target voice information;
所述通信终端输出所述目标文字信息和/或所述目标语音信息。The communication terminal outputs the target text information and/or the target voice information.
可选地,所述通信终端实时输出所述目标文字信息和/或所述目标语音信息,或者在接收到预设操作时输出所述目标文字信息和/或所述目标语音信息。Optionally, the communication terminal outputs the target text information and/or the target voice information in real time, or outputs the target text information and/or the target voice information when receiving a preset operation.
可选地,所述语音翻译方法包括以下步骤:Optionally, the speech translation method includes the following steps:
通信终端接在接收到通话请求时,根据所述通话请求获取预设信息,其中,所述预设信息包括联系人信息、请求号码归属地、预设的地址信息中的至少一个;When receiving the call request, the communication terminal obtains preset information according to the call request, wherein the preset information includes at least one of contact information, attribution of the requested number, and preset address information;
若所述预设信息满足预设条件,则在建立述通话请求对应的通信连接后,所述通信终端接收并输出一翻译后的目标文字信息和/或目标语音信息。If the preset information satisfies the preset condition, after establishing the communication connection corresponding to the call request, the communication terminal receives and outputs a translated target text information and/or target voice information.
可选地,所述翻译后的目标文字信息和/或目标语音信息由翻译模组翻译,其中,所述翻译模组设置于所述通信终端或第三方系统中。Optionally, the translated target text information and/or target voice information is translated by a translation module, wherein the translation module is provided in the communication terminal or a third-party system.
此外,为实现上述目的,本发明还提供一种通信终端,所述通信终端包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的语音翻译程序,所述语音翻译程序被所述处理器执行时实现如上所述的语音翻译方法的步骤。In addition, in order to achieve the above object, the present invention also provides a communication terminal, the communication terminal includes a memory, a processor, and a voice translation program stored in the memory and running on the processor, the voice translation program The program implements the steps of the speech translation method as described above when executed by the processor.
此外,为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有语音翻译程序,所述语音翻译程序被处理器执行时实现如上所述的语音翻译方法的步骤。In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium, on which a voice translation program is stored, and when the voice translation program is executed by a processor, the above-mentioned voice translation is realized steps of the method.
本发明实施例提出的一种语音翻译方法、通信终端及及计算机可读存储介质,通信终端将接收到的语音信息发送至翻译模组,其中,所述翻译模组用于将所述语音信息翻译为目标语音信息,然后接收所述翻译模组发送的所述目标语音信息,并输出所述目标语音。由于可以通过翻译模组翻译接收到的语音信息,从而达成了消除使用不同语言的用户在通过程中的沟通障碍的效果。In a voice translation method, a communication terminal, and a computer-readable storage medium proposed by an embodiment of the present invention, the communication terminal sends the received voice information to a translation module, wherein the translation module is used to translate the voice information Translate into target voice information, then receive the target voice information sent by the translation module, and output the target voice. Since the received voice information can be translated through the translation module, the effect of eliminating communication barriers between users who use different languages during communication is achieved.
附图说明Description of drawings
图1是本发明实施例方案涉及的硬件运行环境的终端结构示意图;1 is a schematic diagram of a terminal structure of a hardware operating environment involved in an embodiment of the present invention;
图2为本发明语音翻译方法一实施例的流程示意图;2 is a schematic flowchart of an embodiment of a speech translation method according to the present invention;
图3为本发明另一实施例的流程示意图;3 is a schematic flowchart of another embodiment of the present invention;
图4为本发明又一实施例的流程示意图;4 is a schematic flowchart of another embodiment of the present invention;
图5为本发明另一实施方式的流程示意图;5 is a schematic flowchart of another embodiment of the present invention;
图6为本发明又一实施方式的流程示意图;6 is a schematic flowchart of another embodiment of the present invention;
图7为本发明再一实施方式的流程示意图。FIG. 7 is a schematic flowchart of still another embodiment of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
随着通信技术的发展,手机及电话已经成为人们生活中不可或缺的生活工具。但是在传统的通话过程中,只是将发送端接收到的声音发送到接收端播放。当通话双方对应不同语言时,通话过程中会存在沟通障碍With the development of communication technology, mobile phones and telephones have become indispensable tools in people's lives. But in the traditional call process, only the sound received by the sender is sent to the receiver for playback. When the two parties on the call correspond to different languages, there will be communication barriers during the call
为解决上述缺陷,本发明实施例提出一种语音翻译方法、通信终端及及计算机可读存储介质,其中,语音翻译方法的主要解决方案是:In order to solve the above-mentioned defects, an embodiment of the present invention proposes a speech translation method, a communication terminal, and a computer-readable storage medium, wherein the main solutions of the speech translation method are:
通信终端将接收到的语音信息发送至翻译模组,其中,所述翻译模组用于将所述语音信息翻译为目标语音信息;The communication terminal sends the received voice information to a translation module, wherein the translation module is used to translate the voice information into target voice information;
接收所述翻译模组发送的所述目标语音信息,并输出所述目标语音。Receive the target voice information sent by the translation module, and output the target voice.
由于,通信终端可以将接收到的语音信息发送至翻译模组,其中,所述翻译模组用于将所述语音信息翻译为目标语音信息,然后接收所述翻译模组发送的所述目标语音信息,并输出所述目标语音。由于可以通过翻译模组翻译接收到的语音信息,从而达成了消除使用不同语言的用户在通过程中的沟通障碍的效果。Because, the communication terminal can send the received voice information to the translation module, wherein the translation module is used to translate the voice information into target voice information, and then receive the target voice sent by the translation module information, and output the target voice. Since the received voice information can be translated through the translation module, the effect of eliminating communication barriers between users who use different languages during communication is achieved.
如图1所示,图1是本发明实施例方案涉及的硬件运行环境的终端结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment involved in an embodiment of the present invention.
本发明实施例终端可以是智能手机、平板电脑及/或PC机等终端设备。The terminal in the embodiment of the present invention may be a terminal device such as a smart phone, a tablet computer, and/or a PC.
如图1所示,该终端可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard)、鼠标等,可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the terminal may include: a processor 1001 , such as a CPU, a network interface 1004 , a user interface 1003 , a memory 1005 , and a communication bus 1002 . Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), a mouse, etc., and the optional user interface 1003 may also include a standard wired interface and a wireless interface. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (eg, a WI-FI interface). The memory 1005 may be high-speed RAM memory, or may be non-volatile memory, such as disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .
本领域技术人员可以理解,图1中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the terminal structure shown in FIG. 1 does not constitute a limitation on the terminal, and may include more or less components than the one shown, or combine some components, or arrange different components.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及语音翻译程序。As shown in FIG. 1 , the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module and a speech translation program.
在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;处理器1001可以用于调用存储器1005中存储的语音翻译程序,并执行以下操作:In the terminal shown in FIG. 1, the network interface 1004 is mainly used to connect to the background server, and perform data communication with the background server; the processor 1001 can be used to call the voice translation program stored in the memory 1005, and perform the following operations:
通信终端将接收到的语音信息发送至翻译模组,其中,所述翻译模组用于将所述语音信息翻译为目标语音信息;The communication terminal sends the received voice information to a translation module, wherein the translation module is used to translate the voice information into target voice information;
接收所述翻译模组发送的所述目标语音信息,并输出所述目标语音。Receive the target voice information sent by the translation module, and output the target voice.
进一步地,处理器1001可以调用存储器1005中存储的语音翻译程序,还执行以下操作:Further, the processor 1001 can call the speech translation program stored in the memory 1005, and also perform the following operations:
建立所述通信终端与至少一个其它通信终端之间的通话连接,并接收所述其它通信终端发送的所述语音信息。A call connection between the communication terminal and at least one other communication terminal is established, and the voice information sent by the other communication terminal is received.
进一步地,处理器1001可以调用存储器1005中存储的语音翻译程序,还执行以下操作:Further, the processor 1001 can call the speech translation program stored in the memory 1005, and also perform the following operations:
所述通信终端接收到所述语音信息时,获取所述语音信息对应的第一语言参数;When the communication terminal receives the voice information, obtain the first language parameter corresponding to the voice information;
获取所述通信终端对应的第二语言参数;acquiring the second language parameter corresponding to the communication terminal;
对比所述第一语言参数与所述第二语言参数,并根据对比结果确定是否执行所述通信终端将接收到的语音信息发送至翻译模组的步骤。The first language parameter and the second language parameter are compared, and according to the comparison result, it is determined whether to execute the step of the communication terminal sending the received voice information to the translation module.
进一步地,处理器1001可以调用存储器1005中存储的语音翻译程序,还执行以下操作:Further, the processor 1001 can call the speech translation program stored in the memory 1005, and also perform the following operations:
获取所述通信终端的系统语言参数,并将所述系统语言参数作为所述第二语言参数;或者Obtain the system language parameter of the communication terminal, and use the system language parameter as the second language parameter; or
获取所述通信终端的麦克风采集的语音数据,并将所述语音数据对应的语言参数作为所述第二语言参数。Acquire the voice data collected by the microphone of the communication terminal, and use the language parameter corresponding to the voice data as the second language parameter.
进一步地,处理器1001可以调用存储器1005中存储的语音翻译程序,还执行以下操作:Further, the processor 1001 can call the speech translation program stored in the memory 1005, and also perform the following operations:
对比所述第一语言参数与所述第二语言参数;comparing the first language parameter with the second language parameter;
在所述第一语言参数与所述第二语言参数相同时,输出所述语音信息;When the first language parameter is the same as the second language parameter, outputting the voice information;
在所述第一语言参数与所述第二语言参数不相同时,执行所述通信终端将接收到的语音信息发送至翻译模组的步骤。When the first language parameter is different from the second language parameter, the step of sending the received voice information to the translation module by the communication terminal is performed.
进一步地,处理器1001可以调用存储器1005中存储的语音翻译程序,还执行以下操作:Further, the processor 1001 can call the speech translation program stored in the memory 1005, and also perform the following operations:
将所述第二语言参数发送至所述翻译模组,或者,在接收到所述翻译模组发送的语言查询指令时,向所述翻译模组发送所述第二语言参数。Send the second language parameter to the translation module, or send the second language parameter to the translation module when receiving a language query instruction sent by the translation module.
进一步地,处理器1001可以调用存储器1005中存储的语音翻译程序,还执行以下操作:Further, the processor 1001 can call the speech translation program stored in the memory 1005, and also perform the following operations:
接收多个其它终端发送的语音信息;Receive voice information sent by multiple other terminals;
所述通信终端将接收到的语音信息发送至翻译模组的步骤包括:The step of the communication terminal sending the received voice information to the translation module includes:
将所述多个其它语音信息发送至翻译模组,以供所述翻译模组根据每一语音信息的所述语音内容及所述声音特征生成目标语音信息,其中,目标语音信息的声音特征根据对应的语音信息的声音特征确定。Send the plurality of other voice information to the translation module, so that the translation module generates target voice information according to the voice content and the sound feature of each voice information, wherein the sound feature of the target voice information is based on The sound feature of the corresponding voice information is determined.
处理器1001调用存储器1005中存储的语音翻译程序,还可以执行以下操作:The processor 1001 calls the speech translation program stored in the memory 1005, and can also perform the following operations:
建立通信终端与翻译模组之间的通信连接;Establish a communication connection between the communication terminal and the translation module;
所述通信终端实时向翻译模组发送语音信息,其中,所述翻译模组在接收到所述语音信息时,将所述语音信息实时翻译为目标语音信息,并将所述目标语音信息实时发送至其他通信终端,以供其他通信终端播放所述目标语音信息。The communication terminal sends voice information to the translation module in real time, wherein when the translation module receives the voice information, the translation module translates the voice information into target voice information in real time, and sends the target voice information in real time to other communication terminals, so that other communication terminals can play the target voice information.
进一步地,处理器1001可以调用存储器1005中存储的语音翻译程序,还执行以下操作:Further, the processor 1001 can call the speech translation program stored in the memory 1005, and also perform the following operations:
获取所述通信终端对应的第一语言参数,及所述其它通信终端对应的第二语言参数;obtaining the first language parameter corresponding to the communication terminal and the second language parameter corresponding to the other communication terminal;
在所述第一语言参数与所述第二语言参数相同时,所述通信终端直接将所述语音信息发送至所述其它通信终端,以供所述其它通信终端播放所述语音信息;When the first language parameter is the same as the second language parameter, the communication terminal directly sends the voice information to the other communication terminal for the other communication terminal to play the voice information;
在所述第一语言参数与所述第二语言参数不相同时,执行所述建立通信终端与翻译模组之间的通信连接的步骤。When the first language parameter is different from the second language parameter, the step of establishing a communication connection between the communication terminal and the translation module is performed.
处理器1001调用存储器1005中存储的语音翻译程序,还可以执行以下操作:The processor 1001 calls the speech translation program stored in the memory 1005, and can also perform the following operations:
通信终端接收其他通信终端发送的文字信息和/或语音信息;The communication terminal receives text information and/or voice information sent by other communication terminals;
所述通信终端将所述文字信息和/或所述语音信息发送至翻译模组,所述翻译模组将所述文字信息和/或所述语音信息翻译为目标文字信息和/或目标语音信息;The communication terminal sends the text information and/or the voice information to a translation module, and the translation module translates the text information and/or the voice information into target text information and/or target voice information ;
所述通信终端接收所述目标文字信息和/或所述目标语音信息;The communication terminal receives the target text information and/or the target voice information;
所述通信终端输出所述目标文字信息和/或所述目标语音信息。The communication terminal outputs the target text information and/or the target voice information.
处理器1001调用存储器1005中存储的语音翻译程序,还可以执行以下操作:The processor 1001 calls the speech translation program stored in the memory 1005, and can also perform the following operations:
通信终端接在接收到通话请求时,根据所述通话请求获取预设信息,其中,所述预设信息包括联系人信息、请求号码归属地、预设的地址信息中的至少一个;When receiving the call request, the communication terminal obtains preset information according to the call request, wherein the preset information includes at least one of contact information, attribution of the requested number, and preset address information;
若所述预设信息满足预设条件,则在建立述通话请求对应的通信连接后,所述通信终端接收并输出一翻译后的目标文字信息和/或目标语音信息。If the preset information satisfies the preset condition, after establishing the communication connection corresponding to the call request, the communication terminal receives and outputs a translated target text information and/or target voice information.
参照图2,在本发明语音翻译方法的一实施例中,所述语音翻译方法包括以下步骤:2, in an embodiment of the speech translation method of the present invention, the speech translation method includes the following steps:
步骤S10、通信终端将接收到的语音信息发送至翻译模组,其中,所述翻译模组用于将所述语音信息翻译为目标语音信息;Step S10, the communication terminal sends the received voice information to a translation module, wherein the translation module is used to translate the voice information into target voice information;
在本实施例中,所述通信终端可以手机、平板电脑及或PC机等可以由于通话的通信设备。当所述通信终端为手机时,所述手机中可以设置SIM卡。手机基于所述SIM卡可以与其它手机进行通话连接。获取手机上可以设置用于通话的通话软件,通过所述通话软件可以建立一个或者多个手机之间的通话连接。In this embodiment, the communication terminal may be a communication device such as a mobile phone, a tablet computer, or a PC that can be used for calling. When the communication terminal is a mobile phone, a SIM card may be set in the mobile phone. The mobile phone can communicate with other mobile phones based on the SIM card. The call software that can be set for calling on the mobile phone is obtained, and a call connection between one or more mobile phones can be established through the call software.
可以理解的是,平板电脑及或PC机也可以设置通话软件,使得可以与其他通信终端进行通话连接。例如,所述通话软件可以是QQ或者微信。从而使得两个已建立通话连接的终端的类型可以不同。示例性地,手机A通过微信与PC机B建立通话连接时,两个通信终端的类型分别为手机和PC机。It can be understood that, the tablet computer and/or the PC can also be provided with call software, so that a call connection can be made with other communication terminals. For example, the calling software may be QQ or WeChat. Therefore, the types of the two terminals that have established a call connection can be different. Exemplarily, when mobile phone A establishes a call connection with PC machine B through WeChat, the types of the two communication terminals are a mobile phone and a PC respectively.
进一步地,当通信终端与其他通信终端建立通话连接后,可以接收其它通信终端发送的语音信息,当接受到其它通信终端发送的语音信息时,可以将接收到的语音信息发送至翻译模组。其中,所述翻译模组用于将接收到的语音信息翻译为目标语音信息。Further, after a communication terminal establishes a call connection with other communication terminals, it can receive voice information sent by other communication terminals, and when receiving voice information sent by other communication terminals, it can send the received voice information to the translation module. Wherein, the translation module is used for translating the received voice information into target voice information.
需要说明的是,所述翻译模组可以与所述通信终端一体设置,也可以设置于服务器中。当所述翻译模组设置于服务器中时,所述通信终端还与所述服务器之间通信连接,使得可以向服务器的翻译模组发送所述语音信息。当通信终端接收到其它通信终端发送的语音信息时,可以将所述语音信息同步发送至翻译模组(实时发送),翻译模组接收到所述语音信息时,可以对所述语音信息进行同步翻译(实时翻译),并将翻译得到的目标语音信息实时发送至通信终端,以供通信终端输出所述目标语音信息。其中,所述目标语音信息对应的语言参数与所述语音信息对应的语言参数不同。例如,当所述语音信息对应的语言参数的具体值为中文时,所述目标语音信息对应的语言参数的具体值可以是如“英语、法语或者德语”的其它语言。It should be noted that the translation module may be integrally provided with the communication terminal, or may be provided in a server. When the translation module is set in the server, the communication terminal is also connected in communication with the server, so that the voice information can be sent to the translation module of the server. When the communication terminal receives the voice information sent by other communication terminals, it can synchronously send the voice information to the translation module (send in real time), and when the translation module receives the voice information, it can synchronize the voice information Translate (real-time translation), and send the target voice information obtained by translation to the communication terminal in real time, so that the communication terminal can output the target voice information. Wherein, the language parameter corresponding to the target speech information is different from the language parameter corresponding to the speech information. For example, when the specific value of the language parameter corresponding to the voice information is Chinese, the specific value of the language parameter corresponding to the target voice information may be other languages such as "English, French or German".
示例性地,当通信终端A与通信终端B建立通话连接后,通信终端A可以接收通信终端B发送的语音信息,当接受到通信终端A发送的语音信息时,可以将所述语音信息实时发送至翻译模组,翻译模组对接收到的语音信息进行实时翻译,并发送翻译得到的目标语音信息值通信终端A。使得通信终端A可以接收并播放所述目标语音信息。Exemplarily, after the communication terminal A and the communication terminal B establish a call connection, the communication terminal A can receive the voice information sent by the communication terminal B, and when receiving the voice information sent by the communication terminal A, the voice information can be sent in real time. To the translation module, the translation module performs real-time translation on the received voice information, and sends the translated target voice information value to the communication terminal A. So that the communication terminal A can receive and play the target voice information.
步骤S20、接收所述翻译模组发送的所述目标语音信息,并输出所述目标语音。Step S20: Receive the target voice information sent by the translation module, and output the target voice.
在本实施例中,通信终端可以实时接收翻译模组发送的目标语音信息,当接收到所述目标语音信息时,通信终端可以播放所述目标语音信息。In this embodiment, the communication terminal can receive the target voice information sent by the translation module in real time, and when receiving the target voice information, the communication terminal can play the target voice information.
可选地,所述通信终端还可以选择性地开启或者关闭语音翻译功能。当语音翻译功能处于关闭状态时,通信终端直接播放接收到的语音信息。当翻译功能处于开启状态时,通信终端执行所述步骤S10至步骤S20。Optionally, the communication terminal may also selectively enable or disable the speech translation function. When the voice translation function is disabled, the communication terminal directly plays the received voice information. When the translation function is on, the communication terminal executes the steps S10 to S20.
在本实施例公开的技术方案中,通信终端将接收到的语音信息发送至翻译模组,其中,所述翻译模组用于将所述语音信息翻译为目标语音信息,然后接收所述翻译模组发送的所述目标语音信息,并输出所述目标语音。由于可以通过翻译模组翻译接收到的语音信息,从而达成了消除使用不同语言的用户在通过程中的沟通障碍的效果。In the technical solution disclosed in this embodiment, the communication terminal sends the received voice information to a translation module, wherein the translation module is used for translating the voice information into target voice information, and then receives the translation module The target voice information sent by the group, and output the target voice. Since the received voice information can be translated through the translation module, the effect of eliminating communication barriers between users who use different languages during communication is achieved.
参照图3,基于上述实施例,在另一实施例中,所述步骤S10之前,还包括:Referring to FIG. 3, based on the foregoing embodiment, in another embodiment, before the step S10, the method further includes:
步骤S30、建立所述通信终端与至少一个其它通信终端之间的通话连接,并接收所述其它通信终端发送的所述语音信息。Step S30: Establish a call connection between the communication terminal and at least one other communication terminal, and receive the voice information sent by the other communication terminal.
在本实施例中,通信终端可以与一个或者多个其它通信终端建立通话连接。例如,通过手机进行通话时,可以建立电话会议,使得多个用户可以同时进行通话,以实现通信终端与一个或者多个其它通信终端建立通话连接。或者通过微信进行群聊通话时,可以使得通信终端与一个或者多个通信终端建立通话连接。In this embodiment, the communication terminal may establish a call connection with one or more other communication terminals. For example, when making a call through a mobile phone, a conference call can be established, so that multiple users can make a call at the same time, so that a communication terminal can establish a call connection with one or more other communication terminals. Or when a group chat call is made through WeChat, the communication terminal can be made to establish a call connection with one or more communication terminals.
可选地,当通信终端与多个其它通信终端同时建立了通话连接时,可以同时或者依次接收多个其它通信发送的语音信息。当接受到多个通信终端发送的多个语音信息时,可以提取每一语音信息的声音特征,并将每一声音特征与对应的语音信息关联后,发送至翻译模组。使得翻译模组可以根据每一语音信息的声音特征及语音内容,将所述语音内容翻译为声音特征与语音信息相同的目标语音信息。即目标语音信息对应的声音特征与语音信息对应的声音特征相同。对应的语言参数不同。其中,所述声音特征可以包括音色及或音调等。使得通信终端在播放所述多个目标语音信息时,用户可以根据目标语音信息的声音特征对目标语音信息的来源进行区分。Optionally, when a communication terminal establishes a call connection with multiple other communication terminals at the same time, the voice information sent by multiple other communication terminals may be received simultaneously or sequentially. When receiving multiple voice information sent by multiple communication terminals, the voice feature of each voice information can be extracted, and each voice feature is associated with the corresponding voice information, and then sent to the translation module. So that the translation module can translate the voice content into target voice information with the same voice characteristics and voice information according to the voice characteristics and voice content of each voice information. That is, the sound feature corresponding to the target voice information is the same as the sound feature corresponding to the voice information. The corresponding language parameters are different. Wherein, the sound feature may include timbre and/or tone, and the like. Therefore, when the communication terminal plays the multiple target voice information, the user can distinguish the source of the target voice information according to the sound characteristics of the target voice information.
需要说明的是,当通信终端与多个其它通信终端同时建立了通话连接时,也可以直接将多个语音信息发送至翻译模组,而不对语音信息进行区分。当翻译模组接收到多个语音信息时,翻译模组获取每一语音信息对应的声音特征,从而区分多个不同的语音信息,并分别对所述多个语音信息进行翻译,以生成多个具有不同声音特征,且与接收到的语音信息一一对应的目标语音信息。It should be noted that when a communication terminal establishes a call connection with multiple other communication terminals at the same time, multiple voice information may also be directly sent to the translation module without distinguishing the voice information. When the translation module receives multiple pieces of voice information, the translation module obtains the sound feature corresponding to each piece of voice information, thereby distinguishing multiple different pieces of voice information, and translates the multiple pieces of voice information respectively to generate multiple pieces of voice information. Target voice information with different sound characteristics and one-to-one correspondence with the received voice information.
可以理解的是,所述目标语音信息的声音特征也可以与语音信息的声音特征不相同,但不同目标语音信息对应的声音特征不同,使得用户可以根据声音特征区分不同的目标语音信息。It can be understood that the sound features of the target voice information may also be different from the sound features of the voice information, but the sound features corresponding to different target voice information are different, so that the user can distinguish different target voice information according to the sound features.
在本实施例公开的技术方案中,通信终端可以同时与一个或者多个其它通信终端建立通话连接,并生成与语音信息一一对应的目标语音信息,且目标语音信息的声音特征可以与语音信息相同,这样达成了区分不同目标语音信息的效果。In the technical solution disclosed in this embodiment, the communication terminal can establish a call connection with one or more other communication terminals at the same time, and generate target voice information corresponding to the voice information one-to-one, and the sound characteristics of the target voice information can be related to the voice information. The same, thus achieving the effect of distinguishing different target voice information.
参照图4、基于上述任一实施例,在又一实施例中,所述步骤S10之前,还包括:Referring to FIG. 4 , based on any of the above embodiments, in yet another embodiment, before the step S10, the method further includes:
步骤S40、所述通信终端接收到所述语音信息时,获取所述语音信息对应的第一语言参数;Step S40, when the communication terminal receives the voice information, obtains a first language parameter corresponding to the voice information;
步骤S50、获取所述通信终端对应的第二语言参数;Step S50, acquiring the second language parameter corresponding to the communication terminal;
步骤S60、判断所述第一语言参数与所述第二语言参数是否相同;Step S60, judging whether the first language parameter is the same as the second language parameter;
步骤S70、在所述第一语言参数与所述第二语言参数相同时,输出所述语音信息;Step S70, outputting the voice information when the first language parameter is the same as the second language parameter;
在本实施例中你,当通信终端接收到语音信息时,先对接收到的语音信息进行语音检测,以获取接收到的语音信息对应的第一语言参数,然后获取所述通信终端对应的第二语言参数。当获取到第一语言参数及第二语言参数时,对比所述第一语言参数与第二参数,以判断所述第一语言参数与所述第二语言参数是否相同。在所述第一语言参数与第二语言参数相同时,直接输出当前接收到的所述语音信息。当第一语言参数与第二语言参数不相同时,执行所述步骤S10。In this embodiment, when the communication terminal receives voice information, first perform voice detection on the received voice information to obtain the first language parameter corresponding to the received voice information, and then obtain the first language parameter corresponding to the communication terminal. Two language parameters. When the first language parameter and the second language parameter are acquired, the first language parameter and the second language parameter are compared to determine whether the first language parameter and the second language parameter are the same. When the first language parameter is the same as the second language parameter, the currently received speech information is directly output. When the first language parameter is different from the second language parameter, the step S10 is executed.
可以理解的是,当通信终端同时接收到多个源自不同的其它通信终端发送的语音信息时,可以逐一判断每一语音信息对应的语音参数与通信终端对应的语言参数是否相同。并将所述多个语音信息中,语言参数与通信终端的语音参数相同的语音信息直接播放,将语言参数与通信终端的语音参数相同的语音信息发送至翻译模组,以供翻译模组将接收到的语音信息翻译为目标语音信息。其中,目标语音信息对应的语言参数与通信终端的语言参数相同。It can be understood that when a communication terminal simultaneously receives multiple voice messages sent from different other communication terminals, it can be determined one by one whether the voice parameter corresponding to each voice message is the same as the language parameter corresponding to the communication terminal. And in the plurality of voice information, the voice information whose language parameter is the same as the voice parameter of the communication terminal is directly played, and the voice information whose language parameter is the same as the voice parameter of the communication terminal is sent to the translation module, so that the translation module can convert the voice information to the translation module. The received voice information is translated into target voice information. The language parameter corresponding to the target speech information is the same as the language parameter of the communication terminal.
示例性地,当接收到的语音信息A对应的语言参数为中文,接收到的语音信息B对应语言参数为英文,通信终端对应的语言参数为中文时,直接播放语音信息A,并将语音信息B发送至翻译模组。Exemplarily, when the language parameter corresponding to the received voice information A is Chinese, the language parameter corresponding to the received voice information B is English, and the language parameter corresponding to the communication terminal is Chinese, the voice information A is directly played, and the voice information B is sent to the translation module.
具体地,所述获取所述通信终端对应的第二语言参数的步骤包括:Specifically, the step of acquiring the second language parameter corresponding to the communication terminal includes:
获取所述通信终端的系统语言参数,并将所述系统语言参数作为所述第二语言参数;或者Obtain the system language parameter of the communication terminal, and use the system language parameter as the second language parameter; or
获取所述通信终端的麦克风采集的语音数据,并将所述语音数据对应的语言参数作为所述第二语言参数。其中,当麦克风未采集到语音数据时,通过系统语言参数确定通信终端的语言参数,当麦克风采集到语言数据时,先对语音数据进行语音识别,以确定语音数据对应的语言参数,并将语音数据对应的语言参数作为所述通信终端的语言参数。Acquire the voice data collected by the microphone of the communication terminal, and use the language parameter corresponding to the voice data as the second language parameter. Wherein, when the microphone does not collect voice data, the language parameters of the communication terminal are determined by the system language parameters, and when the microphone collects the language data, the voice data is firstly subjected to voice recognition to determine the language parameters corresponding to the voice data, and the voice The language parameter corresponding to the data is used as the language parameter of the communication terminal.
进一步地,还可以在获取到通信终端对应的第二语言参数后,将第二语言参数发送至翻译模组,以供翻译模组根据第二语言参数将语音信息翻译为目标语音信息。Further, after acquiring the second language parameter corresponding to the communication terminal, the second language parameter may be sent to the translation module, so that the translation module can translate the voice information into the target voice information according to the second language parameter.
可选地,也可以在接收到所述翻译模组发送的语言查询指令时,向所述翻译模组发送所述第二语言参数。其中,当翻译模组接收到语音信息时,可以向通信终端发送语言查询指令。Optionally, the second language parameter may also be sent to the translation module when the language query instruction sent by the translation module is received. Wherein, when the translation module receives the voice information, it can send a language query instruction to the communication terminal.
在本实施例公开的技术方案中,所述通信终端接收到所述语音信息时,获取所述语音信息对应的第一语言参数,然后获取所述通信终端对应的第二语言参数,并对比所述第一语言参数与所述第二语言参数,并根据对比结果确定是否执行所述通信终端将接收到的语音信息发送至翻译模组的步骤,这样达成了节省服务器的系统开销的效果。In the technical solution disclosed in this embodiment, when the communication terminal receives the voice information, it obtains the first language parameter corresponding to the voice information, then obtains the second language parameter corresponding to the communication terminal, and compares the The first language parameter and the second language parameter are determined, and according to the comparison result, it is determined whether to execute the step of sending the received voice information to the translation module by the communication terminal, thus achieving the effect of saving the system overhead of the server.
参照图5,在本发明语音翻译方法的另一实施方式中,所述语音翻译方法包括以下步骤:5, in another embodiment of the speech translation method of the present invention, the speech translation method includes the following steps:
步骤S1、建立通信终端与翻译模组之间的通信连接;Step S1, establish the communication connection between the communication terminal and the translation module;
步骤S2、所述通信终端实时向翻译模组发送语音信息,,其中,所述翻译模组在接收到所述语音信息时,将所述语音信息实时翻译为目标语音信息,并将所述目标语音信息实时发送至其他通信终端,以供其他通信终端播放所述目标语音信息。Step S2, the communication terminal sends voice information to the translation module in real time, wherein, when the translation module receives the voice information, the voice information is translated into target voice information in real time, and the target voice information is translated into the target voice information in real time. The voice information is sent to other communication terminals in real time, so that other communication terminals can play the target voice information.
在本实施例中,所述翻译模组可以设置于所述通信终端中,也可以设置于第三方系统中。其中,所述第三方系统可以是网络运营商提供的通话系统。当所述翻译模组设置为所述第三方系统中时,所述通信终端可以通过运营商提供的通信链路实现与所述翻译模组之间的通信连接。In this embodiment, the translation module may be installed in the communication terminal, or may be installed in a third-party system. Wherein, the third-party system may be a call system provided by a network operator. When the translation module is set in the third-party system, the communication terminal may implement a communication connection with the translation module through a communication link provided by an operator.
进一步地,当建立通信终端与翻译模组之间的通信连接后,所述通信终端可以实时向翻译模组发送语音信息。翻译模组接收到通信终端发送的实时语音信息时,可以将接收到的实时语音信息实时翻译为目标语音信息。并将所述目标语音信息实时发送至其他通信终端,以供其他通信终端实时播放所述目标语音信息。Further, after the communication connection between the communication terminal and the translation module is established, the communication terminal can send voice information to the translation module in real time. When the translation module receives the real-time voice information sent by the communication terminal, it can translate the received real-time voice information into target voice information in real time. The target voice information is sent to other communication terminals in real time, so that other communication terminals can play the target voice information in real time.
需要说明的是,所述语音信息与目标语音信息的语言参数不同。例如,所述语音信息对应的语言参数为中文,所述目标语音信息对应的语言参数为英文。It should be noted that the language parameters of the voice information and the target voice information are different. For example, the language parameter corresponding to the voice information is Chinese, and the language parameter corresponding to the target voice information is English.
可选地,所述步骤S1之前,还可以获取所述通信终端对应的第一语言参数,及所述其它通信终端对应的第二语言参数。Optionally, before the step S1, the first language parameter corresponding to the communication terminal and the second language parameter corresponding to the other communication terminal may also be acquired.
具体地,可以直接获取通信终端及其它通信终端的系统语言对应的语言参数分别作为所述第一语言参数,及第二语言参数。其中,通信终端可以直接读取自身的系统语言对应的语言参数。所述其它终端也可以直接读取自身系统语言对应的语言参数,并将其发送至所述通信终端。Specifically, language parameters corresponding to the system languages of the communication terminal and other communication terminals may be directly obtained as the first language parameter and the second language parameter, respectively. The communication terminal can directly read language parameters corresponding to its own system language. The other terminal may also directly read the language parameter corresponding to its own system language, and send it to the communication terminal.
进一步地,在所述第一语言参数与所述第二语言参数相同时,所述通信终端直接将所述语音信息发送至所述其它通信终端,以供所述其它通信终端播放所述语音信息;在所述第一语言参数与所述第二语言参数不相同时,执行所述建立通信终端与翻译模组之间的通信连接的步骤。Further, when the first language parameter is the same as the second language parameter, the communication terminal directly sends the voice information to the other communication terminal, so that the other communication terminal can play the voice information ; when the first language parameter is different from the second language parameter, execute the step of establishing a communication connection between the communication terminal and the translation module.
可以理解的是,当翻译模组设置于所述通信终端中时,可以基于运营商网络实现与其他通信终端之间的通信连接。It can be understood that, when the translation module is provided in the communication terminal, the communication connection with other communication terminals can be realized based on the operator network.
在本实施例公开的技术方案中,先建立通信终端与翻译模组之间的通信连接,所述通信终端实时向翻译模组发送语音信息,其中,所述翻译模组在接收到所述语音信息时,将所述语音信息实时翻译为目标语音信息,并将所述目标语音信息实时发送至其他通信终端,以供其他通信终端播放所述目标语音信息,这样达成了节约翻译通信过程中的传输开销的效果。In the technical solution disclosed in this embodiment, the communication connection between the communication terminal and the translation module is first established, and the communication terminal sends voice information to the translation module in real time, wherein the translation module receives the voice information, the voice information is translated into target voice information in real time, and the target voice information is sent to other communication terminals in real time, so that other communication terminals can play the target voice information, so as to save time in the translation communication process. The effect of transmission overhead.
参照图6,在本发明语音翻译方法的又一实施方式中,所述语音翻译方法包括以下步骤:6 , in yet another embodiment of the speech translation method of the present invention, the speech translation method includes the following steps:
步骤S100、通信终端接收其他通信终端发送的文字信息和/或语音信息;Step S100, the communication terminal receives text information and/or voice information sent by other communication terminals;
步骤S200、所述通信终端将所述文字信息和/或所述语音信息发送至翻译模组,所述翻译模组将所述文字信息和/或所述语音信息翻译为目标文字信息和/或目标语音信息;Step S200, the communication terminal sends the text information and/or the voice information to a translation module, and the translation module translates the text information and/or the voice information into target text information and/or target voice information;
步骤S300、所述通信终端接收并输出所述目标文字信息和/或所述目标语音信息。Step S300, the communication terminal receives and outputs the target text information and/or the target voice information.
在本实施例中,通信终端可以与其他通信终端先建立通信连接,以实现通信终端与其他通信终端之间的数据交互。In this embodiment, a communication terminal may first establish a communication connection with other communication terminals, so as to realize data interaction between the communication terminal and other communication terminals.
当所述通信终端接收到其它通信终端发送的文字信息时,可以将所述文字信息发送至翻译模组,其中,所述翻译模组可以与所述通信终端一体设置,也可以设置于第三方系统中。当所述翻译模组设置于第三方系统中时,所述通信终端与所述翻译模组之间可以通过互联网实现通信连接。When the communication terminal receives text information sent by other communication terminals, it can send the text information to a translation module, where the translation module can be set integrally with the communication terminal, or can be set in a third party in the system. When the translation module is set in a third-party system, the communication connection between the communication terminal and the translation module can be realized through the Internet.
可以理解的是,当所述通信终端接收到的文字信息对应的语言参数与系统语言对应的语言参数相同时,直接输出所述文字信息。例如,可以直接显示所述文字信息或者将所述目标文字信息转换为语音后,通过语音播放的方式输出是目标文字信息。否则执行所述步骤S200。It can be understood that, when the language parameter corresponding to the text information received by the communication terminal is the same as the language parameter corresponding to the system language, the text information is directly output. For example, the text information may be displayed directly or the target text information may be output by means of voice playback after the target text information is converted into voice. Otherwise, the step S200 is executed.
当所述翻译模组接收到所述文字信息时,可以将所述文字信息翻译为目标文字信息,并将所述目标文字信息发送至所述通信终端。When the translation module receives the text information, it can translate the text information into target text information, and send the target text information to the communication terminal.
进一步地,所述通信终端可以接收所述目标文字信息。当接收到所述目标文字信息时,检测所述通信终端中是否存在预设的控制信息。在检测到预设控制信息时,将所述目标文字信息转换为目标语音,并播放所述目标语音;在未检测到所述预设控制信息时,显示所述目标文字信息。Further, the communication terminal may receive the target text information. When the target text information is received, it is detected whether preset control information exists in the communication terminal. When the preset control information is detected, the target text information is converted into a target voice, and the target voice is played; when the preset control information is not detected, the target text information is displayed.
具体地,所述预设的控制信息可以是用户预先设置的语音转换标志。通信终端的设置界面中设置有语音转换开关控件,用户可以通过所述语音转换开关控件,在通信终端中设置语音转换标志。当检测到所述语音转换标志时,通信终端将接收到的目标文字信息转换为语音信息,并播放所述语音信息。Specifically, the preset control information may be a voice conversion flag preset by a user. A voice conversion switch control is provided in the setting interface of the communication terminal, and a user can set a voice conversion flag in the communication terminal through the voice conversion switch control. When the voice conversion flag is detected, the communication terminal converts the received target text information into voice information, and plays the voice information.
或者,所述预设的控制信息还可以是接收到预设的控制手势。当接收到目标文字信息时,通信终端可以输出新信息提示,以提示用户输入手势操作。在接收到如单击、双击或者下滑等预设的控制手势时,将所述文字信息转换为语音信息。并播放所述语音信息。Alternatively, the preset control information may also be receiving a preset control gesture. When receiving the target text information, the communication terminal may output a new information prompt to prompt the user to input a gesture operation. When receiving a preset control gesture such as single click, double click or slide down, the text information is converted into voice information. and play the voice message.
可以理解的是,通信终端也可以在接收到所述文字信息时,先保存所述文字信息,然后在接收到用户控制翻译所述文字信息的控制指令时,再将所述文字信息发送至翻译模组。It can be understood that the communication terminal may also save the text information first when receiving the text information, and then send the text information to the translator when receiving a control instruction from the user to control the translation of the text information. module.
可选地,当接收到所述语音信息时,通信终端可以将所述语音信息发送至至翻译模组。所述翻译模组在接收到所述语音信息后,将所述语音信息翻译为目标语音信息,并将所述目标语音信息发送至所述通信终端。Optionally, when receiving the voice information, the communication terminal may send the voice information to the translation module. After receiving the voice information, the translation module translates the voice information into target voice information, and sends the target voice information to the communication terminal.
当是通信终端接收到的所述语音信息时,可以在检测到预设控制信息时,将所述目标语音信息转换为目标文字,并显示所述目标文字,在未检测到所述预设控制信息时,播放所述目标语音信息。When it is the voice information received by the communication terminal, when the preset control information is detected, the target voice information can be converted into the target text, and the target text can be displayed, and when the preset control information is not detected When the message is received, the target voice message is played.
具体地,所述预设的控制信息可以是用户预先设置的语音转换标志。通信终端的设置界面中设置有语音转换开关控件,用户可以通过所述语音转换开关控件,在通信终端中设置语音转换标志。当检测到所述语音转换标志时,通信终端将接收到的目标语音信息转换为目标文字,并显示所述目标文字。Specifically, the preset control information may be a voice conversion flag preset by a user. A voice conversion switch control is provided in the setting interface of the communication terminal, and a user can set a voice conversion flag in the communication terminal through the voice conversion switch control. When the voice conversion flag is detected, the communication terminal converts the received target voice information into target text, and displays the target text.
或者,用户也可以通过预设手势控制通信终端将所述目标语音转换为目标文字,并显示输出所述目标文字。Alternatively, the user can also control the communication terminal to convert the target voice into target text through a preset gesture, and display and output the target text.
可以理解的是,通信终端也可以在接收到所述语音信息时,先保存所述语音信息,然后在接收到用户控制翻译所述文字信息的控制指令时,再将所述语音信息发送至翻译模组。It can be understood that the communication terminal may also save the voice information first when receiving the voice information, and then send the voice information to the translator when receiving a control instruction from the user to control the translation of the text information. module.
在本实施例公开的技术方案中,先将接收到的文字信息翻译为目标文字信息,然后通过语音播放或者直接显示的方式输出所述目标文字信息,从而达到了个性化输出翻译结果的效果。In the technical solution disclosed in this embodiment, the received text information is first translated into target text information, and then the target text information is output through voice playback or direct display, thereby achieving the effect of personalized output of translation results.
参照图7,在本发明语音翻译方法的再一实施方式中,所述语音翻译方法包括以下步骤:7, in yet another embodiment of the speech translation method of the present invention, the speech translation method includes the following steps:
步骤S1000、通信终端接在接收到通话请求时,根据所述通话请求获取预设信息,其中,所述预设信息包括联系人信息、请求号码归属地、预设的地址信息中的至少一个;Step S1000: When receiving the call request, the communication terminal obtains preset information according to the call request, wherein the preset information includes at least one of contact information, attribution of the requested number, and preset address information;
步骤S2000、若所述预设信息满足预设条件,则在建立述通话请求对应的通信连接后,所述通信终端接收并输出一翻译后的目标文字信息和/或目标语音信息。Step S2000: If the preset information satisfies the preset condition, after establishing the communication connection corresponding to the call request, the communication terminal receives and outputs a translated target text information and/or target voice information.
在本实施例中,通信终端可以接收其它通信终端发起的通话请求,通信终端接收到其它通信终端发起的通话请求时,根据所述通话请求获取预设信息。其中,所述预设信息可以是联系人信息、请求号码归属地和/或预设地址。In this embodiment, a communication terminal may receive a call request initiated by other communication terminals, and when the communication terminal receives a call request initiated by another communication terminal, it acquires preset information according to the call request. The preset information may be contact information, the attribution of the requested number and/or a preset address.
在获取到所述预设信息后,根据所述预设信息判断所述预设信息是否满足预设要求。其中,所述预设要求可以是所述预设信息对应的语言参数与所述通信终端对应的语言参数相同。After the preset information is acquired, it is determined whether the preset information meets the preset requirements according to the preset information. The preset requirement may be that the language parameter corresponding to the preset information is the same as the language parameter corresponding to the communication terminal.
具体地,当接收到通话请求时,获取所述通话请求对应的请求号码,根据所述请求号码可以获取所述预设信息。例如,当请求号为A时,可以根据所述号码A在通信终端查询是否保存有号码A对应的联系信息、确定号码A对应的归属地,及或预先保存在所述通信终端中的,号码A对应的预设的地址信息等。Specifically, when a call request is received, a request number corresponding to the call request is acquired, and the preset information can be acquired according to the request number. For example, when the request number is A, according to the number A, it is possible to query whether the contact information corresponding to the number A is stored in the communication terminal, determine the attribution corresponding to the number A, or pre-store the number A in the communication terminal. The preset address information corresponding to A, etc.
然后根据所述预设信息判断请求端对应的语言参数与所述通信终端对应的语言参数是否相同。Then, according to the preset information, it is determined whether the language parameter corresponding to the requesting terminal is the same as the language parameter corresponding to the communication terminal.
进一步地,在语言参数相同时,在在建立述通话请求对应的通信连接后,直接接收输出请求端发送的初始语音信息,或者将所述初始语音信息转换为文字后显示在显示装置中。Further, when the language parameters are the same, after the communication connection corresponding to the call request is established, the initial voice information sent by the output request terminal is directly received, or the initial voice information is converted into text and displayed on the display device.
在语言参数不一致时,先将请求端发送的初始语音信息发送至翻译模组,翻译模组将所述初始语音信息翻译为目标语音信息,或者将所述初始语音信息翻译并转换成目标文字信息后发送至所述通信终端。When the language parameters are inconsistent, the initial voice information sent by the requester is first sent to the translation module, and the translation module translates the initial voice information into target voice information, or translates and converts the initial voice information into target text information and then sent to the communication terminal.
所述通信终端在接收到到翻译模组发送的所述目标文字信息和/或目标语音信息时,输出目标文字信息和/或目标语音信息。The communication terminal outputs the target text information and/or the target voice information when receiving the target text information and/or the target voice information sent by the translation module.
可以理解的是,在语言参数不一致时,通信终端也可以先将所述请求端的发送的初始语音信息接入人工翻译输入线路。并从人工翻译输出线路接受翻译后的目标文字信息和/或目标语音信息,并输出目标文字信息和/或目标语音信息。It can be understood that, when the language parameters are inconsistent, the communication terminal may first connect the initial voice information sent by the requesting terminal to the input line for manual translation. And receive the translated target text information and/or target voice information from the artificial translation output line, and output the target text information and/or target voice information.
在本实施例公开的技术方案中,可以根据通话请求确定是否需要对当前通话进行翻译,这样达成了提高通话翻译的准确性的效果。In the technical solution disclosed in this embodiment, whether the current call needs to be translated can be determined according to the call request, which achieves the effect of improving the accuracy of the call translation.
此外,本发明实施例还提出一种通信终端,所述通信终端包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的语音翻译程序,所述语音翻译程序被所述处理器执行时实现如上各个实施例所述的语音翻译方法的步骤。In addition, an embodiment of the present invention also provides a communication terminal, the communication terminal includes a memory, a processor, and a voice translation program stored on the memory and executable on the processor, the voice translation program being When the processor is executed, the steps of implementing the speech translation methods described in the above embodiments are described.
此外,本发明实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有语音翻译程序,所述语音翻译程序被处理器执行时实现如上各个实施例所述的语音翻译方法的步骤。In addition, an embodiment of the present invention also provides a computer-readable storage medium, where a voice translation program is stored on the computer-readable storage medium, and when the voice translation program is executed by a processor, the voice translation described in the above embodiments is implemented steps of the method.
此外,本发明实施例还提出一种通信系统,所述通信系统包括至少两个通信终端。所述至少两个通信终端之间可以建立通话连接。使得每一通信终端均可以接收其它通信终端发送的语音信息。In addition, an embodiment of the present invention also provides a communication system, where the communication system includes at least two communication terminals. A call connection can be established between the at least two communication terminals. Each communication terminal can receive the voice information sent by other communication terminals.
所述通信系统还包括翻译模组,所述翻译模组与所述通信系统中的至少一个通信终端通信连接。任一与翻译模组通信连接的通信终端均可以向翻译模组发送语音信息,并接收翻译模组通过翻译所述语音信息得到的目标语音信息。The communication system further includes a translation module, which is communicatively connected to at least one communication terminal in the communication system. Any communication terminal communicatively connected to the translation module can send voice information to the translation module, and receive target voice information obtained by the translation module by translating the voice information.
可以理解的是,当所述翻译模组设置于服务器中时,每一与服务器通信连接的通信终端,仅会接收到所述服务器根据其自身发送的语音信息翻译得到的目标语音信息。其中,服务器可以识别同的通信终端。It can be understood that when the translation module is installed in the server, each communication terminal connected to the server will only receive the target voice information translated by the server according to the voice information sent by itself. Wherein, the server can identify the same communication terminal.
可选地,所述通信系统包括翻译模组及至少两个通信终端,其中,所述翻译模组与每一所述通信终端之间均通信连接,以使所述翻译模组与所述通信终端之间实现数据交互。Optionally, the communication system includes a translation module and at least two communication terminals, wherein the translation module and each of the communication terminals are communicatively connected, so that the translation module and the communication Data exchange between terminals.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or system comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or system. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system that includes the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是智能手机、平板电脑及PC机等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on such understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM) as described above. , a magnetic disk, an optical disk), including several instructions to make a terminal device (which may be a smart phone, a tablet computer, a PC, etc.) execute the methods described in the various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in other related technical fields , are similarly included in the scope of patent protection of the present invention.
Claims (19)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910767374.9A CN110472254A (en) | 2019-08-16 | 2019-08-16 | Voice translation method, communication terminal and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910767374.9A CN110472254A (en) | 2019-08-16 | 2019-08-16 | Voice translation method, communication terminal and computer readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN110472254A true CN110472254A (en) | 2019-11-19 |
Family
ID=68511087
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910767374.9A Pending CN110472254A (en) | 2019-08-16 | 2019-08-16 | Voice translation method, communication terminal and computer readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110472254A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111245460A (en) * | 2020-03-25 | 2020-06-05 | 广州锐格信息技术科技有限公司 | Wireless interphone with artificial intelligence translation |
| CN114625336A (en) * | 2022-03-10 | 2022-06-14 | 北京小米移动软件有限公司 | Call method, device, terminal device and storage medium |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101115245A (en) * | 2006-07-25 | 2008-01-30 | 陈修志 | Mobile terminal with speech recognition and translating function |
| CN101373592A (en) * | 2007-08-21 | 2009-02-25 | 株式会社东芝 | Speech translation device and method |
| CN101770463A (en) * | 2008-12-30 | 2010-07-07 | 英业达股份有限公司 | Electronic device and method for searching and translating by voice input |
| CN101867632A (en) * | 2009-06-12 | 2010-10-20 | 刘越 | Mobile phone speech instant translation system and method |
| CN105427686A (en) * | 2014-09-16 | 2016-03-23 | 卡西欧计算机株式会社 | Voice learning device and voice learning method |
| CN107465816A (en) * | 2017-07-25 | 2017-12-12 | 广西定能电子科技有限公司 | A kind of call terminal and method of instant original voice translation of conversing |
| CN107515862A (en) * | 2017-09-01 | 2017-12-26 | 北京百度网讯科技有限公司 | Speech translation method, device and server |
| CN107943796A (en) * | 2017-11-17 | 2018-04-20 | 珠海市魅族科技有限公司 | A kind of interpretation method and device, terminal, readable storage medium storing program for executing |
| CN108920471A (en) * | 2018-06-29 | 2018-11-30 | 联想(北京)有限公司 | A kind of voice translation method and electronic equipment |
| CN109151789A (en) * | 2018-09-30 | 2019-01-04 | Oppo广东移动通信有限公司 | Interpretation method, device, system and bluetooth headset |
-
2019
- 2019-08-16 CN CN201910767374.9A patent/CN110472254A/en active Pending
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101115245A (en) * | 2006-07-25 | 2008-01-30 | 陈修志 | Mobile terminal with speech recognition and translating function |
| CN101373592A (en) * | 2007-08-21 | 2009-02-25 | 株式会社东芝 | Speech translation device and method |
| CN101770463A (en) * | 2008-12-30 | 2010-07-07 | 英业达股份有限公司 | Electronic device and method for searching and translating by voice input |
| CN101867632A (en) * | 2009-06-12 | 2010-10-20 | 刘越 | Mobile phone speech instant translation system and method |
| CN105427686A (en) * | 2014-09-16 | 2016-03-23 | 卡西欧计算机株式会社 | Voice learning device and voice learning method |
| CN107465816A (en) * | 2017-07-25 | 2017-12-12 | 广西定能电子科技有限公司 | A kind of call terminal and method of instant original voice translation of conversing |
| CN107515862A (en) * | 2017-09-01 | 2017-12-26 | 北京百度网讯科技有限公司 | Speech translation method, device and server |
| CN107943796A (en) * | 2017-11-17 | 2018-04-20 | 珠海市魅族科技有限公司 | A kind of interpretation method and device, terminal, readable storage medium storing program for executing |
| CN108920471A (en) * | 2018-06-29 | 2018-11-30 | 联想(北京)有限公司 | A kind of voice translation method and electronic equipment |
| CN109151789A (en) * | 2018-09-30 | 2019-01-04 | Oppo广东移动通信有限公司 | Interpretation method, device, system and bluetooth headset |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111245460A (en) * | 2020-03-25 | 2020-06-05 | 广州锐格信息技术科技有限公司 | Wireless interphone with artificial intelligence translation |
| CN114625336A (en) * | 2022-03-10 | 2022-06-14 | 北京小米移动软件有限公司 | Call method, device, terminal device and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10165225B2 (en) | Video endpoints and related methods for transmitting stored text to other video endpoints | |
| CN100478923C (en) | System and method for concurrent multimodal communication session persistence | |
| JP5089683B2 (en) | Language translation service for text message communication | |
| WO2021135604A1 (en) | Voice control method and apparatus, server, terminal device, and storage medium | |
| CN113438355B (en) | Communication method, device, equipment and storage medium based on cloud mobile phone | |
| US11379183B2 (en) | System and method for providing a response to a user query using a visual assistant | |
| CN110519810B (en) | Service relay switching method, terminal equipment, storage medium and device | |
| CN112201238A (en) | Method, device and related equipment for processing voice data in intelligent question answering | |
| US9112969B2 (en) | Apparatus and method for audio data processing | |
| WO2024160041A1 (en) | Multi-modal conversation method and apparatus, and device and storage medium | |
| CN103177724A (en) | Method, device and terminal for text operating controlled by voice | |
| WO2021077659A1 (en) | Method for real-time translation in information exchange, medium, and terminal | |
| US9875238B2 (en) | Systems and methods for establishing a language translation setting for a telephony communication | |
| CN110472254A (en) | Voice translation method, communication terminal and computer readable storage medium | |
| CN106789561B (en) | Terminal physical address binding method and system based on intranet service platform | |
| WO2016150333A1 (en) | Method and system for realizing intercommunication of voice mailbox system and syncretic communication systems | |
| US9277051B2 (en) | Service server apparatus, service providing method, and service providing program | |
| CN108810187A (en) | A kind of network system for docking voice service by block chain | |
| KR20190048297A (en) | Conference system and method for switching connection terminal thereof | |
| CN116996619A (en) | Voice service navigation method, device, equipment and storage medium | |
| JP6669374B1 (en) | Setting device, setting method and setting program | |
| CN111274828B (en) | Language translation method, system, computer program and handheld terminal based on message leaving | |
| KR102341022B1 (en) | Conference system and method for handling conference connection thereof | |
| JP7549170B1 (en) | Call support device, call support method, and call support program | |
| CN112530435A (en) | Data transmission method, device and system, readable storage medium and electronic equipment |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191119 |