CN111093137A - Volume control method, volume control equipment and computer readable storage medium - Google Patents

Volume control method, volume control equipment and computer readable storage medium Download PDF

Info

Publication number
CN111093137A
CN111093137A CN201911373390.6A CN201911373390A CN111093137A CN 111093137 A CN111093137 A CN 111093137A CN 201911373390 A CN201911373390 A CN 201911373390A CN 111093137 A CN111093137 A CN 111093137A
Authority
CN
China
Prior art keywords
speaker
volume
mode
loudspeaker
electronic device
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
CN201911373390.6A
Other languages
Chinese (zh)
Other versions
CN111093137B (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 CN201911373390.6A priority Critical patent/CN111093137B/en
Publication of CN111093137A publication Critical patent/CN111093137A/en
Priority to PCT/CN2020/139608 priority patent/WO2021129835A1/en
Application granted granted Critical
Publication of CN111093137B publication Critical patent/CN111093137B/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
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Abstract

The invention discloses a volume control method, volume control equipment and a computer readable storage medium, relates to the technical field of communication, and aims to solve the problem of poor user experience caused by overlarge instantaneous volume output by a loudspeaker when the loudspeaker is switched from an earphone mode to a loudspeaker mode. The method comprises the following steps: receiving a first input with the first speaker in an earpiece mode; in response to the first input, switching the first speaker to a speaker mode and setting an output volume of the first speaker to a first volume; wherein the first volume is associated with an operating duration or an output volume of the first speaker when in an earpiece mode. The embodiment of the invention can protect the hearing and improve the user experience.

Description

Volume control method, volume control equipment and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a volume control method, device, and computer-readable storage medium.
Background
With the rapid development of technology, more and more electronic equipment products with dual speakers are available. Taking a mobile phone as an example, the dual speakers can perform dual-channel output, thereby realizing a stereo effect.
Generally, a mobile phone with two speakers is divided into two types, the first type is that the two speakers are both located at the bottom of the mobile phone, and the second type is that the bottom of the mobile phone and the upper side of the mobile phone are respectively provided with one speaker. Currently, most dual speaker handsets take the second form. The speaker provided above the cellular phone functions as a handset when a call is made or received by the cellular phone, and functions as a speaker when video or music is played.
When using such a dual speaker phone of the top-bottom separation type, there may be the following scenarios: when a user watches videos or listens to music by using a mobile phone, if the user needs to answer a call, a loudspeaker above the mobile phone is triggered to serve as a receiver. After the conversation is finished, the loudspeaker above the mobile phone is instantly switched to be used as a loudspeaker. The outgoing sound can often "fry" the user's ear. This may cause a certain degree of damage to the user's hearing, thereby affecting the user's experience of use.
Disclosure of Invention
Embodiments of the present invention provide a volume control method, a device, and a computer-readable storage medium, so as to solve a problem that when a speaker is switched from an earpiece mode to a speaker mode, user experience is poor due to an influence on user hearing caused by an excessively long working time or an excessively large output volume in the earpiece mode.
In a first aspect, an embodiment of the present invention provides a volume control method, which is applied to an electronic device, where the electronic device includes a first speaker, and an operating mode of the first speaker includes a speaker mode and an earpiece mode, and the method includes:
receiving a first input with the first speaker in an earpiece mode;
in response to the first input, switching the first speaker to a speaker mode and setting an output volume of the first speaker to a first volume;
wherein the first volume is associated with an operating duration or an output volume of the first speaker when in an earpiece mode.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes a first speaker, and an operating mode of the first speaker includes a speaker mode and an earpiece mode, and the electronic device includes:
a first receiving module for receiving a first input when the first speaker is in an earpiece mode;
a first processing module, configured to switch the first speaker into a speaker mode in response to the first input, and set an output volume of the first speaker to a first volume;
wherein the first volume is associated with an operating duration or an output volume of the first speaker when in an earpiece mode.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the method of the first aspect as described above when executing the computer program.
In a fourth aspect, the embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the method of the first aspect as described above.
In an embodiment of the present invention, when a first speaker is in an earpiece mode, a first input is received, and in response to the first input, the first speaker is switched to a speaker mode, and an output volume of the first speaker is set to a first volume, where the first volume is associated with an operating time period or an output volume of the first speaker when the first speaker is in the earpiece mode. Therefore, by using the scheme of the embodiment of the invention, when the first loudspeaker is switched from the earphone mode to the loudspeaker mode, the first volume of the loudspeaker can be set according to the working time length or the output volume of the first loudspeaker in the earphone mode, so that the hearing can be protected, and the user experience can be improved.
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 a volume control method according to an embodiment of the present invention;
fig. 2 is a second flowchart of a volume control method according to an embodiment of the present invention;
fig. 3 is a third flowchart of a volume control method according to an embodiment of the present invention;
FIG. 4 is a block diagram of an electronic device according to an embodiment of the present invention;
fig. 5 is a second structural diagram of an electronic device according to an embodiment of the 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 a volume control method provided by an embodiment of the present invention, and is applied to an electronic device. The electronic device comprises a first speaker, wherein the operating mode of the first speaker comprises a speaker mode and an earpiece mode. As shown in fig. 1, the method comprises the following steps:
step 101, receiving a first input when the first speaker is in an earpiece mode.
Wherein the first speaker being in an earpiece mode comprises a working mode of the speaker when the electronic device is used to listen to a call. The first input may be a click, touch, or the like.
In practical applications, for example, when a sound signal of a media file is being output by the first speaker, the first speaker may pause outputting the sound signal if there is an incoming call. And then, responding to the incoming call input of the user, and enabling the user to use the electronic equipment to carry out conversation, wherein the electronic equipment is in a conversation state. At this point, the speaker is in earpiece mode. When the call is finished and the user needs to hang up, the first input is sent to the electronic equipment, and correspondingly, the electronic equipment can receive the first input of the user. Wherein the media files may be music, video, etc.
For another example, when a user is engaged in a voice call using social software, the speaker is in earpiece mode. When the call is finished and the user needs to hang up the voice call, the first input can be sent to the electronic equipment, and correspondingly, the electronic equipment can receive the first input of the user.
Step 102, responding to the first input, switching the first loudspeaker into a loudspeaker mode, and setting the output volume of the first loudspeaker to be a first volume.
Wherein the first volume is associated with an operating duration or an output volume of the first speaker when in an earpiece mode. Specifically, the first volume is inversely related to a working time length or an output volume of the first speaker in the earpiece mode. The value of the first volume may be any value as long as it satisfies the above condition. For example, the longer the first speaker is in the earpiece mode or the higher the output volume, the smaller the first volume. Through this kind of mode, can distinguish output volume and first volume when being in the earphone mode with the speaker, and fully considered the influence of output volume when the speaker is in the earphone mode to user's ear to better protection hearing.
In an embodiment of the present invention, when a first speaker is in an earpiece mode, a first input is received, and in response to the first input, the first speaker is switched to a speaker mode, and an output volume of the first speaker is set to a first volume, where the first volume is associated with an operating time period or an output volume of the first speaker when the first speaker is in the earpiece mode. Therefore, by using the scheme of the embodiment of the invention, when the first loudspeaker is switched from the earphone mode to the loudspeaker mode, the first volume of the loudspeaker can be set according to the working time length or the output volume of the first loudspeaker in the earphone mode, so that the hearing can be protected, and the user experience can be improved.
In the embodiment of the present invention, the volume control method may be applied to an electronic device, for example: a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
Referring to fig. 2, fig. 2 is a flowchart of a volume control method provided by an embodiment of the present invention, and the method is applied to an electronic device. The electronic device comprises a first speaker, wherein the operating mode of the first speaker comprises a speaker mode and an earpiece mode. As shown in fig. 2, the method comprises the following steps:
step 201, receiving a second input when the first speaker is in the speaker mode and the output volume of the first speaker is a second volume.
In practical applications, the first speaker is in speaker mode, for example, when a sound signal of a media file is being output with the first speaker. The output volume of the first loudspeaker can be detected by a volume detection module of the electronic equipment, and the second volume can be set according to actual needs. The second input may be a click, touch, or the like.
Step 202, in response to the second input, switching the first speaker to an earpiece mode.
In the embodiment of the invention, the loudspeaker is switched to the earphone mode through the second input of the user, so that the working mode of the loudspeaker meets the requirement of the user, and the condition that the working mode of the loudspeaker is wrong due to misoperation is avoided.
Step 203, receiving a first input when the first speaker is in an earpiece mode.
Step 204, responding to the first input, switching the first loudspeaker into a loudspeaker mode, and setting the output volume of the first loudspeaker to be a first volume.
Wherein the first volume is associated with an operating duration or an output volume of the first speaker when in an earpiece mode. Specifically, the first volume is inversely related to a working time length or an output volume of the first speaker in the earpiece mode.
The description of step 203 and step 204 may refer to the description of step 101 and step 102.
In the embodiment of the present invention, when the output volume of the first speaker in the earpiece mode is greater than a preset volume or the working time is greater than a preset time, the first volume is less than the second volume. The preset duration or the preset volume can be set according to needs. That is to say, in the embodiment of the present invention, the value of the first volume needs to be smaller than the second volume in addition to being associated with the working duration or the output volume of the first speaker in the earpiece mode, so as to further avoid the phenomenon that the instantaneous volume of the speaker is too large due to the switching of the working mode, and protect the hearing.
In an embodiment of the present invention, when a first speaker is in an earpiece mode, a first input is received, and in response to the first input, the first speaker is switched to a speaker mode, and an output volume of the first speaker is set to a first volume, where the first volume is associated with an operating time period or an output volume of the first speaker when the first speaker is in the earpiece mode. Therefore, by using the scheme of the embodiment of the invention, when the first loudspeaker is switched from the earphone mode to the loudspeaker mode, the first volume of the loudspeaker can be set according to the working time length or the output volume of the first loudspeaker in the earphone mode, so that the hearing can be protected, and the user experience can be improved.
Referring to fig. 3, fig. 3 is a flowchart of a volume control method provided by an embodiment of the present invention, and is applied to an electronic device. The electronic device comprises a first loudspeaker and a second loudspeaker, wherein the working mode of the first loudspeaker comprises a loudspeaker mode and an earphone mode. As shown in fig. 3, the method comprises the following steps:
step 301 receives a first input with the first speaker in earpiece mode.
Step 302, in response to the first input, switching the first speaker into a speaker mode.
Wherein the first volume is associated with an operating duration or an output volume of the first speaker when in an earpiece mode. Specifically, the first volume is inversely related to a working time length or an output volume of the first speaker in the earpiece mode.
Step 303, outputting a first channel signal through the first speaker, and outputting a second channel signal through the second speaker.
The first channel signal may be, for example, a left channel signal, and the second channel signal may be, for example, a right channel signal. In this way, the sound playing effect of the electronic equipment can be improved.
Step 304, setting the output volume of the first loudspeaker to a first volume.
The related descriptions of steps 301, 302, and 304 may refer to the descriptions of steps 101 and 102.
Step 305, turning off the first speaker when the distance between the first speaker and the target part of the user is smaller than the distance between the second speaker and the target part.
The target part can be, for example, an ear of a user, and the target distance can be set as required. In practical applications, the distance between each speaker and the target portion can be obtained by using an infrared sensor or a screen sensor in the electronic device. Through infrared sensor or screen sensor, acquire the ear with distance between the electronic equipment, it is convenient more, swift. For example, the first speaker may be turned off when the distance between the first speaker and the user's ear is less than the distance between the second speaker and the ear.
Step 306, outputting the first channel signal and the second channel signal through the second speaker.
In an embodiment of the present invention, when a first speaker is in an earpiece mode, a first input is received, and in response to the first input, the first speaker is switched to a speaker mode, and an output volume of the first speaker is set to a first volume, where the first volume is associated with an operating time period or an output volume of the first speaker when the first speaker is in the earpiece mode. Therefore, by using the scheme of the embodiment of the invention, when the first loudspeaker is switched from the earphone mode to the loudspeaker mode, the first volume of the loudspeaker can be set according to the working time length or the output volume of the first loudspeaker in the earphone mode, so that the hearing can be protected, and the user experience can be improved. Meanwhile, the output of the first loudspeaker and the output of the second loudspeaker are switched, so that the sound playing effect can be improved.
On the basis of the embodiment shown in fig. 3, the method may further include:
and under the condition that the distance between the target part and the first loudspeaker is greater than a preset distance, the first loudspeaker is turned on, a first sound channel signal is output through the first loudspeaker, and a second sound channel signal is output through the second loudspeaker. Wherein, the preset distance can be set according to the requirement. By switching the output signals of the first loudspeaker and the second loudspeaker, richer sound signals can be provided for the user, and therefore user experience is further improved.
In the above embodiment, before step 301, the method may further include: receiving a second input if the first speaker is in a speaker mode and an output volume of the first speaker is a second volume; switching the first speaker to an earpiece mode in response to the second input; and when the output volume of the first loudspeaker in the earphone mode is greater than the preset volume or the working time length is greater than the preset time length, the first volume is less than the second volume. Wherein the second input may be, for example, a click, a touch input, or the like. The preset volume or the preset time can be set according to actual needs. In this way, the problem that the working mode of the loudspeaker does not meet the requirement of the user due to misoperation can be prevented.
Referring to fig. 4, fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention, where the electronic device includes a first speaker, and an operating mode of the first speaker includes a speaker mode and an earpiece mode. As shown in fig. 4, the electronic device 400 includes:
a first receiving module 401, configured to receive a first input if the first speaker is in an earpiece mode; a first adjusting module 402, configured to switch the first speaker into a speaker mode in response to the first input, and set an output volume of the first speaker to a first volume;
wherein the first volume is associated with an operating duration or an output volume of the first speaker when in an earpiece mode.
Optionally, the first volume is inversely related to a working time or an output volume of the first speaker when the first speaker is in the earpiece mode.
Optionally, the electronic device further includes:
a second receiving module, configured to receive a second input when the first speaker is in a speaker mode and an output volume of the first speaker is a second volume;
a second processing module to switch the first speaker to an earpiece mode in response to the second input;
and when the output volume of the first loudspeaker in the earphone mode is greater than the preset volume or the working time length is greater than the preset time length, the first volume is less than the second volume.
Optionally, the electronic device further comprises a second speaker; the electronic device further includes:
the third processing module is used for outputting a first sound channel signal through the first loudspeaker and outputting a second sound channel signal through the second loudspeaker;
the fourth processing module is used for turning off the first loudspeaker under the condition that the distance between the first loudspeaker and a target part of a user is smaller than the distance between the second loudspeaker and the target part;
and the fifth processing module is used for outputting the first channel signal and the second channel signal through the second loudspeaker.
Optionally, the electronic device further includes:
the sixth processing module is used for turning on the first loudspeaker under the condition that the distance between the target part and the first loudspeaker is larger than a preset distance;
and the seventh processing module is used for outputting the first channel signal through the first loudspeaker and outputting the second channel signal through the second loudspeaker.
The electronic device 400 can implement the processes implemented by the electronic device in the above method embodiments, and in order to avoid repetition, the details are not described here.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device 500 for implementing an embodiment of the present invention, where the electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 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 mobile terminal, a wearable device, a pedometer, and the like.
The electronic device comprises a first speaker, wherein the operating mode of the first speaker comprises a speaker mode and an earpiece mode. The radio frequency unit 501 is configured to receive a first input when the first speaker is in an earpiece mode;
wherein, the processor 510 is configured to switch the first speaker into a speaker mode in response to the first input, and set an output volume of the first speaker to a first volume;
wherein the first volume is associated with an operating duration or an output volume of the first speaker when in an earpiece mode.
In an embodiment of the present invention, when a first speaker is in an earpiece mode, a first input is received, and in response to the first input, the first speaker is switched to a speaker mode, and an output volume of the first speaker is set to a first volume, where the first volume is associated with an operating time period or an output volume of the first speaker when the first speaker is in the earpiece mode. Therefore, by using the scheme of the embodiment of the invention, when the first loudspeaker is switched from the earphone mode to the loudspeaker mode, the first volume of the loudspeaker can be set according to the working time length or the output volume of the first loudspeaker in the earphone mode, so that the hearing can be protected, and the user experience can be improved.
Optionally, the first volume is inversely related to a working time or an output volume of the first speaker when the first speaker is in the earpiece mode.
Optionally, the processor 510 is further configured to receive a second input if the first speaker is in the speaker mode and the output volume of the first speaker is a second volume; switching the first speaker to an earpiece mode in response to the second input; and when the output volume of the first loudspeaker in the earphone mode is greater than the preset volume or the working time length is greater than the preset time length, the first volume is less than the second volume.
Optionally, the processor 510 is further configured to, after switching the first speaker into the speaker mode, further include: outputting a first channel signal through the first speaker and outputting a second channel signal through the second speaker; turning off the first speaker if the distance between the first speaker and a target site of a user is less than the distance between the second speaker and the target site; outputting a first channel signal and a second channel signal through the second speaker.
Optionally, the processor 510 is further configured to turn on the first speaker when a distance between the target site and the first speaker is greater than a preset distance; a first channel signal is output through the first speaker, and a second channel signal is output through the second speaker.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 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 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 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. In addition, the radio frequency unit 501 can 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 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds 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 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 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 505 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 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 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 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, 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 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 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 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. 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 508 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 apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program 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 509 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 510 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 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 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 processor 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 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 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, each process in the above-mentioned volume control method embodiment is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
An 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 volume 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.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A volume control method is applied to an electronic device, the electronic device comprises a first loudspeaker, wherein the working mode of the first loudspeaker comprises a loudspeaker mode and an earphone mode, and the method comprises the following steps:
receiving a first input with the first speaker in an earpiece mode;
in response to the first input, switching the first speaker to a speaker mode and setting an output volume of the first speaker to a first volume;
wherein the first volume is associated with an operating duration or an output volume of the first speaker when in an earpiece mode.
2. The method of claim 1, wherein the first volume is inversely related to an operating time or an output volume of the first speaker when in an earpiece mode.
3. The method of claim 1, wherein prior to receiving the first input with the first speaker in the earpiece mode, the method further comprises:
receiving a second input if the first speaker is in a speaker mode and an output volume of the first speaker is a second volume;
switching the first speaker to an earpiece mode in response to the second input;
and when the output volume of the first loudspeaker in the earphone mode is greater than the preset volume or the working time length is greater than the preset time length, the first volume is less than the second volume.
4. The method of claim 1, wherein the electronic device further comprises a second speaker;
after the first speaker is switched to the speaker mode, the method further includes:
outputting a first channel signal through the first speaker and outputting a second channel signal through the second speaker;
after the setting of the output volume of the first speaker to the first volume, the method further comprises:
turning off the first speaker if the distance between the first speaker and a target site of a user is less than the distance between the second speaker and the target site;
outputting a first channel signal and a second channel signal through the second speaker.
5. The method of claim 4, wherein after the first channel signal and the second channel signal are output by the second speaker, the method further comprises:
turning on the first speaker when the distance between the target site and the first speaker is greater than a preset distance;
a first channel signal is output through the first speaker, and a second channel signal is output through the second speaker.
6. An electronic device comprising a first speaker, wherein an operating mode of the first speaker comprises a speaker mode and an earpiece mode, the electronic device comprising:
a first receiving module for receiving a first input when the first speaker is in an earpiece mode;
a first processing module, configured to switch the first speaker into a speaker mode in response to the first input, and set an output volume of the first speaker to a first volume;
wherein the first volume is associated with an operating duration or an output volume of the first speaker when in an earpiece mode.
7. The electronic device of claim 6, wherein the first volume is inversely related to an operating time or an output volume of the first speaker when in an earpiece mode.
8. The electronic device of claim 6, further comprising:
a second receiving module, configured to receive a second input when the first speaker is in a speaker mode and an output volume of the first speaker is a second volume;
a second processing module to switch the first speaker to an earpiece mode in response to the second input;
and when the output volume of the first loudspeaker in the earphone mode is greater than the preset volume or the working time length is greater than the preset time length, the first volume is less than the second volume.
9. The electronic device of claim 8, further comprising a second speaker;
the electronic device further includes:
the third processing module is used for outputting a first sound channel signal through the first loudspeaker and outputting a second sound channel signal through the second loudspeaker;
the fourth processing module is used for turning off the first loudspeaker under the condition that the distance between the first loudspeaker and a target part of a user is smaller than the distance between the second loudspeaker and the target part;
and the fifth processing module is used for outputting the first channel signal and the second channel signal through the second loudspeaker.
10. The electronic device of claim 9, further comprising:
the sixth processing module is used for turning on the first loudspeaker under the condition that the distance between the target part and the first loudspeaker is larger than a preset distance;
and the seventh processing module is used for outputting the first channel signal through the first loudspeaker and outputting the second channel signal through the second loudspeaker.
11. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the steps in the volume control method according to any one of claims 1 to 5 when executing the computer program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps in the volume control method according to any one of claims 1 to 5.
CN201911373390.6A 2019-12-27 2019-12-27 Volume control method, volume control equipment and computer readable storage medium Active CN111093137B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201911373390.6A CN111093137B (en) 2019-12-27 2019-12-27 Volume control method, volume control equipment and computer readable storage medium
PCT/CN2020/139608 WO2021129835A1 (en) 2019-12-27 2020-12-25 Volume control method and device, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911373390.6A CN111093137B (en) 2019-12-27 2019-12-27 Volume control method, volume control equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111093137A true CN111093137A (en) 2020-05-01
CN111093137B CN111093137B (en) 2021-07-06

Family

ID=70398350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911373390.6A Active CN111093137B (en) 2019-12-27 2019-12-27 Volume control method, volume control equipment and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN111093137B (en)
WO (1) WO2021129835A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770416A (en) * 2020-06-22 2020-10-13 维沃移动通信有限公司 Loudspeaker control method and device and electronic equipment
CN112181352A (en) * 2020-10-10 2021-01-05 展讯通信(深圳)有限公司 Electronic device, volume control method thereof and storage medium
WO2021129835A1 (en) * 2019-12-27 2021-07-01 维沃移动通信有限公司 Volume control method and device, and computer-readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409744A (en) * 2008-11-27 2009-04-15 深圳华为通信技术有限公司 Mobile terminal and method for improving speech quality
CN103442101A (en) * 2013-08-01 2013-12-11 业成光电(深圳)有限公司 Electronic device, shell of electronic device and manufacturing method of shell of electronic device
CN103458339A (en) * 2012-06-01 2013-12-18 联想(北京)有限公司 Audio output control method and electronic equipment
CN103873632A (en) * 2014-02-19 2014-06-18 联想(北京)有限公司 Information processing method and electronic equipment
CN104780260A (en) * 2015-03-30 2015-07-15 陆俊 Method for controlling volume of mobile terminal and mobile terminal
CN105657128A (en) * 2016-03-22 2016-06-08 上海斐讯数据通信技术有限公司 Mobile phone and intelligent in-call volume regulation method thereof
CN107360326A (en) * 2017-07-17 2017-11-17 北京小米移动软件有限公司 terminal volume adjusting processing method and terminal
US20180165473A1 (en) * 2016-12-14 2018-06-14 Blackberry Limited Selectable privacy modes

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4203495B2 (en) * 2005-06-16 2009-01-07 株式会社カシオ日立モバイルコミュニケーションズ Portable terminal device and program
CN106162429A (en) * 2015-03-25 2016-11-23 美律电子(深圳)有限公司 Mobile device and its method of operating
CN111093137B (en) * 2019-12-27 2021-07-06 维沃移动通信有限公司 Volume control method, volume control equipment and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409744A (en) * 2008-11-27 2009-04-15 深圳华为通信技术有限公司 Mobile terminal and method for improving speech quality
CN103458339A (en) * 2012-06-01 2013-12-18 联想(北京)有限公司 Audio output control method and electronic equipment
CN103442101A (en) * 2013-08-01 2013-12-11 业成光电(深圳)有限公司 Electronic device, shell of electronic device and manufacturing method of shell of electronic device
CN103873632A (en) * 2014-02-19 2014-06-18 联想(北京)有限公司 Information processing method and electronic equipment
CN104780260A (en) * 2015-03-30 2015-07-15 陆俊 Method for controlling volume of mobile terminal and mobile terminal
CN105657128A (en) * 2016-03-22 2016-06-08 上海斐讯数据通信技术有限公司 Mobile phone and intelligent in-call volume regulation method thereof
US20180165473A1 (en) * 2016-12-14 2018-06-14 Blackberry Limited Selectable privacy modes
CN107360326A (en) * 2017-07-17 2017-11-17 北京小米移动软件有限公司 terminal volume adjusting processing method and terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021129835A1 (en) * 2019-12-27 2021-07-01 维沃移动通信有限公司 Volume control method and device, and computer-readable storage medium
CN111770416A (en) * 2020-06-22 2020-10-13 维沃移动通信有限公司 Loudspeaker control method and device and electronic equipment
CN111770416B (en) * 2020-06-22 2022-08-02 维沃移动通信有限公司 Loudspeaker control method and device and electronic equipment
CN112181352A (en) * 2020-10-10 2021-01-05 展讯通信(深圳)有限公司 Electronic device, volume control method thereof and storage medium

Also Published As

Publication number Publication date
CN111093137B (en) 2021-07-06
WO2021129835A1 (en) 2021-07-01

Similar Documents

Publication Publication Date Title
US11635939B2 (en) Prompting method and mobile terminal
CN108540655B (en) Caller identification processing method and mobile terminal
EP3691235A1 (en) Display method and mobile terminal
US11936474B2 (en) Transmission antenna switching method and terminal device
CN109710349B (en) Screen capturing method and mobile terminal
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN110012143B (en) Telephone receiver control method and terminal
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN108282759B (en) Service processing method and mobile communication terminal
CN107785027B (en) Audio processing method and electronic equipment
CN110990172A (en) Application sharing method, first electronic device and computer-readable storage medium
CN111147919A (en) Play adjustment method, electronic equipment and computer readable storage medium
CN110806832A (en) Parameter adjusting method and electronic equipment
CN110471559B (en) False touch prevention method and mobile terminal
US20220174146A1 (en) Incoming call processing method and electronic device
CN111683171A (en) Audio output method and electronic equipment
CN109005297B (en) Display method of navigation application and mobile terminal
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN111526248B (en) Audio output mode switching method and electronic equipment
CN111352566B (en) Parameter adjusting method and electronic equipment
CN111459447B (en) Volume adjustment display method and electronic equipment
CN110913070B (en) Call method and terminal equipment
CN110213439B (en) Message processing method and terminal
CN111694536A (en) Audio control method, electronic device and computer-readable storage medium
CN111443968A (en) Screenshot method and electronic equipment

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