CN109828738B - Volume adjustment control method, earphone and computer readable storage medium - Google Patents

Volume adjustment control method, earphone and computer readable storage medium Download PDF

Info

Publication number
CN109828738B
CN109828738B CN201811603715.0A CN201811603715A CN109828738B CN 109828738 B CN109828738 B CN 109828738B CN 201811603715 A CN201811603715 A CN 201811603715A CN 109828738 B CN109828738 B CN 109828738B
Authority
CN
China
Prior art keywords
volume
earphone
volume value
value
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811603715.0A
Other languages
Chinese (zh)
Other versions
CN109828738A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201811603715.0A priority Critical patent/CN109828738B/en
Publication of CN109828738A publication Critical patent/CN109828738A/en
Application granted granted Critical
Publication of CN109828738B publication Critical patent/CN109828738B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Circuit For Audible Band Transducer (AREA)
  • Headphones And Earphones (AREA)

Abstract

The invention discloses a volume adjustment control method, an earphone and a computer readable storage medium, wherein the volume adjustment control method adjusts the volume of the earphone according to a first target volume value corresponding to a first volume increasing instruction when monitoring that the first volume increasing instruction is received, the first target volume value is used as the current volume value of the earphone, and then the adjustment of the current volume value of the earphone is controlled according to a preset rule when the first target volume value is larger than a preset volume value threshold. The problem of among the prior art increase the in-process of adjusting the earphone volume, not control the earphone volume of increase, lead to the earphone volume to increase suddenly, cause user experience to hang down is solved. The invention also discloses an earphone and a computer readable storage medium, by implementing the scheme, the phenomenon that the ear drum of a user is stimulated due to sudden increase of the volume of the earphone is avoided, and the experience satisfaction degree of the user is greatly improved.

Description

