Data transmission method, playing device, storage medium and electronic device

By synchronizing audio playback tasks between the host playback device and the sub-playback device, the problem of inflexible communication between the terminal device and the playback device is solved, and the function of multiple playback devices to automatically acquire and execute audio playback tasks is realized, improving management efficiency.

CN120021228APending Publication Date: 2025-05-20BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311552841.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-20
Publication Date
2025-05-20

AI Technical Summary

Technical Problem

In the prior art, the communication method between the terminal device and the playback device is not flexible enough, resulting in a user need to manually connect the playback device and the terminal device to perform audio playback tasks, and in multiple playback device scenarios, connection and management become complicated.

Method used

By providing a data transmission method and related equipment, the host playback device can receive an audio playback task sent by the terminal device, and when a sub-playback device is detected, it synchronizes the audio playback task to the sub-playback device, so that the sub-playback device can perform the audio playback task.

Benefits of technology

Flexible communication between the terminal device and the playback device is realized, allowing multiple playback devices to automatically acquire and execute the audio playback tasks of the terminal device, solve the complex problems of connection and management in the prior art, and improve the management efficiency of audio playback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120021228A_ABST
    Figure CN120021228A_ABST
Patent Text Reader

Abstract

The invention provides a data transmission method, a playing device, a storage medium and an electronic device, and the method comprises the steps: receiving an audio playing task sent by a terminal device; and in response to the detected sub-playing device, the main playing device synchronizes the audio playing task to the sub-playing device, so that the sub-playing device executes the audio playing task. According to the method provided by the embodiment of the invention, the problem that the communication between the terminal equipment and the playing equipment is not flexible enough can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The technical solution of the present disclosure relates to the field of device control technology, and in particular, to a data transmission method, a playback device, a storage medium, and an electronic device. Background Art

[0002] When a playback device communicates with a terminal device, the playback device can play the audio in the terminal device. For example, the playback device plays voices in voice calls, ringtones, videos, etc. in the terminal device. This way of playing audio through the playback device can bring an immersive audio playback experience to users.

[0003] In the prior art, the user needs to manually connect the playback device and the terminal device, and the playback device can only execute the audio playback task sent by the terminal device. This communication method is not flexible enough. Summary of the Invention

[0004] In view of this, the present disclosure provides a data transmission method, a playback device, a storage medium, and an electronic device to solve the problem that the communication method between the terminal device and the playback device is not flexible enough.

[0005] According to the first aspect of the embodiments of the present disclosure, a data transmission method is provided. The method includes:

[0006] Receiving an audio playback task sent by a terminal device;

[0007] In response to detecting a sub-playback device, the main playback device synchronizes the audio playback task to the sub-playback device so that the sub-playback device executes the audio playback task.

[0008] According to the second aspect of the embodiments of the present disclosure, a main playback device is provided. The playback device is a main playback device and includes:

[0009] A first communication module for receiving an audio playback task sent by a terminal device;

[0010] A second communication module for synchronizing the audio playback task to the sub-playback device in response to detecting the sub-playback device so that the sub-playback device executes the audio playback task.

[0011] According to the third aspect of the embodiments of the present disclosure, an electronic device is provided, including:

[0012] A processor;

[0013] A memory for storing instructions executable by the processor;

[0014] Wherein, the processor is configured to implement the steps of the data transmission method according to any one of the first aspect by running the executable instructions.

[0015] According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps of the data transmission method described in any one of the above first aspects are implemented.

[0016] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:

[0017] The main playback device and the terminal device can communicate, so that the main playback device can receive the audio playback task sent by the terminal device. The main playback device plays the corresponding audio by executing this audio playback task.

[0018] When the main playback device detects the sub-playback device, the main playback device and the sub-playback device can communicate with each other. At this time, it is considered that the sub-playback device also wants to execute the current audio playback task, and the main playback device will synchronize the audio playback task to the sub-playback device, so that the sub-playback device can execute the audio playback task.

[0019] When multiple playback devices are desired to execute the audio playback task in a terminal device, it is not necessary to directly connect each playback device to the terminal device in sequence. Each sub-playback device can automatically obtain the audio playback task of the terminal device through the main playback device, which helps to solve the problem that the communication method between the terminal device and the playback device is not flexible enough.

[0020] Furthermore, since the audio playback task is synchronized through the main playback device, the sub-playback devices can be indirectly managed through the main playback device, which helps to solve the problem of difficult management of multiple playback devices.

[0021] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.

[0023] Figure 1 is a flowchart of a data transmission method shown according to an exemplary embodiment of the present disclosure;

[0024] Figure 2 is a flowchart of another data transmission method shown according to an exemplary embodiment of the present disclosure;

[0025] Figure 3 is a flowchart of another data transmission method shown according to an exemplary embodiment of the present disclosure;

[0026] Figure 4a This is an application scenario diagram of a data transmission method shown according to an exemplary embodiment of the present disclosure;

[0027] Figure 4b This is an application scenario diagram of another data transmission method shown according to an exemplary embodiment of the present disclosure;

[0028] Figure 4c This is an application scenario diagram of another data transmission method shown according to an exemplary embodiment of the present disclosure;

[0029] Figure 5 This is a schematic structural diagram of a playback device shown according to an exemplary embodiment of the present disclosure;

[0030] Figure 6 This is a schematic structural diagram of an electronic device shown according to an exemplary embodiment of the present disclosure. Detailed Description of the Embodiment

[0031] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0032] The terms used in the present disclosure are for the purpose of describing specific embodiments only and are not intended to limit the present disclosure. The singular forms "a", "the", and "said" used in the present disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

[0033] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to determining".

[0034] In the prior art, when a playback device wants to execute an audio playback task in a terminal device, it needs to be connected to the terminal device.

[0035] When the playback device is a wireless playback device (such as Bluetooth speakers, WIFI headphones, Bluetooth headphones, etc.), it is troublesome to connect the wireless playback device to the terminal device. The following takes the Bluetooth playback device as an example to briefly introduce the connection steps:

[0036] a. Turn on the Bluetooth function (especially the Bluetooth search function) on the Bluetooth playback device and terminal device respectively.

[0037] b. Click on the Bluetooth setting option of the terminal device to start searching for nearby Bluetooth devices (usually it takes a while).

[0038] c. Multiple devices were found.

[0039] d. Select the Bluetooth device to be connected and establish a connection.

[0040] It can be seen that this connection method requires users to perform a series of connection operations.

[0041] In actual situations, there are the following scenarios:

[0042] Multiple users participate in online meetings (or participate in video calls, watch movies together, etc.) through a terminal device (such as a conference room computer, conference room Internet TV device, etc.) in the same offline conference room. Generally speaking, the audio will be played through the module built into this terminal device so that the conference content can be played in the conference room.

[0043] However, the audio quality and volume of the built-in module of this terminal device are usually difficult to meet expectations, especially in a conference room where multiple people listen together. In other words, the built-in module of this terminal device is not enough for everyone in the conference room to hear the meeting content clearly.

[0044] Therefore, in the prior art, a sound speaker that can amplify the volume (and improve the sound quality) is usually configured for this terminal device. However, this method cannot fundamentally solve the problem that some participants cannot hear the content of the meeting due to the large number of people in the meeting room or the meeting room is too empty. In addition, when the sound of the sound speaker is loud, it is easy to affect the normal work of people outside the meeting room.

[0045] Based on this, the present disclosure proposes a solution that enables multiple playback devices to perform the audio playback task of the same terminal device, which can solve the above problem.

[0046] ​​Exemplarily, assume that one of the multiple playback devices is a sound externalization device in a meeting room, and the remaining devices are the headphones of one or more participants (or all of the multiple playback devices are headphones). The multiple playback devices can be made to communicate with the terminal device so that the multiple playback devices can all play the audio to be played in the terminal device. In this way, for each participant, if they can clearly hear the sound played by the sound externalization device, they can choose not to wear headphones; if they cannot clearly hear the sound played by the sound externalization device, they can choose to wear headphones; or, without the sound externalization device and everyone wears headphones, so that everyone can clearly hear the meeting content.

[0047] In the prior art, when multiple playback devices all want to execute the audio playback task in the terminal device, each of the multiple playback devices needs to be connected to the terminal device in sequence.

[0048] According to the connection process listed above, it can be seen that the process of connecting one playback device is rather troublesome. As the number of playback devices to be connected increases, this method of connecting each playback device to the terminal device separately becomes more complex and will seriously occupy the meeting time in the above scenario.

[0049] Therefore, in the prior art, this scheme of connecting multiple playback devices to the same terminal device to execute the same audio playback task is usually not adopted. In other words, each user usually does not adopt the scheme of connecting their own headphones to the meeting room computer to listen to the meeting content either.

