[go: up one dir, main page]

CN108055406B - Communication message interaction method and mobile terminal - Google Patents

Communication message interaction method and mobile terminal Download PDF

Info

Publication number
CN108055406B
CN108055406B CN201711446445.2A CN201711446445A CN108055406B CN 108055406 B CN108055406 B CN 108055406B CN 201711446445 A CN201711446445 A CN 201711446445A CN 108055406 B CN108055406 B CN 108055406B
Authority
CN
China
Prior art keywords
mobile terminal
microphone
communication message
message
preset
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
Application number
CN201711446445.2A
Other languages
Chinese (zh)
Other versions
CN108055406A (en
Inventor
解文静
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201711446445.2A priority Critical patent/CN108055406B/en
Publication of CN108055406A publication Critical patent/CN108055406A/en
Application granted granted Critical
Publication of CN108055406B publication Critical patent/CN108055406B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computing Systems (AREA)
  • Environmental & Geological Engineering (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明涉及电子设备技术领域,具体涉及一种通信消息的交互方法及移动终端,包括:第一移动终端接收并判断第二移动终端发送的通信消息是否为即时互动消息,该通信消息至少包括语音消息,并且在判断结果为是时检测麦克风是否处于持握状态,当检测结果为是时,第一移动终端向麦克风发送通信消息,以触发麦克风播放该通信消息。可见,实施本发明实施例,能够提高交互的便捷性。

Figure 201711446445

The present invention relates to the technical field of electronic devices, and in particular to a communication message interaction method and a mobile terminal, comprising: a first mobile terminal receives and determines whether a communication message sent by a second mobile terminal is an instant interactive message, the communication message at least includes a voice message, and when the judgment result is yes, detects whether a microphone is in a holding state, and when the detection result is yes, the first mobile terminal sends a communication message to the microphone to trigger the microphone to play the communication message. It can be seen that the implementation of the embodiments of the present invention can improve the convenience of interaction.

Figure 201711446445

Description

一种通信消息的交互方法及移动终端A kind of communication message interaction method and mobile terminal

技术领域technical field

本发明涉及电子设备技术领域,具体涉及一种通信消息的交互方法及移动终端。The present invention relates to the technical field of electronic devices, and in particular, to a communication message interaction method and a mobile terminal.

背景技术Background technique

随着各种移动终端的不断普及,很多家长可以选择通过移动终端与孩子进行语音会话。在语音会话过程中,家长通常将语音消息发送到孩子的移动终端上,如果此时孩子正在使用与该移动终端相关联的麦克风设备,那么孩子往往需要先放下麦克风设备,然后拿起移动终端打开语音会话界面,继而再点击播放该语音消息,整个语音消息的交互过程繁琐,降低了交互便捷性。With the continuous popularization of various mobile terminals, many parents can choose to conduct voice conversations with their children through mobile terminals. During the voice conversation, parents usually send voice messages to the child's mobile terminal. If the child is using the microphone device associated with the mobile terminal at this time, the child often needs to put down the microphone device first, and then pick up the mobile terminal to open it. The voice conversation interface, and then click to play the voice message, the interaction process of the entire voice message is cumbersome, which reduces the convenience of interaction.

发明内容SUMMARY OF THE INVENTION

本发明实施例公开一种通信消息的交互方法及移动终端,能够简化通信消息的交互过程,提高了交互的便捷性。The embodiments of the present invention disclose a communication message interaction method and a mobile terminal, which can simplify the communication message interaction process and improve the convenience of interaction.

本发明实施例第一方面公开一种通信消息的交互方法,所述方法包括:A first aspect of the embodiments of the present invention discloses a communication message interaction method, and the method includes:

第一移动终端接收第二移动终端发送的通信消息,并判断所述通信消息是否为即时互动消息,所述通信消息至少包括语音消息;The first mobile terminal receives the communication message sent by the second mobile terminal, and determines whether the communication message is an instant interactive message, and the communication message at least includes a voice message;

当判断结果为是时,所述第一移动终端检测麦克风是否处于持握状态,所述麦克风是预先通过有线连接方式或无线连接方式与所述第一移动终端连接的;When the judgment result is yes, the first mobile terminal detects whether the microphone is in a holding state, and the microphone is pre-connected to the first mobile terminal through a wired connection or a wireless connection;

当检测结果为是时,所述第一移动终端向所述麦克风发送所述通信消息,以触发所述麦克风播放所述通信消息。When the detection result is yes, the first mobile terminal sends the communication message to the microphone to trigger the microphone to play the communication message.

作为一种可选的实施方式,在本发明实施例第一方面中,所述方法还包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, the method further includes:

如果所述第一移动终端检测到所述麦克风处于持握状态,则所述第一移动终端获取所述麦克风采集的当前环境的声音信号;If the first mobile terminal detects that the microphone is in a holding state, the first mobile terminal acquires the sound signal of the current environment collected by the microphone;

所述第一移动终端分析所述当前环境的声音信号,得到所述当前环境的噪声强度值;The first mobile terminal analyzes the sound signal of the current environment to obtain a noise intensity value of the current environment;

所述第一移动终端根据所述噪声强度值向所述麦克风发送音量调节指令,并执行所述的向所述麦克风发送所述通信消息,以触发所述麦克风播放所述通信消息,所述音量调节指令用于调节所述麦克风播放所述通信消息的播放音量。The first mobile terminal sends a volume adjustment instruction to the microphone according to the noise intensity value, and executes the sending of the communication message to the microphone, so as to trigger the microphone to play the communication message, and the volume The adjustment instruction is used to adjust the playback volume of the communication message played by the microphone.

作为一种可选的实施方式,在本发明实施例第一方面中,所述第一移动终端向所述麦克风发送所述通信消息,以触发所述麦克风播放所述通信消息之后,所述方法还包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the first mobile terminal sends the communication message to the microphone to trigger the microphone to play the communication message, the method Also includes:

所述第一移动终端接收所述麦克风采集的针对所述通信消息的回复消息;receiving, by the first mobile terminal, a reply message for the communication message collected by the microphone;

所述第一移动终端对所述回复消息进行端点检测,得到至少一个语音段;The first mobile terminal performs endpoint detection on the reply message to obtain at least one speech segment;

所述第一移动终端对每个所述语音段进行语音识别,得到每个所述语音段的识别文本;The first mobile terminal performs speech recognition on each of the speech segments to obtain the recognized text of each of the speech segments;

所述第一移动终端根据每个所述语音段的识别文本,从所有所述语音段中确定关键语音段;The first mobile terminal determines a key speech segment from all the speech segments according to the recognized text of each of the speech segments;

所述第一移动终端将所述关键语音段发送给所述第二移动终端。The first mobile terminal sends the key speech segment to the second mobile terminal.

作为一种可选的实施方式,在本发明实施例第一方面中,所述第一移动终端检测麦克风是否处于持握状态,包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, the first mobile terminal detects whether the microphone is in a holding state, including:

所述第一移动终端获取麦克风的倾斜角角度;The first mobile terminal obtains the tilt angle of the microphone;

所述第一移动终端判断所述麦克风的倾斜角角度是否大于预设角度,当判断结果为是时,确定所述麦克风处于持握状态。The first mobile terminal determines whether the inclination angle of the microphone is greater than a preset angle, and when the determination result is yes, it is determined that the microphone is in a holding state.

作为一种可选的实施方式,在本发明实施例第一方面中,所述第一移动终端判断所述通信消息是否为即时互动消息,包括:As an optional implementation manner, in the first aspect of the embodiment of the present invention, the first mobile terminal determines whether the communication message is an instant interactive message, including:

所述第一移动终端获取所述通信消息的接收时间;obtaining, by the first mobile terminal, the reception time of the communication message;

所述第一移动终端获取所述第一移动终端与所述第二移动终端的联系状态信息,并根据所述联系状态信息计算所述第二移动终端的权重值;acquiring, by the first mobile terminal, contact state information between the first mobile terminal and the second mobile terminal, and calculating a weight value of the second mobile terminal according to the contact state information;

所述第一移动终端判断当前时间与所述接收时间的时间差是否小于预设时间差,以及所述第二移动终端的权重值是否高于预设权重值;The first mobile terminal determines whether the time difference between the current time and the receiving time is less than a preset time difference, and whether the weight value of the second mobile terminal is higher than the preset weight value;

当判断出所述时间差小于所述预设时间差且所述第二移动终端的权重值高于所述预设权重时,所述第一移动终端确定所述通信消息为即时互动消息。When judging that the time difference is smaller than the preset time difference and the weight value of the second mobile terminal is higher than the preset weight, the first mobile terminal determines that the communication message is an instant interactive message.

本发明实施例第二方面公开一种移动终端,包括:A second aspect of the embodiments of the present invention discloses a mobile terminal, including:

第一接收单元,用于接收第二移动终端发送的通信消息,所述通信消息至少包括语音消息;a first receiving unit, configured to receive a communication message sent by the second mobile terminal, where the communication message at least includes a voice message;

判断单元,用于判断所述通信消息是否为即时互动消息;a judging unit for judging whether the communication message is an instant interactive message;

第一检测单元,用于在所述判断单元判断出所述通信消息为所述即时互动消息时,检测麦克风是否处于持握状态,所述麦克风是预先通过有线连接方式或无线连接方式与所述第一移动终端连接的;The first detection unit is configured to detect whether the microphone is in a holding state when the determination unit determines that the communication message is the instant interactive message, and the microphone is pre-wired or wirelessly connected to the connected by the first mobile terminal;

第一发送单元,用于在所述第一检测单元检测出所述麦克风处于持握状态时,向所述麦克风发送所述通信消息,以触发所述麦克风播放所述通信消息。A first sending unit, configured to send the communication message to the microphone when the first detection unit detects that the microphone is in a holding state, so as to trigger the microphone to play the communication message.

作为一种可选的实施方式,在本发明实施例第二方面中,所述移动终端还包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the mobile terminal further includes:

获取单元,用于在所述第一检测单元检测出所述麦克风处于持握状态时,获取所述麦克风采集的当前环境的声音信号;an acquisition unit, configured to acquire the sound signal of the current environment collected by the microphone when the first detection unit detects that the microphone is in a holding state;

分析单元,用于分析所述当前环境的声音信号,得到所述当前环境的噪声强度值;an analysis unit, configured to analyze the sound signal of the current environment to obtain a noise intensity value of the current environment;

第二发送单元,用于根据所述噪声强度值向所述麦克风发送音量调节指令,所述音量调节指令用于调节所述麦克风播放所述通信消息的播放音量;a second sending unit, configured to send a volume adjustment instruction to the microphone according to the noise intensity value, where the volume adjustment instruction is used to adjust the playback volume of the communication message played by the microphone;

所述第一发送单元,具体用于在所述第一检测单元检测出所述麦克风处于持握状态时,以及在所述第二发送单元发送所述音量调节指令之后,向所述麦克风发送所述通信消息,以触发所述麦克风播放所述通信消息。The first sending unit is specifically configured to send the data to the microphone when the first detection unit detects that the microphone is in a holding state and after the second sending unit sends the volume adjustment instruction. the communication message to trigger the microphone to play the communication message.

作为一种可选的实施方式,在本发明实施例第二方面中,所述移动终端还包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the mobile terminal further includes:

第二接收单元,用于接收所述麦克风采集的针对所述通信消息的回复消息;a second receiving unit, configured to receive a reply message for the communication message collected by the microphone;

第二检测单元,用于对所述回复消息进行端点检测,得到至少一个语音段;a second detection unit, configured to perform endpoint detection on the reply message to obtain at least one speech segment;

识别单元,用于对每个所述语音段进行语音识别,得到每个所述语音段的识别文本;A recognition unit for performing speech recognition on each of the speech segments to obtain the recognized text of each of the speech segments;

确定单元,用于根据每个所述语音段的识别文本,从所有所述语音段中确定关键语音段;a determining unit for determining a key speech segment from all the speech segments according to the recognized text of each of the speech segments;

第三发送单元,用于将所述关键语音段发送给所述第二移动终端。A third sending unit, configured to send the key speech segment to the second mobile terminal.

作为一种可选的实施方式,在本发明实施例第二方面中,所述第一检测单元包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the first detection unit includes:

第一获取子单元,用于在所述判断单元判断出所述通信消息为所述即时互动消息时,获取麦克风的倾斜角角度;a first obtaining subunit, configured to obtain the tilt angle of the microphone when the judgment unit judges that the communication message is the instant interactive message;

第一判断子单元,用于在所述判断单元判断出所述通信消息为所述即时互动消息时,判断所述麦克风的倾斜角角度是否大于预设角度;a first judging subunit, configured to judge whether the inclination angle of the microphone is greater than a preset angle when the judging unit judges that the communication message is the instant interactive message;

第一确定子单元,用于在所述判断子单元判断出所述麦克风的倾斜角角度大于预设角度时,确定所述麦克风处于持握状态。The first determination subunit is configured to determine that the microphone is in a holding state when the determination subunit determines that the inclination angle of the microphone is greater than a preset angle.

作为一种可选的实施方式,在本发明实施例第二方面中,所述判断单元包括:As an optional implementation manner, in the second aspect of the embodiment of the present invention, the judging unit includes:

第二获取子单元,用于获取所述通信消息的接收时间,以及所述移动终端与所述第二移动终端的联系状态信息;a second acquiring subunit, configured to acquire the reception time of the communication message and the contact status information between the mobile terminal and the second mobile terminal;

计算子单元,用于根据所述联系状态信息计算所述第二移动终端的权重值;a calculation subunit, configured to calculate the weight value of the second mobile terminal according to the contact state information;

第二判断子单元,用于判断当前时间与所述接收时间的时间差是否小于预设时间差,以及所述第二移动终端的权重值是否高于预设权重值;a second judging subunit, configured to judge whether the time difference between the current time and the receiving time is less than a preset time difference, and whether the weight value of the second mobile terminal is higher than the preset weight value;

第二确定子单元,用于在所述第二判断子单元判断出所述时间差小于所述预设时间差且所述第二移动终端的权重值高于所述预设权重时,确定所述通信消息为即时互动消息。a second determination subunit, configured to determine the communication when the second determination subunit determines that the time difference is smaller than the preset time difference and the weight value of the second mobile terminal is higher than the preset weight The message is an instant interactive message.

本发明实施例第三方面公开一种移动终端,其特征在于,包括:A third aspect of the embodiments of the present invention discloses a mobile terminal, which is characterized by comprising:

存储有可执行程序代码的存储器;a memory in which executable program code is stored;

与所述存储器耦合的处理器;a processor coupled to the memory;

所述处理器调用所述存储器中存储的所述可执行程序代码,执行本发明实施例第一方面公开的所述通信消息的交互方法。The processor invokes the executable program code stored in the memory to execute the communication message interaction method disclosed in the first aspect of the embodiments of the present invention.

本发明实施例第四方面公开一种计算机可读存储介质,其特征在于,其存储计算机程序,所述计算机程序使得计算机执行本发明实施例第一方面公开的所述通信消息的交互方法。A fourth aspect of the embodiments of the present invention discloses a computer-readable storage medium, characterized in that it stores a computer program, and the computer program enables a computer to execute the communication message interaction method disclosed in the first aspect of the embodiments of the present invention.

与现有技术相比,本发明实施例具有以下有益效果:Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

本发明实施例中,第一移动终端接收并判断第二移动终端发送的通信消息是否为即时互动消息,该通信消息至少包括语音消息,并且在判断结果为是时检测麦克风是否处于持握状态,当检测结果为是时,第一移动终端向麦克风发送通信消息,以触发麦克风播放该通信消息。可见,本发明实施例,能够简化通信消息的交互过程,即第一移动终端的用户在使用麦克风的同时就能实现与第二移动终端的用户的通信消息的交互,与现有技术中第一移动终端的用户需要暂停麦克风的使用并通过第一移动终端才能实现与第二移动终端的通信消息的交互这一繁琐的交互过程相比,本发明实施例提高了交互的便捷性。In the embodiment of the present invention, the first mobile terminal receives and judges whether the communication message sent by the second mobile terminal is an instant interactive message, the communication message includes at least a voice message, and when the judgment result is yes, it detects whether the microphone is in a holding state, When the detection result is yes, the first mobile terminal sends a communication message to the microphone to trigger the microphone to play the communication message. It can be seen that the embodiment of the present invention can simplify the interaction process of communication messages, that is, the user of the first mobile terminal can interact with the communication message of the user of the second mobile terminal while using the microphone, which is different from the first mobile terminal in the prior art. Compared with the cumbersome interaction process that the user of the mobile terminal needs to suspend the use of the microphone and use the first mobile terminal to interact with the communication message of the second mobile terminal, the embodiment of the present invention improves the convenience of interaction.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the drawings required in the embodiments. 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 any creative effort.

图1是本发明实施例公开的一种通信消息的交互方法的流程示意图;1 is a schematic flowchart of a method for exchanging communication messages disclosed in an embodiment of the present invention;

图2是本发明实施例公开的另一种通信消息的交互方法的流程示意图;2 is a schematic flowchart of another communication message interaction method disclosed in an embodiment of the present invention;

图3是本发明实施例公开的又一种通信消息的交互方法的流程示意图;3 is a schematic flowchart of another communication message interaction method disclosed in an embodiment of the present invention;

图4是本发明实施例公开的一种移动终端的结构示意图;4 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present invention;

图5是本发明实施例公开的另一种移动终端的结构示意图;5 is a schematic structural diagram of another mobile terminal disclosed in an embodiment of the present invention;

图6是本发明实施例公开的又一种移动终端的结构示意图;6 is a schematic structural diagram of another mobile terminal disclosed in an embodiment of the present invention;

图7是本发明实施例公开的又一种移动终端的结构示意图。FIG. 7 is a schematic structural diagram of another mobile terminal disclosed in an 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 only a 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.

需要说明的是,本发明实施例及附图中的术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "comprising" and "having" and any modifications thereof in the embodiments of the present invention and the accompanying drawings are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.

本发明实施例公开一种通信消息的交互方法及移动终端,能够简化通信消息的交互过程,提高了交互的便捷性。以下分别进行详细说明。The embodiments of the present invention disclose a communication message interaction method and a mobile terminal, which can simplify the communication message interaction process and improve the convenience of interaction. Each of them will be described in detail below.

实施例一Example 1

请参阅图1,图1是本发明实施例公开的一种通信消息的交互方法的流程示意图。其中,图1所描述的通信消息的交互方法适用于家教机、学习手机、学习平板等各类移动终端,本发明实施例不做限定。其中,各类移动终端的操作系统可包括但不限于Android操作系统、IOS操作系统、Symbian(塞班)操作系统、Black Berry(黑莓)操作系统、WindowsPhone8操作系统等等,本发明实施例不做限定。如图1所示,该通信消息的交互方法可以包括以下操作:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a communication message interaction method disclosed in an embodiment of the present invention. The interaction method of communication messages described in FIG. 1 is applicable to various types of mobile terminals such as tutoring machines, learning mobile phones, and learning tablets, which are not limited in the embodiment of the present invention. The operating systems of various mobile terminals may include but are not limited to Android operating systems, IOS operating systems, Symbian (Symbian) operating systems, BlackBerry (Blackberry) operating systems, Windows Phone 8 operating systems, etc. limited. As shown in FIG. 1, the interaction method of the communication message may include the following operations:

101、第一移动终端接收第二移动终端发送的通信消息。101. A first mobile terminal receives a communication message sent by a second mobile terminal.

本发明实施例中,通信消息至少可以包括语音消息。第一移动终端以及第二移动终端可以是具有通信功能的电子设备,如智能平板电脑、手机或者家教机等,本发明实施例不做限定。In this embodiment of the present invention, the communication message may include at least a voice message. The first mobile terminal and the second mobile terminal may be electronic devices with a communication function, such as a smart tablet computer, a mobile phone, or a tutoring machine, which is not limited in this embodiment of the present invention.

举例来说,第一移动终端可以是孩子使用的家教机,第二移动终端可以是家长使用的手机,家长可以通过手机的APP向孩子的家教机发送语音消息,与孩子进行语音会话。优选的,在家长通过手机APP向孩子的家教机发送语音消息之前,还可以根据孩子的家教机的唯一序列号将手机与家教机进行绑定,以建立与家教机的合法的通信连接。可见,本发明实施例,可以通过建立移动终端之间合法的通信连接,实现移动终端之间通信消息的快速、安全交互。For example, the first mobile terminal may be a tutoring machine used by a child, and the second mobile terminal may be a mobile phone used by a parent. The parent may send a voice message to the child's tutoring machine through an APP of the mobile phone to conduct a voice conversation with the child. Preferably, before the parent sends a voice message to the child's home-teaching machine through the mobile phone APP, the mobile phone and the home-teaching machine can be bound according to the unique serial number of the child's home-teaching machine to establish a legal communication connection with the home-teaching machine. It can be seen that, in this embodiment of the present invention, by establishing a legal communication connection between mobile terminals, fast and safe interaction of communication messages between mobile terminals can be realized.

102、第一移动终端判断通信消息是否为即时互动消息,当判断结果为是时,执行步骤103,反之,结束本流程。102. The first mobile terminal determines whether the communication message is an instant interactive message, and when the determination result is yes, executes step 103, otherwise, ends the process.

本发明实施例中,第一移动终端可以接收包括第二移动终端在内的至少一个与该第一移动终端建立合法通信连接的移动设备发送的至少一条通信消息,其中,通信消息可以包括但不限于语音消息、文本消息以及图片消息一种或多种。In this embodiment of the present invention, the first mobile terminal may receive at least one communication message sent by at least one mobile device including the second mobile terminal that has established a legal communication connection with the first mobile terminal, where the communication message may include but not Limited to one or more of voice messages, text messages, and picture messages.

作为一种可选的实施方式,第一移动终端判断通信消息是否为即时互动消息,可以包括:As an optional implementation manner, determining whether the communication message is an instant interactive message by the first mobile terminal may include:

第一移动终端获取该通信消息的接收时间;The first mobile terminal obtains the reception time of the communication message;

第一移动终端获取第一移动终端与第二移动终端的联系状态信息,并根据该联系状态信息计算第二移动终端的权重值;The first mobile terminal acquires the contact state information between the first mobile terminal and the second mobile terminal, and calculates the weight value of the second mobile terminal according to the contact state information;

第一移动终端判断当前时间与接收时间的时间差是否小于预设时间差,以及第二移动终端的权重值是否高于预设权重值;The first mobile terminal determines whether the time difference between the current time and the receiving time is less than the preset time difference, and whether the weight value of the second mobile terminal is higher than the preset weight value;

当判断出时间差小于预设时间差且第二移动终端的权重值高于预设权重时,第一移动终端确定该通信消息为即时互动消息。When it is determined that the time difference is smaller than the preset time difference and the weight value of the second mobile terminal is higher than the preset weight, the first mobile terminal determines that the communication message is an instant interactive message.

本发明实施例中,第一移动终端接收到的通信消息中包含该通信消息的时间信息,第一移动终端可以通过该时间信息获取该通信消息的接收时间;此外,第一移动终端还可以获取第一移动终端与第二移动终端的联系状态信息,其中,该联系状态信息可以包括多个预设参数,如第一移动终端与第二移动终端的联系次数、联系的时间段以及最后一次联系的时间等,每个预设参数均根据实际情况赋予相应的子权重值,而第二移动终端的权重值可以等于联系状态信息中各个预设参数的子权重值之和;第一移动终端可以计算接收到通信消息的接收时间与当前时间的差值(时间差),并且第一移动终端上预先设置有预设时间差,用于判断计算接收到通信消息的接收时间与当前时间的差值(时间差)是否小于预设时间差,此外,第一移动终端可以判断由第二移动终端的状态联系信息中各个预设参数的子权重值之和得到的权重值是否高于预设权重值;当第一移动终端判断出差值(时间差)小于预设时间差时,说明该通信消息为即时消息,以及,当第一移动终端判断出第二移动终端的权重值大于预设权重值时,说明该通信消息是互动消息,进一步地,说明发送该通信消息的移动设备的用户为第一移动终端用户的重要联系人,所以只有当上述两个判断的结果均为是时,第一移动终端可以确定该通信消息为即时互动消息。可见,本发明实施例,通过判断通信消息的即时性和互动性这两个方面是否满足预设条件,对通信消息进行筛选,从而提高了获取通信消息的针对性,改善了用户体验。In this embodiment of the present invention, the communication message received by the first mobile terminal includes time information of the communication message, and the first mobile terminal can obtain the reception time of the communication message through the time information; in addition, the first mobile terminal can also obtain the time information of the communication message. Contact status information between the first mobile terminal and the second mobile terminal, where the contact status information may include multiple preset parameters, such as the number of contacts between the first mobile terminal and the second mobile terminal, the contact time period, and the last contact time, etc., each preset parameter is assigned a corresponding sub-weight value according to the actual situation, and the weight value of the second mobile terminal may be equal to the sum of the sub-weight values of each preset parameter in the contact status information; the first mobile terminal may Calculate the difference (time difference) between the reception time of the received communication message and the current time, and the first mobile terminal is preset with a preset time difference, for judging and calculating the difference between the reception time of the received communication message and the current time (time difference) ) is less than the preset time difference, in addition, the first mobile terminal can judge whether the weight value obtained by the sum of the sub-weight values of each preset parameter in the state contact information of the second mobile terminal is higher than the preset weight value; When the mobile terminal determines that the difference value (time difference) is smaller than the preset time difference, it indicates that the communication message is an instant message, and when the first mobile terminal determines that the weight value of the second mobile terminal is greater than the preset weight value, it indicates that the communication message is an instant message. It is an interactive message. Further, it is explained that the user of the mobile device sending the communication message is an important contact of the user of the first mobile terminal, so only when the results of the above two judgments are both yes, the first mobile terminal can determine the communication The message is an instant interactive message. It can be seen that the embodiments of the present invention screen the communication messages by judging whether the immediacy and interactivity of the communication messages meet the preset conditions, thereby improving the pertinence of acquiring the communication messages and improving the user experience.

举例来说,联系状态信息可以包括第一移动终端与第二移动终端的联系次数、联系的时间段以及最后一次联系的时间这三个预设参数,其中,对于第一移动终端与第二移动终端的联系次数这一预设参数来说,联系的次数小于五次时,对应的子权重值为1;联系的次数大于等于五次并且小于等于十五次时,对应的子权重值为2;联系的次数大于十五次时,对应的子权重值为3。对于联系的时间段这一预设参数来说,联系的时间段在上午六点到上午九点之间时,对应的子权重值为1;联系的时间段在上午九点到晚上九点之间时,对应的子权重值为2;联系的时间段在晚上九点到次日上午六点之间时,对应的子权重值为3。对于最后一次联系的时间这一预设参数来说,最后一次联系的时间在一个月以上,对应的子权重值为1;最后一次联系的时间在一个月以内,对应的子权重值为2;最后一次联系的时间在24小时之内,对应的子权重值为3。权重值等于上述第一移动终端与第二移动终端的联系次数、联系的时间段以及最后一次联系的时间这三个预设参数对应的子权重值之和。本发明实施例中,预设权重值可以是5,第二移动终端的权重值可以是8,本发明不做限定,此时第二移动终端的权重值大于预设权重值,可以判断出该通信消息为互动消息。For example, the contact state information may include three preset parameters, the number of times of contact between the first mobile terminal and the second mobile terminal, the time period of contact, and the time of the last contact. For the preset parameter of the number of contacts of the terminal, when the number of contacts is less than five times, the corresponding sub-weight value is 1; when the number of contacts is greater than or equal to five times and less than or equal to fifteen times, the corresponding sub-weight value is 2 ; When the number of contacts is greater than fifteen times, the corresponding sub-weight value is 3. For the preset parameter of the contact time period, when the contact time period is between 6:00 am and 9:00 am, the corresponding sub-weight value is 1; the contact time period is between 9:00 am and 9:00 pm The corresponding sub-weight value is 2; when the contact time period is between 9:00 pm and 6:00 am the next day, the corresponding sub-weight value is 3. For the preset parameter of the last contact time, if the last contact time is more than one month, the corresponding sub-weight value is 1; if the last contact time is within one month, the corresponding sub-weight value is 2; The time of the last contact is within 24 hours, and the corresponding sub-weight value is 3. The weight value is equal to the sum of the sub-weight values corresponding to the three preset parameters of the number of times of contact between the first mobile terminal and the second mobile terminal, the time period of the contact, and the time of the last contact. In this embodiment of the present invention, the preset weight value may be 5, and the weight value of the second mobile terminal may be 8, which is not limited in the present invention. In this case, the weight value of the second mobile terminal is greater than the preset weight value, and it can be determined that the Communication messages are interactive messages.

需要说明的是,预设时间差以及预设权重值可以根据实际需要进行更改设置,例如,可以由第一移动终端的用户主动触发,也可以每隔预设时间进行调整。It should be noted that the preset time difference and the preset weight value can be changed and set according to actual needs, for example, can be actively triggered by the user of the first mobile terminal, or can be adjusted every preset time.

103、第一移动终端检测麦克风是否处于持握状态,当检测结果为是时,执行步骤104,反之,结束本流程。103. The first mobile terminal detects whether the microphone is in a holding state. When the detection result is yes, step 104 is performed; otherwise, the process ends.

需要说明的是,该麦克风是预先通过有线连接方式或无线连接方式与第一移动终端连接的。It should be noted that the microphone is pre-connected to the first mobile terminal through a wired connection or a wireless connection.

在本发明实施例中,第一移动终端可以通过检测麦克风是否处于持握状态来判断此时麦克风是否处于正在使用的状态。In this embodiment of the present invention, the first mobile terminal may determine whether the microphone is in use at this time by detecting whether the microphone is in a holding state.

作为一种可选的实施方式,第一移动终端检测麦克风是否处于持握状态的具体方式可以为:第一移动终端向该麦克风发送检测指令,该检测指令用于触发麦克风控制其内置的红外传感器获取当前麦克风的温度值;第一移动终端接收麦克风针对检测指令返回的温度值,并判断该温度值是否在预设温度值范围内,如果该温度值不在预设温度值范围内,则可以确定此时麦克风处于持握状态。As an optional implementation manner, the specific manner in which the first mobile terminal detects whether the microphone is in a holding state may be as follows: the first mobile terminal sends a detection instruction to the microphone, and the detection instruction is used to trigger the microphone to control its built-in infrared sensor Obtain the temperature value of the current microphone; the first mobile terminal receives the temperature value returned by the microphone for the detection instruction, and determines whether the temperature value is within the preset temperature value range, and if the temperature value is not within the preset temperature value range, it can be determined The microphone is held at this time.

作为另一种可选的实施方式,第一移动终端检测麦克风是否处于持握状态的具体方式可以为:第一移动终端向该麦克风发送检测指令,该检测指令用于触发麦克风控制其内置的压力传感器获取当前麦克风的压力值;第一移动终端接收麦克风针对检测指令返回的压力值,并判断该压力值是否在预设压力值范围内,如果该压力值在预设压力值范围内,则可以确定此时麦克风处于持握状态。As another optional implementation manner, the specific manner in which the first mobile terminal detects whether the microphone is in a holding state may be as follows: the first mobile terminal sends a detection instruction to the microphone, where the detection instruction is used to trigger the microphone to control its built-in pressure The sensor obtains the pressure value of the current microphone; the first mobile terminal receives the pressure value returned by the microphone for the detection instruction, and judges whether the pressure value is within the preset pressure value range, and if the pressure value is within the preset pressure value range, it can be Make sure the microphone is held at this time.

作为又一种可选的实施方式,第一移动终端检测麦克风是否处于持握状态的具体方式可以为:第一移动终端获取指定时长内麦克风的信号能量,并判断该信号能量是否大于纹波噪声对应的能量值,如果该信号能量大于纹波噪声对应的能量值,则可以确定此时麦克风处于持握状态。As another optional implementation manner, the first mobile terminal detects whether the microphone is in a holding state. The corresponding energy value, if the signal energy is greater than the energy value corresponding to the ripple noise, it can be determined that the microphone is in a holding state at this time.

可见,本发明实施例,可以通过多种方式灵活地获取麦克风当前的状态,并在判断出麦克风处于持握状态时,执行步骤104,而在判断出麦克风不处于持握状态即停用状态时,结束本流程,避免了第一移动终端在麦克风处于停用状态时向其发送通信消息,从而降低了第一移动终端的功耗。It can be seen that in this embodiment of the present invention, the current state of the microphone can be flexibly acquired in various ways, and when it is determined that the microphone is in the holding state, step 104 is executed, and when it is determined that the microphone is not in the holding state, that is, the disabled state , ending the process, avoiding the first mobile terminal from sending a communication message to the microphone when the microphone is in a deactivated state, thereby reducing the power consumption of the first mobile terminal.

104、第一移动终端向麦克风发送通信消息,以触发麦克风播放该通信消息。104. The first mobile terminal sends a communication message to the microphone to trigger the microphone to play the communication message.

本发明实施例中,第一移动终端在检测出麦克风处于持握状态之后,向该麦克风发送通信消息,以触发该麦克风启动自带的音频播放设备播放该通信消息,特别地,第一移动终端可以向麦克风发送多个通信消息,麦克风可以按照接收到通信消息的时间顺序播放通信消息。In this embodiment of the present invention, after detecting that the microphone is in a holding state, the first mobile terminal sends a communication message to the microphone to trigger the microphone to start the built-in audio playback device to play the communication message. In particular, the first mobile terminal sends a communication message to the microphone. Multiple communication messages can be sent to the microphone, and the microphone can play the communication messages in chronological order in which they are received.

可见,实施图1所描述的通信消息的交互方法,可以通过建立移动终端之间合法的通信连接,实现移动终端之间通信消息的快速、安全交互;可以通过判断通信消息的即时性和互动性这两个方面是否满足预设条件,对通信消息进行筛选,从而提高了获取通信消息的针对性,改善了用户体验;还可以避免了第一移动终端在麦克风处于停用状态时向其发送通信消息,从而降低了第一移动终端的功耗。It can be seen that, by implementing the method for interacting communication messages described in FIG. 1 , a legal communication connection between mobile terminals can be established to realize fast and safe interaction of communication messages between mobile terminals; the immediacy and interactivity of communication messages can be judged by Whether these two aspects meet the preset conditions, the communication messages are screened, thereby improving the pertinence of acquiring the communication messages and improving the user experience; it can also prevent the first mobile terminal from sending a communication to the microphone when the microphone is in a deactivated state. message, thereby reducing the power consumption of the first mobile terminal.

此外,实施图1所描述的通信消息的交互方法,举例来说,第一移动终端可以是孩子使用的家教机,第二移动终端可以是家长使用的手机,其中,麦克风可以与家教机通过蓝牙进行关联,当家长通过手机端的APP向孩子的家教机发送语音消息时,一旦家教机判断出该语音消息为即时互动消息以及检测到麦克风处于持握状态,立即向麦克风发送该语音消息,以使麦克风播放该语音消息,从而避免了孩子放下麦克风返回家教机操作并获取语音消息的不便,提高了家教机与麦克风配合使用的便捷性,保证家长与孩子亲子互动的及时性、便捷性。In addition, to implement the interaction method of communication messages described in FIG. 1 , for example, the first mobile terminal may be a tutoring machine used by children, and the second mobile terminal may be a mobile phone used by parents, wherein the microphone can communicate with the tutoring machine through Bluetooth When the parent sends a voice message to the child's tutoring machine through the APP on the mobile phone, once the tutoring machine determines that the voice message is an instant interactive message and detects that the microphone is in a holding state, it immediately sends the voice message to the microphone, so that the The microphone plays the voice message, thereby avoiding the inconvenience of the child putting down the microphone and returning to the tutoring machine to operate and obtain the voice message, improving the convenience of using the tutoring machine and the microphone together, and ensuring the timeliness and convenience of parent-child interaction between parents and children.

实施例二Embodiment 2

请参阅图2,图2是本发明实施例公开的另一种通信消息的交互方法的流程示意图。如图2所示,该通信消息的交互方法可以包括以下步骤:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of another communication message interaction method disclosed in an embodiment of the present invention. As shown in FIG. 2, the interaction method of the communication message may include the following steps:

在本发明实施例中,该应通信消息的交互方法还包括步骤201~204,针对步骤201~204的描述,请参照实施例一中针对步骤101~104的详细描述,本发明实施例不再赘述。In this embodiment of the present invention, the method for interacting with a communication message further includes steps 201 to 204. For the description of steps 201 to 204, please refer to the detailed description of steps 101 to 104 in Embodiment 1, and this embodiment of the present invention does not Repeat.

205、第一移动终端接收麦克风采集的针对通信消息的回复消息。205. The first mobile terminal receives a reply message for the communication message collected by the microphone.

206、第一移动终端对上述回复消息进行端点检测,得到至少一个语音段。206. The first mobile terminal performs endpoint detection on the reply message to obtain at least one speech segment.

本发明实施例中,端点检测的方式可以是基于短时能量和短时平均过零率的端点检测、基于倒谱特征的端点检测、基于熵的端点检测等,本发明不做限定。由于上述回复消息是麦克风采集的语音信号,那么第一移动终端对上述回复消息进行端点检测,可以准确地从该回复消息中确定出语音的起始点和终止点、区分出语音和非语音信号,能够降低该回复消息中无声段或者噪声段的干扰。In this embodiment of the present invention, the method of endpoint detection may be endpoint detection based on short-term energy and short-term average zero-crossing rate, endpoint detection based on cepstral features, endpoint detection based on entropy, etc., which is not limited in the present invention. Since the above-mentioned reply message is a voice signal collected by a microphone, the first mobile terminal performs endpoint detection on the above-mentioned reply message, and can accurately determine the starting point and the end point of the voice from the reply message, and distinguish the voice and non-voice signals, The interference of the silent segment or the noise segment in the reply message can be reduced.

207、第一移动终端对每个上述语音段进行语音识别,得到每个上述语音段的识别文本。207. The first mobile terminal performs speech recognition on each of the above-mentioned speech segments, and obtains the recognized text of each of the above-mentioned speech segments.

208、第一移动终端根据每个上述语音段的识别文本,从所有上述语音段中确定关键语音段。208. The first mobile terminal determines a key speech segment from all the speech segments according to the recognized text of each speech segment.

本发明实施例中,第一移动终端根据识别文本确定关键语音段的具体方式可以为:第一移动终端检测每个上述语音段的识别文本中是否包含预设的关键词,如果是,则确定包含预设关键词的语音段为关键语音段。可见,本发明实施例可以在回复消息过长的情况下选取关键语音段,避免了当回复消息的数据量以及时长过长时,难以及时、准确地找到有价值的回复内容这一情况,提高了用户获取关键信息的效率,进而提高了用户体验度。In this embodiment of the present invention, the specific manner in which the first mobile terminal determines the key speech segment according to the recognized text may be as follows: the first mobile terminal detects whether the recognized text of each of the above-mentioned speech segments contains a preset keyword, and if so, determines The speech segment containing the preset keywords is the key speech segment. It can be seen that the embodiment of the present invention can select key speech segments when the reply message is too long, avoiding the situation that it is difficult to find valuable reply content in a timely and accurate manner when the data volume and time length of the reply message are too long, and improve the It improves the efficiency of users to obtain key information, thereby improving the user experience.

209、第一移动终端将该关键语音段发送给第二移动终端。209. The first mobile terminal sends the key speech segment to the second mobile terminal.

作为一种可选的实施方式,第一移动终端在将该关键语音段发送给第二移动终端之前,还可以检测该关键语音段的声音清晰度是否低于预设清晰度,如果是,则将该关键语音段播放时的语速调整为慢速,并将调整后关键语音段发送给第二移动终端。可见,本发明实施例,可以在关键语音段的音质较差、播放不够清晰的情况下调整关键语音段的播放语速,使第二移动终端的用户在播放该关键语音段时能够听清该关键语音段的内容,提高了用户体验。As an optional implementation manner, before sending the key speech segment to the second mobile terminal, the first mobile terminal may also detect whether the sound clarity of the key speech segment is lower than the preset clarity, and if so, then The speech rate when the key speech segment is played is adjusted to a slow speed, and the adjusted key speech segment is sent to the second mobile terminal. It can be seen that in this embodiment of the present invention, the playback speed of the key speech segment can be adjusted when the sound quality of the key speech segment is poor and the playback is not clear enough, so that the user of the second mobile terminal can hear the key speech segment clearly when playing the key speech segment. The content of key speech segments improves user experience.

可见,实施图2所描述的通信消息的交互方法,可以通过建立移动终端之间合法的通信连接,实现移动终端之间通信消息的快速、安全交互;可以通过判断通信消息的即时性和互动性这两个方面是否满足预设条件,对通信消息进行筛选,从而提高了获取通信消息的针对性,改善了用户体验;还可以避免了第一移动终端在麦克风处于停用状态时向其发送通信消息,从而降低了第一移动终端的功耗;此外,第一移动终端对上述回复消息进行端点检测,可以准确地从该回复消息中确定出语音的起始点和终止点、区分出语音和非语音信号,能够降低该回复消息中无声段或者噪声段的干扰;也可以在回复消息过长的情况下选取关键语音段,避免了当回复消息的数据量以及时长过长时,难以及时、准确地找到有价值的回复内容这一情况,提高了用户获取关键信息的效率,进而提高了用户体验度;还可以在关键语音段的音质较差、播放不够清晰的情况下调整关键语音段的播放语速,使第二移动终端的用户在播放该关键语音段时能够听清该关键语音段的内容,也提高了用户体验度。It can be seen that, by implementing the method for interacting communication messages described in FIG. 2 , a legal communication connection between mobile terminals can be established to realize fast and safe interaction of communication messages between mobile terminals; the immediacy and interactivity of communication messages can be judged by Whether these two aspects meet the preset conditions, the communication messages are screened, thereby improving the pertinence of acquiring the communication messages and improving the user experience; it can also prevent the first mobile terminal from sending a communication to the microphone when the microphone is in a deactivated state. message, thereby reducing the power consumption of the first mobile terminal; in addition, the first mobile terminal performs endpoint detection on the above reply message, and can accurately determine the starting point and the end point of the voice from the reply message, and distinguish the voice and non-voice The voice signal can reduce the interference of the silent segment or the noise segment in the reply message; it is also possible to select the key speech segment when the reply message is too long, avoiding the difficulty of being timely and accurate when the data volume and duration of the reply message are too long. The situation that valuable reply content can be found in a timely manner improves the efficiency for users to obtain key information, thereby improving the user experience; it is also possible to adjust the playback of key speech segments when the sound quality of key speech segments is poor and the playback is not clear enough. The speech rate enables the user of the second mobile terminal to hear the content of the key speech segment clearly when playing the key speech segment, and also improves the user experience.

实施例三Embodiment 3

请参阅图3,图3是本发明实施例公开的又一种通信消息的交互方法的流程示意图。如图3所示,该通信消息的交互方法可以包括以下步骤:Please refer to FIG. 3 . FIG. 3 is a schematic flowchart of another communication message interaction method disclosed by an embodiment of the present invention. As shown in Figure 3, the interaction method of the communication message may include the following steps:

301、第一移动终端接收第二移动终端发送的通信消息。301. A first mobile terminal receives a communication message sent by a second mobile terminal.

其中,该通信消息至少包括语音消息。Wherein, the communication message includes at least a voice message.

302、第一移动终端判断通信消息是否为即时互动消息,当判断结果为是时,执行步骤303,反之,结束本流程。302. The first mobile terminal judges whether the communication message is an instant interactive message, and when the judgment result is yes, executes step 303, otherwise, ends the process.

303、第一移动终端获取麦克风的倾斜角角度。303. The first mobile terminal acquires the tilt angle of the microphone.

本发明实施例中,第一移动终端可以通过麦克风内置的水平仪获取该麦克风的倾斜角角度。In this embodiment of the present invention, the first mobile terminal may acquire the inclination angle of the microphone through a level built in the microphone.

304、第一移动终端判断麦克风的倾斜角角度是否大于预设角度,当判断结果为是时,确定该麦克风处于持握状态,并执行步骤305,反之,结束本流程。304. The first mobile terminal determines whether the inclination angle of the microphone is greater than the preset angle, and when the determination result is yes, it is determined that the microphone is in a holding state, and step 305 is executed; otherwise, the process ends.

特别地,由于麦克风在未使用状态时,第一移动终端的用户通常将该麦克风放置在麦克风底座上,当麦克风放置在麦克风底座上时的倾斜角角度为0°。In particular, since the microphone is not in use, the user of the first mobile terminal usually places the microphone on the microphone base, and the inclination angle of the microphone when the microphone is placed on the microphone base is 0°.

305、第一移动终端获取麦克风采集的当前环境的声音信号。305. The first mobile terminal acquires the sound signal of the current environment collected by the microphone.

306、第一移动终端分析当前环境的声音信号,得到当前环境的噪声强度值。306. The first mobile terminal analyzes the sound signal of the current environment to obtain a noise intensity value of the current environment.

307、第一移动终端根据噪声强度值向麦克风发送音量调节指令,该音量调节指令用于调节麦克风播放上述通信消息的播放音量。307. The first mobile terminal sends a volume adjustment instruction to the microphone according to the noise intensity value, where the volume adjustment instruction is used to adjust the playback volume of the communication message played by the microphone.

实施步骤305~步骤307,可以通过获取并分析麦克风采集的当前环境的声音信号,得到当前环境的噪声强度值,并将该噪声强度值与预设的噪声标准强度值列表进行比对,得到该噪声强度值在预设的噪声标准强度值列表中对应的播放音量值,并麦克风发送携带有该播放音量值的音量调节指令,使麦克风将播放该通信消息的音量调节为上述播放音量值。可见,通过实施步骤305~步骤307,可以达到调节麦克风播放通信消息音量的目的,优化了通信消息的播放过程。By implementing steps 305 to 307, the noise intensity value of the current environment can be obtained by acquiring and analyzing the sound signal of the current environment collected by the microphone, and comparing the noise intensity value with a preset list of noise standard intensity values to obtain the noise intensity value. The noise intensity value corresponds to the playback volume value in the preset noise standard intensity value list, and the microphone sends a volume adjustment instruction carrying the playback volume value, so that the microphone adjusts the volume of the communication message to the above playback volume value. It can be seen that by implementing steps 305 to 307, the purpose of adjusting the volume of the communication message played by the microphone can be achieved, and the playback process of the communication message is optimized.

在本发明实施例中,该应通信消息的交互方法还包括步骤308~313,针对步骤308~313的描述,请参照实施例二中针对步骤204~209的详细描述,本发明实施例不再赘述。In this embodiment of the present invention, the method for interacting a communication message further includes steps 308 to 313. For the description of steps 308 to 313, please refer to the detailed description of steps 204 to 209 in Embodiment 2, and this embodiment of the present invention does not Repeat.

可见,实施图3所描述的通信消息的交互方法,可以通过建立移动终端之间合法的通信连接,实现移动终端之间通信消息的快速、安全交互;可以通过判断通信消息的即时性和互动性这两个方面是否满足预设条件,对通信消息进行筛选,从而提高了获取通信消息的针对性,改善了用户体验;还可以避免了第一移动终端在麦克风处于停用状态时向其发送通信消息,从而降低了第一移动终端的功耗;此外,第一移动终端对上述回复消息进行端点检测,可以准确地从该回复消息中确定出语音的起始点和终止点、区分出语音和非语音信号,能够降低该回复消息中无声段或者噪声段的干扰;也可以在回复消息过长的情况下选取关键语音段,避免了当回复消息的数据量以及时长过长时,难以及时、准确地找到有价值的回复内容这一情况,提高了用户获取关键信息的效率,进而提高了用户体验度;还可以在关键语音段的音质较差、播放不够清晰的情况下调整关键语音段的播放语速,使第二移动终端的用户在播放该关键语音段时能够听清该关键语音段的内容,也提高了用户体验度。It can be seen that, by implementing the method for interacting communication messages described in FIG. 3 , a legal communication connection between mobile terminals can be established to realize fast and safe interaction of communication messages between mobile terminals; the immediacy and interactivity of communication messages can be judged by Whether these two aspects meet the preset conditions, the communication messages are screened, thereby improving the pertinence of acquiring the communication messages and improving the user experience; it can also prevent the first mobile terminal from sending a communication to the microphone when the microphone is in a deactivated state. message, thereby reducing the power consumption of the first mobile terminal; in addition, the first mobile terminal performs endpoint detection on the above reply message, and can accurately determine the starting point and the end point of the voice from the reply message, and distinguish the voice and non-voice The voice signal can reduce the interference of the silent segment or the noise segment in the reply message; it is also possible to select the key speech segment when the reply message is too long, avoiding the difficulty of being timely and accurate when the data volume and duration of the reply message are too long. The situation that valuable reply content can be found in a timely manner improves the efficiency for users to obtain key information, thereby improving the user experience; it is also possible to adjust the playback of key speech segments when the sound quality of key speech segments is poor and the playback is not clear enough. The speech rate enables the user of the second mobile terminal to hear the content of the key speech segment clearly when playing the key speech segment, and also improves the user experience.

此外,实施图3所描述的通信消息的交互方法,还可以在当前环境较为嘈杂的时候,提高播放上述通信消息的音量,能够使第一移动终端的用户不受周围环境的影响、完整地获取第二移动终端发送的通信消息,优化了通信消息的播放过程,进一步提高了用户体验。In addition, by implementing the method for interacting communication messages described in FIG. 3 , when the current environment is relatively noisy, the volume of the above-mentioned communication messages can be increased, so that the user of the first mobile terminal can obtain complete information without being affected by the surrounding environment. The communication message sent by the second mobile terminal optimizes the playing process of the communication message and further improves the user experience.

实施例四Embodiment 4

请参阅图4,图4是本发明实施例公开的一种移动终端的结构示意图。如图4所示,该移动终端可以包括:Please refer to FIG. 4 , which is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present invention. As shown in Figure 4, the mobile terminal may include:

第一接收单元401,用于接收第二移动终端发送的通信消息,并将该通信消息提供给判断单元402,其中,该通信消息至少包括语音消息。The first receiving unit 401 is configured to receive a communication message sent by the second mobile terminal, and provide the communication message to the judging unit 402, where the communication message at least includes a voice message.

判断单元402,用于判断上述通信消息是否为即时互动消息。The determining unit 402 is configured to determine whether the above-mentioned communication message is an instant interactive message.

第一检测单元403,用于在上述判断单元402判断出通信消息为即时互动消息时,检测麦克风是否处于持握状态,该麦克风是预先通过有线连接方式或无线连接方式与第一移动终端连接的。The first detection unit 403 is used to detect whether the microphone is in a holding state when the above-mentioned determination unit 402 determines that the communication message is an instant interactive message, and the microphone is pre-connected to the first mobile terminal through a wired connection or a wireless connection. .

第一发送单元404,用于在上述第一检测单元403检测出麦克风处于持握状态时,向该麦克风发送上述通信消息,以触发该麦克风播放上述通信消息。The first sending unit 404 is configured to send the communication message to the microphone when the first detection unit 403 detects that the microphone is in a holding state, so as to trigger the microphone to play the communication message.

其中,第一发送单元404向该麦克风发送的上述通信消息是由第一接收单元401接收的。The above-mentioned communication message sent by the first sending unit 404 to the microphone is received by the first receiving unit 401 .

可见,实施图4所描述的移动终端,能够通过建立移动终端之间合法的通信连接,实现移动终端之间通信消息的快速、安全交互;可以通过判断通信消息的即时性和互动性这两个方面是否满足预设条件,对通信消息进行筛选,从而提高了获取通信消息的针对性,改善了用户体验;还可以避免了第一移动终端在麦克风处于停用状态时向其发送通信消息,从而降低了第一移动终端的功耗。It can be seen that the implementation of the mobile terminal described in FIG. 4 can realize fast and safe interaction of communication messages between mobile terminals by establishing legal communication connections between mobile terminals; the immediacy and interactivity of communication messages can be judged by two In terms of whether the preset conditions are met, the communication messages are screened, thereby improving the pertinence of obtaining communication messages and improving the user experience; it can also prevent the first mobile terminal from sending communication messages to the microphone when the microphone is in a disabled state, thereby The power consumption of the first mobile terminal is reduced.

实施例五Embodiment 5

请参阅图5,图5是本发明实施例提供的另一种移动终端的结构示意图,其中,图5所示的移动终端是由图4所示的移动终端进一步进行优化得到的。与图4所示的移动终端相比较,图5所示的移动终端还可以包括:Please refer to FIG. 5 , which is a schematic structural diagram of another mobile terminal provided by an embodiment of the present invention, wherein the mobile terminal shown in FIG. 5 is obtained by further optimizing the mobile terminal shown in FIG. 4 . Compared with the mobile terminal shown in FIG. 4 , the mobile terminal shown in FIG. 5 may further include:

第二接收单元405,用于接收麦克风采集的针对上述通信消息的回复消息,并将该回复消息提供给第二检测单元406。The second receiving unit 405 is configured to receive a reply message for the above communication message collected by the microphone, and provide the reply message to the second detection unit 406 .

具体的,上述第一发送单元404在向麦克风发送通信消息之后,触发第二接收单元405启动。Specifically, after the first sending unit 404 sends the communication message to the microphone, the second receiving unit 405 is triggered to start.

第二检测单元406,用于对回复消息进行端点检测,得到至少一个语音段,并将至少一个语音段提供给识别单元407。The second detection unit 406 is configured to perform endpoint detection on the reply message, obtain at least one speech segment, and provide the at least one speech segment to the identification unit 407 .

本发明实施例中,第二检测单元406可以采用基于短时能量和短时平均过零率的端点检测、基于倒谱特征的端点检测、基于熵的端点检测等方式进行端点检测,本发明不做限定。由于上述回复消息是第二接收单元405接收的麦克风采集的语音信号,那么第二检测单元406对上述回复消息进行端点检测,可以准确地从该回复消息中确定出语音的起始点和终止点、区分出语音和非语音信号,能够降低该回复消息中无声段或者噪声段的干扰。In this embodiment of the present invention, the second detection unit 406 may perform endpoint detection by means of endpoint detection based on short-term energy and short-term average zero-crossing rate, endpoint detection based on cepstral features, and endpoint detection based on entropy. Do limit. Since the above-mentioned reply message is the voice signal collected by the microphone received by the second receiving unit 405, the second detection unit 406 performs endpoint detection on the above-mentioned reply message, and can accurately determine the starting point and the end point of the voice from the reply message, Distinguishing voice and non-voice signals can reduce the interference of silent segments or noise segments in the reply message.

识别单元407,用于对每个上述语音段进行语音识别,得到每个上述语音段的识别文本。The recognition unit 407 is configured to perform speech recognition on each of the above-mentioned speech segments to obtain the recognized text of each of the above-mentioned speech segments.

确定单元408,用于根据识别单元407识别到的每个上述语音段的识别文本,从所有上述语音段中确定关键语音段。The determining unit 408 is configured to determine a key speech segment from all the above-mentioned speech segments according to the recognized text of each of the above-mentioned speech segments recognized by the recognizing unit 407 .

第三发送单元409,用于将确定单元408确定的关键语音段发送给第二移动终端。The third sending unit 409 is configured to send the key speech segment determined by the determining unit 408 to the second mobile terminal.

可见,实施图五所描述的移动终端,可以通过建立移动终端之间合法的通信连接,实现移动终端之间通信消息的快速、安全交互;可以通过判断通信消息的即时性和互动性这两个方面是否满足预设条件,对通信消息进行筛选,从而提高了获取通信消息的针对性,改善了用户体验;还可以避免了第一移动终端在麦克风处于停用状态时向其发送通信消息,从而降低了第一移动终端的功耗;此外,第一移动终端对上述回复消息进行端点检测,可以准确地从该回复消息中确定出语音的起始点和终止点、区分出语音和非语音信号,能够降低该回复消息中无声段或者噪声段的干扰;也可以在回复消息过长的情况下选取关键语音段,避免了当回复消息的数据量以及时长过长时,难以及时、准确地找到有价值的回复内容这一情况,提高了用户获取关键信息的效率,进而提高了用户体验度;还可以在关键语音段的音质较差、播放不够清晰的情况下调整关键语音段的播放语速,使第二移动终端的用户在播放该关键语音段时能够听清该关键语音段的内容,也提高了用户体验度。It can be seen that, by implementing the mobile terminal described in Figure 5, a legal communication connection between the mobile terminals can be established to realize the fast and safe interaction of communication messages between the mobile terminals; the immediacy and interactivity of the communication messages can be judged by two aspects. Whether the preset conditions are met, the communication messages are screened, thereby improving the pertinence of obtaining communication messages and improving the user experience; it can also prevent the first mobile terminal from sending communication messages to the microphone when the microphone is in a disabled state, thereby reducing the The power consumption of the first mobile terminal is reduced; in addition, the first mobile terminal performs endpoint detection on the above-mentioned reply message, and can accurately determine the starting point and the end point of the voice from the reply message, and distinguish the voice and non-voice signals. Reduce the interference of silent segments or noise segments in the reply message; it is also possible to select key speech segments when the reply message is too long, avoiding the difficulty of finding valuable information in a timely and accurate manner when the data volume and duration of the reply message are too long In this case, the reply content of the user is improved, which improves the efficiency of users to obtain key information, thereby improving the user experience; it is also possible to adjust the playback speed of key speech segments when the sound quality of key speech segments is poor and the playback is not clear enough, so that the When the user of the second mobile terminal is playing the key speech segment, the content of the key speech segment can be heard clearly, which also improves the user experience.

实施例六Embodiment 6

请参阅图6,图6是本发明实施例公开的又一种移动终端的结构示意图。其中,图6所示的移动终端是由图5所示的移动终端进行优化得到的。与图5所示的移动终端相比较,图6所示的移动终端还包括:Please refer to FIG. 6. FIG. 6 is a schematic structural diagram of another mobile terminal disclosed in an embodiment of the present invention. The mobile terminal shown in FIG. 6 is obtained by optimizing the mobile terminal shown in FIG. 5 . Compared with the mobile terminal shown in FIG. 5 , the mobile terminal shown in FIG. 6 further includes:

获取单元410,用于在上述第一检测单元403检测出麦克风处于持握状态时,获取该麦克风采集的当前环境的声音信号,并提供给分析单元411。The acquisition unit 410 is configured to acquire the sound signal of the current environment collected by the microphone when the first detection unit 403 detects that the microphone is in a holding state, and provide it to the analysis unit 411 .

分析单元411,用于分析上述当前环境的声音信号,得到当前环境的噪声强度值。The analyzing unit 411 is configured to analyze the sound signal of the current environment, and obtain the noise intensity value of the current environment.

第二发送单元412,用于根据上述分析单元411得到的噪声强度值向麦克风发送音量调节指令,该音量调节指令用于调节麦克风播放上述通信消息的播放音量。The second sending unit 412 is configured to send a volume adjustment instruction to the microphone according to the noise intensity value obtained by the analysis unit 411, where the volume adjustment instruction is used to adjust the playback volume of the communication message played by the microphone.

上述第一发送单元404,具体用于在上述第一检测单元403检测出麦克风处于持握状态时,以及在上述第二发送单元412发送音量调节指令之后,向麦克风发送上述通信消息,以触发麦克风播放该通信消息。The above-mentioned first sending unit 404 is specifically configured to send the above-mentioned communication message to the microphone to trigger the microphone when the above-mentioned first detecting unit 403 detects that the microphone is in a holding state, and after the above-mentioned second transmitting unit 412 sends a volume adjustment instruction Play the communication message.

作为一种可选的实施方式,如图6所示,第一检测单元403可以包括:As an optional implementation manner, as shown in FIG. 6 , the first detection unit 403 may include:

第一获取子单元4031,用于在上述判断单元402判断出通信消息为即时互动消息时,获取麦克风的倾斜角角度,并提供给第一判断单元4032。The first obtaining sub-unit 4031 is configured to obtain the inclination angle of the microphone when the above-mentioned determining unit 402 determines that the communication message is an instant interactive message, and provide it to the first determining unit 4032 .

第一判断子单元4032,用于判断该麦克风的倾斜角角度是否大于预设角度。The first determination subunit 4032 is used to determine whether the inclination angle of the microphone is greater than a preset angle.

第一确定子单元4033,用于在上述判断子单元4032判断出上述麦克风的倾斜角角度大于预设角度时,确定该麦克风处于持握状态。The first determination subunit 4033 is configured to determine that the microphone is in a holding state when the determination subunit 4032 determines that the inclination angle of the microphone is greater than a preset angle.

作为一种可选的实施方式,如图6所示,判断单元402可以包括:As an optional implementation manner, as shown in FIG. 6 , the judging unit 402 may include:

第二获取子单元4021,用于获取上述通信消息的接收时间,以及移动终端与第二移动终端的联系状态信息,并提供给计算子单元4022。The second acquisition sub-unit 4021 is configured to acquire the reception time of the above-mentioned communication message and the contact state information between the mobile terminal and the second mobile terminal, and provide them to the calculation sub-unit 4022 .

计算子单元4022,用于根据上述联系状态信息计算第二移动终端的权重值,并触发第二判断子单元4023启动。The calculation subunit 4022 is configured to calculate the weight value of the second mobile terminal according to the above contact state information, and trigger the second judgment subunit 4023 to start.

第二判断子单元4023,用于判断当前时间与上述接收时间的时间差是否小于预设时间差,以及第二移动终端的权重值是否高于预设权重值。The second judging subunit 4023 is configured to judge whether the time difference between the current time and the above receiving time is less than the preset time difference, and whether the weight value of the second mobile terminal is higher than the preset weight value.

第二确定子单元4024,用于在上述第二判断子单元4023判断出上述时间差小于预设时间差且第二移动终端的权重值高于预设权重时,确定通信消息为即时互动消息。The second determination subunit 4024 is configured to determine that the communication message is an instant interactive message when the second determination subunit 4023 determines that the time difference is less than the preset time difference and the weight value of the second mobile terminal is higher than the preset weight.

本发明实施例中,上述第一接收单元401接收到的通信消息中包含该通信消息的时间信息,第二获取子单元4021可以通过该时间信息获取该通信消息的接收时间;此外,第二获取子单元4021还可以获取第一移动终端与第二移动终端的联系状态信息,其中,该联系状态信息可以包括多个预设参数,如第一移动终端与第二移动终端的联系次数、联系的时间段以及最后一次联系的时间等,每个预设参数均根据实际情况赋予相应的子权重值,而第二移动终端的权重值可以等于联系状态信息中各个预设参数的子权重值之和;计算子单元4022可以计算接收到通信消息的接收时间与当前时间的差值(时间差),并且第二判断子单元4023预先设置有预设时间差,用于判断计算接收到通信消息的接收时间与当前时间的差值(时间差)是否小于预设时间差,此外,第二判断子单元4023可以判断由第二移动终端的状态联系信息中各个预设参数的子权重值之和得到的权重值是否高于预设权重值;当第二判断子单元4023判断出差值(时间差)小于预设时间差时,说明该通信消息为即时消息,以及,当第二判断子单元4023判断出第二移动终端的权重值大于预设权重值时,说明该通信消息是互动消息,进一步地,说明发送该通信消息的移动设备的用户为第一移动终端用户的重要联系人,所以只有当上述两个判断的结果均为是时,第二确定子单元4024可以确定该通信消息为即时互动消息。可见,本发明实施例,通过判断通信消息的即时性和互动性这两个方面是否满足预设条件,对通信消息进行筛选,从而提高了获取通信消息的针对性,改善了用户体验。In this embodiment of the present invention, the communication message received by the first receiving unit 401 includes time information of the communication message, and the second obtaining subunit 4021 can obtain the receiving time of the communication message through the time information; in addition, the second obtaining The sub-unit 4021 can also obtain contact status information between the first mobile terminal and the second mobile terminal, where the contact status information may include multiple preset parameters, such as the number of contacts between the first mobile terminal and the second mobile terminal, the number of contacts The time period and the time of the last contact, etc., each preset parameter is assigned a corresponding sub-weight value according to the actual situation, and the weight value of the second mobile terminal can be equal to the sum of the sub-weight values of the preset parameters in the contact status information The calculation subunit 4022 can calculate the difference (time difference) between the reception time of the received communication message and the current time, and the second judgment subunit 4023 is preset with a preset time difference, for judging and calculating the reception time of the received communication message and Whether the difference (time difference) of the current time is less than the preset time difference, in addition, the second judgment subunit 4023 can judge whether the weight value obtained by the sum of the sub-weight values of the preset parameters in the status contact information of the second mobile terminal is high or not at the preset weight value; when the second judgment subunit 4023 judges that the difference (time difference) is less than the preset time difference, it indicates that the communication message is an instant message, and when the second judgment subunit 4023 judges that the second mobile terminal When the weight value is greater than the preset weight value, it indicates that the communication message is an interactive message, and further indicates that the user of the mobile device that sends the communication message is an important contact of the first mobile terminal user, so only when the results of the above two judgments When both are yes, the second determining subunit 4024 may determine that the communication message is an instant interactive message. It can be seen that the embodiments of the present invention screen the communication messages by judging whether the immediacy and interactivity of the communication messages meet the preset conditions, thereby improving the pertinence of acquiring the communication messages and improving the user experience.

举例来说,联系状态信息可以包括第一移动终端与第二移动终端的联系次数、联系的时间段以及最后一次联系的时间这三个预设参数,其中,对于第一移动终端与第二移动终端的联系次数这一预设参数来说,联系的次数小于五次时,对应的子权重值为1;联系的次数大于等于五次并且小于等于十五次时,对应的子权重值为2;联系的次数大于十五次时,对应的子权重值为3。对于联系的时间段这一预设参数来说,联系的时间段在上午六点到上午九点之间时,对应的子权重值为1;联系的时间段在上午九点到晚上九点之间时,对应的子权重值为2;联系的时间段在晚上九点到次日上午六点之间时,对应的子权重值为3。对于最后一次联系的时间这一预设参数来说,最后一次联系的时间在一个月以上,对应的子权重值为1;最后一次联系的时间在一个月以内,对应的子权重值为2;最后一次联系的时间在24小时之内,对应的子权重值为3。权重值等于上述第一移动终端与第二移动终端的联系次数、联系的时间段以及最后一次联系的时间这三个预设参数对应的子权重值之和。本发明实施例中,预设权重值可以是5,第二移动终端的权重值可以是8,本发明不做限定,此时第二移动终端的权重值大于预设权重值,可以判断出该通信消息为互动消息。For example, the contact state information may include three preset parameters, the number of times of contact between the first mobile terminal and the second mobile terminal, the time period of contact, and the time of the last contact. For the preset parameter of the number of contacts of the terminal, when the number of contacts is less than five times, the corresponding sub-weight value is 1; when the number of contacts is greater than or equal to five times and less than or equal to fifteen times, the corresponding sub-weight value is 2 ; When the number of contacts is greater than fifteen times, the corresponding sub-weight value is 3. For the preset parameter of the contact time period, when the contact time period is between 6:00 am and 9:00 am, the corresponding sub-weight value is 1; the contact time period is between 9:00 am and 9:00 pm The corresponding sub-weight value is 2; when the contact time period is between 9:00 pm and 6:00 am the next day, the corresponding sub-weight value is 3. For the preset parameter of the last contact time, if the last contact time is more than one month, the corresponding sub-weight value is 1; if the last contact time is within one month, the corresponding sub-weight value is 2; The time of the last contact is within 24 hours, and the corresponding sub-weight value is 3. The weight value is equal to the sum of the sub-weight values corresponding to the three preset parameters of the number of times of contact between the first mobile terminal and the second mobile terminal, the time period of the contact, and the time of the last contact. In this embodiment of the present invention, the preset weight value may be 5, and the weight value of the second mobile terminal may be 8, which is not limited in the present invention. In this case, the weight value of the second mobile terminal is greater than the preset weight value, and it can be determined that the Communication messages are interactive messages.

需要说明的是,预设时间差以及预设权重值可以根据实际需要进行更改设置,例如,可以由第一移动终端的用户主动触发,也可以每隔预设时间进行调整。It should be noted that the preset time difference and the preset weight value can be changed and set according to actual needs, for example, can be actively triggered by the user of the first mobile terminal, or can be adjusted every preset time.

可见,实施图6所描述的移动终端,可以通过建立移动终端之间合法的通信连接,实现移动终端之间通信消息的快速、安全交互;可以通过判断通信消息的即时性和互动性这两个方面是否满足预设条件,对通信消息进行筛选,从而提高了获取通信消息的针对性,改善了用户体验;还可以避免了第一移动终端在麦克风处于停用状态时向其发送通信消息,从而降低了第一移动终端的功耗;此外,第一移动终端对上述回复消息进行端点检测,可以准确地从该回复消息中确定出语音的起始点和终止点、区分出语音和非语音信号,能够降低该回复消息中无声段或者噪声段的干扰;也可以在回复消息过长的情况下选取关键语音段,避免了当回复消息的数据量以及时长过长时,难以及时、准确地找到有价值的回复内容这一情况,提高了用户获取关键信息的效率,进而提高了用户体验度;还可以在关键语音段的音质较差、播放不够清晰的情况下调整关键语音段的播放语速,使第二移动终端的用户在播放该关键语音段时能够听清该关键语音段的内容,也提高了用户体验度。It can be seen that, by implementing the mobile terminals described in FIG. 6 , a legal communication connection between the mobile terminals can be established to realize the fast and safe interaction of communication messages between the mobile terminals; the immediacy and interactivity of the communication messages can be judged by the two In terms of whether the preset conditions are met, the communication messages are screened, thereby improving the pertinence of obtaining communication messages and improving the user experience; it can also prevent the first mobile terminal from sending communication messages to the microphone when the microphone is in a disabled state, thereby The power consumption of the first mobile terminal is reduced; in addition, the first mobile terminal performs endpoint detection on the above-mentioned reply message, and can accurately determine the starting point and the end point of the voice from the reply message, and distinguish the voice and non-voice signals, It can reduce the interference of silent segments or noise segments in the reply message; it is also possible to select key speech segments when the reply message is too long, so as to avoid the difficulty of timely and accurate finding out when the data volume and duration of the reply message are too long. The situation of valuable reply content improves the efficiency of users to obtain key information, thereby improving the user experience; it is also possible to adjust the playback speed of key speech segments when the sound quality of key speech segments is poor and the playback is not clear enough. The user of the second mobile terminal can hear the content of the key speech segment clearly when playing the key speech segment, which also improves user experience.

此外,实施图6所描述的移动终端,还可以在当前环境较为嘈杂的时候,提高麦克风播放上述通信消息的音量,能够使第一移动终端的用户不受周围环境的影响、完整地获取第二移动终端发送的通信消息,优化了通信消息的播放过程,进一步提高了用户体验。In addition, by implementing the mobile terminal described in FIG. 6 , when the current environment is relatively noisy, the volume of the microphone playing the above-mentioned communication message can be increased, so that the user of the first mobile terminal is not affected by the surrounding environment and can completely obtain the second The communication message sent by the mobile terminal optimizes the playback process of the communication message and further improves the user experience.

请参阅图7,图7是本发明实施例公开的另一种移动终端的结构示意图。如图7所示,该移动终端可以包括:Please refer to FIG. 7, which is a schematic structural diagram of another mobile terminal disclosed in an embodiment of the present invention. As shown in Figure 7, the mobile terminal may include:

存储有可执行程序代码的存储器701;a memory 701 storing executable program code;

与存储器701耦合的处理器702;a processor 702 coupled to the memory 701;

其中,处理器702调用存储器701中存储的可执行程序代码,执行图1~图3任意一种通信消息的交互方法。The processor 702 invokes the executable program code stored in the memory 701 to execute any one of the communication message interaction methods shown in FIGS. 1 to 3 .

本发明实施例公开一种计算机可读存储介质,其存储计算机程序,其中,该计算机程序使得计算机执行图1~图3任意一种通信消息的交互方法。An embodiment of the present invention discloses a computer-readable storage medium, which stores a computer program, wherein the computer program causes a computer to execute any one of the communication message interaction methods in FIG. 1 to FIG. 3 .

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(CompactDisc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only storage medium. Memory (Read-Only Memory, ROM), Random Access Memory (Random Access Memory, RAM), Programmable Read-only Memory (PROM), Erasable Programmable Read Only Memory (Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically Erasable Programmable Read-Only Memory (EEPROM), CompactDisc Read -Only Memory, CD-ROM) or other optical disk storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

以上对本发明实施例公开的一种通信消息的交互方法及移动终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A method for interacting a communication message and a mobile terminal disclosed in the embodiments of the present invention have been described above in detail. The principles and implementations of the present invention are described in this paper by using specific examples. The descriptions of the above embodiments are only used to help understanding. The method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be It is understood as a limitation of the present invention.

Claims (10)

1. A method for communicating messages, the method comprising:
a first mobile terminal receives a communication message sent by a second mobile terminal and judges whether the communication message is an instant interactive message or not, wherein the communication message at least comprises a voice message;
when the judgment result is yes, the first mobile terminal detects whether a microphone is in a holding state, wherein the microphone is connected with the first mobile terminal in advance in a wired connection mode or a wireless connection mode;
when the detection result is yes, the first mobile terminal sends the communication message to the microphone to trigger the microphone to play the communication message;
the first mobile terminal receives a reply message which is collected by the microphone and aims at the communication message;
the first mobile terminal carries out end point detection on the reply message to obtain at least one voice section;
the first mobile terminal performs voice recognition on each voice segment to obtain a recognition text of each voice segment;
the first mobile terminal determines key voice sections from all the voice sections according to the identification text of each voice section;
and when the sound definition of the key voice segment is lower than the preset definition, adjusting the speed of the key voice segment during playing to be slow, and sending the adjusted key voice segment to the second mobile terminal.
2. The method of claim 1, further comprising:
if the first mobile terminal detects that the microphone is in a holding state, the first mobile terminal acquires a sound signal of the current environment collected by the microphone;
the first mobile terminal analyzes the sound signal of the current environment to obtain a noise intensity value of the current environment;
and the first mobile terminal sends a volume adjusting instruction to the microphone according to the noise intensity value, and executes the communication message sent to the microphone to trigger the microphone to play the communication message, wherein the volume adjusting instruction is used for adjusting the playing volume of the communication message played by the microphone.
3. The method according to claim 1 or 2, wherein the first mobile terminal detects whether a microphone is in a holding state, comprising:
the first mobile terminal acquires the inclination angle of a microphone;
the first mobile terminal judges whether the inclination angle of the microphone is larger than a preset angle or not, and when the judgment result is yes, the microphone is determined to be in a holding state.
4. The method according to claim 1 or 2, wherein the determining, by the first mobile terminal, whether the communication message is an instant interactive message comprises:
the first mobile terminal acquires the receiving time of the communication message;
the first mobile terminal acquires contact state information of the first mobile terminal and the second mobile terminal, and calculates a weight value of the second mobile terminal according to the contact state information;
the first mobile terminal judges whether the time difference between the current time and the receiving time is smaller than a preset time difference or not and whether the weighted value of the second mobile terminal is higher than a preset weighted value or not;
and when the time difference is judged to be smaller than the preset time difference and the weight value of the second mobile terminal is higher than the preset weight value, the first mobile terminal determines that the communication message is an instant interactive message.
5. A mobile terminal, comprising:
a first receiving unit, configured to receive a communication message sent by a second mobile terminal, where the communication message at least includes a voice message;
the judging unit is used for judging whether the communication message is an instant interactive message or not;
the first detection unit is used for detecting whether a microphone is in a holding state or not when the judgment unit judges that the communication message is the instant interactive message, wherein the microphone is connected with a first mobile terminal in advance in a wired connection mode or a wireless connection mode;
the first sending unit is used for sending the communication message to the microphone to trigger the microphone to play the communication message when the first detecting unit detects that the microphone is in a holding state;
the second receiving unit is used for receiving reply messages which are collected by the microphone and aim at the communication messages;
the second detection unit is used for carrying out end point detection on the reply message to obtain at least one voice section;
the recognition unit is used for carrying out voice recognition on each voice section to obtain a recognition text of each voice section;
the determining unit is used for determining key voice sections from all the voice sections according to the identification text of each voice section;
and the third sending unit is used for adjusting the speech speed of the key speech segment during playing to be slow speed when the sound definition of the key speech segment is lower than the preset definition, and sending the adjusted key speech segment to the second mobile terminal.
6. The mobile terminal of claim 5, wherein the mobile terminal further comprises:
the acquisition unit is used for acquiring the sound signal of the current environment collected by the microphone when the first detection unit detects that the microphone is in a holding state;
the analysis unit is used for analyzing the sound signal of the current environment to obtain a noise intensity value of the current environment;
a second sending unit, configured to send a volume adjustment instruction to the microphone according to the noise intensity value, where the volume adjustment instruction is used to adjust a playing volume of the microphone for playing the communication message;
the first sending unit is specifically configured to send the communication message to the microphone when the first detecting unit detects that the microphone is in a holding state and after the second sending unit sends the volume adjustment instruction, so as to trigger the microphone to play the communication message.
7. The mobile terminal according to claim 5 or 6, wherein the first detecting unit comprises:
the first obtaining subunit is configured to obtain a tilt angle of a microphone when the determining unit determines that the communication message is the instant interaction message;
the first judgment subunit is used for judging whether the inclination angle of the microphone is larger than a preset angle or not;
the first determining subunit is configured to determine that the microphone is in a holding state when the first determining subunit determines that the tilt angle of the microphone is greater than a preset angle.
8. The mobile terminal according to claim 5 or 6, wherein the judging unit comprises:
the second acquiring subunit is configured to acquire the receiving time of the communication message and contact state information of the mobile terminal and the second mobile terminal;
the calculating subunit is used for calculating a weight value of the second mobile terminal according to the contact state information;
a second judging subunit, configured to judge whether a time difference between the current time and the receiving time is smaller than a preset time difference, and whether a weight value of the second mobile terminal is higher than a preset weight value;
a second determining subunit, configured to determine that the communication message is an instant interaction message when the second determining subunit determines that the time difference is smaller than the preset time difference and the weight value of the second mobile terminal is higher than the preset weight value.
9. A mobile terminal, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the interaction method of the communication message according to any one of claims 1 to 4.
10. A computer-readable storage medium characterized by storing a computer program that causes a computer to execute the method of interacting with communication messages according to any one of claims 1 to 4.
CN201711446445.2A 2017-12-27 2017-12-27 Communication message interaction method and mobile terminal Active CN108055406B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711446445.2A CN108055406B (en) 2017-12-27 2017-12-27 Communication message interaction method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711446445.2A CN108055406B (en) 2017-12-27 2017-12-27 Communication message interaction method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108055406A CN108055406A (en) 2018-05-18
CN108055406B true CN108055406B (en) 2020-12-25

Family

ID=62128231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711446445.2A Active CN108055406B (en) 2017-12-27 2017-12-27 Communication message interaction method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108055406B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493461A (en) * 2019-08-02 2019-11-22 RealMe重庆移动通信有限公司 Message playback method and device, electronic equipment, storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100445A (en) * 2015-06-29 2015-11-25 小米科技有限责任公司 Message reminding method and device, and terminal
CN106210347A (en) * 2016-07-28 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of terminal affair based reminding method, device and terminal
CN106534588A (en) * 2016-12-23 2017-03-22 宇龙计算机通信科技(深圳)有限公司 Silencing method and system of mobile terminal
CN106998386A (en) * 2017-06-13 2017-08-01 珠海格力电器股份有限公司 Method and device for adding contact way and user terminal
CN107104887A (en) * 2017-06-01 2017-08-29 珠海格力电器股份有限公司 Instant message reminding method and device and user terminal thereof
CN107465595A (en) * 2017-07-25 2017-12-12 腾讯科技(深圳)有限公司 Equipment message control method for playing back, device, message playback equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202979082U (en) * 2012-05-31 2013-06-05 广东步步高电子工业有限公司 A device for automatically adjusting call volume applied to mobile phones
US8775191B1 (en) * 2013-11-13 2014-07-08 Google Inc. Efficient utterance-specific endpointer triggering for always-on hotwording
CN104735244A (en) * 2015-02-27 2015-06-24 深圳市中兴移动通信有限公司 Communication data displaying method and system
CN105206271A (en) * 2015-08-25 2015-12-30 北京宇音天下科技有限公司 Intelligent equipment voice wake-up method and system for realizing method
CN105099895B (en) * 2015-09-07 2018-11-02 上海创功通讯技术有限公司 Chat apparatus and its information output method, chat system and its information interacting method
US20170118607A1 (en) * 2015-10-27 2017-04-27 Daniel E. Scott Built-In Mobile Device Voice Messaging System
CN105529028B (en) * 2015-12-09 2019-07-30 百度在线网络技术(北京)有限公司 Speech analysis method and apparatus
CN205793142U (en) * 2016-06-27 2016-12-07 曾波 A kind of intelligence mike

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100445A (en) * 2015-06-29 2015-11-25 小米科技有限责任公司 Message reminding method and device, and terminal
CN106210347A (en) * 2016-07-28 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of terminal affair based reminding method, device and terminal
CN106534588A (en) * 2016-12-23 2017-03-22 宇龙计算机通信科技(深圳)有限公司 Silencing method and system of mobile terminal
CN107104887A (en) * 2017-06-01 2017-08-29 珠海格力电器股份有限公司 Instant message reminding method and device and user terminal thereof
CN106998386A (en) * 2017-06-13 2017-08-01 珠海格力电器股份有限公司 Method and device for adding contact way and user terminal
CN107465595A (en) * 2017-07-25 2017-12-12 腾讯科技(深圳)有限公司 Equipment message control method for playing back, device, message playback equipment and storage medium

Also Published As

Publication number Publication date
CN108055406A (en) 2018-05-18

Similar Documents

Publication Publication Date Title
CN104954555B (en) A kind of volume adjusting method and system
CN110740376B (en) Improved content streaming apparatus and method
CN107481721A (en) Voice interactive method and wearable electronic for wearable electronic
US20160080552A1 (en) Methods and systems for user feature tracking on a mobile device
CN109473095A (en) A kind of intelligent home control system and control method
CN103841272B (en) A kind of method and device sending speech message
CN105430191A (en) Volume adjustment processing method and device
WO2016201767A1 (en) Voice control method and device, and computer storage medium
CN104023016B (en) In the method and apparatus that communicating terminal establishes communication connection
CN104506991B (en) A kind of information prompting method and device
CN106878535A (en) Method and device for reminding mobile terminal location
CN110636403A (en) Wireless earphone pairing method, system and storage medium
CN109473097B (en) Intelligent voice equipment and control method thereof
CN110197663B (en) Control method and device and electronic equipment
CN106027801A (en) Communication message processing method and device and mobile device
WO2016082344A1 (en) Voice control method and apparatus, and storage medium
CN107682553A (en) Call signal sending method, device, mobile terminal and storage medium
CN104851446A (en) voice management method and system
CN104333641B (en) Call method and device
CN106303015A (en) Communication message processing method and device and terminal equipment
CN108055406B (en) Communication message interaction method and mobile terminal
CN107977187B (en) A kind of reverberation adjustment method and electronic device
CN107205095A (en) Voice information playback method, device and terminal
CN105376385B (en) A kind of method for regulation of sound volume and user terminal
CN111294259A (en) Method and device for controlling household appliance

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