Volume adjustment control method, earphone and computer readable storage medium
Technical Field
The present invention relates to the field of audio output technologies, and in particular, to a volume adjustment control method, an earphone, and a computer-readable storage medium.
Background
With the deep development of the internet, more and more industries are added to the internet wave, countless internet-based applications are generated, entertainment activities based on characters, pictures, videos, games, big data services and the like are provided, the types and the number of application programs installed on the intelligent terminal are more and more, and it can be understood that more and more users are used to listen to songs, voices and the like by using earphones, and can listen to sound alone without affecting other people and separate sounds of the surrounding environment. However, in the prior art, it is often seen that in the process of using the earphone by a user, when the volume of the earphone is too small, the user usually adopts a method of pressing a volume key or otherwise turning up the volume, however, when the user presses the volume key too long or otherwise malfunctions, the volume of the earphone is increased too much in a moment, so that the eardrum of the user is stimulated, the hearing of the user is affected to a certain extent, and the experience satisfaction of the user is greatly reduced.
Disclosure of Invention
The invention aims to solve the technical problem that in the prior art, the volume of an earphone is not controlled in the process of increasing and adjusting the volume of the earphone, so that the volume of the earphone is suddenly increased, and the user experience is low. In order to solve the technical problem, a volume adjustment control method, an earphone and a computer readable storage medium are provided.
In order to solve the above technical problem, the present invention provides a volume adjustment control method, including:
when a first volume increasing instruction is received through monitoring, adjusting the volume of the earphone according to a first target volume value corresponding to the first volume increasing instruction, and taking the first target volume value as the current volume value of the earphone;
judging whether the first target volume value is larger than a preset volume value threshold value or not;
and if so, controlling the adjustment of the current volume value of the earphone according to a preset rule.
Optionally, before controlling the adjustment of the current volume value of the earphone according to the preset rule, the method further includes:
judging whether a second volume increasing instruction is received or not;
if so, acquiring a second target volume value corresponding to the second volume increasing instruction;
the controlling the adjustment of the current volume value of the earphone according to the preset rule comprises the following steps:
and controlling the adjustment of the current volume value of the earphone according to the second target volume value and a preset rule.
Optionally, before adjusting the volume of the earphone according to the first target volume value corresponding to the first volume increasing instruction, the method further includes:
acquiring a volume value corresponding to the volume of the earphone, and taking the volume value as an original volume value;
the controlling the adjustment of the current volume value of the earphone according to the second target volume value and a preset rule comprises:
judging whether the difference value between the original volume value and the first target volume value is larger than a first preset volume difference threshold value or not;
if so, generating prompt information to inform the user that the current volume is too large;
monitoring whether a confirmation instruction is received;
if yes, the current volume of the earphone is continuously adjusted according to the second target volume value.
Optionally, the controlling the adjustment of the current volume value of the earphone according to the second target volume value and a preset rule includes:
starting timing when the first volume increasing instruction is received, and stopping timing when the second volume increasing instruction is received to obtain a first time period;
judging whether the difference value between the second target volume value and the first target volume value exceeds a second preset volume difference threshold value in the first time period;
if so, generating prompt information to inform the user that the current volume is too large;
monitoring whether a confirmation instruction is received;
if yes, the current volume of the earphone is continuously adjusted according to the second target volume value.
Optionally, the controlling the current volume adjustment of the earphone according to a second target volume value corresponding to the second volume increasing instruction and a preset rule includes:
starting timing when the first volume increasing instruction is received, and stopping timing until a second target volume increasing instruction is received to obtain a first time period;
judging whether the increasing rate values of the second target volume value and the first target volume value exceed a preset increasing rate threshold value in a first time period;
if so, generating prompt information to inform the user that the current volume is too large;
monitoring whether a confirmation instruction is received;
if yes, the current volume of the earphone is continuously adjusted according to the second target volume value.
Optionally, when the increase rate values of the second target volume value and the first target volume value do not exceed the preset increase rate threshold in the first time period, the current volume of the earphone is continuously adjusted directly according to the second target volume value.
Optionally, the continuously adjusting the current volume of the headset according to the second target volume value includes:
and increasing the current volume of the earphone to the second target volume value according to a preset increasing rate.
Optionally, in the process of increasing the current volume of the earphone to the second target volume value according to a preset increase rate value, the method includes:
judging whether a volume increase stop instruction is received;
and if so, stopping increasing the current volume of the earphone.
Further, the invention also provides an earphone, which comprises a processor, a memory and a communication bus;
the communication bus is used for realizing connection communication among the processor, the memory and the pressure sensor;
the processor is configured to execute one or more programs stored in the memory to implement the steps of any of the volume adjustment control methods described above.
Further, the present invention also provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps of the volume adjustment control method according to any one of the above.
Advantageous effects
The invention provides a volume adjustment control method, an earphone and a computer readable storage medium, wherein when a first volume increasing instruction is received through monitoring, the volume of the earphone is adjusted according to a first target volume value corresponding to the first volume increasing instruction, the first target volume value is used as the current volume value of the earphone, whether the first target volume value is larger than a preset volume value threshold value or not is further judged, and if the first target volume value is larger than the preset volume value threshold value, the adjustment of the current volume value of the earphone is controlled according to a preset rule. The problem of among the prior art increase the in-process of adjusting the earphone volume, not control the earphone volume of increase, lead to the earphone volume to increase suddenly, cause user experience to hang down is solved. That is, in the present invention, the volume of the earphone is adjusted according to the first target volume value corresponding to the received first volume increase instruction, and after the first target volume value is taken as the current volume value of the earphone, when the first target volume value is greater than the preset volume value threshold, the current volume value adjustment of the earphone is controlled according to the preset rule in the subsequent volume increase process, so that the phenomenon that the volume of the earphone is not controlled, and the ear drum of the user is irritated due to the sudden increase of the volume of the earphone is avoided, the hearing of the user is protected to a certain extent, and the experience satisfaction of the user is greatly improved.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a hardware structure of an alternative earphone for implementing various embodiments of the present invention;
fig. 2 is a schematic basic flow chart of a volume adjustment control method according to a first embodiment of the present invention;
fig. 3 is a schematic diagram of a basic flow chart before controlling the adjustment of the current volume value of the earphone according to the preset rule according to the first embodiment of the present invention;
fig. 4 is a schematic diagram of a first basic flow chart for controlling the adjustment of the current volume value of the earphone according to the second target volume value and the preset rule according to the first embodiment of the present invention;
fig. 5-1 is a schematic view of an interface for a terminal to generate a prompt message to notify a user of an excessive current volume according to a first embodiment of the present invention;
fig. 5-2 is a schematic diagram of an interface for receiving a confirmation command according to a first embodiment of the present invention;
fig. 6 is a schematic diagram of a basic flow chart provided by the first embodiment of the present invention in the process of increasing the current volume of the earphone to the second target volume value according to the preset increase rate;
fig. 7 is a schematic diagram of a second basic flow chart for controlling the adjustment of the current volume value of the earphone according to the second target volume value and the preset rule according to the first embodiment of the present invention;
fig. 8 is a schematic diagram of a third basic flow chart for controlling the adjustment of the current volume value of the earphone according to the second target volume value and the preset rule according to the first embodiment of the present invention;
fig. 9 is a schematic basic flow chart of a first specific volume adjustment control method according to a second embodiment of the present invention;
fig. 10 is a schematic basic flow chart of a second specific volume adjustment control method according to a second embodiment of the present invention;
fig. 11 is a schematic structural diagram of an earphone according to a third embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The headset described in the present invention may be implemented in various forms. For example, the headphones may include in-ear headphones, ear buds, bluetooth headphones, and the like.
It will be understood by those skilled in the art that the construction according to embodiments of the present invention can be applied to various types of earphones, in addition to elements particularly for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of an earphone according to various embodiments of the present invention, the earphone 100 may include: RF (Radio Frequency) unit 101, WiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. It will be understood by those skilled in the art that the earphone configuration shown in fig. 1 does not constitute a limitation of the earphone, and that the earphone may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The following describes the components of the headset in detail with reference to fig. 1:
the rf unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, the rf unit 101 may transmit uplink information to a base station, in addition, the downlink information sent by the base station may be received and then sent to the processor 110 of the headset for processing, the downlink information sent by the base station to the radio frequency unit 101 may be generated according to the uplink information sent by the radio frequency unit 101, or may be actively pushed to the radio frequency unit 101 after detecting that the information of the headset is updated, for example, after detecting that the geographical location of the headset has changed, the base station may send a message notification of the change of the geographical location to the radio unit 101 of the headset, and after receiving the message notification, the message notification may be sent to the processor 110 of the headset for processing, and the processor 110 of the headset may control the message notification to be displayed on the display unit 106 of the headset; typically, radio frequency unit 101 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 101 can also communicate with a network and other devices through wireless communication. It is to be understood that the radio unit 101 does not belong to the essential components of the headset and can be omitted entirely as required within the scope not changing the essence of the invention.
WiFi belongs to a short-range wireless transmission technology and provides users with wireless broadband internet access. Although fig. 1 shows WiFi module 102, it is also understood that WiFi module 102 is not an essential component of the headset and may be omitted as needed without changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the headset 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the headset 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is for receiving an audio signal. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures 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 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The headset 100 also includes at least one sensor 105, such as light sensors, motion sensors, and other sensors, among others. Specifically, the light sensor includes an ambient light sensor and a proximity sensor.
The display unit 106 is used to display information input by a user or information provided to the user. Specifically, an Active Matrix Organic Light Emitting Diode (AMOLED) or a Passive Organic electroluminescent Diode (Passive Matrix OLED) may be used.
The user input unit 107 may be used to receive key signal inputs that generate information related to user settings and function control of the headset. In particular, the user input unit 107 may include other input devices 1071. In particular, the other input devices 1071 may include, but are not limited to, one or more of function keys (e.g., volume control keys, switch keys, etc.), etc., and are not limited thereto.
The interface unit 108 serves as an interface through which at least one external device is connected to the headset 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the headset 100 or may be used to transmit data between the headset 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 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 (such as a sound playing function) required for at least one function, and the like; the storage data area may store data (such as audio data) created according to the use of the headset, and the like. Further, the memory 109 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 110 is a control center of the headset, connects various parts of the whole headset by using interfaces and lines, performs various functions of the headset and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the headset. Processor 110 may include one or more processing units; preferably, the processor 110 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 110.
The headset 100 may also include a power supply 111 (such as a battery) for powering the various components, preferably a bluetooth headset equipped with the power supply 111.
Based on the above hardware structure of the mobile headset, various embodiments of the present invention are proposed.
First embodiment
In order to solve the problem that in the prior art, the volume of the earphone is not controlled in the process of increasing and adjusting the volume of the earphone, so that the volume of the earphone is increased suddenly, and the user experience is low. The embodiment provides a volume adjustment control method, where when a first volume increase instruction is received, the volume of an earphone is adjusted according to a first target volume value corresponding to the first volume increase instruction, the first target volume value is used as a current volume value of the earphone, and then when the first target volume value is greater than a preset volume value threshold, the adjustment of the current volume value of the earphone is controlled according to a preset rule, specifically, as shown in fig. 2, fig. 2 is a basic flow chart of the volume adjustment control method provided in the embodiment, where the volume adjustment control method includes:
s201: when the first volume increasing instruction is received through monitoring, the volume of the earphone is adjusted according to a first target volume value corresponding to the first volume increasing instruction, and the first target volume value is used as the current volume value of the earphone.
It should be noted that, in the present embodiment, the earphones include, but are not limited to, an in-ear earphone, an earplug earphone, a headphone, an earphone, a bluetooth earphone, and the like.
It can be understood that, when the user thinks that the current volume of the earphone is low, the user can issue a first volume increase instruction according to the requirement, and then adjust the volume of the earphone according to a first target volume value corresponding to the first volume increase instruction, and take the first target volume value as the current volume value of the earphone. For example, assuming that the current earphone volume value is a, the first target volume value corresponding to the first volume up command is a1, at this time, the earphone volume value is adjusted from a to a1, and the first target volume value a1 is used as the current earphone volume value.
S202: judging whether the first target volume value is larger than a preset volume value threshold value or not;
if so, S203 is executed, otherwise, S202 is continuously executed.
It should be clear that, when the volume of the earphone is adjusted according to the first target volume value corresponding to the first volume increasing instruction, and the first target volume value is taken as the current volume value of the earphone, it needs to be determined whether the first target volume value is greater than the preset volume value threshold. For example, with the above example, if the preset volume value threshold is K, it is determined whether the first target volume value a1 is greater than the preset volume value threshold K, and if the first target volume value a1 is greater than the preset volume value threshold K, the adjustment of the current volume value of the earphone needs to be controlled according to the preset rule. It should be noted that, in practical applications, the preset volume value threshold is flexibly set by a developer according to experiments or experience.
S203: and controlling the adjustment of the current volume value of the earphone according to a preset rule.
In this embodiment, before controlling the adjustment of the current volume value of the earphone according to the preset rule, at least the following steps are further included, as shown in fig. 3:
s301: judging whether a second volume increasing instruction is received or not;
if so, go to step S302, otherwise, go to step S301.
It should be clear that, when the first target volume value corresponding to the received first volume increasing instruction is greater than the preset volume value threshold, the second volume increasing instruction is received again, which means that the first target volume value, that is, the current volume value of the earphone still cannot meet the user requirement, but the situation that the earphone is suddenly increased is highly likely to occur to the subsequent volume increase of the earphone directly according to the received second volume increasing instruction, which causes stimulation to the eardrum of the user, and then the second target volume value corresponding to the second volume increasing instruction is obtained at this time.
S302: and acquiring a second target volume value corresponding to the second volume increasing instruction.
It should be clear that, when the second volume up instruction is received, the second target volume value corresponding to the second volume up instruction is acquired. For example, in connection with the above example, if the user issues the second volume increasing instruction, and the second target volume value corresponding to the second volume increasing instruction is a2, the second target volume value a2 is obtained.
In this embodiment, the adjustment of the current volume value of the earphone is controlled according to a preset rule, specifically, the adjustment of the current volume value of the earphone is controlled according to the second target volume value and the preset rule. For a better understanding of the invention, the control of the adjustment of the current volume value of the earphone according to the second target volume value and the preset rules is explained here.
It should be clear that, in this embodiment, before adjusting the volume of the earphone according to the first target volume value corresponding to the first volume increasing instruction, the method further includes acquiring a volume value corresponding to the volume of the earphone, and taking the volume value as an original volume value. In this embodiment, the controlling the adjustment of the current volume value of the earphone according to the second target volume value and the preset rule includes at least the following three ways:
mode one, see fig. 4 for a description:
s401: judging whether the difference value between the original volume value and the first target volume value is larger than a first preset volume difference threshold value or not;
if yes, go to step S402, otherwise go to step S404.
For a better understanding, this is illustrated here by way of example. For example, if the original volume value B, the first target volume value B1, and the first preset volume difference threshold N are set, and the difference between the original volume value B and the first target volume value B1 is greater than the first preset volume difference threshold N, S402 is performed.
It should be clear that in practical applications, the first preset volume difference threshold is flexibly set by a developer according to experiments or experience. It should also be clear that when the difference between the original volume value and the first target volume value is not greater than the first preset volume difference threshold, the current volume of the earphone can be continuously adjusted directly according to the second target volume value.
S402: and generating prompt information to inform the user that the current volume is too large.
Bearing the above example, further, as shown in fig. 5-1, a prompt message is generated for the earphone and transmitted to the terminal, and the terminal informs the user in the form of a pop-up box whether the current volume is too large or not to continue increasing the current volume of the earphone. It should be noted that fig. 5-1 is only an exemplary interface for displaying the prompt information by the terminal, and in practical applications, a developer needs to flexibly design the interface for displaying the prompt information by the terminal.
It should be noted that the prompt information generated by the earphone may be notified to the user in any other manner, instead of being displayed by the terminal, for example, the current volume of the user may also be notified in a manner of a specific prompt tone, and it is understood that the prompt information displayed by the terminal is the most intuitive manner, which is a preferred embodiment of the present embodiment, and in practical application, a developer needs to flexibly select the manner in which the prompt information generated by the earphone is notified to the user according to the scene requirements.
S403: monitoring whether a confirmation instruction is received;
if so, S404 is executed, and if not, S403 is continued.
Bearing the above example, further, if the user still wants to continue to increase the current volume of the headset, a confirmation instruction is issued, for example, as shown in fig. 5-2, the user clicks "yes", that is, the confirmation instruction is received at this time, and step S404 is executed.
S404: and continuously adjusting the current volume of the earphone according to the second target volume value.
In the above example, if the second target volume value corresponding to the received second volume up command is B2, the current volume of the earphone is adjusted from B1 to B2.
In this embodiment, the current volume of the earphone is continuously adjusted according to the second target volume value, and specifically, the current volume of the earphone may be increased to the second target volume value according to the preset increasing rate. For example, the volume value is increased from the first target volume value B1 to the second target volume value B2 at a B grid/second increase rate, so as to avoid the phenomenon that the user has too late to pause due to the excessively fast increase rate. It should be noted that, in practical applications, the preset growth rate is flexibly set by a developer according to experiments or experiences, and in general, the preset growth rate is set to a small value, so that irritation to the eardrum of the user due to too high volume caused by too high growth rate is avoided.
It should be clear that in increasing the current volume of the headset to the second target volume value according to the preset increase rate, at least the following steps are also included, as shown in fig. 6:
s601: judging whether a volume increase stop instruction is received;
if so, go to S602, otherwise, go to S601.
It can be understood that, in the process of increasing the current volume of the earphone to the second target volume value according to the preset increase rate, that is, the current volume of the earphone is gradually increased to the second target volume but is not increased to the second target volume, and the volume of the earphone has already met the user requirement, at this time, the user may issue a volume increase stop instruction, so as to stop continuously increasing the current volume of the earphone.
S602: the current volume of the headset stops being increased.
It will also be appreciated that upon receiving the volume up stop instruction, the current volume of the headset is stopped from being increased.
Mode two, see fig. 7 for a schematic:
s701: and starting timing when the first volume increasing instruction is received, and stopping timing when the second volume increasing instruction is received to obtain a first time period.
For a better understanding, this is illustrated here by way of example. For example, assuming that the time when the first volume up command is received is 09:00:00 and the time when the second volume up command is received is 09:00:02, it is obvious that the obtained first time period is 2 s.
S702: judging whether the difference value between the second target volume value and the first target volume value exceeds a second preset volume difference threshold value in a first time period;
if so, go to S703, otherwise, go to S705.
In connection with the above example, if the first target volume value corresponding to the first volume increasing command is B1, the second target volume value corresponding to the second target volume value is B2, and the second preset volume difference threshold is M, it is determined whether the difference between the second target volume value B2 and the first target volume value B1 is greater than the second preset volume difference threshold M within the first time period 2S, and the difference between the second target volume value B2 and the first target volume value B1 is greater than the second preset volume difference threshold M, at this time, S703 is executed.
It should be clear that in practical applications, the second preset volume difference threshold is flexibly set by a developer according to experiments or experience. It should also be clear that when the difference between the second target volume value and the first target volume value does not exceed the second preset volume difference threshold value within the first time period, the current volume of the earphone can be continuously adjusted directly according to the second target volume value.
S703: and generating prompt information to inform the user that the current volume is too large.
Bearing the above example, further, the earphone generates a prompt message to inform the user whether the current volume is too large or not to continue to increase the current volume of the earphone.
S704: monitoring whether a confirmation instruction is received;
if so, go to S705, otherwise, go to S704.
Bearing the above example, further, if the user still wants to increase the current volume of the earphone, a confirmation instruction is issued, that is, the confirmation instruction is received at this time.
S705: and continuously adjusting the current volume of the earphone according to the second target volume value.
Taking the above example as a support, further, according to the second target volume value B2, the current volume of the earphone is increased from B1 to B2.
Mode three, see fig. 8 for a description:
s801: and starting timing when the first volume increasing instruction is received, and stopping timing until the second target volume increasing instruction is received to obtain a first time period.
For a better understanding, this is illustrated here by way of example. For example, assuming that the time when the first volume up command is received is 15:00:00 and the time when the second volume up command is received is 15:00:03, it is obvious that the obtained first time period is 3 s.
S802: judging whether the increasing rate values of the second target volume value and the first target volume value exceed a preset increasing rate threshold value in a first time period;
if so, go to S803, otherwise, go to S805.
In connection with the above example, if the first target volume value corresponding to the first volume increasing command is B1, the second target volume value corresponding to the second target volume value is B2, and the preset increasing rate threshold value is P, it is determined whether the increasing rate values of the second target volume value B2 and the first target volume value B1 are greater than the preset increasing rate threshold value P within the first time period 3S, and if the increasing rate values of the second target volume value B2 and the first target volume value B1 are greater than the preset increasing rate threshold value P, then S803 is executed.
It should be clear that in practical applications, the preset increase rate threshold is flexibly set by a developer according to experiments or experience. It should also be clear that when the values of the second target volume value and the rate of increase of the first target volume value do not exceed the preset rate of increase threshold within the first time period, the current volume of the earphone may be continuously adjusted directly according to the second target volume value.
S803: and generating prompt information to inform the user that the current volume is too large.
S804: monitoring whether a confirmation instruction is received;
if so, go to S805, otherwise, go to S804.
S805: and continuously adjusting the current volume of the earphone according to the second target volume value.
S803 to S805 are the same as S703 to S705, and are not described again here.
It should be noted that, the above-mentioned description is provided with three common ways of controlling the current volume adjustment of the headset according to the second target volume value corresponding to the second volume increasing instruction and the preset rule, and the present invention is not limited to these three ways, and in fact, as long as the way of controlling the current volume adjustment of the headset according to the second target volume value corresponding to the second volume increasing instruction and the preset rule is within the protection scope of the present invention, the present invention is not limited to this.
The embodiment provides a volume adjustment control method, which adjusts the volume of an earphone according to a first target volume value corresponding to a first volume increase instruction when the monitoring receives the first volume increase instruction, takes the first target volume value as the current volume value of the earphone, further determines whether the first target volume value is greater than a preset volume value threshold, and controls the adjustment of the current volume value of the earphone according to a preset rule if the first target volume value is greater than the preset volume value threshold. The problem of among the prior art increase the in-process of adjusting the earphone volume, not control the earphone volume of increase, lead to the earphone volume to increase suddenly, cause user experience to hang down is solved. That is, in this embodiment, the earphone volume is adjusted according to the first target volume value corresponding to the received first volume increase instruction, after the first target volume value is used as the current volume value of the earphone, when the first target volume value is greater than the preset volume value threshold, in the subsequent volume increase process, the current volume value adjustment of the earphone is controlled according to the preset rule, thereby avoiding that the increase of the earphone volume is not controlled, so that the sudden increase of the earphone volume causes the stimulation phenomenon to the eardrum of the user, the hearing of the user is protected to a certain extent, and the experience satisfaction of the user is greatly improved.
Second embodiment
This embodiment is further exemplified by taking two specific volume adjustment control methods as examples on the basis of the first embodiment.
A first specific volume adjustment control procedure is as follows, and can be seen in particular in fig. 9.
S901: when the first volume increasing instruction is received through monitoring, the volume of the earphone is adjusted according to a first target volume value corresponding to the first volume increasing instruction, and the first target volume value is used as the current volume value of the earphone.
If the user listens to a song with the earphone volume a, when the user finds that the earphone volume a is too small after entering a subway station, a first volume increasing instruction is issued according to the requirement, a first target volume value corresponding to the first volume increasing instruction is set to be a1, the earphone volume a is increased to be a1 according to the first target volume value a1, and the adjusted earphone volume a1 is used as the current volume value of the earphone.
S902: judging whether the first target volume value is larger than a preset volume value threshold value or not;
if so, go to S903, otherwise, go to S902.
In connection with the above example, further, the preset volume value threshold is set to k, at this time, it is determined whether the first target volume value a1 is greater than the preset volume value threshold k, and the first target volume value a1 is greater than the preset volume value threshold k, and S903 is executed.
S903: judging whether a second volume increasing instruction is received or not;
if so, go to S904, otherwise, go to S903.
Bearing in the above example, further, it is assumed that the user finds that the current volume value a1 of the earphone is still smaller, and then issues the second volume increasing instruction according to the requirement, that is, receives the second volume increasing instruction, and then executes S904.
S904: and acquiring a second target volume value corresponding to the second volume increasing instruction.
In the above example, the second target volume value corresponding to the second volume up command is set to a2, and the second target volume value a2 is obtained.
S905: and starting timing when the first volume increasing instruction is received, and stopping timing when the second volume increasing instruction is received to obtain a first time period.
As for the above example, if the time for receiving the first volume up command is 12:09:00 and the time for receiving the second volume up command is 12:09:05, the first time period is 5 s.
S906: judging whether the increasing rate values of the second target volume value and the first target volume value exceed a preset increasing rate threshold value in a first time period;
if so, S907 is executed, and if not, S909 is executed.
In connection with the above example, further, if the preset increase rate threshold is p, it is determined whether the increase rate values of the second target volume value a2 and the first target volume value a1 in the first time period 5S exceed the preset increase rate threshold p, and if the increase rate values of the second target volume value a2 and the first target volume value a1 in the first time period 5S exceed the preset increase rate threshold p, S907 is executed.
S907: and generating prompt information to inform the user that the current volume is too large.
Bearing the above example, further, the earphone generates a prompt message and sends the prompt message to the terminal connected to the earphone, and the terminal displays the prompt message in the form of a pop-up box to inform the user whether the current volume is too large or not to continue increasing the current volume of the earphone.
S908: monitoring whether a confirmation instruction is received;
if so, S909 is executed, and if not, S908 is continuously executed.
Bearing the above example, further, it is assumed that the user still wants to increase the current volume of the headset, and issues a confirmation instruction, that is, receives the confirmation instruction.
S909: and continuously adjusting the current volume of the earphone according to the second target volume value.
Taking the above example as a support, further, according to the second target volume value a2, the current volume of the earphone is increased from a1 to a 2.
A second specific volume adjustment control procedure is as follows, and can be seen in particular in fig. 10.
S1001: and when the first volume increasing instruction is received, acquiring a volume value corresponding to the volume of the earphone, and taking the volume value as an original volume value.
The method comprises the steps of setting that a user listens to songs with earphone volume b, finding that the earphone volume b is too small after the user enters a bus, issuing a first volume increasing instruction according to requirements, and acquiring the earphone volume b as an original volume value at the moment.
S1002: and adjusting the volume of the earphone according to a first target volume value corresponding to the first volume increasing instruction, and taking the first target volume value as the current volume value of the earphone.
In the above example, if the first target volume value corresponding to the first volume increasing command is b1, the earphone volume b is increased to b1 according to the first target volume value b1, and the adjusted earphone volume b1 is used as the current volume value of the earphone.
S1003: judging whether the first target volume value is larger than a preset volume value threshold value or not;
if so, S1004 is executed, and if not, S1003 is continued.
In connection with the above example, further, the preset volume value threshold is set to k, at this time, it is determined whether the first target volume value b1 is greater than the preset volume value threshold k, and the first target volume value b1 is greater than the preset volume value threshold k, and S1004 is executed.
S1004: judging whether a second volume increasing instruction is received or not;
if so, S1005 is executed, otherwise, S1004 is continuously executed.
Bearing in the above example, further, it is assumed that the user finds that the current volume value b1 of the earphone is still smaller, and then issues the second volume increasing instruction according to the requirement, that is, receives the second volume increasing instruction, and then executes S1005.
S1005: and acquiring a second target volume value corresponding to the second volume increasing instruction.
In the above example, the second target volume value corresponding to the second volume up command is b2, and at this time, the second target volume value b2 is obtained.
S1006: judging whether the difference value between the original volume value and the first target volume value is larger than a first preset volume difference threshold value or not;
if yes, go to step S1007, otherwise, go to step S1009.
In connection with the above example, further, if the first preset volume difference threshold is n, it is determined whether the difference between the original volume value b and the first target volume value b1 is greater than the first preset volume difference threshold n, and if the difference between the original volume value b and the first target volume value b1 is greater than the first preset volume difference threshold n, S1007 is executed.
S1007: and generating prompt information to inform the user that the current volume is too large.
Bearing the above example, further, the earphone generates a prompt message and sends the prompt message to the terminal connected to the earphone, and the terminal displays the prompt message in the form of a pop-up box to inform the user whether the current volume is too large or not to continue increasing the current volume of the earphone.
S1008: monitoring whether a confirmation instruction is received;
if so, S1009 is executed, and if not, S1008 is continuously executed.
Bearing the above example, further, it is assumed that the user still wants to increase the current volume of the headset, and issues a confirmation instruction, that is, receives the confirmation instruction.
S1009: and continuously adjusting the current volume of the earphone according to the second target volume value.
Taking the above example as a support, further, according to the second target volume value b2, the current volume of the earphone is increased from b1 to b 2.
In the volume adjustment control method provided by this embodiment, when a first volume increase instruction is received through monitoring, the volume of the earphone is adjusted according to a first target volume value corresponding to the first volume increase instruction, the first target volume value is used as a current volume value of the earphone, and then it is determined whether the first target volume value is greater than a preset volume value threshold, and if the first target volume value is greater than the preset volume value threshold, the adjustment of the current volume value of the earphone is controlled according to a preset rule. The problem of among the prior art increase the in-process of adjusting the earphone volume, not control the earphone volume of increase, lead to the earphone volume to increase suddenly, cause user experience to hang down is solved. That is, in this embodiment, the earphone volume is adjusted according to the first target volume value corresponding to the received first volume increase instruction, after the first target volume value is used as the current volume value of the earphone, when the first target volume value is greater than the preset volume value threshold, in the subsequent volume increase process, the current volume value adjustment of the earphone is controlled according to the preset rule, thereby avoiding that the increase of the earphone volume is not controlled, so that the sudden increase of the earphone volume causes the stimulation phenomenon to the eardrum of the user, the hearing of the user is protected to a certain extent, and the experience satisfaction of the user is greatly improved.
Third embodiment
Referring to fig. 11, the earphone provided in this embodiment includes a processor 1101, a memory 1102, and a communication bus 1103.
In this embodiment, the communication bus 1103 is used to implement connection communication among the processor 1101, the memory 1102 and the pressure sensor 1104, and the processor 1101 is used to execute one or more programs stored in the memory 1102, so as to implement the following steps:
when a first volume increasing instruction is received through monitoring, adjusting the volume of the earphone according to a first target volume value corresponding to the first volume increasing instruction, and taking the first target volume value as the current volume value of the earphone;
judging whether the first target volume value is larger than a preset volume value threshold value or not;
and if so, controlling the adjustment of the current volume value of the earphone according to a preset rule.
In this embodiment, before the processor 1101 controls the adjustment of the current volume value of the earphone according to the preset rule, the method further includes the following steps:
judging whether a second volume increasing instruction is received or not;
if so, acquiring a second target volume value corresponding to the second volume increasing instruction;
specifically, the adjustment of the current volume value of the earphone is controlled according to the preset rule, and may be controlled according to the second target volume value and the preset rule.
In this embodiment, the processor 1101 controls the adjustment of the current volume value of the earphone according to the second target volume value and the preset rule, and includes at least the following three ways:
in a first mode, the processor 1101 implements the following steps:
before the earphone volume is adjusted according to a first target volume value corresponding to a first volume increasing instruction, obtaining a volume value corresponding to the earphone volume, and taking the volume value as an original volume value;
judging whether the difference value between the original volume value and the first target volume value is larger than a first preset volume difference threshold value or not;
if so, generating prompt information to inform the user that the current volume is too large;
monitoring whether a confirmation instruction is received;
if yes, the current volume of the earphone is continuously adjusted according to the second target volume value.
In a second mode, the processor 1101 performs the following steps:
starting timing when a first volume increasing instruction is received, and stopping timing when a second volume increasing instruction is received to obtain a first time period;
judging whether the difference value between the second target volume value and the first target volume value exceeds a second preset volume difference threshold value in a first time period;
if so, generating prompt information to inform the user that the current volume is too large;
monitoring whether a confirmation instruction is received;
if yes, the current volume of the earphone is continuously adjusted according to the second target volume value.
In a third mode, the processor 1101 implements the following steps:
starting timing when a first volume increasing instruction is received, and stopping timing until a second target volume increasing instruction is received to obtain a first time period;
judging whether the increasing rate values of the second target volume value and the first target volume value exceed a preset increasing rate threshold value in a first time period;
if so, generating prompt information to inform the user that the current volume is too large;
monitoring whether a confirmation instruction is received;
if yes, the current volume of the earphone is continuously adjusted according to the second target volume value.
It should be noted that, in order to avoid redundant description, all the examples in the first and second embodiments are not fully described in this embodiment, and it should be clear that all the examples in the first and second embodiments are applicable to this embodiment.
The present embodiment also provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps of the volume adjustment control method as described above.
In the earphone and the computer-readable storage medium provided in this embodiment, when monitoring that the first volume increase instruction is received, the volume of the earphone is adjusted according to a first target volume value corresponding to the first volume increase instruction, the first target volume value is used as a current volume value of the earphone, and then when the first target volume value is greater than a preset volume value threshold, adjustment of the current volume value of the earphone is controlled according to a preset rule. The problem of among the prior art increase the in-process of adjusting the earphone volume, not control the earphone volume of increase, lead to the earphone volume to increase suddenly, cause user experience to hang down is solved. Also the earphone that this embodiment provided can carry out real time control to the increase process of earphone volume, has avoided the sudden increase of earphone volume to cause the emergence of amazing phenomenon for user's eardrum, so compare with among the prior art, the earphone that this embodiment provided has carried out protection to a certain extent to user's hearing, has promoted user's experience satisfaction greatly.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (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 (8)

