CN111309282B - Audio equipment power consumption control method and device, audio equipment and storage medium - Google Patents

Audio equipment power consumption control method and device, audio equipment and storage medium Download PDF

Info

Publication number
CN111309282B
CN111309282B CN202010086959.7A CN202010086959A CN111309282B CN 111309282 B CN111309282 B CN 111309282B CN 202010086959 A CN202010086959 A CN 202010086959A CN 111309282 B CN111309282 B CN 111309282B
Authority
CN
China
Prior art keywords
audio
threshold value
power consumption
audio equipment
equipment
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
CN202010086959.7A
Other languages
Chinese (zh)
Other versions
CN111309282A (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.)
Realme Chongqing Mobile Communications Co Ltd
Original Assignee
Realme Chongqing Mobile Communications 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 Realme Chongqing Mobile Communications Co Ltd filed Critical Realme Chongqing Mobile Communications Co Ltd
Priority to CN202010086959.7A priority Critical patent/CN111309282B/en
Publication of CN111309282A publication Critical patent/CN111309282A/en
Application granted granted Critical
Publication of CN111309282B publication Critical patent/CN111309282B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • 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 application provides a method and a device for controlling power consumption of audio equipment, the audio equipment and a storage medium, and belongs to the technical field of audio equipment. Wherein the method comprises the following steps: detecting whether the current volume value of the audio equipment is a first threshold value or not; if not, detecting whether the amplitude of the current audio data in the audio equipment is a second threshold value or not; if yes, the audio processing component in the audio device is turned off. Therefore, through the power consumption control method of the audio equipment, the working state of the audio processing assembly is controlled according to the current sound volume value of the audio equipment and the amplitude value of the current audio data, so that the power consumption of the audio equipment can be reduced from multiple aspects, and the effect of power consumption control is improved.

Description

