Audio playing method and audio playing device
By recognizing and coordinating the audio types of wireless earbuds and multiple devices through the charging case, the problem of poor convenience in switching between different smart devices for wireless earbuds is solved. This enables the earbuds to coordinate audio playback tasks across multiple devices, thereby improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- THE GBA NAT INST FOR NANOTECHNOLOGY INNOVATION
- Filing Date
- 2022-09-06
- Publication Date
- 2026-07-03
AI Technical Summary
Wireless headphones are not convenient to use when switching between different smart devices, resulting in inconsistent audio playback and affecting the user experience.
The charging case of the wireless earbuds identifies and coordinates the audio types of the earbuds and multiple devices, determines the playback task and processing method, and ensures the consistency of audio playback tasks of the earbuds across different devices.
It enables the coordination of audio playback tasks between multiple devices for wireless headphones, avoiding conflicts and ensuring normal use of the headphones and user experience.
Smart Images

Figure CN117714921B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart terminal technology, and in particular to an audio playback method and an audio playback device. Background Technology
[0002] With the development of smart terminal technology, smart terminals have emerged in more and more product types according to different application scenarios and user needs, including mobile phones, tablets, smart wearable devices, etc. In addition to their initial use in mobile phones, wireless headphones can now also be used in various smart terminals that support wireless connectivity.
[0003] For ease of use, users typically carry only one pair of wireless headphones and switch between them on different smart devices as needed. However, the convenience of switching between wireless headphones is currently quite poor. Summary of the Invention
[0004] This application provides an audio playback method and an audio playback device, which can realize the switching control of wireless headphones used in multiple terminals, improving convenience.
[0005] In a first aspect, this application provides an audio playback method applied to a charging case of wireless earphones. The wireless earphones include an earphone body and the charging case. The earphone body is wirelessly connected to at least a first terminal and a second terminal. The charging case is either the first terminal or the second terminal. The method includes:
[0006] 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 audio type includes multimedia audio, call audio, and non-multimedia audio.
[0007] The playback task to be performed by the headphone body is determined based on the audio type of the first audio and the audio type of the second audio, as well as the first playback process to be performed by the first terminal and the second playback process to be performed by the second terminal, so that when the first terminal performs the first playback process and the second terminal performs the second playback process, the headphone body performs the playback task.
[0008] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0009] If both the first and second audio are call audio, then a first selection operation prompt is generated and displayed;
[0010] In response to the first operation instruction input by the user according to the first selection operation prompt, the playback task is determined to be playing the call audio corresponding to the first operation instruction;
[0011] If the first operation instruction is to select to play the first audio, then the first playback process is to maintain the playback state, and the second playback process is to cut off the second audio.
[0012] If the first operation instruction is to select to play the second audio, then the first playback process is to cut off the first audio, and the second playback process is to play the second audio through the headphone body.
[0013] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0014] If the first audio is a call audio or a non-multimedia audio, and the second audio is a multimedia audio, then the playback task is determined to continue playing the first audio, and to play the second audio when the first audio stops playing;
[0015] Based on the playback task, the first playback process is determined to maintain the playback state, and the second playback process is to pause the playback of the second audio until the first audio stops playing, at which point the second audio is played through the headphone body.
[0016] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0017] If the first audio is call audio or non-multimedia audio, and the second audio is multimedia audio, then the playback task is determined to be that the first earphone in the earphone body plays the first audio, and the second earphone in the earphone body plays the second audio;
[0018] Based on the playback task, the first playback process is determined to be to maintain the playback of the first audio through the first headphones, and the second playback process is to play the second audio through the second headphones.
[0019] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0020] If the first audio is a call audio, multimedia audio, or non-multimedia audio, and the second audio is non-multimedia audio, then the playback task is determined to be playing the first audio and the second audio simultaneously.
[0021] Based on the playback task, the first playback process is determined to maintain the playback of the first audio through the headphone body, and the second playback process is determined to play the second audio through the headphone body.
[0022] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0023] If the first audio is a non-multimedia audio and the second audio is a call audio, then the playback task is determined to play the first audio and the second audio simultaneously.
[0024] Based on the playback task, the first playback process is determined to maintain the playback of the first audio through the headphone body, and the second playback process is determined to play the second audio through the headphone body.
[0025] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0026] If the first audio is a call audio, the second audio is a non-multimedia audio or a multimedia audio, and any terminal wirelessly connected to the headset is in Do Not Disturb mode, then the playback task is determined to play the first audio.
[0027] Based on the playback task, the first playback process is determined to maintain the playback of the first audio through the headphone body, and the second playback process is determined to stop the second audio.
[0028] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0029] If the first audio is multimedia audio and the second audio is multimedia audio, then the playback task is to play the second audio.
[0030] Based on the playback task, the first playback process is determined to stop playing the first audio, and the second playback process is determined to play the second audio through the headphone body.
[0031] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0032] If the first audio is multimedia audio and the second audio is multimedia audio, then the playback task is determined to be that the first earphone in the headphone body plays the first audio and the second earphone in the headphone body plays the second audio.
[0033] Based on the playback task, the first playback process is determined to be to maintain the playback of the first audio through the first headphones, and the second playback process is to play the second audio through the second headphones.
[0034] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0035] If the first audio is multimedia audio and the second audio is multimedia audio, then the playback task is determined to be playing the first audio and the second audio simultaneously.
[0036] Based on the playback task, the first playback process is determined to maintain the playback of the first audio through the headphone body, and the second playback process is determined to play the second audio through the headphone body.
[0037] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0038] If the first audio is multimedia audio and the second audio is multimedia audio, then a second selection operation prompt is generated and displayed;
[0039] In response to the second operation instruction input by the user according to the second selection operation prompt, the playback task is determined to be playing the multimedia audio corresponding to the second operation instruction;
[0040] If the second operation instruction is to select to play the first audio, then the first playback process is to maintain the playback state, and the second playback process is to stop the second audio;
[0041] If the second operation instruction is to select to play the second audio, then the first playback process is to stop the first audio, and the second playback process is to play the second audio through the headphone body.
[0042] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0043] If the first audio is multimedia audio and the second audio is call audio, then the playback task is to play the second audio and continue playing the first audio after the second audio stops playing;
[0044] According to the playback task, the first playback process is to pause the playback of the first audio until the second audio stops playing, and then resume the playback of the first audio. The second playback process is to play the second audio through the headphone body.
[0045] In one embodiment, determining the audio type of the second audio includes:
[0046] The playback status parameters of the second terminal fed back by the earphone body are obtained; wherein, the earphone body is used to send the playback status parameters of the second terminal to the charging case when the playback status parameters of the second terminal change;
[0047] If the second terminal is determined to be playing the second audio based on the current playback status parameters and the playback status parameters at the previous time of change, then the audio type of the second audio is determined based on the current playback status parameters.
[0048] In one embodiment, if the second terminal is currently playing the second audio based on the current playback state parameters and the playback state parameters at the previous time of change, then determining the audio type of the second audio based on the current playback state parameters includes:
[0049] If the audio type of the second audio is determined to be non-call audio based on the current playback status parameters, then monitor the duration of the playback status parameters of the second terminal in the current state.
[0050] If the duration is lower than a preset time threshold, the audio type of the second audio is determined to be non-multimedia audio.
[0051] If the duration is not less than the time threshold, then the audio type of the second audio is determined to be multimedia audio.
[0052] In one embodiment, the playback state parameters include a first state parameter and a second state parameter. Determining that the second terminal is currently playing the second audio based on the current playback state parameters and the playback state parameters at the previous time of change includes:
[0053] If the first state parameter of the second terminal fed back by the earphone body changes compared with the previous change time, and the second state parameter of the second terminal does not change after a preset delay time, then the second terminal is determined to be in the state of playing the second audio based on the latest playback state parameter of the second terminal and the playback state parameter at the previous change time.
[0054] In one embodiment, the playback state parameters include a first state parameter and a second state parameter. Determining that the second terminal is currently playing the second audio based on the current playback state parameters and the playback state parameters at the previous time of change includes:
[0055] If only the first state parameter of the second terminal, which is fed back by the earphone body, changes compared to the previous change time, and the second state parameter of the second terminal changes compared to the previous change time within a preset delay time, then the second terminal is currently in the state of playing the second audio based on the playback state parameter of the second terminal fed back by the earphone body within the delay time and the playback state parameter at the previous change time.
[0056] In one embodiment, the method further includes:
[0057] If any terminal wirelessly connected to the earphone is in Do Not Disturb mode, the earphone will be controlled to prevent all audio from playing.
[0058] Secondly, embodiments of this application provide an audio playback device for a charging case of wireless earphones. The wireless earphones include an earphone body and the charging case. The earphone body is wirelessly connected to at least a first terminal and a second terminal. The charging case is either the first terminal or the second terminal. The device includes:
[0059] An audio type acquisition module is used to determine the audio type of the second audio if the second terminal plays the second audio when the first terminal plays the first audio through the earphone body; the audio type includes multimedia audio, call audio, and non-multimedia audio.
[0060] The playback control module is used to determine the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio, so that when the first terminal performs the first playback process and the second terminal performs the second playback process, the headphone body performs the playback task.
[0061] As can be seen from the above technical solutions, the embodiments of this application have the following advantages:
[0062] The audio playback method and device provided in this application are applied to the charging case of wireless earphones. The charging case controls multi-terminal audio switching for the earphones. The earphones are wirelessly connected to at least a first terminal and a second terminal. The charging case is either the first terminal or the second terminal. When the first terminal plays a first audio signal through the earphones, if the second terminal plays a second audio signal, the audio type of the second audio signal is determined. Based on the audio types of the first and second audio signals, the playback task to be performed by the earphones, the first playback processing to be performed by the first terminal, and the second playback processing to be performed by the second terminal are determined. This allows the first and second terminals to perform their respective playback processing, achieving the purpose of performing playback tasks on the earphones. When audio tasks triggered by multiple terminals connected to the earphones conflict, the charging case coordinates and controls the audio tasks of each terminal, ensuring normal playback of the earphones and preventing conflicts between different audio tasks from affecting normal user operation. Attached Figure Description
[0063] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0064] Figure 1 This is a schematic diagram illustrating the application environment of the audio playback method in one embodiment;
[0065] Figure 2 This is a flowchart illustrating an audio playback method in one embodiment;
[0066] Figure 3 In one embodiment, a flowchart is shown showing the steps of determining the playback task to be performed by the headphone body based on the audio type of the first audio and the audio type of the second audio, as well as the first playback processing to be performed by the first terminal and the second playback processing to be performed by the second terminal.
[0067] Figure 4 In another embodiment, a flowchart is shown showing the steps of determining the playback task to be performed by the headphone body based on the audio type of the first audio and the audio type of the second audio, as well as the first playback processing to be performed by the first terminal and the second playback processing to be performed by the second terminal.
[0068] Figure 5 In one embodiment, if it is determined that the second terminal is currently playing the second audio based on the current playback state parameters and the playback state parameters at the previous change time, then the flowchart of the step of determining the audio type of the second audio based on the current playback state parameters is shown.
[0069] Figure 6 This is a structural block diagram of an audio playback device in one embodiment;
[0070] Figure 7 This is a diagram of the internal structure of a computer device in one embodiment. Detailed Implementation
[0071] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0072] Figure 1 This is a schematic diagram illustrating the application environment of an audio playback method in one embodiment. For example... Figure 1As shown, the application environment includes a wireless earphone 110 and a terminal 120. The wireless earphone 110 includes an earphone body 111 and a charging case 112. The charging case 112 can be used as an independent terminal, equipped with an operating system, and can run applications. The charging case 112 can control the audio playback of the terminal 120 through the earphone body 111, and can also determine the audio playback status of the charging case 112 and the terminal 120 based on the information fed back by the earphone body 111. The earphone body 111 wirelessly communicates with the charging case 112 and the terminal 120 via Bluetooth, meaning the earphone body 111 can simultaneously connect to at least two terminals via Bluetooth. For example, the two terminals are the first terminal and the second terminal. If the charging case 112 is the first terminal, then the terminal 120 is the second terminal; if the charging case 112 is the second terminal, then the terminal 120 is the first terminal. The terminal 120 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices.
[0073] like Figure 2 As shown, this application provides an audio playback method, applicable to, for example... Figure 1 The charging case 112 shown, the method includes steps S201 to S202, wherein:
[0074] In step S201, if the second terminal plays the second audio while the first terminal plays the first audio through the headphone body, the audio type of the second audio is determined.
[0075] The audio types include multimedia audio, call audio, and non-multimedia audio. Multimedia audio includes music, video audio, audio from audiobook applications, and other audio with a relatively long playback duration. Non-multimedia audio refers to audio with a shorter playback duration, such as notification sounds and navigation prompts. Furthermore, the audio type of the first audio can be determined when it is triggered for playback, or it can be determined when the second audio is played on the second terminal.
[0076] The audio types of the first and second audio files can be determined by obtaining the playback status parameters of the first and second terminals fed back by the earphone itself. The playback status parameters reflect whether the terminal is currently playing audio. In some embodiments, the playback status parameters of the terminal may differ when playing different audio types, or the changes in the playback status parameters may vary. Therefore, the audio type can be determined based on the playback status parameters.
[0077] Step S202: Determine the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio, so that when the first terminal performs the first playback process and the second terminal performs the second playback process, the headphone body performs the playback task.
[0078] For conflicting first and second audio frequencies, coordinated control is needed based on their audio types to determine the content to be played by the headphones. In some embodiments, the playback method of the headphones can also be determined based on the audio types, such as playback time, playback order, and playback volume. Since the headphones are the carrier for audio playback, the corresponding playback task also requires the cooperation of the terminal that generates the audio task. That is, the playback task to be performed by the headphones is determined, as well as the first playback processing and the second playback processing to be performed by the first terminal and the second terminal, respectively. By performing the first playback processing on the first terminal and the second playback processing on the second terminal, and controlling the headphones to cooperate with the terminal that needs to play the audio as determined by the playback processing, the determined playback task is executed on the headphones.
[0079] This embodiment controls the switching of audio between multiple terminals via the charging case. The earphones are wirelessly connected to at least a first terminal and a second terminal. The charging case is either the first or second terminal. When the first terminal plays the first audio through the earphones, if the second terminal plays the second audio, the audio type of the second audio is determined. Based on the audio types of the first and second audio, the playback task to be performed by the earphones, the first playback processing to be performed by the first terminal, and the second playback processing to be performed by the second terminal are determined. This allows the first and second terminals to perform their respective playback processing, achieving the purpose of performing playback tasks on the earphones. When audio tasks triggered by multiple terminals connected to the earphones conflict, the charging case coordinates and controls the audio tasks of each terminal that triggered the audio tasks, ensuring normal playback of the earphones and avoiding conflicts between different audio tasks that may affect normal user use.
[0080] like Figure 3 As shown, in one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0081] Step S301: If the first audio is a call audio and the second audio is a call audio, then generate and display the first selection operation prompt.
[0082] The first selection prompt indicates to the user that there are two call audio options available, allowing the user to choose which audio to play through the earphone itself. The display refers to showing the first selection prompt on the charging case or other terminal connected to the earphone, enabling the user to make the selection.
[0083] Step S302: In response to the first operation instruction entered by the user according to the first selection operation prompt, determine that the playback task is to play the call audio corresponding to the first operation instruction.
[0084] The first operation instruction is the user's input through the terminal displaying the first selection operation prompt, indicating which call audio should be played through the headset. Therefore, the playback task at this time plays the call audio selected by the user according to the first operation instruction.
[0085] In step S303, if the first operation instruction is to select to play the first audio, then the first playback process is to maintain the playback state, and the second playback process is to cut off the second audio.
[0086] In this embodiment, the second audio is the call audio triggered later. Therefore, if the first operation instruction points to the first audio, the original playback state of the first audio is maintained and the headset continues to play it. The second audio needs to be cut off. Therefore, the first playback process performed by the first terminal is to maintain the playback state, and the second playback process performed by the second terminal is to cut off the second audio.
[0087] In step S304, if the first operation instruction is to select to play the second audio, then the first playback process is to cut off the first audio, and the second playback process is to play the second audio through the headphone body.
[0088] In this embodiment, the second audio is the call audio triggered later. Therefore, 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 headset. Thus, the first playback process performed by the first terminal is to cut off the first audio, and the second playback process performed by the second terminal is to play the second audio through the headset.
[0089] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0090] If the first audio is a call audio or a non-multimedia audio, and the second audio is a multimedia audio, then the playback task is determined to continue playing the first audio and play the second audio when the first audio stops playing;
[0091] Based on the playback task, the first playback process is determined to maintain the playback state, and the second playback process is to pause the playback of the second audio until the first audio stops playing, at which point the second audio will be played through the headphones.
[0092] If the second audio is multimedia audio, it can be assumed that the current playback of multimedia audio on the second terminal is actively triggered by the user. User-initiated audio tasks need to be played, but the second audio is a subsequently triggered task. If the first audio is call audio, priority must be given to ensuring the user can continue the call. In this case, the second audio needs to wait until the first audio stops playing, i.e., the call ends, before playing the second audio through the headset. If the first audio is non-multimedia audio, due to its short playback time, the second audio can be delayed, playing after the first audio stops. Therefore, when the first audio is call audio or non-multimedia audio, and the second audio is multimedia audio, the headset's playback task is to continue playing the first audio and play the second audio when the first audio stops. To achieve this, the first terminal simply maintains playback, playing the first audio normally until it stops. The second terminal needs to pause the playback of the second audio first, and then play the second audio through the headset when the first audio stops.
[0093] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0094] If the first audio is a call audio or a non-multimedia audio, and the second audio is a multimedia audio, then the playback task is determined to be that the first earpiece in the headset plays the first audio, and the second earpiece in the headset plays the second audio.
[0095] Based on the playback task, the first playback process is determined to maintain the playback of the first audio through the first earphone, and the second playback process is to play the second audio through the second earphone.
[0096] If the second audio is multimedia audio, it can be assumed that the current playback of multimedia audio on the second terminal is actively triggered by the user. Audio tasks actively triggered by the user need to be played, but the second audio is an audio task triggered later. If the first audio is call audio, it is necessary to ensure that the user can make a normal call. If the first audio is non-multimedia audio, since its continuous playback time is short, it will not interfere much with the playback of multimedia audio. In both cases, the two earpieces of the headset can play the first audio and the second audio respectively. That is, the playback task is that the first earpiece in the headset plays the first audio, and the second earpiece in the headset plays the second audio. The first terminal communicates with the first earpiece to maintain the playback of the first audio, and the second terminal transmits the audio to the second earpiece for playback.
[0097] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0098] If the first audio is a call audio, multimedia audio, or non-multimedia audio, and the second audio is non-multimedia audio, then the playback task is determined to play the first audio and the second audio simultaneously.
[0099] Based on the playback task, the first playback process is determined to maintain the playback of the first audio through the headphones themselves, and the second playback process is to play the second audio through the headphones themselves.
[0100] When the second audio triggered later is non-multimedia audio, its continuous playback time is short. Therefore, regardless of whether the first audio is call audio, multimedia audio, or non-multimedia audio, playing both the first and second audio simultaneously has little interference with the user experience. Furthermore, for some non-multimedia audio, timeliness is crucial, such as navigation voice prompts, which need to be played promptly. Therefore, the playback task of the headset itself is to play both the first and second audio simultaneously. The first playback process performed by the first terminal is to continue playing the first audio through the headset, and the second playback process performed by the second terminal is to play the second audio through the headset, thus achieving simultaneous playback of both the first and second audio within the headset.
[0101] To reduce interference between the first and second audio files when played simultaneously, in one embodiment, the first playback process may involve lowering the playback volume of the first audio file until the second audio file finishes playing. In another embodiment, the second playback process may involve playing the second audio file at a volume lower than that of the first audio file.
[0102] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0103] If the first audio is a non-multimedia audio and the second audio is a call audio, then the playback task is determined to play the first audio and the second audio simultaneously.
[0104] Based on the playback task, the first playback process is determined to maintain the playback of the first audio through the headphones themselves, and the second playback process is to play the second audio through the headphones themselves.
[0105] If the first audio is non-multimedia audio, its continuous playback time is short. The second audio is call audio, requiring the user to maintain normal communication. Therefore, playing both audio simultaneously has minimal interference with the user experience. Thus, the headset's playback task is to play both audio simultaneously. The first playback process performed by the first terminal is to continue playing the first audio through the headset, and the second playback process performed by the second terminal is to play the second audio through the headset, thereby achieving simultaneous playback of both audio within the headset.
[0106] In one embodiment, the first playback process may involve playing the first audio at a volume lower than that of the second audio. By adjusting the playback volumes of the first and second audio to different levels, mutual interference when playing simultaneously is reduced.
[0107] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0108] If the first audio is a call audio, the second audio is a non-multimedia audio or a multimedia audio, and any terminal wirelessly connected to the headset is in Do Not Disturb mode, then the playback task is determined to be playing the first audio.
[0109] Based on the playback task, the first playback process is determined to maintain the playback of the first audio through the headphones, and the second playback process is to stop the second audio.
[0110] When any device wirelessly connected to the earbuds is in Do Not Disturb mode, the charging case will control the earbuds to play only call audio and will not respond to 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 will not be responded to. In this case, the earbuds will play the first audio, the first playback process for the first device will be to maintain the playback of the first audio through the earbuds, and the second playback process for the second device will be to stop the second audio.
[0111] In some embodiments, other devices besides the charging case can communicate with the charging case via the earbuds themselves, indicating that they are in Do Not Disturb mode. In another embodiment, other devices besides the charging case can communicate directly with the charging case to indicate that they are in Do Not Disturb mode.
[0112] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0113] If both the first and second audio files are multimedia audio files, then the playback task is to play the second audio file.
[0114] Based on the playback task, the first playback process is to stop playing the first audio, and the second playback process is to play the second audio through the headphones.
[0115] If both the first and second audio are multimedia audio, meaning the user actively triggers the playback of multimedia audio on the second terminal, and the second audio is the audio task triggered later, it is assumed that the user wants to completely switch to the second terminal for playback. Therefore, the playback of the first audio will be stopped. Thus, the playback task to be performed by the headphones is to play the second audio, the first playback process to be performed by the first terminal is to stop the first audio, and the second playback process to be performed by the second terminal is to play the second audio through the headphones.
[0116] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0117] If the first audio is multimedia audio and the second audio is multimedia audio, then the playback task is determined to be that the first earphone in the headphone body plays the first audio and the second earphone in the headphone body plays the second audio.
[0118] Based on the playback task, the first playback process is determined to maintain the playback of the first audio through the first earphone, and the second playback process is to play the second audio through the second earphone.
[0119] If both the first and second audio are multimedia audio, meaning the user actively triggers the playback of multimedia audio on the second terminal, it is assumed that the user wants to play both the first and second audio simultaneously. Therefore, the two earpieces of the headset can play the first and second audio respectively. That is, the playback task is that the first earpiece in the headset plays the first audio, and the second earpiece in the headset plays the second audio. The first terminal communicates with the first earpiece to maintain the playback of the first audio, while the second terminal transmits the audio to the second earpiece for playback.
[0120] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0121] If both the first and second audio files are multimedia audio files, then the playback task is to play both the first and second audio files simultaneously.
[0122] Based on the playback task, the first playback process is determined to maintain the playback of the first audio through the headphones themselves, and the second playback process is to play the second audio through the headphones themselves.
[0123] If both the first and second audio are multimedia audio, meaning the user actively triggers the playback of multimedia audio on the second terminal, it is assumed that the user wants to play both the first and second audio simultaneously. Therefore, the first and second audio can be played simultaneously through the headphones. The playback task is to play both the first and second audio simultaneously. The first playback process to be performed by the first terminal is to maintain the playback of the first audio through the headphones, and the second playback process to be performed by the second terminal is to play the second audio through the headphones.
[0124] To minimize interference between the first and second audio audio when played simultaneously, in one embodiment, the second playback process involves playing the second audio at a volume lower than the volume of the first audio. That is, by adjusting the volumes of the first and second audio to different levels, the first audio, which is triggered first, is played more clearly. In another embodiment, the first playback process can be to play the first audio at a volume lower than the volume of the second audio. That is, by adjusting the volumes of the first and second audio to different levels, the second audio, which is triggered later, is played more clearly.
[0125] like Figure 4As shown, in one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0126] Step S401: If the first audio is multimedia audio and the second audio is multimedia audio, then generate and display a second selection operation prompt.
[0127] The second selection prompt indicates to the user that there are two multimedia audio options available, allowing the user to choose which one to play through the earbuds. The display refers to showing the second selection prompt on the charging case or other terminal connected to the earbuds, enabling the user to make the selection.
[0128] Step S402: In response to the second operation instruction entered by the user according to the second selection operation prompt, determine that the playback task is to play the multimedia audio corresponding to the second operation instruction.
[0129] The second operation instruction is the user's input through the terminal that displays the second selection operation prompt, indicating which multimedia audio should be played through the headphones. Therefore, the playback task at this time plays the multimedia audio selected by the user according to the second operation instruction.
[0130] In step S403, if the second operation instruction is to select to play the first audio, then the first playback process is to maintain the playback state, and the second playback process is to stop the second audio.
[0131] In this embodiment, the second audio is a multimedia audio triggered later. Therefore, if the second operation instruction points to the first audio, the original playback state of the first audio is maintained and the headphone body continues to play it. The second audio needs to be stopped. Therefore, the first playback process executed by the first terminal is to maintain the original playback state, and the second playback process executed by the second terminal is to stop the second audio.
[0132] In step S404, if the second operation instruction is to select to play the second audio, then the first playback process is to stop the first audio, and the second playback process is to play the second audio through the headphones.
[0133] In this embodiment, the second audio is a multimedia audio triggered later. Therefore, 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. Thus, the first playback process executed by the first terminal is to stop the first audio, and the second playback process executed by the second terminal is to play the second audio through the earphone.
[0134] In this embodiment, the second audio is a multimedia audio triggered later. Therefore, if the second operation instruction points to the first audio, the original playback state of the first audio is maintained and the headphone body continues to play it. The second audio needs to be stopped. Therefore, the first playback process executed by the first terminal is to maintain the original playback state, and the second playback process executed by the second terminal is to stop the second audio.
[0135] In one embodiment, determining the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes:
[0136] If the first audio is multimedia audio and the second audio is call audio, then the playback task is to play the second audio and continue playing the first audio after the second audio stops playing;
[0137] Based on the playback task, the first playback process is to pause the playback of the first audio until the second audio stops playing, and then resume playback of the first audio. The second playback process is to play the second audio through the headphones.
[0138] Because call audio requires timely response, when the first audio trigger is multimedia audio and the second audio triggers is call audio, the multimedia audio needs to be interrupted. However, this is not because the user actively stops the first audio; therefore, the playback state of the multimedia audio at the time of interruption needs to be maintained, and resumed after the second audio finishes playing. That is, the headset's playback task is to play the second audio and then resume playing the first audio after the second audio stops. The first playback process performed by the first terminal is to pause the first audio playback until the second audio stops, and then resume playback of the first audio. Resuming playback means returning to the original playback state before pausing. The second playback process performed by the second terminal is to play the second audio through the headset.
[0139] In one embodiment, determining the audio type of the second audio includes:
[0140] Obtain the playback status parameters of the second terminal fed back by the headphones themselves.
[0141] The earphone itself is used to send the playback status parameters of the second terminal to the charging case when the playback status parameters of the second terminal change.
[0142] If the second terminal is determined to be playing the second audio based on the current playback status parameters and the playback status parameters at the previous time of change, then the audio type of the second audio is determined based on the current playback status parameters.
[0143] The playback status parameters of audio are different when it is playing and when it is not playing. Therefore, by comparing the playback status parameters of the second terminal at the moment of the change with the playback status parameters at the moment of the last change, it can be determined whether the second terminal is currently playing the second audio or not playing it. Furthermore, the playback status parameters may also differ when playing different types of audio. If it is playing the second audio, the audio type of the currently playing audio can be determined by the playback status parameters and the duration of its state.
[0144] The playback status parameters include parameters for determining the multimedia audio playback status and type, as well as parameters for determining whether the device is in a call. When making this determination, the charging case first uses the parameters for determining whether the device is in a call to determine if it is. If it is not in a call, it then uses the parameters for determining the multimedia audio playback status and type to determine the device's multimedia audio playback status and type. For example, the playback status parameters may include an a2dp status parameter and an avarcp status parameter. When the second terminal is playing multimedia audio, both the a2dp and avarcp status parameters are true; when playing a prompt tone audio, both the a2dp and avarcp status parameters are true. This allows the second terminal to directly distinguish between multimedia audio and non-multimedia audio through the playback status parameters. In another embodiment, the playback status parameters of the second terminal when playing multimedia audio are the same as those when playing non-multimedia audio. In this case, the determination needs to consider the duration of the current playback status parameter.
[0145] In one embodiment, the playback status parameters may further include HSP status parameters and HFP status parameters. The presence or absence of call audio can be determined based on the HSP and HFP status parameters. Specifically, if at least one of the HSP and HFP status parameters is true, it can be determined that the terminal is currently in a call state and is playing call audio.
[0146] In some embodiments, the terminal generates call status information when it is in a call state. When the charging case recognizes the call status information, it can determine that the terminal is currently in a call state and is playing call audio.
[0147] like Figure 5 As shown, in one embodiment, if it is determined that the second terminal is currently playing the second audio based on the current playback state parameters and the playback state parameters at the previous time of change, then determining the audio type of the second audio based on the current playback state parameters includes:
[0148] Step S501: If the audio type of the second audio is determined to be non-call audio based on the current playback status parameters, then monitor the duration of the playback status parameters of the second terminal in the current state.
[0149] The duration of the duration refers to the time the audio remains under the current playback status parameters. Non-call audio includes audio other than call audio, which can be either multimedia audio or non-multimedia audio.
[0150] Step S502: Compare whether the maintenance time is lower than a preset time threshold.
[0151] Step S503: If the duration is lower than a preset time threshold, the audio type of the second audio is determined to be non-multimedia audio.
[0152] If the duration reaches the preset time threshold, the monitoring can be stopped, and it is directly considered that the duration is not less than the time threshold; if the playback status parameters have changed before the duration reaches the time threshold, it is considered that the duration is less than the time threshold.
[0153] Step S504: If the duration is not less than the time threshold, then the audio type of the second audio is determined to be multimedia audio.
[0154] Since non-multimedia audio has a shorter playback duration, its playback status parameters change after playback ends. Therefore, if the duration is less than the time threshold, the second audio is determined to be a prompt audio. Multimedia audio, on the other hand, usually has a longer playback duration than non-multimedia audio. Therefore, if the playback status parameters do not change when the duration reaches the time threshold, the second audio can be determined to be multimedia audio.
[0155] In one embodiment, when the audio type of the second audio is determined to be non-call audio based on the current playback status parameters, it is initially processed as non-multimedia audio. When the duration reaches a time threshold, it is then processed as multimedia audio.
[0156] In one embodiment, the playback state parameters include a first state parameter and a second state parameter. Determining that the second terminal is currently playing the second audio based on the current playback state parameters and the playback state parameters at the previous time of change includes:
[0157] If the first state parameter of the second terminal fed back by the earphone body changes compared with the previous change time, and the second state parameter of the second terminal does not change after a preset delay time, then the second terminal is determined to be in the state of playing the second audio based on the latest playback state parameter of the second terminal and the playback state parameter at the previous change time.
[0158] If only the first state parameter of the second terminal changes compared to the previous change time in the playback state parameters fed back by the earphone body, and the second state parameter of the second terminal changes compared to the previous change time within a preset delay time, then the second terminal is currently in the state of playing the second audio based on the playback state parameters of the second terminal fed back by the earphone body within the delay time and the playback state parameters at the previous change time.
[0159] When the audio playback status needs to be determined by both the first and second state parameters, there may be a delay in the changes of the first and second state parameters. If the audio playback status is determined immediately when only one of the state parameters changes, misjudgment will occur. Therefore, when one of the state parameters changes, the determination can be temporarily suspended and performed after a preset delay time.
[0160] In some embodiments, the first state parameter can be the AVRCP state parameter, and the second state parameter can be the A2DP state parameter. For some smart terminals, the change of the A2DP state parameter may be delayed, while the change of the AVRCP state parameter is real-time. If the second audio playback status and audio type are judged directly at the moment the AVRCP state parameter changes, misjudgment may occur. In this embodiment, if only the AVRCP state parameter changes compared to the previous change moment in the playback status parameters of the second terminal fed back by the earphone, no judgment is made first, and a judgment is made after a preset delay time. If no feedback is received from the earphone due to the change of the A2DP state parameter after the delay time, the judgment is made based on the most recently received playback status parameter, and the corresponding operation after the judgment is executed. If, within the delay time, for example, the delay time is 30ms, and after 10ms, the playback status parameter is fed back from the earphone due to the change of the A2DP state parameter, the judgment is made based on the playback status parameter fed back when the A2DP state parameter changed, and the corresponding operation after the judgment is executed.
[0161] In one embodiment, the method further includes:
[0162] If any device wirelessly connected to the earphone is in Do Not Disturb mode, the earphone will be controlled to prevent all audio from playing.
[0163] In this embodiment, if any terminal wirelessly connected to the earphone is in Do Not Disturb mode, i.e., the user wants to mute all audio, the charging case will control the earphone to mute playback regardless of which terminal triggers the audio task.
[0164] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0165] The audio playback device provided in the embodiments of this application is described below. The audio playback device described below can be referred to in correspondence with the audio playback method described above.
[0166] like Figure 6 As shown, an audio playback device 600 is applied to, for example... Figure 1 The charging case shown includes:
[0167] The audio type acquisition module 601 is used to determine the audio type of the second audio when the first terminal plays the first audio through the earphone body and the second terminal plays the second audio; the audio type includes multimedia audio, call audio and non-multimedia audio.
[0168] The playback control module 602 is used to determine the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio, so that when the first terminal performs the first playback process and the second terminal performs the second playback process, the headphone body performs the playback task.
[0169] The division of modules in the above-described audio playback device is merely illustrative. In other embodiments, the audio playback device can be divided into different modules as needed to complete all or part of the functions of the audio playback device. Each module in the above-described audio playback device can be implemented entirely or partially through software, hardware, or a combination thereof. Each module can be embedded in or independent of the processor in a computer device in hardware form, or it can be stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0170] In one embodiment, this application also provides a storage medium storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the audio playback method described in any of the above embodiments.
[0171] In one embodiment, this application also provides a computer device storing computer-readable instructions, wherein when the one or more processors execute the computer-readable instructions, they perform the audio playback method described in any of the above embodiments.
[0172] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements an audio playback method. The display screen can be an LCD screen or an e-ink display screen. The input devices can be a touch layer covering the display screen, or buttons, a trackball, or a touchpad located on the computer device's casing.
[0173] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0174] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The processors involved in the embodiments provided in this application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited thereto.
[0175] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0176] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0177] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referred to each other.
[0178] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not 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
1. An audio playback method, characterized in that, A charging case for wireless earphones, the wireless earphones comprising an earphone body and the charging case, the earphone body being wirelessly connected to at least a first terminal and a second terminal, the charging case being either the first terminal or the second terminal, the method comprising: 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 audio type includes multimedia audio, call audio, and non-multimedia audio. The playback task to be performed by the headphone body is determined based on the audio type of the first audio and the audio type of the second audio, as well as the first playback process to be performed by the first terminal and the second playback process to be performed by the second terminal, so that when the first terminal performs the first playback process and the second terminal performs the second playback process, the headphone body performs the playback task.
2. The audio playback method according to claim 1, characterized in that, The step of determining the playback task to be performed by the earphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes: If both the first and second audio sources are call audio sources, a first selection operation prompt is generated and displayed. In response to the first operation instruction input by the user according to the first selection operation prompt, the playback task is determined to be playing the call audio corresponding to the first operation instruction; If the first operation instruction is to select to play the first audio, then the first playback process is to maintain the playback state, and the second playback process is to cut off the second audio. If the first operation instruction is to select to play the second audio, then the first playback process is to cut off the first audio, and the second playback process is to play the second audio through the headphone body.
3. The audio playback method according to claim 1, characterized in that, The step of determining the playback task to be performed by the earphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes: If the first audio is a call audio or a non-multimedia audio, and the second audio is a multimedia audio, then the playback task is determined to continue playing the first audio, and to play the second audio when the first audio stops playing; Based on the playback task, the first playback process is determined to maintain the playback state, and the second playback process is to pause the playback of the second audio until the first audio stops playing, at which point the second audio is played through the headphone body.
4. The audio playback method according to claim 1, characterized in that, The step of determining the playback task to be performed by the earphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on 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, then the playback task is determined to be that the first earphone in the earphone body plays the first audio, and the second earphone in the earphone body plays the second audio; Based on the playback task, the first playback process is determined to be to maintain the playback of the first audio through the first headphones, and the second playback process is to play the second audio through the second headphones.
5. The audio playback method according to claim 1, characterized in that, The step of determining the playback task to be performed by the earphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes: If the first audio is a call audio, multimedia audio, or non-multimedia audio, and the second audio is non-multimedia audio, then the playback task is determined to be playing the first audio and the second audio simultaneously. Based on the playback task, the first playback process is determined to maintain the playback of the first audio through the headphone body, and the second playback process is determined to play the second audio through the headphone body.
6. The audio playback method according to claim 1, characterized in that, The step of determining the playback task to be performed by the earphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes: If the first audio is a non-multimedia audio and the second audio is a call audio, then the playback task is determined to play the first audio and the second audio simultaneously. Based on the playback task, the first playback process is determined to maintain the playback of the first audio through the headphone body, and the second playback process is determined to play the second audio through the headphone body.
7. The audio playback method according to claim 1, characterized in that, The step of determining the playback task to be performed by the earphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio includes: If the first audio is a call audio, the second audio is a non-multimedia audio or a multimedia audio, and any terminal wirelessly connected to the headset is in Do Not Disturb mode, then the playback task is determined to play the first audio. Based on the playback task, the first playback process is determined to maintain the playback of the first audio through the headphone body, and the second playback process is determined to stop the second audio.
8. The audio playback method according to claim 1, characterized in that, The step of determining the playback task to be performed by the earphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on 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, then the playback task is to play the second audio. Based on the playback task, the first playback process is determined to stop playing the first audio, and the second playback process is determined to play the second audio through the headphone body.
9. The audio playback method according to claim 1, characterized in that, The step of determining the playback task to be performed by the earphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on 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, then the playback task is determined to be that the first earphone in the headphone body plays the first audio and the second earphone in the headphone body plays the second audio. Based on the playback task, the first playback process is determined to be to maintain the playback of the first audio through the first headphones, and the second playback process is to play the second audio through the second headphones.
10. The audio playback method according to claim 1, characterized in that, The step of determining the playback task to be performed by the earphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on 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, then the playback task is determined to be playing the first audio and the second audio simultaneously. Based on the playback task, the first playback process is determined to maintain the playback of the first audio through the headphone body, and the second playback process is determined to play the second audio through the headphone body.
11. The audio playback method according to claim 1, characterized in that, The step of determining the playback task to be performed by the earphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on 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, then a second selection operation prompt is generated and displayed; In response to the second operation instruction input by the user according to the second selection operation prompt, the playback task is determined to be playing the multimedia audio corresponding to the second operation instruction; If the second operation instruction is to select to play the first audio, then the first playback process is to maintain the playback state, and the second playback process is to stop the second audio; If the second operation instruction is to select to play the second audio, then the first playback process is to stop the first audio, and the second playback process is to play the second audio through the headphone body.
12. The audio playback method according to claim 1, characterized in that, The step of determining the playback task to be performed by the earphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on 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, then the playback task is to play the second audio and continue playing the first audio after the second audio stops playing; According to the playback task, the first playback process is to pause the playback of the first audio until the second audio stops playing, and then resume the playback of the first audio. The second playback process is to play the second audio through the headphone body.
13. The audio playback method according to claim 1, characterized in that, Determining the audio type of the second audio includes: The playback status parameters of the second terminal fed back by the earphone body are obtained; wherein, the earphone body is used to send the playback status parameters of the second terminal to the charging case when the playback status parameters of the second terminal change; If the second terminal is determined to be playing the second audio based on the current playback status parameters and the playback status parameters at the previous time of change, then the audio type of the second audio is determined based on the current playback status parameters.
14. The audio playback method according to claim 13, characterized in that, If the second terminal is determined to be playing the second audio based on the current playback state parameters and the playback state parameters at the previous time of change, then determining the audio type of the second audio based on the current playback state parameters includes: If the audio type of the second audio is determined to be non-call audio based on the current playback status parameters, then monitor the duration of the playback status parameters of the second terminal in the current state. If the duration is lower than a preset time threshold, the audio type of the second audio is determined to be non-multimedia audio. If the duration is not less than the time threshold, then the audio type of the second audio is determined to be multimedia audio.
15. The audio playback method according to claim 13, characterized in that, The playback status parameters include a first status parameter and a second status parameter. Determining that the second terminal is currently playing the second audio based on the current playback status parameters and the playback status parameters at the previous time of change includes: If the first state parameter of the second terminal fed back by the earphone body changes compared with the previous change time, and the second state parameter of the second terminal does not change after a preset delay time, then the second terminal is determined to be in the state of playing the second audio based on the latest playback state parameter of the second terminal and the playback state parameter at the previous change time.
16. The audio playback method according to claim 13, characterized in that, The playback status parameters include a first status parameter and a second status parameter. Determining that the second terminal is currently playing the second audio based on the current playback status parameters and the playback status parameters at the previous time of change includes: If only the first state parameter of the second terminal, which is fed back by the earphone body, changes compared to the previous change time, and the second state parameter of the second terminal changes compared to the previous change time within a preset delay time, then the second terminal is currently in the state of playing the second audio based on the playback state parameter of the second terminal fed back by the earphone body within the delay time and the playback state parameter at the previous change time.
17. The audio playback method according to claim 1, characterized in that, The method further includes: If any terminal wirelessly connected to the earphone is in Do Not Disturb mode, the earphone will be controlled to prevent all audio from playing.
18. An audio playback device, characterized in that, A charging case for wireless earphones, the wireless earphones including an earphone body and the charging case, the earphone body being wirelessly connected to at least a first terminal and a second terminal, the charging case being either the first terminal or the second terminal, the device comprising: An audio type acquisition module is used to determine the audio type of the second audio if the second terminal plays the second audio when the first terminal plays the first audio through the earphone body; the audio type includes multimedia audio, call audio, and non-multimedia audio. The playback control module is used to determine the playback task to be performed by the headphone body, the first playback process to be performed by the first terminal, and the second playback process to be performed by the second terminal based on the audio type of the first audio and the audio type of the second audio, so that when the first terminal performs the first playback process and the second terminal performs the second playback process, the headphone body performs the playback task.