Method and apparatus for processing sound hole of speaker and electronic device
View Patent ↗A method and an apparatus for processing a sound hole of a speaker and a terminal device are disclosed. The method includes detecting whether the sound hole of the speaker is blocked, and prompting a user not to block the sound hole of the speaker by hands; and playing a built-in audio source file to drive a preset vibration device to vibrate according to a set vibration intensity to clear foreign matter blocking the sound hole of the speaker when the sound hole of the speaker is blocked.
1. A method for processing a sound hole of a speaker, comprising:
detecting whether the sound hole of the speaker is blocked, and prompting a user not to block the sound hole of the speaker by hands;
playing a built-in audio source file to drive a preset vibration device to vibrate the sound hole according to a preset vibration intensity to clear foreign matter blocking the sound hole of the speaker when the sound hole of the speaker is blocked; and
after the clearing the foreign matter blocking the sound hole of the speaker:
reperforming the detecting whether the sound hole of the speaker is blocked and the prompting the user not to block the sound hole of the speaker by hands after a preset time period; and
prompting the user to repair the sound hole when the sound hole of the speaker continues to be blocked.
2. The method of claim 1 , further comprising:
before detecting whether the sound hole of the speaker is blocked:
providing a fault detection interface to the user wherein the fault detection interface comprises a function key for sound hole detection of whether the sound hole of the speaker is blocked; and
receiving clicks associated with the user on the function key for sound hole detection in the fault detection interface.
3. The method of claim 1 , wherein the detecting whether the sound hole of the speaker is blocked comprises:
obtaining a real-time impedance value of the speaker, and
determining whether the sound hole of the speaker is blocked according to the real-time impedance value.
4. The method of claim 1 , further comprising:
before the playing the built-in audio source file, determining by a text or voice command whether to clear the sound hole of the speaker.
5. The method of claim 1 , wherein the preset vibration intensity is increased during the playing built-in audio source file.
6. The method of claim 5 , wherein the preset vibration intensity is increased at an interval during the playing built-in audio source file.
7. The method of claim 1 , wherein the preset vibration intensity is constant during the playing built-in audio source file.
8. The method of claim 1 , wherein the vibration device comprises a vibration motor, or a micro-motor system.
9. The method of claim 8 , wherein the preset vibration device is disposed at a side of a sound channel of the speaker.
10. The method of claim 1 , wherein the preset time period is not less than a playing duration of the built-in audio source file.
11. The method of claim 1 , further comprising:
prompting the user to make the sound hole face downward when the sound hole of the speaker is blocked.
12. An electronic device, comprising:
a speaker defining a sound hole;
a vibration assembly disposed at a side of a sound channel of the speaker;
a non-transitory memory storing executable program codes; and
a processor configured to perform the executable program codes to:
detect whether the sound hole is blocked;
play a built-in audio source file to drive the vibration assembly to vibrate the sound hole according to a preset vibration intensity to clear foreign matter blocking the sound hole when the sound hole is blocked;
reperform detecting whether the sound hole of the speaker is blocked and prompt a user not to block the sound hole of the speaker by hands after a preset time period; and
prompt the user to repair the sound hole when the sound hole of the speaker continues to be blocked.
13. The electronic device of claim 12 , wherein the vibration assembly comprises a vibration motor or a micro-motor system.
14. The electronic device of claim 12 , further comprising:
a dustproof net attached to the sound channel of the speaker.
15. The electronic device of claim 12 , wherein the detecting whether the sound hole is blocked comprises:
obtaining a real-time impedance value of the speaker; and
determining whether the sound hole is blocked according to the real-time impedance value.
16. The electronic device of claim 12 , wherein the processor further determines whether to clear the sound hole by a text or voice command before the playing the built-in audio source file.
17. The electronic device of claim 12 , wherein the preset vibration intensity is increased during the playing built-in audio source file.
18. The electronic device of claim 12 , wherein the preset vibration intensity is constant during the playing built-in audio source file.
19. A non-transitory storage medium storing a computer program, when executed, causing a processor to:
detect whether a sound hole of a speaker is blocked, and prompt a user not to block the sound hole by hands; and
play a built-in audio source file to drive a preset vibration device to vibrate the sound hole according to a preset vibration intensity to clear foreign matter blocking the sound hole when the sound hole is blocked;
reperform detecting whether the sound hole of the speaker is blocked and prompt the user not to block the sound hole of the speaker by hands after a preset time period; and
prompt the user to repair the sound hole when the sound hole of the speaker continues to be blocked.