CPC H04N 21/439 (2013.01) [G09B 21/006 (2013.01); H04N 5/607 (2013.01); H04R 1/10 (2013.01); H04R 2420/07 (2013.01)] | 8 Claims |
1. An electronic device, comprising:
a speaker; and
a processor connected to the speaker,
wherein the processor is configured to:
receive an audio and video file, wherein the audio and video file comprises main channel audio and audio description;
cause the electronic device to output the main channel audio and the audio description to a headphone, and cause the electronic device to output the main channel audio to the speaker in a scenario where a normal user and a visually impaired user watch the audio and video file at the same time and the visually impaired user wears the headphone; and
in response to no headphone being connected to the electronic device, cause the electronic device to output the main channel audio and the audio description to the speaker;
wherein the electronic device comprises a decoder, and the processor is further configured to:
cause the decoder to decode the audio and video file to obtain a first decoding result corresponding to the main channel audio and a second decoding result corresponding to the audio description;
wherein the electronic device further comprises a first buffer and a second buffer, the processor is further configured to:
cause the decoder to store the first decoding result to the first buffer, and store the second decoding result to the second buffer;
wherein the electronic device further comprises a mixer, the processor is further configured to cause the electronic device to:
cause the mixer to obtain the first decoding result from the first buffer, cause the mixer to obtain the second decoding result from the second buffer in response to the second buffer not being empty, and mix the first decoding result and the second decoding result to obtain a mixed result and send the mixed result to the headphone.
|