# US 12,192,395 B2 · Audio module detection method, electronic device and computer storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 12,192,395 B2
- Document ID: US12192395B2
- Status: Granted
- Kind: B2
- Application number: 17/908,875
- Filed: 2022-04-26
- Published: 2024-06-20
- Granted: 2025-01-07
- Earliest claimed: 2021-07-23
- Assignees: Honor Device Co., Ltd.
- Applicants: Honor Device Co., Ltd.
- Inventors: Yingqun Feng; Lixin Zhang
- Web page: https://patentgrep.com/patent/US12192395B2

## CPC

- H04M 1/24: Arrangements for testing
- H04M 1/6016: {in the receiver circuit}
- H04R 29/001: {for loudspeakers (H04R29/007 takes precedence)}
- H04R 29/004: {for microphones (H04R29/007 takes precedence)}
- H04M 1/6008: {in the transmitter circuit}
- H04R 2499/11: Transducers incorporated or for use in hand-held devices, e.g. mobile phones, PDA's, camera's
- Y02D 30/70: in wireless communication networks
- H04M: TELEPHONIC COMMUNICATION (circuits for controlling other apparatus via a telephone cable and not involving telephone switching apparatus G08)
- H04R: LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; ELECTRIC HEARING AIDS; PUBLIC ADDRESS SYSTEMS (producing sounds with frequency not determined by supply frequency G10K)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

This application provides an audio module detection method, an electronic device and a computer storage medium An electronic device to which the audio module detection method is applied includes an audio output module, a first audio collection module, and a second audio collection module. The method includes: when the audio output module outputs first audio, obtaining first energy data indicating volume of the first audio collected by the first audio collection module by using the first audio collection module, and obtaining second energy data indicating volume of the first audio collected by the second audio collection module by using the second audio collection module; and determining, based on the first energy data and the second energy data, whether holes of an audio module are blocked, where the audio module is the audio output module, the first audio collection module, or the second audio collection module.

## Claims

### Claim 1

An audio module detection method, applied to an electronic device, wherein the electronic device comprises an audio output module, a first audio collection module, and a second audio collection module, and the method comprises:
when the audio output module outputs first audio, obtaining first energy data by using the first audio collection module, and obtaining second energy data by using the second audio collection module, wherein the first energy data is used to indicate volume of the first audio collected by the first audio collection module, and the second energy data is used to indicate volume of the first audio collected by the second audio collection module; and
determining, based on the first energy data and the second energy data, whether holes of an audio module are blocked, wherein the audio module is the audio output module, the first audio collection module, or the second audio collection module.

### Claim 2 (depends on 1)

The audio module detection method according to claim 1, wherein the determining, based on the first energy data and the second energy data, whether holes of an audio module are blocked comprises:
determining first status information based on the first energy data, wherein the first status information is used to indicate whether the first energy data is affected by hole blocking;
determining second status information based on the second energy data, wherein the second status information is used to indicate whether the second energy data is affected by hole blocking; and
determining, based on the first status information and the second status information, whether the audio module is blocked.

### Claim 3 (depends on 2)

The audio module detection method according to claim 2, wherein the determining, based on the first status information and the second status information, whether the audio module is blocked comprises:
when the audio module is the audio output module, determining that holes of the audio output module are blocked if the first status information indicates that the first energy data is affected by hole blocking and the second status information indicates that the second energy data is affected by hole blocking;
when the audio module is the first audio collection module, determining that holes of the first audio collection module are blocked if the first status information indicates that the first energy data is affected by hole blocking and the second status information indicates that the second energy data is not affected by hole blocking; or
when the audio module is the second audio collection module, determining that holes of the audio output module are blocked if the first status information indicates that the first energy data is not affected by hole blocking and the second status information indicates that the second energy data is affected by hole blocking.

### Claim 4 (depends on 2)

