WO2018081927A1 - 音量调整的方法、装置和电子设备 - Google Patents

音量调整的方法、装置和电子设备 Download PDF

Info

Publication number
WO2018081927A1
WO2018081927A1 PCT/CN2016/104259 CN2016104259W WO2018081927A1 WO 2018081927 A1 WO2018081927 A1 WO 2018081927A1 CN 2016104259 W CN2016104259 W CN 2016104259W WO 2018081927 A1 WO2018081927 A1 WO 2018081927A1
Authority
WO
WIPO (PCT)
Prior art keywords
volume
speaker
speakers
state
adjusted
Prior art date
Application number
PCT/CN2016/104259
Other languages
English (en)
French (fr)
Inventor
王雅丽
李树彬
陶锐
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2016/104259 priority Critical patent/WO2018081927A1/zh
Priority to CN201680074963.3A priority patent/CN108432216B/zh
Publication of WO2018081927A1 publication Critical patent/WO2018081927A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M9/00Arrangements for interconnection not involving centralised switching
    • H04M9/08Two-way loud-speaking telephone systems with means for conditioning the signal, e.g. for suppressing echoes for one or both directions of traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/19Arrangements of transmitters, receivers, or complete sets to prevent eavesdropping, to attenuate local noise or to prevent undesired transmission; Mouthpieces or receivers specially adapted therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Definitions

  • the present invention relates to the field of terminals supporting audio, and in particular, to a method, device and electronic device for volume adjustment.
  • the speakers used on mobile phones use SmartPA's external codec mode for playing stereo sources through the speakers. It can provide the user with stereo sound, achieve a stereo playback effect, and can achieve a higher volume output and better protection of components.
  • the invention provides a method, a device and an electronic device for adjusting the volume to realize separate adjustment of the volume of a plurality of speakers to improve the user experience.
  • an embodiment of the present invention provides a method for volume adjustment, the method comprising:
  • Detecting at least two speakers determining a frequency resonance point and a volume amplitude value of each speaker; determining a state of each speaker according to a frequency resonance point of each speaker, the state may include a normal use state, being blocked or blocked by a foreign object Live state; when the first of at least two speakers The speaker (which may be one, two or more) is in the first state, that is, when the state is blocked or blocked by the foreign object, the volume of the first speaker is adjusted according to the volume amplitude value of the at least two speakers.
  • the volume of the speaker makes the volume of multiple speakers in an equal state, which realizes the separate adjustment of the volume of multiple speakers, improving the user experience.
  • the volume of the at least one speaker is adjusted according to a volume amplitude value of the at least one speaker, the method comprising:
  • the volume of the first speaker is adjusted using the same adjustment mode as the first speaker in the first state in the stored adjustment mode.
  • the method may include: first searching, in the stored adjustment mode, whether there is an adjustment mode that is the same as the current first speaker in the first state; when the stored adjustment mode exists and When the first speaker is in the same adjustment mode as the first state, the volume of the first speaker is adjusted by the state stored in the adjustment mode.
  • the volume of the occluded or blocked speaker can be adjusted by querying the volume of the respective speakers that are in the same state as the current plurality of speakers are blocked or blocked by the foreign object from the stored adjustment mode, thereby reducing the adjustment.
  • the speaker volume time reduces power consumption and further enhances the user experience.
  • the plurality of speakers are detected to determine a frequency resonance point of each speaker And volume amplitude values, including:
  • the current value and voltage value of each speaker are detected; the frequency resonance point and volume amplitude value of each speaker are determined according to the current value and voltage value of each speaker.
  • the state of each speaker is determined based on a frequency resonance point of each speaker, including:
  • the state of each speaker is determined based on the frequency resonance point of each speaker and a preset frequency resonance point.
  • adjusting a volume of the first speaker according to a volume amplitude value of the at least two speakers includes:
  • the volume of the first speaker is adjusted based on the volume amplitude value of the first speaker and the volume amplitude value of the other speakers other than the first speaker in the first state.
  • the method further includes:
  • the method further includes:
  • the adjusted volume amplitude values of the at least two speakers are the same, the first state of the first speaker and the volume of each of the at least two speaker volume adjustments are recorded.
  • the method further includes:
  • the volume of the first speaker is adjusted to a maximum value
  • the volume of the speaker other than the first speaker in the first state is adjusted, and it is determined whether the volume amplitude values of the adjusted at least two speakers are consistent.
  • the present invention provides a device for volume adjustment, the device comprising: a determining unit and an adjusting unit;
  • a determining unit for detecting at least two speakers, determining a frequency resonance point and a volume amplitude value of each speaker; determining a state of each speaker according to a frequency resonance point of each speaker, the state including a normal use state and being externally Blocking or blocking the state;
  • the adjusting unit is configured to: when the first (may be one, two or more) of the at least two speakers are in the first state, that is, when the foreign object is blocked or blocked, according to the volume amplitude of the at least two speakers Value, adjust the volume of the first speaker.
  • the volume adjustment device Based on the provided volume adjustment device, by detecting the state of the plurality of currently activated speakers, determining whether the speaker is in a blocked state, when one or more of the plurality of speakers are in a blocked state At the same time, the volume of the blocked speaker is adjusted, so that the volume of the plurality of speakers is in an equalized state, and the volume adjustment of the plurality of speakers is separately adjusted, thereby improving the user experience.
  • the device may further include:
  • the adjusting unit is further configured to adjust the volume of the first speaker by using an adjustment mode in the stored adjustment mode that is the same as the first speaker in the first state.
  • the apparatus may further include a query unit, configured to search, in the stored adjustment mode, whether there is an adjustment mode that is the same as the current at least one speaker in the first state; when the stored adjustment mode exists and current When the at least one speaker is in the same adjustment mode as the first state, the adjustment unit adjusts the volume of the first speaker by using the stored adjustment mode.
  • a query unit configured to search, in the stored adjustment mode, whether there is an adjustment mode that is the same as the current at least one speaker in the first state; when the stored adjustment mode exists and current When the at least one speaker is in the same adjustment mode as the first state, the adjustment unit adjusts the volume of the first speaker by using the stored adjustment mode.
  • the volume of the occluded or blocked speaker can be adjusted by querying the volume of the respective speakers that are in the same state as the current plurality of speakers are blocked or blocked by the foreign object from the stored adjustment mode, thereby reducing the adjustment.
  • the speaker volume time reduces power consumption and further enhances the user experience.
  • the determining unit specifically includes:
  • the current value and voltage value of each speaker are detected; the frequency resonance point and volume amplitude value of each speaker are determined according to the current value and voltage value of each speaker.
  • the determining unit specifically includes:
  • the state of each speaker is determined based on the frequency resonance point of each speaker and a preset frequency resonance point.
  • the adjusting unit specifically includes:
  • the volume of the first speaker is adjusted based on the volume amplitude value of the first speaker and the volume amplitude value of the other speakers other than the first speaker in the first state.
  • the determining unit is further configured to:
  • the volume of the first speaker is not adjusted to the maximum value, the volume of the first speaker is continuously adjusted, and it is determined whether the adjusted volume amplitude values of at least two speakers are consistent.
  • the device further includes: a recording unit, configured to: when the volume amplitude values of the adjusted at least two speakers are consistent, The first state of the first speaker and the volume of each of the at least two speaker volume adjustments are recorded.
  • the adjusting unit is further configured to: when the volume of the first speaker is When adjusting to the maximum value, the volume of the speaker other than the first speaker in the first state is adjusted, and it is determined whether the volume amplitude values of the adjusted at least two speakers are the same.
  • an embodiment of the present invention provides an electronic device including at least two speakers, a smart power amplifier (SmartPA), and a processor.
  • SmartPA smart power amplifier
  • a processor configured to determine a frequency resonance point and a volume amplitude value of each speaker according to a detection result of the smart power amplifier
  • the volume of the first speaker is adjusted according to the volume amplitude value of the at least two speakers.
  • the volume of the speaker makes the volume of multiple speakers in an equal state, which realizes the separate adjustment of the volume of multiple speakers, improving the user experience.
  • the electronic device provided by the third aspect is the same as the volume adjustment device provided by the first aspect, and the volume adjustment device provided by the second aspect is based on the same inventive concept, so that the electronic device provided by the third aspect can complete the first aspect and the first aspect A possible implementation, and the second aspect and any possible implementation of the second aspect are not described herein for brevity.
  • the method, device and electronic device based on the volume adjustment provided by the present invention determine whether the speaker is in a blocked state by detecting the state of the plurality of speakers currently activated, when one or more of the plurality of speakers When being blocked, the volume of the blocked speaker is adjusted, so that the volume of at least two speakers is in an equalized state, and the sound volume of the plurality of speakers is separately adjusted, thereby improving the user experience and passing the stored adjustment mode. Adjusting the volume saves adjustment time, reduces power consumption, and further improves the user experience.
  • FIG. 1 is a schematic structural diagram of a device according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for adjusting volume according to an embodiment of the present invention
  • FIG. 3 is a flowchart of another method for adjusting volume according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a device according to an embodiment of the present invention.
  • the method, device and electronic device for volume adjustment provided by the present invention are applicable to a scene in which there are at least two speakers in a terminal or a system.
  • the terminal can be a mobile phone, a tablet, or the like.
  • the method and apparatus for volume adjustment detect the state of a plurality of speakers by timing, according to the state of at least two speakers, for example, a certain speaker.
  • the sound amplification outlet is blocked or blocked by the foreign object, and the volume of at least two speakers is adjusted separately, so that the volume heard by the user through the speaker is balanced, thereby improving the user experience.
  • FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • the electronic device 100 can include at least two speakers 110, a detection circuit 120, a processor 130, a memory 140, and a communication bus 150.
  • At least two speakers 110, detection circuit 120, processor 130 The memory 140 is connected via a communication bus 150 to complete the communication.
  • the detecting circuit 120 is configured to detect a status signal of at least two speakers and obtain an audio signal fed back by at least two speakers.
  • the memory 140 is used to store instructions and data.
  • the processor 130 is configured to invoke an instruction to determine the state of the at least two speakers based on the status signals of the at least two speakers detected by the smart power amplifier 120.
  • the first state refers to the speaker being blocked or blocked by the foreign object, and the processor 130 may be based on the volume amplitude value of the at least two speakers.
  • the volume of the speaker in the first state is adjusted to achieve that at least two speaker volumes are in an equalized state.
  • the detection circuit 120 is specifically a Smart Power Amplifier (Smart PA), and the smart power amplifier may include two monitoring circuits of current (I) and voltage (V) for at least two speakers. The status is detected.
  • Smart PA Smart Power Amplifier
  • V voltage
  • the processor 130 may be a central processing unit (CPU), and the processor 130 may also be other general-purpose processors, digital signal processors (DSPs), and application specific integrated circuits. (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the processor 130 can be integrated on the same chip as the smart power amplifier or designed as part of the smart power amplifier. Those skilled in the art can understand that the processor 130 can be one or multiple.
  • the processors can be integrated on one chip or on different chips, and they can work together through a well-known parallel processing architecture.
  • Memory 140 can include read only memory and random access memory and provides instructions and data to processor 130. A portion of the memory may also include a non-volatile random access memory.
  • the communication bus 150 may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. But for the sake of clarity, all the buses are marked as pass in the figure. Letter bus 150.
  • the electronic device provided in FIG. 1 can perform the method/step shown in FIG. 2, and the detailed description process is shown in FIG. 2.
  • FIG. 2 is a flowchart of a method for adjusting volume according to an embodiment of the present invention.
  • the execution body of the method 200 may be the electronic device 100 shown in FIG. 1, and the method 200 may include the following steps:
  • the detection mechanism provided by the smart power amplifier can be used to detect the state of each speaker (Speaker), and obtain the spectrum of feedback from each speaker, and the spectrum can include the volume of the speaker playback volume, and more specifically, can
  • the current value and voltage value of the audio feedback played by each speaker are obtained by the two monitoring circuits of current (I) and voltage (V) in the existing SmartPA. It should be noted that there is no need to pass the microphone recording detection.
  • SmartPA obtains the current value and voltage value of each speaker in real time, and determines the frequency resonant point and volume amplitude value of the corresponding Speaker through a preset built-in algorithm. In the present invention, we abbreviate the frequency resonance point as F0. .
  • the built-in algorithm in the embodiment of the present invention may be an algorithm provided by different providers, and the frequency resonance point and the volume amplitude value of the speaker may be calculated according to the obtained current value and voltage value of the speaker.
  • the state of the speaker may include a state in which the speaker is blocked or blocked by the object, a state of normal use or no use.
  • the electronic device can compare the frequency resonance point F0 of the speaker used with the frequency resonance point of each speaker of the preset value, when the frequency resonance point F0 of the speaker exceeds the preset condition range of the preset frequency resonance point, that is, When the frequency resonance point F0 of the speaker exceeds the preset frequency and the fluctuation of the whole point exceeds a certain range, it is determined that the speaker is blocked or blocked by the foreign object.
  • the first state indicates a state in which the speaker is blocked or blocked by the foreign object.
  • the blocked speakers may be one, two or more, that is, the first speaker may be one, two or more of the at least two speakers.
  • the electronic device can adjust the volume of the blocked speaker according to the volume amplitude value of the blocked speaker, or according to the volume amplitude value of the blocked speaker and other volume amplitude values of one or two or more speakers that are not blocked. Adjust the volume of the speaker. For example, you can turn up the volume of the occluded or blocked speaker so that the volume that the adjusted user hears is balanced.
  • step S220 and step S230 may be specifically performed by a dedicated processor or a processor (usually a DSP) provided by the Smart PA, or Executed by the CPU. These steps may all be performed by one processor or separately by different processors.
  • determining the frequency resonance point and volume amplitude value of each speaker is performed by a dedicated processor or a processor that is included with the Smart PA, and steps S220 and S230 are performed by the CPU; or, determining the frequency resonance point of each speaker and The volume amplitude value and step S220 are both performed by a dedicated processor or a processor that is included with the Smart PA, and step S230 is performed by the CPU; or determining the frequency resonance point and the volume amplitude value of each speaker, step S220 and step S230 are performed by A dedicated processor or a processor (usually a DSP) that comes with the Smart PA is executed; or the frequency resonance point and volume amplitude value of each speaker are determined, and step S220 and step S230 are all executed by the CPU.
  • a dedicated processor or a processor usually a DSP
  • the method for adjusting the volume determines whether each speaker is in a blocked state by detecting the state of at least two speakers currently activated, when one or two of the at least two speakers When the plurality of speakers are in a blocked state, respectively adjust the volume of the speaker so that the volume of at least two speakers is in an equilibrium state, achieving at least two The speaker volume is adjusted separately to improve the user experience.
  • the method 200 may further include:
  • the state in which the previous speaker is blocked or blocked and the volume adjustment mode of the adjusted occluded or blocked speaker can be stored, and when the SmartPA detects that the speaker is blocked or blocked In the state of the speaker, it is possible to check whether the volume adjustment mode of each speaker is the same as the state mode in which the current speaker is blocked by the SmartPA in the stored adjustment mode, so as to adjust the respective speakers directly according to the stored adjustment mode. volume.
  • the stored adjustment mode may include a state used by each speaker, whether each speaker is in an occluded or blocked state, and the adjustment is blocked or blocked by the speaker. After the volume (all values related to the volume adjustment).
  • the adjustment time can be saved at the same time, the power consumption is reduced, and the user experience is further improved.
  • the method 200 may further include:
  • the electronic device determines the volume of the adjusted one, two or more occluded or blocked speakers, and more specifically, the adjusted blocked speaker.
  • the volume amplitude value is compared with the volume amplitude value of the unoccluded or blocked speaker to determine whether the adjusted volume amplitude value of the occluded or blocked speaker is consistent with the volume amplitude value of the unoccluded or blocked speaker If they are consistent, then at least two of the adjusted The volume of the sound is balanced, and the volume of the speaker that the user hears is balanced.
  • the difference between the volume amplitude value of the adjusted occluded or blocked speaker and the volume amplitude value of the unblocked or blocked speaker may be allowed to be within a certain range. If the difference is within the preset range, the volume of the adjusted at least two speakers is considered to be equal. However, in the embodiment of the present invention, no limitation is imposed on this.
  • each speaker needs to set a maximum volume when actually setting the volume of the speaker.
  • the speaker can determine the volume of the speaker according to the speaker's own settings and the volume of the user's adjusted volume and audio data.
  • the volume amplitude value of the adjusted occluded or blocked speaker is inconsistent with the unobstructed or blocked volume amplitude value, it is determined whether the volume of each adjusted speaker is adjusted to be played.
  • the maximum value of the volume is determined to adjust whether the occluded or blocked speaker can adjust the volume of at least two speakers to volume equalization.
  • the volume of the occluded or blocked speaker that is adjusted is not adjusted to the maximum value of the volume, it is also possible to adjust the occluded or blocked speaker to balance the volume of at least two speakers, and then continue to adjust the occlusion or blockage.
  • the volume of the speaker that is live, and the volume amplitude values of at least two speakers after the adjustment is re-executed are consistent.
  • the method 200 may further include:
  • the sound of the speaker that is not blocked or blocked can be adjusted.
  • the amount for example, is turned down to achieve at least two speaker volume equalization.
  • the method 200 may further include:
  • the method 300 may further include:
  • the second state is a normal use state.
  • a state before the current normal use state has one or more speakers in a state of being blocked or blocked by the foreign object.
  • Real-time monitoring of at least two speaker states continues while at least two speakers are also in normal use before the currently active state.
  • S293 Restore at least two speakers to an initial state when at least two speakers are in a first state before being in the second state.
  • the method for adjusting the volume provided by the embodiment of the present invention passes at least two of the currently activated
  • the state of each speaker is detected to determine whether each speaker is in a blocked state, and when one, two or more of the at least two speakers are in a blocked state, the volume of the speaker is separately adjusted.
  • the volume of at least two speakers is equalized, and the respective volume adjustments of at least two speakers are realized, which improves the user experience.
  • the volume adjustment is performed through the stored adjustment mode, which saves adjustment time, reduces power consumption, and further improves the user experience.
  • the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • FIG. 4 is a schematic diagram of an apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus 300 may include a determining unit 310 and an adjusting unit 320.
  • a determining unit 310 configured to detect at least two speakers, determining a frequency resonance point and a volume amplitude value of each speaker;
  • the determining unit 310 is further configured to determine a state of each speaker according to a frequency resonance point of each speaker;
  • the adjusting unit 320 is configured to adjust the volume of the first speaker according to the volume amplitude value of the at least two speakers when the first speaker of the at least two speakers is in the first state.
  • the state of each speaker is detected by the detection mechanism in the SmartPA, and a feedback signal of the volume used by the speaker to play the audio is obtained, and the signal includes the current value and voltage fed back by the speaker.
  • Value, according to the feedback signal, the frequency resonance point and the volume amplitude value of each speaker are obtained through a built-in algorithm; according to the frequency resonance point of each speaker, it is determined whether the corresponding speaker is in a state of being blocked or blocked by the foreign object (first state)
  • the volume amplitude value adjusts its volume so that the volume of the adjusted multiple speakers is equalized.
  • the determining unit 310 and the adjusting unit 320 may be implemented by a dedicated processor or a processor (usually a DSP) provided by the Smart PA, or may be implemented by a CPU.
  • the determining unit 310 may be implemented by one processor or separately by different processors.
  • the function of determining the frequency resonance point and the volume amplitude value of each speaker is implemented by a dedicated processor or a processor equipped with the Smart PA.
  • determining the state of each speaker according to the frequency resonance point of each speaker is implemented by the CPU; or the function of determining the frequency resonance point and the volume amplitude value of each speaker is implemented by the CPU, and each frequency resonance point is determined according to each speaker.
  • the status of the speakers is implemented by a dedicated processor or a processor that comes with the Smart PA.
  • the adjustment unit 310 can be implemented by one processor or by different processors.
  • the adjustment unit 320 may be implemented by a dedicated processor or a processor that is included in the Smart PA, or may be implemented by a CPU. It can be understood by those skilled in the art that the determining unit 310 and the adjusting unit 320 can be implemented by the same processor, or can be implemented by different processors, which is not limited by the embodiment of the present invention.
  • the volume of the plurality of speakers is balanced, and the volume amplitude value adjusted according to the occluded or blocked speaker is compared with the volume amplitude value of the unblocked speaker, and the difference between the volume amplitude values is When the preset range is within, the volume of multiple speakers is considered to be equal.
  • the apparatus for adjusting the volume determines whether each speaker is in a blocked state by detecting the state of at least two speakers currently activated, when one or two of the at least two speakers When the plurality of speakers are in the blocked state, the volume of the speaker is separately adjusted, so that the volume of at least two speakers is in an equalized state, and the volume adjustment of at least two speakers is separately adjusted, thereby improving the user experience.
  • the apparatus 300 may further include a query unit 330.
  • the query unit 330 is configured to search, in the stored adjustment mode, whether there is an adjustment mode that is the same as the current at least one speaker is in the first state;
  • the adjusting unit 320 is further configured to adjust the volume of the at least one speaker by using the stored adjustment mode when there is an adjustment mode in the stored adjustment mode that is the same as the current at least one speaker is in the first state.
  • the query unit 330 searches for the current foreign object from the stored adjustment mode.
  • the mode of the occluded or blocked speaker has the same mode of adjustment.
  • the volume of the speaker is adjusted according to the volume of each speaker in the adjustment mode to reduce the time for adjusting the volume of the speaker, and the work is reduced. Consumption, improve the user experience.
  • the determining unit 310 is further configured to:
  • the volume of the first speaker is not adjusted to the maximum value, the volume of the first speaker is continuously adjusted, and it is determined whether the adjusted volume amplitude values of at least two speakers are consistent.
  • the apparatus 300 may further include a recording unit 340, configured to record the first time when the volume amplitude values of the adjusted at least two speakers are the same. The first state of the speaker and the volume of each speaker after the volume adjustment of at least two speakers.
  • the adjusting unit 320 is further configured to: when the volume of the first speaker is adjusted to a maximum value, adjust a volume of the speaker other than the first speaker in the first state, and It is determined whether the adjusted volume amplitude values of at least two speakers are consistent.
  • each unit in the apparatus 300 shown in FIG. 4 can implement the various methods/steps in FIG. 2 and FIG. 3, and the apparatus provided in FIG. 4 can implement FIG. 2 through the electronic device 100 provided in FIG.
  • the method 200 shown in FIG. 3 is for brevity and will not be described here.
  • the device for adjusting the volume by using at least two currently activated
  • the state of the speaker is detected to determine whether each speaker is in a blocked state, and when one or more of the at least two speakers are in a blocked state, respectively adjust the volume of the speaker to at least two
  • the volume of the speaker is in an equalized state, which enables the adjustment of the volume of at least two speakers to improve the user experience.
  • the volume adjustment is performed through the stored adjustment mode, which saves adjustment time, reduces power consumption, and further improves the user experience.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical or other form connection.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, can be stored in a computer readable storage medium.
  • the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method of various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or a light.
  • a medium such as a disk that can store program code.

Abstract

本发明涉及一种音量调整的方法和装置,该方法包括:对至少两个扬声器进行检测,确定每个扬声器的频率谐振点和音量振幅值;根据每个扬声器的频率谐振点确定每个扬声器的状态;当至少两个扬声器中的第一扬声器处于第一状态时,根据至少两个扬声器的所述音量振幅值,调整第一扬声器的音量。通过本发明提供的音量调整的方法,通过对当前启动的至少两个扬声器的状态进行检测,确定每个扬声器的是否处于被堵住的状态,当至少两个扬声器中的一个或多个扬声器被处于被堵住的状态时,分别调整扬声器的音量,使至少两个扬声器的音量处于均衡状态,实现了至少两个扬声器音量的分别调整,提高了用户体验。

Description

音量调整的方法、装置和电子设备 技术领域
本发明涉及支持音频的终端领域,尤其涉及一种音量调整的方法、装置和电子设备。
背景技术
随着智能手机配置越来越高和用户体验需求的增长,手机上使用的扬声器(Speaker)采用智能扬声器(SmartPA)的外部编解码器(Codec)模式,用于在通过扬声器播放立体声源时,可以提供给用户立体声的听觉,达到一个立体播放效果,而且可以达到更大音量的输出以及更好的保护元器件的效果。
而目前,在应用市场上的大多数手机只采用一个扬声器,调整扬声器的音量时可以直接进行音量大小的调整,而设计的少部分双扬声器手机也采用了单扬声器的设计方法,即同步控制两个扬声器的音量,但现有的单扬声器的设计方法,会由于用户的使用方式,例如堵住一个扬声器,造成双扬声器间的音量差别显著,用户体验差。
发明内容
本发明提供了一种音量调整的方法、装置和电子设备,以实现多个扬声器音量的分别调整,提高用户体验。
第一方面,本发明实施例提供了一种音量调整的方法,该方法包括:
对至少两个扬声器进行检测,确定每个扬声器的频率谐振点和音量振幅值;根据每个扬声器的频率谐振点确定每个扬声器的状态,该状态可以包括正常使用状态,被外物遮挡或堵住状态;当至少两个扬声器中的第一 (可以为一个、两个或者多个)扬声器处于第一状态,即被外物遮挡或堵住状态时,根据至少两个扬声器的音量振幅值,调整第一扬声器的音量。
通过对当前启动的多个扬声器的状态进行检测,确定扬声器的是否处于被堵住的状态,当多个扬声器中的一个或多个扬声器被处于被堵住的状态时,调整被堵住的扬声器的音量,使多个扬声器的音量处于均衡状态,实现了多个扬声器音量的分别调整,提高了用户体验。
结合第一方面,在第一方面的第一种可能实现的方式中,根据至少一个扬声器的音量振幅值,调整至少一个扬声器的音量,该方法包括:
使用已存储的调整模式中与第一扬声器处于第一状态相同的调整模式调整第一扬声器的音量。
需要说明的是,在一个设计方案中,该方法可以包括:先在已存储的调整模式中查找是否存在与当前第一扬声器处于第一状态相同的调整模式;当已存储的调整模式中存在与当前第一扬声器处于第一状态相同的调整模式时,利用调整模式存储的状态对第一扬声器的音量进行调整。
通过该实现方式,通过从已存储的调整模式中查询与当前多个扬声器处于被外物遮挡或者堵住的状态相同的各个扬声器的音量,调整被遮挡或堵住的扬声器的音量,可以减少调整扬声器音量的时间,减少功耗,进一步提高用户体验。
结合第一方面或第一方面的第一方面的第一种可能实现的方式,在第一方面的第二种可能实现的方式中,对多个扬声器进行检测,确定每个扬声器的频率谐振点和音量振幅值,包括:
检测每个扬声器的电流值和电压值;根据每个扬声器的电流值和电压值,确定每个扬声器的频率谐振点和音量振幅值。
结合第一方面或第一方面的第一种可能实现的方式,在第一方面的第三种可能实现的方式中,根据每个扬声器的频率谐振点确定每个扬声器的状态,包括:
根据每个扬声器的频率谐振点和预设置的频率谐振点确定每个扬声器的状态。
结合第一方面或第一方面的第一种可能实现的方式,在第一方面的第四种可能实现的方式中,根据至少两个扬声器的音量振幅值,调整第一扬声器的音量,包括:
根据第一扬声器的音量振幅值和除处于第一状态的第一扬声器之外的其他扬声器的音量振幅值,调整第一扬声器的音量。
结合第一方面,在第一方面的第五种可能实现的方式中,在根据至少两个扬声器的音量振幅值,调整第一扬声器的音量之后,方法还包括:
确定调整后的至少两个扬声器的音量振幅值是否一致;
当调整后的至少两个扬声器的音量振幅值不一致时,确定第一扬声器的音量是否调整到最大值;
当第一个扬声器的音量未调整到最大值时,继续调整第一个扬声器的音量,并确定调整后的至少两个扬声器的音量振幅值是否一致。
结合第一方面的第五种可能实现的方式,在第一方面的第六种可能实现的方式中,该方法还包括:
当调整后的至少两个扬声器的音量振幅值一致时,记录本次第一扬声器的第一状态以及至少两个扬声器音量调整后的各扬声器的音量。
结合第一方面第五种可能实现的方式或第一方面的第六种可能实现的方式,在第一方面的第七种可能实现的方式中,该方法还包括:
当第一扬声器的音量调整到最大值时,调整除处于第一状态的第一扬声器之外的其他扬声器的音量,并确定调整后的至少两个扬声器的音量振幅值是否一致。
第二方面,本发明提供了一种音量调整的装置,该装置包括:确定单元和调整单元;
确定单元,用于对至少两个扬声器进行检测,确定每个扬声器的频率谐振点和音量振幅值;根据每个扬声器的频率谐振点确定每个扬声器的状态,该状态包括正常使用状态和被外物遮挡或堵住状态;
调整单元,用于当至少两个扬声器中的第一(可以为一个、两个或者多个)扬声器处于第一状态,即被外物遮挡或堵住状态时,根据至少两个扬声器的音量振幅值,调整第一扬声器的音量。
基于提供的音量调整的装置,通过对当前启动的多个扬声器的状态进行检测,确定扬声器的是否处于被堵住的状态,当多个扬声器中的一个或多个扬声器被处于被堵住的状态时,调整被堵住的扬声器的音量,使多个扬声器的音量处于均衡状态,实现了多个扬声器音量的分别调整,提高了用户体验。
结合第二方面,在第二方面的第一种可能实现的方式中,装置还可以包括:
调整单元,还用于使用已存储的调整模式中与第一扬声器处于第一状态相同的调整模式调整第一扬声器的音量。
在一个设计方案中,该装置还可以包括查询单元,用于在已存储的调整模式中查找是否存在与当前至少一个扬声器处于第一状态相同的调整模式;当已存储的调整模式中存在与当前至少一个扬声器处于第一状态相同的调整模式时,调整单元利用已存储的调整模式对第一扬声器的音量进行调整。
通过该实现方式,通过从已存储的调整模式中查询与当前多个扬声器处于被外物遮挡或者堵住的状态相同的各个扬声器的音量,调整被遮挡或堵住的扬声器的音量,可以减少调整扬声器音量的时间,减少功耗,进一步提高用户体验。
结合第二方面或第二方面的第一方面的第一种可能实现的方式,在第二方面的第二种可能实现的方式中,确定单元具体包括:
检测每个扬声器的电流值和电压值;根据每个扬声器的电流值和电压值,确定每个扬声器的频率谐振点和音量振幅值。
结合第二方面或第二方面的第一种可能实现的方式,在第二方面的第三种可能实现的方式中,确定单元具体包括:
根据每个扬声器的频率谐振点和预设置的频率谐振点确定每个扬声器的状态。
结合第二方面或第二方面的第一种可能实现的方式,在第二方面的第四种可能实现的方式中,调整单元具体包括:
根据第一扬声器的音量振幅值和除处于第一状态的第一扬声器之外的其他扬声器的音量振幅值,调整第一扬声器的音量。
结合第二方面,在第二方面的第五种可能实现的方式中,确定单元还用于,
确定调整后的至少两个扬声器的音量振幅值是否一致;
当调整后的至少两个扬声器的音量振幅值不一致时,确定第一扬声器的音量是否调整到最大值;
当第一扬声器的音量未调整到最大值时,继续调整第一扬声器的音量,并确定调整后的至少两个扬声器的音量振幅值是否一致。
结合第二方面的第五种可能实现的方式,在第二方面的第六种可能实现的方式中,装置还包括记录单元,用于当调整后的至少两个扬声器的音量振幅值一致时,记录本次第一扬声器的第一状态以及至少两个扬声器音量调整后的每个扬声器的音量。
结合第二方面第五种可能实现的方式或第二方面的第六种可能实现的方式,在第二方面的第七种可能实现的方式中,调整单元还用于,当第一扬声器的音量调整到最大值时,调整除处于第一状态的第一扬声器之外的其他扬声器的音量,并确定调整后的至少两个扬声器的音量振幅值是否一致。
第三方面,本发明实施例提供了一种电子设备,该电子设备包括至少两个扬声器、智能功率放大器(SmartPA)和处理器。
智能功率放大器,用于对至少两个扬声器的进行检测;
处理器,用于根据智能功率放大器的检测结果,确定每个扬声器的频率谐振点和音量振幅值;
根据每个扬声器的频率谐振点确定每个扬声器的状态;
当至少两个扬声器中的第一扬声器处于第一状态时,根据至少两个扬声器的所述音量振幅值,调整第一扬声器的音量。
通过对当前启动的多个扬声器的状态进行检测,确定扬声器的是否处于被堵住的状态,当多个扬声器中的一个或多个扬声器被处于被堵住的状态时,调整被堵住的扬声器的音量,使多个扬声器的音量处于均衡状态,实现了多个扬声器音量的分别调整,提高了用户体验。
第三方面提供的电子设备与第一方面提供的音量调整的方法、第二方面提供的音量调整装置基于同一发明构思,所以第三方面提供的电子设备可以完成第一方面和第一方面中任一可能实现方式,以及第二方面以及第二方面中任一可能实现方式,为简洁描述,在这里不再赘述。
基于本发明提供的音量调整的方法、装置和电子设备,通过对当前启动的多个扬声器的状态进行检测,确定扬声器的是否处于被堵住的状态,当多个扬声器中的一个或多个扬声器被处于被堵住的状态时,调整被堵住的扬声器的音量,使至少两个扬声器的音量处于均衡状态,实现了多个扬声器音量的分别调整,提高了用户体验,通过已存储的调整模式进行音量的调整,节省了调整的时间,减少了功耗,且进一步提高用户体验。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中 所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的一种装置结构示意图;
图2是本发明实施例提供的一种音量调整的方法流程图;
图3是本发明实施例提供的另一种音量调整的方法流程图;
图4是本发明实施例提供的一种装置结构示意图。
具体实施方式
本发明提供的音量调整的方法、装置和电子装置,适用于终端或者系统中存在至少两个扬声器(Speaker)的场景中。该终端可以为手机、平板电脑等。
在对终端或者系统的实际应用中,当使用方式不恰当时,例如其他物体遮挡住其中的一个或多个扬声器,会导致正在使用的至少两个扬声器的音量差异比较大,造成用户听到的音量的差异比较大,致使用户的体验差,为了提高用户体验,本发明实施例提供的音量调整的方法和装置,通过定时检测多个扬声器状态,根据至少两个扬声器的状态,例如某个扬声器的扩音出口被外物遮挡或堵住,分别调整至少两个个扬声器的音量,使用户通过扬声器听到的音量时均衡的,提高了用户体验。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。
图1为本发明实施例提供的一种电子设备的结构示意图。如图1所示,该电子设备100可以包括至少两个扬声器110、检测电路120、处理器130、存储器140和通信总线150。至少两个扬声器110、检测电路120、处理器130 和存储器140通过通信总线150连接,以完成通信。
检测电路120用于对至少两个扬声器的状态信号进行检测,并获至少两个扬声器反馈的音频信号。存储器140用于存储指令和数据。处理器130用于调用指令,根据智能功率放大器120检测的至少两个扬声器的状态信号,处理器130确定至少两个扬声器的状态。当至少两个扬声器中的一个、两个或者多个扬声器处于第一状态时,该第一状态是指扬声器被外物遮挡或堵住状态,处理器130可以根据至少两个扬声器的音量振幅值对处于第一状态的扬声器的音量进行调整,以实现至少两个扬声器音量处于均衡状态。
在一些实施例中,检测电路120具体为智能功率放大器(Smart Power Amplifier,Smart PA),所述智能功率放大器中可以包括电流(I)和电压(V)两个监控电路,对至少两个扬声器的状态进行检测。
在本发明实施例中,处理器130可以是中央处理单元(Central Processing Unit,CPU),该处理器130还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。在一些实施例中,处理器130可以和所述智能功率放大器集成在同一芯片上,或者被设计为所述智能功率放大器的一部分。本领域技术人员可以理解,处理器130可以是一个也可以是复数个,这些处理器可以都集成在一个芯片上,也可以分别位于不同的芯片上,它们可以通过公知的并行处理架构协同工作。
存储器140可以包括只读存储器和随机存取存储器,并向处理器130提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器。
通信总线150可以除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为通 信总线150。
图1提供的电子设备可以完成图2的所示的方法/步骤,具体描述过程参见图2。
图2为本发明实施例提供的一种音量调整的方法流程图。如图2所示,该方法200的执行主体可以为图1所示的电子设备100,该方法200可以包括以下步骤:
S210,对至少两个扬声器进行检测,确定每个扬声器的频率谐振点和音量振幅值。
具体的,可以利用智能功率放大器(SmartPA)提供的检测机制,检测每个扬声器(Speaker)的状态,获取每个扬声器反馈的频谱,该频谱可以包括扬声器播放音量的大小,更具体的说,可以通过现有SmartPA中的电流(I)和电压(V)两个监控电路来获取每个扬声器播放音频反馈的电流值和电压值,需要说明的是,无需通过麦克风录音检测。SmartPA实时获取每个扬声器的电流值和电压值,并通过预设置的内置算法确定对应Speaker的频率谐振点(frequency resonant point)和音量振幅值,在本发明中,我们将频率谐振点简写为F0。
需要说明的是,在本发明实施例中的内置算法可以为不同提供商提供的算法,可以根据获取到的扬声器的电流值和电压值进行计算得到扬声器的频率谐振点和音量振幅值。
S220,根据每个扬声器的频率谐振点确定每个扬声器的状态。
在本发明实施例中,扬声器的状态可以包括扬声器被物遮挡或者堵住的状态,正常使用或者未使用等状态。
电子设备可以根据使用的扬声器的频率谐振点F0与预设值的每个扬声器的频率谐振点进行比较,当扬声器的频率谐振点F0的超出预设频率谐振点的预设条件范围时,也就是扬声器的频率谐振点F0相对预设频率写整点的波动超出一定的范围时,确定扬声器被外物遮挡或堵住。
S230,当至少两个扬声器中的第一扬声器处于第一状态时,根据至少两个扬声器的音量振幅值,调整第一扬声器的音量。
具体的,在本发明的一些实施例中,第一状态表示扬声器被外物遮挡或者堵住的状态。被堵住的扬声器可以为一个、两个或者多个,即第一扬声器可以为至少两个扬声器中的一个、两个或者多个。电子设备可以根据被堵住的扬声器的音量振幅值调整被堵住扬声器的音量,或者根据被堵住的扬声器的音量振幅值和其他未堵住的一个、两个或多个扬声器的音量振幅值调整扬声器的音量,例如,可以将被遮挡或堵住的扬声器的音量调大,以使调整后的用户听到的音量大小是均衡的。
在一些实施例中,确定每个扬声器的频率谐振点和音量振幅值、步骤S220和步骤S230具体可以由专门的处理器或者Smart PA自带的处理器(通常是一个DSP)来执行,也可以由CPU执行。这些步骤可以都由一个处理器执行,也可以分别由不同的处理器执行。例如,确定每个扬声器的频率谐振点和音量振幅值由专门的处理器或者Smart PA自带的处理器执行,而步骤S220和步骤S230由CPU执行;或者,确定每个扬声器的频率谐振点和音量振幅值以及步骤S220都由专门的处理器或者Smart PA自带的处理器执行,而步骤S230由CPU执行;或者确定每个扬声器的频率谐振点和音量振幅值、步骤S220和步骤S230都由专门的处理器或者Smart PA自带的处理器(通常是一个DSP)来执行;或者确定每个扬声器的频率谐振点和音量振幅值、步骤S220和步骤S230都由CPU执行。本领域技术人员可以理解以上实施方式仅为举例,本领域技术人员可以采用其他组合方式来实现上述步骤。
通过本发明实施例提供的音量调整的方法,通过对当前启动的至少两个扬声器的状态进行检测,确定每个扬声器的是否处于被堵住的状态,当至少两个扬声器中的一个、两个或多个扬声器被处于被堵住的状态时,分别调整扬声器的音量,使至少两个扬声器的音量处于均衡状态,实现了至少两个 扬声器音量的分别调整,提高了用户体验。
可选地,作为本发明另一实施例,如图4所示,在根据至少两个扬声器的音量振幅值,调整第一扬声器的音量之前,方法200还可以包括:
S240,在已存储的调整模式中查找是否存在与当前第一扬声器处于第一状态相同的调整模式。
S250,当已存储的调整模式中存在与当前第一扬声器处于第一状态相同的调整模式时,使用已存储的调整模式调整第一扬声器的音量。
具体的,在本发明实施例中,可以把之前扬声器被遮挡或堵住的状态以及调整的被遮挡或堵住的各个扬声器的音量调整模式存储起来,当SmartPA检测到扬声器处于被遮挡或堵住的状态时,可以通过查询已存储的调整模式中是否存在与SmartPA检测到的当前扬声器被堵住的状态模式相同的各扬声器的音量调整模式,以便于直接根据已存储的调整模式调整各扬声器的音量。
需要说明的是,在本发明实施例中,已存储的调整模式中,可以包括每个扬声器使用的状态,每个扬声器是否处于被遮挡或堵住的状态,以及调整被遮挡或堵住扬声器调整后的音量(与音量调整有关的所有数值)。
通过本本实施例可以同时节省调整的时间,减少了功耗,进一步提高用户体验。
可选地,作为本发明另一实施例,如图3所示,在根据至少两个扬声器的音量振幅值,调整第一扬声器的音量之后,方法200还可以包括:
S260,确定调整后的至少两个扬声器的音量振幅值是否一致。
具体的,在本发明实施例中,电子设备对调整后的一个、两个或多个被遮挡或堵住的扬声器的音量进行判断,更具体的说,可以通过调整后的被堵住的扬声器的音量振幅值和未被遮挡或堵住的扬声器的音量振幅值进行对比,确定调整后的被遮挡或堵住的扬声器的音量振幅值是否与未被遮挡或堵住的扬声器的音量振幅值一致,如果一致,则调整后的至少两个扬 声器的音量均衡,用户听到的扬声器的音量均衡。
需要说明的是,在本发明实施例中,可以允许调整后的被遮挡或堵住的扬声器的音量振幅值与未被遮挡或堵住的扬声器的音量振幅值的差值在一定的范围内时,如果其差值在预设的范围内时,认为调整后的至少两个扬声器的音量均衡。但在本发明实施例中,对此不作任何限制。
S270,当调整后的至少两个扬声器的音量振幅值不一致时,确定第一扬声器的音量是否调整到最大值。
具体的,在实际设计扬声器的音量时,每个扬声器都需要设置一个最大的音量。扬声器在播放视频、音频等音频数据时,可以根据扬声器自身设置以及用户调整的音量和音频数据的音量确定扬声器的音量。
在本发明实施例中,对调整后的被遮挡或堵住的扬声器的音量振幅值与未被遮挡或堵住的音量振幅值不一致时,确定每个被调整的扬声器的音量是否调整到所播放的音量的最大值,以确定调整被遮挡或被堵住的扬声器是否可以将至少两个扬声器的音量调整至音量均衡。
S280,当第一扬声器的音量未调整到最大值时,继续调整第一扬声器的音量,并确定调整后的至少两个扬声器的音量振幅值是否一致。
在确定被调整的被遮挡或堵住的扬声器的音量未调整到音量最大值时,说明还可以通过调整被遮挡或堵住的扬声器致使至少两个扬声器的音量均衡,则继续调整被遮挡或堵住的扬声器的音量,并在调整后重新执行调整后的至少两个扬声器的音量振幅值是否一致。
可选地,作为本发明另一实施例,如图3所示,该方法200还可以包括:
S290,当第一扬声器的音量调整到最大值时,调整除处于第一状态的第一扬声器之外的其他扬声器的音量,并确定调整后的至少两个扬声器的音量振幅值是否一致。
具体的,在本发明实施例中,可以调整未被遮住或堵住的扬声器的音 量,例如,将音量调小,以实现至少两个扬声器音量均衡。
可选地,作为本发明另一实施例,如图3所示,该方法200还可以包括:
S291,当调整后的至少两个扬声器的音量振幅值一致时,记录本次第一扬声器的第一状态以及至少两个扬声器音量调整后的每个扬声器的音量。
在S260的判断中,当调整后的被遮挡或堵住的扬声器的音量振幅值与未被遮挡或堵住的扬声器的音量振幅值一致时,将记录当前被外物遮挡或堵住的至少一个扬声器的状态,以及被遮挡或堵住扬声器调整后的音量,以便于再次出现当前状态时,直接根据已记录的各个扬声器的状态以及调整后音量进行调整,提高用户体验。
可选地,作为本发明另一实施例,如图3所示,该方法300还可以包括:
S292,当至少两个扬声器处于第二状态时,确定至少两个扬声器在处于第二状态之前是否处于第一状态。
第二状态为正常使用状态。当使用的至少两个扬声器均处于正常使用状态时,判断在当前的正常使用状态之前的一个状态是否有一个或多个扬声器处于被外物遮挡或堵住的状态。
当至少两个扬声器在当前正常使用的状态之前也处于正常使用状态,则继续进行至少两个扬声器状态的实时监测。
S293,当至少两个扬声器在处于第二状态之前处于第一状态,还原至少两个扬声器至初始状态。
当至少两个扬声器在当前正常使用的状态之前有一个、两个或多个扬声器处于被外物遮挡或堵住的状态,则将至少两个扬声器的音量还原至该装置设置的最初状态,或者说,装置的出厂设置的音量。
通过本发明实施例提供的音量调整的方法,通过对当前启动的至少两 个扬声器的状态进行检测,确定每个扬声器的是否处于被堵住的状态,当至少两个扬声器中的一个、两个或多个扬声器被处于被堵住的状态时,分别调整扬声器的音量,使至少两个扬声器的音量处于均衡状态,实现了至少两个扬声器音量的分别调整,提高了用户体验。同时,通过已存储的调整模式进行音量的调整,节省了调整的时间,减少了功耗,且进一步提高用户体验。
应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。
上文中结合图2和图3,详细描述了根据本发明实施例的音量调整的方法,下面将结合图4,详细描述根据本发明实施例的装置。
图4为本发明实施例提供的一种装置。如图4所示,该装置300可以包括确定单元310、调整单元320。
确定单元310,用于对至少两个扬声器进行检测,确定每个扬声器的频率谐振点和音量振幅值;
确定单元310,还用于根据每个扬声器的频率谐振点确定每个扬声器的状态;
调整单元320,用于当至少两个扬声器中的第一扬声器处于第一状态时,根据至少两个扬声器的音量振幅值,调整第一扬声器的音量。
具体的,在本发明实施例中,通过SmartPA中的检测机制,对每个扬声器(Speaker)的状态进行检测,获取扬声器播放音频所使用音量的反馈信号,该信号包括扬声器反馈的电流值和电压值,根据反馈的信号通过内置的算法得到每个扬声器的频率谐振点和音量振幅值;根据每个扬声器的频率谐振点确定相应的扬声器是否处于被外物遮挡或堵住的状态(第一状态);当正在使用的至少两个扬声器中的一个扬声器、两个扬声器或者多个扬声器处于被外物遮挡或堵住的状态时,根据被遮挡或堵住的扬声器的 音量振幅值调整其音量,以使调整后的多个扬声器的音量处于均衡。
在一些实施例中,确定单元310和调整单元320具体可以由专门的处理器或者Smart PA自带的处理器(通常是一个DSP)来实现,也可以由CPU实现。确定单元310可以都由一个处理器实现,也可以分别由不同的处理器实现,例如确定每个扬声器的频率谐振点和音量振幅值的功能由专门的处理器或者Smart PA自带的处理器实现,而根据每个扬声器的频率谐振点确定每个扬声器的状态由CPU实现;或者确定每个扬声器的频率谐振点和音量振幅值的功能由CPU实现,而根据每个扬声器的频率谐振点确定每个扬声器的状态由专门的处理器或者Smart PA自带的处理器实现。调整单元310可以都由一个处理器实现,也可以分别由不同的处理器实现。在一些实施例中,调整单元320具体可以由专门的处理器或者Smart PA自带的处理器来实现,也可以由CPU实现。本领域技术人员可以理解,确定单元310和调整单元320可以由同一个处理器实现,也可以分别由不同处理器实现,本发明实施例对此不作限定。
需要说明的是,多个扬声器的音量处于均衡,根据被遮挡或堵住的扬声器调整后的音量振幅值与未被堵住的扬声器的音量振幅值进行对比,当其音量振幅值的差值在预设的范围内时,认为多个扬声器的音量均衡。
通过本发明实施例提供的音量调整的装置,通过对当前启动的至少两个扬声器的状态进行检测,确定每个扬声器的是否处于被堵住的状态,当至少两个扬声器中的一个、两个或多个扬声器被处于被堵住的状态时,分别调整扬声器的音量,使至少两个扬声器的音量处于均衡状态,实现了至少两个扬声器音量的分别调整,提高了用户体验。
优选地,作为本发明另一实施例,如图4所示,该装置300还可以包括查询单元330。
查询单元330,用于在已存储的调整模式中查找是否存在与当前至少一个扬声器处于第一状态相同的调整模式;
调整单元320,还用于当已存储的调整模式中存在与当前至少一个扬声器处于第一状态相同的调整模式时,使用已存储的调整模式调整至少一个扬声器的音量。
具体的,当确定单元310确定至少两个扬声器中的一个、两个或多个扬声器处于被外物遮挡或堵住的状态时,查询单元330从存储的调整模式中,查找与当前被外物遮挡或堵住的扬声器的状态的模式相同的调整模式,当存储有与当前模式相同的调整模式时,根据调整模式中各扬声器的音量调整扬声器的音量,以减少调整扬声器音量的时间,减少功耗,提高用户体验。
可选地,作为本发明另一实施例,确定单元310还用于,
确定调整后的至少两个扬声器的音量振幅值是否一致;
当调整后的至少两个个扬声器的音量振幅值不一致时,确定第一扬声器的音量是否调整到最大值;
当第一扬声器的音量未调整到最大值时,继续调整第一扬声器的音量,并确定调整后的至少两个扬声器的音量振幅值是否一致。
可选地,作为本发明另一实施例,如图4所示,该装置300还可以包括记录单元340,用于当调整后的至少两个扬声器的音量振幅值一致时,记录本次第一扬声器的第一状态以及至少两个扬声器音量调整后的每个扬声器的音量。
可选地,作为本发明另一实施例,调整单元320还用于,当第一扬声器的音量调整到最大值时,调整除处于第一状态的第一扬声器之外的其他扬声器的音量,并确定调整后的至少两个扬声器的音量振幅值是否一致。
需要说明的是,图4所示的装置300中的各个单元可以实现图2和图3中的各个方法/步骤,且图4提供的装置可以通过图1提供的电子设备100来实现图2和图3所示的方法200,为简洁描述,在这里就不再赘述。
基于本发明实施例提供的音量调整的装置,通过对当前启动的至少两个 扬声器的状态进行检测,确定每个扬声器的是否处于被堵住的状态,当至少两个扬声器中的一个或多个扬声器被处于被堵住的状态时,分别调整扬声器的音量,使至少两个扬声器的音量处于均衡状态,实现了至少两个扬声器音量的分别调整,提高了用户体验。同时,通过已存储的调整模式进行音量的调整,节省了调整的时间,减少了功耗,且进一步提高用户体验。
在本发明所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,该单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的或其它的形式连接。该作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例该方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光 盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。

Claims (27)

  1. 一种音量调整的方法,其特征在于,所述方法包括:
    对至少两个扬声器进行检测,确定每个所述扬声器的频率谐振点和音量振幅值;
    根据每个所述扬声器的所述频率谐振点确定每个所述扬声器的状态;
    当所述至少两个扬声器中的第一扬声器处于第一状态时,根据所述至少两个扬声器的所述音量振幅值,调整所述第一扬声器的音量。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述至少两个所述扬声器的所述音量振幅值,调整所述第一扬声器的音量,包括:
    使用已存储的调整模式中与所述第一扬声器处于第一状态相同的调整模式调整所述第一扬声器的音量。
  3. 根据权利要求1或2所述的方法,其特征在于,所述对多个扬声器进行检测,确定每个所述扬声器的频率谐振点和音量振幅值,包括:
    检测每个所述扬声器的电流值和电压值;
    根据每个所述扬声器的电流值和所述电压值,确定每个所述扬声器的所述频率谐振点和音量振幅值。
  4. 根据权利要求1或2所述的方法,其特征在于,所述根据每个所述扬声器的所述频率谐振点确定每个所述扬声器的状态,包括:
    根据所述每个所述扬声器的所述频率谐振点和预设置的频率谐振点确定每个所述扬声器的状态。
  5. 根据权利要求1或2所述的方法,其特征在于,所述根据所述至少两个扬声器的所述音量振幅值,调整所述第一扬声器的音量,包括:
    根据所述第一扬声器的所述音量振幅值和除处于第一状态的所述第一扬声器之外的其他扬声器的音量振幅值,调整所述第一扬声器的音量。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述第一状态为所述扬声器被外物遮挡或堵住的状态。
  7. 根据权利要求1所述的方法,其特征在于,在所述根据所述至少两个扬声器的所述音量振幅值,调整所述第一扬声器的音量之后,所述方法还包括:
    确定调整后的所述至少两个扬声器的音量振幅值是否一致;
    当调整后的所述至少两个扬声器的音量振幅值不一致时,确定所述第一扬声器的音量是否调整到最大值;
    当所述第一扬声器的音量未调整到最大值时,继续调整所述第一扬声器的音量,并确定调整后的所述至少两个扬声器的音量振幅值是否一致。
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:
    当调整后的所述至少两个扬声器的音量振幅值一致时,记录本次所述第一扬声器的第一状态以及所述至少两个扬声器音量调整后的每个扬声器的音量。
  9. 根据权利要求7或8所述的方法,其特征在于,所述方法还包括:
    当所述第一扬声器的音量调整到最大值时,调整除处于第一状态的所述第一扬声器之外的其他扬声器的音量,并确定调整后的所述至少两个扬声器的音量振幅值是否一致。
  10. 一种音量调整的装置,其特征在于,所述装置包括:
    确定单元,用于对至少两个扬声器进行检测,确定每个所述扬声器的频率谐振点和音量振幅值;
    所述确定单元,还用于根据每个所述扬声器的所述频率谐振点确定每个所述扬声器的状态;
    调整单元,用于当所述至少两个扬声器中的第一扬声器处于第一状态时,根据所述至少两个扬声器的所述音量振幅值,调整所述第一扬声器的音量。
  11. 根据权利要求10所述的方法装置,其特征在于,
    所述调整单元,还用于使用已存储的调整模式中与所述第一扬声器处 于第一状态相同的调整模式调整所述第一扬声器的音量。
  12. 根据权利要求10或11所述的装置,其特征在于,所述确定单元具体包括:
    检测每个所述扬声器的电流值和电压值;
    根据每个所述扬声器的电流值和所述电压值,确定每个所述扬声器的所述频率谐振点和音量振幅值。
  13. 根据权利要求10或11所述的装置,其特征在于,所述确定单元具体包括:
    根据所述每个所述扬声器的所述频率谐振点和预设置的频率谐振点确定每个所述扬声器的状态。
  14. 根据权利要求10或11所述的装置,其特征在于,所述调整单元具体包括:
    根据所述第一所述扬声器的所述音量振幅值和除处于第一状态的所述第一所述扬声器之外的其他扬声器的音量振幅值,调整所述第一扬声器的音量。
  15. 根据权利要求10-14任一项所述的装置,其特征在于,所述第一状态为所述扬声器被外物遮挡或堵住的状态。
  16. 根据权利要求10所述的装置,其特征在于,所述确定单元还用于,确定调整后的所述至少两个扬声器的音量振幅值是否一致;
    当调整后的所述至少两个扬声器的音量振幅值不一致时,确定所述第一扬声器的音量是否调整到最大值;
    当所述第一扬声器的音量未调整到最大值时,继续调整所述第一扬声器的音量,并确定调整后的所述至少两个扬声器的音量振幅值是否一致。
  17. 根据权利要求16所述的装置,其特征在于,所述装置还包括记录单元,用于当调整后的所述至少两个扬声器的音量振幅值一致时,记录本次所述第一扬声器的第一状态以及所述至少两个扬声器音量调整后的每个 扬声器的音量。
  18. 根据权利要求16或17所述的装置,其特征在于,所述调整单元还用于,当所述第一扬声器的音量调整到最大值时,调整除处于第一状态的所述第一扬声器之外的其他扬声器的音量,并确定调整后的所述至少两个扬声器的音量振幅值是否一致。
  19. 一种电子设备,其特征在于,所述电子设备包括:至少两个扬声器、检测电路、和至少一个处理器;
    所述检测电路,用于对至少两个扬声器进行检测;
    所述至少一个处理器,用于:
    根据所述检测电路检测的结果确定每个所述扬声器的频率谐振点和音量振幅值;
    根据每个所述扬声器的所述频率谐振点确定每个所述扬声器的状态;
    当所述至少两个扬声器中的第一扬声器处于第一状态时,根据所述至少两个扬声器的所述音量振幅值,调整所述第一扬声器的音量。
  20. 根据权利要求19所述的电子设备,其特征在于,所述电子设备还包括存储器,所述存储器存储所述至少两个扬声器的至少一种调整模式;
    所述根据所述至少两个所述扬声器的所述音量振幅值,调整所述第一扬声器的音量,包括:
    使用已存储的所述至少一种调整模式中与所述第一扬声器处于第一状态相同的调整模式调整所述第一扬声器的音量。
  21. 根据权利要求19或20所述的电子设备,其特征在于,
    所述检测电路具体用于检测每个所述扬声器的电流值和电压值;
    所述根据所述检测电路检测的结果确定每个所述扬声器的频率谐振点和音量振幅值,包括:
    根据每个所述扬声器的电流值和所述电压值,确定每个所述扬声器的所述频率谐振点和音量振幅值。
  22. 根据权利要求19或20所述的电子设备,其特征在于,所述根据每个所述扬声器的所述频率谐振点确定每个所述扬声器的状态,包括:
    根据所述每个所述扬声器的所述频率谐振点和预设置的频率谐振点确定每个所述扬声器的状态。
  23. 根据权利要求19或20所述的电子设备,其特征在于,所述根据所述至少两个扬声器的所述音量振幅值,调整所述第一扬声器的音量,包括:
    根据所述第一扬声器的所述音量振幅值和除处于第一状态的所述第一扬声器之外的其他扬声器的音量振幅值,调整所述第一扬声器的音量。
  24. 根据权利要求19-23任一项所述的电子设备,其特征在于,所述第一状态为所述扬声器被外物遮挡或堵住的状态。
  25. 根据权利要求19所述的电子设备,其特征在于,所述至少一个处理器还用于,
    确定调整后的所述至少两个扬声器的音量振幅值是否一致;
    当调整后的所述至少两个扬声器的音量振幅值不一致时,确定所述第一扬声器的音量是否调整到最大值;
    当所述第一扬声器的音量未调整到最大值时,继续调整所述第一扬声器的音量,并确定调整后的所述至少两个扬声器的音量振幅值是否一致。
  26. 根据权利要求25所述的电子设备,其特征在于,:
    所述存储器还用于当调整后的所述至少两个扬声器的音量振幅值一致时,记录本次所述第一扬声器的第一状态以及所述至少两个扬声器音量调整后的每个扬声器的音量。
  27. 根据权利要求25或26所述的电子设备,其特征在于,所述至少一个处理器还用于,
    当所述第一扬声器的音量调整到最大值时,调整除处于第一状态的所述第一扬声器之外的其他扬声器的音量,并确定调整后的所述至少两个扬 声器的音量振幅值是否一致。
PCT/CN2016/104259 2016-11-01 2016-11-01 音量调整的方法、装置和电子设备 WO2018081927A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2016/104259 WO2018081927A1 (zh) 2016-11-01 2016-11-01 音量调整的方法、装置和电子设备
CN201680074963.3A CN108432216B (zh) 2016-11-01 2016-11-01 音量调整的方法、装置和电子设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/104259 WO2018081927A1 (zh) 2016-11-01 2016-11-01 音量调整的方法、装置和电子设备

Publications (1)

Publication Number Publication Date
WO2018081927A1 true WO2018081927A1 (zh) 2018-05-11

Family

ID=62075368

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/104259 WO2018081927A1 (zh) 2016-11-01 2016-11-01 音量调整的方法、装置和电子设备

Country Status (2)

Country Link
CN (1) CN108432216B (zh)
WO (1) WO2018081927A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654800A (zh) * 2020-05-28 2020-09-11 维沃移动通信有限公司 扬声器控制方法、装置、电子设备及介质
CN113242503A (zh) * 2021-04-26 2021-08-10 猫岐智能科技(上海)有限公司 一种扬声器自检方法
CN113518287A (zh) * 2021-07-14 2021-10-19 歌尔光学科技有限公司 设备状态的调整方法、终端设备及计算机可读存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112965551A (zh) * 2021-01-29 2021-06-15 维沃移动通信有限公司 扬声器的发热控制方法和装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783823A (zh) * 2009-01-16 2010-07-21 冲电气工业株式会社 声音信号调整装置、程序和方法以及电话装置
CN104918176A (zh) * 2014-03-11 2015-09-16 索尼公司 音频信号处理设备和音频信号处理方法
CN105224280A (zh) * 2015-09-25 2016-01-06 联想(北京)有限公司 控制方法、装置及电子设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082844A (zh) * 2009-11-27 2011-06-01 英业达股份有限公司 手持式电子装置及其声音性质的调整方法
US9300266B2 (en) * 2013-02-12 2016-03-29 Qualcomm Incorporated Speaker equalization for mobile devices
CN103501375B (zh) * 2013-09-16 2017-04-19 华为终端有限公司 音效控制方法及装置
CN105812586B (zh) * 2016-06-01 2019-05-17 维沃移动通信有限公司 快速静音的方法及移动终端

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783823A (zh) * 2009-01-16 2010-07-21 冲电气工业株式会社 声音信号调整装置、程序和方法以及电话装置
CN104918176A (zh) * 2014-03-11 2015-09-16 索尼公司 音频信号处理设备和音频信号处理方法
CN105224280A (zh) * 2015-09-25 2016-01-06 联想(北京)有限公司 控制方法、装置及电子设备

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654800A (zh) * 2020-05-28 2020-09-11 维沃移动通信有限公司 扬声器控制方法、装置、电子设备及介质
CN111654800B (zh) * 2020-05-28 2021-09-17 维沃移动通信有限公司 扬声器控制方法、装置、电子设备及介质
CN113242503A (zh) * 2021-04-26 2021-08-10 猫岐智能科技(上海)有限公司 一种扬声器自检方法
CN113518287A (zh) * 2021-07-14 2021-10-19 歌尔光学科技有限公司 设备状态的调整方法、终端设备及计算机可读存储介质
CN113518287B (zh) * 2021-07-14 2023-04-25 歌尔科技有限公司 设备状态的调整方法、终端设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN108432216B (zh) 2020-07-24
CN108432216A (zh) 2018-08-21

Similar Documents

Publication Publication Date Title
WO2018081927A1 (zh) 音量调整的方法、装置和电子设备
WO2017215657A1 (zh) 音效处理方法及终端设备
CN110972014B (zh) 一种有源降噪耳机的参数调整方法、装置及无线耳机
US10284943B2 (en) Method and apparatus for adjusting sound field of an earphone and a terminal
WO2017215655A1 (zh) 音效处理方法及终端设备
WO2017166603A1 (zh) 一种音质调整方法、终端、电子设备及非易失性计算机存储介质
US20060147059A1 (en) Smart volume adjusting method for a multi-media system
WO2017032012A1 (zh) 一种音量调节方法及用户终端
WO2012151839A1 (zh) 自动调节音量大小的方法及装置
WO2015143896A1 (zh) 基于耳机插座的外接设备识别电路、方法、装置和系统
US20150348562A1 (en) Apparatus and method for improving an audio signal in the spectral domain
US11201598B2 (en) Volume adjusting method and mobile terminal
US20140248036A1 (en) Method, Apparatus, And Computer Program Product For Including Device Playback Preferences In Multimedia Metadata
US9166547B2 (en) Electronic device and method for adjusting volume levels of audio signal outputted by the electronic device
WO2020252973A1 (zh) 一种无线耳机降噪方法、系统及无线耳机和存储介质
TW201439895A (zh) 電子裝置及耳機感測方法
WO2020097824A1 (zh) 音频处理方法、装置、存储介质及电子设备
JP2019176477A (ja) ワイヤレススピーカの配置方法、ワイヤレススピーカ及び端末装置
CN107404587B (zh) 音频播放控制方法、音频播放控制装置及移动终端
US10405114B2 (en) Automated detection of an active audio output
CN103456334B (zh) 音频文件播放方法及播放装置
CN110491419B (zh) 一种播放控制方法、系统及终端设备
TWI522904B (zh) 電子裝置及用以校正電子裝置的耳機麥克風
TWM526238U (zh) 可依據使用者年齡調整等化器設定之電子裝置及聲音播放裝置
US20140205104A1 (en) Information processing apparatus, information processing method, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16920458

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16920458

Country of ref document: EP

Kind code of ref document: A1