CN110620837A - Receiver control method and electronic equipment - Google Patents

Receiver control method and electronic equipment Download PDF

Info

Publication number
CN110620837A
CN110620837A CN201911025739.7A CN201911025739A CN110620837A CN 110620837 A CN110620837 A CN 110620837A CN 201911025739 A CN201911025739 A CN 201911025739A CN 110620837 A CN110620837 A CN 110620837A
Authority
CN
China
Prior art keywords
ear
earpiece
electronic device
receiver
earphone
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.)
Granted
Application number
CN201911025739.7A
Other languages
Chinese (zh)
Other versions
CN110620837B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911025739.7A priority Critical patent/CN110620837B/en
Publication of CN110620837A publication Critical patent/CN110620837A/en
Application granted granted Critical
Publication of CN110620837B publication Critical patent/CN110620837B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/03Constructional features of telephone transmitters or receivers, e.g. telephone hand-sets

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a receiver control method and electronic equipment, wherein the method comprises the following steps: in the case where an earpiece receives audio, detecting a location of an ear receiving the audio; and adjusting the sound production position of an earphone of the electronic equipment according to the position of the ear. According to the embodiment of the invention, when the position of the ear is changed, the change of the sound volume sensed by the ear can be reduced, so that the use effect of the earphone is improved.

Description