The audio module detection method according to claim 2, wherein the determining, based on the first status information and the second status information, whether the audio module is blocked comprises:
when the audio module is the audio output module, increasing a first quantity of hole blocking times if the first status information indicates that the first energy data is affected by hole blocking and the second status information indicates that the second energy data is affected by hole blocking; and determining that holes of the audio output module are blocked if the first quantity of hole blocking times is greater than a first preset quantity of hole blocking times;
when the audio module is the first audio collection module, increasing a second quantity of hole blocking times if the first status information indicates that the first energy data is affected by hole blocking and the second status information indicates that the second energy data is not affected by hole blocking; and determining that holes of the first audio collection module are blocked if the second quantity of hole blocking times is greater than a second preset quantity of hole blocking times; or
when the audio module is the second audio collection module, increasing a third quantity of hole blocking times if the first status information indicates that the first energy data is not affected by hole blocking and the second status information indicates that the second energy data is affected by hole blocking, and determining that holes of the second audio collection module are blocked if the third quantity of hole blocking times is greater than a third preset quantity of hole blocking times.

### Claim 5 (depends on 2)

The audio module detection method according to claim 2, wherein
the first energy data is volume collected by the first audio collection module at a first level gain or a plurality of second level gains when the audio output module outputs the first audio at a first volume level, wherein the first volume level is any volume level of at least two preset volume levels, the first level gain is any level gain of at least two first preset level gains, and the plurality of second level gains are any multiple level gains in the at least two first preset level gains; and
the second energy data is volume collected by the first audio collection module at a third level gain or a plurality of fourth level gains when the audio output module outputs the first audio at a second volume level, wherein the second volume level is any volume level of the at least two preset volume levels, the third level gain is any level gain of at least two second preset level gains, and the plurality of fourth level gains are any multiple volume levels in the at least two second preset level gains.

### Claim 6 (depends on 5)

The audio module detection method according to claim 5, wherein the audio module is the audio output module;
the determining first status information based on the first energy data comprises:
determining the first status information based on first calibration data and the first energy data, wherein if a difference between the first calibration data and the first energy data is greater than a first threshold, the first status information is used to indicate that the first energy data is affected by hole blocking, and the first calibration data is volume collected by the first audio collection module without blocked holes when the audio output module outputs second audio without hole blocking; and
the determining second status information based on the second energy data comprises:
determining the second status information based on second calibration data and the second energy data, wherein if a difference between the second calibration data and the second energy data is greater than a second threshold, the second status information is used to indicate that the second energy data is affected by hole blocking, and the second calibration data is volume collected by the second audio collection module without blocked holes when the audio output module outputs the second audio without hole blocking.

### Claim 7 (depends on 6)

The audio module detection method according to claim 6, wherein
the first energy data is energy data collected by the first audio collection module at the first level gain when the audio output module outputs the first audio at the first volume level; and
the first calibration data is energy data collected by the first audio collection module at the first level gain when the audio output module outputs the second audio at the first volume level.

### Claim 8 (depends on 6)

The audio module detection method according to claim 6, wherein
the second energy data is energy data collected by the second audio collection module at the third level gain when the audio output module outputs the first audio at the second volume level; and
the second calibration data is energy data collected by the second audio collection module at the third level gain when the audio output module outputs the second audio at the second volume level.

### Claim 9 (depends on 6)

The audio module detection method according to claim 6, wherein
the first energy data is determined based on a plurality of pieces of first detected energy data obtained by the first audio collection module, wherein the plurality of pieces of first detected energy data are volume that has values in one-to-one correspondence with all second level gains and that is obtained by the first audio collection module at the plurality of second level gains when the audio output module outputs the first audio at the first volume level; and
the first calibration data is determined based on a plurality of pieces of first calibration energy data obtained by the first audio collection module, wherein the plurality of pieces of first calibration energy data are volume that has values in one-to-one correspondence with all second level gains and that is obtained by the first audio collection module at the plurality of second level gains when the audio output module outputs the second audio at the first volume level.

### Claim 10 (depends on 6)

The audio module detection method according to claim 6, wherein
the second energy data is determined based on a plurality of pieces of second detected energy data obtained by the second audio collection module, wherein the plurality of pieces of second detected energy data are volume that has values in one-to-one correspondence with all fourth level gains and that is obtained by the second audio collection module at the plurality of fourth level gains when the audio output module outputs the first audio at the second volume level; and
the second calibration data is determined based on a plurality of pieces of second calibration energy data obtained by the second audio collection module, wherein the plurality of pieces of second calibration energy data are volume that has values in one-to-one correspondence with all fourth level gains and that is obtained by the second audio collection module at the plurality of fourth level gains when the audio output module outputs the second audio at the second volume level.

