WO2021104450A1 - 电子设备及其音量调节方法 - Google Patents

电子设备及其音量调节方法 Download PDF

Info

Publication number
WO2021104450A1
WO2021104450A1 PCT/CN2020/132219 CN2020132219W WO2021104450A1 WO 2021104450 A1 WO2021104450 A1 WO 2021104450A1 CN 2020132219 W CN2020132219 W CN 2020132219W WO 2021104450 A1 WO2021104450 A1 WO 2021104450A1
Authority
WO
WIPO (PCT)
Prior art keywords
capacitance
real
time
value
compensation value
Prior art date
Application number
PCT/CN2020/132219
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 维沃移动通信有限公司
Publication of WO2021104450A1 publication Critical patent/WO2021104450A1/zh

Links

Images

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

Definitions

  • the present invention relates to the field of electronic technology, in particular to an electronic device and a volume adjustment method thereof.
  • Electronic devices are usually equipped with speakers, and traditional electronic devices are equipped with dynamic speakers.
  • the screen of an electronic device equipped with a dynamic speaker needs to have a sound hole, which not only affects the appearance of the electronic device, but also increases the difficulty of waterproofing the electronic device.
  • the speakers equipped with electronic devices are replaced with piezoelectric ceramic speakers.
  • the ceramic speakers generate sound by pushing the housing of the electronic device, thereby avoiding opening a sound hole on the screen of the electronic device.
  • the resonance point of the electronic device reduces the vibration of the piezoelectric ceramic speaker, which causes the volume of the electronic device to decrease, thereby affecting the sound quality of the electronic device.
  • the embodiment of the present invention provides an electronic device and a volume adjustment method thereof, so as to solve the problem of a decrease in volume when a housing included in the electronic device is held by a human hand.
  • the present invention is implemented as follows:
  • an embodiment of the present invention provides an electronic device that includes a housing, a ceramic speaker, a capacitance detection component, a processor, and a driver;
  • the ceramic speaker is arranged in the housing, the ceramic speaker has an exciter, and the exciter is connected to the housing;
  • the capacitance detection component includes a first capacitance sheet, a second capacitance sheet and a detection chip.
  • the first capacitance sheet is arranged to be connected between the exciter and the housing, and the second capacitance sheet is connected to the exciter.
  • the detection chip is electrically connected to the first capacitor piece and the second capacitor piece, and the first capacitor piece and the second capacitor piece form a variable capacitor Unit, the capacitance value of the variable capacitance unit changes with the deformation of the housing, and the detection chip is used to obtain the real-time capacitance value of the variable capacitance unit;
  • the processor is electrically connected to the driver and the capacitance detection component, the driver is electrically connected to the exciter, and the processor controls the driver to adjust the output of the ceramic speaker according to the real-time capacitance value volume.
  • an embodiment of the present invention also provides a volume adjustment method of an electronic device, which is applied to any of the electronic devices described in the first aspect, and the volume adjustment method includes:
  • the driver is controlled to adjust the output volume of the ceramic speaker according to the real-time capacitance value.
  • the capacitance detection component includes a first capacitance sheet, a second capacitance sheet and a detection chip
  • the first capacitance sheet is arranged to connect between the exciter and the housing, and the second
  • the capacitor plate is connected to the side of the exciter away from the housing.
  • the detection chip is electrically connected to the first capacitor plate and the second capacitor plate.
  • the first capacitor plate and the second capacitor plate form a variable capacitor unit.
  • the capacitance value changes with the deformation of the casing.
  • the detection chip is used to obtain the real-time capacitance value of the variable capacitance unit.
  • the capacitance detection component can The change of the real-time capacitance value of the variable capacitance unit is detected at any time; and because the processor is electrically connected to the driver and the capacitance detection component, and the driver and the exciter are electrically connected, the processor can control the driver adjustment according to the real-time capacitance value
  • the output volume of the ceramic speaker prevents the volume of the ceramic speaker from being affected by the operator's hand holding or pressing.
  • Figure 1 shows a schematic structural diagram of an electronic device provided by an embodiment of the present invention
  • FIG. 2 shows a flowchart of a method for adjusting the volume of an electronic device according to an embodiment of the present invention
  • FIG. 3 shows a flowchart of another method for adjusting the volume of an electronic device according to an embodiment of the present invention
  • FIG. 4 shows a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention.
  • one embodiment or “an embodiment” mentioned throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present invention. Therefore, the appearances of "in one embodiment” or “in an embodiment” in various places throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner.
  • the first embodiment of the present invention provides an electronic device, which includes a housing 1, a ceramic speaker 2, a capacitance detection component 3, a processor 4, and a driver 5;
  • the ceramic speaker 2 is arranged in the housing 1, the ceramic speaker 2 has an exciter, and the exciter is connected to the housing 1;
  • the capacitance detection component 3 includes a first capacitance sheet 31, a second capacitance sheet 32, and a detection chip 33.
  • the first capacitance sheet 31 is arranged to connect between the exciter and the casing 1
  • the second capacitance sheet 32 is connected to the exciter away from the casing.
  • the capacitance detection component 3 is electrically connected to the first capacitance sheet 31 and the second capacitance sheet 32 respectively.
  • the first capacitance sheet 31 and the second capacitance sheet 32 form a variable capacitance unit, and the capacitance value of the variable capacitance unit varies with The deformation of the housing 1 changes, and the detection chip 33 is used to obtain the real-time capacitance value of the variable capacitance unit;
  • the processor 4 is electrically connected to the driver 5 and the capacitance detection component 3, and the driver 5 is electrically connected to the exciter.
  • the processor 4 controls the driver 5 to adjust the output volume of the ceramic speaker 2 according to the real-time capacitance value.
  • the electronic device relies on the vibration of the ceramic speaker 2 and the housing 1 to generate sound.
  • the exciter included in the ceramic speaker 2 may include a first piezoelectric ceramic sheet, a second piezoelectric ceramic sheet, and a metal sheet.
  • the first piezoelectric ceramic sheet and the second piezoelectric ceramic sheet are respectively bonded to both surfaces of the metal sheet.
  • the exciter bends upwards. Therefore, when an alternating voltage is applied to the exciter, it will vibrate up and down with the alternating voltage. The displacement is proportional to the amplitude of the input signal.
  • the vibration of the exciter drives the casing 1 to flow the surrounding air, thereby making sound.
  • the ceramic speaker 2 can be fixed between the battery plate and the middle frame bracket, the first capacitor plate 31 is arranged between the exciter and the housing 1, and the second capacitor plate 32 is connected far away from the exciter.
  • the detection chip 33 is electrically connected to the first capacitor plate 31 and the second capacitor plate 32, respectively.
  • the first capacitor plate 31 is arranged between the exciter and the housing 1, the first capacitor plate 31 and the surface of the housing 1 away from the ceramic speaker 2 form a variable capacitor unit.
  • the detection chip 33 is electrically connected to the first capacitor plate 31, so that the real-time capacitance value of the variable capacitor unit can be obtained in real time through the detection chip 33.
  • the detection chip 33 can be built in the processor 4 or externally installed in the processor 4.
  • the first capacitor plate 31 may be a conductive film, or a metal thin film sensor, or other conductive film that can form a variable capacitor unit. The embodiment of the present invention There is no restriction on this.
  • the second capacitor plate 32 is arranged at the end of the exciter away from the housing 1, and the detection chip 33 is electrically connected to the first capacitor plate 31 and the second capacitor plate 32 respectively.
  • the first capacitor plate 31 and the second capacitor plate 32 form a variable capacitor. unit.
  • the second capacitor plate 32 and the first capacitor plate 31 are of the same type, which will not be repeated in the embodiment of the present invention. Since the second capacitor plate 32 is arranged at the end of the exciter away from the housing 1, the first A capacitor plate 31 and a second capacitor plate 32 form a variable capacitor unit, and the second capacitor plate 32 can be grounded.
  • the second capacitor plate 32 may be a metal film, which can shield the capacitance interference on the side away from the electronic device housing 1 to avoid affecting the capacitance detected by the variable capacitance unit, thereby making the detection accuracy higher.
  • the driver 5 may be a type of power amplifier.
  • the driver 5 may be externally placed in the ceramic speaker 2 or built in the ceramic speaker 2 to increase the output power of the ceramic speaker 2.
  • the power amplifier may be a charge pump type amplifier or a boost type amplifier.
  • the driver 5 is electrically connected to the processor 4 and the exciter, and the processor 4 and the detection chip 33 are electrically connected, so that the driver 5 can change the output power of the ceramic speaker 2 by changing the vibration of the exciter.
  • the processor 4 can process the real-time capacitance value of the variable capacitance unit obtained by the detection chip 33, and can also control the driver 5 to increase the output power of the ceramic speaker 2 according to the real-time capacitance value, thereby adjusting the output volume of the ceramic speaker 2 effect.
  • the capacitance detection component 3 since the capacitance detection component 3 includes the first capacitance sheet 31, the second capacitance sheet 32 and the detection chip 33, the first capacitance sheet 31 is arranged to connect between the exciter and the housing 1.
  • the two capacitor plates 32 are connected to the side of the exciter away from the housing 1, the detection chip 33 is electrically connected to the first capacitor plate 31 and the second capacitor plate 32, and the composition of the first capacitor plate 31 and the second capacitor plate 32 is variable.
  • the capacitance unit, the capacitance value of the variable capacitance unit changes with the deformation of the casing 1, and the detection chip 33 is used to obtain the real-time capacitance value of the variable capacitance unit.
  • the detection chip 33 can detect the change of the real-time capacitance value of the variable capacitance unit at any time; and since the processor 4 is electrically connected to the driver 5 and the capacitance detection component 3, and the driver 5 and the exciter are electrically connected, The processor 4 can control the driver 5 to adjust the output volume of the ceramic speaker 2 according to the real-time capacitance value, so that the volume of the ceramic speaker 2 is not affected by the operator's hand holding or pressing.
  • the processor 4 controls the output volume of the ceramic speaker 2 according to the real-time capacitance value, including:
  • the processor 4 determines the real-time compensation value of the ceramic speaker 2 according to the real-time capacitance value and the threshold capacitance value, where the threshold capacitance value is the capacitance value obtained by the capacitance detection component 3 when the housing 1 is not deformed;
  • the driver 5 adjusts the output power of the ceramic speaker 2 based on the real-time compensation value of the ceramic speaker 2 to adjust the output volume of the ceramic speaker 2.
  • the capacitance value of the variable capacitor unit changes with the deformation of the housing 1, and the detection chip 33 is used to obtain the variable capacitor unit.
  • the real-time capacitance value of the capacitor unit Therefore, when the operator's hand presses or touches the surface of the housing 1 away from the ceramic speaker 2, the human hand is charged, and the pressing of the operator's hand will change the relationship between the exciter and the housing 1 The resonance point causes a change in the variable capacitance unit.
  • the detection chip 33 may be built into the processor 4 or externally installed in the processor 4.
  • the detection chip 33 is electrically connected to the first capacitor plate 31 and the second capacitor plate 32, and the detection chip 33 can obtain the second capacitor in real time.
  • the real-time capacitance value of the variable capacitance unit composed of a capacitor plate 31 and a second capacitor plate 32.
  • the threshold capacitance value is the capacitance value obtained by the capacitance detection component 3 when the housing 1 is not deformed.
  • the threshold capacitance value can be based on the fact that the actuator is not pressed or touched by the operator’s hand and the housing 1 is far away from the ceramic
  • the capacitance detection component 3 detects the capacitance value of the variable capacitance unit.
  • the processor 4 after the processor 4 obtains the real-time capacitance value and the threshold capacitance value, it can process the real-time capacitance value and the threshold capacitance value, and determine the ceramics according to but not limited to the relationship between the real-time capacitance value and the threshold capacitance value.
  • Real-time compensation value of speaker 2 Exemplarily, when the acquired real-time capacitance value is equal to or less than the threshold capacitance value, it can be determined that the ceramic speaker 2 is in a normal sounding state, that is, the volume emitted by the ceramic speaker 2 is the volume that can be heard by the operator's ears, it can be determined The real-time compensation value of the ceramic speaker 2 is 0, that is, the ceramic speaker 2 does not need to be compensated.
  • the ceramic speaker 2 is in an abnormal sounding state, that is, the operator’s hand presses or touches the surface of the housing 1 away from the ceramic speaker 2, which changes the actuator and the housing 1.
  • the resonance point of the ceramic speaker 2 reduces the volume of the ceramic speaker 2, and the volume of the ceramic speaker 2 needs to be compensated so that the human ear can hear it.
  • the volume compensation of the ceramic speaker 2 is required. Therefore, when the ceramic is determined After the real-time compensation value of the speaker 2 is generated, the generated volume gain commands are all commands to increase the volume of the ceramic speaker 2.
  • the volume gain command is a command to trigger the driver 5 to perform power amplification.
  • the volume gain command can be sent to the driver 5. Because the volume gain command is a command that triggers the driver 5 to perform power amplification, and then after the driver 5 receives the volume gain command, the output of the ceramic speaker 2 can be adjusted Power to adjust the output volume of the ceramic speaker 2.
  • the processor 4 determines the real-time compensation value of the ceramic speaker 2 according to the real-time capacitance value and the threshold capacitance value, where the threshold capacitance value is the capacitance value obtained by the capacitance detection component 3 when the housing 1 is not deformed; ,
  • the driver 5 adjusts the output power of the ceramic speaker 2 based on the real-time compensation value of the ceramic speaker 2, so that the volume of the ceramic speaker 2 is increased, and then the electronic device housing 1 is held by the operator's hand or pressed by the electronic device housing At 1 o'clock, it will not affect the volume of ceramic speaker 2.
  • the processor 4 is configured to: determine the real-time capacitance difference according to the real-time capacitance value and the threshold capacitance value;
  • the real-time compensation value of the ceramic speaker 2 is determined.
  • the real-time capacitance difference when the real-time capacitance difference is positive, it means that the acquired real-time capacitance value is greater than the threshold capacitance value, and it can be determined that the ceramic speaker 2 is in an abnormal sounding state, that is, the operator's hand pressing or touching
  • the housing 1 is far away from the surface of the ceramic speaker 2 and the resonance point between the exciter and the housing 1 is changed, so that the volume of the ceramic speaker 2 is reduced, and the volume of the ceramic speaker 2 needs to be compensated so that the human ear can hear it.
  • the implemented capacitance value When the implemented capacitance value is less than or equal to 0, it means that the acquired real-time capacitance value is equal to or less than the threshold capacitance value, and it can be determined that the ceramic speaker 2 is in a normal sounding state, that is, the volume emitted by the ceramic speaker 2 is capable of the operator's ears. If the sound volume is heard, it can be determined that the real-time compensation value of the ceramic speaker 2 is 0, that is, the ceramic speaker 2 does not need to be compensated.
  • the processor 4 is configured to: obtain a preset capacitance value range and a preset compensation value; based on the preset capacitance value range and the preset compensation value, generate a correspondence between the preset capacitance value range and the preset compensation value ; Based on the real-time capacitance difference and the corresponding relationship, the real-time compensation value of the ceramic speaker 2 is determined.
  • the preset capacitance value range and the preset compensation value can be stored in the processor 4 according to the normal volume that the human ear can hear.
  • the preset compensation value can be determined according to the type of the driver 5.
  • the corresponding relationship between the preset capacitance value range and the preset compensation value can be generated, and the corresponding relationship between the generated preset capacitance value range and the preset compensation value can be generated
  • the relationship is stored in the processor 4.
  • the corresponding relationship may be a one-to-one mapping relationship.
  • Table 1 is the correspondence table of the preset capacitance value range and the preset compensation value, for example, as shown in Table 1:
  • Preset capacitance value range (F) Preset compensation value (dB) (0,5) 1.5 (5,10) 3 (10,15) 4.5 >15 6
  • the corresponding preset compensation value When the capacitance value is greater than 0F and less than or equal to 5F, the corresponding preset compensation value is 1.5dB. When the capacitance value is greater than 5F and less than or equal to 10F, the corresponding preset compensation value is 3dB. When the capacitance value is greater than When 10F is less than or equal to 15F, the corresponding preset compensation value is 4.5dB, and when the capacitance value is greater than 15F, the corresponding preset compensation value is 6dB.
  • the foregoing embodiment is only an example, and the specific value is determined according to the type of the ceramic speaker 2.
  • the corresponding relationship between the preset capacitance value range and the preset compensation value stored in advance and the real-time capacitance difference can be obtained to determine the real-time compensation value of the ceramic speaker 2.
  • processor 4 is used to:
  • the compensation value of the ceramic speaker is determined to be 0;
  • the compensation value of the ceramic speaker is determined to be the fourth compensation value, where the second compensation value is greater than the first compensation value, the third compensation value is greater than the second compensation value, and the second compensation value is greater than the second compensation value.
  • the fourth compensation value is greater than the third compensation value.
  • any real-time capacitance value can correspond to a preset compensation value .
  • the corresponding relationship between the preset capacitance value range and the preset compensation value is the relationship shown in Table 1, for example, if the real-time capacitance value obtained is 13F, it can be determined that the real-time capacitance value is located at the preset value of (10,15)
  • the compensation value of the ceramic speaker can be determined to be 4.5dB.
  • the first preset capacitance value range, the second preset capacitance value range, the third preset capacitance value range, and the fourth preset capacitance value range may be equal to several capacitance value ranges, or may be different. And so on several capacitance value ranges.
  • the second compensation value may be equal to 2 times the first compensation value
  • the third compensation value may be equal to 3 times the first compensation value
  • the fourth compensation value may be equal to 4 times the first compensation value.
  • the compensation value in another possible implementation manner, the first compensation value, the second compensation value, the third compensation value, and the fourth compensation value may be values without any multiple relationship.
  • the preset capacitance value range can be divided into a first preset capacitance value range, a second preset capacitance value range, a third preset capacitance value range, and a fourth preset capacitance value range, the preset capacitance value range
  • the division of the capacitance value range is more detailed, so that the corresponding relationship between the real-time capacitance value and the real-time compensation value of the ceramic speaker 2 is more clear, and avoids that the corresponding real-time compensation value is relatively single due to the excessively large preset capacitance value range.
  • the compensation effect of the volume of the ceramic speaker 2 affects.
  • the capacitance detection component 3 since the capacitance detection component 3 includes the first capacitance sheet 31, the second capacitance sheet 32 and the detection chip 33, the first capacitance sheet 31 is arranged to connect between the exciter and the housing 1.
  • the two capacitor plates 32 are connected to the side of the exciter away from the housing 1, the detection chip 33 is electrically connected to the first capacitor plate 31 and the second capacitor plate 32, and the composition of the first capacitor plate 31 and the second capacitor plate 32 is variable.
  • the capacitance unit, the capacitance value of the variable capacitance unit changes with the deformation of the casing 1, and the detection chip 33 is used to obtain the real-time capacitance value of the variable capacitance unit.
  • the detection chip 33 can detect the change of the real-time capacitance value of the variable capacitance unit at any time; and since the processor 4 is electrically connected to the driver 5 and the capacitance detection component 3, and the driver 5 and the exciter are electrically connected, The processor 4 can control the driver 5 to adjust the output volume of the ceramic speaker 2 according to the real-time capacitance value, so that the volume of the ceramic speaker 2 is not affected by the operator's hand holding or pressing.
  • the preset capacitance value range can be divided into a first preset capacitance value range, a second preset capacitance value range, a third preset capacitance value range, and a fourth preset capacitance value range, the preset capacitance value
  • the division of the range is more detailed, which makes the corresponding relationship between the real-time capacitance value and the real-time compensation value of the ceramic speaker 2 more clear, avoiding the fact that the preset capacitance value range is too large and the corresponding real-time compensation value is relatively single, which will not affect the ceramic speaker 2.
  • the compensation effect of the volume is affected.
  • the second embodiment of the present invention also provides a method for adjusting the volume of the ceramic speaker 2, which is applied to the electronic device of the first embodiment of the present invention.
  • the method for adjusting the volume includes:
  • Step 201 Control the driver 5 to adjust the output volume of the ceramic speaker 2 according to the real-time capacitance value.
  • the threshold capacitance value is the capacitance value obtained by the capacitance detection component 3 when the housing 1 is not deformed
  • the output power of the ceramic speaker 2 is adjusted to adjust the output volume of the ceramic speaker 2.
  • the capacitance value of the variable capacitor unit changes with the deformation of the housing 1, and the detection chip 33 is used to obtain the variable capacitor unit.
  • the real-time capacitance value of the capacitor unit Therefore, when the operator's hand presses or touches the surface of the housing 1 away from the ceramic speaker 2, the human hand is charged, and the pressing of the operator's hand will change the relationship between the exciter and the housing 1 The resonance point causes a change in the variable capacitance unit.
  • the detection chip 33 can be built in the processor 4 or externally in the processor 4. The detection chip 33 is electrically connected to the first capacitor plate 31, and the real-time capacitance of the variable capacitor unit can be obtained in real time through the detection chip 33. value.
  • the threshold capacitance value is the capacitance value obtained by the capacitance detection component 3 when the housing 1 is not deformed.
  • the threshold capacitance value can be based on the fact that the actuator is not pressed or touched by the operator’s hand and the housing 1 is far away from the ceramic
  • the capacitance detection component 3 detects the capacitance value of the variable capacitance unit.
  • the processor 4 after the processor 4 obtains the real-time capacitance value and the threshold capacitance value, it can process the real-time capacitance value and the threshold capacitance value, and determine the ceramics according to but not limited to the relationship between the real-time capacitance value and the threshold capacitance value.
  • Real-time compensation value of speaker 2 Exemplarily, when the acquired real-time capacitance value is equal to or less than the threshold capacitance value, it can be determined that the ceramic speaker 2 is in a normal sounding state, that is, the volume emitted by the ceramic speaker 2 is the volume that can be heard by the operator's ears, it can be determined The real-time compensation value of the ceramic speaker 2 is 0, that is, the ceramic speaker 2 does not need to be compensated.
  • the ceramic speaker 2 is in an abnormal sounding state, that is, the operator’s hand presses or touches the surface of the housing 1 away from the ceramic speaker 2, which changes the actuator and the housing 1.
  • the resonance point of the ceramic speaker 2 reduces the volume of the ceramic speaker 2, and the volume of the ceramic speaker 2 needs to be compensated so that the human ear can hear it.
  • the volume compensation of the ceramic speaker 2 is required. Therefore, when the ceramic is determined After the real-time compensation value of the speaker 2 is generated, the generated volume gain commands are all commands to increase the volume of the ceramic speaker 2.
  • the volume gain command is a command to trigger the driver 5 to perform power amplification.
  • the volume gain command can be sent to the driver 5. Because the volume gain command is a command that triggers the driver 5 to perform power amplification, and then after the driver 5 receives the volume gain command, the output of the ceramic speaker 2 can be adjusted Power to adjust the output volume of the ceramic speaker 2.
  • the processor 4 can determine the real-time compensation value of the ceramic speaker 2 based on the real-time capacitance value obtained by the capacitance detection component 3. After that, the driver 5 adjusts the output power of the ceramic speaker 2 based on the real-time compensation value of the ceramic speaker 2 to make the ceramic speaker
  • the volume of 2 is increased, and furthermore, when the housing 1 of the electronic device is held or pressed by the operator's hand, the volume of the ceramic speaker 2 will not be affected.
  • the electronic device can control the driver 5 to adjust the output volume of the ceramic speaker 2 according to the real-time capacitance value
  • the capacitance detection component 3 included in the electronic device can detect changes in the real-time capacitance value of the variable capacitance unit at any time; then, the processor 4 included in the electronic device can control the driver 5 to adjust the ceramic speaker according to the real-time capacitance value
  • the output volume of 2 in turn makes the volume of the ceramic speaker 2 not affected by the operator's hand holding or pressing.
  • the third embodiment of the present invention also provides another method for adjusting the volume of the ceramic speaker 2, which is applied to the electronic device of the first embodiment of the present invention, and the method includes:
  • Step 301 Determine the real-time capacitance difference according to the real-time capacitance value and the threshold capacitance value.
  • the capacitance value of the variable capacitor unit changes with the deformation of the housing 1, and the detection chip 33 is used to obtain the variable capacitor unit.
  • the real-time capacitance value of the capacitor unit Therefore, when the operator's hand presses or touches the surface of the housing 1 away from the ceramic speaker 2, the human hand is charged, and the pressing of the operator's hand will change the relationship between the exciter and the housing 1 The resonance point causes a change in the variable capacitance unit.
  • the detection chip 33 can be built in the processor 4 or externally in the processor 4. The detection chip 33 is electrically connected to the first capacitor plate 31, and the real-time capacitance of the variable capacitor unit can be obtained in real time through the detection chip 33. value.
  • the threshold capacitance value is the capacitance value obtained by the capacitance detection component 3 when the housing 1 is not deformed.
  • the threshold capacitance value can be based on whether the actuator is not pressed or touched by the operator’s hand.
  • the housing 1 is far away from the ceramic When the surface of the speaker 2 is at a normal resonance point with the housing 1, the capacitance detection component 3 detects the capacitance value of the variable capacitance unit.
  • the real-time capacitance difference When the real-time capacitance difference is positive, it means that the acquired real-time capacitance value is greater than the threshold capacitance value, and it can be determined that the ceramic speaker 2 is in an abnormal sounding state, that is, the operator's hand presses or touches the housing 1 away from the ceramic speaker 2 It changes the resonance point between the exciter and the housing 1 and reduces the volume of the ceramic speaker 2, and the volume of the ceramic speaker 2 needs to be compensated so that the human ear can hear it.
  • the implemented capacitance value When the implemented capacitance value is less than or equal to 0, it means that the acquired real-time capacitance value is equal to or less than the threshold capacitance value, and it can be determined that the ceramic speaker 2 is in a normal sounding state, that is, the volume emitted by the ceramic speaker 2 is capable of the operator's ears. If the sound volume is heard, it can be determined that the real-time compensation value of the ceramic speaker 2 is 0, that is, the ceramic speaker 2 does not need to be compensated.
  • Step 302 Determine the real-time compensation value of the ceramic speaker 2 according to the real-time capacitance difference.
  • the real-time capacitance difference when the real-time capacitance difference is positive, it means that the acquired real-time capacitance value is greater than the threshold capacitance value, and it can be determined that the ceramic speaker 2 is in an abnormal sounding state, that is, the operator's hand pressing or touching
  • the housing 1 is far away from the surface of the ceramic speaker 2 and the resonance point between the exciter and the housing 1 is changed, so that the volume of the ceramic speaker 2 is reduced, and the volume of the ceramic speaker 2 needs to be compensated so that the human ear can hear it.
  • the implemented capacitance value When the implemented capacitance value is less than or equal to 0, it means that the acquired real-time capacitance value is equal to or less than the threshold capacitance value, and it can be determined that the ceramic speaker 2 is in a normal sounding state, that is, the volume emitted by the ceramic speaker 2 is capable of the operator's ears. If the sound volume is heard, it can be determined that the real-time compensation value of the ceramic speaker 2 is 0, that is, the ceramic speaker 2 does not need to be compensated.
  • This step may include: obtaining a preset capacitance value range and a preset compensation value; based on the preset capacitance value range and the preset compensation value, The corresponding relationship between the preset capacitance value range and the preset compensation value is generated; based on the real-time capacitance difference and the corresponding relationship, the real-time compensation value of the ceramic speaker 2 is determined.
  • the preset capacitance value range and the preset compensation value can be stored in the processor 4 according to the normal volume that the human ear can hear.
  • the preset compensation value can be determined according to the type of the driver 5. After obtaining the preset capacitance value range and the preset compensation value, the corresponding relationship between the preset capacitance value range and the preset compensation value can be generated, and the corresponding relationship between the generated preset capacitance value range and the preset compensation value can be generated.
  • the relationship is stored in the processor 4.
  • the corresponding relationship may be a one-to-one mapping relationship.
  • Table 1 is the correspondence table of the preset capacitance value range and the preset compensation value, for example, as shown in Table 1:
  • Preset capacitance value range (F) Preset compensation value (dB) (0,5) 1.5 (5,10) 3 (10,15) 4.5 >15 6
  • the corresponding preset compensation value When the capacitance value is greater than 0F and less than or equal to 5F, the corresponding preset compensation value is 1.5dB. When the capacitance value is greater than 5F and less than or equal to 10F, the corresponding preset compensation value is 3dB. When the capacitance value is greater than When 10F is less than or equal to 15F, the corresponding preset compensation value is 4.5dB, and when the capacitance value is greater than 15F, the corresponding preset compensation value is 6dB.
  • the foregoing embodiment is only an example, and the specific value is determined according to the type of the ceramic speaker 2.
  • the corresponding relationship between the preset capacitance value range and the preset compensation value stored in advance and the real-time capacitance difference can be obtained to determine the real-time compensation value of the ceramic speaker 2.
  • This step may include:
  • the compensation value of the ceramic speaker is determined to be 0;
  • the compensation value of the ceramic speaker is determined to be the fourth compensation value, where the second compensation value is greater than the first compensation value, the third compensation value is greater than the second compensation value, and the second compensation value is greater than the second compensation value.
  • the fourth compensation value is greater than the third compensation value.
  • any real-time capacitance value can correspond to a preset compensation value .
  • the corresponding relationship between the preset capacitance value range and the preset compensation value is the relationship shown in Table 1, for example, if the real-time capacitance value obtained is 13F, it can be determined that the real-time capacitance value is located at the preset value of (10,15)
  • the compensation value of the ceramic speaker can be determined to be 4.5dB.
  • the first preset capacitance value range, the second preset capacitance value range, the third preset capacitance value range, and the fourth preset capacitance value range may be equal to several capacitance value ranges, or may be different. And so on several capacitance value ranges.
  • the second compensation value may be equal to 2 times the first compensation value
  • the third compensation value may be equal to 3 times the first compensation value
  • the fourth compensation value may be equal to 4 times the first compensation value.
  • the compensation value in another possible implementation manner, the first compensation value, the second compensation value, the third compensation value, and the fourth compensation value may be values without any multiple relationship.
  • the preset capacitance value range can be divided into a first preset capacitance value range, a second preset capacitance value range, a third preset capacitance value range, and a fourth preset capacitance value range, the preset capacitance value range
  • the division of the capacitance value range is more detailed, so that the corresponding relationship between the real-time capacitance value and the real-time compensation value of the ceramic speaker 2 is more clear, and avoids that the corresponding real-time compensation value is relatively single due to the excessively large preset capacitance value range.
  • the compensation effect of the volume of the ceramic speaker 2 affects. .
  • the processor 4 may determine the real-time compensation value of the ceramic speaker 2 according to the real-time capacitance value of the variable capacitance unit obtained by the capacitance detection component 3, and then according to the real-time capacitance value and the threshold capacitance value, based on the ceramic speaker 2 real-time compensation value, generate a volume gain command, send the volume gain command to the driver 5, so that the volume of the ceramic speaker 2 is increased, and then the housing 1 of the electronic device is held by the operator's hand or pressed by the housing of the electronic device The volume of the ceramic speaker 2 will not be affected when it is installed.
  • the preset capacitance value range can be divided into a first preset capacitance value range, a second preset capacitance value range, a third preset capacitance value range, and a fourth preset capacitance value range, the preset capacitance value
  • the division of the range is more detailed, which makes the corresponding relationship between the real-time capacitance value and the real-time compensation value of the ceramic speaker 2 more clear, avoiding the fact that the preset capacitance value range is too large and the corresponding real-time compensation value is relatively single, which will not affect the ceramic speaker 2.
  • the compensation effect of the volume is affected.
  • Step 303 Based on the real-time compensation value of the ceramic speaker 2, the output power of the ceramic speaker 2 is adjusted to adjust the output volume of the ceramic speaker 2.
  • the processor 4 may generate an instruction to increase the volume of the ceramic speaker 2.
  • the volume gain command is a command to trigger the driver 5 to perform power amplification.
  • the volume gain command can be sent to the driver 5. Because the volume gain command is a command that triggers the driver 5 to perform power amplification, and then after the driver 5 receives the volume gain command, the output of the ceramic speaker 2 can be adjusted Power to adjust the output volume of the ceramic speaker 2.
  • the processor 4 can determine the real-time compensation value of the ceramic speaker 2 based on the real-time capacitance value acquired by the capacitance detection component 3. After that, the driver 5 adjusts the output power of the ceramic speaker 2 based on the real-time compensation value of the ceramic speaker 2 so that the ceramic speaker 2 The volume of the ceramic speaker 2 is increased, and the volume of the ceramic speaker 2 will not be affected when the electronic device housing 1 is held or pressed by the operator's hand.
  • FIG. 4 is a schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.
  • the electronic device 400 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 4, and Power supply 411 and other components.
  • a radio frequency unit 401 includes but is not limited to: a radio frequency unit 401, a network module 402, an audio output unit 403, an input unit 404, a sensor 405, a display unit 406, a user input unit 407, an interface unit 408, a memory 409, a processor 4, and Power supply 411 and other components.
  • Those skilled in the art can understand that the structure of the electronic device shown in FIG. 4+1 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than those shown in the figure, or combine certain components, or different components. The layout of the components.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop
  • the processor 4 is used for controlling the driver 5 to adjust the output volume of the ceramic speaker 2 according to the real-time capacitance value.
  • the processor 4 is electrically connected to the driver 5 and the capacitance detection component 3, and the driver 4 is electrically connected to the exciter. Therefore, the processor 4 can control the driver 5 to adjust the output of the ceramic speaker 2 according to the real-time capacitance value. The volume, and thus the volume of the ceramic speaker 2 is not affected by the operator's hand holding or pressing.
  • the radio frequency unit 401 can be used to receive and send signals during information transmission or communication. Specifically, the downlink data from the base station is received and processed by the processor 4; Uplink data is sent to the base station.
  • the radio frequency unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 401 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 402, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 403 may convert the audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output it as sound. Moreover, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic device 400 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 404 is used to receive audio or video signals.
  • the input unit 404 may include a graphics processing unit (GPU) 4041 and a microphone 4042.
  • the graphics processor 041 is used to capture images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame can be displayed on the display unit 406.
  • the image frame processed by the graphics processor 041 may be stored in the memory 409 (or other storage medium) or sent via the radio frequency unit 401 or the network module 402.
  • the microphone 4042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 401 in the case of a telephone call mode for output.
  • the electronic device 400 also includes at least one sensor 405, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 4061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 4061 and the display panel 4061 when the electronic device 400 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 405 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 406 is used to display information input by the user or information provided to the user.
  • the display unit 606 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 407 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 407 includes a touch panel 4071 and other input devices 4072.
  • the touch panel 4071 also known as a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 4071 or near the touch panel 4071. operating).
  • the touch panel 4071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 4, receive the command sent by the processor 4 and execute it.
  • the touch panel 4071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 407 may also include other input devices 4072.
  • other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 4071 can be overlaid on the display panel 4061.
  • the touch panel 6071 detects a touch operation on or near it, it is transmitted to the processor 4 to determine the type of the touch event, and then the processor 4 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 4061.
  • the touch panel 4071 and the display panel 4061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 408 is an interface for connecting an external device and the electronic device 400.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 408 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 400 or can be used to connect the electronic device 400 to an external device. Transfer data between devices.
  • the memory 409 can be used to store software programs and various data.
  • the memory 409 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 409 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 4 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes the software programs and/or modules stored in the memory 409, and calls the data stored in the memory 409 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 4 may include one or more processing units; preferably, the processor 4 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface and application programs, etc., the modem The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 4.
  • the electronic device 400 may also include a power supply 411 (such as a battery) for supplying power to various components.
  • a power supply 411 such as a battery
  • the power supply 611 may be logically connected to the processor 4 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
  • the electronic device 400 includes some functional modules not shown, which will not be repeated here.
  • the embodiment of the present invention also provides an electronic device, including a processor 5, a memory 5, and a computer program stored on the memory 5 and capable of running on the processor 5.
  • an electronic device including a processor 5, a memory 5, and a computer program stored on the memory 5 and capable of running on the processor 5.
  • the computer program is executed by the processor 5.
  • Each process of the above-mentioned application control method embodiment is realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.
  • a terminal which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Piezo-Electric Transducers For Audible Bands (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Details Of Audible-Bandwidth Transducers (AREA)

Abstract

本发明实施例提供了一种电子设备及其音量调节方法。该电子设备包括壳体、陶瓷扬声器、电容检测组件、处理器和驱动器;陶瓷扬声器设置于壳体内,陶瓷扬声器具有激励器,激励器与壳体相连;电容检测组件包括第一电容片、第二电容片和检测芯片,第一电容片连接在激励器和壳体之间,第二电容片连接在激励器的远离壳体的一侧,检测芯片分别与第一电容片和第二电容片电连接,第一电容片和第二电容片组成可变电容单元,可变电容单元的电容值随壳体的形变而发生变化,检测芯片用于获取可变电容单元的实时电容值;处理器分别与驱动器和电容检测组件电连接,驱动器和激励器电连接,处理器根据实时电容值控制驱动器调节陶瓷扬声器的输出音量。

Description

电子设备及其音量调节方法
相关申请的交叉引用
本申请主张在2019年11月29日在中国提交的中国专利申请号No.201911206003.X的优先权,其全部内容通过引用包含于此。
技术领域
本发明涉及电子技术领域,尤其涉及一种电子设备及其音量调节方法。
背景技术
电子设备通常配备有扬声器,传统的电子设备的配备的扬声器为动圈式扬声器。然而,配备动圈式扬声器的电子设备的屏幕上需要开设出音孔,不仅会对电子设备的外观造成影响,而且会增加电子设备的防水难度。
基于此,电子设备配备的扬声器更换为压电陶瓷扬声器,陶瓷扬声器依靠推动电子设备的壳体而发出声音,进而可以避免在电子设备的屏幕上开设出音孔。
然而,当电子设备壳体被人手握住时,使得电子设备的谐振点,使得压电陶瓷扬声器振动下降,导致电子设备的音量下降,进而影响了电子设备的音质。
发明内容
本发明实施例提供一种电子设备及其音量调节方法,以解决电子设备包括的壳体被人手握住时音量下降的问题。
为了解决上述技术问题,本发明是这样实现的:
第一方面,本发明实施例提供一种电子设备,所述电子设备包括壳体、陶瓷扬声器、电容检测组件、处理器和驱动器;
所述陶瓷扬声器设置于所述壳体内,所述陶瓷扬声器具有激励器,所述激励器与所述壳体相连;
所述电容检测组件包括第一电容片、第二电容片和检测芯片,所述第一 电容片设置连接所述激励器和所述壳体之间,所述第二电容片连接在所述激励器的远离所述壳体的一侧,所述检测芯片分别与所述第一电容片和所述第二电容片电连接,所述第一电容片和所述第二电容片组成可变电容单元,所述可变电容单元的电容值随所述壳体的形变而发生变化,所述检测芯片用于获取所述可变电容单元的实时电容值;
所述处理器分别与所述驱动器和所述电容检测组件电连接,所述驱动器和所述激励器电连接,所述处理器根据所述实时电容值控制所述驱动器调节所述陶瓷扬声器的输出音量。
第二方面,本发明实施例还提供一种电子设备的音量调节方法,应用于第一方面任一所述的电子设备,所述音量调节方法包括:
根据所述实时电容值控制所述驱动器调节所述陶瓷扬声器的输出音量。
在本发明实施例提供的电子设备及其音量调节方法中,由于电容检测组件包括第一电容片、第二电容片和检测芯片,第一电容片设置连接激励器和壳体之间,第二电容片连接在激励器的远离壳体的一侧,检测芯片分别与第一电容片和第二电容片电连接,第一电容片和第二电容片组成可变电容单元,可变电容单元的电容值随壳体的形变而发生变化,检测芯片用于获取可变电容单元的实时电容值,因此,当电子设备的壳体被操作者的手握住或者按压住时,电容检测组件可以随时检测可变电容单元的实时电容值的变化;又由于处理器分别与驱动器和电容检测组件电连接,所述驱动器和所述激励器电连接,因此,处理器可以根据实时电容值控制驱动器调节所述陶瓷扬声器的输出音量,进而使陶瓷扬声器的音量不受操作者的手握住或者按压影响。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1表示本发明实施例提供的一种电子设备的结构示意图;
图2表示本发明实施例的一种电子设备的音量调节方法的流程图;
图3表示本发明实施例提供的另一种电子设备的音量调节方法的流程图;
图4表示本发明实施例提供的一种电子设备的硬件结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本发明的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。
在本发明的各种实施例中,应理解,下述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。
参见图1,本发明实施例一提供了一种电子设备,该电子设备包括壳体1、陶瓷扬声器2、电容检测组件3、处理器4和驱动器5;
陶瓷扬声器2设置于壳体1内,陶瓷扬声器2具有激励器,激励器与壳体1相连;
电容检测组件3包括第一电容片31、第二电容片32和检测芯片33,第一电容片31设置连接激励器和壳体1之间,第二电容片32连接在激励器的远离壳体1的一侧,电容检测组件3分别与第一电容片31和第二电容片32电连接,第一电容片31和第二电容片32组成可变电容单元,可变电容单元的电容值随壳体1的形变而发生变化,检测芯片33用于获取可变电容单元的实时电容值;
处理器4分别与驱动器5和电容检测组件3电连接,驱动器5和激励器电连接,处理器4根据实时电容值控制驱动器5调节陶瓷扬声器2的输出音量。
在本发明实施例中,电子设备依靠陶瓷扬声器2与壳体1的振动而发出声音。具体的,陶瓷扬声器2包括的激励器可以包括第一压电陶瓷片、第二压电陶瓷片和金属片,第一压电陶瓷片和第二压电陶瓷片分别粘接在金属片两面上,当上压电片伸展、下压电片收缩时,激励器就向上弯曲。因此,当给激励器加上一个交变电压,它就会随着电压的交替变化而上下振动。位移量与输入信号的幅度成正比。激励器的振动带动壳体1使周围空气流动,从而发出声音。
在本发明实施例中,可以将陶瓷扬声器2固定在电池板与中框支架之间,第一电容片31设置在激励器和壳体1之间,第二电容片32连接在激励器的远离壳体1的一侧,检测芯片33分别与第一电容片31和第二电容片32电连接。这样,相比于传统的动圈式扬声器,可以避免在电子设备的表面上可设出音孔,避免对电子设备的外观造成影响,同时降低电子设备的防水难度。
需要说明的是,由于第一电容片31设置在激励器和壳体1之间,使得第一电容片31和壳体1远离陶瓷扬声器2的表面组成可变电容单元。当操作者的手按压或者触摸壳体1远离陶瓷扬声器2的表面时,由于人手带电,且随着操作者的手的按压会改变激励器与壳体1的谐振点,引起可变电容单元的发生变化。此外,检测芯片33和第一电容片31电连接,进而可以通过检测芯片33实时获取可变电容单元的实时电容值。检测芯片33可以内置于处理器4,也可以外置于处理器4。还需要说明的是,在本发明实施例中,第一电容片31可以为导电膜片,也可以为金属薄膜传感器,或者其它可以导电且能形成可变电容单元的薄膜片,本发明实施例对此不做限定。
第二电容片32设置在激励器远离壳体1的一端,检测芯片33分别与第一电容片31和第二电容片32电连接,第一电容片31和第二电容片32组成可变电容单元。在本发明实施例中,第二电容片32和第一电容片31的类型相同,本发明实施例对此不做赘述,由于第二电容片32设置在激励器远离壳体1的一端,第一电容片31和第二电容片32组成可变电容单元,可以将第二电容片32接地。由于第一电容片31和第二电容片32之间的距离不变,进而当操作者的手握住或者按压电子设备的壳体1时,使得第一电容片31上的单极电容发生变化,又由于第二电容片32接地,使得第二电容片32上的单 极电容为0,进而在检测时,只需要检测第二电容片32上的单极电容即可以反映实时电容值。此外,第二电容片32可以为金属薄膜,可以屏蔽远离电子设备壳体1一侧的电容干扰,避免对可变电容单元检测的电容造成影响,进而使得检测的精度更高。
此外,驱动器5可以为功率放大器的一种,驱动器5可以外置于陶瓷扬声器2,也可以内置于陶瓷扬声器2,用于提高陶瓷扬声器2的输出功率。功率放大器可以为电荷泵型放大器或者升压型放大器的一种。驱动器5分别与处理器4和激励器电连接,处理器4和检测芯片33电连接,进而使得驱动器5可以通过改变激励器的振动来改变陶瓷扬声器2的输出功率。这样,使得处理器4可以处理检测芯片33获取到的可变电容单元实时电容值,也能根据实时电容值控制驱动器5进行提高陶瓷扬声器2的输出功率,进而达到调节陶瓷扬声器2的输出音量的作用。
在本发明实施例提供的电子设备中,由于电容检测组件3包括第一电容片31、第二电容片32和检测芯片33,第一电容片31设置连接激励器和壳体1之间,第二电容片32连接在激励器的远离壳体1的一侧,检测芯片33分别与第一电容片31和第二电容片32电连接,第一电容片31和第二电容片32组成可变电容单元,可变电容单元的电容值随壳体1的形变而发生变化,检测芯片33用于获取可变电容单元的实时电容值,因此,当电子设备的壳体1被操作者的手握住或者按压住时,检测芯片33可以随时检测可变电容单元的实时电容值的变化;又由于处理器4分别与驱动器5和电容检测组件3电连接,驱动器5和激励器电连接,因此,处理器4可以根据实时电容值控制驱动器5调节所述陶瓷扬声器2的输出音量,进而使陶瓷扬声器2的音量不受操作者的手握住或者按压影响。
可选的,处理器4根据实时电容值控制陶瓷扬声器2的输出音量,包括:
处理器4根据实时电容值和门限电容值,确定陶瓷扬声器2的实时补偿值,其中,门限电容值为在壳体1未发生形变的情况下电容检测组件3获取的电容值;
驱动器5基于陶瓷扬声器2的实时补偿值,调节陶瓷扬声器2的输出功率,以调节陶瓷扬声器2的输出音量。
在本发明实施例中,由于第一电容片31和第二电容片32组成可变电容单元,可变电容单元的电容值随壳体1的形变而发生变化,检测芯片33用于获取可变电容单元的实时电容值,因此,当操作者的手按压或者触摸壳体1远离陶瓷扬声器2的表面时,由于人手带电,且随着操作者的手的按压会改变激励器与壳体1的谐振点,引起可变电容单元的发生变化。此外,检测芯片33可以内置在处理器4中,也可以外置在处理器4中,检测芯片33和第一电容片31和第二电容片32电连接,进而可以通过检测芯片33实时获取第一电容片31和第二电容片32组成的可变电容单元的实时电容值。
需要说明的是,门限电容值为壳体1未发生形变的情况下电容检测组件3获取的电容值,门限电容值可以,根据激励器在操作者的手未按压或者未触摸壳体1远离陶瓷扬声器2的表面时,激励器处于和壳体1正常谐振点时,电容检测组件3检测到的可变电容单元的电容值。
在本发明实施例中,当处理器4获取到实时电容值和门限电容值后,可以对实时电容值和门限电容值进行处理,根据但不限于实时电容值和门限电容值的关系,确定陶瓷扬声器2的实时补偿值。示例性的,当获取到的实时电容值等于或者小于门限电容值,则可以确定陶瓷扬声器2处于正常发声状态,即陶瓷扬声器2发出的音量为操作者的耳朵能够听到的音量,则可以确定陶瓷扬声器2的实时补偿值为0,即陶瓷扬声器2不需要进行补偿。若获取到的实时电容值大于门限电容值,则可以确定陶瓷扬声器2处于非正常发声状态,即操作者的手按压或者触摸壳体1远离陶瓷扬声器2的表面,改变了激励器与壳体1的谐振点,使得陶瓷扬声器2的音量降低,则需要对陶瓷扬声器2的音量进行补偿,使得人耳能够听到。
之后,由于只有在操作者的手按压或者触摸壳体1远离陶瓷扬声器2的表面,改变了激励器的谐振点的状态下,才需要对陶瓷扬声器2的进行音量补偿,因此,当确定了陶瓷扬声器2的实时补偿值后,生成的音量增益指令均为使得陶瓷扬声器2音量增加的指令。该音量增益指令为触发驱动器5进行功率放大的指令。
当生成了音量增益指令后,可以将音量增益指令发给驱动器5,由于音量增益指令为触发驱动器5进行功率放大的指令,进而在驱动器5接收到音 量增益指令后,可以调节陶瓷扬声器2的输出功率,以调节陶瓷扬声器2的输出音量。
这样,通过处理器4根据实时电容值和门限电容值,确定陶瓷扬声器2的实时补偿值,其中,门限电容值为在壳体1未发生形变的情况下电容检测组件3获取的电容值;之后,驱动器5基于陶瓷扬声器2的实时补偿值,调节陶瓷扬声器2的输出功率,使得陶瓷扬声器2的音量得到提高,进而在电子设备壳体1被操作者的手握住或者按压电子设备的壳体1时,也不会对陶瓷扬声器2的音量造成影响。
可选的,处理器4用于:根据实时电容值和门限电容值,确定实时电容差值;
根据实时电容差值,确定陶瓷扬声器2的实时补偿值。
在本发明实施例中,当实时电容差值为正值时,则表示获取到的实时电容值大于门限电容值,则可以确定陶瓷扬声器2处于非正常发声状态,即操作者的手按压或者触摸壳体1远离陶瓷扬声器2的表面,改变了激励器与壳体1的谐振点,使得陶瓷扬声器2的音量降低,则需要对陶瓷扬声器2的音量进行补偿,使得人耳能够听到。当实施电容值为小于或者等于0时,则表示获取到的实时电容值等于或者小于门限电容值,则可以确定陶瓷扬声器2处于正常发声状态,即陶瓷扬声器2发出的音量为操作者的耳朵能够听到的音量,则可以确定陶瓷扬声器2的实时补偿值为0,即陶瓷扬声器2不需要进行补偿。
可选的,处理器4用于:获取预设电容值范围和预设补偿值;基于预设电容值范围和预设补偿值,生成预设电容值范围和预设补偿值之间的对应关系;基于实时电容差值和对应关系,确定陶瓷扬声器2的实时补偿值。
在本发明实施例中,可以根据人耳能够听到的正常音量,在处理器4内存储预设电容值范围和预设补偿值。预设补偿值可以根据驱动器5的类型确定。在获取预设电容值范围和预设补偿值后,可以生成预设电容值范围和预设补偿值之间的对应关系,可以将生成的预设电容值范围和预设补偿值之间的对应关系存储在处理器4中。该对应关系可以为一一映射关系。表1是预 设电容值范围和预设补偿值的对应关系表,例如表1所示:
表1
预设电容值范围(F) 预设补偿值(dB)
(0,5] 1.5
(5,10] 3
(10,15] 4.5
>15 6
当电容值为大于0F且小于或者等于5F时,对应的预设补偿值为1.5dB,当电容值为大于5F且小于或者等于10F时,对应的预设补偿值为3dB,当电容值为大于10F且小于或者等于15F时,对应的预设补偿值为4.5dB,当电容值大于15F时,对应的预设补偿值为6dB。上述实施例仅为一种示例,具体数值依据陶瓷扬声器2的类型确定。当需要确定陶瓷扬声器2的实时补偿值时,可以获取预先存储的预设电容值范围和预设补偿值之间的对应关系和实时电容差值,确定陶瓷扬声器2的实时补偿值。
可选的,处理器4用于:
若实时电容差值小于或者等于0,确定陶瓷扬声的补偿值为0;
若实时电容差值位于第一预设电容值范围,确定陶瓷扬声的补偿值为第一补偿值;
若实时电容差值位于第二预设电容值范围,确定陶瓷扬声的补偿值为第二补偿值;
若实时电容差值位于第三预设电容值范围,确定陶瓷扬声的补偿值为第三补偿值;
若实时电容差值位于第四预设电容值范围,确定陶瓷扬声的补偿值为第四补偿值,其中,第二补偿值大于第一补偿值,第三补偿值大于第二补偿值,第四补偿值大于第三补偿值。
在本发明实施例中,当生成预设电容值范围和补偿值之间的对应关系后,由于该对应关系可以为一一映射关系,因此,任何一个实时电容值均可以对应一个预设补偿值。若预设电容值范围和预设补偿值的对应关系为表1所示的关系,示例性的,若获取到的实时电容值为13F,可以确定实时电容值位 于(10,15]的预设电容值范围,则根据对应关系,则可以确定陶瓷扬声的补偿值为4.5dB。
需要说明的是,第一预设电容值范围、第二预设电容值范围、第三预设电容值范围、第四预设电容值范围可以为相等的几个电容值区间,也可以为不等的几个电容值区间。此外,在一种可能实现的方式中,第二补偿值可以等于2倍的第一补偿值、第三补偿值可以等于3倍的第一补偿值、第四补偿值可以等于4倍的第一补偿值,在另一种可能实现的方式中,第一补偿值、第二补偿值、第三补偿值、第四补偿值可以为没有任何倍数关系的值。
需要说明的是,由于预设电容值范围可以分为第一预设电容值范围、第二预设电容值范围、第三预设电容值范围和第四预设电容值范围,因此,使得预设电容值范围的划分更为细致,使得实时电容值和陶瓷扬声器2的实时补偿值的对应关系更为明确,避免因预设电容值范围过大导致对应的实时补偿值较为单一,不会对陶瓷扬声器2的音量的补偿效果造成影响。
在本发明实施例提供的电子设备中,由于电容检测组件3包括第一电容片31、第二电容片32和检测芯片33,第一电容片31设置连接激励器和壳体1之间,第二电容片32连接在激励器的远离壳体1的一侧,检测芯片33分别与第一电容片31和第二电容片32电连接,第一电容片31和第二电容片32组成可变电容单元,可变电容单元的电容值随壳体1的形变而发生变化,检测芯片33用于获取可变电容单元的实时电容值,因此,当电子设备的壳体1被操作者的手握住或者按压住时,检测芯片33可以随时检测可变电容单元的实时电容值的变化;又由于处理器4分别与驱动器5和电容检测组件3电连接,驱动器5和激励器电连接,因此,处理器4可以根据实时电容值控制驱动器5调节所述陶瓷扬声器2的输出音量,进而使陶瓷扬声器2的音量不受操作者的手握住或者按压影响。
此外,由于预设电容值范围可以分为第一预设电容值范围、第二预设电容值范围、第三预设电容值范围和第四预设电容值范围,因此,使得预设电容值范围的划分更为细致,使得实时电容值和陶瓷扬声器2的实时补偿值的对应关系更为明确,避免因预设电容值范围过大导致对应的实时补偿值较为单一,不会对陶瓷扬声器2的音量的补偿效果造成影响。
参见图2,本发明实施例二还提供了一种陶瓷扬声器2的音量调节方法,应用于本发明实施例一的电子设备,该音量调节方法包括:
步骤201:根据实时电容值控制驱动器5调节陶瓷扬声器2的输出音量。
需要说明的是,该音量调节方法的具体过程可以为:
根据实时电容值和门限电容值,确定陶瓷扬声器2的实时补偿值,其中,门限电容值为在壳体1未发生形变的情况下电容检测组件3获取的电容值;
基于陶瓷扬声器2的实时补偿值,调节陶瓷扬声器2的输出功率,以调节陶瓷扬声器2的输出音量。
在本发明实施例中,由于第一电容片31和第二电容片32组成可变电容单元,可变电容单元的电容值随壳体1的形变而发生变化,检测芯片33用于获取可变电容单元的实时电容值,因此,当操作者的手按压或者触摸壳体1远离陶瓷扬声器2的表面时,由于人手带电,且随着操作者的手的按压会改变激励器与壳体1的谐振点,引起可变电容单元的发生变化。此外,检测芯片33可以内置在处理器4中,也可以外置在处理器4中,检测芯片33和第一电容片31电连接,进而可以通过检测芯片33实时获取可变电容单元的实时电容值。
需要说明的是,门限电容值为壳体1未发生形变的情况下电容检测组件3获取的电容值,门限电容值可以,根据激励器在操作者的手未按压或者未触摸壳体1远离陶瓷扬声器2的表面时,激励器处于和壳体1正常谐振点时,电容检测组件3检测到的可变电容单元的电容值。
在本发明实施例中,当处理器4获取到实时电容值和门限电容值后,可以对实时电容值和门限电容值进行处理,根据但不限于实时电容值和门限电容值的关系,确定陶瓷扬声器2的实时补偿值。示例性的,当获取到的实时电容值等于或者小于门限电容值,则可以确定陶瓷扬声器2处于正常发声状态,即陶瓷扬声器2发出的音量为操作者的耳朵能够听到的音量,则可以确定陶瓷扬声器2的实时补偿值为0,即陶瓷扬声器2不需要进行补偿。若获取到的实时电容值大于门限电容值,则可以确定陶瓷扬声器2处于非正常发声状态,即操作者的手按压或者触摸壳体1远离陶瓷扬声器2的表面,改变了激励器与壳体1的谐振点,使得陶瓷扬声器2的音量降低,则需要对陶瓷 扬声器2的音量进行补偿,使得人耳能够听到。
之后,由于只有在操作者的手按压或者触摸壳体1远离陶瓷扬声器2的表面,改变了激励器的谐振点的状态下,才需要对陶瓷扬声器2的进行音量补偿,因此,当确定了陶瓷扬声器2的实时补偿值后,生成的音量增益指令均为使得陶瓷扬声器2音量增加的指令。该音量增益指令为触发驱动器5进行功率放大的指令。
当生成了音量增益指令后,可以将音量增益指令发给驱动器5,由于音量增益指令为触发驱动器5进行功率放大的指令,进而在驱动器5接收到音量增益指令后,可以调节陶瓷扬声器2的输出功率,以调节陶瓷扬声器2的输出音量。
这样,处理器4可以根据电容检测组件3获取的实时电容值,确定陶瓷扬声器2的实时补偿值,之后,驱动器5基于陶瓷扬声器2的实时补偿值,调节陶瓷扬声器2的输出功率,使得陶瓷扬声器2的音量得到提高,进而在电子设备的壳体1被操作者的手握住或者按压电子设备的壳体1时,也不会对陶瓷扬声器2的音量造成影响。
在本发明实施例提供的音量调节方法中,由于该电子设备可以根据实时电容值控制驱动器5调节陶瓷扬声器2的输出音量,因此,当电子设备的壳体1被操作者的手握住或者按压住时,通过电子设备包括的电容检测组件3可以随时检测可变电容单元的实时电容值的变化;之后,该电子设备包括的处理器4可以根据实时电容值控制驱动器5调节所述陶瓷扬声器2的输出音量,进而使陶瓷扬声器2的音量不受操作者的手握住或者按压影响。
参见图3,本发明实施例三还提供了另一种陶瓷扬声器2的音量调节方法,应用于本发明实施例一的电子设备,方法包括:
步骤301:根据实时电容值和门限电容值,确定实时电容差值。
在本发明实施例中,由于第一电容片31和第二电容片32组成可变电容单元,可变电容单元的电容值随壳体1的形变而发生变化,检测芯片33用于获取可变电容单元的实时电容值,因此,当操作者的手按压或者触摸壳体1远离陶瓷扬声器2的表面时,由于人手带电,且随着操作者的手的按压会改 变激励器与壳体1的谐振点,引起可变电容单元的发生变化。此外,检测芯片33可以内置在处理器4中,也可以外置在处理器4中,检测芯片33和第一电容片31电连接,进而可以通过检测芯片33实时获取可变电容单元的实时电容值。
需要说明的是,门限电容值为壳体1未发生形变的情况下电容检测组件3获取的电容值,门限电容值可以,根据激励器在操作者的手未按压或者未触摸壳体1远离陶瓷扬声器2的表面时,激励器处于和壳体1正常谐振点时,电容检测组件3检测到的可变电容单元的电容值。
当实时电容差值为正值时,则表示获取到的实时电容值大于门限电容值,则可以确定陶瓷扬声器2处于非正常发声状态,即操作者的手按压或者触摸壳体1远离陶瓷扬声器2的表面,改变了激励器与壳体1的谐振点,使得陶瓷扬声器2的音量降低,则需要对陶瓷扬声器2的音量进行补偿,使得人耳能够听到。当实施电容值为小于或者等于0时,则表示获取到的实时电容值等于或者小于门限电容值,则可以确定陶瓷扬声器2处于正常发声状态,即陶瓷扬声器2发出的音量为操作者的耳朵能够听到的音量,则可以确定陶瓷扬声器2的实时补偿值为0,即陶瓷扬声器2不需要进行补偿。
步骤302:根据实时电容差值,确定陶瓷扬声器2的实时补偿值。
在本发明实施例中,当实时电容差值为正值时,则表示获取到的实时电容值大于门限电容值,则可以确定陶瓷扬声器2处于非正常发声状态,即操作者的手按压或者触摸壳体1远离陶瓷扬声器2的表面,改变了激励器与壳体1的谐振点,使得陶瓷扬声器2的音量降低,则需要对陶瓷扬声器2的音量进行补偿,使得人耳能够听到。当实施电容值为小于或者等于0时,则表示获取到的实时电容值等于或者小于门限电容值,则可以确定陶瓷扬声器2处于正常发声状态,即陶瓷扬声器2发出的音量为操作者的耳朵能够听到的音量,则可以确定陶瓷扬声器2的实时补偿值为0,即陶瓷扬声器2不需要进行补偿。
可选的,根据实时电容差值,确定陶瓷扬声器2的实时补偿值,这一步骤,可以包括:获取预设电容值范围和预设补偿值;基于预设电容值范围和预设补偿值,生成预设电容值范围和预设补偿值之间的对应关系;基于实时 电容差值和对应关系,确定陶瓷扬声器2的实时补偿值。
在本发明实施例中,可以根据人耳能够听到的正常音量,在处理器4内存储预设电容值范围和预设补偿值。预设补偿值可以根据驱动器5的类型确定。在获取预设电容值范围和预设补偿值后,可以生成预设电容值范围和预设补偿值之间的对应关系,可以将生成的预设电容值范围和预设补偿值之间的对应关系存储在处理器4中。该对应关系可以为一一映射关系。表1是预设电容值范围和预设补偿值的对应关系表,例如表1所示:
表1
预设电容值范围(F) 预设补偿值(dB)
(0,5] 1.5
(5,10] 3
(10,15] 4.5
>15 6
当电容值为大于0F且小于或者等于5F时,对应的预设补偿值为1.5dB,当电容值为大于5F且小于或者等于10F时,对应的预设补偿值为3dB,当电容值为大于10F且小于或者等于15F时,对应的预设补偿值为4.5dB,当电容值大于15F时,对应的预设补偿值为6dB。上述实施例仅为一种示例,具体数值依据陶瓷扬声器2的类型确定。当需要确定陶瓷扬声器2的实时补偿值时,可以获取预先存储的预设电容值范围和预设补偿值之间的对应关系和实时电容差值,确定陶瓷扬声器2的实时补偿值。
可选的,基于实时电容差值和对应关系,确定陶瓷扬声器2的实时补偿值,这一步骤,可以包括:
若实时电容差值小于或者等于0,确定陶瓷扬声的补偿值为0;
若实时电容差值位于第一预设电容值范围,确定陶瓷扬声的补偿值为第一补偿值;
若实时电容差值位于第二预设电容值范围,确定陶瓷扬声的补偿值为第二补偿值;
若实时电容差值位于第三预设电容值范围,确定陶瓷扬声的补偿值为第三补偿值;
若实时电容差值位于第四预设电容值范围,确定陶瓷扬声的补偿值为第四补偿值,其中,第二补偿值大于第一补偿值,第三补偿值大于第二补偿值,第四补偿值大于第三补偿值。
在本发明实施例中,当生成预设电容值范围和补偿值之间的对应关系后,由于该对应关系可以为一一映射关系,因此,任何一个实时电容值均可以对应一个预设补偿值。若预设电容值范围和预设补偿值的对应关系为表1所示的关系,示例性的,若获取到的实时电容值为13F,可以确定实时电容值位于(10,15]的预设电容值范围,则根据对应关系,则可以确定陶瓷扬声的补偿值为4.5dB。
需要说明的是,第一预设电容值范围、第二预设电容值范围、第三预设电容值范围、第四预设电容值范围可以为相等的几个电容值区间,也可以为不等的几个电容值区间。此外,在一种可能实现的方式中,第二补偿值可以等于2倍的第一补偿值、第三补偿值可以等于3倍的第一补偿值、第四补偿值可以等于4倍的第一补偿值,在另一种可能实现的方式中,第一补偿值、第二补偿值、第三补偿值、第四补偿值可以为没有任何倍数关系的值。
需要说明的是,由于预设电容值范围可以分为第一预设电容值范围、第二预设电容值范围、第三预设电容值范围和第四预设电容值范围,因此,使得预设电容值范围的划分更为细致,使得实时电容值和陶瓷扬声器2的实时补偿值的对应关系更为明确,避免因预设电容值范围过大导致对应的实时补偿值较为单一,不会对陶瓷扬声器2的音量的补偿效果造成影响。。
在本发明实施例中,处理器4可以根据电容检测组件3获取到的可变电容单元的实时电容值,之后根据实时电容值和门限电容值,确定陶瓷扬声器2的实时补偿值,基于陶瓷扬声器2的实时补偿值,生成音量增益指令,将音量增益指令发给驱动器5,使得陶瓷扬声器2的音量得到提高,进而在电子设备的壳体1被操作者的手握住或者按压电子设备的壳体1时,也不会对陶瓷扬声器2的音量造成影响。
此外,由于预设电容值范围可以分为第一预设电容值范围、第二预设电容值范围、第三预设电容值范围和第四预设电容值范围,因此,使得预设电容值范围的划分更为细致,使得实时电容值和陶瓷扬声器2的实时补偿值的 对应关系更为明确,避免因预设电容值范围过大导致对应的实时补偿值较为单一,不会对陶瓷扬声器2的音量的补偿效果造成影响。
步骤303:基于陶瓷扬声器2的实时补偿值,调节陶瓷扬声器2的输出功率,以调节陶瓷扬声器2的输出音量。
在本发明实施例中,当确定了陶瓷扬声器2的实时补偿值后,处理器4可以生成使陶瓷扬声器2音量增加的指令。该音量增益指令为触发驱动器5进行功率放大的指令。
当生成了音量增益指令后,可以将音量增益指令发给驱动器5,由于音量增益指令为触发驱动器5进行功率放大的指令,进而在驱动器5接收到音量增益指令后,可以调节陶瓷扬声器2的输出功率,以调节陶瓷扬声器2的输出音量。
这样,处理器4可以根据电容检测组件3获取的实时电容值确定陶瓷扬声器2的实时补偿值,之后,驱动器5基于陶瓷扬声器2的实时补偿值,调节陶瓷扬声器2的输出功率,使得陶瓷扬声器2的音量得到提高,进而在电子设备壳体1被操作者的手握住或者按压电子设备的壳体1时,也不会对陶瓷扬声器2的音量造成影响。
图4为实现本发明各个实施例的一种电子设备的硬件结构示意图;
该电子设备400包括但不限于:射频单元401、网络模块402、音频输出单元403、输入单元404、传感器405、显示单元406、用户输入单元407、接口单元408、存储器409、处理器4、以及电源411等部件。本领域技术人员可以理解,图4+1中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。
处理器4,用于根据实时电容值控制驱动器5调节陶瓷扬声器2的输出音量。
本发明实施例中,处理器4分别与驱动器5和电容检测组件3电连接,驱动器4和激励器电连接,因此,处理器4可以根据实时电容值控制驱动器 5调节所述陶瓷扬声器2的输出音量,进而使陶瓷扬声器2的音量不受操作者的手握住或者按压影响。
应理解的是,本发明实施例中,射频单元401可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器4处理;另外,将上行的数据发送给基站。通常,射频单元401包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元401还可以通过无线通信系统与网络和其他设备通信。
电子设备通过网络模块402为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元403可以将射频单元401或网络模块402接收的或者在存储器409中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元403还可以提供与电子设备400执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元403包括扬声器、蜂鸣器以及受话器等。
输入单元404用于接收音频或视频信号。输入单元404可以包括图形处理器(Graphics Processing Unit,GPU)4041和麦克风4042,图形处理器041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元406上。经图形处理器041处理后的图像帧可以存储在存储器409(或其它存储介质)中或者经由射频单元401或网络模块402进行发送。麦克风4042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元401发送到移动通信基站的格式输出。
电子设备400还包括至少一种传感器405,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板4061的亮度,接近传感器可在电子设备400移动到耳边时,关闭显示面板4061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如 横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器405还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元406用于显示由用户输入的信息或提供给用户的信息。显示单元606可包括显示面板4061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板4061。
用户输入单元407可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元407包括触控面板4071以及其他输入设备4072。触控面板4071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板4071上或在触控面板4071附近的操作)。触控面板4071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器4,接收处理器4发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板4071。除了触控面板4071,用户输入单元407还可以包括其他输入设备4072。具体地,其他输入设备4072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板4071可覆盖在显示面板4061上,当触控面板6071检测到在其上或附近的触摸操作后,传送给处理器4以确定触摸事件的类型,随后处理器4根据触摸事件的类型在显示面板4061上提供相应的视觉输出。虽然在图4中,触控面板4071与显示面板4061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板4071与显示面板4061集成而实现电子设备的输入和输出功能,具体此处不做限定。
接口单元408为外部装置与电子设备400连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有 线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元408可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备400内的一个或多个元件或者可以用于在电子设备400和外部装置之间传输数据。
存储器409可用于存储软件程序以及各种数据。存储器409可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器409可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器4是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器409内的软件程序和/或模块,以及调用存储在存储器409内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器4可包括一个或多个处理单元;优选的,处理器4可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器4中。
电子设备400还可以包括给各个部件供电的电源411(比如电池),优选的,电源611可以通过电源管理系统与处理器4逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,电子设备400包括一些未示出的功能模块,在此不再赘述。
优选的,本发明实施例还提供一种电子设备,包括处理器5,存储器5,存储在存储器5上并可在所述处理器5上运行的计算机程序,该计算机程序被处理器5执行时实现上述应用程序的控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包 括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。

Claims (10)

  1. 一种电子设备,所述电子设备包括壳体、陶瓷扬声器、电容检测组件、处理器和驱动器;
    所述陶瓷扬声器设置于所述壳体内,所述陶瓷扬声器具有激励器,所述激励器与所述壳体相连;
    所述电容检测组件包括第一电容片、第二电容片和检测芯片,所述第一电容片连接在所述激励器和所述壳体之间,所述第二电容片连接在所述激励器的远离所述壳体的一侧,所述检测芯片分别与所述第一电容片和所述第二电容片电连接,所述第一电容片和所述第二电容片组成可变电容单元,所述可变电容单元的电容值随所述壳体的形变而发生变化,所述检测芯片用于获取所述可变电容单元的实时电容值;
    所述处理器分别与所述驱动器和所述电容检测组件电连接,所述驱动器和所述激励器电连接,所述处理器根据所述实时电容值控制所述驱动器调节所述陶瓷扬声器的输出音量。
  2. 根据权利要求1所述的电子设备,其中,所述处理器根据所述实时电容值控制所述陶瓷扬声器的输出音量,包括:
    所述处理器根据所述实时电容值和门限电容值,确定所述陶瓷扬声器的实时补偿值,其中,所述门限电容值为在所述壳体未发生形变的情况下所述电容检测组件获取的电容值;
    所述驱动器基于所述陶瓷扬声器的实时补偿值,调节所述陶瓷扬声器的输出功率,以调节所述陶瓷扬声器的输出音量。
  3. 根据权利要求2所述的电子设备,其中,所述处理器用于:
    根据所述实时电容值和所述门限电容值,确定所述实时电容差值;
    根据所述实时电容差值,确定所述陶瓷扬声器的实时补偿值。
  4. 根据权利要求3所述的电子设备,其中,所述处理器用于:
    获取预设电容值范围和预设补偿值;
    基于所述预设电容值范围和所述预设补偿值,生成所述预设电容值范围和所述预设补偿值之间的对应关系;
    基于所述实时电容差值和所述对应关系,确定所述陶瓷扬声器的实时补偿值。
  5. 根据权利要求4所述的电子设备,其中,所述处理器用于:
    若所述实时电容差值小于或者等于0,确定所述陶瓷扬声的补偿值为0;
    若所述实时电容差值位于第一电容值范围,确定所述陶瓷扬声的补偿值为第一补偿值;
    若所述实时电容差值位于第二电容值范围,确定所述陶瓷扬声的补偿值为第二补偿值;
    若所述实时电容差值位于第三电容值范围,确定所述陶瓷扬声的补偿值为第三补偿值;
    若所述实时电容差值位于第四电容值范围,确定所述陶瓷扬声的补偿值为第四补偿值,其中,所述第二补偿值大于所述第一补偿值,所述第三补偿值大于所述第二补偿值,所述第四补偿值大于所述第三补偿值。
  6. 一种电子设备的音量调节方法,应用于权利要求1-5任一项所述的电子设备,其中,所述音量调节方法包括:
    根据所述实时电容值控制所述驱动器调节所述陶瓷扬声器的输出音量。
  7. 根据权利要求6所述的电子设备的音量调节方法,其中,所述根据所述实时电容值控制所述驱动器调节所述陶瓷扬声器的输出音量,包括:
    根据所述实时电容值和门限电容值,确定所述陶瓷扬声器的实时补偿值,其中,所述门限电容值为在所述壳体未发生形变的情况下所述电容检测组件获取的电容值;
    基于所述陶瓷扬声器的实时补偿值,调节所述陶瓷扬声器的输出功率,以调节所述陶瓷扬声器的输出音量。
  8. 根据权利要求7所述的电子设备的音量调节方法,其中,所述根据所述实时电容值和门限电容值,确定所述陶瓷扬声器的实时补偿值,包括:
    根据所述实时电容值和所述门限电容值,确定所述实时电容差值;
    根据所述实时电容差值,确定所述陶瓷扬声器的实时补偿值。
  9. 根据权利要求8所述的电子设备的音量调节方法,其中,所述根据所述实时电容差值,确定所述陶瓷扬声器的实时补偿值,包括:
    获取预设电容值范围和预设补偿值;
    基于所述预设电容值范围和所述预设补偿值,生成所述预设电容值范围和所述预设补偿值之间的对应关系;
    基于所述实时电容差值和所述对应关系,确定所述陶瓷扬声器的实时补偿值。
  10. 根据权利要求9所述的电子设备的音量调节方法,其中,所述基于所述实时电容差值和所述对应关系,确定所述陶瓷扬声的实时补偿值,包括:
    若所述实时电容差值小于或者等于0,确定所述陶瓷扬声的补偿值为0;
    若所述实时电容差值位于第一电容值范围,确定所述陶瓷扬声的补偿值为第一补偿值;
    若所述实时电容差值位于第二电容值范围,确定所述陶瓷扬声的补偿值为第二补偿值;
    若所述实时电容差值位于第三电容值范围,确定所述陶瓷扬声的补偿值为第三补偿值;
    若所述实时电容差值位于第四电容值范围,确定所述陶瓷扬声的补偿值为第四补偿值,其中,所述第二补偿值大于所述第一补偿值,所述第三补偿值大于所述第二补偿值,所述第四补偿值大于所述第三补偿值。