1. A volume adjustment control method, comprising:
when a first volume increasing instruction is received, acquiring a volume value corresponding to the volume of the earphone, and taking the volume value as an original volume value; adjusting the volume of the earphone according to a first target volume value corresponding to the first volume increasing instruction, and taking the first target volume value as the current volume value of the earphone;
judging whether the first target volume value is larger than a preset volume value threshold value or not;
if yes, judging whether a second volume increasing instruction is received or not;
if so, acquiring a second target volume value corresponding to the second volume increasing instruction; controlling the adjustment of the current volume value of the earphone according to the second target volume value and a preset rule; the controlling the adjustment of the current volume value of the earphone according to the second target volume value and a preset rule comprises:
judging whether the difference value between the original volume value and the first target volume value is larger than a first preset volume difference threshold value or not;
if so, generating prompt information to inform the user that the current volume is too large;
monitoring whether a confirmation instruction is received;
if yes, the current volume of the earphone is continuously adjusted according to the second target volume value.
2. The volume adjustment control method as claimed in claim 1, wherein the controlling of the adjustment of the current volume value of the headphone according to the second target volume value and a preset rule comprises:
starting timing when the first volume increasing instruction is received, and stopping timing when the second volume increasing instruction is received to obtain a first time period;
judging whether the difference value between the second target volume value and the first target volume value exceeds a second preset volume difference threshold value in the first time period;
if so, generating prompt information to inform the user that the current volume is too large;
monitoring whether a confirmation instruction is received;
if yes, the current volume of the earphone is continuously adjusted according to the second target volume value.
3. The volume adjustment control method of claim 1, wherein the controlling the current volume adjustment of the earphone according to a second target volume value corresponding to the second volume increasing instruction and a preset rule comprises:
starting timing when the first volume increasing instruction is received, and stopping timing until a second target volume increasing instruction is received to obtain a first time period;
judging whether the increasing rate values of the second target volume value and the first target volume value exceed a preset increasing rate threshold value in a first time period;
if so, generating prompt information to inform the user that the current volume is too large;
monitoring whether a confirmation instruction is received;
if yes, the current volume of the earphone is continuously adjusted according to the second target volume value.
4. The volume adjustment control method as claimed in claim 3, wherein when the values of the second target volume value and the first target volume value do not exceed the preset increase rate threshold within the first time period, the current volume of the earphone is continuously adjusted directly according to the second target volume value.
5. The volume adjustment control method as claimed in any one of claims 1 to 4, wherein said continuing to adjust the current volume of the headset according to the second target volume value comprises:
and increasing the current volume of the earphone to the second target volume value according to a preset increasing rate.
6. The volume adjustment control method as claimed in claim 5, wherein in increasing the current volume of the earphone to the second target volume value according to a preset rate of increase value, comprising:
judging whether a volume increase stop instruction is received;
and if so, stopping increasing the current volume of the earphone.
7. An earphone, comprising a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the volume adjustment control method according to any one of claims 1-6.
8. A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the volume adjustment control method according to any one of claims 1 to 6.
CN201811603715.0A 2018-12-26 2018-12-26 Volume adjustment control method, earphone and computer readable storage medium Active CN109828738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811603715.0A CN109828738B (en) 2018-12-26 2018-12-26 Volume adjustment control method, earphone and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811603715.0A CN109828738B (en) 2018-12-26 2018-12-26 Volume adjustment control method, earphone and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109828738A CN109828738A (en) 2019-05-31
CN109828738B true CN109828738B (en) 2022-05-03

