CN114520949A - Volume control method, device, equipment and medium - Google Patents

Volume control method, device, equipment and medium Download PDF

Info

Publication number
CN114520949A
CN114520949A CN202210126134.2A CN202210126134A CN114520949A CN 114520949 A CN114520949 A CN 114520949A CN 202210126134 A CN202210126134 A CN 202210126134A CN 114520949 A CN114520949 A CN 114520949A
Authority
CN
China
Prior art keywords
volume
maximum
threshold
reachable
initial
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
CN202210126134.2A
Other languages
Chinese (zh)
Other versions
CN114520949B (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 CN202210126134.2A priority Critical patent/CN114520949B/en
Publication of CN114520949A publication Critical patent/CN114520949A/en
Application granted granted Critical
Publication of CN114520949B publication Critical patent/CN114520949B/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
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • 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
    • H04R2430/01Aspects of volume control, not necessarily automatic, in sound systems

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The application discloses a volume control method, a volume control device, volume control equipment and a volume control medium, and belongs to the technical field of electronic equipment. The volume control method comprises the following steps: acquiring initial maximum volume and maximum reachable volume of a loudspeaker, wherein the maximum reachable volume is the maximum volume which can be reached by the loudspeaker in actual use; and under the condition that the initial maximum volume and the maximum reachable volume meet the first condition, controlling the maximum reachable volume according to the initial maximum volume.

Description

Volume control method, device, equipment and medium
Technical Field
The application belongs to the technical field of electronic equipment, and particularly relates to a volume control method, device, equipment and medium.
Background
A loudspeaker, also called a "horn", is a transducer device that converts electrical signals into acoustic signals, which is present in all electronic devices that are capable of generating.
The volume is also called sound intensity and loudness, which is the subjective feeling of the human ear on the intensity of the sound heard. The maximum achievable volume for some speakers may exceed the maximum volume desired by the user. For example, the maximum achievable volume of a speaker is 98 decibels (dB), while the maximum volume required by the user is 95 dB. In this case, the maximum volume is usually adjusted.
In the related art, the volume adjustment is mainly performed manually. However, it is inefficient to adjust the maximum volume manually.
Disclosure of Invention
An object of the embodiments of the present application is to provide a volume control method, apparatus, device, and medium, which can solve the problem of low volume adjustment efficiency.
In a first aspect, an embodiment of the present application provides a volume control method, including:
acquiring initial maximum volume and maximum reachable volume of a loudspeaker, wherein the maximum reachable volume is the maximum volume which can be reached by the loudspeaker in actual use;
and under the condition that the initial maximum volume and the maximum reachable volume meet the first condition, controlling the maximum reachable volume according to the initial maximum volume.
In a second aspect, an embodiment of the present application provides a volume control device, including:
the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring the initial maximum volume and the maximum reachable volume of a loudspeaker, and the maximum reachable volume is the maximum volume which can be reached by the loudspeaker in actual use;
and the control module is used for controlling the maximum reachable volume according to the initial maximum volume under the condition that the initial maximum volume and the maximum reachable volume meet the first condition.
In a third aspect, embodiments of the present application provide an electronic device, including a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, which includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, stored on a storage medium, for execution by at least one processor to implement the steps of the method according to the first aspect.
In the embodiment of the application, the initial maximum volume and the maximum reachable volume of the loudspeaker are obtained; and then, under the condition that the initial maximum volume and the maximum reachable volume meet the first condition, controlling the maximum reachable volume according to the initial maximum volume. The maximum reachable volume of the loudspeaker can be controlled without manually adjusting the maximum reachable volume of the loudspeaker by a user under the condition that the initial maximum volume and the maximum reachable volume meet the first condition, and the volume adjusting efficiency can be improved.
Drawings
Fig. 1 is a schematic flow chart of a volume control method provided in an embodiment of the present application;
FIG. 2 is a diagram illustrating a first result of volume control provided by an embodiment of the present application;
FIG. 3 is a diagram illustrating a second result of volume control provided by embodiments of the present application;
FIG. 4 is a diagram illustrating a third result of volume control provided by an embodiment of the present application;
FIG. 5 is a diagram illustrating a fourth result of volume control provided by an embodiment of the present application;
FIG. 6 is a diagram illustrating a fifth result of volume control provided by an embodiment of the present application;
FIG. 7 is a diagram illustrating a sixth result of volume control provided by embodiments of the present application;
FIG. 8 is a diagram illustrating a seventh result of volume control provided by embodiments of the present application;
FIG. 9 is a diagram illustrating an eighth result of volume control provided by embodiments of the present application;
FIG. 10 is a diagram illustrating a ninth result of volume control provided by embodiments of the present application;
FIG. 11 is a schematic diagram illustrating a tenth result of volume control provided by an embodiment of the present application;
fig. 12 is a schematic structural diagram of a volume control device according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 14 is a hardware configuration diagram of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The volume control method, apparatus, device and medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flow chart of a volume control method according to an embodiment of the present disclosure. As shown in fig. 1, the volume control method may include:
s101: acquiring initial maximum volume and maximum reachable volume of a loudspeaker, wherein the maximum reachable volume is the maximum volume which can be reached by the loudspeaker in actual use;
s102: and under the condition that the initial maximum volume and the maximum reachable volume meet the first condition, controlling the maximum reachable volume according to the initial maximum volume.
Specific implementations of the above steps will be described in detail below.
In the embodiment of the application, the initial maximum volume and the maximum reachable volume of the loudspeaker are obtained; and then, under the condition that the initial maximum volume and the maximum reachable volume meet the first condition, controlling the maximum reachable volume according to the initial maximum volume. The maximum reachable volume of the loudspeaker can be controlled without manually adjusting the maximum reachable volume of the loudspeaker by a user under the condition that the initial maximum volume and the maximum reachable volume meet the first condition, and the volume adjusting efficiency can be improved.
In some possible implementations of embodiments of the present application, the initial maximum volume of a speaker refers to the maximum volume that can be reached at the time of factory testing of the speaker.
In some possible implementations of the embodiment of the present application, S101 may include: after the electronic equipment provided with the loudspeaker is started, reading the initial maximum volume from a register which stores the initial maximum volume in advance.
Typically, the initial maximum volume of the speaker will be stored in a register of the speaker. Thus, the initial maximum volume of the speaker may be read from the register of the speaker.
In some possible implementations of embodiments of the present application, the initial maximum volume of the speaker may be stored in the memory after factory testing of the speaker.
In some possible implementations of the embodiment of the application, a speaker fault occurs in the electronic device with the speaker, and the speaker is replaced, in this case, after the electronic device with the speaker is started, the initial maximum volume can be obtained from the register of the speaker currently installed in the electronic device, that is, the initial maximum volume of the speaker installed in the electronic device is obtained again every time the electronic device with the speaker is started, so that the maximum reachable volume is controlled.
In the embodiment of the application, the initial maximum volume of the loudspeaker installed on the electronic equipment is obtained again through the electronic equipment installed with the loudspeaker when the electronic equipment is started up every time, so that the situation that the loudspeaker is replaced and the maximum reachable volume is inaccurate in control can be avoided.
In some possible implementations of the embodiments of the present application, the first condition in S102 may include at least one of:
the initial maximum volume is greater than a first volume threshold and the maximum achievable volume is greater than the first volume threshold;
the initial maximum volume is greater than a first volume threshold and the maximum reachable volume is less than a second volume threshold, wherein the first volume threshold is greater than the second volume threshold.
In some possible implementations of the embodiments of the present application, the first volume threshold and the second volume threshold may be set according to actual needs of a user.
Illustratively, the speaker initial maximum volume is 98dB, the first volume threshold is 95dB, and the speaker current maximum achievable volume is 98 dB. At this time, the initial maximum volume of the loudspeaker is greater than the first volume threshold, and the current maximum reachable volume of the loudspeaker is greater than the first volume threshold, so that the maximum reachable volume of the loudspeaker is controlled. For example, the maximum achievable volume for controlling the speaker is 90 dB.
It will be appreciated that when the initial maximum volume of the speaker is greater than the first volume threshold and the current maximum achievable volume of the speaker is greater than the first volume threshold, a higher volume is indicated. At this time, when the maximum reachable volume of the speaker is controlled, the maximum reachable volume of the speaker may be decreased. By reducing the volume, on the one hand, the power consumption can be reduced, and on the other hand, the harm to the human ear can be reduced.
Still further exemplary, the initial maximum volume of the speaker is 98dB, the first volume threshold is 95dB, the current maximum achievable volume of the speaker is 10dB, and the second volume threshold is 50 dB. At this time, the initial maximum volume of the loudspeaker is greater than the first volume threshold, and the current maximum reachable volume of the loudspeaker is less than the second volume threshold, then the maximum reachable volume of the loudspeaker is controlled. For example, the maximum achievable volume for controlling the speaker is 80 dB.
It will be appreciated that when the initial maximum volume of the speaker is greater than the first volume threshold and the current maximum achievable volume of the speaker is less than the second volume threshold, it is indicative of a lower volume. At this time, in order to ensure that the user can hear clearly, when the maximum reachable volume of the speaker is controlled, the maximum reachable volume of the speaker may be increased. By increasing the volume, the user can be ensured to clearly hear the sound, and the user experience effect can be improved.
In some possible implementations of embodiments of the present application, controlling the maximum achievable volume may include: the first volume threshold is taken as the maximum achievable volume.
Illustratively, the speaker initial maximum volume is 98dB, the first volume threshold is 95dB, and the speaker current maximum achievable volume is 98 dB. At this time, the initial maximum volume of the loudspeaker is greater than the first volume threshold, and the current maximum reachable volume of the loudspeaker is greater than the first volume threshold, so that the maximum reachable volume of the loudspeaker is controlled to be 95 dB.
Still further exemplary, the initial maximum volume of the speaker is 98dB, the first volume threshold is 95dB, the current maximum achievable volume of the speaker is 10dB, and the second volume threshold is 50 dB. At this time, the initial maximum volume of the loudspeaker is greater than the first volume threshold, the current maximum reachable volume of the loudspeaker is less than the second volume threshold, and then the maximum reachable volume of the loudspeaker is controlled to be 95 dB.
In some possible implementations of embodiments of the present application, controlling the maximum achievable volume may include: taking the product of the maximum reachable volume and the first volume adjustment coefficient as the maximum reachable volume, wherein the first volume adjustment coefficient is more than 0 and less than 1 under the condition that the maximum reachable volume is more than a first volume threshold value; the first volume adjustment factor is greater than 1 if the maximum achievable volume is less than the second volume threshold.
Illustratively, the initial maximum volume of the speaker is 98dB, the first volume threshold is 95dB, the current maximum achievable volume of the speaker is 98dB, and the first volume adjustment factor is 0.5. At this time, the initial maximum volume of the speaker is greater than the first volume threshold, and the current maximum reachable volume of the speaker is greater than the first volume threshold, then the maximum reachable volume of the speaker is controlled to be 98 × 0.5 ═ 49 dB.
Further illustratively, the initial maximum volume of the speaker is 98dB, the first volume threshold is 95dB, the current maximum achievable volume of the speaker is 30dB, the second volume threshold is 50dB, and the first volume adjustment factor is 2. At this time, the initial maximum volume of the speaker is greater than the first volume threshold, and the current maximum reachable volume of the speaker is less than the second volume threshold, so that the maximum reachable volume of the speaker is controlled to be 30 × 2 — 60 dB.
Typically, the speaker volume has different volume levels, with different volume levels corresponding to different volumes. Wherein the maximum achievable volume corresponds to the highest volume level. In the using process of the user, the volume can be adjusted to the volume corresponding to the corresponding grade every time the volume is adjusted.
Exemplarily, an electronic device is taken as a mobile phone. The speaker installed in the mobile phone has 10 different volume levels, and the 10 different volume levels correspond to the volume, as shown in table 1.
TABLE 1
Volume level Volume (Unit: dB)
10 th stage 100
Stage 9 90
Stage 8 80
Stage 7 70
Stage 6 60
Stage 5 50
Stage 4 40
Stage 3 30
Stage 2 20
Stage 1 10
In table 1, the 10 th volume level is the highest volume level, and the 1 st volume level is the lowest volume level.
Assume that the current volume is 40dB for the level 4 volume level. The user presses a volume increasing key of the mobile phone, and the volume is increased to 50 dB; the user presses the volume reduction key of the mobile phone, and the volume is reduced to 30 dB.
Assume again that the current volume is 100dB for the level 10 volume level. The user presses a volume increasing key of the mobile phone, and the volume is kept unchanged at 100 dB; the user presses the volume reduction key of the mobile phone, and the volume is reduced to 90 dB.
Assume again that the current volume is 10dB for the level 1 volume level. The user presses a volume increasing key of the mobile phone, and the volume is increased to 20 dB; the user presses the volume down button of the handset and the volume is reduced to 0dB (mute state).
Assume again that the current volume is 0 dB. The user presses a volume increasing key of the mobile phone, and the volume is increased to 10 dB; the user presses the volume down button of the handset and the volume remains 0dB unchanged (mute state).
In some possible implementations of the embodiment of the present application, after S102, the volume control method provided in the embodiment of the present application may further include: and adjusting the volume corresponding to a second volume level except the first volume level to be the product of the initial volume corresponding to the second volume level and a second volume adjustment coefficient, wherein the first volume level is higher than the second volume level, and the first volume level is the highest volume level corresponding to the maximum reachable volume, namely the maximum reachable volume corresponds to the first volume level.
In some possible implementations of the embodiments of the present application, the second volume adjustment coefficient may be equal to or different from the first volume adjustment coefficient.
Illustratively, the initial maximum volume of the speaker is 120dB, the first volume threshold is 95dB, and the speaker volume and volume level correspondence is shown in table 2.
TABLE 2
Volume level Volume (Unit: dB)
Stage 10 100
9 th stage 90
Stage 8 80
Stage 7 70
Stage 6 60
Stage 5 50
Stage 4 40
Stage 3 30
Stage 2 20
Stage 1 10
As can be seen from table 2, the speaker currently has a maximum achievable volume of 100 dB. It is assumed that the first and second loudness adjustment coefficients are both 0.5. The relationship between the adjusted speaker volume and the volume level is shown in table 3.
TABLE 3
Volume level Volume (Unit: dB)
10 th stage 50
9 th stage 45
Stage 8 40
Stage 7 35
Stage 6 30
Stage 5 25
Stage 4 20
Stage 3 15
Stage 2 10
Stage 1 5
Still illustratively, the initial maximum volume of the speaker is 120dB, the first volume threshold is 95dB, and the speaker volume and volume level correspondence is shown in table 4.
TABLE 4
Volume level Volume (Unit: dB)
10 th stage 40
9 th stage 36
Stage 8 32
Stage 7 28
Stage 6 24
Stage 5 20
Stage 4 16
Stage 3 12
Stage 2 8
Stage 1 4
As can be seen from table 4, the speaker currently has a maximum achievable volume of 40 dB. It is assumed that the second volume threshold is 50dB, and the first volume adjustment coefficient and the second volume adjustment coefficient are both 2. The relationship between the adjusted speaker volume and the volume level is shown in table 5.
TABLE 5
Volume level Volume (Unit: dB)
10 th stage 80
9 th stage 72
Stage 8 64
Stage 7 56
Stage 6 48
Stage 5 40
Stage 4 32
Stage 3 24
Stage 2 16
Stage 1 8
In the embodiment of the application, the volume corresponding to each volume level is adjusted, so that the volume can be prevented from being adjusted in the actual use process, the situation of volume mutation occurs, and the user experience effect can be improved.
Illustratively, the initial maximum volume of the speaker is 120dB, the first volume threshold is 95dB, and the second volume threshold is 50 dB. Various results for volume control are shown in fig. 2 to 11.
In fig. 2, only the maximum achievable volume of the speaker is adjusted from 100dB to the first volume threshold of 95dB, and the volumes corresponding to the other volume levels are not adjusted.
In fig. 3, only the maximum achievable volume of the speaker is adjusted according to the first volume adjustment coefficient of 0.9, that is, the maximum achievable volume of the speaker is adjusted from 100dB to 100dB × 0.9 to 90 dB; the volume levels corresponding to the other volume levels are not adjusted.
In fig. 4, the maximum reachable volume of the speaker is adjusted from 100dB to 95dB, and the volumes of other levels of the speaker are adjusted according to the first volume adjustment coefficient of 0.9.
In fig. 5, the maximum reachable volume of the speaker is adjusted according to the first volume adjustment coefficient 0.9, and the volumes of other levels of the speaker are also adjusted according to the first volume adjustment coefficient 0.9.
In fig. 6, the maximum reachable volume of the speaker is adjusted according to the first volume adjustment coefficient 0.9, and the volumes of other levels of the speaker are adjusted according to the second volume adjustment coefficient 0.5.
In fig. 7, only the maximum achievable volume of the speaker is adjusted from 40dB to the first volume threshold of 95dB, and the volumes corresponding to the other volume levels are not adjusted.
In fig. 8, only the maximum achievable volume of the speaker is adjusted according to the first volume adjustment coefficient 2.5, that is, the maximum achievable volume of the speaker is adjusted from 40dB to 40dB × 2.5 — 100 dB; the volume levels corresponding to the other volume levels are not adjusted.
In fig. 9, the maximum reachable volume of the speaker is adjusted from 40dB to 95dB, and the volumes of other levels of the speaker are adjusted according to the first volume adjustment factor of 2.5.
In fig. 10, the maximum reachable volume of the speaker is adjusted according to the first volume adjustment coefficient 2.5, and the volumes of other levels of the speaker are also adjusted according to the first volume adjustment coefficient 2.5.
In fig. 11, the maximum achievable volume of the speaker is adjusted according to the first volume adjustment coefficient 2.5, and the volumes of other levels of the speaker are adjusted according to the second volume adjustment coefficient 2.
It should be noted that, in the volume control method provided in the embodiment of the present application, the execution main body may be a volume control device. The volume control device provided by the embodiment of the present application is described by taking a volume control method executed by a volume control device as an example.
Fig. 12 is a schematic structural diagram of a volume control device according to an embodiment of the present application. The volume control apparatus 1200 may include:
an obtaining module 1201, configured to obtain an initial maximum volume and a maximum reachable volume of a speaker, where the maximum reachable volume is a maximum volume that can be reached by the speaker in actual use;
the control module 1202 is configured to control the maximum reachable volume according to the initial maximum volume when the initial maximum volume and the maximum reachable volume meet a first condition.
In the embodiment of the application, the initial maximum volume and the maximum reachable volume of the loudspeaker are obtained; and then, under the condition that the initial maximum volume and the maximum reachable volume meet the first condition, controlling the maximum reachable volume according to the initial maximum volume. The maximum reachable volume of the loudspeaker can be controlled without manually adjusting the maximum reachable volume of the loudspeaker by a user under the condition that the initial maximum volume and the maximum reachable volume meet the first condition, and the volume adjusting efficiency can be improved.
In some possible implementations of embodiments of the present application, the first condition includes at least one of:
the initial maximum volume is greater than a first volume threshold and the maximum achievable volume is greater than the first volume threshold;
the initial maximum volume is greater than a first volume threshold and the maximum reachable volume is less than a second volume threshold, wherein the first volume threshold is greater than the second volume threshold.
In some possible implementations of the embodiments of the present application, the control module 1202 may be specifically configured to:
the first volume threshold is taken as the maximum achievable volume.
In some possible implementations of the embodiments of the present application, the control module 1202 may be specifically configured to:
taking the product of the maximum reachable volume and the first volume adjustment coefficient as the maximum reachable volume; the first volume adjustment coefficient is larger than 0 and smaller than 1 when the maximum reachable volume is larger than the first volume threshold, and the first volume adjustment coefficient is larger than 1 when the maximum reachable volume is smaller than the second volume threshold.
In some possible implementations of embodiments of the present application, the maximum achievable volume corresponds to a first volume level; the volume control apparatus 1200 provided in the embodiment of the present application may further include:
and the adjusting module is used for adjusting the volume corresponding to the second volume level except the first volume level into the product of the initial volume corresponding to the second volume level and a second volume adjusting coefficient, wherein the first volume level is higher than the second volume level.
In some possible implementations of the embodiment of the present application, the obtaining module 1201 is specifically configured to:
after the electronic equipment provided with the loudspeaker is started, reading the initial maximum volume from a register which stores the initial maximum volume in advance.
The volume control device in the embodiment of the present application may be an electronic device, or may be a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The volume control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present application.
The volume control device provided in the embodiment of the present application can implement each process in the volume control method embodiments of fig. 1 to 11, and is not described here again to avoid repetition.
Optionally, as shown in fig. 13, an electronic device 1300 is further provided in an embodiment of the present application, and includes a processor 1301 and a memory 1302, where the memory 1302 stores a program or an instruction that can be executed on the processor 1301, and when the program or the instruction is executed by the processor 1301, the steps of the embodiment of the volume control method are implemented, and the same technical effects can be achieved, and are not described again here to avoid repetition.
In some possible implementations of embodiments of the Application, the processor 1301 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of embodiments of the Application.
In some possible implementations of embodiments of the present application, the Memory 1302 may include Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk storage media devices, optical storage media devices, flash Memory devices, electrical, optical, or other physical/tangible Memory storage devices. Thus, in general, the memory 1302 includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software comprising computer-executable instructions and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the volume control methods according to embodiments of the application.
Fig. 14 is a hardware configuration diagram of an electronic device implementing an embodiment of the present application.
The electronic device 1400 includes, but is not limited to: radio unit 1401, network module 1402, audio output unit 1403, input unit 1404, sensor 1405, display unit 1406, user input unit 1407, interface unit 1408, memory 1409, and processor 1410.
Those skilled in the art will appreciate that the electronic device 1400 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1410 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 14 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
Wherein the processor 1410 is configured to: acquiring initial maximum volume and maximum reachable volume of a loudspeaker, wherein the maximum reachable volume is the maximum volume which can be reached by the loudspeaker in actual use; and under the condition that the initial maximum volume and the maximum reachable volume meet the first condition, controlling the maximum reachable volume according to the initial maximum volume.
In the embodiment of the application, the initial maximum volume and the maximum reachable volume of the loudspeaker are obtained; and then, under the condition that the initial maximum volume and the maximum reachable volume meet the first condition, controlling the maximum reachable volume according to the initial maximum volume. The maximum reachable volume of the loudspeaker can be controlled without manually adjusting the maximum reachable volume of the loudspeaker by a user under the condition that the initial maximum volume and the maximum reachable volume meet the first condition, and the volume adjusting efficiency can be improved.
In some possible implementations of embodiments of the present application, the first condition includes at least one of:
the initial maximum volume is greater than a first volume threshold and the maximum achievable volume is greater than the first volume threshold;
the initial maximum volume is greater than a first volume threshold and the maximum reachable volume is less than a second volume threshold, wherein the first volume threshold is greater than the second volume threshold.
In some possible implementations of embodiments of the application, the processor 1410 may be specifically configured to:
the first volume threshold is taken as the maximum achievable volume.
In some possible implementations of embodiments of the application, the processor 1410 may be specifically configured to:
taking the product of the maximum reachable volume and the first volume adjustment coefficient as the maximum reachable volume; the first volume adjustment coefficient is larger than 0 and smaller than 1 when the maximum reachable volume is larger than the first volume threshold, and the first volume adjustment coefficient is larger than 1 when the maximum reachable volume is smaller than the second volume threshold.
In some possible implementations of embodiments of the present application, the maximum achievable volume corresponds to a first volume level; the processor 1410 may also be configured to:
and adjusting the volume corresponding to a second volume level except the first volume level to be the product of the initial volume corresponding to the second volume level and a second volume adjustment coefficient, wherein the first volume level is higher than the second volume level.
In some possible implementations of embodiments of the application, the processor 1410 is specifically configured to:
after the electronic device 1400 with the speaker mounted therein is turned on and started, the initial maximum volume is read from the register in which the initial maximum volume is stored in advance.
It should be understood that in the embodiment of the present application, the input Unit 1404 may include a Graphics Processing Unit (GPU) 14041 and a microphone 14042, and the Graphics processor 14041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1406 may include a display panel 14061, and the display panel 14061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1407 includes at least one of a touch panel 14071 and other input devices 14072. Touch panel 14071, also referred to as a touch screen. The touch panel 14071 may include two parts of a touch detection device and a touch controller. Other input devices 14072 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.
The memory 1409 may be used to store software programs as well as various data. The memory 1409 may mainly include a first storage area storing a program or an instruction and a second storage area storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, and the like) required for at least one function, and the like. Further, the memory 1409 can comprise volatile memory or nonvolatile memory, or the memory 1409 can comprise both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). The memory 1409 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 1410 may include one or more processing units; optionally, processor 1410 integrates an application processor, which primarily handles operations related to the operating system, user interface, applications, etc., and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 1410.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction 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 processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, and examples of the computer readable storage medium include non-transitory computer readable storage media such as ROM, RAM, magnetic or optical disks, and the like.
The embodiment of the present application further provides a chip, which includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above-mentioned volume control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the foregoing volume control method embodiments, and achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 application may be embodied in the form of a computer software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method of volume control, the method comprising:
acquiring initial maximum volume and maximum reachable volume of a loudspeaker, wherein the maximum reachable volume is the maximum volume which can be reached by the loudspeaker in actual use;
and under the condition that the initial maximum volume and the maximum reachable volume meet a first condition, controlling the maximum reachable volume according to the initial maximum volume.
2. The method of claim 1, wherein the first condition comprises at least one of:
the initial maximum volume is greater than a first volume threshold and the maximum achievable volume is greater than the first volume threshold;
the initial maximum volume is greater than the first volume threshold and the maximum reachable volume is less than a second volume threshold, wherein the first volume threshold is greater than the second volume threshold.
3. The method of claim 2, wherein said controlling the maximum achievable volume based on the initial maximum volume comprises:
taking the first volume threshold as the maximum reachable volume.
4. The method of claim 2, wherein said controlling the maximum achievable volume based on the initial maximum volume comprises:
taking the product of the maximum reachable volume and a first volume adjustment coefficient as the maximum reachable volume; wherein the first volume adjustment coefficient is greater than 0 and less than 1 when the maximum reachable volume is greater than the first volume threshold, and the first volume adjustment coefficient is greater than 1 when the maximum reachable volume is less than the second volume threshold.
5. The method of any of claims 2-4, wherein the maximum achievable volume corresponds to a first volume level; the method further comprises the following steps:
and adjusting the volume corresponding to a second volume level except the first volume level to be the product of the initial volume corresponding to the second volume level and a second volume adjustment coefficient, wherein the first volume level is higher than the second volume level.
6. The method of claim 1, wherein the obtaining an initial maximum volume of a speaker comprises:
and after the electronic equipment provided with the loudspeaker is started, reading the initial maximum volume from a register in which the initial maximum volume is stored in advance.
7. A volume control device, the device comprising:
the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring the initial maximum volume and the maximum reachable volume of a loudspeaker, and the maximum reachable volume is the maximum volume which can be reached by the loudspeaker in actual use;
and the control module is used for controlling the maximum reachable volume according to the initial maximum volume under the condition that the initial maximum volume and the maximum reachable volume meet a first condition.
8. The apparatus of claim 7, wherein the first condition comprises at least one of:
the initial maximum volume is greater than a first volume threshold and the maximum achievable volume is greater than the first volume threshold;
the initial maximum volume is greater than the first volume threshold and the maximum reachable volume is less than a second volume threshold, wherein the first volume threshold is greater than the second volume threshold.
9. An electronic device, characterized in that the electronic device comprises: a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions when executed by the processor implementing the steps of the volume control method of any one of claims 1 to 6.
10. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the volume control method according to any one of claims 1 to 6.
CN202210126134.2A 2022-02-10 2022-02-10 Volume control method, device, equipment and medium Active CN114520949B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210126134.2A CN114520949B (en) 2022-02-10 2022-02-10 Volume control method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210126134.2A CN114520949B (en) 2022-02-10 2022-02-10 Volume control method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN114520949A true CN114520949A (en) 2022-05-20
CN114520949B CN114520949B (en) 2024-05-03

Family

ID=81596064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210126134.2A Active CN114520949B (en) 2022-02-10 2022-02-10 Volume control method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114520949B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003243952A (en) * 2002-02-20 2003-08-29 Tdk Corp Digital audio system, auto volume control factor generating method, auto volume control method, auto volume control factor generating program, auto volume control program, recording medium for recording the auto volume control factor generating program, and recording medium for recording the auto volume control program
JP2005142962A (en) * 2003-11-07 2005-06-02 Sony Corp Audio output apparatus
US20090245533A1 (en) * 2008-03-31 2009-10-01 General Motors Corporation Adaptive initial volume settings for a vehicle audio system
DE102009018799A1 (en) * 2009-04-24 2010-11-04 Anna Grinberg Method for controlling sound reproduction device in radio receiver and TV set for elder people, involves issuing message to user and applying limit of maximum allowable sound level according to time period
CN104410379A (en) * 2014-10-29 2015-03-11 深圳市金立通信设备有限公司 A volume adjusting method
US20160313971A1 (en) * 2015-04-24 2016-10-27 Sonos, Inc. Volume Limit
CN108182097A (en) * 2016-12-08 2018-06-19 武汉斗鱼网络科技有限公司 The implementation method and device of a kind of volume bar
US10461710B1 (en) * 2018-08-28 2019-10-29 Sonos, Inc. Media playback system with maximum volume setting

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003243952A (en) * 2002-02-20 2003-08-29 Tdk Corp Digital audio system, auto volume control factor generating method, auto volume control method, auto volume control factor generating program, auto volume control program, recording medium for recording the auto volume control factor generating program, and recording medium for recording the auto volume control program
JP2005142962A (en) * 2003-11-07 2005-06-02 Sony Corp Audio output apparatus
US20090245533A1 (en) * 2008-03-31 2009-10-01 General Motors Corporation Adaptive initial volume settings for a vehicle audio system
DE102009018799A1 (en) * 2009-04-24 2010-11-04 Anna Grinberg Method for controlling sound reproduction device in radio receiver and TV set for elder people, involves issuing message to user and applying limit of maximum allowable sound level according to time period
CN104410379A (en) * 2014-10-29 2015-03-11 深圳市金立通信设备有限公司 A volume adjusting method
US20160313971A1 (en) * 2015-04-24 2016-10-27 Sonos, Inc. Volume Limit
CN108182097A (en) * 2016-12-08 2018-06-19 武汉斗鱼网络科技有限公司 The implementation method and device of a kind of volume bar
US10461710B1 (en) * 2018-08-28 2019-10-29 Sonos, Inc. Media playback system with maximum volume setting

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
飘零雪;: "统一锁定最高音量 避免午夜惊魄", 电脑迷, no. 24 *