Audio equipment power consumption control method and device, audio equipment and storage medium
Technical Field
The application relates to the technical field of audio equipment, in particular to the technical field of power consumption control, and provides a method and a device for controlling power consumption of audio equipment, audio equipment and a storage medium.
Background
In the related art, in order to save power consumption of an audio device, an audio processing component in the audio device is generally turned off when a volume value of the audio device is 0. However, this power consumption control method has a single effect and is limited in power consumption that can be saved.
Disclosure of Invention
The method, the device, the audio device and the storage medium for controlling the power consumption of the audio device are used for solving the problems of single effect and limited power consumption which can be saved by closing the power consumption control mode of the audio processing component in the audio device when the sound volume value of the audio device is 0 in the related technology.
In one aspect, the method for controlling power consumption of an audio device provided by an embodiment of the present application includes: detecting whether the current volume value of the audio equipment is a first threshold value or not; if not, detecting whether the amplitude of the current audio data in the audio equipment is a second threshold value or not; if yes, closing an audio processing component in the audio equipment.
In another aspect, an apparatus for controlling power consumption of an audio device according to an embodiment of the present application includes: the first detection module is used for detecting whether the current volume value of the audio equipment is a first threshold value or not; the second detection module is used for detecting whether the amplitude of the current audio data in the audio equipment is a second threshold value or not if not; and the first closing module is used for closing the audio processing component in the audio equipment if yes.
In still another aspect, an embodiment of the present application provides an audio device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method for controlling the power consumption of an audio device as described above when executing the program.
In a further aspect, the present application provides a computer readable storage medium having a computer program stored thereon, where the program is executed by a processor to implement a method for controlling power consumption of an audio device as described above.
In another aspect, the present application provides a computer program, which when executed by a processor, implements the method for controlling power consumption of an audio device according to the embodiment of the present application.
According to the audio equipment power consumption control method, the audio equipment, the computer readable storage medium and the computer program, when the fact that the current volume value of the audio equipment is not the first threshold value is detected, whether the amplitude value of current audio data in the audio equipment is the second threshold value is continuously detected, and then when the amplitude value of the current audio data is the second threshold value, the audio processing assembly in the audio equipment is turned off. Therefore, the working state of the audio processing assembly is controlled according to the current volume value of the audio equipment and the amplitude value of the current audio data, so that the power consumption of the audio equipment can be reduced from multiple aspects, and the effect of power consumption control is improved.
Additional aspects and advantages of the application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the application.
Drawings
The foregoing and/or additional aspects and advantages of the application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
fig. 1 is a schematic flow chart of a method for controlling power consumption of an audio device according to an embodiment of the present application;
fig. 2 is a flowchart of another method for controlling power consumption of an audio device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an audio device power consumption control device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an audio device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the like or similar elements throughout. The embodiments described below by referring to the drawings are illustrative and intended to explain the present application and should not be construed as limiting the application.
The embodiment of the application provides a power consumption control method of audio equipment, aiming at the problems of single effect and limited power consumption which can be saved by closing the power consumption control mode of an audio processing component in the audio equipment when the sound volume value of the audio equipment is 0 in the related technology.
According to the audio equipment power consumption control method provided by the embodiment of the application, when the current volume value of the audio equipment is detected to be not the first threshold value, whether the amplitude value of the current audio data in the audio equipment is the second threshold value is continuously detected, and then when the amplitude value of the current audio data is the second threshold value, the audio processing assembly in the audio equipment is closed. Therefore, the working state of the audio processing assembly is controlled according to the current volume value of the audio equipment and the amplitude value of the current audio data, so that the power consumption of the audio equipment can be reduced from multiple aspects, and the effect of power consumption control is improved.
The method, apparatus, audio device, storage medium and computer program for controlling power consumption of audio device according to the present application will be described in detail with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for controlling power consumption of an audio device according to an embodiment of the present application.
As shown in fig. 1, the method for controlling power consumption of an audio device includes the steps of:
step 101, detecting whether a current volume value of an audio device is a first threshold.
It should be noted that, the method for controlling power consumption of an audio device according to the embodiment of the present application may be executed by the apparatus for controlling power consumption of an audio device according to the embodiment of the present application. The audio equipment power consumption control device provided by the embodiment of the application can be configured in any audio equipment to control the power consumption of the audio equipment. The audio device in the embodiment of the present application may be any electronic device with an audio input/output function, and may include, but is not limited to, a mobile phone, a computer, a personal digital assistant, a wearable device, and the like.
The first threshold is a volume value for indicating that the user does not need the audio device to output audio. In actual use, the specific value of the first threshold value can be determined according to actual needs and specific application scenarios, which is not limited by the embodiment of the present application. For example, the first threshold may be 0.
In the embodiment of the application, the current volume value of the audio device can be set by a user. For example, the user may adjust the volume value of the audio device by at least one of providing a mechanical button in the audio device that adjusts the volume value, providing a corresponding volume adjustment control in a setup menu, and providing a corresponding volume adjustment control in a status bar call-out menu.
As a possible implementation, since the current volume value of the audio device may reflect the current requirement of the user for audio output of the audio device, for example, when the current volume value of the audio device is 0, the user may consider that the audio device is not currently required for audio output. Thus, the current volume value of the audio device may be used as a parameter for one aspect of power consumption control of the audio device.
Specifically, the current volume value of the audio device may be obtained from the setting information of the audio device, and it is determined whether the obtained current volume value of the audio device is the first threshold. If the current volume value of the audio device is detected as the first threshold, it may be considered that the user does not need the audio device to output audio (i.e. does not need the audio device to make a sound), that is, in a possible implementation manner of the embodiment of the present application, after the step 101, the method may further include:
if yes, the audio processing component in the audio device is turned off.
It should be noted that, when the sound volume value of the audio device is the first threshold, it is assumed that the first threshold is 0, and although the audio device is in a silent working state, the audio processing component of the audio device is still in a working state by default, so that the power consumption of the audio device is greater. Therefore, when the current sound value of the audio equipment is detected to be the first threshold value, the audio processing assembly in the audio equipment can be closed, namely, a channel for transmitting audio data to the digital processing chip is closed, an audio power amplifier is closed, and an analog device is closed, so that the power consumption of the audio equipment is saved.
Step 102, if not, detecting whether the amplitude of the current audio data in the audio device is the second threshold.
The second threshold is used for indicating the amplitude of the audio data in the audio device as silent data. In actual use, the value of the second threshold can be determined according to actual needs and specific application scenarios, which is not limited by the embodiment of the present application. For example, the amplitude of silent audio data is typically 0, so that the second threshold may be 0.
In the embodiment of the application, if the current volume value of the audio device is detected to be not the first threshold value, whether the audio processing component can be turned off can be further judged according to the amplitude value of the current audio data in the audio device, so that the power consumption of the audio device is reduced as much as possible.
As a possible implementation manner, when the current volume value of the audio device is not the first threshold value, and when it is detected that audio data currently exists in the audio device, the amplitude of the current audio data is parsed to determine whether the amplitude of the current audio data in the audio device is the second threshold value, that is, whether the current audio data is silent audio data.
Furthermore, not all application programs in the audio device can send out silent audio data, but only part of application programs can continuously output the silent audio data in order to preempt a playing path, so that the audio processing assembly is in a continuous working state, and the power consumption of the audio device is wasted. That is, in one possible implementation manner of the embodiment of the present application, before the step 102, the method may further include:
and determining that the currently running application in the audio equipment is a preset white list application.
As a possible implementation manner, an application that continuously outputs silent audio data for preempting a playback path may be preset as a whitelist application, so that when it is detected that a current volume value of an audio device is not a first threshold value, it may be first determined whether a preset whitelist application is included in applications currently running in the audio device. If the currently running application in the audio device includes a preset white list application, whether the amplitude of the current audio data in the audio device is a second threshold value or not can be continuously detected; if the currently running application in the audio equipment does not comprise the preset white list application, whether the amplitude of the current audio data in the audio equipment is the second threshold value or not is not needed to be detected, so that the data processing capacity of the audio equipment is reduced.
And 103, if yes, turning off the audio equipment processing component in the audio.
In the embodiment of the application, if the amplitude of the current audio data in the audio equipment is determined to be the second threshold value, the current audio data in the audio equipment can be determined to be silent audio data, so that an audio processing component in the audio equipment can be closed to save the power consumption of the audio equipment.
According to the audio equipment power consumption control method provided by the embodiment of the application, when the current volume value of the audio equipment is detected to be not the first threshold value, whether the amplitude value of the current audio data in the audio equipment is the second threshold value is continuously detected, and then when the amplitude value of the current audio data is the second threshold value, the audio processing assembly in the audio equipment is closed. Therefore, the working state of the audio processing assembly is controlled according to the current volume value of the audio equipment and the amplitude value of the current audio data, so that the power consumption of the audio equipment can be reduced from multiple aspects, and the effect of power consumption control is improved.
In one possible implementation of the present application, the duration of silent audio data may be detected simultaneously when detecting whether the current audio data in the audio device is silent audio data, so as to avoid erroneous judgment.
The method for controlling power consumption of an audio device according to the embodiment of the present application is further described below with reference to fig. 2.
Fig. 2 is a flowchart of another method for controlling power consumption of an audio device according to an embodiment of the present application.
As shown in fig. 2, the method for controlling power consumption of an audio device includes the steps of:
step 201, detecting whether the current volume value of the audio device is a first threshold, if yes, executing step 205; otherwise, step 202 is performed.
The specific implementation process and principle of the above step 201 may refer to the detailed description of the above embodiment, which is not repeated herein.
Step 202, detecting whether the amplitude of the current audio data in the audio device is a second threshold, if yes, executing step 203; otherwise, step 206 is performed.
In the embodiment of the application, if the current volume value of the audio device is detected to be not the first threshold value, whether the audio processing component can be turned off can be further judged according to the amplitude value of the current audio data in the audio device, so that the power consumption of the audio device is reduced as much as possible.
As a possible implementation manner, when the current volume value of the audio device is not the first threshold value, and when it is detected that audio data currently exists in the audio device, the amplitude of the current audio data is parsed to determine whether the amplitude of the current audio data in the audio device is the second threshold value, that is, whether the current audio data is silent audio data.
Step 203, judging whether the duration of the amplitude of the audio data being the second threshold is greater than or equal to the third threshold, if yes, executing step 205; otherwise, after executing step 204, the execution returns to step 201.
As a possible implementation, since some applications may include short duration silent audio data, it is understood that this form of silent audio data is different from the ones that the application needs to detect continuously. If the audio processing component is turned off as long as silent audio data is detected, the processing of normal audio data is easily affected, and the user experience is affected. Therefore, in the embodiment of the present application, whether the current audio data is silent audio data continuously emitted by the application may be determined according to the duration in which the amplitude of the audio data is the second threshold, that is, whether the duration in which the amplitude of the audio data is the second threshold is greater than or equal to the third threshold may be determined when the amplitude of the current audio data is detected as the second threshold.
It should be noted that, in actual use, the specific value of the third threshold may be preset according to actual needs, which is not limited in the embodiment of the present application. For example, the third threshold is 5 seconds.
In step 204, the magnitude of the audio data is updated to be the duration of the second threshold.
In the embodiment of the application, if the duration that the amplitude of the current audio data in the audio device is the second threshold value is smaller than the third threshold value, that is, the duration that the amplitude of the current audio data is the second threshold value is shorter, it can be determined that the current audio data is not silent audio data continuously sent by an application but short mute moment contained in the normal audio data output by the application, so that the audio processing component does not need to be closed, erroneous judgment can be prevented, and user experience can be further improved. And further, continuously accumulating the duration with the amplitude of the audio data being the second threshold value to update the duration, and returning to execute step 201 until the volume value of the audio device is detected to be the first threshold value or the amplitude of the audio data is detected to be not the second threshold value, and stopping accumulating the duration.
Step 205, the audio processing components in the audio device are turned off.
The specific implementation process and principle of the step 205 may refer to the detailed description of the foregoing embodiments, which is not repeated herein.
Step 206, judging whether the audio processing component in the audio equipment is in an on state, if so, executing step 208; otherwise, step 207 is performed.
Step 207, the audio processing component is started.
At step 208, current audio data in the audio device is processed with the audio processing component.
In the embodiment of the application, if the amplitude of the current audio data in the audio device is detected to be not the second threshold value, the current audio data can be determined to be not silent audio data, so that the audio processing component can be utilized to normally process the current audio data, and the audio device can output the audio data.
As one possible implementation, if the current audio data in the audio device has just transitioned from silent audio data to normal audio data, the audio processing components in the audio device may be in an off state and not be able to process the audio data. Therefore, when the amplitude of the current audio data is detected to be not the second threshold value, whether the audio processing component is in the on state or not can be judged first, and if so, the current audio data can be processed by directly utilizing the audio processing component; if the audio processing component is not in the on state, the audio processing component can be started first, and after the audio processing component is started, the current audio data is processed by the audio processing component.
According to the audio equipment power consumption control method provided by the embodiment of the application, when the current sound volume value of the audio equipment is the first threshold value, and when the duration time of the amplitude of the current audio data in the audio equipment is longer than or equal to the third threshold value and is longer than the second threshold value, the audio processing component in the audio equipment is closed, and when the amplitude of the current audio data in the audio equipment is not determined to be the second threshold value, whether the audio processing component in the audio equipment is in an open state is judged, and when the audio processing component is not in the open state, the audio processing component is started. Therefore, the working state of the audio processing assembly is controlled according to the current volume value of the audio device and the duration of the audio data which is silent, so that the power consumption of the audio device can be reduced from multiple aspects, the effect of controlling the power consumption is improved, misjudgment on the property of the audio data is avoided, and the user experience is further improved.
In order to achieve the above embodiment, the present application further provides an apparatus for controlling power consumption of an audio device.
Fig. 3 is a schematic structural diagram of an apparatus for controlling power consumption of an audio device according to an embodiment of the present application.
As shown in fig. 3, the audio device power consumption control apparatus 30 includes:
a first detection module 31, configured to detect whether a current volume value of the audio device is a first threshold;
a second detecting module 32, configured to detect whether the amplitude of the current audio data in the audio device is a second threshold if not;
the first closing module 33 is configured to close the audio processing component in the audio device if yes.
In practical use, the audio device power consumption control apparatus provided by the embodiment of the application can be configured in any audio device to execute the audio device power consumption control method.
According to the audio equipment power consumption control device provided by the embodiment of the application, when the current volume value of the audio equipment is detected to be not the first threshold value, whether the amplitude value of the current audio data in the audio equipment is the second threshold value is continuously detected, and then when the amplitude value of the current audio data is the second threshold value, the audio processing assembly in the audio equipment is closed. Therefore, the working state of the audio processing assembly is controlled according to the current volume value of the audio equipment and the amplitude value of the current audio data, so that the power consumption of the audio equipment can be reduced from multiple aspects, and the effect of power consumption control is improved.
In one possible implementation form of the present application, the audio device power consumption control apparatus 30 further includes:
the first determining module is used for determining that the currently running application in the audio equipment is a preset white list application.
Further, in another possible implementation form of the present application, the audio device power consumption control apparatus 30 further includes:
and the second determining module is used for determining that the duration time when the amplitude of the audio data is the second threshold value is greater than or equal to the third threshold value.
Further, in still another possible implementation form of the present application, the audio device power consumption control apparatus 30 further includes:
the first judging module is used for judging that the duration time length of the amplitude of the audio data being the second threshold value is greater than or equal to the third threshold value if the amplitude of the audio data is the second threshold value;
and the updating module is used for updating the duration time when the amplitude of the audio data is the second threshold value if not, and returning to continuously detecting whether the current volume value of the audio equipment is the first threshold value.
Further, in still another possible implementation form of the present application, the audio device power consumption control apparatus 30 further includes:
the second judging module is used for judging whether the audio processing component in the audio equipment is in an on state or not if not;
and the starting module is used for starting the audio processing assembly if not.
Further, in still another possible implementation form of the present application, the audio device power consumption control apparatus 30 further includes:
and the second closing module is used for closing the audio processing component in the audio equipment if yes.
It should be noted that the foregoing explanation of the embodiment of the power consumption control method of the audio device shown in fig. 1 and fig. 2 is also applicable to the power consumption control apparatus 30 of the audio device in this embodiment, and will not be repeated here.
According to the power consumption control device for the audio equipment, when the current sound volume value of the audio equipment is the first threshold value, and when the duration time of the amplitude of the current audio data in the audio equipment is greater than or equal to the third threshold value and the amplitude of the current audio data is the second threshold value, the audio processing assembly in the audio equipment is closed, and when the amplitude of the current audio data in the audio equipment is determined not to be the second threshold value, whether the audio processing assembly in the audio equipment is in an open state is judged, and when the audio processing assembly is not in the open state, the audio processing assembly is started. Therefore, the working state of the audio processing assembly is controlled according to the current volume value of the audio device and the duration of the audio data which is silent, so that the power consumption of the audio device can be reduced from multiple aspects, the effect of controlling the power consumption is improved, misjudgment on the property of the audio data is avoided, and the user experience is further improved.
In order to realize the embodiment, the application also provides audio equipment.
Fig. 4 is a schematic structural diagram of an audio device according to an embodiment of the present application.
As shown in fig. 4, the above-mentioned audio device 200 includes:
the memory 210 and the processor 220, the bus 230 connecting different components (including the memory 210 and the processor 220), the memory 210 stores a computer program, and the processor 220 executes the program to implement the method for controlling power consumption of the audio device according to the embodiment of the present application.
Bus 230 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Audio device 200 typically includes a variety of electronic device readable media. Such media can be any available media that is accessible by audio device 200 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 210 may also include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 240 and/or cache memory 250. The audio device 200 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 260 may be used to read from or write to a non-removable, non-volatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 230 via one or more data medium interfaces. Memory 210 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the application.
Program/utility 280 having a set (at least one) of program modules 270 may be stored in, for example, memory 210, such program modules 270 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 270 generally perform the functions and/or methods of the embodiments described herein.
The audio device 200 may also communicate with one or more external devices 290 (e.g., keyboard, pointing device, display 291, etc.), one or more devices that enable a user to interact with the audio device 200, and/or any device (e.g., network card, modem, etc.) that enables the audio device 200 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 292. Also, the audio device 200 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 293. As shown, network adapter 293 communicates with other modules of audio device 200 over bus 230. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with audio device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processor 220 executes various functional applications and data processing by running programs stored in the memory 210.
It should be noted that, the implementation process and the technical principle of the audio device in this embodiment refer to the foregoing explanation of the method for controlling power consumption of the audio device in this embodiment of the present application, and are not repeated here.
The audio device provided by the embodiment of the application can execute the power consumption control method of the audio device, and when detecting that the current volume value of the audio device is not the first threshold value, the audio device continues to detect whether the amplitude value of the current audio data in the audio device is the second threshold value, and further, when detecting that the amplitude value of the current audio data is the second threshold value, the audio processing component in the audio device is closed. Therefore, the working state of the audio processing assembly is controlled according to the current volume value of the audio equipment and the amplitude value of the current audio data, so that the power consumption of the audio equipment can be reduced from multiple aspects, and the effect of power consumption control is improved.
In order to implement the above embodiments, the present application also proposes a computer-readable storage medium.
Wherein the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the method for controlling power consumption of an audio device according to the embodiments of the present application.
In order to achieve the foregoing embodiments, an embodiment of the present application provides a computer program, which when executed by a processor, implements the method for controlling power consumption of an audio device according to the embodiment of the present application.
In alternative implementations, the present embodiments may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the consumer electronic device, partly on the consumer electronic device, as a stand-alone software package, partly on the consumer electronic device and partly on the remote electronic device or entirely on the remote electronic device or server. In the case of remote electronic devices, the remote electronic device may be connected to the consumer electronic device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external electronic device (e.g., connected through the internet using an internet service provider).
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (8)