[0050] To solve the above problems, the present disclosure realizes the communication between the playback device (master) and the terminal device through a master playback device. In this way, the master playback device can receive the audio playback task sent by the terminal device. The audio playback task includes the audio to be played and / or the playback instruction for the audio to be played, so that the master playback device can execute the audio playback task.

[0051] When the master playback device detects a slave playback device, the audio playback task can be synchronized to the slave playback device through the master playback device. In this way, the slave playback device can also execute the audio playback task, enabling the slave playback device to execute the audio playback task (for example, allowing the master playback device and the slave playback device to execute simultaneously or separately; or only allowing the slave playback device to execute).

[0052] There is no limitation on the way the master playback device detects the slave playback device. For example, communication modules are provided in both the master playback device and the slave playback device, enabling both parties to communicate with each other. The communication module can be, for example, a wireless communication module: a Bluetooth module, a Wi-Fi (Wireless Network Communication Technology) module, an NFC (Near Field Communication) module; or, the communication module can also be a wired communication module, etc.

[0053] Taking the NFC module in the communication module as an example, when the main playback device and the sub-playback device are close to each other, the main playback device and the sub-playback device can communicate with each other (for example, exchange device information of both parties), so as to synchronize the audio playback task to the sub-playback device through the device information.

[0054] The following is a detailed introduction:

[0055] Figure 1 It is a flowchart of a data transmission method shown by the present disclosure according to an exemplary embodiment. As Figure 1 shown, the method includes the following steps:

[0056] Step 101, receive an audio playback task sent by a terminal device.

[0057] The method introduced by the present disclosure is applied to the main playback device, or the server or operating system corresponding to the main playback device. The main playback device is a device capable of playing audio, such as headphones, speakers, horns, etc., and can also be a device configured with a display interface, such as a television, a mobile phone, etc.

[0058] The main playback device and the terminal device are communicatively connected. The present disclosure does not limit the connection manner between the main playback device and the terminal device, which can be a Bluetooth connection, a wired connection, a Wi-Fi connection, etc. Through the communication connection manner between the main playback device and the terminal device, the terminal device can send an audio playback task to the main playback device.

[0059] Among them, the audio playback task includes: the audio to be played, and / or, a playback instruction. Exemplarily, the terminal device directly sends the audio to be played to the main playback device, and the main playback device directly plays the audio to be played after receiving it. Or, the terminal device first sends the audio to be played to the main playback device, and then sends control instructions (such as pause, start, rewind, speed up playback) to the main playback device, and the main playback device plays. Or, the terminal device only sends control instructions to the main playback device, and the control instructions indicate the location of the audio to be played or the search path of the audio to be played and other resources.

[0060] Step 102, in response to detecting a sub-playback device, the main playback device synchronizes the audio playback task to the sub-playback device so that the sub-playback device executes the audio playback task.

[0061] Exemplarily, step 102 can be implemented in the following two ways:

[0062] Method 1, wireless communication:

[0063] Figure 2FIG. 0 is a flowchart of another data transmission method shown according to an exemplary embodiment of the present disclosure. As Figure 2 shown, when performing the above step 102 by wireless communication, the following steps are specifically included:

[0064] Step 1021: In response to the wireless communication module of the master playback device being triggered by the wireless communication module of the slave playback device, obtain the device information of the slave playback device.

[0065] The wireless communication module may be a Wi-Fi module, a Bluetooth module, or an NFC module. The master playback device and the slave playback device can discover and establish a connection with each other through the wireless communication module device.

[0066] The device information includes, but is not limited to: device identifier, wireless communication address of the device (such as Wi-Fi address, Bluetooth address, etc.). After obtaining the device information of the playback module (master playback module or slave playback module), the corresponding device can be found based on the device information and communicate with it.

[0067] When the wireless communication modules of the master playback device and the slave playback device both start communication and the master playback device and the slave playback device are close to each other, the master playback device will be triggered by the slave playback device. For example, when both the master playback device and the slave playback device are provided with NFC modules (default is started), the master playback device and the slave playback device will exchange their device information through the NFC module. At this time, the master playback device is triggered by the slave playback device (it can also be considered that the two trigger each other).

[0068] Method 2: Wired communication:

[0069] For example, connect the slave playback device to the master playback device by a wired method (such as a USB data cable), and the master playback device can detect the slave playback device. The master playback device can directly synchronize the audio playback task to the slave playback device through the wired connection.

[0070] Step 1022: The master playback device synchronizes the audio playback task to the slave playback device based on the device information.

[0071] Regardless of which method is used, the audio playback task of the terminal device can be synchronized to the slave playback device through the master playback device. At this time, the slave playback device can execute this audio playback task and play the corresponding audio to be played.

[0072] In the above method, the audio playback task is synchronized to the slave playback device by the master playback device detecting the slave playback device. This communication method between the slave playback device and the terminal device, as well as the execution method of the audio playback task, is more flexible.

[0073] The following provides an exemplary application scenario:

[0074] A movie is being played on the TV set (terminal device) in the living room, and the sound corresponding to the movie is the audio that needs to be played by the playback device (i.e., the audio to be played in the audio execution task).

[0075] The user connects the main playback device (such as a speaker) to the TV set through a wired connection (or wireless communication). In this way, when the TV set is placed against the wall, by placing the main playback device in the center of the living room, each user in the living room can clearly hear the audio to be played corresponding to this movie.

[0076] When user A continues to watch the movie in the living room and user B goes to the kitchen to cook, since the sound in the kitchen is too loud after the range hood is turned on, user B may not be able to clearly hear the audio played by this main playback device.

[0077] At this time, user B can connect their headphones to the TV set through wireless communication so as to be able to synchronously hear the audio to be played in the movie on the TV set.

[0078] However, in this case, the following problems may occur: Since the headphones are directly connected to the TV set, the audio of the main playback device is interrupted, and the audio is changed to be played from user B's headphones. At this time, user A in the living room cannot hear the audio to be played corresponding to the movie through the main playback device. User A may need to reconnect or continue playing the main playback device, or may directly be unable to continue listening.

[0079] Furthermore, even if the connection of user B's headphones to the TV set does not affect the playback of the main playback device, the following may also occur:

[0080] The distance between the kitchen and the TV set is relatively far, the wireless communication distance between the headphones and the TV set cannot be satisfied, resulting in the inability to connect the headphones and the TV set, or the communication quality between the two is poor, etc. At this time, user B still cannot clearly hear the audio to be played.

[0081] To solve the above problems, at this time, user B's headphones can be directly connected to the main playback device through a wired or wireless communication method (for example, the main playback device is placed in the middle position between the kitchen and the TV set), so as to obtain the audio to be played through the main playback device for playback.

[0082] Or, if the TV set only supports wired communication and does not support wireless communication, then the headphones cannot directly communicate with the TV set wirelessly. The main playback device can communicate with the TV set by wire. The main playback device supports both wireless communication and wired communication. Therefore, user B's headphones can be directly connected to the main playback device, so as to play the audio of the movie played on the TV set.

[0083] Optionally, when the main playback device described in step 1022 synchronizes the audio playback task to the sub-playback device based on the device information, the following two methods are included:

[0084] Method 1: Let the terminal device send the audio playback task to the sub-playback device by itself. Specifically:

[0085] The main playback device sends the device information to the terminal device, so that the terminal device communicates with the sub-playback device based on the device information and sends the audio playback task to the sub-playback device.

[0086] After being triggered by the sub-playback device, the main playback device can obtain the device information of the sub-playback device. Since the main playback device and the terminal device communicate with each other, the device information of the sub-playback device can be directly sent to the terminal device.

[0087] At this time, the terminal device can establish communication with the sub-playback device through the device information. In this way, every time the terminal device sends an audio playback task to the main playback device, it also synchronously sends it to the sub-playback device.

[0088] It should be noted that since the terminal device obtains the device information of the sub-playback device through the main playback device, when the terminal device establishes a communication connection with the sub-playback device, the terminal device believes that it needs to communicate with multiple playback devices at this time. That is to say, the terminal device knows that it still needs to communicate with the main playback device and will not disconnect the communication with the main playback device, and there will be no situation where the previously connected playback device (such as the main playback device) disconnects or terminates playback when the terminal device directly communicates with other playback devices (without passing through the main playback device). Or, when the terminal device obtains the device information of the sub-playback device through the main playback device, the priority of the sub-playback device is defaulted to be lower than the priority of the main playback device, so as to realize the management of multiple playback devices, especially to avoid the situation where the main playback device cannot normally execute the audio playback task due to connecting the sub-playback device.

[0089] Exemplarily, when both the main playback device and the sub-playback device are headphones, and the headphones include a headphone case (the headphone and the case can charge the headphone body) and the headphone body, the trigger between the sub-playback device and the headphone of the main playback device is triggered by the proximity of the headphone case (a wireless communication module is set in the headphone case, and the wireless communication module is equipped with near-field communication technology, Bluetooth technology, and / or Wi-Fi technology, etc.). The headphone cases can exchange device information with each other.

[0090] The earphone case of the slave playback device can at least send the address information (Bluetooth address and / or Wi-Fi address) of its own earphone body to the earphone case of the master playback device, and the earphone case of the master playback device sends the address information of the earphone body of the slave playback device to the terminal device, so that the terminal device can directly send the audio playback task to the earphone body of the slave playback device, and let the earphone body of the slave playback device execute the audio playback task.

[0091] This disclosure mainly takes the example that both the earphone body and the earphone case obtain the audio playback task through Wi-Fi communication (the earphone case is also equipped with near-field communication technology, such as an NFC communication module). This communication method has more bandwidth and speed compared with the Bluetooth communication method, so the effect will be better, and it also has topological capabilities.

[0092] Method 2: Without passing through the terminal device, the master playback device directly sends the audio playback task to the slave playback device. Specifically:

[0093] The master playback device sends the audio playback task to the slave playback device indicated by the device information.

[0094] The master playback device does not need to send the device information to the terminal device, that is, there is no need for communication between the terminal device and the slave playback device. This is beneficial for the master playback device to manage one or more slave playback devices. It can avoid the situation that the terminal device does not know which playback devices need to synchronize the audio playback task and which playback devices do not need to synchronize the audio playback task due to the communication between the terminal device and multiple playback devices, resulting in the multiple playback devices being unable to normally execute the audio playback task.

[0095] Exemplarily, when the master playback device and the slave playback device are both earphones, and the earphone includes an earphone case (the earphone case can charge the earphone body) and an earphone body, the trigger between the slave playback device and the earphone of the master playback device is triggered by the proximity of the earphone case (a wireless communication module is set in the earphone case, and the wireless communication module is equipped with near-field communication technology, Bluetooth technology, and / or Wi-Fi technology, etc.). The earphone cases can exchange device information with each other.

[0096] At this time, the device information can be the address information of the earphone case and / or the address information of the earphone body.

[0097] For example, when the device information at least includes the address information of the earphone case, it can be achieved through the following steps:

[0098] Based on the address information, the master playback device sends the audio playback task to the earphone case of the slave playback device, so that the earphone case of the slave playback device forwards the audio playback task to the earphone body of the slave playback device.

[0099] That is to say, the terminal device will send the audio playback task to both the earphone case of the main playback device and the earphone body at the same time. At this time, the earphone body will execute the audio playback task. Meanwhile, the earphone case will forward the audio playback task to the earphone case of the sub-playback device so that the earphone case of the sub-playback device can forward it to the earphone body to execute the audio playback task.

[0100] Alternatively, the terminal device will send the audio playback task to the earphone case of the main playback device, and the earphone case of the main playback device will send the audio playback task to both its own earphone body (of the main playback device) and the earphone case of the sub-playback device at the same time, so that the earphone case of the sub-playback device can forward the audio playback task to the earphone body.

[0101] For another example, when the device information at least includes the address information of the earphone body, it can be achieved through the following steps:

[0102] Based on the address information, the main playback device sends the audio playback task to the earphone body of the sub-playback device.

[0103] At this time, the main playback device can directly synchronize the audio playback task to the earphone body of the sub-playback device (and the earphone body of the main playback device).

[0104] It should be noted that the above Method 1 and Method 2 can be switched with each other. For example, when it is found that communication fails in Method 1, communication can be attempted through Method 2; vice versa, until the audio playback task is successfully synchronized to the sub-playback device.

[0105] For example, in response to the terminal device failing to communicate with the sub-playback device based on the device information, or the terminal device failing to send the audio playback task to the sub-playback device, execute: The main playback device sends the audio playback task to the sub-playback device indicated by the device information.

[0106] In response to the main playback device failing to send the audio playback task to the sub-playback device indicated by the device information, execute:

[0107] The main playback device sends the device information to the terminal device so that the terminal device communicates with the sub-playback device based on the device information and sends the audio playback task to the sub-playback device.

[0108] Optionally, Figure 3 is a flowchart of another data transmission method shown according to an exemplary embodiment of the present disclosure. As Figure 3 shown, when executing step 102, the main playback device synchronizes the audio playback task to the sub-playback device, including the following steps:

[0109] Step 301: Obtain the playback permission of the sub-playback device.

[0110] In response to detecting the sub-playback device, the main playback device determines one or more current audio to be played as the audio to be synchronized; and determines that the sub-playback device has the playback permission to play the audio to be synchronized.

[0111] Exemplarily, assume that when the main playback device detects the sub-playback device, the main playback device is performing the audio playback task A of the terminal device, and the audio specified in the audio playback task A is audio A. At this time, audio A is one or more current audio to be played.

[0112] At this time, it is considered that the sub-playback device has the playback permission to play audio A.

[0113] If after the sub-playback device is connected, the terminal device issues an audio playback task B (specifying to play audio B and audio C), it is considered that the sub-playback device does not have the permission to play audio B and audio C. Only the main playback device plays audio B and audio C.

[0114] In another embodiment, the playback permission can be set by the user. For example, after the main playback device is connected to the sub-playback device, the user is required to configure the corresponding playback permission (such as setting to always have the playback permission for certain applications, etc.).

[0115] Alternatively, the playback permission can be the same as that of the main playback device by default and can be adjusted according to the user's modification, etc.

[0116] Step 302: Synchronize the audio playback task that meets the playback permission to the sub-playback device.

[0117] Exemplarily, when the audio to be played indicated by the audio playback task is the same as the audio to be synchronized, synchronize the audio to be played to the sub-playback device.

[0118] At this time, when the main playback device receives multiple audio playback tasks, it can only synchronize the audio playback tasks that meet the playback permission of the sub-playback device to the sub-playback device. In this way, it can ensure the privacy control of the main playback device over each sub-playback device, ensure that each private audio of the terminal device will not be synchronized to the sub-playback device, and help protect the user's privacy.

[0119] For example, if after the sub-playback device is connected, when the main playback device and the sub-playback device synchronously execute the audio playback task A (playing audio A), a call comes in on the terminal device. At this time, the main playback device (assuming it is the earphone of the owner of the terminal device) can directly answer the call, and only the main playback device can hear the call content (new audio), and will not forward the audio corresponding to this call content to the sub-playback device (which does not have the playback permission).

[0120] Figure 4a This is an application scenario diagram of a data transmission method shown according to an exemplary embodiment of the present disclosure, as Figure 4a shown:

[0121] The terminal device 400 communicates with the earphone case 4011 and the earphone body 4012 of the main playback device 401.

[0122] The earphone case 4011 of the main playback device 401 is connected to the earphone case 4021 of the sub-playback device 402; the earphone case 4021 of the sub-playback device 402 is connected to the earphone body 4022 of the sub-playback device 402.

[0123] Therefore, the earphone body 4022 of the sub-playback device 402 and the earphone body 4012 of the main playback device 401 can synchronously execute the audio playback task.

[0124] It can be noted that the sub-playback device 402 executes the audio playback task by connecting to the main playback device 401. It has the following effects:

[0125] The communication distance between the terminal device and the earphone case is set (for the sake of easy understanding, 10 meters will be used for illustration below, but 10 meters is only an exemplary value and can also be modified to other values). If the earphone body of the sub-playback device directly communicates with the terminal device, the earphone body of the sub-playback device needs to be within 10 meters of the terminal device, that is, the communication distance between the terminal device and the earphone body of the sub-playback device can only reach 10 meters.

[0126] However, according to Figure 4a the way that the earphone case of the sub-playback device shown communicates with the earphone case of the main playback device can extend the communication distance between the earphone body of the sub-playback device and the terminal device.

[0127] The following will be described by way of example in conjunction with Figure 4b and Figure 4c :

[0128] As Figure 4b shown, when the terminal device 400 directly communicates with the earphone body 4012 of the main playback device 401 and the earphone body 4022 of the sub-playback device 402, the longest communication distance between the terminal device and the earphone body 4022 of the sub-playback device is 10 meters.

[0129] As Figure 4c shown:

[0130] The distance between the terminal device 400 and the earphone case 4011 of the main playback device 401 can reach 10 meters. The distance between the earphone case 4011 of the main playback device 401 and the earphone case 4021 of the sub-playback device 402 can reach 10 meters. The distance between the earphone case 4021 of the sub-playback device 402 and the earphone body 4022 of the sub-playback device 402 can reach 10 meters. Therefore, the communication distance between the terminal device 400 and the earphone body 4022 of the sub-playback device 402 can be extended to 30 meters.

[0131] For the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the present disclosure is not limited by the described action sequence, because according to the present disclosure, certain steps can be performed in other sequences or simultaneously.

[0132] Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to the present disclosure.

[0133] Corresponding to the foregoing method embodiments for realizing application functions, the present disclosure also provides an embodiment of a playback device.

[0134] Figure 5 It is a schematic structural diagram of a playback device shown by the present disclosure according to an exemplary embodiment, as Figure 5 shown, the playback device may include:

[0135] A first communication module 501, configured to receive an audio playback task sent by a terminal device.

[0136] A second communication module 502, configured to, in response to detecting a sub-playback device, the main playback device synchronizes the audio playback task to the sub-playback device, so that the sub-playback device executes the audio playback task.

[0137] Optionally, when the second communication module is used for the main playback device to synchronize the audio playback task to the sub-playback device in response to detecting a sub-playback device, it is used for:

[0138] In response to the wireless communication module of the main playback device being triggered by the wireless communication module of the sub-playback device, obtain the device information of the sub-playback device.

[0139] The main playback device synchronizes the audio playback task to the sub-playback device based on the device information.

[0140] Optionally, when the second communication module is used for the main playback device to synchronize the audio playback task to the sub-playback device based on the device information, it is used for:

[0141] The master playback device sends the device information to the terminal device, so that the terminal device communicates with the slave playback device based on the device information and sends the audio playback task to the slave playback device.

[0142] Optionally, both the master playback device and the slave playback device are headphones, the headphones include a headphone case and a headphone body, and the device information at least includes the address information of the headphone body.

[0143] Optionally, when the second communication module is used for the master playback device to synchronize the audio playback task to the slave playback device, it is used for:

[0144] The master playback device sends the audio playback task to the slave playback device indicated by the device information.

[0145] Optionally, both the master playback device and the slave playback device are headphones, the headphones include a headphone case and a headphone body. The device information at least includes the address information of the headphone case.

[0146] When the second communication module is used for the master playback device to send the audio playback task to the slave playback device indicated by the device information, it is used for:

[0147] Based on the address information, the master playback device sends the audio playback task to the headphone case of the slave playback device, so that the headphone case of the slave playback device forwards the audio playback task to the headphone body of the slave playback device.

[0148] Optionally, when the second communication module is used for the master playback device to synchronize the audio playback task to the slave playback device, it is used for:

[0149] Obtain the playback permission of the slave playback device; synchronize the audio playback task that meets the playback permission to the slave playback device.

[0150] Optionally, when the second communication module is used for obtaining the playback permission of the slave playback device, it is used for:

[0151] In response to detecting the slave playback device, the master playback device determines one or more currently to-be-played audios as the audios to be synchronized.

[0152] Determine that the slave playback device has the playback permission to play the to-be-synchronized audio.

[0153] When the second communication module is used for synchronizing the audio playback task that meets the playback permission to the slave playback device, it is used for:

[0154] When the audio to be played indicated by the audio playing task is the same as the audio to be synchronized, synchronize the audio to be played to the sub-playing device.

[0155] Optionally, the main playing device is a headset, and the second communication module in the headset is equipped with near-field communication technology. The headset is used to communicate with the sub-playing module equipped with near-field communication technology based on the second communication module.

[0156] Optionally, the headset includes:

[0157] A headset case that sets the first communication module and the second communication module.

[0158] And, a headset body provided with a third communication module; the third communication module is used to receive an audio playing task sent by the first communication module of the terminal device and / or the headset case; an audio playing module is provided in the headset body for executing the audio playing task.

[0159] For the embodiments of the playing device, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial descriptions of the method embodiments. The embodiments of the playing device described above are only illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the present disclosure. Those of ordinary skill in the art can understand and implement without creative work.

[0160] Correspondingly, the embodiments of the present disclosure provide an electronic device, including: a processor; a memory for storing processor-executable instructions; wherein, the processor is configured to implement the steps of any of the above data transmission methods by running the executable instructions.

[0161] Figure 6 It is a schematic structural diagram of an electronic device shown by the present disclosure according to an exemplary embodiment. For example, the electronic device 600 may be a user device, and may specifically be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, a wearable device such as a smart watch, smart glasses, a smart bracelet, a smart running shoe, etc.

[0162] Refer to Figure 6, the electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input / output (I / O) interface 612, a sensor component 614, and a communication component 616.

[0163] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-described methods. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0164] The memory 604 is configured to store various types of data to support the operation of the device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, videos, and the like. The memory 604 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.

[0165] The power component 606 provides power to the various components of the electronic device 600. The power component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600.

[0166] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operations. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.

[0167] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, the audio component 610 further includes a speaker for outputting audio signals.

[0168] The I / O interface 612 provides an interface between the processing component 602 and a peripheral interface module, which can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.

[0169] The sensor component 614 includes one or more sensors for providing an assessment of the status of various aspects of the electronic device 600. For example, the sensor component 614 can detect the on / off state of the electronic device 600, the relative positioning of components, such as the display and keypad of the electronic device 600. The sensor component 614 can also detect a change in the position of the electronic device 600 or a component of the electronic device 600, the presence or absence of user contact with the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and a change in the temperature of the electronic device 600. The sensor component 614 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 614 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 614 can further include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0170] The communication component 616 is configured to facilitate communication between the electronic device 600 and other devices in a wired or wireless manner. The electronic device 600 can access a communication standard-based wireless network, such as WiFi, 4G or 5G, 4G LTE, 5G NR, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0171] In an exemplary embodiment, the electronic device 600 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above method.

[0172] In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as a memory 604 including instructions, which when executed by a processor 620 of the electronic device 600, enables the electronic device 600 to perform any of the above data transmission methods.

[0173] The non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0174] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed by the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the claims.

[0175] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

Claims

1. A data transmission method, characterized in that: The method comprises: Receive audio playback tasks sent by terminal devices; In response to detecting the sub-playing device, the main playing device synchronizes the audio playing task to the sub-playing device, so that the sub-playing device performs the audio playing task.

2. The method according to claim 1, characterized in that: In response to detecting the sub-playing device, the main playing device synchronizing the audio playing task to the sub-playing device includes: In response to the wireless communication module of the main playback device being triggered by the wireless communication module of the sub-playback device, acquiring device information of the sub-playback device; The main playback device synchronizes the audio playback task to the sub-playback device based on the device information.

3. The method according to claim 2, characterized in that The main playback device synchronizes the audio playback task to the sub-playback device based on the device information, including: The main playback device sends the device information to the terminal device, so that the terminal device communicates with the sub-playback device based on the device information, and sends the audio playback task to the sub-playback device.

4. The method according to claim 3, characterized in that: The main playback device and the sub-playback device are both headphones, the headphones include a headphone box and a headphone body, and the device information includes at least address information of the headphone body.

5. The method according to claim 2, characterized in that: The main playback device synchronizes the audio playback task to the sub-playback device based on the device information, including: The main playback device sends the audio playback task to the sub-playback device indicated by the device information.

6. The method according to claim 5, characterized in that The main playback device and the sub-playback device are both headphones, and the headphones include a headphone box and a headphone body; The device information at least includes address information of the earphone box; The main playback device sends the audio playback task to the sub-playback device indicated by the device information, including: Based on the address information, the main playback device sends the audio playback task to the earphone box of the sub-playback device, so that the earphone box of the sub-playback device forwards the audio playback task to the earphone body of the sub-playback device.

7. The method according to claim 4 or 6, characterized in that: The wireless communication module is equipped with near field communication technology, and the wireless communication module is arranged in the earphone box of the earphone.

8. The method according to claim 1, characterized in that The main playback device synchronizes the audio playback task to the sub-playback device, including: Obtaining the playback permission of the sub-playing device; The audio playback tasks that comply with the playback authority are synchronized to the sub-playback device.

9. The method according to claim 8, characterized in that The obtaining the playback permission of the sub-playing device includes: In response to detecting the sub-playing device, the main playing device determines one or more audios currently to be played as audios to be synchronized; Determining that the sub-playing device has the playing authority to play the audio to be synchronized; The step of synchronizing the audio playback task that complies with the playback authority to the sub-playback device includes: When the audio to be played indicated by the audio playing task is consistent with the audio to be synchronized, the audio to be played is synchronized to the sub-playing device.

10. A playback device, characterized in that: The playback device is a main playback device, including: A first communication module, used for receiving an audio playback task sent by a terminal device; The second communication module is used for synchronizing the audio playback task to the sub-playing device by the main playing device in response to detecting the sub-playing device, so that the sub-playing device executes the audio playback task.

11. The playback device according to claim 10, characterized in that: The main playback device is an earphone, the second communication module in the earphone is equipped with near field communication technology, and the earphone is used to communicate with the sub-playback module equipped with near field communication technology based on the second communication module.

12. The playback device according to claim 11, characterized in that The earphone comprises: An earphone box is provided with the first communication module and the second communication module; And, an earphone body is provided with a third communication module; the third communication module is used to receive audio playback tasks sent by the terminal device and / or the first communication module of the earphone box; the earphone body is provided with an audio playback module for executing the audio playback tasks.

13. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of any one of the methods of claims 1 to 9 by running the executable instructions.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of any method described in claims 1 to 9 are implemented.