CN107508983B - Volume adjusting method and device, storage medium and terminal equipment - Google Patents

Volume adjusting method and device, storage medium and terminal equipment Download PDF

Info

Publication number
CN107508983B
CN107508983B CN201710710454.1A CN201710710454A CN107508983B CN 107508983 B CN107508983 B CN 107508983B CN 201710710454 A CN201710710454 A CN 201710710454A CN 107508983 B CN107508983 B CN 107508983B
Authority
CN
China
Prior art keywords
parameter
volume
adjusting
earphone interface
adjustment
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
CN201710710454.1A
Other languages
Chinese (zh)
Other versions
CN107508983A (en
Inventor
许钊铵
严锋贵
甘高亭
郑志勇
杨海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710710454.1A priority Critical patent/CN107508983B/en
Publication of CN107508983A publication Critical patent/CN107508983A/en
Application granted granted Critical
Publication of CN107508983B publication Critical patent/CN107508983B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a volume adjusting method, a volume adjusting device, a storage medium and a terminal device, wherein the method comprises the following steps: acquiring a first volume parameter corresponding to an earphone interface of terminal equipment and acquiring a second volume parameter corresponding to a play-out module of the terminal equipment; when the connection between the earphone interface and the external equipment is detected, determining a first adjusting parameter according to preset adjusting information, the second volume parameter and the first volume parameter; adjusting the volume corresponding to the earphone interface according to the first adjusting parameter; when the earphone interface is detected to be disconnected with the external equipment, determining a second adjusting parameter according to the preset adjusting information, the first volume parameter and the second volume parameter; and adjusting the volume corresponding to the playing module according to the second adjusting parameter. The invention has the advantages of improving the volume adjusting efficiency of the terminal equipment and reducing the power consumption of the terminal equipment.

Description

Volume adjusting method and device, storage medium and terminal equipment
Technical Field
The embodiment of the invention relates to the field of computers, in particular to a volume adjusting method, a volume adjusting device, a storage medium and terminal equipment.
Background
With the development of mobile networks, terminal devices are gradually popularized in the lives of people, wherein the most common terminal device is a smart phone, and in the prior art, a sound playing mode of the smart phone includes an external playing module playing mode and an earphone interface playing mode, wherein generally, an earphone interface corresponds to one volume parameter, and an external playing module corresponds to another volume parameter. Such a volume adjustment method is not flexible enough and needs to be further improved.
Disclosure of Invention
The embodiment of the invention provides a volume adjusting method and device, a storage medium and a terminal device, which improve the volume adjusting efficiency of the terminal device and reduce the power consumption of the terminal device.
In a first aspect, an embodiment of the present invention provides a volume adjustment method, including:
acquiring a first volume parameter corresponding to an earphone interface of terminal equipment and acquiring a second volume parameter corresponding to a play-out module of the terminal equipment;
when the connection between the earphone interface and the external equipment is detected, determining a first adjusting parameter according to preset adjusting information, the second volume parameter and the first volume parameter;
adjusting the volume corresponding to the earphone interface according to the first adjusting parameter;
when the earphone interface is detected to be disconnected with the external equipment, determining a second adjusting parameter according to the preset adjusting information, the first volume parameter and the second volume parameter;
and adjusting the volume corresponding to the playing module according to the second adjusting parameter.
In a second aspect, an embodiment of the present invention provides a volume adjustment device, including:
the volume parameter acquisition module is used for acquiring a first volume parameter corresponding to an earphone interface of the terminal equipment and acquiring a second volume parameter corresponding to a play-out module of the terminal equipment;
the first parameter determining module is used for determining a first adjusting parameter according to preset adjusting information, the second volume parameter and the first volume parameter when the connection between the earphone interface and the external equipment is detected;
the first adjusting module is used for adjusting the volume corresponding to the earphone interface according to the first adjusting parameter;
the second parameter determining module is used for determining a second adjusting parameter according to the preset adjusting information, the first volume parameter and the second volume parameter when the earphone interface and the external equipment are detected to be disconnected;
and the second adjusting module is used for adjusting the volume corresponding to the playing-out module according to the second adjusting parameter.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a volume adjustment method according to an embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention provides a terminal device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the volume adjustment method according to the embodiment of the present invention.
According to the volume adjusting method provided by the embodiment of the invention, when the earphone interface is disconnected or connected, the adjusting parameter is determined according to the preset adjusting information, the first volume parameter and the second volume parameter, and then the volume value corresponding to the earphone interface or the external playing device is adjusted according to the adjusting parameter. By adopting the technical scheme, the volume adjusting efficiency of the terminal equipment is improved, and the power consumption of the terminal equipment is reduced.
Drawings
Fig. 1 is a schematic flow chart of a volume adjustment method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of volume adjustment according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of another volume adjustment provided by the embodiment of the present invention;
FIG. 4 is a diagram illustrating a first predetermined function according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of another volume adjustment method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of another volume adjustment provided by the present invention;
fig. 7 is a schematic flow chart of another volume adjustment method according to an embodiment of the present invention;
fig. 8 is a schematic flow chart of another volume adjustment method according to an embodiment of the present invention;
fig. 9 is a schematic diagram illustrating a volume adjustment editing according to an embodiment of the present invention;
fig. 10 is a block diagram of a volume adjustment device according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The existing sound playing mode of the smart phone comprises a playing mode of an external playing module and a playing mode of an earphone interface, generally, the earphone interface corresponds to one volume parameter, the external playing module corresponds to another volume parameter, the volume adjusting function is single, a smaller volume parameter is selected when a user uses the earphone, if the earphone is pulled out and the external playing module is used for playing, the volume parameter corresponding to the external playing module is larger, the user can be frightened, the volume control is passive, and a great deal of inconvenience is brought to the user. The volume adjusting method provided by the embodiment of the invention can well solve the problem that the volume control is passive.
Fig. 1 is a flowchart of a volume adjustment method according to an embodiment of the present invention, where the method may be executed by a volume control device, where the volume control device may be implemented by software and/or hardware, and may be generally integrated in a terminal device. As shown in fig. 1, the method includes:
step 101, acquiring a first volume parameter corresponding to an earphone interface of a terminal device, and acquiring a second volume parameter corresponding to a play-out module of the terminal device.
The first volume parameter is a parameter corresponding to the earphone interface, namely when a user uses an earphone or other equipment to connect with the earphone interface, the volume value corresponding to the earphone or other equipment; the second volume parameter is a parameter corresponding to the play-out module of the terminal device, that is, a volume value when a speaker of the terminal device plays.
And 102, when the connection between the earphone interface and the external equipment is detected, determining a first adjusting parameter according to preset adjusting information, the second volume parameter and the first volume parameter.
The preset adjusting information comprises a formula, an adjusting coefficient and the like; for example, if the preset adjustment information is an average value, determining the first adjustment parameter according to the preset adjustment information, the second volume parameter and the first volume parameter is to obtain an average value of the second volume parameter and the first volume parameter, that is, the first adjustment parameter.
Alternatively, step 102 may be implemented by:
and when the connection between the earphone interface and the external equipment is detected, weighting and summing the second volume parameter and the first volume parameter to obtain a first adjusting parameter.
The preset adjustment information includes a first weighting coefficient and a second weighting coefficient, and the first weighting coefficient and the second weighting coefficient may be preset by the system, as shown in table 1. The first volume parameter is multiplied by a first weighting coefficient, the second volume parameter is multiplied by a second weighting coefficient, and the sum of the first volume parameter and the second volume parameter is the first adjusting parameter. As shown in fig. 2, the second volume parameter corresponding to the play-out module of the terminal device is 3 (the volume parameter range of the terminal device is 0-10), the first volume parameter corresponding to the earphone interface of the terminal device is 8, and it is known from table 1 that the first weighting coefficient is 0.4 and the second weighting coefficient is 0.6, so that the value obtained by weighting and summing the first volume parameter and the second volume parameter is: 3 × 0.6+8 × 0.4 ═ 5, i.e., the first manipulated variable is 5. As shown in fig. 3, when it is detected that the earphone interface is connected to the external device, the volume corresponding to the earphone interface of the terminal device is adjusted to 5. It should be noted that, when the first volume parameter corresponding to the earphone interface of the terminal device is obtained next time, the first volume parameter is 5. A reasonable adjusting parameter is obtained by weighting and summing the first volume parameter and the second volume parameter.
TABLE 1
Figure GDA0002361593970000041
And 103, adjusting the volume corresponding to the earphone interface according to the first adjusting parameter.
Alternatively, step 103 may be implemented by:
and in a first preset time, adjusting the volume of the earphone interface from the second volume parameter to the first adjustment parameter according to a first preset function.
For example, if the first preset time is 2s, the first preset function is a sine wave, the second volume parameter is 3, and the first adjustment parameter is 5, the volume of the headphone jack gradually climbs from 3 to 5 along the sine wave within 2 seconds, as shown in fig. 4 (a). As also shown in fig. 4(b), if the first preset function is a straight line, the volume of the headphone jack gradually climbs from 3 to 5 along the straight line within 2 seconds. Through the implementation mode, the sound heard by the user through the external equipment is gradually increased, and the hearing comfort of the user is improved.
Optionally, as shown in fig. 5, step 103 may also be implemented by:
and 103a, determining the noise value under the current environment through the sound sensor of the terminal equipment.
The noise value is specifically a sound decibel value in the environment, for example, a noise value of a common office is 50 decibels, and a noise value of a street is 30 decibels.
And 103b, multiplying the noise value by a preset proportional coefficient, and determining a first noise adjusting parameter according to the first adjusting parameter.
For example, 0-20 decibels are barely perceptible sounds; 20-40 decibels are the sound of quiet, whisper; 40-60 decibels are the sound of a normal room conversation; 60-70 decibels are noisy and nerve-damaging sounds; 70-90 db is noisy and the nerve cells are damaged. The noise value within 0-40 dB does not influence the hearing of the user on the volume of the mobile phone, 40-60 dB has slight influence on the hearing of the user, 60-70 dB has larger influence on the hearing of the user, and 70-90 dB has very large influence on the hearing of the user.
As shown in table 2, the preset scaling factor corresponding to the noise value of 0-40 db is 0; the preset proportionality coefficient corresponding to the noise value of 40-60 decibels is 0.006, and the preset proportionality coefficient corresponding to the noise value of 60-70 decibels is 0.012; the preset scaling factor for a noise value of 70-90 db is 0.02. And according to the difference of the noise values, multiplying the noise values by the corresponding preset proportional coefficients, and summing the multiplied noise values and the first adjusting parameters to obtain first noise adjusting parameters.
TABLE 2
Noise value/decibel Preset scale factor
0-40 0
40-60 0.006
60-70 0.012
70-90 0.02
For example, the first preset adjustment value in the first adjustment parameter is 3, the adjustment attribute is increase, and the current volume value of the terminal device is 5; if the noise value under the current environment is 50 and the corresponding preset proportionality coefficient is 0.006, multiplying the noise value by the preset proportionality coefficient, and summing the multiplied noise value and a first preset adjusting value in the first adjusting parameter: 50 × 0.006+3 ═ 3.3, the first noise adjustment parameter was found to be an increase of 3.3, and after adjustment, the volume value of the terminal device was 8.3.
For another example, the second preset adjustment value in the first adjustment parameter is 7, and the current volume value of the terminal device is 5; multiplying the noise value by a preset proportionality coefficient, and then summing with a second preset adjusting value in the first adjusting parameter: 50 × 0.006+7 ═ 7.3; after the adjustment, the volume value of the terminal device is 7.3.
And 103c, adjusting the volume corresponding to the earphone interface according to the first noise adjusting parameter.
Alternatively, step 103c may be implemented by:
and in a first preset time, adjusting the volume of the earphone interface from the second volume parameter to the first noise adjustment parameter according to a first preset function.
The specific embodiments may refer to the related descriptions above, and are not described herein again.
And 112, when the disconnection between the earphone interface and the external equipment is detected, determining a second adjusting parameter according to the preset adjusting information, the first volume parameter and the second volume parameter.
Alternatively, step 112 may be implemented by:
and when the disconnection between the earphone interface and the external equipment is detected, weighting and summing the second volume parameter and the first volume parameter to obtain a second adjusting parameter.
The first volume parameter is multiplied by a first weighting coefficient, the second volume parameter is multiplied by a second weighting coefficient, and the sum of the first volume parameter and the second volume parameter is the second adjusting parameter. As shown in fig. 2 to 3, if the first volume parameter corresponding to the earphone interface of the terminal device is 5, the second volume parameter corresponding to the play-out module of the terminal device is 3, and it is known from table 1 that the first weighting coefficient is 0.5 and the second weighting coefficient is 0.5, the value obtained by weighting and summing the first volume parameter and the second volume parameter is: 3 × 0.5+5 × 0.5 ═ 4, i.e., the second manipulated variable is 4. As shown in fig. 6, when it is detected that the earphone interface is disconnected from the external device, the volume corresponding to the external module of the terminal device is adjusted to 4. It should be noted that, when the second volume parameter corresponding to the play-out module of the terminal device is obtained next time, the second volume parameter is 4.
And 113, adjusting the volume corresponding to the playing-out module according to the second adjusting parameter.
Alternatively, step 113 may be implemented by:
and in a second preset time, adjusting the volume corresponding to the playing-out module from the first volume parameter to a second adjustment parameter according to a second preset function.
The specific embodiments may refer to the related descriptions above, and are not described herein again.
Alternatively, as shown in fig. 7, step 113 may also be implemented by:
step 113a, determining a noise value under the current environment through a sound sensor of the terminal equipment;
step 113b, multiplying the noise value by a preset proportional coefficient, and determining a second noise adjusting parameter according to the second adjusting parameter;
and 113c, adjusting the volume corresponding to the play-out module according to the second noise adjusting parameter.
The specific embodiments may refer to the related descriptions above, and are not described herein again.
Alternatively, step 113c may be implemented by:
and in a second preset time, adjusting the volume corresponding to the play-out module from the first volume parameter to a second noise adjustment parameter according to a second preset function.
The specific embodiments may refer to the related descriptions above, and are not described herein again.
Optionally, as shown in fig. 8, the embodiment of the present invention further includes the following steps:
step 201, receiving selection information of a user, and returning at least one of a first preset time, a second preset time, a first preset function and a second preset function to the user.
When the user is not satisfied with the settings of the first preset time, the second preset time, the first preset function, and the second preset function, the user may enter a volume adjustment editing interface by sending selection information, as shown in fig. 9.
Step 202, receiving editing information of a user, and editing a preset time, a first preset function or a second preset function according to the editing information.
As shown in fig. 9, the user may select or/and edit the first preset time, the second preset time, the first preset function, and the second preset function.
Fig. 10 is a block diagram of a volume adjusting apparatus according to an embodiment of the present invention, where the apparatus may be implemented by software and/or hardware, and is generally integrated in a terminal device, and as shown in fig. 10, the apparatus includes:
a volume parameter obtaining module 301, configured to obtain a first volume parameter corresponding to an earphone interface of a terminal device, and obtain a second volume parameter corresponding to a play-out module of the terminal device;
a first parameter determining module 302, configured to determine a first adjusting parameter according to preset adjusting information, the second volume parameter, and the first volume parameter when it is detected that the earphone interface is connected to an external device;
a first adjusting module 303, configured to adjust a volume corresponding to the earphone interface according to the first adjusting parameter;
a second parameter determining module 312, configured to determine a second adjusting parameter according to the preset adjusting information, the first volume parameter, and the second volume parameter when it is detected that the earphone interface and the external device are disconnected;
and the second adjusting module 313 is configured to adjust the volume corresponding to the play-out module according to the second adjusting parameter.
Optionally, the first parameter determining module is specifically configured to:
weighting and summing the second volume parameter and the first volume parameter to obtain a first adjusting parameter;
the second parameter determination module is specifically configured to:
and weighting and summing the second volume parameter and the first volume parameter to obtain a second adjusting parameter.
Optionally, the first adjusting module is specifically configured to:
and in a first preset time, adjusting the volume of the earphone interface from the second volume parameter to the first adjustment parameter according to a first preset function.
Optionally, the second adjusting module is specifically configured to:
and in a second preset time, adjusting the volume corresponding to the playing-out module from the first volume parameter to a second adjustment parameter according to a second preset function.
Optionally, the method further comprises:
the first noise adjusting module is used for determining a noise value under the current environment through a sound sensor of the terminal equipment, multiplying the noise value by a preset proportionality coefficient and determining a first noise adjusting parameter according to the first adjusting parameter;
the second noise adjusting module is used for determining a noise value under the current environment through a sound sensor of the terminal equipment, multiplying the noise value by a preset proportionality coefficient and determining a second noise adjusting parameter according to the second adjusting parameter;
correspondingly, the first adjusting module is specifically configured to:
adjusting the volume corresponding to the earphone interface according to the first noise adjustment parameter;
the second adjusting module is specifically configured to:
and adjusting the volume corresponding to the external playing module according to the second noise adjusting parameter.
Optionally, the first adjusting module is specifically configured to:
adjusting the volume of the earphone interface from a second volume parameter to a first noise adjustment parameter according to a first preset function within a first preset time;
the second adjusting module is specifically configured to:
and in a second preset time, adjusting the volume corresponding to the play-out module from the first volume parameter to a second noise adjustment parameter according to a second preset function.
Optionally, the method further comprises:
the selection setting module is used for receiving selection information of a user and returning at least one of the first preset time, the second preset time, the first preset function and the second preset function to the user;
and the editing module receives the editing information of the user and edits the preset time, the first preset function or the second preset function according to the editing information.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the volume adjustment operation described above, and may also perform related operations in the volume adjustment method provided by any embodiment of the present invention.
The embodiment of the invention provides terminal equipment, and the terminal equipment can be integrated with the volume adjusting device provided by the embodiment of the invention. Fig. 11 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 11, the terminal device may include: a casing (not shown), a touch screen (not shown), touch keys (not shown), a memory 401, a Central Processing Unit (CPU) 402 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU402 and the memory 401 are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal equipment; the memory 401 is used for storing executable program codes; the CPU402 runs a computer program corresponding to the executable program code by reading the executable program code stored in the memory 401 to implement the steps of:
acquiring a first volume parameter corresponding to an earphone interface of terminal equipment and acquiring a second volume parameter corresponding to a play-out module of the terminal equipment;
when the connection between the earphone interface and the external equipment is detected, determining a first adjusting parameter according to preset adjusting information, the second volume parameter and the first volume parameter;
adjusting the volume corresponding to the earphone interface according to the first adjusting parameter;
when the earphone interface is detected to be disconnected with the external equipment, determining a second adjusting parameter according to the preset adjusting information, the first volume parameter and the second volume parameter;
and adjusting the volume corresponding to the playing module according to the second adjusting parameter.
The terminal device further includes: peripheral interface 403, RF (Radio Frequency) circuitry 405, audio circuitry 406, speakers 411, power management chip 408, input/output (I/O) subsystem 409, touch screen 412, other input/control devices 410, and external port 404, which communicate via one or more communication buses or signal lines 407.
It should be understood that the illustrated terminal device 400 is merely one example of a terminal device, and that the terminal device 400 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail the terminal device for volume adjustment provided in this embodiment, and the terminal device is a mobile phone as an example.
A memory 401, the memory 401 being accessible by the CPU402, the peripheral interface 403, and the like, the memory 401 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 403, the peripheral interface 403 may connect input and output peripherals of the device to the CPU402 and the memory 401.
An I/O subsystem 409, which I/O subsystem 409 may connect input and output peripherals on the device, such as a touch screen 412 and other input/control devices 410, to the peripheral interface 403. The I/O subsystem 409 may include a display controller 4091 and one or more input controllers 4092 for controlling other input/control devices 410. Where one or more input controllers 4092 receive electrical signals from or send electrical signals to other input/control devices 410, the other input/control devices 410 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 4092 may be connected to any one of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 412, which touch screen 412 is an input interface and an output interface between the user terminal device and the user, displays visual output to the user, which visual output may include graphics, text, icons, video, and the like.
The display controller 4091 in the I/O subsystem 409 receives electrical signals from the touch screen 412 or transmits electrical signals to the touch screen 412. The touch screen 412 detects a contact on the touch screen, and the display controller 4091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 412, i.e., implements a human-computer interaction, and the user interface object displayed on the touch screen 412 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 405 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 405 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 405 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. RF circuitry 405 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 406 is mainly used to receive audio data from the peripheral interface 403, convert the audio data into an electric signal, and transmit the electric signal to the speaker 411.
The speaker 411 is used to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 405 to sound and play the sound to the user.
And the power management chip 408 is used for supplying power and managing power to the hardware connected with the CPU402, the I/O subsystem and the peripheral interface.
The terminal equipment provided by the embodiment of the invention can improve the volume adjusting efficiency of the terminal equipment and reduce the power consumption of the terminal equipment.
The volume adjusting device, the storage medium and the terminal device provided in the above embodiments can execute the volume adjusting method provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to a volume adjustment method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A method of adjusting volume, comprising:
acquiring a first volume parameter corresponding to an earphone interface of terminal equipment and acquiring a second volume parameter corresponding to a play-out module of the terminal equipment;
when the earphone interface is detected to be connected with external equipment, weighting and summing the second volume parameter and the first volume parameter to obtain a first adjusting parameter;
adjusting the volume corresponding to the earphone interface according to the first adjusting parameter;
when the earphone interface is detected to be disconnected with external equipment, weighting and summing the second volume parameter and the first volume parameter to obtain a second adjusting parameter;
and adjusting the volume corresponding to the playing module according to the second adjusting parameter.
2. The method of claim 1, wherein the adjusting the volume corresponding to the headset interface according to the first adjustment parameter comprises:
and in a first preset time, adjusting the volume of the earphone interface from the second volume parameter to the first adjustment parameter according to a first preset function.
3. The method of claim 2, wherein the adjusting the volume corresponding to the play-out module according to the second adjustment parameter comprises:
and in a second preset time, adjusting the volume corresponding to the playing-out module from the first volume parameter to a second adjustment parameter according to a second preset function.
4. The method of claim 1, wherein after the weighted summation of the second volume parameter and the first volume parameter to obtain a first adjustment parameter, further comprising:
determining a noise value under the current environment through a sound sensor of the terminal equipment, multiplying the noise value by a preset proportionality coefficient, and determining a first noise adjusting parameter according to the first adjusting parameter;
correspondingly, the adjusting the volume corresponding to the earphone interface according to the first adjustment parameter includes:
adjusting the volume corresponding to the earphone interface according to the first noise adjustment parameter;
after determining a second adjustment parameter according to the preset adjustment information, the first volume parameter, and the second volume parameter, the method further includes:
determining a noise value under the current environment through a sound sensor of the terminal equipment, multiplying the noise value by a preset proportionality coefficient, and determining a second noise adjusting parameter according to the second adjusting parameter;
correspondingly, the adjusting the volume corresponding to the play-out module according to the second adjusting parameter includes:
and adjusting the volume corresponding to the external playing module according to the second noise adjusting parameter.
5. The method of claim 4, wherein the adjusting the volume corresponding to the headset interface according to the first noise adjustment parameter comprises:
adjusting the volume of the earphone interface from a second volume parameter to a first noise adjustment parameter according to a first preset function within a first preset time;
the adjusting the volume corresponding to the play-out module according to the second noise adjustment parameter includes:
and in a second preset time, adjusting the volume corresponding to the play-out module from the first volume parameter to a second noise adjustment parameter according to a second preset function.
6. The method of claim 3 or 5, further comprising:
receiving selection information of a user, and returning at least one of first preset time, second preset time, a first preset function and a second preset function to the user;
receiving editing information of a user, and editing the preset time, the first preset function or the second preset function according to the editing information.
7. A volume adjustment device, comprising:
the volume parameter acquisition module is used for acquiring a first volume parameter corresponding to an earphone interface of the terminal equipment and acquiring a second volume parameter corresponding to a play-out module of the terminal equipment;
the first parameter determining module is used for weighting and summing the second volume parameter and the first volume parameter to obtain a first adjusting parameter when the connection between the earphone interface and the external equipment is detected;
the first adjusting module is used for adjusting the volume corresponding to the earphone interface according to the first adjusting parameter;
the second parameter determining module is used for weighting and summing the second volume parameter and the first volume parameter to obtain a second adjusting parameter when the earphone interface and the external equipment are detected to be disconnected;
and the second adjusting module is used for adjusting the volume corresponding to the playing-out module according to the second adjusting parameter.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a volume adjustment method according to any one of claims 1 to 6.
9. A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the volume adjustment method according to any one of claims 1 to 6 when executing the computer program.
CN201710710454.1A 2017-08-18 2017-08-18 Volume adjusting method and device, storage medium and terminal equipment Active CN107508983B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710710454.1A CN107508983B (en) 2017-08-18 2017-08-18 Volume adjusting method and device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710710454.1A CN107508983B (en) 2017-08-18 2017-08-18 Volume adjusting method and device, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN107508983A CN107508983A (en) 2017-12-22
CN107508983B true CN107508983B (en) 2020-05-12

Family

ID=60691127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710710454.1A Active CN107508983B (en) 2017-08-18 2017-08-18 Volume adjusting method and device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN107508983B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108447512B (en) * 2018-03-20 2021-02-09 北京奇艺世纪科技有限公司 Control method and device for Dolby audio track
CN108897516B (en) * 2018-06-13 2021-04-09 Oppo广东移动通信有限公司 Wearable device volume adjustment method and related product
CN109511070A (en) * 2018-11-10 2019-03-22 东莞市华睿电子科技有限公司 A kind of hearing aid gain processing method
CN109495649B (en) * 2018-12-14 2021-10-01 深圳市沃特沃德信息有限公司 Volume adjusting method, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080066143A (en) * 2007-01-11 2008-07-16 엘지전자 주식회사 Mobile terminal and method for controlling a sound volume in thereof
CN103237277A (en) * 2013-04-12 2013-08-07 广东欧珀移动通信有限公司 Method and device for headset audio playing
CN105872180A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Method and device for adjusting volume of terminal device
CN106792386A (en) * 2016-12-05 2017-05-31 青岛海信电器股份有限公司 A kind of terminal volume adjusting method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080066143A (en) * 2007-01-11 2008-07-16 엘지전자 주식회사 Mobile terminal and method for controlling a sound volume in thereof
CN103237277A (en) * 2013-04-12 2013-08-07 广东欧珀移动通信有限公司 Method and device for headset audio playing
CN105872180A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Method and device for adjusting volume of terminal device
CN106792386A (en) * 2016-12-05 2017-05-31 青岛海信电器股份有限公司 A kind of terminal volume adjusting method and device

Also Published As

Publication number Publication date
CN107508983A (en) 2017-12-22

Similar Documents

Publication Publication Date Title
CN107509153B (en) Detection method and device of sound playing device, storage medium and terminal
US11251763B2 (en) Audio signal adjustment method, storage medium, and terminal
CN107508983B (en) Volume adjusting method and device, storage medium and terminal equipment
CN107562405B (en) Audio playing control method and device, storage medium and mobile terminal
CN106791067B (en) Call volume adjusting method and device and mobile terminal
CN108810749B (en) Player control method, device, terminal equipment and storage medium
CN107465824B (en) Volume adjusting method and device, mobile terminal and storage medium
US11201598B2 (en) Volume adjusting method and mobile terminal
CN107371102B (en) Audio playing volume control method and device, storage medium and mobile terminal
CN104393848A (en) Method and device for adjusting volume
CN106713653B (en) Audio and video playing control method and device and terminal
CN107040661A (en) Control method, device and the mobile terminal of mobile terminal playing volume
CN107526570B (en) Volume adjusting method and device, terminal equipment and storage medium
CN107145327A (en) A kind of audio frequency playing method, device and smart machine
EP3671430A1 (en) Volume adjustment method and apparatus, terminal device, and storage medium
CN109089190B (en) Impedance curve determination method and device, storage medium and terminal equipment
CN107508978B (en) Volume adjusting method and device, storage medium and terminal equipment
CN107483734B (en) Volume adjusting method and device, terminal equipment and storage medium
CN107506168B (en) Volume adjusting method and device, terminal equipment and storage medium
CN111508510B (en) Audio processing method and device, storage medium and electronic equipment
CN107493380A (en) volume adjusting method, device, storage medium and terminal device
WO2019033436A1 (en) Volume adjustment method, device, storage medium and mobile terminal
CN107508986B (en) Volume adjusting method and device, storage medium and terminal equipment
CN110753919A (en) Volume adjusting method and device, storage medium and mobile terminal
CN110731087B (en) Volume adjusting method and device, mobile terminal 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
CB02 Change of applicant information
CB02 Change of applicant information

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

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

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

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

GR01 Patent grant
GR01 Patent grant