1. A method for controlling power consumption of an audio device, comprising:
detecting whether the current volume value of the audio equipment is a first threshold value or not;
if not, determining that the currently running application in the audio equipment is a preset white list application, wherein the preset white list application refers to an application for continuously outputting silent audio data in order to preempt a playing path, detecting whether the amplitude of the current audio data in the audio equipment is a second threshold value or not, and the second threshold value refers to an amplitude for indicating that the audio data in the audio equipment is the silent data;
if yes, closing an audio processing component in the audio equipment.
2. The method of claim 1, wherein before the turning off the audio processing components in the audio device, further comprising:
the duration of the amplitude of the audio data is determined to be the second threshold to be greater than or equal to the third threshold.
3. The method of claim 1, wherein after detecting whether the magnitude of the current audio data in the audio device is a second threshold value, further comprising:
if yes, judging whether the duration time of the amplitude value of the audio data being the second threshold value is greater than or equal to a third threshold value;
if not, updating the duration time of the amplitude of the audio data as the second threshold value, and returning to continuously detecting whether the current volume value of the audio equipment is the first threshold value.
4. A method according to any one of claims 1-3, wherein after detecting whether the magnitude of the current audio data in the audio device is a second threshold value, further comprising:
if not, judging whether an audio processing component in the audio equipment is in an on state or not;
if not, the audio processing component is started.
5. A method according to any of claims 1-3, wherein after said detecting whether the current volume value of the audio device is the first threshold value, further comprises:
if yes, closing an audio processing component in the audio equipment.
6. An audio device power consumption control apparatus, comprising:
the first detection module is used for detecting whether the current volume value of the audio equipment is a first threshold value or not;
the second detection module is used for determining that the currently running application in the audio equipment is a preset white list application, wherein the preset white list application refers to an application for continuously outputting silent audio data in order to preempt a playing path, and detecting whether the amplitude of the current audio data in the audio equipment is a second threshold value or not, and the second threshold value refers to an amplitude for indicating that the audio data in the audio equipment is the silent data;
the first determining module is used for determining that the currently running application in the audio equipment is a preset white list application before detecting whether the amplitude of the current audio data in the audio equipment is a second threshold value or not;
and the first closing module is used for closing the audio processing component in the audio equipment if yes.
7. An audio device, comprising: a memory, a processor and a program stored in the memory and executable on the processor, wherein the processor implements the audio device power consumption control method according to any one of claims 1 to 5 when executing the program.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the audio device power consumption control method according to any one of claims 1 to 5.
CN202010086959.7A 2020-02-11 2020-02-11 Audio equipment power consumption control method and device, audio equipment and storage medium Active CN111309282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010086959.7A CN111309282B (en) 2020-02-11 2020-02-11 Audio equipment power consumption control method and device, audio equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010086959.7A CN111309282B (en) 2020-02-11 2020-02-11 Audio equipment power consumption control method and device, audio equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111309282A CN111309282A (en) 2020-06-19
CN111309282B true CN111309282B (en) 2023-08-22