Family

ID=66861198

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811603715.0A Active CN109828738B (en) 2018-12-26 2018-12-26 Volume adjustment control method, earphone and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109828738B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112714215A (en) * 2021-01-22 2021-04-27 惠州Tcl移动通信有限公司 Mobile terminal sound setting processing method and device, terminal equipment and storage medium
CN115562611B (en) * 2022-02-21 2024-04-30 荣耀终端有限公司 Volume adjustment method, electronic device, and computer-readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102149033A (en) * 2010-10-28 2011-08-10 华为终端有限公司 Earphone processing method and user equipment
CN104581494B (en) * 2015-01-27 2018-01-23 深圳市冠旭电子股份有限公司 Method for protecting hearing ability, system and earphone based on earphone
CN104660197B (en) * 2015-02-10 2018-01-19 广东欧珀移动通信有限公司 A kind of method for controlling volume and playback equipment
US10824385B2 (en) * 2015-02-27 2020-11-03 Charter Communications Operating, Llc Automated audio volume stabilizer
CN106126164B (en) * 2016-06-16 2019-05-17 Oppo广东移动通信有限公司 A kind of sound effect treatment method and terminal device
JP2019062514A (en) * 2016-12-26 2019-04-18 キヤノン株式会社 Audio processing apparatus and method of controlling same