Receiver control method and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for controlling a handset and an electronic device.
Background
At present, a full-screen mobile phone is popularized, and although the screen occupation ratio of the mobile phone is improved, the high screen occupation ratio enables the space of a mobile phone receiver to be compressed, so that the volume received by a user is influenced by the movement of the receiver, namely, the sound attenuation is in direct proportion to the offset of the position between an auricle and the receiver, and the larger the offset is, the more serious the sound attenuation is, the smaller the volume received by the user is. Therefore, the earphone is required to be tightly attached to the auricle in the using process so as to ensure good conversation quality. However, in the prior art, since the installation position of the earphone on the mobile phone is fixed, when the position of the ear of the human body changes, the sound volume sensed by the ear changes greatly, so that the using effect of the earphone is poor.
Disclosure of Invention
The embodiment of the invention provides a receiver control method and electronic equipment, and aims to solve the problem that in the prior art, when the position of an ear of a human body changes, the sound volume sensed by the ear changes greatly, and the use effect of a receiver is poor.
In a first aspect, an embodiment of the present invention provides an earphone control method, where the method includes:
in the case where an earpiece receives audio, detecting a location of an ear receiving the audio;
and adjusting the sound production position of an earphone of the electronic equipment according to the position of the ear.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
the detection module is used for detecting the position of an ear receiving the audio under the condition that the earphone receives the audio;
and the adjusting module is used for adjusting the sound production position of a receiver of the electronic equipment according to the position of the ear.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes: a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the handset control method described above.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the above-mentioned earpiece control method.
The embodiment of the invention detects the position of the ear receiving the audio frequency; and adjust the sound production position of the earphone of the electronic equipment according to the position of the ear, thus being capable of controlling the sound production position of the earphone to be automatically adjusted according to the position change of the ear, reducing the change of the sound volume sensed by the ear when the position of the ear is changed, and further improving the use effect of the earphone.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of an earpiece control method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a slide-mount handset control in a handset control method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a rotationally mounted handset control in a handset control method according to an embodiment of the present invention;
fig. 4 is a control schematic diagram of a plurality of handsets installed in a handset control method according to an embodiment of the present invention;
FIG. 5 is a block diagram of an electronic device provided by an embodiment of the invention;
fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of an earpiece control method according to an embodiment of the present invention, as shown in fig. 1, including the following steps:
step 101, detecting the position of an ear receiving audio under the condition that an earphone receives the audio;
the earphone control method provided by the embodiment of the invention is mainly applied to electronic equipment and is used for automatically adjusting the sound production position of the earphone according to the position of the ear, so that the aim of reducing the perceived volume change under the condition that the position of the ear is changed is fulfilled.
The electronic equipment can monitor a call event in real time, controls the earphone to be started if a call request exists, and receives and plays audio after the earphone is started. The electronic device may be a calling terminal or a called terminal in the call request, and the call event may be a call based on the mobile internet or a voice call on social software. Of course, the electronic device may also activate the handset to play the multimedia file in the handset mode, such as activating the handset to receive and play the voice message on the WeChat in the handset mode.
The electronic equipment can be used for electrifying the receiver to control the receiver to be started, after the receiver is started, the electronic equipment can detect the position of the ear in real time in the conversation process, and also can detect the position of the ear at preset intervals in the conversation process, and the position of the ear can be understood as the position of the ear relative to the electronic equipment.
In this embodiment, detecting the position of the ear receiving the audio may generally be understood as the ear that is facing or near the screen of the electronic device for audio listening.
Optionally, the detecting the position of the ear receiving the audio is different according to whether the ear of the human body is in contact with the screen of the electronic device, and specifically includes:
when an ear is in contact with a screen of the electronic equipment, determining the position of the ear according to touch information detected by the screen;
when the ears are not in contact with the screen of the electronic equipment, the positions of the ears are determined according to the picture information collected by the front camera.
For example, when the receiver receives audio, whether the ear of a human body contacts the screen is detected through a touch screen of the mobile phone, if the ear contacts the screen, the position of the ear is obtained according to the contact position, two points of the outermost edge of the contact between the screen and the ear are taken, and the midpoint of the two points is determined as the position of the ear; if the screen does not contact the ears, the front camera of the mobile phone is turned on, and the positions of the ears are identified and obtained through the ears.
And step 102, adjusting the sound production position of a receiver of the electronic equipment according to the position of the ear.
In the step, the adjustment mode of the earphone of the electronic equipment is determined by the installation mode of the earphone, and the earphone can have three installation modes on the electronic equipment, which correspond to the three adjustment modes;
the first one is sliding installation, that is, the receiver can slide on the electronic device by a preset slide rail, and correspondingly, the electronic device can control the receiver to slide according to the position of the ear to adjust the sounding position of the receiver, so as to achieve the purpose of aligning the position of the ear;
the second type is a rotary installation, for example, the receiver is installed inside a rotary component, the rotary component drives the receiver to rotate relative to the electronic device in the rotating process, and correspondingly, the electronic device can control the receiver to rotate according to the position of the ear to adjust the sound production position of the receiver, so as to achieve the purpose of aligning the position of the ear;
the third is that at least two receivers are installed on the electronic device, the receivers can be installed fixedly or movably, and can be installed on the electronic device at equal intervals or irregularly, the specific installation form is not elaborated, and correspondingly, the electronic device can control the target receiver to receive the audio according to the position of the ear, so as to adjust the sound production position of the receiver and achieve the purpose of aligning with the position of the ear.
The embodiment of the invention detects the position of the ear receiving the audio frequency; and adjust the sound production position of the earphone of the electronic equipment according to the position of the ear, thus being capable of controlling the sound production position of the earphone to be automatically adjusted according to the position change of the ear, reducing the change of the sound volume sensed by the ear when the position of the ear is changed, and further improving the use effect of the earphone.
Further, in an example, if the position of the receiver is adjustable, the step 102 specifically includes:
calculating a first offset of the earpiece from the position of the ear;
and adjusting the position of the receiver according to the first offset.
In this embodiment, the earpiece is movably mounted on the electronic device, as shown in fig. 2, the earpiece is movably mounted on the electronic device by a horizontal sliding rail, and can slide left and right on the horizontal sliding rail, as shown in fig. 3, the earpiece is integrated on the top of the lifting camera component, and the lifting camera component can rotate left and right.
Optionally, the position of the current leading sound channel on the electronic device, that is, the position of the earpiece on the electronic device, is obtained, and a first offset of the earpiece from the position of the ear is calculated, where the first offset may be a vector and includes a direction and a relative distance of the earpiece with respect to the position of the ear.
The installation modes of the above earphones are different, and the corresponding adjustment processes are also different, and the corresponding adjustment processes will be described in detail below for the different installation modes of the earphones.
In an embodiment, when the receiver is installed in a sliding manner, the adjusting the position of the receiver according to the first offset includes:
determining the moving direction and the moving distance of the earphone according to the first offset;
and controlling the earphone to move according to the moving direction and the moving distance.
As shown in fig. 2, the receiver 201 is mounted on the electronic device by a horizontal sliding rail 202, and when it is detected that the ear touches the screen and is located on the left side of the screen, and the original position of the receiver 201 is located at the middle position of the screen, the electronic device controls the receiver 201 to slide a corresponding moving distance to the left, so that the receiver can be aligned with the ear.
In the embodiment of the invention, under a mobile scene in the conversation process of the electronic equipment, the sound production position of the receiver is changed along with the change of the position of the ear, so that the volume change sensed by a user is reduced, the use effect of the receiver under the scene that the relative position of the receiver and the ear is changed is improved, the conversation sound effect is ensured, and the conversation experience is improved; and the user is allowed to reduce the discomfort caused by the electronic equipment clinging to the ear when the user uses the electronic equipment for communication.
In another embodiment, when the earpiece is rotatably mounted, the adjusting the position of the earpiece according to the first offset includes:
determining the rotation direction and the rotation angle of the receiver according to the first offset;
and controlling the receiver to rotate according to the rotating direction and the rotating angle.
As shown in fig. 3, the earpiece 301 is mounted on the top of the lifting camera component 302, the lifting camera component is a rotatable component, detects that the ear is in contact with the screen and is located on the left side of the screen, the original position of the earpiece 301 is located in the middle of the screen and is perpendicular to the electronic device, calculates the first offset, converts the first offset into a rotation angle through a trigonometric relationship with the horizontal and vertical directions of the electronic device as the relative axial direction, and then the electronic device controls the earpiece 301 to rotate to the left by the corresponding rotation angle, so that the earpiece can be aligned with the ear. For example, the earpiece is usually provided with a sound emitting hole, and the position of the sound emitting hole is changed by controlling the rotation of the earpiece, so as to change the sound emitting position of the earpiece.
According to the embodiment of the invention, the direction and the distance of the sounding can be adjusted by controlling the self-adaptive rotation of the receiver according to the position of the ear so as to align the position of the external auditory canal of the ear, thereby reducing the volume change sensed by a user and ensuring the conversation quality and effect.
It should be noted that, in the process of adjusting the sound emitting position of the receiver or when the receiver is adjusted to the limit position and cannot track the ear position, in order to further reduce the volume change sensed by the user, the volume may also be adjusted according to the distance information of the receiver relative to the ear position, for example, after the ear is detected to move relative to the electronic device, the distance information of the receiver relative to the ear position is detected, and the sound emitting volume of the receiver is adjusted according to the distance information. When the distance information is changed from small to large, the sound volume of the earphone is increased, and when the distance information is changed from large to small, the sound volume of the earphone is decreased, so that on one hand, the sound volume change sensed by a user can be further reduced, and on the other hand, the situation that the sound volume sensed when the ear is close to the electronic equipment is relatively sharp or the sound volume of the earphone cannot be sensed when the ear is far away from the electronic equipment can be avoided.
Optionally, in another embodiment, if the number of the earpieces is at least two; the step 102 specifically includes:
determining a target earphone for sounding according to a second offset of each earphone from the position of the ear;
and controlling the target receiver to receive and play audio.
In this embodiment, at least two receivers are installed on the electronic device, and these receivers may be installed fixedly or movably, and may be installed on the electronic device at equal intervals or irregularly installed on the electronic device, and a second offset between each receiver and the position of the ear is calculated, and according to the second offset, a target receiver for generating sound is determined, where the target receiver may be a receiver corresponding to a minimum second offset, that is, a receiver closest to the ear position.
It should be understood that, in this embodiment, controlling the target earphone to receive and play audio may be understood as: and controlling the target receiver to start, wherein the target receiver can receive the audio and make a sound under the condition that the target receiver is started. In other embodiments, controlling the target handset to receive and play audio may further be understood as: all the receivers are always in a starting state, whether the receivers receive the audio needs to be controlled, and at the moment, the target receivers can be controlled to receive the audio and make sounds. In the following embodiments, the following embodiments will be described in detail by taking the control target handset activated as an example of the control target handset receiving and playing audio.
As shown in fig. 4, three earphones, namely an earphone 401, an earphone 402 and an earphone 403 are fixedly mounted at the top end of the electronic device at equal intervals, the situation that the ears touch the screen and are positioned on the left side of the screen is detected, and the earphone 403 is determined to be closest to the positions of the ears according to the second offset.
Subsequently, the electronic device determines whether the handset 403 is in an on state, and if the handset is already on, the state of each handset is kept unchanged without switching the sounding handset.
If the receiver 403 is not turned on, controlling the receiver 403 to be turned on, for example, the receiver 401 is turned on before the electronic device, and when it is detected that the ear is moved and is closest to the receiver 403, the electronic device may control the receiver 403 to be turned on and switch the receivers for receiving audio, at this time, the state of each receiver is that the receiver 401 and the receiver 402 are in a closed state, and the receiver 403 is in an open state; the electronic device may also control the earpiece 403 to start, but does not switch the earpiece that produces sound, at this time, two earpieces are used to simultaneously receive audio and produce sound, the state of each earpiece is that the earpiece 401 and the earpiece 403 are in an open state, and the earpiece 402 is in a closed state.
When a plurality of headphones are simultaneously sounded, the operating cadences of the plurality of headphones need to be kept consistent in order to coordinate the sound perceived by the user.
According to the embodiment of the invention, under a mobile scene in the conversation process of the electronic equipment, the receiver can be freely switched according to the position of the ear, so that the sound production position of the receiver can be changed along with the change of the position of the ear, the conversation sound effect is ensured, and the user experience is improved.
It should be noted that, various optional implementations described in the embodiments of the present invention may be implemented in combination with each other or implemented separately, and the embodiments of the present invention are not limited thereto.
Referring to fig. 5, fig. 5 is a structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 5, the electronic device 500 includes:
a detecting module 501, configured to detect, when an earphone receives audio, a position of an ear that receives the audio;
an adjusting module 502, configured to adjust a sound emitting position of an earpiece of the electronic device according to the position of the ear.
Optionally, the adjusting module 502 includes:
a calculation unit for calculating a first offset of the position of the earpiece from the ear;
and the adjusting unit is used for adjusting the position of the receiver according to the first offset.
Optionally, the adjusting unit is specifically configured to determine a moving direction and a moving distance of the earpiece according to the first offset; and controlling the earphone to move according to the moving direction and the moving distance.
Optionally, the adjusting unit is specifically configured to determine a rotation direction and a rotation angle of the earpiece according to the first offset; and controlling the receiver to rotate according to the rotating direction and the rotating angle.
Optionally, the number of the earpieces is at least two; the adjusting module 502 comprises:
a determining unit, configured to determine a target earpiece used for generating sound according to a second offset of the position of each earpiece from the ear;
and the control unit is used for controlling the target receiver to receive and play audio.
Optionally, the detecting module 501 is specifically configured to, when an ear is in contact with a screen of an electronic device, determine a position of the ear according to ear information detected by the screen; when the ears are not in contact with the screen of the electronic equipment, the positions of the ears are determined according to the picture information collected by the front camera.
The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiments, and is not described herein again to avoid repetition.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 610 is configured to detect a position of an ear receiving the audio in a case where the earphone receives the audio; and adjusting the sound production position of an earphone of the electronic equipment according to the position of the ear.
Optionally, the processor 610 is further configured to calculate a first offset of the position of the earpiece from the ear; and adjusting the position of the receiver according to the first offset.
Optionally, the processor 610 is further configured to determine a moving direction and a moving distance of the earphone according to the first offset; controlling the earphone to move according to the moving direction and the moving distance;
optionally, the processor 610 is further configured to determine a rotation direction and a rotation angle of the earpiece according to the first offset; and controlling the receiver to rotate according to the rotating direction and the rotating angle.
Optionally, the number of the earpieces is at least two; a processor 610, further configured to determine a target earpiece for sounding according to a second offset of each of the earpieces from the position of the ear; and controlling the target receiver to receive and play audio.
Optionally, the processor 610 is further configured to determine, when the ear is in contact with a screen of the electronic device, a position of the ear according to the ear information detected by the screen; when the ears are not in contact with the screen of the electronic equipment, the positions of the ears are determined according to the picture information collected by the front camera.
The embodiment of the invention detects the position of the ear receiving the audio frequency; and adjust the sound production position of the earphone of the electronic equipment according to the position of the ear, thus being capable of controlling the sound production position of the earphone to be automatically adjusted according to the position change of the ear, reducing the change of the sound volume sensed by the ear when the position of the ear is changed, and further improving the use effect of the earphone.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 602, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the electronic apparatus 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The electronic device 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the electronic apparatus 600 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the electronic device, and this is not limited here.
The interface unit 608 is an interface for connecting an external device to the electronic apparatus 600. 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 interface unit 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 600 or may be used to transmit data between the electronic device 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 609, and calling data stored in the memory 609, thereby performing overall monitoring of the electronic device. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The electronic device 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 may be logically connected to the processor 610 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
In addition, the electronic device 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 610, a memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program, when executed by the processor 610, implements each process of the above-mentioned earpiece control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the earpiece control method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. An earphone control method applied to electronic equipment is characterized by comprising the following steps:
in the case where an earpiece receives audio, detecting a location of an ear receiving the audio;
and adjusting the sound production position of an earphone of the electronic equipment according to the position of the ear.
2. The method of claim 1, wherein adjusting the sound emitting position of an earpiece of the electronic device according to the position of the ear comprises:
calculating a first offset of the earpiece from the position of the ear;
and adjusting the position of the receiver according to the first offset.
3. The method of claim 2, wherein the adjusting the position of the earpiece in accordance with the first offset comprises:
determining the moving direction and the moving distance of the earphone according to the first offset;
and controlling the earphone to move according to the moving direction and the moving distance.
4. The method of claim 2, wherein the adjusting the position of the earpiece in accordance with the first offset comprises:
determining the rotation direction and the rotation angle of the receiver according to the first offset;
and controlling the receiver to rotate according to the rotating direction and the rotating angle.
5. The method of claim 1, wherein the number of earpieces is at least two; the adjusting the sounding position of an earphone of the electronic device according to the position of the ear comprises:
determining a target earphone for sounding according to a second offset of each earphone from the position of the ear;
and controlling the target receiver to receive and play the audio.
6. An electronic device, characterized in that the electronic device comprises:
the detection module is used for detecting the position of an ear receiving the audio under the condition that the earphone receives the audio;
and the adjusting module is used for adjusting the sound production position of a receiver of the electronic equipment according to the position of the ear.
7. The electronic device of claim 6, wherein the adjustment module comprises:
a calculation unit for calculating a first offset of the position of the earpiece from the ear;
and the adjusting unit is used for adjusting the position of the receiver according to the first offset.
8. The electronic device according to claim 7, wherein the adjusting unit is specifically configured to determine a moving direction and a moving distance of the earpiece according to the first offset; and controlling the earphone to move according to the moving direction and the moving distance.
9. The electronic device according to claim 7, wherein the adjusting unit is specifically configured to determine a rotation direction and a rotation angle of the earpiece according to the first offset; and controlling the receiver to rotate according to the rotating direction and the rotating angle.
10. The electronic device of claim 7, wherein the number of earpieces is at least two; the adjustment module includes:
a determining unit, configured to determine a target earpiece used for generating sound according to a second offset of the position of each earpiece from the ear;
and the control unit is used for controlling the target receiver to receive and play the audio.
11. An electronic device, comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the earpiece control method of any of claims 1 to 5.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the earpiece control method of any one of claims 1 to 5.
CN201911025739.7A 2019-10-25 2019-10-25 Receiver control method and electronic equipment Active CN110620837B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911025739.7A CN110620837B (en) 2019-10-25 2019-10-25 Receiver control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911025739.7A CN110620837B (en) 2019-10-25 2019-10-25 Receiver control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN110620837A true CN110620837A (en) 2019-12-27
CN110620837B CN110620837B (en) 2021-12-14