Family

ID=71154493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010086959.7A Active CN111309282B (en) 2020-02-11 2020-02-11 Audio equipment power consumption control method and device, audio equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111309282B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112804616B (en) * 2020-12-31 2022-05-17 青岛海信移动通信技术股份有限公司 Mobile terminal and audio playing method thereof
CN116489270A (en) * 2023-03-28 2023-07-25 荣耀终端有限公司 Audio playing method and electronic equipment

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201216013Y (en) * 2008-06-06 2009-04-01 青岛海信电器股份有限公司 Mute circuit for earphone
CN101848280A (en) * 2009-03-25 2010-09-29 深圳富泰宏精密工业有限公司 System and method for saving power for silently playing music
WO2015157136A1 (en) * 2014-04-11 2015-10-15 Microsoft Technology Licensing, Llc Audio signal processing
WO2017088427A1 (en) * 2015-11-26 2017-06-01 深圳Tcl数字技术有限公司 Audio output control method and device
CN107147800A (en) * 2017-06-01 2017-09-08 深圳市金立通信设备有限公司 A kind of processing incoming call and terminal
CN108762715A (en) * 2018-06-21 2018-11-06 Oppo广东移动通信有限公司 Electronic equipment audio control method, device and equipment
CN109245785A (en) * 2018-10-29 2019-01-18 哈尔滨理工大学 With electricity saving function 4.0 audio receiver of bluetooth and control method
WO2019033441A1 (en) * 2017-08-18 2019-02-21 广东欧珀移动通信有限公司 Sound volume adjustment method and apparatus, mobile terminal, and storage medium
CN109451346A (en) * 2018-10-18 2019-03-08 青岛海信电器股份有限公司 Audio data processing method, terminal device and storage medium based on Bluetooth communication
CN109673042A (en) * 2017-10-16 2019-04-23 华为终端(东莞)有限公司 Reduce the method and electronic equipment of the power consumption of electronic equipment
CN109716666A (en) * 2016-10-28 2019-05-03 华为技术有限公司 A kind of adjusting method and terminal device of audio node of conversing
CN208836125U (en) * 2018-10-29 2019-05-07 哈尔滨理工大学 With electricity saving function 4.0 audio receiver of bluetooth
CN110221804A (en) * 2019-04-25 2019-09-10 努比亚技术有限公司 A kind of audible notification method, wearable device and computer readable storage medium
CN110554762A (en) * 2015-04-14 2019-12-10 华为技术有限公司 Method and terminal for controlling application program

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201216013Y (en) * 2008-06-06 2009-04-01 青岛海信电器股份有限公司 Mute circuit for earphone
CN101848280A (en) * 2009-03-25 2010-09-29 深圳富泰宏精密工业有限公司 System and method for saving power for silently playing music
WO2015157136A1 (en) * 2014-04-11 2015-10-15 Microsoft Technology Licensing, Llc Audio signal processing
CN110554762A (en) * 2015-04-14 2019-12-10 华为技术有限公司 Method and terminal for controlling application program
WO2017088427A1 (en) * 2015-11-26 2017-06-01 深圳Tcl数字技术有限公司 Audio output control method and device
CN109716666A (en) * 2016-10-28 2019-05-03 华为技术有限公司 A kind of adjusting method and terminal device of audio node of conversing
CN107147800A (en) * 2017-06-01 2017-09-08 深圳市金立通信设备有限公司 A kind of processing incoming call and terminal
WO2019033441A1 (en) * 2017-08-18 2019-02-21 广东欧珀移动通信有限公司 Sound volume adjustment method and apparatus, mobile terminal, and storage medium
CN109673042A (en) * 2017-10-16 2019-04-23 华为终端(东莞)有限公司 Reduce the method and electronic equipment of the power consumption of electronic equipment
CN108762715A (en) * 2018-06-21 2018-11-06 Oppo广东移动通信有限公司 Electronic equipment audio control method, device and equipment
CN109451346A (en) * 2018-10-18 2019-03-08 青岛海信电器股份有限公司 Audio data processing method, terminal device and storage medium based on Bluetooth communication
CN109245785A (en) * 2018-10-29 2019-01-18 哈尔滨理工大学 With electricity saving function 4.0 audio receiver of bluetooth and control method
CN208836125U (en) * 2018-10-29 2019-05-07 哈尔滨理工大学 With electricity saving function 4.0 audio receiver of bluetooth
CN110221804A (en) * 2019-04-25 2019-09-10 努比亚技术有限公司 A kind of audible notification method, wearable device and computer readable storage medium

