IP Library Granted Patent US 10,620,908
Granted Patent B2
US 10,620,908 · App. 16/328,511 · Granted Apr 14, 2020

Audio output method, electronic device, and storage medium

Inventors: Ning Ding (Nanjing, CN); Chong Zhang (Nanjing, CN); Zhen Liu (Nanjing, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
G06F3/165H04R29/001H04M1/725H04R2420/03H04R2420/05
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,620,908
App. No.
16/328,511
Granted
Apr 14, 2020
Kind
B2
Abstract

An audio output method applied to an electronic device having a proximity sensor, where the method includes obtaining proximity data of the proximity sensor when the electronic device is coupled to an audio output device and has an audio signal to output, outputting, by an earpiece of the electronic device, the audio signal when the proximity data meets a preset condition, determining a type of the audio output device, and selecting, based on the type of the audio output device, whether to output the audio signal using the audio output device. Hence, an earpiece is enabled to output an audio signal under a specific condition when an electronic device including a mobile phone is coupled to another audio output device, thereby improving user experience.

Claims (45)

1. An audio output method, wherein the audio output method is applied to an electronic device having a proximity sensor, and wherein the audio output method comprises:

obtaining proximity data of the proximity sensor when the electronic device is coupled to an audio output device and has an audio signal to output;

outputting, using an earpiece of the electronic device, the audio signal when the proximity data meets a preset condition;

determining a type of the audio output device;

selecting, based on the type of the audio output device, whether to output the audio signal using the audio output device; and

outputting the audio signal when the proximity data meets the preset condition by:

setting an audio type of the audio signal to a custom audio type; and

outputting, using the earpiece, the audio signal based on a preset correspondence between the custom audio type and the earpiece.

2. The audio output method of claim 1 , wherein the audio output device is an earphone, and wherein selecting whether to output the audio signal using the audio output device comprises outputting, by the audio output device, the audio signal.

3. The audio output method of claim 1 , wherein the audio output device is a loudspeaker device, and wherein selecting whether to output the audio signal using the audio output device comprises skipping outputting, by the audio output device, the audio signal.

4. The audio output method of claim 1 , further comprising outputting, by the electronic device, prompt information indicating that the earpiece of the electronic device outputs the audio signal, and wherein the prompt information is a text prompt or a sound prompt.

5. The audio output method of claim 1 , wherein the proximity data is a distance between the electronic device and an obstacle, and wherein the preset condition comprises that the distance between the electronic device and the obstacle is less than or equal to a preset distance.

6. The audio output method of claim 1 , wherein the audio output device comprises a wired earphone, a BLUETOOTH earphone, or a loudspeaker stereo.

7. The audio output method of claim 1 , wherein the audio signal to output is associated with an incoming voice call, a ringtone, a Voice over Internet Protocol (VoIP) call, a text to speech broadcast, or playing music.

8. An electronic device, comprising:

at least one processor;

at least one earpiece coupled to the at least one processor;

at least one proximity sensor coupled to the at least one processor; and

at least one memory coupled to the at least one processor and configured to store instructions that when executed by the at least one processor, cause the electronic device to:

obtain proximity data of the at least one proximity sensor when the electronic device is coupled to an audio output device and has an audio signal to output;

output, using the at least one earpiece of the electronic device, the audio signal when the proximity data meets a preset condition;

determine a type of the audio output device;

select, based on the type of the audio output device, whether to output the audio signal using the audio output device; and

output the audio signal when the proximity data meets the preset condition by:

setting an audio type of the audio signal to a custom audio type; and

outputting, using the earpiece, the audio signal based on a preset correspondence between the custom audio type and the earpiece.

9. The electronic device of claim 8 , wherein the audio output device is an earphone, and wherein the instructions when executed by the at least one processor, further cause the electronic device to output, using the audio output device, the audio signal.

10. The electronic device of claim 8 , wherein the audio output device is a loudspeaker device, and wherein the instructions when executed by the at least one processor, further cause the electronic device to skip outputting, using the audio output device, the audio signal.

11. The electronic device of claim 8 , wherein the instructions when executed by the at least one processor, further cause the electronic device to output prompt information when the at least one earpiece of the electronic device outputs the audio signal, and wherein the prompt information is a text prompt or a sound prompt.

12. The electronic device of claim 8 , wherein the proximity data is a distance between the electronic device and an obstacle, and wherein the preset condition comprises that the distance between the electronic device and the obstacle is less than or equal to a preset distance.

13. The electronic device of claim 8 , wherein the audio output device comprises a wired earphone, a BLUETOOTH earphone, or a loudspeaker stereo.

14. The electronic device of claim 8 , wherein the audio signal to output is associated with an incoming voice call, a ringtone, a Voice over Internet Protocol (VoIP) call, a text to speech broadcast, or playing music.

15. A non-transitory computer readable medium comprising instructions causing an electronic device to:

obtain proximity data of a proximity sensor when the electronic device is coupled to an audio output device and has an audio signal to output;

output, using an earpiece of the electronic device, the audio signal when the proximity data meets a preset condition;

determine a type of the audio output device;

select, based on the type of the audio output device, whether to output the audio signal using the audio output device; and

output the audio signal when the proximity data meets the preset condition by:

setting an audio type of the audio signal to a custom audio type; and

outputting, using the earpiece, the audio signal based on a preset correspondence between the custom audio type and the earpiece.

16. The non-transitory computer readable medium of claim 15 , wherein the audio output device is an earphone, and wherein the instructions further cause the electronic device to output, using the audio output device, the audio signal.

17. The non-transitory computer readable medium of claim 15 , wherein the audio output device is a loudspeaker device, and wherein the instructions further cause the electronic device to skip outputting, using the audio output device, the audio signal.

18. The non-transitory computer readable medium of claim 15 , wherein the instructions further cause the electronic device to output prompt information when the earpiece of the electronic device outputs the audio signal, and wherein the prompt information is a text prompt or a sound prompt.

19. The non-transitory computer readable medium of claim 15 , wherein the audio output device comprises a wired earphone, a BLUETOOTH earphone, or a loudspeaker stereo.

20. The non-transitory computer readable medium of claim 15 , wherein the audio signal to output is associated with an incoming voice call, a ringtone, a Voice over Internet Protocol (VoIP) call, a text to speech broadcast, or playing music.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 13, 2021
From: HUAWEI TECHNOLOGIES CO., LTD.
To: HONOR DEVICE CO., LTD.
Reel/Frame 055919/0344 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 11, 2019
From: DING, NING; ZHANG, CHONG; LIU, ZHEN
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 051251/0541 →