CN106998521B - Loudspeaker control method and device and terminal equipment - Google Patents

Loudspeaker control method and device and terminal equipment Download PDF

Info

Publication number
CN106998521B
CN106998521B CN201710123523.9A CN201710123523A CN106998521B CN 106998521 B CN106998521 B CN 106998521B CN 201710123523 A CN201710123523 A CN 201710123523A CN 106998521 B CN106998521 B CN 106998521B
Authority
CN
China
Prior art keywords
screen direction
loudspeaker
terminal device
terminal equipment
side edge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710123523.9A
Other languages
Chinese (zh)
Other versions
CN106998521A (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 CN201710123523.9A priority Critical patent/CN106998521B/en
Publication of CN106998521A publication Critical patent/CN106998521A/en
Application granted granted Critical
Publication of CN106998521B publication Critical patent/CN106998521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R9/00Transducers of moving-coil, moving-strip, or moving-wire type
    • H04R9/06Loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R9/00Transducers of moving-coil, moving-strip, or moving-wire type
    • H04R9/02Details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/03Connection circuits to selectively connect loudspeakers or headphones to amplifiers

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Stereophonic System (AREA)

Abstract

The invention discloses a loudspeaker control method, a loudspeaker control device and terminal equipment, wherein the method comprises the following steps: after the screen direction of the terminal equipment is detected, according to the screen direction of the terminal equipment, a target loudspeaker applicable to the current screen direction is determined in at least two loudspeakers, and then the terminal equipment is controlled to play audio by adopting the target loudspeaker. Due to the fact that the terminal device comprises at least two loudspeakers arranged on different sides, the method provided by the embodiment of the invention can be used for playing audio by adopting the applicable target loudspeakers under different screen directions, and the technical problem that sound emitting holes are easily blocked by fingers to influence sound emitting in a transverse screen mode in the prior art is solved.

Description

Loudspeaker control method and device and terminal equipment
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a loudspeaker control method, a loudspeaker control device and terminal equipment.
Background
In a mobile phone device, a tablet and other terminal devices, a sound generating unit of a speaker is often located inside the terminal device and generates sound to the outside of the terminal device through a sound generating channel. Specifically, the sound emission path is provided with an opening in the terminal device case, and the sound vibration is transmitted to the outside through the opening.
In the prior art, the sound outlet of the speaker is generally arranged at the bottom edge of the terminal device, and the aperture of the sound outlet is small, and is only about 1 mm. Therefore, when the user watches videos or plays games in a horizontal screen mode, the sound outlet holes are easily blocked by fingers, and the sound production effect of the loudspeaker is influenced.
Disclosure of Invention
The object of the present invention is to solve at least to some extent one of the above mentioned technical problems.
Therefore, a first object of the present invention is to provide a speaker control method, which enables a user to obtain a better speaker sound production effect when watching a video or playing a game in a landscape mode, and solves the technical problem that sound production is affected by the fact that a sound outlet in the landscape mode is easily blocked by a finger in the prior art.
A second object of the present invention is to provide a speaker control apparatus.
A third object of the present invention is to provide a terminal device.
A fourth object of the invention is to propose another terminal device.
In order to achieve the above object, a first embodiment of the present invention provides a speaker control method, where the method is applied to a terminal device, where the terminal device includes at least two speakers disposed on different sides, and the method includes the following steps:
detecting the screen direction of the terminal equipment;
according to the screen direction of the terminal equipment, determining a target loudspeaker applicable to the screen direction in at least two loudspeakers;
and controlling the terminal equipment to adopt the target loudspeaker to play audio.
According to the speaker control method provided by the embodiment of the invention, after the screen direction of the terminal equipment is detected, the target speaker applicable to the current screen direction is determined in at least two speakers according to the screen direction of the terminal equipment, and then the terminal equipment is controlled to play audio by adopting the target speaker. Due to the fact that the terminal device comprises at least two loudspeakers arranged on different sides, the method provided by the embodiment of the invention can be used for playing audio by adopting the applicable target loudspeakers under different screen directions, and the technical problem that sound emitting holes are easily blocked by fingers to influence sound emitting in a transverse screen mode in the prior art is solved.
In order to achieve the above object, a second aspect of the present invention provides a speaker control apparatus, which is applied to a terminal device, where the terminal device includes at least two speakers disposed on different sides, and the apparatus includes:
the direction detection module is used for detecting the screen direction of the terminal equipment;
the determining module is used for determining a target loudspeaker applicable to the screen direction in at least two loudspeakers according to the screen direction of the terminal equipment;
and the control module is used for controlling the terminal equipment to adopt the target loudspeaker to play audio.
The speaker control device of the embodiment of the invention is applied to terminal equipment, the terminal equipment comprises at least two speakers arranged on different sides, wherein the speaker control device comprises: the direction detection module is used for detecting the screen direction of the terminal equipment; the determining module is used for determining a target loudspeaker applicable to the screen direction in at least two loudspeakers according to the screen direction of the terminal equipment; and the control module is used for controlling the terminal equipment to adopt the target loudspeaker to play audio. Because terminal equipment includes two at least speakers that set up in different sides, can all adopt suitable target speaker to carry out the audio playback downwards in different screen orientations through controlling the speaker according to the screen orientation, solved among the prior art horizontal screen mode down the phonate hole and blocked up by the finger very easily, influenced the technical problem of sound production.
In order to achieve the above object, an embodiment of a third aspect of the present invention provides a terminal device, including: the speaker control apparatus according to the embodiment of the second aspect of the present invention.
According to the terminal equipment provided by the embodiment of the invention, as the terminal equipment comprises at least two loudspeakers arranged on different sides, the loudspeakers are controlled according to the screen direction, and the audio playing can be carried out in different screen directions by adopting the applicable target loudspeakers, so that the technical problem that the sounding is influenced because the sounding holes are easily blocked by fingers in a transverse screen mode in the prior art is solved.
In order to achieve the above object, a fourth aspect of the present invention provides another terminal device, including one or more of the following components: the terminal equipment comprises a shell, and a processor, a memory and a loudspeaker which are positioned in the shell, wherein at least two loudspeakers are arranged on different sides of the terminal equipment, the memory stores executable program codes, and the processor runs a program corresponding to the executable program codes by reading the executable program codes stored in the memory so as to execute the following steps:
detecting the screen direction of the terminal equipment;
according to the screen direction of the terminal equipment, determining a target loudspeaker applicable to the screen direction in at least two loudspeakers;
and controlling the terminal equipment to adopt the target loudspeaker to play audio.
According to the terminal equipment provided by the embodiment of the invention, as the terminal equipment comprises at least two loudspeakers arranged on different sides, the loudspeakers are controlled according to the screen direction, and the audio playing can be carried out in different screen directions by adopting the applicable target loudspeakers, so that the technical problem that the sounding is influenced because the sounding holes are easily blocked by fingers in a transverse screen mode in the prior art is solved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart of a speaker control method according to an embodiment of the present invention;
fig. 2 is a flowchart of a speaker control method according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a possible terminal device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a speaker control circuit of a terminal device according to an embodiment of the present invention;
fig. 5 is a schematic configuration diagram of a speaker control apparatus according to an embodiment of the present invention;
fig. 6 is a schematic configuration diagram of a speaker control apparatus according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal device according to another embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
A speaker control method, apparatus, and terminal device according to embodiments of the present invention are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of speaker control according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
s101, detecting the screen direction of the terminal equipment.
The direction of the screen at least comprises a transverse screen direction and a vertical screen direction. In different application scenarios, the user may need the terminal device to be in different screen orientations. For example, when the terminal device is used for watching pictures, some pictures have a good display effect in the vertical screen direction, and the terminal device is required to be in the vertical screen direction. Some game programs may be executed on the terminal device, which may require the terminal device to be in the landscape orientation.
Specifically, a gyroscope and an accelerometer may be used to detect the screen orientation of the terminal device. The accelerometer is used to detect linear motion in the axial direction. A gyroscope is also called an angular velocity sensor and is used to measure a rotational angular velocity during yaw and tilt.
S102, according to the screen direction of the terminal device, a target loudspeaker applicable to the screen direction is determined from at least two loudspeakers.
The method provided by the embodiment can be particularly applied to speaker control of the terminal equipment. As a possible application scenario, the method provided by the present implementation may be used for control of a side-emitting loudspeaker. Specifically, the terminal device may set the sound outlet of the speaker at a side position of the terminal device, that is, in a side sound outlet design manner. And the sound outlet holes of the at least two loudspeakers can be respectively arranged on different sides of the terminal device, which are perpendicular to each other.
When the terminal device is in different screen directions, the shielding areas of the user's fingers on the terminal device are different, and the shielding areas may cover the sound outlet holes of the speaker. The target speaker for different screen orientations may also be different. The area where the side edge of the terminal equipment is not easily blocked can be determined through the screen direction of the terminal equipment, and the loudspeaker in the area is determined as the applicable target loudspeaker.
And S103, controlling the terminal equipment to play audio by adopting the target loudspeaker.
Because the probability that the target loudspeaker is shielded is smaller in the current screen direction, the target loudspeaker is adopted for audio playing. The loudspeaker sound production effect that can effectively avoid the speaker to be sheltered from and lead to receives the influence.
In this embodiment, after the screen direction of the terminal device is detected, according to the screen direction of the terminal device, a target speaker suitable for the screen direction is determined in the at least two speakers, and the terminal device is controlled to play audio by using the target speaker. Therefore, the terminal equipment can play audio by adopting the applicable target loudspeaker under different screen directions, and the technical problem that the sounding is influenced by the fact that the sounding hole is easily blocked by a finger in the transverse screen mode in the prior art is solved.
Fig. 2 is a flowchart of speaker control according to another embodiment of the present invention, where the method provided in this embodiment may be specifically executed by a terminal device, as shown in fig. 2, the method includes:
s201, detecting the sound outlet hole blockage of the loudspeaker currently used by the terminal equipment.
Specifically, in the actual use process, when terminal equipment is in various screen directions, there is the region that corresponds to be sheltered from easily to lead to setting up the sound outlet of the speaker in this region and blockking up easily, the probability that the sound outlet of speaker blocked up the hole under this condition promptly is great. However, even in this case, there is a probability that the sound outlet hole of the speaker currently used is not blocked.
If the sound outlet hole of the currently used loudspeaker is not blocked, the sound production effect of the loudspeaker is not influenced by the blocking of the hole, and further operation is not needed. Thereby reducing the operation burden of the central processing unit of the equipment terminal.
If the sound outlet hole of the currently used loudspeaker is determined to be blocked, the sound production effect of the surface loudspeaker is influenced, and the currently used loudspeaker is adjusted to be the target loudspeaker applicable to the current screen direction under the condition, so that the execution effect of the loudspeaker control method can be effectively guaranteed.
S202, detecting the screen direction of the terminal equipment.
Specifically, the screen direction detection of the terminal device may be obtained in various ways, for example, the screen direction of the terminal device may be detected by a gravitational acceleration sensor, or the screen state may be determined by a specific display. The following description will be made based on the above two cases.
In the first case, the screen orientation of the terminal device is detected by a gravitational acceleration sensor.
The gravity acceleration sensor, namely the G-sensor, can sense the change of acceleration force, such as shaking, falling, rising, falling, the change of the angle of the handheld terminal and other various movement changes, and can be converted into electric signals by the G-sensor. In this embodiment, whether the terminal is in the landscape screen state or the portrait screen state is detected by the gravitational acceleration sensor.
Specifically, in a specific embodiment, the step of detecting the screen state of the terminal further includes: detecting the inclination angle of the terminal through the gravity acceleration sensor, and judging that the terminal enters a vertical screen state when the inclination angle is larger than or equal to a threshold value; and when the inclination angle is smaller than a threshold value, judging that the terminal enters a horizontal screen state.
Generally, for a terminal with an automatically rotating screen, angle thresholds are set to be 45 °, 135 °, 225 °, and 315 °, and when the inclination angle exceeds the angle threshold, the display mode (horizontal screen or vertical screen) of the terminal page is changed.
In this embodiment, a preset threshold value may be 45 °, and when the inclination angle of the terminal detected by the gravitational acceleration sensor is greater than or equal to the threshold value, it is determined that the terminal enters a vertical screen state; correspondingly, when the inclination angle is smaller than the threshold value, the terminal is judged to enter a horizontal screen state.
For the second case described above, the screen state of the terminal is determined by the specific display of the screen state.
For example, in a case where the terminal has an auto-rotation screen function turned on, the screen state of the terminal is determined by whether a presentation page on a display screen of the terminal is a landscape screen or a portrait screen.
And S203, inquiring the side edges of the sound outlet holes of the loudspeakers.
Specifically, since the relative positions of the speakers on the terminal device are set during manufacturing, and generally do not change, the sides of the sound outlet holes of the speakers can be recorded in advance, so as to facilitate the query in this step.
And S204, determining the target loudspeaker applicable to the screen direction according to the screen direction of the terminal equipment and the side edge of the sound outlet of each loudspeaker.
Specifically, the terminal device includes a first side and a second side that are perpendicular to each other. In the practical use process, when the screen direction of the terminal equipment is the transverse screen direction, the sound outlet holes of the loudspeakers positioned at the bottom and the top of the terminal equipment are easily shielded. And when the screen direction of the terminal equipment is the transverse screen direction, the sound outlet holes of the loudspeakers positioned at the bottom and the top of the terminal equipment are easily shielded. Therefore, in this embodiment, when the screen direction is a vertical screen direction in which the first side edge is located at the left and right sides, it is determined that the target speaker is a speaker in which the sound outlet is disposed at the second side edge; and when the screen direction is the transverse screen direction with the second side edge positioned at the left side and the right side, determining that the target loudspeaker is the loudspeaker with the sound outlet arranged at the first side edge.
For convenience of understanding, this embodiment provides a possible terminal device, and fig. 3 is a schematic structural diagram of a possible terminal device according to an embodiment of the present invention, as shown in fig. 3, the terminal device has four side edges, when the screen direction is a vertical screen direction, a side edge a and a side edge b as first side edges are located at the left and right sides, and speakers with sound outlets located at a side edge c and a side edge d are used as target speakers; when the screen direction is the landscape screen direction, the side c and the side d as the second sides are positioned on the left and right sides, and the speakers with the sound outlet holes positioned on the side a and the side b are used as the target speakers.
And S205, controlling the terminal equipment to adopt the target loudspeaker to play audio.
Specifically, the terminal device is controlled to switch from the speaker with the current blocked hole to the target speaker for audio playing.
As a possible implementation, the terminal device may specifically adopt the following manner when switching from the speaker of the currently plugged hole to the target speaker.
The speaker control circuit of the terminal device may include the MCU1, the speaker switching detection unit 2, and the sound power amplification unit 3, and fig. 4 is a schematic structural diagram of the speaker control circuit of the terminal device according to the embodiment of the present invention, where:
and the speaker switching detection unit 2 is configured to determine, according to the screen direction of the terminal device, a target speaker applicable to the screen direction in at least two speakers when the current speaker is blocked, and further send a control signal to the MCU 1.
The MCU1 is used to control the sound power amplifying unit 3 to output the sound from the sound output channel of the target speaker according to the control signal.
And a sound power amplifying unit 3 for switching its sound output channel according to the control of the MCU1 to output sound through the target speaker sound output channel.
Taking fig. 3 as an example to explain the control process of the speaker control circuit in fig. 4, the speaker switching detection unit 2 obtains the direction of the screen of the terminal device, such as the horizontal screen direction or the vertical screen direction, for example: the screen direction of the terminal device is obtained from a gravity sensor or a processor.
The speaker switching detection unit 2 further obtains a hole blocking detection result of the current speaker from the processor, and when the screen direction is a vertical screen direction under the condition that the current speaker is blocked, the side a and the side b which are the first sides are positioned at the left side and the right side, and the speakers of which the sound outlet holes are positioned at the side c and the side d are used as target speakers; when the screen direction is the landscape screen direction, the side c and the side d as the second sides are positioned on the left and right sides, and the speakers with the sound outlet holes positioned on the side a and the side b are used as the target speakers. The speaker switching detection unit 2 sends a control signal to the MCU1, the control signal indicating the identity of the target speaker.
The MCU1 controls the sound power amplification unit to output channel sound from the speaker sound output indicated by the control signal according to the control signal. So that the sound power amplifying unit 3 switches its sound output channel under the control of the MCU1 to output sound through the target speaker sound output channel.
According to the speaker control method provided by the embodiment of the invention, after the screen direction of the terminal equipment is detected, the target speaker applicable to the current screen direction is determined in at least two speakers according to the screen direction of the terminal equipment, and then the terminal equipment is controlled to play audio by adopting the target speaker. Due to the fact that the terminal device comprises at least two loudspeakers arranged on different sides, the method provided by the embodiment of the invention can be used for playing audio by adopting the applicable target loudspeakers under different screen directions, and the technical problem that sound emitting holes are easily blocked by fingers to influence sound emitting in a transverse screen mode in the prior art is solved.
In order to implement the foregoing embodiments, the present invention further provides a speaker control apparatus, fig. 5 is a schematic structural diagram of the speaker control apparatus according to an embodiment of the present invention, the speaker control apparatus is applied to a terminal device, the terminal device includes at least two speakers disposed on different sides, and as shown in fig. 5, the speaker control apparatus includes: a direction detection module 41, a determination module 42 and a control module 43.
And a direction detection module 41, configured to detect a screen direction of the terminal device.
A determining module 42, configured to determine, according to the screen direction of the terminal device, a target speaker applicable to the screen direction from among the at least two speakers.
And a control module 43, configured to control the terminal device to perform audio playing using the target speaker.
The speaker control device of the embodiment of the invention is applied to terminal equipment, the terminal equipment comprises at least two speakers arranged on different sides, wherein the speaker control device comprises: the direction detection module is used for detecting the screen direction of the terminal equipment; the determining module is used for determining a target loudspeaker applicable to the screen direction in at least two loudspeakers according to the screen direction of the terminal equipment; and the control module is used for controlling the terminal equipment to adopt the target loudspeaker to play audio. Because terminal equipment includes two at least speakers that set up in different sides, can all adopt suitable target speaker to carry out the audio playback downwards in different screen orientations through controlling the speaker according to the screen orientation, solved among the prior art horizontal screen mode down the phonate hole and blocked up by the finger very easily, influenced the technical problem of sound production.
Further, fig. 6 is a schematic structural diagram of a speaker control apparatus according to another embodiment of the present invention, and as shown in fig. 6, the speaker control apparatus may further include, in addition to the speaker control apparatus shown in fig. 5: a plugged hole detection module 44.
And the hole blocking detection module 44 is configured to perform hole blocking detection on a speaker currently used by the terminal device before detecting the screen direction of the terminal device, and determine that the speaker currently used is blocked.
Further, the determining module 42 includes: a querying unit 421 and a determining unit 422.
The query unit 421 is configured to query the side where the sound outlet of each speaker is disposed.
The determining unit 422 is configured to determine a target speaker applicable to the screen direction according to the screen direction of the terminal device and the side edge where the sound outlet of each speaker is disposed.
Further, the terminal device includes a first side and a second side perpendicular to each other, and the determining unit 422 is specifically configured to:
when the screen direction is a vertical screen direction in which the first side edge is positioned at the left side and the right side, determining that the target loudspeaker is a loudspeaker in which a sound outlet is arranged at the second side edge; and when the screen direction is the transverse screen direction of the second side edge positioned at the left side and the right side, determining that the target loudspeaker is the loudspeaker of the first side edge with the sound outlet.
The speaker control device of the embodiment of the invention is applied to terminal equipment, the terminal equipment comprises at least two speakers arranged on different sides, wherein the speaker control device comprises: the direction detection module is used for detecting the screen direction of the terminal equipment; the determining module is used for determining a target loudspeaker applicable to the screen direction in at least two loudspeakers according to the screen direction of the terminal equipment; and the control module is used for controlling the terminal equipment to adopt the target loudspeaker to play audio. Because terminal equipment includes two at least speakers that set up in different sides, can all adopt suitable target speaker to carry out the audio playback downwards in different screen orientations through controlling the speaker according to the screen orientation, solved among the prior art horizontal screen mode down the phonate hole and blocked up by the finger very easily, influenced the technical problem of sound production.
It should be noted that the foregoing description of the method embodiments is also applicable to the apparatus according to the embodiments of the present invention, and the implementation principles thereof are similar and will not be described herein again.
In order to implement the above embodiments, the present invention further provides a terminal device, and fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, and as shown in fig. 6, the terminal device includes a speaker control apparatus 100.
It should be noted that the foregoing description of the embodiment of the speaker control apparatus also applies to the speaker control apparatus 100 according to the embodiment of the present invention, and the implementation principle is similar, and is not repeated herein.
In summary, in the terminal device according to the embodiment of the present invention, after the screen direction of the terminal device is detected, according to the screen direction of the terminal device, the target speaker applicable to the current screen direction is determined in the at least two speakers, so as to control the terminal device to perform audio playing using the target speaker. Due to the fact that the terminal device comprises at least two loudspeakers arranged on different sides, the method provided by the embodiment of the invention can be used for playing audio by adopting the applicable target loudspeakers under different screen directions, and the technical problem that sound emitting holes are easily blocked by fingers to influence sound emitting in a transverse screen mode in the prior art is solved.
In order to implement the foregoing embodiment, the present invention further provides another terminal device, fig. 7 is a schematic structural diagram of a terminal device according to another embodiment of the present invention, and as shown in fig. 7, the terminal device 1000 includes: a housing 1100, and a speaker 1113, a memory 1114, and a processor 1115 located within the housing 1100.
Wherein at least two speakers 1113 are provided on different sides of the terminal device, and the memory 1114 stores executable program code; the processor 1115 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 1114, for performing the steps of:
detecting the screen direction of the terminal equipment;
according to the screen direction of the terminal equipment, determining a target loudspeaker applicable to the screen direction in at least two loudspeakers;
and controlling the terminal equipment to adopt the target loudspeaker to play audio.
It should be noted that the foregoing description of the method embodiment is also applicable to the terminal device 1000 according to the embodiment of the present invention, and the implementation principle thereof is similar and will not be described herein again.
In summary, the terminal device according to the embodiment of the present invention includes at least two speakers disposed on different sides, and after detecting the screen direction of the terminal device, according to the screen direction of the terminal device, a target speaker applicable to the current screen direction is determined from the at least two speakers, so as to control the terminal device to use the target speaker for audio playing. Due to the fact that the terminal device comprises at least two loudspeakers arranged on different sides, the method provided by the embodiment of the invention can be used for playing audio by adopting the applicable target loudspeakers under different screen directions, and the technical problem that sound emitting holes are easily blocked by fingers to influence sound emitting in a transverse screen mode in the prior art is solved.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (6)

1. A loudspeaker control method is applied to a terminal device, the terminal device comprises at least two loudspeakers arranged on different sides, and the method comprises the following steps: detecting the screen direction of the terminal equipment, wherein the screen direction comprises a vertical screen direction and a horizontal screen direction;
according to the screen direction of the terminal device, determining a target speaker applicable to the screen direction from at least two speakers arranged on different sides perpendicular to each other, wherein the target speaker includes speakers in an area where the side of the terminal device is not blocked in the screen direction, and the method includes:
inquiring the side edges of the sound outlet holes of the loudspeakers; the terminal equipment comprises a first side edge and a second side edge which are perpendicular to each other, and the first side edge and the second side edge are positioned on different planes;
when the screen direction is a vertical screen direction in which the first side edge is positioned at the left side and the right side, determining that the target loudspeaker is a loudspeaker in which a sound outlet is arranged at the second side edge;
when the screen direction is the transverse screen direction in which the second side edge is positioned at the left side and the right side, determining that the target loudspeaker is a loudspeaker in which a sound outlet is arranged at the first side edge;
and controlling the terminal equipment to adopt the target loudspeaker to play audio.
2. The speaker control method according to claim 1, wherein before detecting the screen direction of the terminal device, the method further comprises:
and detecting the sound outlet hole blockage of the speaker currently used by the terminal equipment, and determining that the speaker currently used is blocked.
3. A speaker control apparatus, wherein the apparatus is applied to a terminal device, the terminal device includes at least two speakers disposed on different sides, the apparatus includes:
the direction detection module is used for detecting the screen direction of the terminal equipment, and the screen direction comprises a vertical screen direction and a horizontal screen direction;
a determining module, configured to determine, according to a screen direction of the terminal device, a target speaker applicable in the screen direction from at least two speakers arranged on different sides that are perpendicular to each other, where the target speaker includes a speaker in an area where a side of the terminal device is not blocked in the screen direction;
the determining module includes:
the query unit is used for querying the side edges of the sound outlet holes of the loudspeakers; the terminal equipment comprises a first side edge and a second side edge which are perpendicular to each other;
a determination unit configured to:
when the screen direction is a vertical screen direction in which the first side edge is positioned at the left side and the right side, determining that the target loudspeaker is a loudspeaker in which a sound outlet is arranged at the second side edge;
when the screen direction is the transverse screen direction in which the second side edge is positioned at the left side and the right side, determining that the target loudspeaker is a loudspeaker in which a sound outlet is arranged at the first side edge; wherein the target speakers comprise speakers in an area where a side of the terminal device is not occluded in the screen direction;
and the control module is used for controlling the terminal equipment to adopt the target loudspeaker to play audio.
4. A speaker control apparatus according to any one of claim 3, wherein the apparatus further comprises:
and the hole blocking detection module is used for detecting the sound outlet hole blocking of the loudspeaker currently used by the terminal equipment before the screen direction of the terminal equipment is detected, and determining that the loudspeaker currently used is blocked.
5. A terminal device, characterized in that it comprises a loudspeaker control apparatus according to any one of claims 3-4.
6. A terminal device, comprising one or more of the following components: the terminal equipment comprises a shell, and a processor, a memory and a loudspeaker which are positioned in the shell, wherein at least two loudspeakers are arranged on different sides of the terminal equipment, the memory stores executable program codes, and the processor runs a program corresponding to the executable program codes by reading the executable program codes stored in the memory so as to execute the following steps:
detecting the screen direction of the terminal equipment, wherein the screen direction comprises a vertical screen direction and a horizontal screen direction;
according to the screen direction of the terminal device, determining a target speaker applicable to the screen direction from at least two speakers arranged on different sides perpendicular to each other, wherein the target speaker includes speakers in an area where the side of the terminal device is not blocked in the screen direction, and the method includes:
inquiring the side edges of the sound outlet holes of the loudspeakers; the terminal equipment comprises a first side edge and a second side edge which are perpendicular to each other, and the first side edge and the second side edge are positioned on different planes;
when the screen direction is a vertical screen direction in which the first side edge is positioned at the left side and the right side, determining that the target loudspeaker is a loudspeaker in which a sound outlet is arranged at the second side edge;
when the screen direction is the transverse screen direction in which the second side edge is positioned at the left side and the right side, determining that the target loudspeaker is a loudspeaker in which a sound outlet is arranged at the first side edge;
and controlling the terminal equipment to adopt the target loudspeaker to play audio.
CN201710123523.9A 2017-03-03 2017-03-03 Loudspeaker control method and device and terminal equipment Active CN106998521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710123523.9A CN106998521B (en) 2017-03-03 2017-03-03 Loudspeaker control method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710123523.9A CN106998521B (en) 2017-03-03 2017-03-03 Loudspeaker control method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN106998521A CN106998521A (en) 2017-08-01
CN106998521B true CN106998521B (en) 2020-01-10

Family

ID=59431170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710123523.9A Active CN106998521B (en) 2017-03-03 2017-03-03 Loudspeaker control method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN106998521B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109121046B (en) * 2018-07-24 2020-09-01 Oppo(重庆)智能科技有限公司 Plugging hole treatment method and related product
CN109905508A (en) * 2019-03-29 2019-06-18 努比亚技术有限公司 The center of mobile terminal and mobile terminal
CN110580141B (en) * 2019-08-07 2022-09-30 上海摩软通讯技术有限公司 Mobile terminal
CN110972043B (en) * 2019-11-25 2021-10-08 歌尔股份有限公司 Vibration exciter for electronic product and electronic product
CN111294438B (en) * 2020-01-22 2021-06-01 华为技术有限公司 Method and terminal for realizing stereo output
CN111638779A (en) * 2020-04-27 2020-09-08 维沃移动通信有限公司 Audio playing control method and device, electronic equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167383A (en) * 2011-12-15 2013-06-19 冠捷投资有限公司 Electronic device capable of automatically using correct sound channels for output
CN103501375A (en) * 2013-09-16 2014-01-08 华为终端有限公司 Method and device for controlling sound effect
CN103823654A (en) * 2014-02-24 2014-05-28 联想(北京)有限公司 Information processing method and electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130028446A1 (en) * 2011-07-29 2013-01-31 Openpeak Inc. Orientation adjusting stereo audio output system and method for electrical devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167383A (en) * 2011-12-15 2013-06-19 冠捷投资有限公司 Electronic device capable of automatically using correct sound channels for output
CN103501375A (en) * 2013-09-16 2014-01-08 华为终端有限公司 Method and device for controlling sound effect
CN103823654A (en) * 2014-02-24 2014-05-28 联想(北京)有限公司 Information processing method and electronic device

Also Published As

Publication number Publication date
CN106998521A (en) 2017-08-01

Similar Documents

Publication Publication Date Title
CN106998521B (en) Loudspeaker control method and device and terminal equipment
KR101954012B1 (en) Method, terminal, and system for processing data in a video stream
CN111212209B (en) Camera module and electronic equipment
CN109660817B (en) Video live broadcast method, device and system
CN107071648B (en) Sound playing adjusting system, device and method
EP3624457A1 (en) Method and apparatus for live broadcasting
US20150312691A1 (en) Automatic microphone switching
CN106303733B (en) Method and device for playing live special effect information
CN111107389B (en) Method, device and system for determining live broadcast watching time length
US9473867B2 (en) Notification control device, notification control method and storage medium
CN109067981B (en) Split screen application switching method and device, storage medium and electronic equipment
CN113727027B (en) Information processing method, information processing system, and medium
CN108076223B (en) Task switching method and device, terminal equipment and storage medium
JP2013251763A (en) Electronic apparatus, control method of electronic apparatus, and control program of electronic apparatus
CN112245912B (en) Sound prompting method, device, equipment and storage medium in virtual scene
WO2019029379A1 (en) Interaction object control method and device, terminal and computer-readable storage medium
CN111078186A (en) Playing method and electronic equipment
CN111787347A (en) Live broadcast time length calculation method, live broadcast display method, device and equipment
CN110221765B (en) Video file playing method and device, storage medium and terminal
CN108509127B (en) Method and device for starting screen recording task and computer equipment
CN113542597A (en) Focusing method and electronic device
CN112181442B (en) Unloading page display method, device, terminal, server and storage medium
CN111866674B (en) Speaker assembly control method, device and storage medium
CN111010640A (en) Earphone control method, earphone and storage medium
CN109640075B (en) Camera detection device and method 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: OPPO Guangdong Mobile Communications Co., Ltd.

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

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant