IP Library Granted Patent US 11,477,591
Granted Patent B2
US 11,477,591 · App. 16/328,507 · Granted Oct 18, 2022

Audio data processing method, terminal device, and storage medium

Inventors: Qian Xu (Nanjing, CN); Jie Li (Nanjing, CN)
Assignee: Honor Device Co., Ltd.
H04S1/00
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 11,477,591
App. No.
16/328,507
Granted
Oct 18, 2022
Kind
B2
Abstract

The present disclosure relates to audio data processing methods and devices. One example method includes obtaining a first audio data and a second audio data, converting the first audio data into a first channel of audio data and converting the second audio data into a second channel of audio data, and at least one of outputting the first channel of audio data to a first audio output device or outputting the second channel of audio data to a second audio output device.

Claims (53)

1. An audio data processing method, applied to a terminal device provided with a first audio output device and a second audio output device, wherein the method comprises:

obtaining, by the terminal device, first audio data and second audio data;

converting, by the terminal device, the first audio data into a first channel of audio data, and converting the second audio data into a second channel of audio data;

combining, by the terminal device, the first channel of audio data and the second channel of audio data into third audio data, wherein the third audio data is one piece of audio data, wherein the first channel of audio data is audio data in a first channel of the third audio data, and the second channel of audio data is audio data in a second channel of the third audio data, wherein the third audio data further comprises at least one frame of audio data, wherein the at least one frame of audio data of the third audio data comprises a left channel of audio data and a right channel of audio data, wherein the audio data in the left channel of the at least one frame of audio data of the third audio data is the first channel of audio data, and audio data in the right channel of the at least one frame of audio data of the third audio data is the second channel of audio data, and wherein an audio chip of the terminal device that is able to receive only one piece of audio data is able to receive the first channel of audio data and the second channel of audio data simultaneously; and

at least one of:

outputting, by the terminal device, the first channel of audio data to the first audio output device, wherein the terminal device performs path switching for the third audio data by using the audio chip of the terminal device to output the first channel of audio data to the first audio output device, and wherein outputting the first channel of audio data to the first audio output device comprises outputting the audio data in the first channel of the third audio data to the first audio output device; or

outputting, by the terminal device, the second channel of audio data to the second audio output device, wherein the terminal device performs path switching for the third audio data by using the audio chip of the terminal device to output the second channel of audio data to the second audio output device, and wherein outputting the second channel of audio data to the second audio output device comprises outputting the audio data in the second channel of the third audio data to the second audio output device.

2. The method of claim 1 , wherein the first audio data is mono audio data, and wherein the converting, by the terminal device, the first audio data into a first channel of audio data comprises:

using, by the terminal device, the first audio data as the first channel of audio data.

3. The method of claim 1 , wherein the first audio data is multichannel audio data, and wherein the converting, by the terminal device, the first audio data into a first channel of audio data comprises:

using, by the terminal device, audio data in at least one channel of the first audio data as the first channel of audio data.

4. The method of claim 3 , wherein the using, by the terminal device, audio data in at least one channel of the first audio data as the first channel of audio data comprises:

combining, by the terminal device, audio data in all channels of the first audio data to generate mono audio data of the first audio data; and

using, by the terminal device, the mono audio data of the first audio data as the first channel of audio data.

5. The method of claim 3 , wherein the using, by the terminal device, audio data in at least one channel of the first audio data as the first channel of audio data comprises:

using audio data in a first channel of the first audio data as the first channel of audio data.

6. The method of claim 1 , wherein the first audio output device is an earphone, and wherein the second audio output device is a speaker.

7. The method of claim 6 , wherein the outputting, by the terminal device, the first channel of audio data to the first audio output device comprises:

outputting, by the terminal device, the first channel of audio data to the earphone in response to a detection that the earphone is in contact with a user.

8. The method of claim 6 , wherein the outputting, by the terminal device, the second channel of audio data to the second audio output device comprises:

outputting, by the terminal device, the second channel of audio data to the speaker in response to a detection that the earphone is not in contact with a user.

9. The method of claim 1 , wherein the first audio data is voice announcement audio data, and wherein the second audio data is ringtone audio data.

10. The method of claim 1 , wherein before obtaining the first audio data and the second audio data, the method further comprises:

receiving, by the terminal device, a notification message, wherein the obtained first audio data and the obtained second audio data correspond to the received notification message.

11. The method of claim 10 , wherein the notification message includes an incoming call notification message, an instant messaging notification message, a short message service notification message, a system pushed notification message, or a third-party application pushed notification message.

12. A terminal device, wherein the terminal device is provided with a first audio output device and a second audio output device, and wherein the terminal device comprises at least one processor and at least one memory, the at least one memory comprising instructions that when executed by the at least one processor, cause the terminal device to perform, at least, the following:

obtaining first audio data and second audio data;

converting the first audio data into a first channel of audio data, and converting the second audio data into a second channel of audio data;

combining the first channel of audio data and the second channel of audio data into third audio data, wherein the third audio data is one piece of audio data, wherein the first channel of audio data is audio data in a first channel of the third audio data, and the second channel of audio data is audio data in a second channel of the third audio data, wherein the third audio data further comprises at least one frame of audio data, wherein the at least one frame of audio data of the third audio data comprises a left channel of audio data and a right channel of audio data, wherein the audio data in the left channel of the at least one frame of audio data of the third audio data is the first channel of audio data, and audio data in the right channel of the at least one frame of audio data of the third audio data is the second channel of audio data, and wherein an audio chip of the terminal device that is able to receive only one piece of audio data is able to receive the first channel of audio data and the second channel of audio data simultaneously; and

at least one of:

outputting the first channel of audio data to the first audio output device, wherein the terminal device performs path switching for the third audio data by using the audio chip of the terminal device to output the first channel of audio data to the first audio output device, and wherein outputting the first channel of audio data to the first audio output device comprises outputting the audio data in the first channel of the third audio data to the first audio output device; or

outputting the second channel of audio data to the second audio output device, wherein the terminal device performs path switching for the third audio data by using the audio chip of the terminal device to output the second channel of audio data to the second audio output device, and wherein outputting the second channel of audio data to the second audio output device comprises outputting the audio data in the second channel of the third audio data to the second audio output device.

13. The terminal device of claim 12 , wherein the first audio data is mono audio data, and wherein the converting the first audio data into a first channel of audio data comprises:

using the first audio data as the first channel of audio data.

14. The terminal device of claim 12 , wherein the first audio data is multichannel audio data, and wherein the converting the first audio data into a first channel of audio data comprises:

using audio data in at least one channel of the first audio data as the first channel of audio data.

15. The terminal device of claim 14 , wherein the using audio data in at least one channel of the first audio data as the first channel of audio data comprises:

combining audio data in all channels of the first audio data to generate mono audio data of the first audio data; and

using the mono audio data of the first audio data as the first channel of audio data.

16. The terminal device of claim 14 , wherein the using audio data in at least one channel of the first audio data as the first channel of audio data comprises:

using audio data in a first channel of the first audio data as the first channel of audio data.

17. The terminal device of claim 12 , wherein the first audio output device is an earphone, and wherein the second audio output device is a speaker.

18. The terminal device of claim 17 , wherein the outputting the first channel of audio data to the first audio output device comprises:

outputting the first channel of audio data to the earphone in response to a detection that the earphone is in contact with a user.

19. The terminal device of claim 17 , wherein the outputting the second channel of audio data to the second audio output device comprises:

outputting the second channel of audio data to the speaker in response to a detection that the earphone is not in contact with a user.

20. A non-transitory computer readable storage medium storing computer instructions, when executed by at least one processor of a terminal device, cause the at least one processor to:

obtain first audio data and second audio data;

convert the first audio data into a first channel of audio data, and convert the second audio data into a second channel of audio data;

combine the first channel of audio data and the second channel of audio data into third audio data, wherein the third audio data is one piece of audio data, wherein the first channel of audio data is audio data in a first channel of the third audio data, and the second channel of audio data is audio data in a second channel of the third audio data, wherein the third audio data further comprises at least one frame of audio data, wherein the at least one frame of audio data of the third audio data comprises a left channel of audio data and a right channel of audio data, wherein the audio data in the left channel of the at least one frame of audio data of the third audio data is the first channel of audio data, and audio data in the right channel of the at least one frame of audio data of the third audio data is the second channel of audio data, and wherein an audio chip of the terminal device that is able to receive only one piece of audio data is able to receive the first channel of audio data and the second channel of audio data simultaneously; and

at least one of:

output the first channel of audio data to a first audio output device, wherein the terminal device performs path switching for the third audio data by using the audio chip of the terminal device to output the first channel of audio data to the first audio output device, and wherein outputting the first channel of audio data to the first audio output device comprises outputting the audio data in the first channel of the third audio data to the first audio output device; or

output the second channel of audio data to a second audio output device, wherein the terminal device performs path switching for the third audio data by using the audio chip of the terminal device to output the second channel of audio data to the second audio output device, and wherein outputting the second channel of audio data to the second audio output device comprises outputting the audio data in the second channel of the third audio data to the second audio output device.

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 Feb 6, 2020
From: XU, QIAN; LI, JIE
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 051737/0572 →
Continuity (1)
Related Publication 20210281963A1 · Sep 9, 2021