Family

ID=68926759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911025739.7A Active CN110620837B (en) 2019-10-25 2019-10-25 Receiver control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110620837B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113271369A (en) * 2021-05-18 2021-08-17 维沃移动通信有限公司 Call control method and device of electronic equipment and electronic equipment
CN113572878A (en) * 2020-04-29 2021-10-29 维沃移动通信有限公司 Electronic device, control method and control device thereof, and readable storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201976158U (en) * 2010-06-17 2011-09-14 宇龙计算机通信科技(深圳)有限公司 Volume adjusting device and mobile terminal
JP2012034263A (en) * 2010-08-02 2012-02-16 Panasonic Corp Portable terminal device
CN102404430A (en) * 2010-09-13 2012-04-04 富泰华工业(深圳)有限公司 Mobile communication device and method for improving speech quality thereof
CN104917898A (en) * 2015-06-17 2015-09-16 广东欧珀移动通信有限公司 Mobile terminal and control method of mobile terminal
CN107343076A (en) * 2017-08-18 2017-11-10 广东欧珀移动通信有限公司 Volume adjusting method, device, storage medium and mobile terminal
CN108196815A (en) * 2017-12-28 2018-06-22 维沃移动通信有限公司 A kind of adjusting method and mobile terminal of sound of conversing
CN108683795A (en) * 2018-03-30 2018-10-19 中兴通讯股份有限公司 Mobile terminal and its control method and computer readable storage medium
CN108762711A (en) * 2018-05-17 2018-11-06 Oppo广东移动通信有限公司 Method, apparatus, electronic device and the storage medium of screen sounding
CN108924313A (en) * 2018-07-27 2018-11-30 维沃移动通信有限公司 A kind of electronic equipment and called answering method
CN109089192A (en) * 2018-08-03 2018-12-25 维沃移动通信有限公司 A kind of method and terminal device exporting voice
CN109189360A (en) * 2018-07-09 2019-01-11 Oppo广东移动通信有限公司 Screen sounding control method, device and electronic device
CN110072172A (en) * 2019-04-25 2019-07-30 广州小鹏汽车科技有限公司 A kind of output method and device of audio signal

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201976158U (en) * 2010-06-17 2011-09-14 宇龙计算机通信科技(深圳)有限公司 Volume adjusting device and mobile terminal
JP2012034263A (en) * 2010-08-02 2012-02-16 Panasonic Corp Portable terminal device
CN102404430A (en) * 2010-09-13 2012-04-04 富泰华工业(深圳)有限公司 Mobile communication device and method for improving speech quality thereof
CN104917898A (en) * 2015-06-17 2015-09-16 广东欧珀移动通信有限公司 Mobile terminal and control method of mobile terminal
CN107343076A (en) * 2017-08-18 2017-11-10 广东欧珀移动通信有限公司 Volume adjusting method, device, storage medium and mobile terminal
CN108196815A (en) * 2017-12-28 2018-06-22 维沃移动通信有限公司 A kind of adjusting method and mobile terminal of sound of conversing
CN108683795A (en) * 2018-03-30 2018-10-19 中兴通讯股份有限公司 Mobile terminal and its control method and computer readable storage medium
CN108762711A (en) * 2018-05-17 2018-11-06 Oppo广东移动通信有限公司 Method, apparatus, electronic device and the storage medium of screen sounding
CN109189360A (en) * 2018-07-09 2019-01-11 Oppo广东移动通信有限公司 Screen sounding control method, device and electronic device
CN108924313A (en) * 2018-07-27 2018-11-30 维沃移动通信有限公司 A kind of electronic equipment and called answering method
CN109089192A (en) * 2018-08-03 2018-12-25 维沃移动通信有限公司 A kind of method and terminal device exporting voice
CN110072172A (en) * 2019-04-25 2019-07-30 广州小鹏汽车科技有限公司 A kind of output method and device of audio signal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113572878A (en) * 2020-04-29 2021-10-29 维沃移动通信有限公司 Electronic device, control method and control device thereof, and readable storage medium
CN113271369A (en) * 2021-05-18 2021-08-17 维沃移动通信有限公司 Call control method and device of electronic equipment and electronic equipment

