Method for controlling loudspeaker to play and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for controlling a speaker to play and a mobile terminal.
Background
With the development of communication technology, the functions of the mobile terminal are more and more abundant, and the user experience is better and better. At present, a single speaker cannot meet the pursuit of stereo sound by users, so that it is popular that a mobile terminal is provided with two speakers.
At present, a mobile terminal can be inserted into a Virtual Reality (VR) peripheral, and a user can view stereoscopic scenes by wearing the VR peripheral. If the double loudspeakers are adopted to play the audio, the stereoscopic impression is stronger. However, when the user uses the VR application, the user needs to manually set whether to use the dual speakers, which results in poor user experience.
Disclosure of Invention
In order to solve the technical problem, embodiments of the present invention provide a method for controlling a speaker to play and a mobile terminal, so as to implement that when it is detected that the mobile terminal uses a VR application, a dual speaker can be automatically used to play audio, thereby improving user experience.
A method for controlling speaker play, applicable to a mobile terminal having a first speaker and a second speaker, comprising:
identifying the placement state of the mobile terminal, and starting to detect the similarity of display information of the left and right side areas of the screen of the mobile terminal when the mobile terminal is identified to be in the horizontal placement state;
and when the similarity of the display information of the left and right areas of the screen is detected to be greater than a first threshold value, the first loudspeaker and the second loudspeaker are adopted to play audio simultaneously.
Optionally, the identifying the placement state of the mobile terminal is implemented by:
the method comprises the steps of obtaining three-dimensional space rectangular coordinate system information of the mobile terminal through a built-in direction sensor, and identifying the placement state of the mobile terminal through the three-dimensional space rectangular coordinate system information of the mobile terminal.
Optionally, before the simultaneously playing the audio by using the first speaker and the second speaker, the method further includes:
and prompting the user whether to adopt the double speakers to play audio, and after receiving a confirmation instruction of the user, adopting the first speaker and the second speaker to play audio simultaneously.
Optionally, in the process of playing audio simultaneously by using the first speaker and the second speaker, the method further includes:
and detecting the electric quantity of the mobile terminal, and closing one loudspeaker when the electric quantity is detected to be smaller than a second threshold value.
Optionally, before turning off one speaker, the method further includes:
and prompting the user to close which loudspeaker, and closing the corresponding loudspeaker after receiving a closing instruction of the user.
A mobile terminal having a first speaker and a second speaker, comprising:
the identification module is used for identifying the placement state of the mobile terminal, and when the mobile terminal is identified to be in the transverse placement state, the detection module is triggered;
the state detection module is used for starting to detect the similarity of information displayed in the left and right areas of the screen of the mobile terminal after being triggered, and triggering the play control module when detecting that the similarity of the information displayed in the left and right areas of the screen is greater than a first threshold value;
and the playing control module is used for adopting the first loudspeaker and the second loudspeaker to play audio simultaneously after being triggered.
Optionally, the identifying module is configured to identify that the mobile terminal is in the horizontal position by: the method comprises the steps of obtaining three-dimensional space rectangular coordinate system information of the mobile terminal through a built-in direction sensor, and identifying the placement state of the mobile terminal through the three-dimensional space rectangular coordinate system information of the mobile terminal.
Optionally, before the playing control module simultaneously plays the audio through the first speaker and the second speaker, the playing control module further includes: and prompting the user whether to adopt the double speakers to play audio, and after receiving a confirmation instruction of the user, adopting the first speaker and the second speaker to play audio simultaneously.
Optionally, the mobile terminal further includes:
the electric quantity detection module is used for detecting the electric quantity of the mobile terminal in the process that the playing control module adopts the first loudspeaker and the second loudspeaker to simultaneously play audio, and informing the playing control module when the detected electric quantity is smaller than a second threshold value;
and the playing control module closes one loudspeaker after receiving the notification.
Optionally, before turning off one speaker, the playback control module further includes: and prompting the user to close which loudspeaker, and closing the corresponding loudspeaker after receiving a closing instruction of the user. .
In summary, the method for controlling the speaker to play and the mobile terminal provided by the embodiment of the invention can automatically adopt the dual speakers to play audio when detecting that the mobile terminal uses the VR application, thereby improving user experience.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
fig. 3 is a schematic diagram of a speaker of a mobile terminal according to an embodiment of the present invention;
FIG. 4 is a block diagram of audio hardware for implementing stereo according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a magnetic circuit structure design of a handset according to an embodiment of the invention;
fig. 6 is a schematic diagram of a magnetic circuit structure design of a conventional handset;
fig. 7 is a flowchart of a method for controlling speaker playing according to a first embodiment of the present invention;
fig. 8 is a schematic diagram of a three-dimensional space where a mobile terminal according to a second embodiment of the present invention is located;
fig. 9 is a flowchart of a method for controlling speaker playing according to a third embodiment of the present invention;
fig. 10 is a schematic diagram of a mobile terminal according to a fourth embodiment of the present invention;
fig. 11 is a schematic diagram of a mobile terminal according to a fifth embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic hardware configuration of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, an a/V (audio/video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, etc. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit may include at least one of a broadcast receiving module 111, a mobile communication module 112, a wireless internet module 113, a short-range communication module 114, and a location information module 115.
The broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel. The broadcast channel may include a satellite channel and/or a terrestrial channel. The broadcast management server may be a server that generates and transmits a broadcast signal and/or broadcast associated information or a server that receives a previously generated broadcast signal and/or broadcast associated information and transmits it to a terminal. The broadcast signal may include a TV broadcast signal, a radio broadcast signal, a data broadcast signal, and the like. Also, the broadcast signal may further include a broadcast signal combined with a TV or radio broadcast signal. The broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received by the mobile communication module 112. The broadcast signal may exist in various forms, for example, it may exist in the form of an Electronic Program Guide (EPG) of Digital Multimedia Broadcasting (DMB), an Electronic Service Guide (ESG) of digital video broadcasting-handheld (DVB-H), and the like. The broadcast receiving module 111 may receive a signal broadcast by using various types of broadcasting systems. In particular, the broadcast receiving module 111 may receive digital broadcasting by using a digital broadcasting system such as a data broadcasting system of multimedia broadcasting-terrestrial (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video broadcasting-handheld (DVB-H), forward link media (MediaFLO @), terrestrial digital broadcasting integrated service (ISDB-T), and the like. The broadcast receiving module 111 may be constructed to be suitable for various broadcasting systems that provide broadcast signals as well as the above-mentioned digital broadcasting systems. The broadcast signal and/or broadcast associated information received via the broadcast receiving module 111 may be stored in the memory 160 (or other type of storage medium).
The mobile communication module 112 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 113 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include WLAN (wireless LAN) (Wi-Fi), Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like.
The short-range communication module 114 is a module for supporting short-range communication. Some examples of short-range communication technologies include bluetooth (TM), Radio Frequency Identification (RFID), infrared data association (IrDA), Ultra Wideband (UWB), zigbee (TM), and the like.
The location information module 115 is a module for checking or acquiring location information of the mobile terminal. A typical example of the location information module is a GPS (global positioning system). According to the current technology, the GPS module 115 calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information, thereby accurately calculating three-dimensional current location information according to longitude, latitude, and altitude. Currently, a method for calculating position and time information uses three satellites and corrects an error of the calculated position and time information by using another satellite. In addition, the GPS module 115 can calculate speed information by continuously calculating current position information in real time.
The a/V input unit 120 is used to receive an audio or video signal. The a/V input unit 120 may include a camera 121 and a microphone 1220, and the camera 121 processes image data of still pictures or video obtained by an image capturing apparatus in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 151. The image frames processed by the camera 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 1210 may be provided according to the construction of the mobile terminal. The microphone 122 may receive sounds (audio data) via the microphone in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the mobile communication module 112 in case of a phone call mode. The microphone 122 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 140 may sense whether the slide-type phone is opened or closed. In addition, the sensing unit 140 can detect whether the power supply unit 190 supplies power or whether the interface unit 170 is coupled with an external device. The sensing unit 140 may include a proximity sensor 1410 as will be described below in connection with a touch screen.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal. Various command signals or power input from the cradle may be used as signals for recognizing whether the mobile terminal is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151, an audio output module 152, an alarm unit 153, and the like.
The terminal of the present embodiment includes two speakers, and as shown in fig. 3, a speaker 1521 and a speaker 1522 may be provided at the top and bottom of the terminal, respectively.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output as sound when the mobile terminal is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 152 may include a speaker, a buzzer, and the like.
Fig. 4 is a hardware block diagram of audio for realizing stereo, where the audio output module 152 includes an audio DSP (digital signal processing), and the audio DSP includes a left audio channel/headphone module and a right audio channel module, where the left audio channel/headphone module is connected to the headphone/tweeter through an audio power amplifier, and the right audio channel module is connected to the speaker box through an audio power amplifier.
The earphone/tweeter of the application adopts a 5-magnetic-circuit structure design initiated by the earphone, as shown in fig. 5, the earphone/tweeter is developed by a supplier AAC (Advanced Audio Coding), so that the sensitivity of the earphone is greatly improved. Fig. 6 is a schematic diagram of a conventional receiver design, the conventional receiver adopts a 3-magnetic circuit design, the sensitivity is not high, and the receiver adopting a 5-magnetic circuit design is more suitable for the application of a stereo tweeter, and the stereo effect is better.
The alarm unit 153 may provide an output to notify the mobile terminal 100 of the occurrence of an event. Typical events may include call reception, message reception, key signal input, touch input, and the like. In addition to audio or video output, the alarm unit 153 may provide output in different ways to notify the occurrence of an event. For example, the alarm unit 153 may provide an output in the form of vibration, and when a call, a message, or some other incoming communication (incomingmunication) is received, the alarm unit 153 may provide a tactile output (i.e., vibration) to inform the user thereof. By providing such a tactile output, the user can recognize the occurrence of various events even when the user's mobile phone is in the user's pocket. The alarm unit 153 may also provide an output notifying the occurrence of an event via the display unit 151 or the audio output module 152.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 1810 for reproducing (or playing back) multimedia data, and the multimedia module 1810 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to this point, mobile terminals have been described in terms of their functionality. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication systems such as wired and wireless communication systems and satellite-based communication systems that transmit data via frames or packets.
A communication system in which a mobile terminal according to the present invention is operable will now be described with reference to fig. 2.
Such communication systems may use different air interfaces and/or physical layers. For example, the air interface used by the communication system includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)), global system for mobile communications (GSM), and the like. By way of non-limiting example, the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
Referring to fig. 2, the CDMA wireless communication system may include a plurality of mobile terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC) 280. The MSC280 is configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC280 is also configured to interface with a BSC275, which may be coupled to the base station 270 via a backhaul. The backhaul may be constructed according to any of several known interfaces including, for example, E1/T1, ATM, IP, PPP, frame Relay, HDSL, ADSL, or xDSL. It will be understood that a system as shown in fig. 2 may include multiple BSCs 2750.
Each BS270 may serve one or more sectors (or regions), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction being radially distant from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS270 may be configured to support multiple frequency allocations, with each frequency allocation having a particular frequency spectrum (e.g., 1.25MHz,5MHz, etc.).
The intersection of partitions with frequency allocations may be referred to as a CDMA channel. The BS270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology. In such a case, the term "base station" may be used to generically refer to a single BSC275 and at least one BS 270. The base stations may also be referred to as "cells". Alternatively, each sector of a particular BS270 may be referred to as a plurality of cell sites.
As shown in fig. 2, a Broadcast Transmitter (BT)295 transmits a broadcast signal to the mobile terminal 100 operating within the system. A broadcast receiving module 111 as shown in fig. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295. In fig. 2, several Global Positioning System (GPS) satellites 300 are shown. The satellite 300 assists in locating at least one of the plurality of mobile terminals 100.
In fig. 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information may be obtained with any number of satellites. The GPS module 115 as shown in fig. 1 is generally configured to cooperate with satellites 300 to obtain desired positioning information. Other techniques that can track the location of the mobile terminal may be used instead of or in addition to GPS tracking techniques. In addition, at least one GPS satellite 300 may selectively or additionally process satellite DMB transmission.
As a typical operation of the wireless communication system, the BS270 receives reverse link signals from various mobile terminals 100. The mobile terminal 100 is generally engaged in conversations, messaging, and other types of communications. Each reverse link signal received by a particular base station 270 is processed within the particular BS 270. The obtained data is forwarded to the associated BSC 275. The BSC provides call resource allocation and mobility management functions including coordination of soft handoff procedures between BSs 270. The BSCs 275 also route the received data to the MSC280, which provides additional routing services for interfacing with the PSTN 290. Similarly, the PSTN290 interfaces with the MSC280, the MSC interfaces with the BSCs 275, and the BSCs 275 accordingly control the BS270 to transmit forward link signals to the mobile terminal 100.
Based on the above mobile terminal hardware structure and communication system, the present invention provides various embodiments of the method.
Example one
Fig. 7 is a flowchart of a method for controlling speaker playing according to an embodiment of the present invention, where the method of the present embodiment is applied to a mobile terminal with dual speakers, as shown in fig. 7, the method of the present embodiment includes the following steps:
step 701, identifying the placement state of the mobile terminal, and starting to detect the similarity of information displayed in the left and right areas of the screen of the mobile terminal when the mobile terminal is identified to be in the horizontal placement state;
and step 702, when the similarity of the display information of the left and right areas of the screen is detected to be greater than a threshold value, adopting the first loudspeaker and the second loudspeaker to play audio simultaneously.
When a user uses the VR function, the user generally inserts the mobile phone into a VR peripheral (the VR peripheral is glasses with magnifying lenses), and the mobile phone is necessarily laid horizontally (but a certain fluctuation range is allowed). VR technology allows a human to obtain a feeling of a three-dimensional space by presenting image information of a slight difference to both eyes of the human. Therefore, when the user uses the VR application on the mobile phone, no matter what application, the screen can be automatically divided into the left and right equally-divided areas so as to achieve the purpose of presenting different pictures of left and right eyes, therefore, the similarity of information displayed in the left and right areas of the screen is judged during the horizontal screen, and the VR scene can be judged at a high probability.
When the similarity of the display information of the left and right side regions is greater than a certain threshold (for example, 80%), it is considered that the user is using a VR (Virtual Reality) application, and then the dual speaker mode is used for playing. The method of this embodiment judges whether the user is using the VR application in an automatic identification mode, thereby automatically switching the speaker mode and intelligently improving the VR immersion experience of the user.
In an optional embodiment, before the audio is played by using the dual speakers, the user may be prompted whether to play the audio by using the dual speakers, and after a confirmation instruction of the user is received, the audio is played by using the first speaker and the second speaker at the same time.
Example two
In this embodiment, three-dimensional rectangular coordinate system information of the mobile terminal is acquired through a built-in direction sensor, and whether the mobile terminal is in a horizontal state is identified through the three-dimensional rectangular coordinate system information of the mobile terminal.
In this embodiment, as shown in fig. 8, parameters such as an angle and a rotational angular velocity of an axis X, Y, Z in a rectangular coordinate system in a three-dimensional space where the mobile phone is located are obtained by a direction sensor built in the mobile phone.
Suppose the X, Y axis forms the handset plane, the X axis is parallel to the short side of the handset, the Y axis is parallel to the long side of the handset, and the Z axis is perpendicular to the handset plane. Therefore, only the angles of the X axis and the Y axis need to be judged when the mobile phone transverse screen is judged.
When the X axis is at 90 degrees + △ s1 or-90 degrees + △ s1 and the Y axis is at 0 degrees + △ s2, the mobile phone can be considered to be in a horizontal screen state, and at other times, the mobile phone is judged to be in a vertical screen state, wherein △ s1 and △ s2 are floating parameters, and the smaller the numerical value is, the more strict the horizontal screen judgment standard is.
EXAMPLE III
Fig. 9 is a flowchart of a method for controlling speaker playing according to an embodiment of the present invention, where the method of the present embodiment is applied to a mobile terminal with dual speakers, as shown in fig. 9, the method of the present embodiment includes the following steps:
step 901, identifying the placement state of the mobile terminal, and turning to step 902 when the mobile terminal is identified to be in a horizontal placement state;
step 902, starting to detect the similarity of display information of the left and right areas of the screen of the mobile terminal;
903, detecting whether the similarity of the display information of the left and right areas of the screen is greater than a first threshold, and if so, turning to 904; if the threshold is less than the threshold, no processing is performed.
And 904, playing audio by adopting the first loudspeaker and the second loudspeaker at the same time.
Step 905, in the process of playing audio by using the first loudspeaker and the second loudspeaker, detecting the electric quantity of the mobile terminal, wherein the electric quantity is smaller than a second threshold value, if so, turning to step 906; if so, no treatment is carried out.
Step 906, turning off one of the first speaker and the second speaker.
Therefore, the endurance of the mobile terminal can be increased under the condition that the electric quantity of the mobile terminal is insufficient.
Of course, the user may be prompted which speaker to turn off before turning off one speaker, and after receiving the turn-off instruction from the user, the corresponding speaker is turned off.
Example four
Fig. 10 is a schematic diagram of a mobile terminal according to an embodiment of the present invention, where the mobile terminal 1000 of the embodiment has a speaker 1100 and a speaker 1200, and as shown in fig. 10, the mobile terminal 1000 of the embodiment includes:
the identification module 1001 is used for identifying the placement state of the mobile terminal, and when the mobile terminal is identified to be in the horizontal placement state, the detection module 1002 is triggered;
the detecting module 1002 is configured to start to detect similarity of display information in left and right areas of a screen of the mobile terminal 1000 after being triggered, and trigger the play control module 1003 when detecting that the similarity of the display information in the left and right areas of the screen is greater than a threshold;
and a play control module 1003, configured to play the audio with the speaker 1100 and the speaker 1200 after being triggered.
When a user uses the VR function, the user generally inserts the mobile phone into a VR peripheral (the VR peripheral is glasses with magnifying lenses), and the mobile phone is necessarily laid horizontally (but a certain fluctuation range is allowed). VR technology allows a human to obtain a feeling of a three-dimensional space by presenting image information of a slight difference to both eyes of the human. Therefore, when the user uses the VR application on the mobile phone, no matter what application, the screen can be automatically divided into the left and right equally-divided areas so as to achieve the purpose of presenting different pictures of left and right eyes, therefore, the similarity of information displayed in the left and right areas of the screen is judged during the horizontal screen, and the VR scene can be judged at a high probability.
When the similarity of the display information of the left and right side regions is greater than a certain threshold (for example, 80%), it is considered that the user is using a VR (Virtual Reality) application, and then the dual speaker mode is used for playing. The method of this embodiment judges whether the user is using the VR application in an automatic identification mode, thereby automatically switching the speaker mode and intelligently improving the VR immersion experience of the user.
In an alternative embodiment of the method of the invention,
the identification module 1001 identifies that the mobile terminal 1000 is in the horizontal position by: the method comprises the steps of obtaining three-dimensional space rectangular coordinate system information of the mobile terminal through a built-in direction sensor, and identifying the placement state of the mobile terminal through the three-dimensional space rectangular coordinate system information of the mobile terminal.
In an optional embodiment, before the playing control module 1003 uses the speaker 1100 and the speaker 1200 to simultaneously play audio, the method further includes: prompting the user whether to play audio by using the dual speakers, and after receiving the confirmation instruction of the user, playing audio by using the speakers 1100 and 1200 at the same time.
EXAMPLE five
Fig. 11 is a schematic diagram of a mobile terminal according to an embodiment of the present invention, where the mobile terminal 1000 of the embodiment has a speaker 1100 and a speaker 1200, and as shown in fig. 10, the mobile terminal 1000 of the embodiment includes:
the identification module 1001 is used for identifying the placement state of the mobile terminal, and when the mobile terminal is identified to be in the horizontal placement state, the detection module 1002 is triggered;
the detecting module 1002 is configured to start to detect similarity of display information in left and right areas of a screen of the mobile terminal 1000 after being triggered, and trigger the play control module 1003 when detecting that the similarity of the display information in the left and right areas of the screen is greater than a threshold;
and a play control module 1003, configured to play the audio with the speaker 1100 and the speaker 1200 after being triggered.
An electric quantity detection module 1004, configured to detect an electric quantity of the mobile terminal 1000 in a process that the playback control module 1003 employs the speaker 1100 and the speaker 1200 to play back audio at the same time, and notify the playback control module 1003 when the detected electric quantity is smaller than a threshold;
the playback control module 1003, upon receiving the notification, turns off one of the speakers 1100 and 1200.
It should be noted that the identification module 1001 and the status detection module 1002 in the mobile terminal provided by the present invention may be disposed in the sensing unit 140 in fig. 1, the play control module 1003 may be disposed in the controller 180 in fig. 1, and the power detection module 1004 may be disposed in the power supply unit 190 in fig. 1.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.