### Claim 11 (depends on 5)

The audio module detection method according to claim 5, wherein the audio module is the first audio collection module;
the determining first status information based on the first energy data comprises:
determining the first status information based on whether the first energy data is less than a fourth threshold, wherein if yes, the first status information is used to indicate whether the first energy data is affected by hole blocking; and
the determining second status information based on the second energy data comprises:
determining the second status information based on whether a difference between the first energy data and the second energy data is less than a third threshold, wherein if yes, the second status information is used to indicate that the second energy data is not affected by hole blocking.

### Claim 12 (depends on 11)

The audio module detection method according to claim 11, wherein
the first energy data is volume collected by the first audio collection module at the first level gain when the audio output module outputs the first audio at the first volume level; and
the second energy data is volume collected by the second audio collection module at the third level gain when the audio output module outputs the first audio at the second volume level.

### Claim 13 (depends on 11)

The audio module detection method according to claim 11, wherein
the first energy data is determined based on a plurality of pieces of first detected energy data obtained by the first audio collection module, wherein the plurality of pieces of first detected energy data are volume that has values in one-to-one correspondence with all second level gains and that is obtained by the first audio collection module at the plurality of second level gains when the audio output module outputs a second audio at the first volume level; and
the second energy data is determined based on a plurality of pieces of second detected energy data obtained by the second audio collection module, wherein the plurality of pieces of second detected energy data are volume that has values in one-to-one correspondence with all fourth level gains and that is obtained by the second audio collection module at the plurality of fourth level gains when the audio output module outputs the second audio at the second volume level.

### Claim 14 (depends on 5)

The audio module detection method according to claim 5, wherein the audio module is the second audio collection module;
the determining first status information based on the first energy data comprises:
determining the first status information based on whether a difference between the second energy data and the first energy data is less than a fifth threshold, wherein if yes, the first status information is used to indicate that the first energy data is not affected by hole blocking; and
the determining second status information based on the second energy data comprises:
determining the second status information based on whether the second energy data is less than a sixth threshold, wherein if yes, the second status information is used to indicate whether the second energy data is affected by hole blocking.

### Claim 15 (depends on 14)

The audio module detection method according to claim 14, wherein
the first energy data is volume collected by the first audio collection module at the first level gain when the audio output module outputs the first audio at the first volume level; and
the second energy data is volume collected by the second audio collection module at the third level gain when the audio output module outputs the first audio at the second volume level.

### Claim 16 (depends on 14)

The audio module detection method according to claim 14, wherein
the first energy data is determined based on a plurality of pieces of first detected energy data obtained by the first audio collection module, wherein the plurality of pieces of first detected energy data are volume that has values in one-to-one correspondence with all second level gains and that is obtained by the first audio collection module at the plurality of second level gains when the audio output module outputs the first audio at the first volume level; and
the second energy data is determined based on a plurality of pieces of second detected energy data obtained by the second audio collection module, wherein the plurality of pieces of second detected energy data are volume that has values in one-to-one correspondence with all fourth level gains and that is obtained by the second audio collection module at the plurality of fourth level gains when the audio output module outputs the first audio at the second volume level.

### Claim 17 (depends on 1)

The audio module detection method according to claim 1, wherein the method further comprises:
when it is determined that holes of the audio module are blocked, outputting hole blocking prompt information, and/or increasing a gain value of the audio module.

### Claim 18 (depends on 1)

The audio module detection method according to claim 1, wherein the electronic device has an enable control, and the enable control is configured to enable an operation of detecting whether holes of the audio module are blocked; and
the electronic device detects whether holes of the audio module are blocked, in response to an enable operation of a user on the enable control, or based on a preset period, wherein the preset period is a time interval required for consecutively detecting twice whether holes of the audio module are blocked.

### Claim 19 (depends on 1)

An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device is enabled to implement the audio module detection method according to claim 1.

### Claim 20 (depends on 1)

A non-transitory computer readable storage medium, wherein the non-transitory computer readable storage medium stores a computer program, and when the computer program is executed by a processor, the audio module detection method according to claim 1 is implemented.