PCT/CN2020/132219 2019-11-29 2020-11-27 电子设备及其音量调节方法 WO2021104450A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911206003.XA CN111124346B (zh) 2019-11-29 2019-11-29 电子设备及其音量调节方法
CN201911206003.X 2019-11-29

Publications (1)

Publication Number Publication Date
WO2021104450A1 true WO2021104450A1 (zh) 2021-06-03

Family

ID=70497084

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/132219 WO2021104450A1 (zh) 2019-11-29 2020-11-27 电子设备及其音量调节方法

Country Status (2)

Country Link
CN (1) CN111124346B (zh)
WO (1) WO2021104450A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124346B (zh) * 2019-11-29 2021-07-16 维沃移动通信有限公司 电子设备及其音量调节方法
CN112084084B (zh) * 2020-09-09 2022-10-25 维沃移动通信有限公司 电子设备、检测方法及装置
CN113829245B (zh) * 2021-09-30 2023-04-11 中国人民解放军国防科技大学 纳米射流抛光装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140050339A1 (en) * 2012-08-20 2014-02-20 Hsiang-Chih Yu Reverse-Phase Modulating Structure of Piezoelectric Ceramic Speaker
CN107577446A (zh) * 2017-08-23 2018-01-12 瑞声科技(新加坡)有限公司 移动终端的控制方法及移动终端
CN108683761A (zh) * 2018-05-17 2018-10-19 Oppo广东移动通信有限公司 发声控制方法、装置、电子装置及计算机可读介质
CN109085985A (zh) * 2018-07-09 2018-12-25 Oppo广东移动通信有限公司 发声控制方法、装置、电子装置以及存储介质
CN109218504A (zh) * 2018-09-30 2019-01-15 维沃移动通信有限公司 一种声音的输出方法和终端设备
CN111124346A (zh) * 2019-11-29 2020-05-08 维沃移动通信有限公司 电子设备及其音量调节方法

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201541243U (zh) * 2009-09-29 2010-08-04 华为终端有限公司 一种终端的音量调节装置
CN102622142A (zh) * 2011-01-27 2012-08-01 丁行波 一种应用于电容触控板的感应量补偿方法
US9008344B2 (en) * 2013-03-14 2015-04-14 Cirrus Logic, Inc. Systems and methods for using a speaker as a microphone in a mobile device
JP7091745B2 (ja) * 2018-03-19 2022-06-28 株式会社リコー 表示端末、プログラム、情報処理システム及び方法
CN108958632B (zh) * 2018-07-09 2021-09-14 Oppo广东移动通信有限公司 发声控制方法、装置、电子设备及存储介质
CN109189362B (zh) * 2018-07-09 2022-07-12 Oppo广东移动通信有限公司 发声控制方法、装置、电子设备及存储介质
CN109348365A (zh) * 2018-11-05 2019-02-15 苏州延声家居科技有限公司 一种触控式陶瓷音响

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140050339A1 (en) * 2012-08-20 2014-02-20 Hsiang-Chih Yu Reverse-Phase Modulating Structure of Piezoelectric Ceramic Speaker
CN107577446A (zh) * 2017-08-23 2018-01-12 瑞声科技(新加坡)有限公司 移动终端的控制方法及移动终端
CN108683761A (zh) * 2018-05-17 2018-10-19 Oppo广东移动通信有限公司 发声控制方法、装置、电子装置及计算机可读介质
CN109085985A (zh) * 2018-07-09 2018-12-25 Oppo广东移动通信有限公司 发声控制方法、装置、电子装置以及存储介质
CN109218504A (zh) * 2018-09-30 2019-01-15 维沃移动通信有限公司 一种声音的输出方法和终端设备
CN111124346A (zh) * 2019-11-29 2020-05-08 维沃移动通信有限公司 电子设备及其音量调节方法

Also Published As

Publication number Publication date
CN111124346B (zh) 2021-07-16
CN111124346A (zh) 2020-05-08

Similar Documents

Publication Publication Date Title
WO2021104450A1 (zh) 电子设备及其音量调节方法
WO2020238635A1 (zh) 移动终端及出音口的切换方法
US20230254395A1 (en) Electronic Device and Control Method Thereof
WO2021121262A1 (zh) 电子设备及其控制方法、控制装置、计算机可读存储介质
CN110784637B (zh) 摄像头模组和电子设备
WO2021204045A1 (zh) 音频的控制方法及电子设备
WO2021063249A1 (zh) 电子设备的控制方法及电子设备
WO2021233176A1 (zh) 环境光检测方法及电子设备
CN111385714B (zh) 扬声器的音圈温度确定方法、电子设备及存储介质
WO2021197124A1 (zh) 电子设备及压力按键操作方法
WO2020125274A1 (zh) 音频输出方法及移动终端
CA3092598C (en) Display method and mobile terminal
WO2019233302A1 (zh) 触摸屏、触控压力检测方法及终端
WO2020220990A1 (zh) 受话器控制方法及终端
CN108196815B (zh) 一种通话声音的调节方法和移动终端
WO2021180152A1 (zh) 电子设备、其控制方法及介质
US20220232320A1 (en) Receiver control method and device, and electronic device
EP4086712A1 (en) Electronic device and control method
CN111147919A (zh) 一种播放调整方法、电子设备及计算机可读存储介质
WO2021238844A1 (zh) 音频输出方法及电子设备
JP2023508267A (ja) タッチボタン、制御方法及び電子機器
WO2021129835A1 (zh) 音量控制方法、设备及计算机可读存储介质
WO2021098698A1 (zh) 音频播放方法及终端设备
CN111614329B (zh) 一种功率放大器、电子设备、电压控制方法和装置
CN110995909B (zh) 一种声音补偿方法及装置

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: 20894769

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: 20894769

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12/01/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20894769

Country of ref document: EP

Kind code of ref document: A1