Also Published As

Publication number Publication date
CN109828738A (en) 2019-05-31

Similar Documents

Publication Publication Date Title
EP4060658A1 (en) Voice wake-up method, apparatus, and system
CN107231473B (en) Audio output regulation and control method, equipment and computer readable storage medium
EP4109863B1 (en) Method and apparatus for masking sound, and terminal device
US10827455B1 (en) Method and apparatus for sending a notification to a short-range wireless communication audio output device
KR20170076181A (en) Electronic device and method for controlling an operation thereof
US20210168538A1 (en) Hearing aid configured to be operating in a communication system
KR102386110B1 (en) Portable sound equipment
CN111800696B (en) Hearing assistance method, earphone, and computer-readable storage medium
CN109828738B (en) Volume adjustment control method, earphone and computer readable storage medium
CN109873894B (en) Volume adjusting method and mobile terminal
CN108540659B (en) Method, terminal and computer readable storage medium for reducing TDD noise influence
WO2020082387A1 (en) Method for changing audio channel, and related device
WO2021068875A1 (en) Uplink transmission control method and terminal
CN106657621B (en) Self-adaptive adjusting device and method for sound signal
CN108391208B (en) Signal switching method, device, terminal, earphone and computer readable storage medium
CN110035346A (en) Communication means, device, bluetooth headset and the storage medium of bluetooth headset
CN116866472A (en) Volume control method and electronic equipment
US11637921B2 (en) Enabling vibration notification based on environmental noise
CN110012386B (en) Volume adjusting method of terminal and terminal
CN106210951A (en) The adaptation method of a kind of bluetooth earphone, device and terminal
CN109218504B (en) Sound output method and terminal equipment
JP2021536207A (en) Hearing device environment Methods, systems, and hearing devices for enhancing audio signals
US12022261B2 (en) Hearing aid in-ear announcements
US10506319B2 (en) Audio electronic device and an operating method thereof
CN113660572B (en) Earphone call control method and device, earphone equipment and storage medium

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