Also Published As

Publication number Publication date
CN114520949B (en) 2024-05-03

Similar Documents

Publication Publication Date Title
CN107105367B (en) Audio signal processing method and terminal
US10148240B2 (en) Method and apparatus for sound playback control
CN106792386B (en) Terminal volume adjusting method and device
US8320586B2 (en) System and method for reducing volume spike in an electronic device
CN106791067B (en) Call volume adjusting method and device and mobile terminal
CN107277268B (en) Audio playing method and mobile terminal
CN109429147B (en) Electronic device and control method thereof
CN107465824B (en) Volume adjusting method and device, mobile terminal and storage medium
US11201598B2 (en) Volume adjusting method and mobile terminal
CN107526570B (en) Volume adjusting method and device, terminal equipment and storage medium
CN110799936B (en) Volume adjusting method, volume adjusting device, terminal equipment and storage medium
CN113099352B (en) Audio signal processing method, audio signal processing device, electronic equipment and storage medium
CN112015365A (en) Volume adjustment method and device and electronic equipment
CN111508510A (en) Audio processing method and device, storage medium and electronic equipment
CN107483734B (en) Volume adjusting method and device, terminal equipment and storage medium
CN107508983B (en) Volume adjusting method and device, storage medium and terminal equipment
CN112394901A (en) Audio output mode adjusting method and device and electronic equipment
CN110086941B (en) Voice playing method and device and terminal equipment
CN107506168B (en) Volume adjusting method and device, terminal equipment and storage medium
CN112291672B (en) Speaker control method, control device and electronic equipment
CN114520949B (en) Volume control method, device, equipment and medium
CN111510824B (en) Audio processing circuit, audio processing method, electronic device, and computer-readable storage medium
CN106293607B (en) Method and system for automatically switching audio output modes
WO2019033939A1 (en) Volume adjustment method and apparatus, terminal device, and storage medium
CN111309224B (en) Sound effect adjusting method and device, storage medium and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant