CN117714921A - Audio playing method and audio playing device - Google Patents

Audio playing method and audio playing device Download PDF

Info

Publication number
CN117714921A
CN117714921A CN202211084158.2A CN202211084158A CN117714921A CN 117714921 A CN117714921 A CN 117714921A CN 202211084158 A CN202211084158 A CN 202211084158A CN 117714921 A CN117714921 A CN 117714921A
Authority
CN
China
Prior art keywords
audio
playing
terminal
executed
earphone body
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211084158.2A
Other languages
Chinese (zh)
Inventor
冯霁
张博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GBA National Institute for Nanotechnology Innovation
Original Assignee
GBA National Institute for Nanotechnology Innovation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GBA National Institute for Nanotechnology Innovation filed Critical GBA National Institute for Nanotechnology Innovation
Priority to CN202211084158.2A priority Critical patent/CN117714921A/en
Publication of CN117714921A publication Critical patent/CN117714921A/en
Pending legal-status Critical Current

Links

Abstract

The application provides an audio playing method and an audio playing device. The audio playing method comprises the following steps: when the first terminal plays a first audio through the earphone body, if the second terminal plays a second audio, determining the audio type of the second audio; the audio type comprises multimedia audio, call audio and non-multimedia audio; and determining a playing task to be executed by the earphone body and a first playing process to be executed by the first terminal and a second playing process to be executed by the second terminal according to the audio type of the first audio and the audio type of the second audio, so that the earphone body executes the playing task when the first terminal executes the first playing process and the second terminal executes the second playing process. According to the method and the device, switching control of the wireless earphone between the multiple terminals can be achieved, and convenience is improved.

Description

Audio playing method and audio playing device
Technical Field
The application relates to the technical field of intelligent terminals, in particular to an audio playing method and an audio playing device.
Background
With the development of intelligent terminal technology, according to different application scenarios and user needs, more and more product types including mobile phones, tablet computers, intelligent wearable devices and the like are presented in the intelligent terminal, and besides the initial common use of the wireless earphone in mobile phones, the current wireless earphone can also be applied to various intelligent terminals supporting wireless connection.
In order to facilitate the use, a user usually only carries a pair of wireless earphone, and the wireless earphone is switched on different intelligent terminals according to the needs, but the convenience of the switching of the wireless earphone is poor at present.
Disclosure of Invention
The embodiment of the application provides an audio playing method and an audio playing device, which can realize the switching control of wireless headphones used among multiple terminals and improve convenience.
In a first aspect, the present application provides an audio playing method, which is applied to a charging bin of a wireless earphone, where the wireless earphone includes an earphone body and the charging bin, the earphone body is at least wirelessly connected with a first terminal and a second terminal, and the charging bin is the first terminal or the second terminal, and the method includes:
when the first terminal plays a first audio through the earphone body, if the second terminal plays a second audio, determining the audio type of the second audio; the audio type comprises multimedia audio, call audio and non-multimedia audio;
And determining a playing task to be executed by the earphone body and a first playing process to be executed by the first terminal and a second playing process to be executed by the second terminal according to the audio type of the first audio and the audio type of the second audio, so that the earphone body executes the playing task when the first terminal executes the first playing process and the second terminal executes the second playing process.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, a playing task to be executed by the earphone body, a first playing process to be executed by the first terminal, and a second playing process to be executed by the second terminal includes:
if the first audio is call audio and the second audio is call audio, generating and displaying a first selection operation prompt;
responding to a first operation instruction input by a user according to the first selection operation prompt, and determining that the playing task is to play the call audio corresponding to the first operation instruction;
if the first operation instruction is to select to play the first audio, the first playing process is to maintain a playing state, and the second playing process is to cut off the second audio;
If the first operation instruction is to select to play the second audio, the first playing process is to cut off the first audio, and the second playing process is to play the second audio through the earphone body.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, a playing task to be executed by the earphone body, a first playing process to be executed by the first terminal, and a second playing process to be executed by the second terminal includes:
if the first audio is call audio or non-multimedia audio and the second audio is multimedia audio, determining that the playing task is to continue playing the first audio, and playing the second audio when the first audio stops playing;
and determining that the first playing process is in a playing state maintenance according to the playing task, wherein the second playing process is to pause playing the second audio until the first audio stops playing, and playing the second audio through the earphone body.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, a playing task to be executed by the earphone body, a first playing process to be executed by the first terminal, and a second playing process to be executed by the second terminal includes:
If the first audio is call audio or non-multimedia audio and the second audio is multimedia audio, determining that the playing task is that a first earphone in the earphone body plays the first audio and a second earphone in the earphone body plays the second audio;
and determining that the first playing process is to maintain playing of the first audio through the first earphone according to the playing task, and the second playing process is to play the second audio through the second earphone.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, a playing task to be executed by the earphone body, a first playing process to be executed by the first terminal, and a second playing process to be executed by the second terminal includes:
if the first audio is call audio, multimedia audio or non-multimedia audio and the second audio is non-multimedia audio, determining that the playing task is to play the first audio and the second audio simultaneously;
and determining that the first playing process is to maintain playing of the first audio through the earphone body according to the playing task, and the second playing process is to play the second audio through the earphone body.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, a playing task to be executed by the earphone body, a first playing process to be executed by the first terminal, and a second playing process to be executed by the second terminal includes:
if the first audio is non-multimedia audio and the second audio is call audio, determining that the playing task is to play the first audio and the second audio simultaneously;
and determining that the first playing process is to maintain playing of the first audio through the earphone body according to the playing task, and the second playing process is to play the second audio through the earphone body.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, a playing task to be executed by the earphone body, a first playing process to be executed by the first terminal, and a second playing process to be executed by the second terminal includes:
if the first audio is call audio, the second audio is non-multimedia audio or multimedia audio, and any terminal in wireless connection with the earphone body is in a do-not-disturb mode, determining that the playing task is to play the first audio;
And determining that the first playing process is to maintain playing of the first audio through the earphone body according to the playing task, and stopping the second playing process is to stop the second audio.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, a playing task to be executed by the earphone body, a first playing process to be executed by the first terminal, and a second playing process to be executed by the second terminal includes:
if the first audio is multimedia audio and the second audio is multimedia audio, the playing task is to play the second audio;
and determining that the first playing process is to stop playing the first audio according to the playing task, and the second playing process is to play the second audio through the earphone body.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, a playing task to be executed by the earphone body, a first playing process to be executed by the first terminal, and a second playing process to be executed by the second terminal includes:
If the first audio is multimedia audio and the second audio is multimedia audio, determining that the playing task is that the first audio is played by a first earphone in the earphone body, and playing the second audio by a second earphone in the earphone body;
and determining that the first playing process is to maintain playing of the first audio through the first earphone according to the playing task, and the second playing process is to play the second audio through the second earphone.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, a playing task to be executed by the earphone body, a first playing process to be executed by the first terminal, and a second playing process to be executed by the second terminal includes:
if the first audio is multimedia audio and the second audio is multimedia audio, determining that the playing task is to play the first audio and the second audio simultaneously;
and determining that the first playing process is to maintain playing of the first audio through the earphone body according to the playing task, and the second playing process is to play the second audio through the earphone body.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, a playing task to be executed by the earphone body, a first playing process to be executed by the first terminal, and a second playing process to be executed by the second terminal includes:
if the first audio is multimedia audio and the second audio is multimedia audio, generating and displaying a second selection operation prompt;
responding to a second operation instruction input by a user according to the second selection operation prompt, and determining that the playing task is to play the multimedia audio corresponding to the second operation instruction;
if the second operation instruction is to select to play the first audio, the first playing process is to maintain a playing state, and the second playing process is to stop the second audio;
and if the second operation instruction is to select to play the second audio, stopping the first audio in the first playing process, and playing the second audio through the earphone body in the second playing process.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, a playing task to be executed by the earphone body, a first playing process to be executed by the first terminal, and a second playing process to be executed by the second terminal includes:
If the first audio is multimedia audio and the second audio is call audio, the playing task is to play the second audio and continue to play the first audio after the second audio stops playing;
and determining that the first playing process is to pause the playing of the first audio according to the playing task until the second audio is resumed after stopping playing, wherein the second playing process is to play the second audio through the earphone body.
In one embodiment, the determining the audio type of the second audio includes:
acquiring playing state parameters of the second terminal fed back by the earphone body; the earphone body is used for sending the play state parameters of the second terminal to the charging bin when the play state parameters of the second terminal are changed;
if the state of the second terminal for playing the second audio is determined according to the current playing state parameter and the playing state parameter at the last change moment, determining the audio type of the second audio according to the current playing state parameter.
In one embodiment, if the state that the second terminal is currently playing the second audio is determined according to the current playing state parameter and the playing state parameter of the last change time, determining the audio type of the second audio according to the current playing state parameter includes:
If the audio type of the second audio is determined to be the non-talking audio according to the current playing state parameter, monitoring the maintaining time of the playing state parameter of the second terminal in the current state;
if the maintaining time is lower than a preset time threshold, judging that the audio type of the second audio is non-multimedia audio;
and if the maintaining time is not lower than the time threshold, judging that the audio type of the second audio is multimedia audio.
In one embodiment, the playing state parameters include a first state parameter and a second state parameter, and the determining that the second terminal is currently in a state of playing the second audio according to the current playing state parameter and the playing state parameter at the last change time includes:
if the first state parameter of the second terminal fed back by the earphone body changes compared with the last change time and the second state parameter of the second terminal does not change after the preset delay time, determining that the second terminal is in a state of playing second audio according to the latest play state parameter of the second terminal and the play state parameter of the last change time.
In one embodiment, the playing state parameters include a first state parameter and a second state parameter, and the determining that the second terminal is currently in a state of playing the second audio according to the current playing state parameter and the playing state parameter at the last change time includes:
if only the first state parameter of the playing state parameters of the second terminal fed back by the earphone body changes compared with the last change time and the second state parameter of the second terminal changes compared with the last change time within a preset delay time, determining that the second terminal is currently in a state of playing second audio according to the playing state parameters of the second terminal fed back by the earphone body and the playing state parameters of the last change time within the delay time.
In one embodiment, the method further comprises:
and if any terminal in wireless connection with the earphone body is in a do-not-disturb mode, controlling the earphone body to prohibit playing of all audio.
In a second aspect, an embodiment of the present application provides an audio playing device, which is applied to a charging bin of a wireless earphone, where the wireless earphone includes an earphone body and the charging bin is at least wirelessly connected with a first terminal and a second terminal, and the charging bin is the first terminal or the second terminal, and the device includes:
The audio type acquisition module is used for determining the audio type of the second audio if the second audio is played by the second terminal when the first terminal plays the first audio through the earphone body; the audio type comprises multimedia audio, call audio and non-multimedia audio;
and the play control module is used for determining a play task to be executed by the earphone body and a first play process to be executed by the first terminal and a second play process to be executed by the second terminal according to the audio type of the first audio and the audio type of the second audio, so that the earphone body executes the play task when the first terminal executes the first play process and the second terminal executes the second play process.
From the above technical solutions, the embodiments of the present application have the following advantages:
the audio playing method and the audio playing device are applied to the charging bin of the wireless earphone, the earphone body is in wireless connection with at least a first terminal and a second terminal through the control of multi-terminal audio switching of the charging bin, the charging bin is the first terminal or the second terminal, when the first terminal plays the first audio through the earphone body, if the second terminal plays the second audio, the audio type of the second audio is determined, the playing task to be executed by the earphone body is determined according to the audio type of the first audio and the audio type of the second audio, and the first playing process to be executed by the first terminal and the second playing process to be executed by the second terminal are further carried out by the first terminal and the second terminal, so that the purpose of executing the playing task at the earphone body is achieved, when the audio tasks triggered among a plurality of terminals connected with the earphone body collide, the audio tasks of the terminals are uniformly coordinated through the charging bin, the audio tasks of the terminals triggered by the earphone body are uniformly controlled, and normal playing of the earphone body is guaranteed, and the normal use of different audio tasks is prevented from being influenced by the collision of users.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a schematic diagram of an application environment of an audio playing method according to an embodiment;
FIG. 2 is a flow chart of an audio playing method according to an embodiment;
fig. 3 is a flowchart illustrating steps of determining a playing task to be executed by the earphone body, a first playing process to be executed by the first terminal, and a second playing process to be executed by the second terminal according to an audio type of the first audio and an audio type of the second audio in one embodiment;
fig. 4 is a flowchart illustrating a first playing process to be executed by the first terminal and a second playing process to be executed by the second terminal according to an audio type of the first audio and an audio type of the second audio;
Fig. 5 is a flowchart illustrating a step of determining an audio type of the second audio according to the current playing state parameter if the second terminal is determined to be in a state of playing the second audio according to the current playing state parameter and the playing state parameter at the previous change moment in one embodiment;
FIG. 6 is a block diagram of an audio playback apparatus according to an embodiment;
FIG. 7 is an internal block diagram of a computer device, in one embodiment.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Fig. 1 is a schematic view of an application environment of an audio playing method in an embodiment. As shown in fig. 1, the application environment includes a wireless headset 110 and a terminal 120, the wireless headset 110 includes a headset body 111 and a charging bin 112, the charging bin 112 can be used as an independent terminal, an operating system is configured, an application program can be run, the charging bin 112 can control audio playing of the terminal 120 through the headset body 111, and the audio playing state of the charging bin 112 and the terminal 120 can be determined according to information fed back by the headset body 111. The earphone body 111 is in wireless communication with the charging bin 112 and the terminal 120 through bluetooth, that is, the earphone body 111 can be connected with at least two terminals simultaneously, for example, the two terminals are a first terminal and a second terminal, and if the charging bin 112 is the first terminal, the terminal 120 is the second terminal; if the charging bin 112 is a second terminal, the terminal 120 is a first terminal. The terminal 120 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices.
As shown in fig. 2, the present application provides an audio playing method applied to the charging bin 112 shown in fig. 1, where the method includes steps S201 to S202, where:
step S201, when the first terminal plays the first audio through the earphone body, if the second terminal plays the second audio, determining the audio type of the second audio.
The audio types include multimedia audio, call audio and non-multimedia audio, the multimedia audio includes audio with longer duration such as audio of music, video, audio of listening to books application program, etc., and the non-multimedia audio is audio with shorter duration such as prompt tone, navigation prompt voice, etc. In addition, the audio type of the first audio may be determined when it triggers the playing, or may be determined when the second terminal plays the second audio.
The audio types of the first audio and the second audio can be determined by acquiring the playing state parameters of the first terminal and the second terminal fed back by the earphone body. The playing state parameter is used for reflecting whether the terminal plays the audio currently, in some embodiments, when the terminal plays the audio with different audio types, the playing state parameter of the terminal is different, or the changing condition of the playing state parameter is different, so that the audio type can be determined according to the playing state parameter.
Step S202, determining a playing task to be executed by the earphone body, a first playing process to be executed by the first terminal, and a second playing process to be executed by the second terminal according to the audio type of the first audio and the audio type of the second audio, so that the earphone body executes the playing task when the first terminal executes the first playing process and the second terminal executes the second playing process.
For the first audio and the second audio that conflict, coordination control needs to be performed according to the audio types of the first audio and the second audio to determine the content to be played by the earphone body, in some embodiments, the manner of playing the content by the earphone body may also be determined according to the audio types of the first audio and the second audio, for example, playing time, playing sequence, playing volume, and the like. Because the earphone body is a carrier for playing audio, the terminal for realizing the corresponding playing task also needs to generate the audio task to cooperate, namely, the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal and the first playing process to be executed by the second terminal are determined, the first playing process is executed by the first terminal, the second playing process is executed by the second terminal, and the earphone body is controlled to cooperate with the terminal for determining the audio to be played according to the playing process to play the audio, so that the determined playing task is executed by the earphone body.
According to the method, the device and the system, the earphone body is controlled to be in multi-terminal audio switching through the charging bin, the earphone body is at least in wireless connection with the first terminal and the second terminal, the charging bin is the first terminal or the second terminal, when the first terminal plays first audio through the earphone body, if the second terminal plays second audio, the audio type of the second audio is determined, the playing task to be executed by the earphone body is determined according to the audio type of the first audio and the audio type of the second audio, the first playing process to be executed by the first terminal and the second playing process to be executed by the second terminal are determined, the first terminal and the second terminal are further enabled to execute respective playing processes, the purpose of executing playing tasks in the earphone body is achieved, when the audio tasks triggered among the plurality of terminals connected with the earphone body conflict, the audio tasks of each terminal triggered by the earphone body are uniformly coordinated through the charging bin, the audio tasks of each terminal triggered by the earphone body are uniformly controlled, normal playing of the earphone body is guaranteed, and the normal use of users due to the fact that different audio tasks conflict influences are avoided.
As shown in fig. 3, in one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal includes:
In step S301, if the first audio is the call audio and the second audio is the call audio, a first selection operation prompt is generated and displayed.
The first selection operation prompt is used for prompting the user that two call audios exist currently, and the user selects which call audio needs to be played through the earphone body by himself. The display means that a first selection operation prompt is displayed on the charging bin or other terminals connected with the earphone body, and the user can select through the displayed terminals.
Step S302, in response to a first operation instruction input by a user according to a first selection operation prompt, determining that the playing task is to play the call audio corresponding to the first operation instruction.
The first operation instruction is an operation instruction which is selected and input by the user through the terminal displaying the first selection operation prompt and needs to be played through the earphone body, so that the playing task plays the call audio selected by the user according to the first operation instruction.
In step S303, if the first operation instruction is to select to play the first audio, the first playing process is to maintain the playing state, and the second playing process is to cut off the second audio.
In this embodiment, the second audio is a post-triggered call audio, so if the first operation instruction points to the first audio, the original playing state of the first audio is maintained, the second audio is continuously played by the earphone body, and the second audio needs to be cut off, so that the first playing process performed by the first terminal is to maintain the playing state, and the second playing process performed by the second terminal is to cut off the second audio.
In step S304, if the first operation instruction is to select to play the second audio, the first playing process is to cut off the first audio, and the second playing process is to play the second audio through the earphone body.
In this embodiment, the second audio is a post-triggered call audio, so if the first operation instruction points to the second audio, the first audio needs to be cut off, and the second audio needs to be played through the earphone body, so that the first playing process performed by the first terminal is to cut off the first audio, and the second playing process performed by the second terminal is to play the second audio through the earphone body.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal includes:
if the first audio is call audio or non-multimedia audio and the second audio is multimedia audio, determining that the playing task is to continue playing the first audio, and playing the second audio when the first audio stops playing;
and determining that the first playing process is in a playing state according to the playing task, and the second playing process is to pause playing the second audio until the first audio stops playing, and playing the second audio through the earphone body.
If the second audio is multimedia audio, the current multimedia audio is considered to be played in the second terminal actively triggered by the user, the audio task actively triggered by the user needs to be played, but the second audio is a later triggered audio task, if the first audio is call audio, the user needs to be preferentially ensured to be able to normally call, at the moment, the second audio needs to be waited, and after the first audio stops playing, namely after the call is ended, the second audio is played through the earphone body; if the first audio is a non-multimedia audio, the second audio can be delayed to be played because of the short duration of the first audio, and the second audio is played after the first audio stops playing. Therefore, when the first audio is call audio or non-multimedia audio and the second audio is multimedia audio, the playing task of the earphone body is to continue playing the first audio and play the second audio when the playing of the first audio is stopped, and in order to achieve the playing task, the first terminal only needs to maintain the playing state and normally play the first audio until the first audio is stopped, and the second terminal needs to pause playing the second audio first and play the second audio through the earphone body when the playing of the first audio is stopped.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal includes:
if the first audio is call audio or non-multimedia audio and the second audio is multimedia audio, determining that the playing task is to play the first audio by a first earphone in the earphone body, and playing the second audio by a second earphone in the earphone body;
and determining the first playing process to play the first audio through the first earphone according to the playing task, and the second playing process to play the second audio through the second earphone.
If the second audio is multimedia audio, the current user actively triggers to play the multimedia audio in the second terminal, the audio task actively triggered by the user needs to be played, but the second audio is an audio task actively triggered by the user, if the first audio is call audio, the user needs to be ensured to be able to normally call, if the first audio is non-multimedia audio, because the duration of playing time of the first audio is short, the two earphones of the earphone body can play the first audio and the second audio respectively under the two conditions, namely, the playing task is to play the first audio by the first earphone in the earphone body, the second earphone in the earphone body plays the second audio, the first terminal keeps playing the first audio by the first earphone through communication transmission, and the second terminal transmits the audio to the second earphone for playing.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal includes:
if the first audio is call audio, multimedia audio or non-multimedia audio and the second audio is non-multimedia audio, determining that the playing task is to play the first audio and the second audio simultaneously;
and determining the first playing process to play the first audio through the earphone body according to the playing task, and the second playing process to play the second audio through the earphone body.
For the situation that the second audio triggered later is non-multimedia audio, because the duration of the second audio is not long, no matter the first audio is call audio, multimedia audio or non-multimedia audio, the simultaneous playing of the first audio and the second audio has little interference to the use of the user, and for some non-multimedia audio, the timeliness requirement is high, for example, navigation voice prompt needs to be played in time. Therefore, the playing task of the earphone body is to play the first audio and the second audio simultaneously, the first playing process to be executed by the first terminal is to continue playing the first audio through the earphone body, and the second playing process to be executed by the second terminal is to play the second audio through the earphone body, so that the first audio and the second audio are played simultaneously in the earphone body.
In order to reduce interference between the first audio and the second audio when they are played simultaneously, in one embodiment, the first playing process may be to reduce the playing volume of the first audio until the playing of the second audio ends. In one embodiment, the second playing process may be to play the second audio at a lower volume than the first audio playing volume.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal includes:
if the first audio is non-multimedia audio and the second audio is call audio, determining that the playing task is to play the first audio and the second audio simultaneously;
and determining the first playing process to play the first audio through the earphone body according to the playing task, and the second playing process to play the second audio through the earphone body.
For the situation that the first audio is non-multimedia audio, the duration playing time is not long, and the second audio is call audio, the user needs to be ensured to be able to normally call, so that the simultaneous playing of the first audio and the second audio has little interference to the use of the user. Therefore, the playing task of the earphone body is to play the first audio and the second audio simultaneously, the first playing process to be executed by the first terminal is to continue playing the first audio through the earphone body, and the second playing process to be executed by the second terminal is to play the second audio through the earphone body, so that the first audio and the second audio are played simultaneously in the earphone body.
In one embodiment, the first playback process may be to play back the first audio at a lower volume than the second audio. By adjusting the playing volume of the first audio and the second audio to different sizes, mutual interference during simultaneous playing is reduced.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal includes:
if the first audio is call audio, the second audio is non-multimedia audio or multimedia audio, and any terminal in wireless connection with the earphone body is in a do-not-disturb mode, determining that the playing task is to play the first audio;
and determining the first playing process to maintain playing of the first audio through the earphone body according to the playing task, and stopping the second playing process to stop the second audio.
When any terminal in wireless connection with the earphone body is in a do-not-disturb mode, the charging bin controls the earphone body to only play conversation audio, and does not respond to audio of other audio types. Therefore, if the first audio is call audio and the second audio is non-multimedia audio or multimedia audio, the second audio is not responded, at this time, the playing task to be executed by the earphone body is to play the first audio, the first playing process to be executed by the first terminal is to maintain to play the first audio through the earphone body, and the second playing process to be executed by the second terminal is to stop the second audio.
In some embodiments, other terminals outside the charging bin may feed back to the charging bin through the earphone body that the terminal is in a do not disturb mode. In another embodiment, terminals other than the charging bin may communicate directly with the charging bin, with the feedback itself being in a do not disturb mode.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal includes:
if the first audio is multimedia audio and the second audio is multimedia audio, the playing task is to play the second audio;
and determining that the first playing process is to stop playing the first audio according to the playing task, and the second playing process is to play the second audio through the earphone body.
If the first audio and the second audio are both multimedia audio, that is, the user actively triggers playing the multimedia audio in the second terminal, and the second audio is an audio task triggered later, at this time, the user considers that the user wants to thoroughly switch to the second terminal to play, so that the playing of the first audio will be stopped, so that the playing task to be executed by the earphone body is playing the second audio, the first playing process to be executed by the first terminal is stopping the first audio, and the second playing process to be executed by the second terminal is playing the second audio through the earphone body.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal includes:
if the first audio is multimedia audio and the second audio is multimedia audio, determining that the playing task is to play the first audio by a first earphone in the earphone body, and playing the second audio by a second earphone in the earphone body;
and determining the first playing process to play the first audio through the first earphone according to the playing task, and the second playing process to play the second audio through the second earphone.
If the first audio and the second audio are both multimedia audio, that is, the user actively triggers to play the multimedia audio in the second terminal, at this time, the user considers that the user wants to play the first audio and the second audio simultaneously, so that the two earphones of the earphone body can play the first audio and the second audio respectively, that is, the playing task is to play the first audio by the first earphone in the earphone body, the second earphone in the earphone body plays the second audio, the first terminal performs communication transmission with the first earphone, the first audio is maintained to play by the first earphone, and the second terminal transmits the audio to the second earphone for playing.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal includes:
if the first audio is multimedia audio and the second audio is multimedia audio, determining that the playing task is to play the first audio and the second audio simultaneously;
and determining the first playing process to play the first audio through the earphone body according to the playing task, and the second playing process to play the second audio through the earphone body.
If the first audio and the second audio are both multimedia audio, that is, the user actively triggers playing the multimedia audio in the second terminal, at this time, the user considers that the user wants to play the first audio and the second audio simultaneously, so that the first audio and the second audio can be played simultaneously through the earphone body, that is, the playing task is to play the first audio and the second audio simultaneously, the first playing process to be executed by the first terminal is to maintain playing of the first audio through the earphone body, and the second playing process to be executed by the second terminal is to play the second audio through the earphone body.
In order to ensure that the mutual interference between the first audio and the second audio can be reduced when the first audio and the second audio are played simultaneously, in one embodiment, the second playing process is to play the second audio at a lower volume than the first audio. That is, by adjusting the volume of the first audio and the volume of the second audio to different sizes, the first audio triggered earlier can be ensured to be played more clearly. In one embodiment, the first playback process may be to play the first audio at a lower volume than the second audio. That is, by adjusting the volume of the first audio and the volume of the second audio to different sizes, the second audio triggered later can be ensured to be played more clearly.
As shown in fig. 4, in one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal includes:
in step S401, if the first audio is multimedia audio and the second audio is multimedia audio, a second selection operation prompt is generated and displayed.
The second selection operation prompt is used for prompting the user that two multimedia audios exist currently, and the user selects which multimedia audio to play through the earphone body by himself. The display means that a second selection operation prompt is displayed on the charging bin or other terminals connected with the earphone body, and the user can select through the displayed terminals.
Step S402, in response to a second operation instruction input by the user according to the second selection operation prompt, determining that the playing task is to play the multimedia audio corresponding to the second operation instruction.
The second operation instruction is an operation instruction which is selected by the user and is input through the terminal displaying the second selection operation prompt, and the multimedia audio needs to be played through the earphone body, so that the playing task plays the multimedia audio selected by the user according to the second operation instruction.
In step S403, if the second operation instruction is to select to play the first audio, the first playing process is to maintain the playing state, and the second playing process is to stop the second audio.
In this embodiment, the second audio is a post-triggered multimedia audio, so if the second operation instruction points to the first audio, the original playing state of the first audio is maintained, the earphone body continues to play, and the second audio needs to be stopped, so that the first playing process performed by the first terminal is to maintain the original playing state, and the second playing process performed by the second terminal is to stop the second audio.
In step S404, if the second operation instruction is to select to play the second audio, the first playing process is to stop the first audio, and the second playing process is to play the second audio through the earphone body.
In this embodiment, the second audio is a post-triggered multimedia audio, so if the second operation instruction points to the second audio, the first audio needs to be stopped, and the second audio needs to be played through the earphone body, so that the first playing process performed by the first terminal is to stop the first audio, and the second playing process performed by the second terminal is to play the second audio through the earphone body.
In this embodiment, the second audio is a post-triggered multimedia audio, so if the second operation instruction points to the first audio, the original playing state of the first audio is maintained, the earphone body continues to play, and the second audio needs to be stopped, so that the first playing process performed by the first terminal is to maintain the original playing state, and the second playing process performed by the second terminal is to stop the second audio.
In one embodiment, the determining, according to the audio type of the first audio and the audio type of the second audio, the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal includes:
if the first audio is multimedia audio and the second audio is call audio, the playing task is to play the second audio, and the first audio is continuously played after the second audio stops playing;
And determining that the first playing process is to pause the first audio according to the playing task until the second audio resumes the playing of the first audio after stopping the playing of the second audio, wherein the second playing process is to play the second audio through the earphone body.
Because the call audio needs to respond in time, when the first audio triggered earlier is the multimedia audio and the second audio triggered later is the call audio, the multimedia audio needs to be interrupted, but the user does not stop the first audio actively at this time, so that the play state when the multimedia audio is interrupted needs to be maintained, the second audio is resumed after the second audio is ended, that is, the play task required to be executed by the earphone body is to play the second audio, and the first audio is continuously played after the second audio stops playing, the first play process to be executed by the first terminal is to pause the first audio until the first audio is resumed after the second audio stops playing, and the resume of playing refers to the original play state before the pause. The second playing process to be executed by the second terminal is to play the second audio through the earphone body.
In one embodiment, the determining the audio type of the second audio includes:
and acquiring the playing state parameters of the second terminal fed back by the earphone body.
The earphone body is used for sending the play state parameters of the second terminal to the charging bin when the play state parameters of the second terminal are changed.
If the state of the second terminal for playing the second audio is determined according to the current playing state parameter and the playing state parameter at the last change moment, determining the audio type of the second audio according to the current playing state parameter.
The playing state parameters of the audio are different when the audio is played and when the audio is not played, so that the second terminal can be determined to be in a second audio playing state or in an unreleased state currently by comparing the playing state parameters of the second terminal at the current changing moment with the playing state parameters of the second terminal at the last changing moment; in addition, the playing state parameters may also have differences when playing the audio with different audio types, and if the audio is in the state of playing the second audio, the audio type of the currently played audio can be judged through the playing state parameters and the state maintaining time thereof.
The playing state parameters include parameters for judging the playing state of the multimedia audio and the type of the multimedia audio, and parameters for judging whether the multimedia audio is in a call state or not. When judging, the charging bin firstly determines whether the terminal is in a call state according to the parameters for judging whether the terminal is in the call state, and if the terminal is not in the call state, the charging bin judges the multimedia audio playing state and the multimedia audio type of the terminal according to the parameters for judging the multimedia audio playing state and the multimedia audio type. The play state parameter may include an a2dp state parameter and an avrcp state parameter, where the a2dp state parameter is true and the avrcp state parameter is true when the second terminal plays the multimedia audio; when the prompting voice audio is played, the a2dp state parameter is true, the avrcp state parameter is false, and the second terminal can directly distinguish the multimedia audio from the non-multimedia audio through the playing state parameter. In another embodiment, the playing state parameter of the second terminal when playing the multimedia audio is the same as the playing state parameter when playing the non-multimedia audio, and the determination needs to be performed in combination with the maintaining time of the current playing state parameter.
In one embodiment, the play status parameter may further include an HSP status parameter and an HFP status parameter, and whether the terminal plays the call audio may be determined according to the HSP status parameter and the HFP status parameter. Specifically, when at least one of the HSP state parameter and the HFP state parameter is true, it may be determined that the terminal is currently in a call state and is playing a call audio.
In some embodiments, the terminal generates call state information when in a call state, and the charging bin can judge that the current terminal is in the call state when identifying the call state information and playing call audio.
As shown in fig. 5, in one embodiment, if it is determined that the second terminal is currently playing the second audio according to the current playing state parameter and the playing state parameter at the previous change time, determining the audio type of the second audio according to the current playing state parameter includes:
step S501, if the audio type of the second audio is determined to be the non-talking audio according to the current playing state parameter, monitoring the maintaining time of the playing state parameter of the second terminal in the current state;
wherein, the maintaining time refers to the time kept under the current playing state parameter; the non-talking audio includes other audio than talking audio, which may be multimedia audio or non-multimedia audio.
In step S502, whether the maintenance time is lower than a preset time threshold is compared.
In step S503, if the maintenance time is lower than the preset time threshold, it is determined that the audio type of the second audio is non-multimedia audio.
If the maintaining time reaches a preset time threshold, stopping monitoring, and directly recognizing that the maintaining time is not lower than the time threshold; if the play state parameter has changed when the maintenance time does not reach the time threshold, the maintenance time is determined to be lower than the time threshold.
In step S504, if the maintenance time is not lower than the time threshold, it is determined that the audio type of the second audio is multimedia.
Because the continuous playing time of the non-multimedia audio is shorter, the playing state parameters change after the playing is finished, and therefore, when the maintaining time is lower than the time threshold, the audio type of the second audio is judged to be the prompt tone audio; the multimedia audio is usually played for a longer time than the non-multimedia audio, so that the audio type of the second audio can be determined as multimedia audio when the play status parameter is still unchanged when the maintenance time reaches the time threshold.
In one embodiment, when determining that the audio type of the second audio is not call audio according to the current play state parameter, processing is firstly performed according to the condition that the second audio is not multimedia audio, and processing is performed according to the condition that the second audio is multimedia audio when the maintenance time reaches the time threshold.
In one embodiment, the playing state parameters include a first state parameter and a second state parameter, and determining that the second terminal is currently playing the second audio according to the current playing state parameter and the playing state parameter at the last change time includes:
if the first state parameter of the second terminal fed back by the earphone body changes compared with the last change moment and the second state parameter of the second terminal does not change after the preset delay time, determining that the second terminal is in a state of playing the second audio according to the latest play state parameter of the second terminal and the play state parameter of the last change moment;
if only the first state parameter of the playing state parameters of the second terminal fed back by the earphone body is changed compared with the last change time, and the second state parameter of the second terminal is changed compared with the last change time within the preset delay time, determining that the second terminal is currently in a state of playing the second audio according to the playing state parameters of the second terminal fed back by the earphone body and the playing state parameters of the last change time within the delay time.
When the audio playing state needs to be judged through the first state parameter and the second state parameter, delay may exist in the change of the first state parameter and the second state parameter, if the judgment of the audio playing state is immediately carried out only when one of the state parameters is changed, misjudgment will occur, and the judgment can be carried out after the preset delay time is elapsed without the judgment when one of the state parameters is changed.
In some embodiments, the first state parameter may be an avrcp state parameter, the second state parameter may be an a2dp state parameter, for some intelligent terminals, there may be a delay in the change of the a2dp state parameter, the change of the avrcp state parameter is changed in real time, and if the determination of the second audio playing state and the audio type is directly performed at the moment when the avrcp state parameter is changed, erroneous determination may occur. In this embodiment, when only the avrcp state parameter of the playing state parameter of the second terminal fed back by the earphone body changes compared with the previous change time, the judgment is not performed first, the preset delay time is delayed, then the judgment is performed, if the delay time is elapsed, the feedback of the earphone body is not received because the a2dp state parameter also changes, the judgment is performed according to the playing state parameter received last time, and the corresponding operation after the judgment is performed; if the delay time is within the delay time, for example, the delay time is 30ms, and when 10ms passes, the a2dp state parameter is also changed, and the re-feedback playing state parameter of the earphone body is received, the judgment is performed according to the playing state parameter fed back when the a2dp state parameter is changed, and the corresponding operation after the judgment is performed.
In one embodiment, the method further comprises:
if any terminal in wireless connection with the earphone body is in a do-not-disturb mode, the earphone body is controlled to prohibit playing of all audio.
In this embodiment, if any terminal wirelessly connected to the earphone body is in a do not disturb mode, that is, the user wants to prohibit all audio, at this time, no matter any terminal triggers an audio task, the charging bin controls the earphone body to prohibit playing.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
The following describes an audio playing device provided in the embodiments of the present application, and the audio playing device described below and the audio playing method described above may be referred to correspondingly.
As shown in fig. 6, an audio playing device 600 is applied to the charging bin shown in fig. 1, and the device includes:
the audio type obtaining module 601 is configured to determine, when the first terminal plays a first audio through the earphone body, if the second terminal plays a second audio, an audio type of the second audio; the audio type comprises multimedia audio, call audio and non-multimedia audio;
the play control module 602 is configured to determine, according to the audio type of the first audio and the audio type of the second audio, a play task to be executed by the earphone body, and a first play process to be executed by the first terminal and a second play process to be executed by the second terminal, so that when the first terminal executes the first play process and the second terminal executes the second play process, the earphone body executes the play task.
The above-mentioned division of the respective modules in the audio playing device is merely for illustration, and in other embodiments, the audio playing device may be divided into different modules as needed to complete all or part of the functions of the audio playing device. The various modules in the audio playback apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, the present application further provides a storage medium having stored therein computer readable instructions that, when executed by one or more processors, cause the one or more processors to perform the audio playing method of any one of the above embodiments.
In one embodiment, the present application further provides a computer device, where computer readable instructions are stored, and when the one or more processors execute the computer readable instructions, the audio playing method according to any one of the foregoing embodiments is executed.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement an audio playback method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, and can also be keys, a track ball, a touch pad or the like arranged on the shell of the computer equipment.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" is at least two, such as two, three, etc., unless explicitly defined otherwise.
In the present specification, each embodiment is described in a progressive manner, and each embodiment focuses on the difference from other embodiments, and may be combined according to needs, and the same similar parts may be referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (18)

1. The audio playing method is characterized by being applied to a charging bin of a wireless earphone, the wireless earphone comprises an earphone body and the charging bin, the earphone body is at least in wireless connection with a first terminal and a second terminal, the charging bin is the first terminal or the second terminal, and the method comprises the following steps:
when the first terminal plays a first audio through the earphone body, if the second terminal plays a second audio, determining the audio type of the second audio; the audio type comprises multimedia audio, call audio and non-multimedia audio;
And determining a playing task to be executed by the earphone body and a first playing process to be executed by the first terminal and a second playing process to be executed by the second terminal according to the audio type of the first audio and the audio type of the second audio, so that the earphone body executes the playing task when the first terminal executes the first playing process and the second terminal executes the second playing process.
2. The audio playing method according to claim 1, wherein the determining the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal according to the audio type of the first audio and the audio type of the second audio includes:
if the first audio is call audio and the second audio is call audio, generating and displaying a first selection operation prompt;
responding to a first operation instruction input by a user according to the first selection operation prompt, and determining that the playing task is to play the call audio corresponding to the first operation instruction;
if the first operation instruction is to select to play the first audio, the first playing process is to maintain a playing state, and the second playing process is to cut off the second audio;
If the first operation instruction is to select to play the second audio, the first playing process is to cut off the first audio, and the second playing process is to play the second audio through the earphone body.
3. The audio playing method according to claim 1, wherein the determining the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal according to the audio type of the first audio and the audio type of the second audio includes:
if the first audio is call audio or non-multimedia audio and the second audio is multimedia audio, determining that the playing task is to continue playing the first audio, and playing the second audio when the first audio stops playing;
and determining that the first playing process is in a playing state maintenance according to the playing task, wherein the second playing process is to pause playing the second audio until the first audio stops playing, and playing the second audio through the earphone body.
4. The audio playing method according to claim 1, wherein the determining the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal according to the audio type of the first audio and the audio type of the second audio includes:
If the first audio is call audio or non-multimedia audio and the second audio is multimedia audio, determining that the playing task is that a first earphone in the earphone body plays the first audio and a second earphone in the earphone body plays the second audio;
and determining that the first playing process is to maintain playing of the first audio through the first earphone according to the playing task, and the second playing process is to play the second audio through the second earphone.
5. The audio playing method according to claim 1, wherein the determining the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal according to the audio type of the first audio and the audio type of the second audio includes:
if the first audio is call audio, multimedia audio or non-multimedia audio and the second audio is non-multimedia audio, determining that the playing task is to play the first audio and the second audio simultaneously;
and determining that the first playing process is to maintain playing of the first audio through the earphone body according to the playing task, and the second playing process is to play the second audio through the earphone body.
6. The audio playing method according to claim 1, wherein the determining the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal according to the audio type of the first audio and the audio type of the second audio includes:
if the first audio is non-multimedia audio and the second audio is call audio, determining that the playing task is to play the first audio and the second audio simultaneously;
and determining that the first playing process is to maintain playing of the first audio through the earphone body according to the playing task, and the second playing process is to play the second audio through the earphone body.
7. The audio playing method according to claim 1, wherein the determining the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal according to the audio type of the first audio and the audio type of the second audio includes:
if the first audio is call audio, the second audio is non-multimedia audio or multimedia audio, and any terminal in wireless connection with the earphone body is in a do-not-disturb mode, determining that the playing task is to play the first audio;
And determining that the first playing process is to maintain playing of the first audio through the earphone body according to the playing task, and stopping the second playing process is to stop the second audio.
8. The audio playing method according to claim 1, wherein the determining the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal according to the audio type of the first audio and the audio type of the second audio includes:
if the first audio is multimedia audio and the second audio is multimedia audio, the playing task is to play the second audio;
and determining that the first playing process is to stop playing the first audio according to the playing task, and the second playing process is to play the second audio through the earphone body.
9. The audio playing method according to claim 1, wherein the determining the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal according to the audio type of the first audio and the audio type of the second audio includes:
If the first audio is multimedia audio and the second audio is multimedia audio, determining that the playing task is that the first audio is played by a first earphone in the earphone body, and playing the second audio by a second earphone in the earphone body;
and determining that the first playing process is to maintain playing of the first audio through the first earphone according to the playing task, and the second playing process is to play the second audio through the second earphone.
10. The audio playing method according to claim 1, wherein the determining the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal according to the audio type of the first audio and the audio type of the second audio includes:
if the first audio is multimedia audio and the second audio is multimedia audio, determining that the playing task is to play the first audio and the second audio simultaneously;
and determining that the first playing process is to maintain playing of the first audio through the earphone body according to the playing task, and the second playing process is to play the second audio through the earphone body.
11. The audio playing method according to claim 1, wherein the determining the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal according to the audio type of the first audio and the audio type of the second audio includes:
if the first audio is multimedia audio and the second audio is multimedia audio, generating and displaying a second selection operation prompt;
responding to a second operation instruction input by a user according to the second selection operation prompt, and determining that the playing task is to play the multimedia audio corresponding to the second operation instruction;
if the second operation instruction is to select to play the first audio, the first playing process is to maintain a playing state, and the second playing process is to stop the second audio;
and if the second operation instruction is to select to play the second audio, stopping the first audio in the first playing process, and playing the second audio through the earphone body in the second playing process.
12. The audio playing method according to claim 1, wherein the determining the playing task to be executed by the earphone body, the first playing process to be executed by the first terminal, and the second playing process to be executed by the second terminal according to the audio type of the first audio and the audio type of the second audio includes:
If the first audio is multimedia audio and the second audio is call audio, the playing task is to play the second audio and continue to play the first audio after the second audio stops playing;
and determining that the first playing process is to pause the playing of the first audio according to the playing task until the second audio is resumed after stopping playing, wherein the second playing process is to play the second audio through the earphone body.
13. The audio playing method according to claim 1, wherein the determining the audio type of the second audio includes:
acquiring playing state parameters of the second terminal fed back by the earphone body; the earphone body is used for sending the play state parameters of the second terminal to the charging bin when the play state parameters of the second terminal are changed;
if the state of the second terminal for playing the second audio is determined according to the current playing state parameter and the playing state parameter at the last change moment, determining the audio type of the second audio according to the current playing state parameter.
14. The audio playing method according to claim 13, wherein if the second terminal determines that the second terminal is currently playing the second audio according to the current playing state parameter and the playing state parameter of the previous change time, determining the audio type of the second audio according to the current playing state parameter includes:
If the audio type of the second audio is determined to be the non-talking audio according to the current playing state parameter, monitoring the maintaining time of the playing state parameter of the second terminal in the current state;
if the maintaining time is lower than a preset time threshold, judging that the audio type of the second audio is non-multimedia audio;
and if the maintaining time is not lower than the time threshold, judging that the audio type of the second audio is multimedia audio.
15. The audio playing method according to claim 13, wherein the playing state parameters include a first state parameter and a second state parameter, and the determining that the second terminal is currently playing the second audio according to the current playing state parameter and the playing state parameter at the previous change time includes:
if the first state parameter of the second terminal fed back by the earphone body changes compared with the last change time and the second state parameter of the second terminal does not change after the preset delay time, determining that the second terminal is in a state of playing second audio according to the latest play state parameter of the second terminal and the play state parameter of the last change time.
16. The audio playing method according to claim 13, wherein the playing state parameters include a first state parameter and a second state parameter, and the determining that the second terminal is currently playing the second audio according to the current playing state parameter and the playing state parameter at the previous change time includes:
if only the first state parameter of the playing state parameters of the second terminal fed back by the earphone body changes compared with the last change time and the second state parameter of the second terminal changes compared with the last change time within a preset delay time, determining that the second terminal is currently in a state of playing second audio according to the playing state parameters of the second terminal fed back by the earphone body and the playing state parameters of the last change time within the delay time.
17. The audio playing method according to claim 1, characterized in that the method further comprises:
and if any terminal in wireless connection with the earphone body is in a do-not-disturb mode, controlling the earphone body to prohibit playing of all audio.
18. An audio playing device, characterized in that is applied to wireless earphone's storehouse that charges, wireless earphone include the earphone body with the storehouse that charges, the earphone body at least with first terminal, second terminal wireless connection, the storehouse that charges be first terminal or second terminal, the device includes:
The audio type acquisition module is used for determining the audio type of the second audio if the second audio is played by the second terminal when the first terminal plays the first audio through the earphone body; the audio type comprises multimedia audio, call audio and non-multimedia audio;
and the play control module is used for determining a play task to be executed by the earphone body and a first play process to be executed by the first terminal and a second play process to be executed by the second terminal according to the audio type of the first audio and the audio type of the second audio, so that the earphone body executes the play task when the first terminal executes the first play process and the second terminal executes the second play process.
CN202211084158.2A 2022-09-06 2022-09-06 Audio playing method and audio playing device Pending CN117714921A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211084158.2A CN117714921A (en) 2022-09-06 2022-09-06 Audio playing method and audio playing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211084158.2A CN117714921A (en) 2022-09-06 2022-09-06 Audio playing method and audio playing device

Publications (1)

Publication Number Publication Date
CN117714921A true CN117714921A (en) 2024-03-15

Family

ID=90153897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211084158.2A Pending CN117714921A (en) 2022-09-06 2022-09-06 Audio playing method and audio playing device

Country Status (1)

Country Link
CN (1) CN117714921A (en)

Similar Documents

Publication Publication Date Title
US8483765B2 (en) User terminal for performing a plurality of applications simultaneously
CN111181816B (en) Audio data routing between multiple wirelessly connected devices
CN110168942B (en) Method, terminal, system and storage medium for selecting Bluetooth device
CN101695189B (en) Method for conducting data synchronization by earphone, and corresponding earphone and mobile terminal
JP6057504B2 (en) Electronic device, output control method, and output control program
EP3537734B1 (en) Method and device for connecting a bluetooth device
JP7114531B2 (en) Earset control method and system
CN105630586A (en) Information processing method and electronic device
US20220322059A1 (en) Bluetooth data transmission method and apparatus, terminal and storage medium
WO2020063069A1 (en) Audio playing method and apparatus, electronic device and computer-readable medium
JP2007049706A (en) Mobile communication terminal capable of downloading content and method of downloading content for mobile communication terminal
WO2023087793A1 (en) Audio service processing method and apparatus, electronic device, and storage medium
KR20210105785A (en) Electronic device and method for controlling audio output thereof
CN117714921A (en) Audio playing method and audio playing device
JP2022522207A (en) Transmission resource instruction method, transmission method, network equipment and terminals
CN111656303A (en) Gesture control of data processing apparatus
KR101437572B1 (en) Mobile terminal control method for voice talk
CN108184193A (en) Control method for playing back, bluetooth equipment and the computer storage media of bluetooth playback terminal
CN111050240A (en) Earphone mode switching method and device
JP5430906B2 (en) Communication terminal
CN108702681A (en) AC method for limiting and device
CN106302000A (en) Access based reminding method, device and the terminal of webpage
KR20220016544A (en) Electronic device for supporting audio sharing
CN108292142A (en) Computer, the method for control computer and computer-readable medium
JP2021531519A (en) Touch signal processing methods, devices and media

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination