CN106878557B - Control method, device and the mobile terminal that mobile terminal sound plays - Google Patents

Control method, device and the mobile terminal that mobile terminal sound plays Download PDF

Info

Publication number
CN106878557B
CN106878557B CN201710083957.0A CN201710083957A CN106878557B CN 106878557 B CN106878557 B CN 106878557B CN 201710083957 A CN201710083957 A CN 201710083957A CN 106878557 B CN106878557 B CN 106878557B
Authority
CN
China
Prior art keywords
voice
event
loudspeaker
play
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201710083957.0A
Other languages
Chinese (zh)
Other versions
CN106878557A (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 CN201710083957.0A priority Critical patent/CN106878557B/en
Publication of CN106878557A publication Critical patent/CN106878557A/en
Application granted granted Critical
Publication of CN106878557B publication Critical patent/CN106878557B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

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

Abstract

The embodiment of the invention discloses control method, device and mobile terminals that a kind of mobile terminal sound plays.The described method includes: receiving the voice play instruction for acting on voice play control, and open the proximity sensor and acceleration transducer for supporting confirmation voice play mode;If determining that the angle of the acceleration transducer data instruction mobile terminal plane and horizontal plane that receive in the time is greater than the first setting value in setting play mode, and do not receive that proximity sensor reports close to event, then generate the event for preventing loudspeaker from playing voice;It executes the prevention loudspeaker and plays operation corresponding to the event of voice, to prevent to play voice by loudspeaker.Technical solution provided in an embodiment of the present invention can prevent mobile terminal from playing voice by loudspeaker during user is close to mobile terminal earpiece.

Description

Control method, device and the mobile terminal that mobile terminal sound plays
Technical field
The present embodiments relate to the controlling parties that voice play-back technology field more particularly to a kind of mobile terminal sound play Method, device and mobile terminal.
Background technique
Various sensors are integrated in the mobile terminals such as mobile phone, for assisting the realization of mobile phone various functions, for example, close Sensor can be used for determining that the distance between mobile phone and user, acceleration transducer can be used for determining the angle etc. of mobile phone rotation Deng.
Currently, the voice broadcast mode of mobile terminal generally comprises, earpiece is played and loudspeaker plays two ways.Not With demand scene under can suitably select using earpiece play or loudspeaker play, for example, mobile phone receive user click it is micro- After believing the wechat voice play instruction that voice generates, if mobile phone is in horizontal positioned or intersects with the sight of user, it can lead to Loudspeaker broadcasting is crossed, if mobile phone can be played when being close to the users in one's ear by earpiece.The voice of mobile terminal in the prior art is broadcast Control mode existing defects are put, need to improve.
Summary of the invention
The embodiment of the present invention provides a kind of control method, device and mobile terminal that mobile terminal sound plays, and can hinder Only mobile terminal plays voice by loudspeaker during user is close to mobile terminal earpiece.
In a first aspect, the embodiment of the invention provides the control methods that a kind of mobile terminal sound plays, comprising:
The voice play instruction for acting on voice play control is received, and is opened for supporting confirmation voice play mode Proximity sensor and acceleration transducer;
If setting play mode determine received in the time acceleration transducer data instruction mobile terminal plane with The angle of horizontal plane is greater than the first setting value, and do not receive that proximity sensor reports close to event, then generate prevention loudspeaking Device plays the event of voice, and the play mode that sets determines the time to be preset from when receiving voice play instruction etc. Sensing data to be received, to determine the maximum latency of voice play mode according to the sensing data;
It executes the prevention loudspeaker and plays operation corresponding to the event of voice, to prevent to play language by loudspeaker Sound.
In second aspect, the embodiment of the invention provides the control devices that a kind of mobile terminal sound plays, comprising:
Sensor opening module for receiving the voice play instruction for acting on voice play control, and is opened for branch Hold the proximity sensor and acceleration transducer of confirmation voice play mode;
Loudspeaker broadcast event generation module is prevented, if for determining the acceleration received in the time in setting play mode The angle for spending sensing data instruction mobile terminal plane and horizontal plane is greater than the first setting value, and does not receive proximity sensor Report close to event, then generate the event for preventing loudspeaker from playing voice, the play mode that sets determines that the time is preparatory Setting from when receiving voice play instruction wait receiving sensor data, to determine that voice is broadcast according to the sensing data The maximum latency of mode playback;
Loudspeaker, which plays, prevents module, plays operation corresponding to the event of voice for executing the prevention loudspeaker, To prevent to play voice by loudspeaker.
In the third aspect, the embodiment of the invention provides a kind of mobile terminal, including memory, processor and it is stored in On reservoir and the computer program that can run on a processor, the processor realize following step when executing the computer program It is rapid:
The voice play instruction for acting on voice play control is received, and is opened for supporting confirmation voice play mode Proximity sensor and acceleration transducer;
If setting play mode determine received in the time acceleration transducer data instruction mobile terminal plane with The angle of horizontal plane is greater than the first setting value, and do not receive that proximity sensor reports close to event, then generate prevention loudspeaking Device plays the event of voice, and the play mode that sets determines the time to be preset from when receiving voice play instruction etc. Sensing data to be received, to determine the maximum latency of voice play mode according to the sensing data;
It executes the prevention loudspeaker and plays operation corresponding to the event of voice, to prevent to play language by loudspeaker Sound.
The embodiment of the present invention, when receiving the voice for acting on voice play control broadcasting season, is opened by mobile terminal It enables in the proximity sensor and acceleration transducer of supporting voice play mode, if determined in the time in setting play mode The angle of the acceleration transducer data instruction mobile terminal plane and horizontal plane that receive is greater than the first setting value, and does not receive To proximity sensor report close to event, then generate the event for preventing loudspeaker from playing voice, the setting play mode is true It fixes time to be preset from receiving sensor data are waited when receiving voice play instruction, according to the sensor number According to the maximum latency of determining voice play mode, and executes the prevention loudspeaker and play behaviour corresponding to the event of voice Make, to prevent to play voice by loudspeaker, mobile terminal can be prevented to lead to during user is close to mobile terminal earpiece It crosses loudspeaker and plays voice.
Detailed description of the invention
Fig. 1 is the flow chart for the control method that a kind of mobile terminal sound provided by one embodiment of the present invention plays;
Fig. 2 is the flow chart for the control method that a kind of mobile terminal sound provided by one embodiment of the present invention plays;
Fig. 3 is the flow chart for the control method that a kind of mobile terminal sound provided by one embodiment of the present invention plays;
Fig. 4 is the structural representation for the control device that a kind of mobile terminal sound provided by one embodiment of the present invention plays Figure;
Fig. 5 is a kind of structural schematic diagram of mobile terminal provided by one embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawing to of the invention specific real Example is applied to be described in further detail.It is understood that specific embodiment described herein is used only for explaining the present invention, Rather than limitation of the invention.It also should be noted that illustrating only for ease of description, in attached drawing related to the present invention Part rather than full content.It should be mentioned that some exemplary realities before exemplary embodiment is discussed in greater detail It applies example and is described as the processing or method described as flow chart.Although operations (or step) are described as sequence by flow chart Processing, but many of these operations can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of operations It can be rearranged.The processing can be terminated when its operations are completed, be not included in attached drawing it is also possible to have Additional step.The processing can correspond to method, function, regulation, subroutine, subprogram etc..
Fig. 1 gives the process for the control method that a kind of mobile terminal sound provided by one embodiment of the present invention plays Figure, the method for the present embodiment can be executed by the control device that mobile terminal sound plays, the device can by hardware and/or The mode of software realizes that described device can be used as the inside that the mobile terminal is arranged in mobile terminal a part.
As shown in Figure 1, the control method that mobile terminal sound provided in this embodiment plays the following steps are included:
Step 101, reception act on the voice play instruction of voice play control, and open for supporting confirmation voice to broadcast The proximity sensor and acceleration transducer of mode playback.
Currently, being generally provided with wechat, QQ, microblogging, call, game, video player etc. in the mobile terminals such as mobile phone Application program with voice play function.User, which is received, in the above-mentioned application program of mobile terminal acts on voice play control Phonetic order when, or before receiving the voice play instruction for acting on voice play control, it is predicted that user will When the voice play control of effect current application program, opens the proximity sensor for supporting confirmation voice play mode and add Velocity sensor.Wherein, the method that the prediction user will act on voice play control can be with are as follows: detects current display circle It include voice play control in face.
The voice play control can be the voice icon comprising voice messaging in wechat, QQ or microblogging, call Hands-free icon in, voice play mode switching icon in game or video player etc..
The voice play mode includes that earpiece plays and loudspeaker broadcasting.
The acceleration transducer is used to detect mobile terminal plane and whether the angle of horizontal plane is greater than the first setting value. Whether the proximity sensor is for detecting user's ear or the distance between face and mobile terminal earpiece less than the second setting Value.
Illustratively, current application program is wechat, acts on phonogram target voice play instruction receiving user When, open proximity sensor and acceleration transducer.
Illustratively, current application program is talk application and current play mode is the loudspeaking by excessively primary hands-free icon Device play mode, then when receiving user again and acting on the voice play instruction of hands-free icon, open proximity sensor and Acceleration transducer.
Step 102 judges the acceleration transducer data instruction whether received in the time determined in setting play mode The angle of mobile terminal plane and horizontal plane is greater than the first setting value, and do not receive that proximity sensor reports close to event, If so, 103 are thened follow the steps, it is no to then follow the steps 105.
The play mode that sets determines the time to be preset from the biography to be received such as when receiving voice play instruction Sensor data, to determine the maximum latency of voice play mode according to the sensing data.For example, setting play mode Determine that the time is 0.5 second.The sensing data includes proximity sensor data and acceleration transducer data.Determining voice After play mode, then start to play voice, is to be played if loudspeaker plays using loudspeaker if voice play mode, if voice Play mode is that earpiece is then played by earpiece.
If acceleration transducer data indicate that the angle of mobile terminal plane and horizontal plane is greater than the first setting value and approaches Sensing data indicates the distance between user and mobile terminal earpiece less than the second setting value, then it is assumed that has met earpiece and has broadcast The condition put then it is determined that play mode is earpiece play mode, and plays voice by earpiece.Wherein, proximity sensor number According to instruction the distance between user and mobile terminal earpiece less than the second setting value when, proximity sensor generation close to event and on Offer upper layer.
In mobile terminal after user clicks voice play control when being in loudspeaker play mode, if user is not desired to The people of surrounding is allowed to hear played voice messaging, then by mobile terminal movement and can rotate in one's ear, it is desirable to mobile terminal Voice is played by earpiece.But this movement rotation process, which needs user to determine in the time in setting play mode, to be completed, Voice can be played from loudspeaker and be switched to earpiece.If user action is slow or inherently slower for some action User, such as the old,weak,sick and disabled's special population, if determining in setting play mode without completing operation in the time, then moving Dynamic terminal will directly adopt loudspeaker broadcasting, revealed user expect protection voice messaging, seriously affect the experience of user.
Step 103 generates the event for preventing loudspeaker from playing voice.
If setting play mode determine received in the time acceleration transducer data instruction mobile terminal plane with The angle of horizontal plane is greater than the first setting value, and do not receive that proximity sensor reports close to event, then generate prevention loudspeaking Device plays the event of voice, can prevent user from determining in setting play mode and not completed in the time by mobile terminal placement in one's ear Operation when, cause mobile terminal directly adopt loudspeaker broadcasting, leakage user expect protection voice messaging the problem of.
Step 104 executes operation corresponding to the event for preventing loudspeaker from playing voice, to prevent to pass through loudspeaker Play voice.
Step 105 judges the acceleration transducer data instruction whether received in the time determined in setting play mode The angle of mobile terminal plane and horizontal plane is greater than the first setting value, and receive that proximity sensor reports close to event, if It is to then follow the steps 106, otherwise terminates process.
If setting play mode determine received in the time acceleration transducer data instruction mobile terminal plane with The angle of horizontal plane is greater than the first setting value, and receive that proximity sensor reports close to event, then it is determined that voice plays Mode is earpiece play mode, directly plays voice by the earpiece of mobile terminal.
Step 106 plays voice by the earpiece of mobile terminal.
Step 107 terminates.
The control method that mobile terminal sound provided in this embodiment plays acts on language receiving by mobile terminal When the voice of sound play control plays season, the proximity sensor and acceleration sensing for supporting voice play mode are opened Device, if determining the acceleration transducer data instruction mobile terminal plane and level received in the time in setting play mode The angle in face is greater than the first setting value, and do not receive that proximity sensor reports close to event, then generate and loudspeaker prevented to broadcast The event of voice is put, and executes the prevention loudspeaker and plays operation corresponding to the event of voice, to prevent to pass through loudspeaker Voice is played, mobile terminal can be prevented to play voice by loudspeaker during user is close to mobile terminal earpiece.
Fig. 2 gives the process for the control method that a kind of mobile terminal sound provided by one embodiment of the present invention plays Figure.As shown in Fig. 2, method provided in this embodiment the following steps are included:
Step 201, reception act on the voice play instruction of voice play control, and open for supporting confirmation voice to broadcast The proximity sensor and acceleration transducer of mode playback.
Step 202 judges the acceleration transducer data instruction whether received in the time determined in setting play mode The angle of mobile terminal plane and horizontal plane is greater than the first setting value, and do not receive that proximity sensor reports close to event, If so, 203 are thened follow the steps, it is no to then follow the steps 205.
Step 203, generate it is virtual close to event.
If setting play mode determine received in the time acceleration transducer data instruction mobile terminal plane with The angle of horizontal plane is greater than the first setting value, and do not receive that proximity sensor reports close to event, then generating a void It is quasi- close to event, described virtual also characterizes close to event between proximity sensor data instruction user and mobile terminal earpiece Distance less than the second setting value.The acceleration transducer received in the time is determined in setting play mode if being specifically as follows When data indicate that the angle of mobile terminal plane and horizontal plane is greater than the first setting value, detects and do not receive on proximity sensor Report close to event, then generate one it is virtual close to event.
Step 204, triggering are described virtual to play voice close to event, and by earpiece.
Trigger it is described virtual close to event, by it is described it is virtual be reported to upper layer close to event, play mould first to determine Formula is earpiece play mode, and plays voice by earpiece.
Step 205 judges the acceleration transducer data instruction whether received in the time determined in setting play mode The angle of mobile terminal plane and horizontal plane is greater than the first setting value, and receive that proximity sensor reports close to event, if It is to then follow the steps 206, otherwise terminates process.
If setting play mode determine received in the time acceleration transducer data instruction mobile terminal plane with The angle of horizontal plane is greater than the first setting value, and receive that proximity sensor reports close to event, then it is determined that voice plays Mode is earpiece play mode, directly plays voice by the earpiece of mobile terminal.
Step 206 plays voice by the earpiece of mobile terminal.
Step 207 terminates.
Method provided in this embodiment, through mobile terminal when receiving the voice for acting on voice play control broadcasting When enabling, the proximity sensor and acceleration transducer for supporting voice play mode are opened, if true in setting play mode The angle of the acceleration transducer data instruction mobile terminal plane and horizontal plane that receive in fixing time is greater than the first setting value, And do not receive that proximity sensor reports close to event, then generate virtual close to event, trigger described virtual close to thing Part, and voice is played by earpiece, mobile terminal can be prevented to pass through loudspeaking during user is close to mobile terminal earpiece Device plays voice.
It further, can be the following steps are included: if described virtual close to the second setting after event triggering In time, do not receive that proximity sensor reports also close to event, then trigger far from event, to be led to according to separate the event It crosses loudspeaker and plays voice.Specifically can trigger it is described it is virtual close to event when, start timer, reach the in timer When two setting times, do not receive that proximity sensor reports also close to event, then trigger far from event.Wherein, described second Setting time can be 0.3 second.The reason of being arranged in this way is: after triggering far from event, it is separate to be considered as mobile terminal User in one's ear, plays so that voice play mode is switched to loudspeaker, then the normal play of voice will not be influenced, avoids After user acts on voice play control, the long period just starts to play voice.
Fig. 3 gives the process for the control method that a kind of mobile terminal sound provided by one embodiment of the present invention plays Figure.As shown in figure 3, method provided in this embodiment the following steps are included:
Step 301, reception act on the voice play instruction of voice play control, and open for supporting confirmation voice to broadcast The proximity sensor and acceleration transducer of mode playback.
Step 302 judges the acceleration transducer data instruction whether received in the time determined in setting play mode The angle of mobile terminal plane and horizontal plane is greater than the first setting value, and do not receive that proximity sensor reports close to event, If so, 303 are thened follow the steps, it is no to then follow the steps 306.
Step 303 generates the event for postponing to determine voice play mode.
If setting play mode determine received in the time acceleration transducer data instruction mobile terminal plane with The angle of horizontal plane is greater than the first setting value, and do not receive that proximity sensor reports close to event, then it is true to generate delay The event of attribute sound play mode.
Step 304 judges whether the current time obtained from system meets the setting play mode and determine the time, if It is to then follow the steps 305, otherwise continues to execute step 304.
It receives user specifically, may determine that the current time obtained from system subtracts and acts on voice play control Whether the difference of the time of voice play instruction, which is more than or equal to the setting play mode, determines the time, for example whether being greater than Or it is equal to 0.5 second.Illustratively, if receive voice play instruction time be 11 points 0 second 10 minutes, from system obtain be The current time of system be 11 points 0.5 second 10 minutes, then current time meets the setting play mode and determines the time.
Step 305, the current time that will acquire reset to the time before elapsing the first setting time forward, with delay It determines the time of voice play mode, prevents to play voice by loudspeaker.For example, the first setting time is 0.3 second.
Illustratively, above-mentioned current time is reset at 11 points 10 minutes and 0.2 second, then the current time after resetting is unsatisfactory for The setting play mode determines the time, and there are also 0.3 second times to determine voice play mode, is equivalent to and delays determining voice The time of play mode can prevent to play voice by loudspeaker before 0.8 second 10 minutes at true 11 points, extend waiting Receive the time of proximity sensor data.
Step 306 judges the acceleration transducer data instruction whether received in the time determined in setting play mode The angle of mobile terminal plane and horizontal plane is greater than the first setting value, and receive that proximity sensor reports close to event, if It is to then follow the steps 307, otherwise terminates process.
If setting play mode determine received in the time acceleration transducer data instruction mobile terminal plane with The angle of horizontal plane is greater than the first setting value, and receive that proximity sensor reports close to event, then it is determined that voice plays Mode is earpiece broadcasting, directly plays voice by the earpiece of mobile terminal.
Step 307 plays voice by the earpiece of mobile terminal.
Step 308 terminates.
Method provided in this embodiment, through mobile terminal when receiving the voice for acting on voice play control broadcasting When enabling, the proximity sensor and acceleration transducer for supporting voice play mode are opened, if true in setting play mode The angle of the acceleration transducer data instruction mobile terminal plane and horizontal plane that receive in fixing time is greater than the first setting value, And do not receive that proximity sensor reports close to event, then generate the event for postponing to determine voice play mode, detecting When the current time obtained from system meets the setting play mode and determines the time, the current time that will acquire reset to Time before the first setting time of preceding passage can prevent mobile terminal from existing to postpone to determine the time of voice play mode User is close to playing voice by loudspeaker during mobile terminal earpiece.
It further, can be the following steps are included: if meeting setting again after current time executes reset operation When play mode determines the time, do not receive that proximity sensor reports also close to event, then voice is played by loudspeaker.Show Example property, if resetting within 0.5 second 10 minutes at 11 points after 0.2 second 10 minutes for receive 11 points of system time, if current time from 11 points when reaching within 0.2 second 10 minutes 11: 0.5 10: again, do not receive that proximity sensor reports also close to event, then really Attribute sound play mode is loudspeaker play mode, plays voice by loudspeaker.The reason of being arranged in this way is: if when current Between execute and meet setting play mode again when determining the time after reset operation, do not receive that proximity sensor reports also connects Nearly event is considered as the not close user of mobile terminal in one's ear, plays so that voice play mode is switched to loudspeaker, that The normal play that will not influence voice avoids after user acts on voice play control, and the long period just starts to broadcast Put voice.
Fig. 4 is the structural representation for the control device that a kind of mobile terminal sound provided by one embodiment of the present invention plays Figure, the device can be implemented by software and/or hardware, and integrate in the terminal.As shown in figure 4, the device includes that sensor is opened It opens module 41, loudspeaker broadcast event generation module 42 and loudspeaker is prevented to play prevention module 43.
The sensor opening module 41 for receiving the voice play instruction for acting on voice play control, and is opened For supporting the proximity sensor and acceleration transducer of confirmation voice play mode;
The prevention loudspeaker broadcast event generation module 42, if being received for being determined in the time in setting play mode Acceleration transducer data instruction mobile terminal plane and the angle of horizontal plane be greater than the first setting value, and do not receive close Sensor report close to event, then generate the event for preventing loudspeaker from playing voice, the setting play mode determines the time To be preset from receiving sensor data are waited when receiving voice play instruction, to be determined according to the sensing data The maximum latency of voice play mode;
The loudspeaker, which plays, prevents module 43, plays corresponding to the event of voice for executing the prevention loudspeaker Operation, to prevent to play voice by loudspeaker.
On the basis of the above embodiments, the prevention loudspeaker broadcast event generation module is specifically used for:
If setting play mode determine received in the time acceleration transducer data instruction mobile terminal plane with The angle of horizontal plane is greater than the first setting value, and do not receive that proximity sensor reports close to event, then generate virtual connects Nearly event;
The prevention loudspeaker playing module is specifically used for:
It triggers and described virtual plays voice close to event, and by earpiece.
On the basis of the above embodiments, the prevention loudspeaker broadcast event generation module is specifically used for:
If setting play mode determine received in the time acceleration transducer data instruction mobile terminal plane with The angle of horizontal plane is greater than the first setting value, and do not receive that proximity sensor reports close to event, then generate delay and determine The event of voice play mode;
The prevention loudspeaker playing module is specifically used for:
When detecting that the current time obtained from system meets the setting play mode and determines the time, will acquire Current time resets to the time before elapsing the first setting time forward, to postpone to determine the time of voice play mode, resistance Voice is only played by loudspeaker.
On the basis of the above embodiments, described device further include:
First loudspeaker playing module, if for trigger it is described virtual close to the second setting time after event It is interior, do not receive that proximity sensor reports also close to event, then trigger far from event, raised with being passed through according to separate the event Sound device plays voice.
On the basis of the above embodiments, described device further include:
Second loudspeaker playing module, if playing mould for meeting setting again after current time executes reset operation When formula determines the time, do not receive that proximity sensor reports also close to event, then voice is played by loudspeaker.
Device provided in this embodiment, by opening when receiving the voice for acting on voice play control broadcasting season It enables in the proximity sensor and acceleration transducer of supporting voice play mode, if determined in the time in setting play mode The angle of the acceleration transducer data instruction mobile terminal plane and horizontal plane that receive is greater than the first setting value, and does not receive To proximity sensor report close to event, then generate the event for preventing loudspeaker from playing voice, the setting play mode is true It fixes time to be preset from receiving sensor data are waited when receiving voice play instruction, according to the sensor number According to the maximum latency of determining voice play mode, and executes the prevention loudspeaker and play behaviour corresponding to the event of voice Make, to prevent to play voice by loudspeaker, mobile terminal can be prevented to lead to during user is close to mobile terminal earpiece It crosses loudspeaker and plays voice.
Fig. 5 is a kind of structural schematic diagram of mobile terminal provided by one embodiment of the present invention, which can wrap The control device that the mobile terminal sound of any embodiment of that present invention offer plays is included, as shown in figure 5, the mobile terminal can wrap Include: memory 501, central processing unit (Central Processing Unit, CPU) 502 (also known as processor, hereinafter referred to as CPU), the memory 501, for storing executable program code;The processor 502 is by reading the memory 501 The executable program code of middle storage runs program corresponding with the executable program code, for executing: receiving and makees For the voice play instruction of voice play control, and opens the proximity sensor for supporting confirmation voice play mode and add Velocity sensor;If determining that the acceleration transducer data received in the time indicate mobile terminal plane in setting play mode Be greater than the first setting value with the angle of horizontal plane, and do not receive that proximity sensor reports close to event, then generate prevention and raise Sound device plays the event of voice, and the play mode that sets determines the time to be preset from when receiving voice play instruction Receiving sensor data are waited, to determine the maximum latency of voice play mode according to the sensing data;Execute institute Operation corresponding to the event for preventing loudspeaker from playing voice is stated, to prevent to play voice by loudspeaker.
The mobile terminal further include: Peripheral Interface 503, RF (Radio Frequency, radio frequency) circuit 505, audio-frequency electric Road 506, loudspeaker 511, power management chip 508, input/output (I/O) subsystem 509, touch screen 512, other input/controls Control equipment 510 and outside port 504 further include that proximity sensor and these components of acceleration transducer (not shown) are logical One or more communication bus or signal wire 507 are crossed to communicate.
It should be understood that illustrating the example that mobile terminal 500 is only mobile terminal, and mobile terminal 500 It can have than shown in the drawings more or less component, can combine two or more components, or can be with It is configured with different components.Various parts shown in the drawings can include one or more signal processings and/or dedicated It is realized in the combination of hardware, software or hardware and software including integrated circuit.
Just the mobile terminal provided in this embodiment for controlling mobile terminal sound broadcasting is described in detail below, The mobile terminal takes the mobile phone as an example.
Memory 501, the memory 501 can be accessed by CPU502, Peripheral Interface 503 etc., and the memory 501 can It can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory, Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU502 and deposited by Peripheral Interface 503, the Peripheral Interface 503 Reservoir 501.
I/O subsystem 509, the I/O subsystem 509 can be by the input/output peripherals in equipment, such as touch screen 512 With other input/control devicess 510, it is connected to Peripheral Interface 503.I/O subsystem 509 may include 5091 He of display controller For controlling one or more input controllers 5092 of other input/control devicess 510.Wherein, one or more input controls Device 5092 processed receives electric signal from other input/control devicess 510 or sends electric signal to other input/control devicess 510, Other input/control devicess 510 may include physical button (push button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole clicks idler wheel.It is worth noting that input controller 5092 can with it is following any one connect: keyboard, infrared port, The indicating equipment of USB interface and such as mouse.
Touch screen 512, the touch screen 512 are the input interface and output interface between user terminal and user, can It is shown to user depending on output, visual output may include figure, text, icon, video etc..
Display controller 5091 in I/O subsystem 509 receives electric signal from touch screen 512 or sends out to touch screen 512 Electric signals.Touch screen 512 detects the contact on touch screen, and the contact that display controller 5091 will test is converted to and is shown The interaction of user interface object on touch screen 512, i.e. realization human-computer interaction, the user interface being shown on touch screen 512 Object can be the icon of running game, the icon for being networked to corresponding network etc..It is worth noting that equipment can also include light Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuit 505 is mainly used for establishing the communication of mobile phone Yu wireless network (i.e. network side), realizes mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuit 505 receives and sends RF letter Number, RF signal is also referred to as electromagnetic signal, and RF circuit 505 converts electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuit 505 may include for executing The known circuit of these functions comprising but it is not limited to antenna system, RF transceiver, one or more amplifiers, tuner, one A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 506 is mainly used for receiving audio data from Peripheral Interface 503, which is converted to telecommunications Number, and the electric signal is sent to loudspeaker 511.
Loudspeaker 511 is reduced to sound for mobile phone to be passed through RF circuit 505 from the received voice signal of wireless network And the sound is played to user.
Power management chip 508, the hardware for being connected by CPU502, I/O subsystem and Peripheral Interface 503 are supplied Electricity and power management.
Method provided by any embodiment of the invention can be performed in above-mentioned mobile terminal, has the corresponding function of execution method Module is opened through mobile terminal when receiving the voice for acting on voice play control broadcasting season for supporting voice The proximity sensor and acceleration transducer of play mode, if determining the acceleration received in the time in setting play mode Sensing data indicates that the angle of mobile terminal plane and horizontal plane is greater than the first setting value, and does not receive on proximity sensor Report close to event, then generate the event for preventing loudspeaker from playing voice, the play mode that sets determines the time to set in advance It is fixed from receiving sensor data are waited when receiving voice play instruction, to determine that voice plays according to the sensing data The maximum latency of mode, and execute the prevention loudspeaker and play operation corresponding to the event of voice, to prevent to pass through Loudspeaker plays voice, and mobile terminal can be prevented to play language by loudspeaker during user is close to mobile terminal earpiece Sound.
The technical principle that above are only presently preferred embodiments of the present invention and used.The present invention is not limited to spies described here Determine embodiment, various significant changes, readjustment and the substitution being able to carry out for a person skilled in the art are not departing from Protection scope of the present invention.Therefore, although the present invention has been described in more detail through the above examples, this hair It is bright to be not limited only to above embodiments, it can also include other more equivalence enforcements without departing from the inventive concept Example, and the scope of the present invention is determined by the scope of the claims.

Claims (11)

1. the control method that a kind of mobile terminal sound plays characterized by comprising
The voice play instruction for acting on voice play control is received, and is opened for supporting the close of confirmation voice play mode Sensor and acceleration transducer;
If determining the acceleration transducer data instruction mobile terminal plane and level received in the time in setting play mode The angle in face is greater than the first setting value, and do not receive that proximity sensor reports close to event, then generate and loudspeaker prevented to broadcast The event of voice is put, the play mode that sets determines the time to be preset from waiting when receiving voice play instruction etc. Sensing data is received, to determine the maximum latency of voice play mode according to the sensing data;
It executes the prevention loudspeaker and plays operation corresponding to the event of voice, to prevent to play voice by loudspeaker.
2. the method according to claim 1, wherein if described determine in the time in setting play mode receives Acceleration transducer data instruction mobile terminal plane and the angle of horizontal plane be greater than the first setting value, and do not receive close Sensor report close to event, then generate prevent loudspeaker play voice event include:
If determining the acceleration transducer data instruction mobile terminal plane and level received in the time in setting play mode The angle in face is greater than the first setting value, and do not receive that proximity sensor reports close to event, then generate virtual close to thing Part;
It is described to execute operation corresponding to the event for preventing loudspeaker from playing voice, to prevent to play voice by loudspeaker Include:
It triggers and described virtual plays voice close to event, and by earpiece.
3. the method according to claim 1, wherein if described determine in the time in setting play mode receives Acceleration transducer data instruction mobile terminal plane and the angle of horizontal plane be greater than the first setting value, and do not receive close Sensor report close to event, then generate prevent loudspeaker play voice event include:
If determining the acceleration transducer data instruction mobile terminal plane and level received in the time in setting play mode The angle in face is greater than the first setting value, and do not receive that proximity sensor reports close to event, then generate delay and determine voice The event of play mode;
It is described to execute operation corresponding to the event for preventing loudspeaker from playing voice, to prevent to play voice by loudspeaker Include:
When detecting that the current time obtained from system meets the setting play mode and determines the time, what be will acquire is current Time resets to the time before elapsing the first setting time forward, to postpone to determine the time of voice play mode, prevents logical It crosses loudspeaker and plays voice.
4. according to the method described in claim 2, it is characterized by further comprising:
If described virtual close in the second setting time after event triggering, do not receive what proximity sensor reported also Close to event, then trigger far from event, to play voice by loudspeaker according to the separate event.
5. according to the method described in claim 3, it is characterized by further comprising:
If not received also close when satisfaction setting play mode determines the time again after current time executes reset operation Sensor report close to event, then voice is played by loudspeaker.
6. the control device that a kind of mobile terminal sound plays characterized by comprising
Sensor opening module for receiving the voice play instruction for acting on voice play control, and is opened for supporting really Recognize the proximity sensor and acceleration transducer of voice play mode;
Loudspeaker broadcast event generation module is prevented, if for determining that the acceleration received in the time passes in setting play mode Sensor data indicate that the angle of mobile terminal plane and horizontal plane is greater than the first setting value, and do not receive proximity sensor and report Close to event, then generate the event for preventing loudspeaker from playing voice, the play mode that sets determines the time to preset From when receiving voice play instruction wait receiving sensor data, with according to the sensing data determine voice play mould The maximum latency of formula;
Loudspeaker, which plays, prevents module, operation corresponding to the event of voice is played for executing the prevention loudspeaker, with resistance Voice is only played by loudspeaker.
7. device according to claim 6, which is characterized in that the prevention loudspeaker broadcast event generation module is specifically used In:
If determining the acceleration transducer data instruction mobile terminal plane and level received in the time in setting play mode The angle in face is greater than the first setting value, and do not receive that proximity sensor reports close to event, then generate virtual close to thing Part;
The prevention loudspeaker playing module is specifically used for:
It triggers and described virtual plays voice close to event, and by earpiece.
8. device according to claim 6, which is characterized in that the prevention loudspeaker broadcast event generation module is specifically used In:
If determining the acceleration transducer data instruction mobile terminal plane and level received in the time in setting play mode The angle in face is greater than the first setting value, and do not receive that proximity sensor reports close to event, then generate delay and determine voice The event of play mode;
The prevention loudspeaker playing module is specifically used for:
When detecting that the current time obtained from system meets the setting play mode and determines the time, what be will acquire is current Time resets to the time before elapsing the first setting time forward, to postpone to determine the time of voice play mode, prevents logical It crosses loudspeaker and plays voice.
9. device according to claim 7, which is characterized in that further include:
First loudspeaker playing module, if for trigger it is described virtual close in the second setting time after event, also Do not receive that proximity sensor reports close to event, then trigger far from event, to pass through loudspeaker according to the separate event Play voice.
10. device according to claim 8, which is characterized in that further include:
Second loudspeaker playing module, if true for meeting setting play mode again after current time executes reset operation When fixing time, do not receive that proximity sensor reports also close to event, then voice is played by loudspeaker.
11. a kind of mobile terminal including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that the processor performs the steps of when executing the computer program
The voice play instruction for acting on voice play control is received, and is opened for supporting the close of confirmation voice play mode Sensor and acceleration transducer;
If determining the acceleration transducer data instruction mobile terminal plane and level received in the time in setting play mode The angle in face is greater than the first setting value, and do not receive that proximity sensor reports close to event, then generate and loudspeaker prevented to broadcast The event of voice is put, the play mode that sets determines the time to be preset from waiting when receiving voice play instruction etc. Sensing data is received, to determine the maximum latency of voice play mode according to the sensing data;
It executes the prevention loudspeaker and plays operation corresponding to the event of voice, to prevent to play voice by loudspeaker.
CN201710083957.0A 2017-02-16 2017-02-16 Control method, device and the mobile terminal that mobile terminal sound plays Expired - Fee Related CN106878557B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710083957.0A CN106878557B (en) 2017-02-16 2017-02-16 Control method, device and the mobile terminal that mobile terminal sound plays

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710083957.0A CN106878557B (en) 2017-02-16 2017-02-16 Control method, device and the mobile terminal that mobile terminal sound plays

Publications (2)

Publication Number Publication Date
CN106878557A CN106878557A (en) 2017-06-20
CN106878557B true CN106878557B (en) 2019-08-27

Family

ID=59166861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710083957.0A Expired - Fee Related CN106878557B (en) 2017-02-16 2017-02-16 Control method, device and the mobile terminal that mobile terminal sound plays

Country Status (1)

Country Link
CN (1) CN106878557B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891914A (en) * 2011-05-11 2013-01-23 深圳市福智软件技术有限公司 Mobile terminal and method for switching answer modes of mobile terminal
CN103583031A (en) * 2011-06-03 2014-02-12 苹果公司 Motion-based device operations
CN105827790A (en) * 2014-08-15 2016-08-03 宏达国际电子股份有限公司 Mobile terminal and method for controlling answer modes of the mobile terminal and storage medium
CN106131312A (en) * 2016-06-21 2016-11-16 广东欧珀移动通信有限公司 The player method of speech message, device and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891914A (en) * 2011-05-11 2013-01-23 深圳市福智软件技术有限公司 Mobile terminal and method for switching answer modes of mobile terminal
CN103583031A (en) * 2011-06-03 2014-02-12 苹果公司 Motion-based device operations
CN105827790A (en) * 2014-08-15 2016-08-03 宏达国际电子股份有限公司 Mobile terminal and method for controlling answer modes of the mobile terminal and storage medium
CN106131312A (en) * 2016-06-21 2016-11-16 广东欧珀移动通信有限公司 The player method of speech message, device and mobile terminal

Also Published As

Publication number Publication date
CN106878557A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN107483721B (en) Control method, device, storage medium and mobile terminal based on blank screen gesture
CN106598630A (en) Key control method and apparatus, and terminal
CN108804157A (en) Application program preloads method, apparatus, storage medium and terminal
CN106375774B (en) Method, device and system for controlling display content of live broadcast room
CN107835033A (en) Control method, device, terminal device and the storage medium of antenna tuning switch
CN108108142A (en) Voice information processing method, device, terminal device and storage medium
CN107040660A (en) Control method, device and the mobile terminal of mobile terminal playing volume
CN107797841B (en) Window control method and device, terminal equipment and storage medium
CN106776385A (en) A kind of transmission method of daily record log information, device and terminal
CN106713653B (en) Audio and video playing control method and device and terminal
CN106940997B (en) Method and device for sending voice signal to voice recognition system
CN108681474A (en) Using preloading method, apparatus, storage medium and terminal
CN107040661A (en) Control method, device and the mobile terminal of mobile terminal playing volume
CN108833683B (en) Dynamic antenna adjustment implementation method and related product
CN108093451A (en) Control method, device and the storage medium and mobile terminal of random access
CN108924375A (en) Processing method, device, storage medium and the terminal of ringing volume
CN107526569B (en) A kind of volume adjusting method, device, storage medium and mobile terminal
CN108494970A (en) Processing method, device, storage medium and the terminal of terminal's status information
CN108234738A (en) volume adjusting method, device, terminal and storage medium
CN109814798B (en) Ear return function control method and device and mobile terminal
CN106936994B (en) A kind of control method of broadcast recipients, device and mobile terminal
CN106101361B (en) Display methods, device and the mobile phone of cell phone address book
CN108196664A (en) screen display method, device, storage medium and terminal
CN106878557B (en) Control method, device and the mobile terminal that mobile terminal sound plays
CN106919460A (en) A kind of method for controlling broadcast transmission, device and mobile terminal

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
CB02 Change of applicant information

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

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190827

CF01 Termination of patent right due to non-payment of annual fee