Also Published As

Publication number Publication date
CN110620837B (en) 2021-12-14

Similar Documents

Publication Publication Date Title
CN111459456B (en) Audio control method and electronic equipment
CN110072014B (en) Screen folding state determining method and mobile terminal
CN109086027B (en) Audio signal playing method and terminal
CN108628515B (en) Multimedia content operation method and mobile terminal
CN108196815B (en) Method for adjusting call sound and mobile terminal
EP3934213B1 (en) Mobile terminal and sound output control method
CN110012143B (en) Telephone receiver control method and terminal
CN111147919A (en) Play adjustment method, electronic equipment and computer readable storage medium
CN110830861B (en) Telephone receiver control method and device and electronic equipment
CN111510623B (en) Shooting method and electronic equipment
CN111372228A (en) Audio control method and electronic equipment
CN110891217A (en) Earphone, earphone control method and electronic equipment
CN110620837B (en) Receiver control method and electronic equipment
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN110460717B (en) Terminal control method and mobile terminal
US12120261B2 (en) Incoming call processing method and electronic device
CN108632466B (en) Volume compensation method and mobile terminal
CN111526248B (en) Audio output mode switching method and electronic equipment
CN111459447B (en) Volume adjustment display method and electronic equipment
CN109062483B (en) Image processing method and terminal equipment
CN108804071B (en) Receiver driving method and mobile terminal
CN108900942B (en) Play control method and electronic equipment
CN109788143B (en) Call processing method and mobile terminal
CN111405226B (en) Video session method and electronic equipment
CN109819118B (en) Volume adjusting 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
GR01 Patent grant
GR01 Patent grant