Also Published As

Publication number Publication date
CN111309282A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
CN107172454B (en) Video recommendation method, medium, device and computing equipment
CN109658932B (en) Equipment control method, device, equipment and medium
US20190066671A1 (en) Far-field speech awaking method, device and terminal device
CN109240107B (en) Control method and device of electrical equipment, electrical equipment and medium
WO2020221190A1 (en) Applet state synchronization method, device and computer storage medium
KR102607561B1 (en) Buffer processing methods, devices, apparatuses and computer storage media
CN110825456B (en) Loading time calculation method, loading time calculation device, computer equipment and storage medium
CN111309282B (en) Audio equipment power consumption control method and device, audio equipment and storage medium
CN110417641B (en) Method and equipment for sending session message
US20210352397A1 (en) Wireless earphone and method for controlling a wireless earphone
CN109831700B (en) Standby mode switching method and device, electronic equipment and storage medium
KR20200015267A (en) Electronic device for determining an electronic device to perform speech recognition and method for the same
CN108762715B (en) Electronic equipment sound control method, device and equipment
CN111343344B (en) Voice abnormity detection method and device, storage medium and electronic equipment
CN110377341B (en) Method, device, medium and electronic equipment for monitoring no-response exception
US20200252686A1 (en) Standby mode switching method, device, and storage medium
EP3792918B1 (en) Digital automatic gain control method and apparatus
CN105353942A (en) Information output method and terminal
EP2804123B1 (en) Method for providing DRM service and electronic device thereof
CN104780312A (en) Terminal
US20140153713A1 (en) Electronic device and method for providing call prompt
KR102501083B1 (en) Method for voice detection and electronic device using the same
CN111435318A (en) Dex optimization method of application program and terminal
CN110087168B (en) Audio reverberation processing method, device, equipment and storage medium
CN112394900A (en) Vehicle-mounted music system control method and device and electronic equipment

Legal Events

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