CN106131312B - Voice message playing method and device and mobile terminal - Google Patents

Voice message playing method and device and mobile terminal Download PDF

Info

Publication number
CN106131312B
CN106131312B CN201610460434.9A CN201610460434A CN106131312B CN 106131312 B CN106131312 B CN 106131312B CN 201610460434 A CN201610460434 A CN 201610460434A CN 106131312 B CN106131312 B CN 106131312B
Authority
CN
China
Prior art keywords
mobile terminal
voice message
user
preset
action data
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
CN201610460434.9A
Other languages
Chinese (zh)
Other versions
CN106131312A (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 Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610460434.9A priority Critical patent/CN106131312B/en
Publication of CN106131312A publication Critical patent/CN106131312A/en
Application granted granted Critical
Publication of CN106131312B publication Critical patent/CN106131312B/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/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a method and a device for playing voice messages, wherein the method comprises the steps of receiving a user instruction, and judging whether the user instruction is an instruction for triggering a preset event; if the user instruction is an instruction for triggering a preset event, starting a built-in sensor of the mobile terminal to acquire user action data, wherein the sensor comprises an acceleration sensor and a proximity sensor; receiving a voice message, and judging whether user action data meet preset conditions; and if the user action data meet the preset conditions, playing the voice message in a receiver mode of the mobile terminal. The method and the device can effectively avoid the leakage of the voice message of the user and improve the use experience of the user.

Description

Voice message playing method and device and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for playing a voice message, and a mobile terminal.
Background
When a user uses an instant messaging application (e.g., WeChat) on a mobile terminal to perform a voice call, there is a need to protect a voice message from being leaked, for example, when the user clicks the voice message without using an earphone, the user wants to play the voice message in a handset mode. In the related art, after a user clicks a WeChat voice message, the mobile terminal enables the acceleration sensor and the proximity sensor, and when the acceleration sensor senses that the mobile terminal rotates and the proximity sensor senses that the mobile terminal is close to the ear of the user, the mobile terminal plays the voice message in an earphone mode.
In this way, when the user clicks the WeChat voice message, the acceleration sensor needs a certain time to start for the first time, which causes the voice message to be played by a loudspeaker probabilistically, and the voice message of the user is leaked.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present invention is to provide a method for playing a voice message, which can effectively avoid the voice message leakage of a user and improve the user experience.
Another object of the present invention is to provide a device for playing voice messages.
Another object of the present invention is to provide a mobile terminal.
In order to achieve the above object, an embodiment of the present invention provides a method for playing a voice message, including: receiving a user instruction, and judging whether the user instruction is an instruction for triggering a preset event; if the user instruction is the instruction for triggering the preset event, starting a sensor built in the mobile terminal to acquire user action data, wherein the sensor comprises an acceleration sensor and a proximity sensor; receiving a voice message, and judging whether the user action data meets a preset condition; and if the user action data meet the preset conditions, playing the voice message in a receiver mode of the mobile terminal.
According to the method for playing the voice message provided by the embodiment of the first aspect of the invention, when the user instruction is an instruction for triggering the WeChat voice message, the sensor built in the mobile terminal is started to collect the user action data, and when the user action data meets the preset condition, the voice message is played in the receiver mode of the mobile terminal, so that the voice message leakage of the user can be effectively avoided, and the use experience of the user is improved.
In order to achieve the above object, a device for playing a voice message according to an embodiment of a second aspect of the present invention includes: the first receiving module is used for receiving a user instruction and judging whether the user instruction is an instruction for triggering a preset event; the starting module is used for starting a sensor built in the mobile terminal to acquire user action data when the user instruction is the instruction for triggering the preset event, wherein the sensor comprises an acceleration sensor and a proximity sensor; the second receiving module is used for receiving the voice message and judging whether the user action data meets the preset conditions; and the playing module is used for playing the voice message in a receiver mode of the mobile terminal when the user action data meets the preset condition.
According to the voice message playing device provided by the embodiment of the second aspect of the invention, when the user instruction is an instruction for triggering the WeChat voice message, the built-in sensor of the mobile terminal is started to collect the user action data, and when the user action data meets the preset condition, the voice message is played in the receiver mode of the mobile terminal, so that the voice message leakage of the user can be effectively avoided, and the use experience of the user is improved.
In order to achieve the above object, an embodiment of a third aspect of the present invention provides a mobile terminal, including: a housing; a processor; a memory; a circuit board and a power supply circuit; the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile terminal; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing: receiving a user instruction, and judging whether the user instruction is an instruction for triggering a preset event; if the user instruction is the instruction for triggering the preset event, starting a sensor built in the mobile terminal to acquire user action data, wherein the sensor comprises an acceleration sensor and a proximity sensor; receiving a voice message, and judging whether the user action data meets a preset condition; and if the user action data meet the preset conditions, playing the voice message in a receiver mode of the mobile terminal.
According to the mobile terminal provided by the embodiment of the third aspect of the invention, when the user instruction is an instruction for triggering the WeChat voice message, the sensor built in the mobile terminal is started to collect the user action data, and when the user action data meets the preset condition, the voice message is played in the receiver mode of the mobile terminal, so that the voice message leakage of the user can be effectively avoided, and the use experience of the user is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart illustrating a method for playing a voice message according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for playing a voice message according to another embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for playing a voice message according to another embodiment of the present invention;
fig. 4 is a block diagram of a playing apparatus for voice messages according to an embodiment of the present invention;
fig. 5 is a block diagram of a playing apparatus for voice messages according to another embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a flowchart illustrating a method for playing a voice message according to an embodiment of the present invention. The present embodiment is exemplified in the case where the playback method of the voice message is configured as a playback apparatus of the voice message. The method for playing the voice message may be applied to an instant messaging application program, for example, a wechat application program, where the application program may refer to a software program running on an electronic device, the electronic device may be, for example, a Personal Computer (PC), a cloud device or a mobile device, and the mobile device may be, for example, a smart phone or a tablet Computer.
Referring to fig. 1, the method for playing a voice message may include:
s11: and receiving a user instruction, and judging whether the user instruction is an instruction for triggering a preset event.
It is understood that the user may send a voice message to the other party in an instant messaging application (e.g., WeChat), and the other party user may trigger playing the voice message after receiving the voice message sent by the user, for example, the other party user may click a voice message button on the electronic device side to play the voice message.
The user instruction may be, for example, an instruction for the user to click on the WeChat voice message.
In the embodiment of the present invention, the preset event may be, for example, a WeChat voice message.
In an embodiment of the present invention, the user instruction may be, for example, an instruction triggered by a user touching a screen of the mobile terminal.
In the embodiment of the present invention, for example, a user instruction may be acquired by using a related technology, after the user instruction is acquired, it may be determined whether the user instruction is an instruction for triggering a WeChat voice message, and if the user instruction is determined to be yes, the subsequent steps may be triggered, which is not described herein again.
S12: and if the user instruction is an instruction for triggering a preset event, starting a built-in sensor of the mobile terminal to acquire user action data, wherein the sensor comprises an acceleration sensor and a proximity sensor.
In the embodiment of the present invention, the user action data may be, for example, an angle of rotation of the mobile terminal when the user holds the mobile terminal, or may also be, for example, a distance between the mobile terminal and an ear of the user when the mobile terminal moves, which is not limited to this.
It can be understood that the acceleration sensor may be configured to determine whether the mobile terminal rotates, and the proximity sensor may be configured to determine whether the mobile terminal is in a state close to the ear of the user, and optionally, after the built-in acceleration sensor and the built-in proximity sensor are turned on, the acceleration sensor and the built-in proximity sensor may be set to collect data of the user in real time, so that the acceleration sensor and the proximity sensor can collect data of the user in real time, which is not limited thereto.
Optionally, when the user instruction is an instruction for triggering the wechat voice message, a sensor built in the mobile terminal may be started to collect user action data, including a state whether the mobile terminal rotates and whether the mobile terminal approaches to an ear of the user, and the user action data is reported to the control layer of the wechat application as the user action data, which is not limited to this.
S13: and receiving the voice message, and judging whether the user action data meets a preset condition.
In the embodiment of the present invention, the preset condition may be preset by a built-in program of the mobile terminal, or the preset condition may also be set by a user, which is not limited thereto.
The preset condition may include, for example, a preset angle threshold and a preset distance threshold, and for example, when the rotation angle of the mobile terminal is greater than the preset angle threshold and the distance between the mobile terminal and the ear of the user is less than the preset distance threshold, it is determined that the user action data meets the preset condition, which is not limited to this.
Optionally, referring to fig. 2, in some embodiments, after S13, the method for playing the voice message may further include:
s21: and if the user action data does not meet the preset condition, playing the voice message in a loudspeaker mode of the mobile terminal.
It can be understood that, when the user action data does not satisfy the preset condition, for example, when the rotation angle of the mobile terminal is smaller than the preset angle threshold and the distance between the mobile terminal and the ear of the user is greater than the preset distance threshold, it is determined that the user action data does not satisfy the preset condition, and the voice message is played in the speaker mode of the mobile terminal.
Through when user action data does not satisfy the preset condition, play voice message under mobile terminal's speaker mode, promptly, when the user did not place mobile terminal near the ear, play voice message under speaker mode can guarantee that the user listens clear voice message in real time, effectively promotes user and uses experience.
S14: and if the user action data meet the preset conditions, playing the voice message in a receiver mode of the mobile terminal.
Optionally, when the user action data satisfies a preset condition, for example, when the user picks up the mobile terminal and brings the mobile terminal close to the ear, to prevent the voice message of the user from being leaked, the mobile terminal may be controlled to switch from the speaker mode to the earpiece mode, so as to play the voice message in real time in the earpiece mode of the mobile terminal.
Optionally, referring to fig. 3, in some embodiments, after S14, the method for playing the voice message may further include:
s31: and detecting whether the mobile terminal is in a preset state.
In the embodiment of the invention, the preset state is a screen turning state.
Optionally, a related technology may be adopted to detect whether the mobile terminal is in a screen-off state, and when the mobile terminal is in the screen-off state, the subsequent step is triggered, and when the mobile terminal is not in the screen-off state, the on state of the built-in sensor may be maintained to collect the user action data in real time, or when the mobile terminal is not in the screen-off state and an instruction for triggering the sensor to be turned off by the user is received, the built-in sensor of the mobile terminal may be turned off, which is not limited to this.
S32: and if the mobile terminal is in the preset state, closing a sensor built in the mobile terminal.
In the embodiment of the invention, when the mobile terminal is detected to be in the screen-off state, the sensor built in the mobile terminal is automatically turned off, so that the system power consumption of the mobile terminal can be effectively saved, the cruising ability of the mobile terminal is increased, and the user experience is improved.
In the embodiment, when the user instruction is an instruction for triggering the WeChat voice message, the built-in sensor of the mobile terminal is started to collect the user action data, and when the user action data meet the preset conditions, the voice message is played in the receiver mode of the mobile terminal, so that the voice message leakage of the user can be effectively avoided, and the use experience of the user is improved.
Fig. 4 is a block diagram of a playing apparatus for voice messages according to an embodiment of the present invention. The playing device of the voice message can be realized by software, hardware or a combination of the two.
Referring to fig. 4, the playing device 40 for the voice message may include: a first receiving module 401, a starting module 402, a second receiving module 403, and a playing module 404. Wherein the content of the first and second substances,
the first receiving module 401 is configured to receive a user instruction and determine whether the user instruction is an instruction for triggering a preset event.
Alternatively, the preset event may be, for example, a WeChat voice message.
The starting module 402 is configured to start a sensor built in the mobile terminal to collect user action data when the user instruction is an instruction for triggering a preset event, where the sensor includes an acceleration sensor and a proximity sensor.
The second receiving module 403 is configured to receive the voice message and determine whether the user action data meets a preset condition.
The playing module 404 is configured to play the voice message in an earpiece mode of the mobile terminal when the user action data meets a preset condition.
Optionally, in some embodiments, referring to fig. 5, the apparatus 40 for playing the voice message may further include:
optionally, the playing module 404 is further configured to: and controlling the mobile terminal to be switched from the loudspeaker mode to the earphone mode.
Optionally, the playing module 404 is further configured to: and when the user action data does not meet the preset condition, playing the voice message in a loudspeaker mode of the mobile terminal.
The detecting module 405 is configured to detect whether the mobile terminal is in a preset state.
Optionally, the preset state is a screen turning state.
A closing module 406, configured to close a sensor built in the mobile terminal when the mobile terminal is in a preset state.
It should be noted that the explanation of the embodiment of the playing method for the voice message in the foregoing embodiments of fig. 1 to fig. 3 is also applicable to the playing apparatus for the voice message in the embodiment, and the implementation principle is similar, and is not described herein again.
In the embodiment, when the user instruction is an instruction for triggering the WeChat voice message, the built-in sensor of the mobile terminal is started to collect the user action data, and when the user action data meet the preset conditions, the voice message is played in the receiver mode of the mobile terminal, so that the voice message leakage of the user can be effectively avoided, and the use experience of the user is improved.
The embodiment of the invention also provides a mobile terminal which comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in the space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile terminal; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing:
s11': and receiving a user instruction, and judging whether the user instruction is an instruction for triggering a preset event.
It is understood that the user may send a voice message to the other party in an instant messaging application (e.g., WeChat), and the other party user may trigger playing the voice message after receiving the voice message sent by the user, for example, the other party user may click a voice message button on the electronic device side to play the voice message.
The user instruction may be, for example, an instruction for the user to click on the WeChat voice message.
In the embodiment of the present invention, the preset event may be, for example, a WeChat voice message.
In an embodiment of the present invention, the user instruction may be, for example, an instruction triggered by a user touching a screen of the mobile terminal.
In the embodiment of the present invention, for example, a user instruction may be acquired by using a related technology, after the user instruction is acquired, it may be determined whether the user instruction is an instruction for triggering a WeChat voice message, and if the user instruction is determined to be yes, the subsequent steps may be triggered, which is not described herein again.
S12': and if the user instruction is an instruction for triggering a preset event, starting a built-in sensor of the mobile terminal to acquire user action data, wherein the sensor comprises an acceleration sensor and a proximity sensor.
In the embodiment of the present invention, the user action data may be, for example, an angle of rotation of the mobile terminal when the user holds the mobile terminal, or may also be, for example, a distance between the mobile terminal and an ear of the user when the mobile terminal moves, which is not limited to this.
It can be understood that the acceleration sensor may be configured to determine whether the mobile terminal rotates, and the proximity sensor may be configured to determine whether the mobile terminal is in a state close to the ear of the user, and optionally, after the built-in acceleration sensor and the built-in proximity sensor are turned on, the acceleration sensor and the built-in proximity sensor may be set to collect data of the user in real time, so that the acceleration sensor and the proximity sensor can collect data of the user in real time, which is not limited thereto.
Optionally, when the user instruction is an instruction for triggering the wechat voice message, a sensor built in the mobile terminal may be started to collect user action data, including a state whether the mobile terminal rotates and whether the mobile terminal approaches to an ear of the user, and the user action data is reported to the control layer of the wechat application as the user action data, which is not limited to this.
S13': and receiving the voice message, and judging whether the user action data meets a preset condition.
In the embodiment of the present invention, the preset condition may be preset by a built-in program of the mobile terminal, or the preset condition may also be set by a user, which is not limited thereto.
The preset condition may include, for example, a preset angle threshold and a preset distance threshold, and for example, when the rotation angle of the mobile terminal is greater than the preset angle threshold and the distance between the mobile terminal and the ear of the user is less than the preset distance threshold, it is determined that the user action data meets the preset condition, which is not limited to this.
In another embodiment, the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of:
s21': and if the user action data does not meet the preset condition, playing the voice message in a loudspeaker mode of the mobile terminal.
It can be understood that, when the user action data does not satisfy the preset condition, for example, when the rotation angle of the mobile terminal is smaller than the preset angle threshold and the distance between the mobile terminal and the ear of the user is greater than the preset distance threshold, it is determined that the user action data does not satisfy the preset condition, and the voice message is played in the speaker mode of the mobile terminal.
Through when user action data does not satisfy the preset condition, play voice message under mobile terminal's speaker mode, promptly, when the user did not place mobile terminal near the ear, play voice message under speaker mode can guarantee that the user listens clear voice message in real time, effectively promotes user and uses experience.
S14': and if the user action data meet the preset conditions, playing the voice message in a receiver mode of the mobile terminal.
Optionally, when the user action data satisfies a preset condition, for example, when the user picks up the mobile terminal and brings the mobile terminal close to the ear, to prevent the voice message of the user from being leaked, the mobile terminal may be controlled to switch from the speaker mode to the earpiece mode, so as to play the voice message in real time in the earpiece mode of the mobile terminal.
In another embodiment, the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the steps of:
s31': and detecting whether the mobile terminal is in a preset state.
In the embodiment of the invention, the preset state is a screen turning state.
Optionally, a related technology may be adopted to detect whether the mobile terminal is in a screen-off state, and when the mobile terminal is in the screen-off state, the subsequent step is triggered, and when the mobile terminal is not in the screen-off state, the on state of the built-in sensor may be maintained to collect the user action data in real time, or when the mobile terminal is not in the screen-off state and an instruction for triggering the sensor to be turned off by the user is received, the built-in sensor of the mobile terminal may be turned off, which is not limited to this.
S32': and if the mobile terminal is in the preset state, closing a sensor built in the mobile terminal.
In the embodiment of the invention, when the mobile terminal is detected to be in the screen-off state, the sensor built in the mobile terminal is automatically turned off, so that the system power consumption of the mobile terminal can be effectively saved, the cruising ability of the mobile terminal is increased, and the user experience is improved.
In the embodiment, when the user instruction is an instruction for triggering the WeChat voice message, the built-in sensor of the mobile terminal is started to collect the user action data, and when the user action data meet the preset conditions, the voice message is played in the receiver mode of the mobile terminal, so that the voice message leakage of the user can be effectively avoided, and the use experience of the user is improved.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (13)

1. A method for playing a voice message is characterized by comprising the following steps:
receiving a user instruction, and judging whether the user instruction is an instruction for triggering a voice message;
if the user instruction is the instruction for triggering the voice message, starting a built-in sensor of the mobile terminal to collect user action data, wherein the sensor comprises an acceleration sensor and a proximity sensor;
receiving the voice message and judging whether the user action data meets a preset condition or not;
if the user action data meets the preset conditions, playing the voice message in a receiver mode of the mobile terminal;
the user action data are the rotating angle of the mobile terminal when a user holds the mobile terminal, and the distance between the mobile terminal and the ear of the user when the mobile terminal moves; the preset condition comprises a preset angle threshold value and a preset distance threshold value, the rotating angle of the mobile terminal is larger than the preset angle threshold value, and the distance between the mobile terminal and the ear of the user is smaller than the preset distance threshold value, so that the user action data are judged to meet the preset condition.
2. The method for playing the voice message according to claim 1, wherein before playing the voice message in the handset mode of the mobile terminal, further comprising:
controlling the mobile terminal to switch from a speaker mode to the earpiece mode.
3. The method for playing voice message according to claim 2, wherein after determining whether the user action data satisfies a predetermined condition, the method further comprises:
and if the user action data does not meet the preset condition, playing the voice message in the loudspeaker mode of the mobile terminal.
4. The method for playing voice message according to claim 1, wherein after the starting of the sensor built in the mobile terminal for collecting the user action data, the method further comprises:
detecting whether the mobile terminal is in a preset state or not;
and if the mobile terminal is in the preset state, closing a sensor built in the mobile terminal.
5. The method for playing voice message according to claim 4, wherein the preset state is a screen-turning state.
6. The method for playing a voice message according to claim 1, wherein the voice message is a WeChat voice message.
7. An apparatus for playing a voice message, comprising:
the first receiving module is used for receiving a user instruction and judging whether the user instruction is an instruction for triggering a voice message;
the starting module is used for starting a sensor built in the mobile terminal to acquire user action data when the user instruction is the instruction for triggering the voice message, wherein the sensor comprises an acceleration sensor and a proximity sensor;
the second receiving module is used for receiving the voice message and judging whether the user action data meets a preset condition;
the playing module is used for playing the voice message in a receiver mode of the mobile terminal when the user action data meets the preset condition;
the user action data are the rotating angle of the mobile terminal when a user holds the mobile terminal, and the distance between the mobile terminal and the ear of the user when the mobile terminal moves; the preset condition comprises a preset angle threshold value and a preset distance threshold value, the rotating angle of the mobile terminal is larger than the preset angle threshold value, and the distance between the mobile terminal and the ear of the user is smaller than the preset distance threshold value, so that the user action data are judged to meet the preset condition.
8. The apparatus for playing back a voice message according to claim 7, wherein the playing back module is further configured to:
controlling the mobile terminal to switch from a speaker mode to the earpiece mode.
9. The apparatus for playing back a voice message according to claim 8, wherein the playing back module is further configured to:
and when the user action data does not meet the preset condition, playing the voice message in the loudspeaker mode of the mobile terminal.
10. The apparatus for playing a voice message according to claim 7, further comprising:
the detection module is used for detecting whether the mobile terminal is in a preset state or not;
and the closing module is used for closing the built-in sensor of the mobile terminal when the mobile terminal is in the preset state.
11. The apparatus for playing back a voice message according to claim 10, wherein the preset state is a screen-turning state.
12. The apparatus for playing a voice message according to claim 7, wherein the voice message is a WeChat voice message.
13. A mobile terminal, comprising:
a housing;
a processor;
a memory;
a circuit board and a power supply circuit;
the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile terminal; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing:
receiving a user instruction, and judging whether the user instruction is an instruction for triggering a voice message;
if the user instruction is the instruction for triggering the voice message, starting a built-in sensor of the mobile terminal to collect user action data, wherein the sensor comprises an acceleration sensor and a proximity sensor;
receiving the voice message and judging whether the user action data meets a preset condition or not;
if the user action data meets the preset conditions, playing the voice message in a receiver mode of the mobile terminal;
the user action data are the rotating angle of the mobile terminal when a user holds the mobile terminal, and the distance between the mobile terminal and the ear of the user when the mobile terminal moves; the preset condition comprises a preset angle threshold value and a preset distance threshold value, the rotating angle of the mobile terminal is larger than the preset angle threshold value, and the distance between the mobile terminal and the ear of the user is smaller than the preset distance threshold value, so that the user action data are judged to meet the preset condition.
CN201610460434.9A 2016-06-21 2016-06-21 Voice message playing method and device and mobile terminal Active CN106131312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610460434.9A CN106131312B (en) 2016-06-21 2016-06-21 Voice message playing method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610460434.9A CN106131312B (en) 2016-06-21 2016-06-21 Voice message playing method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106131312A CN106131312A (en) 2016-11-16
CN106131312B true CN106131312B (en) 2020-01-10

Family

ID=57269313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610460434.9A Active CN106131312B (en) 2016-06-21 2016-06-21 Voice message playing method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106131312B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106782498B (en) * 2016-11-30 2019-12-10 Oppo广东移动通信有限公司 Voice information playing method and device and terminal
CN106899491A (en) * 2017-02-06 2017-06-27 努比亚技术有限公司 A kind of method of mobile terminal and treatment voice messaging
CN106878557B (en) * 2017-02-16 2019-08-27 Oppo广东移动通信有限公司 Control method, device and the mobile terminal that mobile terminal sound plays
CN108762711A (en) * 2018-05-17 2018-11-06 Oppo广东移动通信有限公司 Method, apparatus, electronic device and the storage medium of screen sounding
CN109144465A (en) * 2018-08-30 2019-01-04 Oppo广东移动通信有限公司 Speech playing method, device, wearable device and storage medium
CN116489272B (en) * 2023-06-13 2024-03-15 荣耀终端有限公司 Voice message playing method and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931686A (en) * 2009-06-19 2010-12-29 宏达国际电子股份有限公司 Mobile device capable of automatically switching calling mode and method for switching calling mode
CN103200483A (en) * 2013-04-09 2013-07-10 北京兴科迪科技有限公司 Bluetooth headset of capacitance distance sensing switch control and vehicle provided with headset
CN103297594A (en) * 2012-02-28 2013-09-11 索尼爱立信移动通讯有限公司 Method and device for automatic switchover of call modes
CN103811033A (en) * 2012-11-14 2014-05-21 北京新媒传信科技有限公司 Method and device for controlling voice playing modes
CN103985400A (en) * 2014-04-18 2014-08-13 青岛尚慧信息技术有限公司 Audio file playing system
CN104521224A (en) * 2012-05-23 2015-04-15 高通股份有限公司 Systems and methods for group communication using a mobile device with mode transition based on motion
CN104683557A (en) * 2013-12-02 2015-06-03 中兴通讯股份有限公司 Method and device for automatically switching call mode of mobile terminal
CN105515942A (en) * 2015-11-26 2016-04-20 掌赢信息科技(上海)有限公司 Method for playing voice message automatically and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8195220B2 (en) * 2008-02-01 2012-06-05 Lg Electronics Inc. User interface for mobile devices
CN103139381B (en) * 2013-01-28 2014-08-20 广东欧珀移动通信有限公司 Control method and system of mobile communication terminal
CN103984518A (en) * 2014-04-18 2014-08-13 青岛尚慧信息技术有限公司 Intelligent mobile terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931686A (en) * 2009-06-19 2010-12-29 宏达国际电子股份有限公司 Mobile device capable of automatically switching calling mode and method for switching calling mode
CN103297594A (en) * 2012-02-28 2013-09-11 索尼爱立信移动通讯有限公司 Method and device for automatic switchover of call modes
CN104521224A (en) * 2012-05-23 2015-04-15 高通股份有限公司 Systems and methods for group communication using a mobile device with mode transition based on motion
CN103811033A (en) * 2012-11-14 2014-05-21 北京新媒传信科技有限公司 Method and device for controlling voice playing modes
CN103200483A (en) * 2013-04-09 2013-07-10 北京兴科迪科技有限公司 Bluetooth headset of capacitance distance sensing switch control and vehicle provided with headset
CN104683557A (en) * 2013-12-02 2015-06-03 中兴通讯股份有限公司 Method and device for automatically switching call mode of mobile terminal
CN103985400A (en) * 2014-04-18 2014-08-13 青岛尚慧信息技术有限公司 Audio file playing system
CN105515942A (en) * 2015-11-26 2016-04-20 掌赢信息科技(上海)有限公司 Method for playing voice message automatically and electronic equipment

Also Published As

Publication number Publication date
CN106131312A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
CN106131312B (en) Voice message playing method and device and mobile terminal
CN108683798B (en) Sound output control method and mobile terminal
CN107329559B (en) Application program control method, device, terminal and storage medium
CN105117211B (en) The method and device of prompting message
US8621633B2 (en) Mobile terminal to prevent virus infection and method of controlling operation of the mobile terminal
CN112203206B (en) Microphone hole blockage detection method and related product
CN102377871A (en) Information processing equipment and control method thereof
CN108377290B (en) Audio stream processing method, mobile terminal and medium product
CN103838577A (en) Breaking news processing method and terminal
CN109089201B (en) Microphone hole blockage detection method and related product
CN108551530B (en) Incoming call processing method and device, readable storage medium and mobile terminal
CN108833683B (en) Dynamic antenna adjustment implementation method and related product
CN107135305B (en) Message reminding method, device and terminal
CN113039774B (en) Method and device for processing application program, electronic equipment and storage medium
CN108769364B (en) Call control method, device, mobile terminal and computer readable medium
CN109040912B (en) Plugging hole treatment method and related product
CN108449787B (en) Connection control method and device and electronic equipment
CN106844057B (en) Data processing method and device and mobile terminal
CN105653903A (en) Application program authority management method and device
CN110989816B (en) Application processing method and device and storage medium
CN111966425A (en) Process cleaning method and device, storage medium and mobile terminal
CN113905302B (en) Method and device for triggering prompt message and earphone
CN109040937B (en) Microphone blockage reminding method and related device
CN112771889A (en) Audio channel replacing method and related equipment
CN107682579B (en) Incoming call reminding control method and device, storage medium and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523859 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant