Audio playing method, device, equipment and system
By establishing a serial network topology in the audio playback device, the forwarding and playing of audio data is solved, and the problem of single audio playback mode of existing smart speakers is achieved, and stereo sound effects and better listening experience are achieved.
Patent Information
- Application Number
- CN201911128248.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-18
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2039-11-18
AI Technical Summary
The audio playback method of existing smart speakers is single, which cannot meet people's demand for stereo sound effects.
By implementing preset communication protocols in the audio playback device, a serial network topology is established, allowing one audio source device to connect with multiple audio playback devices to realize the forwarding and playback of audio data.
It realizes the stereo playback effect of audio, meets people's demand for stereo sound effects, and improves the user's listening experience through automatic volume adjustment and playback mode synchronization.
Smart Images

Figure CN112822665B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular, to an audio playback method, apparatus, device, and system. Background Art
[0002] With the continuous development of artificial intelligence technology, more and more intelligent devices have entered people's lives, providing great convenience for people's lives, such as smart speakers, smart bracelets, and so on.
[0003] Currently, a common usage method for smart speakers is as follows: A terminal device such as a mobile phone serving as an audio source is connected to a certain smart speaker via Bluetooth. Then, audio such as songs in the mobile phone is transmitted to the smart speaker via the Bluetooth connection for playback.
[0004] Currently, this usage method of connecting one audio source to one smart speaker to play audio has a single usage mode and cannot meet people's demand for stereo sound effects. Summary of the Invention
[0005] Embodiments of the present invention provide an audio playback method, apparatus, device, and system, which can achieve a stereo playback effect of audio.
[0006] In a first aspect, an embodiment of the present invention provides an audio playback method, which is applied to an audio playback device. The method includes:
[0007] Responding to a connection request from a parent device, establishing a communication connection with the parent device through a preset communication protocol;
[0008] If other audio playback devices are detected, selecting a child device from the other audio playback devices, and establishing a communication connection with the child device through the preset communication protocol;
[0009] Playing audio data received from the parent device;
[0010] Forwarding the audio data to the child device for playback.
[0011] In a second aspect, an embodiment of the present invention provides an audio playback apparatus, which is applied to an audio playback device. The apparatus includes:
[0012] A connection module, configured to respond to a connection request from a parent device, establish a communication connection with the parent device through a preset communication protocol; if other audio playback devices are detected, select a child device from the other audio playback devices, and establish a communication connection with the child device through the preset communication protocol;
[0013] A playback module, configured to play audio data received from the parent device;
[0014] A sending module, configured to forward the audio data to the slave device for playing.
[0015] In a third aspect, an embodiment of the present invention provides an audio playback device, including: a memory and a processor; wherein, an executable code is stored on the memory, and when the executable code is executed by the processor, the processor can at least implement the audio playback method as described in the first aspect.
[0016] In a fourth aspect, an embodiment of the present invention provides a non-transitory machine-readable storage medium, on which an executable code is stored, and when the executable code is executed by a processor of an electronic device, the processor can at least implement the audio playback method as described in the first aspect.
[0017] In a fifth aspect, an embodiment of the present invention provides an audio playback system, including:
[0018] An audio source device and at least two audio playback devices, and the audio source device and the at least two audio playback devices form a serial network topology through a preset communication protocol;
[0019] The audio source device is configured to send audio data to the connected audio playback device;
[0020] Any one of the at least two audio playback devices is configured to play the audio data received from the connected parent device, and forward the audio data to the slave device when there is a connected slave device.
[0021] In a fifth aspect, an embodiment of the present invention provides an audio playback method, which is applied to an audio playback device, and the method includes:
[0022] Responding to a connection request from an audio source device, establishing a communication connection with the audio source device through a preset communication protocol;
[0023] If the audio data sent by the audio source device and meeting the preset conditions is received, playing the audio data.
[0024] In a sixth aspect, an embodiment of the present invention provides an audio playback method, which is applied to an audio playback device, and the method includes:
[0025] Receiving a connection request from a parent device, where the connection request includes first volume information of the parent device, and the parent device is another audio playback device;
[0026] Establishing a communication connection with the parent device through a preset communication protocol;
[0027] Determine the second volume information of the audio playback device according to the first volume information;
[0028] Play the audio data received from the parent device according to the second volume information.
[0029] In a seventh aspect, an embodiment of the present invention provides an audio playback method applied to an audio playback device. The method includes:
[0030] Receive a connection request from a parent device, where the connection request includes the playback mode information of the parent device;
[0031] Establish a communication connection with the parent device through a preset communication protocol;
[0032] If other audio playback devices are searched, select child devices from the other audio playback devices;
[0033] Send a connection request including the playback mode information to the child devices, so that the child devices establish a communication connection with the audio playback device through the preset communication protocol;
[0034] Play the audio data received from the parent device according to the playback mode information;
[0035] Forward the audio data to the child devices, so that the child devices play the audio data according to the playback mode information.
[0036] In an eighth aspect, an embodiment of the present invention provides an audio playback method applied to an audio playback device. The method includes:
[0037] In response to a connection request from an audio source device, establish a communication connection with the audio source device through a preset communication protocol;
[0038] If other audio playback devices are searched, select child devices from the other audio playback devices and establish a communication connection with the child devices through the preset communication protocol;
[0039] Obtain the signal strength of the audio source device;
[0040] Determine the first volume information of the audio playback device according to the signal strength;
[0041] Play the audio data received from the audio source device according to the first volume information;
[0042] Send the first volume information and the audio data to the child devices, so that the child devices determine the second volume information of the child devices according to the first volume information and play the audio data according to the second volume information.
[0043] In the embodiments of the present invention, to achieve the stereo playback effect of audio, an audio source device and at least two audio playback devices are required. Among them, the audio source device and at least two audio playback devices form a serial network topology through a preset communication protocol. Taking two audio playback devices as an example, these two audio playback devices are respectively referred to as the first audio playback device and the second audio playback device. When it is necessary to play the audio data output by the audio source device through the first audio playback device and the second audio playback device, first, the audio source device communicates and connects with the first audio playback device through the preset communication protocol. After the first audio playback device is connected to the audio source device, it triggers the search for the second audio playback device. After the second audio playback device is found, it communicates and connects with the second audio device through the preset communication protocol, thereby forming a serial network topology of the audio source device, the first audio playback device, and the second audio playback device. The audio data output by the audio source device is played by the first audio playback device and forwarded by it to the second audio playback device for playback, thus achieving the stereo playback effect of the audio. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0045] Figure 1 It is a composition diagram of an audio playback system provided by an embodiment of the present invention;
[0046] Figure 2 It is a schematic diagram of the principle of generating a serial network topology provided by an embodiment of the present invention;
[0047] Figure 3 It is a schematic flowchart of an audio playback method provided by an embodiment of the present invention;
[0048] Figure 4 It is a schematic flowchart of another audio playback method provided by an embodiment of the present invention;
[0049] Figure 5 It is a schematic flowchart of another audio playback method provided by an embodiment of the present invention;
[0050] Figure 6 For Figure 5 the corresponding audio playback scenario schematic diagram of the shown embodiment;
[0051] Figure 7 It is a schematic flowchart of another audio playback method provided by an embodiment of the present invention;
[0052] Figure 8 It is a schematic flowchart of another audio playing method provided by an embodiment of the present invention;
[0053] Figure 9 It is a schematic flowchart of another audio playing method provided by an embodiment of the present invention;
[0054] Figure 10 It is a schematic structural diagram of an audio playing device provided by an embodiment of the present invention;
[0055] Figure 11 For Figure 10 It is a schematic structural diagram of an audio playing device corresponding to the audio playing device shown in the embodiment; Detailed implementation manners
[0056] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0057] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "the" and "said" used in the embodiments of the present invention and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. "Plural" generally includes at least two.
[0058] Depending on the context, the words "if", "when" as used herein may be interpreted as "when" or "while" or "in response to determining" or "in response to detecting". Similarly, depending on the context, the phrase "if determined" or "if detecting (stated condition or event)" may be interpreted as "when determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)".
[0059] It should also be noted that the term "comprises", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion, such that a commodity or system including a series of elements includes not only those elements but also other elements not expressly listed, or further includes elements inherent to such commodity or system. Without further limitation, an element defined by the statement "comprising a..." does not exclude the existence of additional identical elements in the commodity or system including said element.
[0060] In addition, the step timings in the following method embodiments are only examples and not strictly limited.
[0061] Figure 1 The following is a composition diagram of an audio playback system provided by an embodiment of the present invention. As Figure 1 shown, the audio playback system includes: an audio source device and at least two audio playback devices, and the at least two audio playback devices are, for example, Figure 1 the audio playback device A, audio playback device B, and audio playback device C shown in the figure.
[0062] In practical applications, the audio source device is, for example, a terminal device such as a mobile phone or a laptop computer, and the audio playback device is, for example, a terminal device such as a smart speaker.
[0063] To achieve a stereo audio playback effect, first, the audio source device and the at least two audio playback devices form a serial network topology through a preset communication protocol. Furthermore, based on this network topology, the audio source device can send audio data to the audio playback device it is connected to, and any one of the at least two audio playback devices is used to play the audio data received from the connected parent device and forward the audio data to the sub-device when there is a connected sub-device.
[0064] Among them, the so-called stereo audio playback effect simply means that multiple audio playback devices play the same audio data simultaneously to achieve a stereo effect.
[0065] Among them, for any audio playback device, the two devices it is connected to are respectively called the parent device and the sub-device. Among them, from the perspective of the network topology, the parent device is the device of its previous hop, and the sub-device is the device of its next hop; from the perspective of the audio data flow direction, this any audio playback device receives audio data from the parent device and forwards the audio data to the sub-device.
[0066] For ease of understanding, taking the Figure 1 three audio playback devices shown in the figure as an example, the serial network topology can be Figure 1 as shown in the figure: the audio source device is communicatively connected to audio playback device A, audio playback device A is communicatively connected to audio playback device B, and audio playback device B is communicatively connected to audio playback device C.
[0067] Based on this network topology, the audio data output by the audio source device is transmitted to audio playback device A, audio playback device A plays the audio data and forwards it to audio playback device B. Audio playback device B plays the audio data and forwards it to audio playback device C. Audio playback device C plays the audio data.
[0068] Among them, for the audio playback device A, its parent device is the audio source device, and its child device is the audio playback device B. For the audio playback device B, its parent device is the audio playback device A, and its child device is the audio playback device C. For the audio playback device C, its parent device is the audio playback device B and it has no child device.
[0069] It can be seen that in the above serial network topology, except for the root node device (i.e., the audio source device) and the leaf node device (i.e., the last audio playback device - the audio playback device C), other audio playback devices (the audio playback device A and the audio playback device B) all play the function of relaying and forwarding audio data.
[0070] In the embodiments of the present invention, the above preset communication protocol can be any standard communication protocol capable of implementing short-distance wireless communication. For example, it can be the Advanced Audio Distribution Profile (A2DP) protocol, the Wireless-Fidelity (Wi-Fi) protocol, the Ultra Wideband (UWB) protocol, and so on.
[0071] It can be understood that after establishing a communication connection between the audio source device and the audio playback device using a certain communication protocol, the audio data output by the audio source device will be encapsulated into data packets corresponding to the communication protocol and forwarded and transmitted between the audio source device and the audio playback device.
[0072] In addition, it can also be understood that to support the above preset communication protocol, corresponding chips and other hardware as well as software for executing the preset communication protocol will be installed in the audio source device and each audio playback device. In order to enable the audio source device and the audio playback device to achieve a stereo audio playback effect, it is necessary for the audio source device and the audio playback device to be able to implement the above-mentioned serial network topology structure and the function of forwarding audio data. In order to enable the audio source device and the audio playback device to have this function and shield the differences in the hardware produced by different hardware manufacturers, a general solution is to implant software capable of implementing the above functions in the audio source device and the audio playback device in a software manner. This software is implemented as a Software Development Kit (SDK) for example.
[0073] As introduced above, the formation of a serial network topology structure between the audio source device and the at least two audio playback devices is the basis for achieving a stereo audio playback effect. The following describes how to implement this serial network topology structure.
[0074] First, briefly describe the functions that the audio source device and any one of the at least two audio devices need to implement to form a serial topology network structure:
[0075] Audio source device: When the at least two audio playback devices are detected, determine the audio playback device to be connected from the at least two audio playback devices, and establish a communication connection with the audio playback device to be connected through a preset communication protocol.
[0076] Any one of the at least two audio playback devices: In response to the connection request of the parent device, establish a communication connection with the parent device through a preset communication protocol; and, if other audio playback devices among the at least two audio playback devices are detected, select a child device from the other audio playback devices and establish a communication connection with the child device through a preset communication protocol.
[0077] For ease of understanding, the following combines Figure 2 to exemplarily illustrate the generation principle of the serial network topology structure. In Figure 2 , still take the audio source device, audio playback device A, audio playback device B, and audio playback device C shown in Figure 1 as an example.
[0078] As shown in Figure 2 , first, audio playback device A, audio playback device B, and audio playback device C are placed in a discoverable mode based on a certain network connection trigger operation of the user. Among them, the so-called discoverable mode simply means that other devices can detect themselves. A concept opposite to this in the following text is the non-discoverable mode, that is, other devices cannot detect themselves.
[0079] Based on the user's trigger, the audio source device starts to detect the audio playback devices existing around. Suppose the audio source device detects audio playback device A, audio playback device B, and audio playback device C. At this time, the audio source device, for example, determines audio playback device A as the audio playback device to be connected for communication connection. Among them, the audio source device can send a connection request to audio playback device A through a preset communication protocol (such as the Bluetooth protocol), and audio playback device A replies with a connection response, thus completing the establishment of the communication connection between the audio source device and audio playback device A.
[0080] Furthermore, as shown in Figure 2 , after audio playback device A establishes a communication connection with its parent device - the audio source device, it can place itself in the non-discoverable mode and detect other unconnected audio playback devices existing around. Audio playback device A detects audio playback device B and audio playback device C. Suppose it determines audio playback device B as the child device and conducts a communication connection with audio playback device B through a preset communication protocol.
[0081] Furthermore, as Figure 2 shown in Figure 2 , after the audio playback device B is connected by the audio playback device A, the audio playback device B places itself in the non-discoverable mode and searches for other unconnected audio playback devices existing around. The audio playback device B only searches for the audio playback device C, and thus uses the audio playback device C as a sub-device to communicate and connect with the audio playback device C through a preset communication protocol.
[0082] Furthermore, as Figure 2 shown in Figure 2 , after the audio playback device C is connected by the audio playback device B, the audio playback device C places itself in the non-discoverable mode and searches for other unconnected audio playback devices existing around. The audio playback device C does not search for other audio playback devices and ends the search. Thus far, a serial network topology structure sequentially connected with an audio source device, an audio playback device A, an audio playback device B, and an audio playback device C is generated.
[0083] From Figure 2 the networking principle shown in Figure 2 , it can be seen that after the audio source device invites the first audio playback device A to join the network, the audio playback device A then invites the second audio playback device B to join the network, and the audio playback device B then invites the third audio playback device C to join the network, and so on, to complete the network joining of all audio playback devices in sequence. The advantage of this networking method is that only two devices are involved in the establishment process of each communication connection, which can ensure the reliability of the communication connection between devices to avoid the connection failure problem caused by an audio playback device being connected by multiple devices simultaneously.
[0084] In addition, as Figure 2 shown in Figure 2 , based on the establishment of the above serial network topology structure, when the user triggers an audio playback operation on the audio source device, the audio source device can transmit audio data to the audio playback device A. The audio playback device A plays the audio data and forwards it to the audio playback device B. The audio playback device B plays the audio data and forwards it to the audio playback device C. The audio playback device C plays the audio data. Similarly, when the user triggers an audio stop / pause playback operation on the audio source device, the audio source device stops the transmission of audio data to the audio playback device A and sends a stop playback instruction to the audio playback device A. The audio playback device A stops playing the audio data based on the received stop playback instruction and forwards the stop playback instruction to the audio playback device B. The audio playback device B stops playing the audio data based on the received stop playback instruction and forwards the stop playback instruction to the audio playback device C. The audio playback device C stops playing the audio data based on the received stop playback instruction.
[0085] In practical applications, optionally, during the process of playing audio data, before sending the audio data to Audio Playback Device A, the audio source device may first send a start playback instruction to Audio Playback Device A, so that Audio Playback Device A can make playback preparations based on this start playback instruction and feedback a confirmation message to the audio source device. After receiving this confirmation message, the audio source device then sends the audio data to Audio Playback Device A. Similarly, before forwarding the audio data to Audio Playback Device B, Audio Playback Device A may also first send a start playback instruction to Audio Playback Device B, so that Audio Playback Device B can make playback preparations based on this start playback instruction and feedback a confirmation message to Audio Playback Device A. After receiving this confirmation message, Audio Playback Device A then forwards the audio data to Audio Playback Device B. Among them, the start playback instruction is a control message, and the resulting time delay can be ignored.
[0086] The above combines Figure 2 to give a principle explanation of the establishment process of the serial network topology structure and the audio data playback process.
[0087] Based on this principle, the following combines Figure 3 to exemplarily illustrate an optional audio playback implementation solution in practical applications. Among them, still taking Figure 1 the audio source device, Audio Playback Device A, Audio Playback Device B, and Audio Playback Device C in the illustrated embodiment as examples for explanation, and assuming that the preset communication protocol is the Bluetooth protocol.
[0088] Figure 3 The flowchart of an audio playback method provided by an embodiment of the present invention is shown in Figure 3 as follows. This audio playback method may include the following steps:
[0089] 301. Audio Playback Device A, Audio Playback Device B, and Audio Playback Device C respond to the network connection trigger operation and listen for probe request frames.
[0090] 302. The audio source device responds to the network connection trigger operation and sends a probe request frame.
[0091] 303. Audio Playback Device A, Audio Playback Device B, and Audio Playback Device C hear the probe request frame sent by the audio source device and reply with a probe response frame.
[0092] In practical applications, when a user wants to play a certain audio data (such as a certain song) in the audio source device through the above three audio playback devices, a network connection trigger operation can be executed. Based on this network connection trigger operation, each audio playback device will put itself in a discoverable mode. It can be understood that, actually, the positions of these three audio playback devices are relatively close to each other.
[0093] In this embodiment, the implementation method for the audio playback device to put itself in the discoverable mode is as follows: The audio playback device enables the function of listening for probe request frames (which can be expressed as probe request). Based on the enabling of this listening function, the audio playback device can listen for probe request frames sent by other devices around it via the Bluetooth protocol, and when it listens for a probe request frame sent by a certain device, it can reply with a probe response frame (which can be expressed as probe response) to let the device that sent the probe request frame discover itself.
[0094] In practical applications, optionally, the above-mentioned network connection triggering operation can be that the user triggers a preset voice, or a preset touch operation triggered by the user.
[0095] For example, when the user wants to play the audio data in the audio source device through the above three audio playback devices, the user can say a preset voice, which serves as a wake-up function. When each audio playback device receives this preset voice, it starts the function of listening for probe request frames. When the audio source device receives this preset voice, it broadcasts and sends a probe request frame to search for audio playback devices existing around.
[0096] For another example, when the user wants to play the audio data in the audio source device through the above three audio playback devices, the user can press a certain button on each audio playback device respectively to trigger each audio playback device to start the function of listening for probe request frames. Among them, this button can be a physical button or a virtual button. Similarly, the user can also trigger a touch operation on the audio source device (such as performing a touch operation on a certain button in a certain interface) to make the audio source device broadcast and send a probe request frame.
[0097] The audio playback device that listens for the probe request frame sent by the audio source device can, when it listens for this probe request frame, reply with a probe response frame so that the audio source device can know its existence. Optionally, the probe response frame can include a device identifier, so that the audio source device can determine whether the type of the device that sent the probe response frame is an audio playback device according to this device identifier. If so, the audio source device will take the audio playback device that sent the probe response frame as a candidate connection device.
[0098] In practical applications, the probe response frame will also contain the communication address of the audio playback device, such as the MAC address, so that the audio source device can establish a communication connection with the audio playback device according to this communication address.
[0099] 304. The audio source device determines to send a connection request to the audio playback device A according to the probe response frames replied by the audio playback device A, the audio playback device B, and the audio playback device C.
[0100] 305. The audio playback device A takes the audio source device as its parent device and establishes a communication connection with the audio source device through a preset communication protocol.
[0101] Taking the audio playback devices A, B, and C as examples, after the audio source device receives the detection response frames of these three audio playback devices, it can display the device identifiers of these three audio playback devices on the screen so that the user can select one of them to connect to the audio source device. Among them, the user can randomly select one of them.
[0102] In this embodiment, it is assumed that the user selects the audio playback device A. Thus, based on the user's selection, the audio source device sends a connection request to the audio playback device A. Thus, the audio playback device A takes the audio source device as its parent device and establishes a communication connection with the audio source device through a preset communication protocol.
[0103] Of course, optionally, the audio source device can also select the audio playback device corresponding to the detection response frame with the strongest signal strength among the detection response frames corresponding to these three audio playback devices for connection according to the signal strength of the detection response frames corresponding to these three audio playback devices.
[0104] 306. The audio playback device A stops listening for detection request frames.
[0105] When the audio playback device A is connected to the audio source device as a sub-device of the audio source device, the audio playback device A can put itself in an undetectable mode.
[0106] The audio playback device A can put itself in an undetectable mode by stopping listening for detection request frames, that is, by turning off the function of listening for detection request frames.
[0107] 307. The audio playback device A sends a detection request frame.
[0108] 308. The audio playback devices B and C hear the detection request frame sent by the audio playback device A and reply with detection response frames.
[0109] 309. The audio playback device A determines to send a connection request to the audio playback device B according to the detection response frames replied by the audio playback devices B and C.
[0110] 310. The audio playback device B takes the audio playback device A as its parent device and establishes a communication connection with the audio playback device A through a preset communication protocol.
[0111] When the audio playback device A is connected to the audio source device as a sub-device of the audio source device, it triggers the audio playback device A to start searching for its own sub-devices.
[0112] Specifically, the audio playback device A broadcasts a probe request frame. Since the functions of the audio playback device B and the audio playback device C to listen for the probe request frame are still enabled at this time, after the audio playback device B and the audio playback device C detect the probe request frame sent by the audio playback device A, they reply with a probe response frame. Among them, the device identifier can be included in the probe response frame. Thus, the audio playback device A can determine that these two devices are indeed audio playback devices based on the device identifiers included in the probe response frames sent by the audio playback device B and the audio playback device C. Furthermore, the audio playback device A selects one of these two audio playback devices as its sub-device for communication connection.
[0113] Optionally, the audio playback device A can select the one with the highest signal strength as the sub-device according to the signal strengths of the probe response frames replied by these two audio playback devices. Suppose the audio playback device B is selected as the sub-device.
[0114] The audio playback device A can send a connection request to the audio playback device B so that the audio playback device B responds to the connection request and establishes a communication connection with the audio playback device A.
[0115] 311. The audio playback device B stops listening for the probe request frame.
[0116] After the audio playback device B establishes a communication connection with the audio playback device A as a sub-device, it also places itself in the non-discoverable mode. Specifically, it can place itself in the non-discoverable mode by stopping listening for the probe request frame.
[0117] Furthermore, the audio playback device B starts to search for its sub-devices, and the search process is as described in steps 312 - 316.
[0118] 312. The audio playback device B sends a probe request frame.
[0119] 313. The audio playback device C detects the probe request frame sent by the audio playback device B and replies with a probe response frame.
[0120] 314. The audio playback device B determines to send a connection request to the audio playback device C according to the probe response frame replied by the audio playback device C.
[0121] 315. The audio playback device C takes the audio playback device B as the parent device and establishes a communication connection with the audio playback device C through a preset communication protocol.
[0122] 316. The audio playback device C stops listening for the probe request frame.
[0123] The process of the audio playback device B searching for the sub-device - the audio playback device C can refer to the execution process of the audio playback device A and will not be elaborated here.
[0124] However, optionally, when the audio playback device B can only search for one device, i.e., the audio playback device C, the audio playback device B can inform the audio playback device C that it is the last audio playback device, so that after establishing a communication connection with the audio playback device B, the audio playback device C can stop performing the process of searching for its sub-devices.
[0125] Of course, the audio playback device B may also not send the above message. In this case, after connecting to the audio playback device B, the audio playback device C starts to search for its sub-devices. Specifically, the audio playback device C sends a detection request frame, but at this time, the audio playback device C cannot receive the detection response frames replied by other audio playback devices. Thus, if the audio playback device C does not receive a detection response frame within a preset time, it determines that it is the last audio playback device.
[0126] So far, the networking process of the audio source device and multiple audio playback devices ends.
[0127] 317. In response to an audio playback operation, the audio source device sends audio data to the audio playback device A.
[0128] In practical applications, the audio playback operation is, for example, that the user clicks to play a certain song after selecting it.
[0129] 318. The audio playback device A plays the audio data and forwards the audio data to the audio playback device B.
[0130] 319. The audio playback device B plays the audio data and forwards the audio data to the audio playback device C.
[0131] 320. The audio playback device C plays the audio data.
[0132] Finally, it is worth noting that when an audio playback device (such as the audio playback device A) searches for multiple audio playback devices (such as the audio playback device B and the audio playback device C), connecting to the audio playback device with the strongest signal strength (such as the audio playback device B) can ensure the robustness of the network connection, which helps to ensure the realization of the stereo playback effect of the audio. Because the realization of the stereo playback effect requires at least two audio playback devices. When there are, for example, 3 or more audio playback devices, since these audio playback devices are serially connected, if the communication connection quality between the first two audio playback devices is poor and the audio data cannot be transmitted to the second audio playback device, then the subsequent audio playback devices will definitely not receive the audio data either, and thus the stereo playback effect cannot be realized.
[0133] Figure 4Schematic flowchart of another audio playback method provided by an embodiment of the present invention. This audio playback method can be executed by any audio playback device. Thus, as Figure 4 shown, the audio playback method may include the following steps:
[0134] 401. Any audio playback device responds to a connection request from an audio source device and establishes a communication connection with the audio source device through a preset communication protocol.
[0135] 402. If the any audio playback device receives audio data sent by the audio source device that meets a preset condition, it plays the audio data.
[0136] In this embodiment, the any audio playback device may be, for example, the audio playback device A exemplified in the previous embodiment. The process of the audio source device establishing a communication connection with the audio playback device A can refer to the relevant description in the previous embodiment and will not be elaborated here.
[0137] The main idea of the audio playback method provided in this embodiment is: when an audio playback device establishes a communication connection with an audio source device, generally, any audio data in the audio source device can be played through this audio playback device, such as songs in the audio source device, voice calls received by the audio source device, etc. However, there are some scenarios where it is not suitable to play the audio data of the audio source device through the audio playback device. Therefore, for this audio playback device, it can be set to play the audio data only when it receives audio data sent by the audio source device that meets a preset condition. If the received audio data does not meet this preset condition, it does not play the audio data. At this time, the audio source device is switched to output the audio data to the user.
[0138] Optionally, the preset condition may include at least one of the following:
[0139] The current time does not belong to a preset do-not-disturb period, and the audio data is not voice call data.
[0140] That is to say, if the audio playback device receives audio data sent by the audio source device as voice call data, it does not play and switches to the audio source device for playback; if the audio playback device receives audio data sent by the audio source device at a certain time at night, since this time period is not suitable for playback through the audio playback device, it is switched to the audio source device for playback.
[0141] For example, imagine the following actual application scenario: The audio source device is the user's mobile phone, and the audio playback device is a smart speaker. If a friend calls the user and the user answers the call, the voice of the friend will be played through the smart speaker, which is not conducive to protecting the user's personal privacy. Based on this, when the audio source device answers a call from a friend, it does not transmit the voice call data generated by the friend to the connected audio playback device. Instead, the voice call data is output to the user only through the voice output interface of the audio source device.
[0142] For another example, imagine the following actual application scenario: The audio source device is the user's mobile phone, and the audio playback device is a smart speaker. Assume that the user's mobile phone has established a communication connection with the smart speaker, and assume that the current time is 11:00 p.m. Since the user's family members may have fallen asleep at this time, and the user currently wants to listen to music, but the user forgets that their mobile phone is already connected to the smart speaker. As a result, the user triggers a song playback operation on the mobile phone, and then the song will be played through the smart speaker. The volume of the smart speaker is relatively high, which will affect the family members. To this end, the above-mentioned preset conditions can be set on the smart speaker. Thus, when the smart speaker receives the audio data transmitted from the mobile phone during the preset do-not-disturb period (11:00 p.m. is within the preset do-not-disturb period), it does not play. In addition, at this time, the smart speaker can feedback a prompt message to the mobile phone through the communication connection with the mobile phone to prompt the user that it is not suitable to play audio through the smart speaker at this time. Of course, optionally, when the mobile phone receives an audio playback operation such as a song from the user during the do-not-disturb period, it can also not send the audio data to the audio playback device, thus avoiding playback by the audio playback device.
[0143] It can be understood that according to the above introduction, assume that there are multiple audio playback devices around the user. Then, when implementing the solutions of steps 401-402 above, it is not limited that these audio playback devices must form a serial network topology structure as introduced in the previous embodiments. It is also possible that these audio playback devices are all established with communication connections with the audio source device. At this time, for example, when the audio source device searches for multiple audio playback devices, it can establish communication connections with these audio playback devices respectively through a preset communication protocol (such as the Bluetooth protocol).
[0144] Figure 5 It is a flowchart of another audio playback method provided by an embodiment of the present invention. This audio playback method can be executed by any audio playback device. Thus, as Figure 5 shown, this audio playback method may include the following steps:
[0145] 501. Any audio playback device responds to a connection request from an audio source device and establishes a communication connection with the audio source device through a preset communication protocol.
[0146] 502. If any of the audio playback devices searches for other audio playback devices, it selects sub-devices from the other audio playback devices and establishes a communication connection with the sub-devices through a preset communication protocol.
[0147] 503. If any of the audio playback devices receives audio data sent by an audio source device that meets preset conditions, it plays the audio data and forwards the audio data to the sub-devices for playback.
[0148] different from Figure 4 In the embodiment shown, in order to balance the stereo playback effect of the audio data and the rationality of playback through the audio playback devices, it is specified that the audio source device and multiple audio playback devices need to form a serial network topology structure.
[0149] For ease of understanding, in combination with Figure 6 to illustrate, in Figure 6 still taking the audio source device, audio playback device A, audio playback device B, and audio playback device C exemplified in the foregoing embodiment as an example. At this time, any of the audio playback devices in the above steps is assumed to be audio playback device A selected from these three audio playback devices. The process of the audio source device, audio playback device A, audio playback device B, and audio playback device C generating a serial network topology structure can refer to the relevant description in the foregoing embodiment and will not be elaborated here.
[0150] In this embodiment, it is only illustrated that after the audio source device, audio playback device A, audio playback device B, and audio playback device C form a serial network topology structure, if the audio data to be broadcast by the audio source device meets the above preset conditions, it is sequentially transmitted to audio playback device A, audio playback device B, and audio playback device C for playback. Conversely, if it does not meet the conditions, only the audio source device plays. For example, as Figure 6 shown in Figure 6 if the audio data to be played by the audio source device is voice call data, the audio source device does not transmit the voice call data to audio playback device A, so audio playback device B and audio playback device C will not receive the voice call data either, and the audio source device outputs the voice call data to the user. For example, as
[0151] Figure 7 is a schematic flowchart of another audio playback method provided by an embodiment of the present invention. This audio playback method can be executed by any audio playback device. Thus, asFigure 7 As shown in Figure 7 , the audio playback method may include the following steps:
[0152] 701. Any audio playback device receives a connection request from a parent device. The connection request includes first volume information of the parent device, and the parent device is another audio playback device.
[0153] 702. The any audio playback device establishes a communication connection with the parent device through a preset communication protocol.
[0154] 703. The any audio playback device determines second volume information of the any audio playback device according to the first volume information.
[0155] 704. The any audio playback device plays the audio data received from the parent device according to the second volume information.
[0156] The original intention of the audio playback solution provided in this embodiment is that when the audio source device and multiple audio playback devices form a serial network topology structure, since the distances between the users corresponding to the audio source device and each audio playback device are different, in order to allow users to obtain a better listening experience, the volumes of each audio playback device are preferably the same for users. Therefore, the volumes of multiple audio playback devices are automatically adjusted to ensure that users obtain a better listening experience.
[0157] Still taking the audio source device, audio playback device A, audio playback device B, and audio playback device C exemplified in the foregoing embodiment as an example to elaborate on the implementation process of the audio playback solution provided in this embodiment. Among them, the process of forming a serial network topology structure by the audio source device, audio playback device A, audio playback device B, and audio playback device C will not be elaborated.
[0158] For audio playback device A, since it is the first audio playback device directly connected to the audio source device, in practical applications, the volume information of this audio playback device A can be the default volume value.
[0159] Assume that the any audio playback device in the above steps is audio playback device B. When audio playback device A searches for and determines to establish a communication connection with audio playback device B, it can send a connection request including the volume information of audio playback device A (referred to as the first volume information) to audio playback device B. Based on this connection request, audio playback device B, on the one hand, establishes a communication connection with audio playback device A through a preset communication protocol, and on the other hand, can determine its own second volume information according to the first volume information of audio playback device A.
[0160] In practical applications, optionally, a volume adjustment policy can be pre - installed in any audio playback device. The volume adjustment policy describes how the volume of that any audio playback device should be adjusted when the volume of another audio playback device connected to it is at a certain level. Thus, based on this volume adjustment policy, audio playback device B determines its own second volume information.
[0161] Based on this, when audio playback device B subsequently receives the audio data forwarded by audio playback device A, it plays the audio data at the volume corresponding to this second volume information.
[0162] As introduced in the previous embodiments, the basis for audio playback device A to select to establish a communication connection with audio playback device B can be: when audio playback device A searches for audio playback device B and audio playback device C, according to the signal strengths corresponding to these two audio playback devices respectively, it finally determines to select audio playback device B with a higher signal strength to connect. Based on this, optionally, in the connection request sent by audio playback device A to audio playback device B, in addition to the first volume information of audio playback device A, it can also include the signal strength of audio playback device B. Thus, audio playback device B can determine its own second volume information according to the first volume information and this signal strength.
[0163] Specifically, audio playback device B can estimate the distance between itself and audio playback device A according to this signal strength. Furthermore, according to the corresponding relationship between the preset distance range and the volume adjustment method, combined with the first volume information of audio playback device A, it determines its own second volume information. For example, the volume value corresponding to the first volume information is 6, and the distance between audio playback device A and audio playback device B is 1 meter. Assuming that the above - mentioned corresponding relationship describes that: if the distance from the parent device is 0.8 meters to 1.5 meters, the volume is increased by 1. Thus, audio playback device B determines its own second volume information as: volume value = 7.
[0164] For audio playback device B, during the networking stage, after audio playback device B connects to audio playback device A, it can continue to search for other unconnected audio playback devices around. If it searches for other audio playback devices, it selects a sub - device from the other audio playback devices and sends a connection request including the second volume information to the sub - device. Assuming the selected sub - device is audio playback device C, based on this connection request, audio playback device C establishes a communication connection with audio playback device B through a preset communication protocol and determines the third volume information of audio playback device C according to the second volume information. The determination process of the third volume information is the same as that of the second volume information and will not be elaborated here.
[0165] It can be understood that after receiving the audio data sent by the audio playback device A, the audio playback device B plays the audio data at the second volume information on the one hand, and on the other hand, forwards the audio data to the sub-device, that is, the audio playback device C, so that the audio playback device C plays the audio data according to its own third volume information.
[0166] In summary, based on the audio playback solution provided in this embodiment, not only can the stereo playback effect of the audio be achieved, but also the automatic adjustment of the volume size between different audio playback devices can be realized to ensure the user's listening experience.
[0167] Figure 8 FIG. is a schematic flow chart of another audio playback method provided by an embodiment of the present invention. This audio playback method can be executed by any audio playback device. Thus, as Figure 8 shown, this audio playback method may include the following steps:
[0168] 801. Any audio playback device receives a connection request from a parent device, and the connection request includes the playback mode information of the parent device.
[0169] Optionally, the parent device is an audio source device or another audio playback device.
[0170] 802. The any audio playback device establishes a communication connection with the parent device through a preset communication protocol.
[0171] 803. If the any audio playback device searches for other audio playback devices, it selects a sub-device from the other audio playback devices.
[0172] 804. The any audio playback device sends a connection request including the playback mode information to the sub-device, so that the sub-device establishes a communication connection with the any audio playback device through a preset communication protocol.
[0173] 805. The any audio playback device plays the audio data received from the parent device according to the playback mode information.
[0174] 806. The any audio playback device forwards the audio data to the sub-device, so that the sub-device plays the audio data according to the playback mode information.
[0175] The core idea of the audio playback solution provided in this embodiment is that when the audio source device and multiple audio playback devices form a serial network topology structure, in order to enable users to obtain a better listening experience, the playback strategies between the audio playback devices need to be kept consistent. Among them, in this embodiment, it is assumed that the playback strategy includes the playback mode information in the above steps.
[0176] Taking audio data as an example of a song, the so-called playback mode information can be understood as the playback style of the song. For example, if the playback style selected by the user on the audio source device is the pop style, then to maintain consistency, each audio playback device should also play the song in the pop style.
[0177] To achieve consistent playback mode information among audio playback devices, in practical applications, during the networking stage, the parent device can carry the playback mode information of the parent device in the connection request sent to its devices, so that the child devices can synchronize to the consistent playback mode information.
[0178] Figure 9 It is a schematic flowchart of another audio playback method provided by an embodiment of the present invention. This audio playback method can be executed by any audio playback device. Thus, as Figure 9 shown, this audio playback method can include the following steps:
[0179] 901. Any audio playback device responds to the connection request of the audio source device and establishes a communication connection with the audio source device through a preset communication protocol.
[0180] 902. If the any audio playback device searches for other audio playback devices, it selects child devices from the other audio playback devices and establishes a communication connection with the child devices through a preset communication protocol.
[0181] 903. The any audio playback device obtains the signal strength of the audio source device.
[0182] 904. The any audio playback device determines the first volume information of the any audio playback device according to the signal strength.
[0183] 905. The any audio playback device plays the audio data received from the audio source device according to the first volume information.
[0184] 906. The any audio playback device sends the first volume information and the audio data to the child devices, so that the child devices determine the second volume information of the child devices according to the first volume information and play the audio data according to the second volume information.
[0185] The core idea of the audio playback solution provided in this embodiment is as follows: After the audio source device and multiple audio playback devices form a serial network topology, the user corresponding to the audio source device may initially be located at a certain position. At this time, each audio playback device plays the audio data that the audio source device needs to play at a certain volume. When the user moves, the distance relationship between the user and each audio playback device may change significantly. To enable the user to obtain a consistent listening experience before and after moving and avoid the phenomenon of sudden changes in volume, at this time, each audio playback device responds to the user's position movement and adjusts the corresponding volume information of each device to play the audio data at the adjusted volume.
[0186] Still taking the audio source device, audio playback device A, audio playback device B, and audio playback device C exemplified in the foregoing embodiment as an example, the implementation process of the audio playback solution provided in this embodiment will be described. Any one of the above audio playback devices is assumed to be the audio playback device A connected to the audio source device.
[0187] Among them, the process of the audio source device, audio playback device A, audio playback device B, and audio playback device C forming a serial network topology will not be elaborated.
[0188] After the network formation, that is, after forming a serial network topology, as the audio playback device A connected to the audio source device, it can detect the signal strength of the audio source device at regular time intervals. Specifically, the audio playback device A can send a preset control message to the audio source device and determine the signal strength of the audio source device based on the response message feedback by the audio source device. This signal strength reflects the distance between the audio playback device A and the audio source device.
[0189] Assume that the volume of the audio playback device A at time T1 is a. After that, the signal strength of the audio source device detected at time T2 is P1, and assume that the signal strength of the audio source device corresponding to time T1 is P2. If P1 is less than P2, it means that the user has moved and is moving away from the audio playback device A. At this time, the audio playback device A can determine the current volume b to be adjusted (corresponding to the first volume information in the above steps) based on the difference between P1 and P2 and the previous volume a. In practical applications, the corresponding relationship between the signal strength change situation and the volume adjustment amplitude can be preset in advance to determine how to adjust the volume based on this corresponding relationship.
[0190] After the audio playback device A re-determines its own first volume information, it plays the audio data from the audio source device with the first volume information, and forwards its own first volume information and the audio data to the sub-device, i.e., the audio playback device B. The audio playback device B determines its own second volume information according to the first volume information, and plays the audio data according to the second volume information. Among them, the process of the audio playback device B determining the second volume information can refer to Figure 7 the embodiments shown.
[0191] The audio playback devices of one or more embodiments of the present invention will be described in detail below. Those skilled in the art can understand that these audio playback devices can all be configured by using commercially available hardware components through the steps taught by this solution.
[0192] Figure 10 is a schematic structural diagram of an audio playback device provided by an embodiment of the present invention. As Figure 10 shown, the device includes: a connection module 11, a playback module 12, and a sending module 13.
[0193] The connection module 11 is used to respond to the connection request of the parent device, establish a communication connection with the parent device through a preset communication protocol; if other audio playback devices are searched, select a sub-device from the other audio playback devices, and establish a communication connection with the sub-device through the preset communication protocol.
[0194] The playback module 12 is used to play the audio data received from the parent device.
[0195] The sending module 13 is used to forward the audio data to the sub-device for playback.
[0196] Optionally, the preset communication protocol includes: a Bluetooth communication protocol.
[0197] Optionally, the device further includes:
[0198] a receiving module, which is used to listen for a detection request frame in response to a network connection trigger operation;
[0199] The sending module 13 is further used for: if a detection request frame sent by the parent device is detected, reply with a detection response frame, so that the parent device determines whether to send the connection request to the audio playback device according to the detection response frame.
[0200] Optionally, the receiving module is further used for: after the connection module 11 establishes a communication connection with the parent device through a preset communication protocol, stop listening for the detection request frame.
[0201] Optionally, the receiving module is further configured to: if a preset voice triggered by a user is received, listen for a probe request frame; or, if a preset touch operation triggered by a user is received, listen for a probe request frame.
[0202] Optionally, the parent device is an audio source device or another audio playback device.
[0203] Optionally, during the process of searching for other audio playback devices and selecting a child device from the other audio playback devices, the connection module 11 is specifically configured to: trigger the sending module 13 to send a probe request frame; if a probe response frame replied by the other audio playback device is received through the receiving module, select a child device from the other audio playback devices.
[0204] Optionally, during the process of selecting a child device from the other audio playback devices, the connection module 11 is specifically configured to: select the one with the highest signal strength as the child device from the other audio playback devices according to the signal strength of the probe response frame replied by the other audio playback device.
[0205] Optionally, the probe response frame includes a device identifier, and the connection module 11 is further configured to: determine that the device type of the other audio playback device is an audio playback device according to the device identifier included in the probe response frame replied by the other audio playback device.
[0206] Optionally, the sending module 13 is further configured to: after the connection module 11 establishes a communication connection with the child device through the preset communication protocol, stop sending the probe request frame.
[0207] Optionally, the receiving module is further configured to receive a stop playback instruction sent by the parent device. Accordingly, the playback module 12 is further configured to: stop playing the audio data. The sending module 13 is further configured to: forward the stop playback instruction to the child device.
[0208] Figure 10 The device shown can execute the Figures 1 to 3 audio playback method provided in the foregoing
[0209] In a possible design, the structure of the foregoing Figure 10 shown audio playback device can be implemented as an audio playback device, such as a smart speaker. As Figure 11 shown, the audio playback device may include: a processor 21 and a memory 22. Wherein, executable code is stored on the memory 22, and when the executable code is executed by the processor 21, the processor 21 can at least implement as described in the foregoingFigures 1 to 3 The audio playback method provided in the illustrated embodiment.
[0210] Optionally, the audio playback device may further include a communication interface 23 for communicating with other devices.
[0211] Optionally, the audio playback device may also execute Figures 4 to 9 Any audio playback method provided in the illustrated embodiments.
[0212] In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor can at least implement the audio playback method provided in the foregoing Figures 1 to 9 illustrated embodiment.
[0213] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative labor.
[0214] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. Based on such an understanding, the above technical solution, in essence, or the part that contributes to the prior art can be embodied in the form of a computer product. The present invention can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0215] The audio playback method provided in the embodiment of the present invention can be executed by a certain program / software, which can be provided by the network side. The audio playback device and the audio source device mentioned in the foregoing embodiments can download the program / software to the local non-volatile storage medium, and when they need to execute the foregoing audio playback method, read the program / software into the memory through the CPU, and then the CPU executes the program / software to implement the audio playback method provided in the foregoing embodiment. The execution process can refer to the illustration in the foregoing Figures 1 to 9 above.
[0216] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An audio playback method, characterized in that, applied to an audio playback device, the method includes: In response to a network connection trigger operation, the audio playback device is placed in a discoverable mode; Receive a connection request from a parent device, where the connection request includes first volume information of the parent device, and the parent device is another audio playback device; Establish a communication connection with the parent device through a preset communication protocol, and after the communication connection is established, the audio playback device is in a non-discoverable mode and searches for other unconnected audio playback devices existing around; Utilize the established communication connection with the parent device to receive audio data sent by the parent device; Determine second volume information of the audio playback device according to the first volume information; Play the audio data sent by the parent device according to the second volume information; If other audio playback devices in a discoverable mode are searched, select a child device from the other audio playback devices, establish a communication connection with the child device through the preset communication protocol, and after the communication connection is established, the child device is in a non-discoverable mode; Forward the audio data to the child device for playback.
2. The method according to claim 1, characterized in that, The connection request further includes the signal strength of the audio playback device measured by the parent device; The determining the second volume information of the audio playback device according to the first volume information includes: Determine the second volume information of the audio playback device according to the first volume information and the signal strength.
3. The method according to claim 1, characterized in that, The forwarding the audio data to the child device for playback includes: Send a connection request including the second volume information to the child device, so that the child device determines third volume information of the child device according to the second volume information; Forward the audio data to the child device, so that the child device plays the audio data according to the third volume information.
4. An audio playback method, characterized in that, applied to an audio playback device, the method includes: In response to a network connection trigger operation, the audio playback device is placed in a discoverable mode; Receive a connection request from a parent device, where the connection request includes playback mode information of the parent device; Establish a communication connection with the parent device through a preset communication protocol, and after the communication connection is established, the audio playback device is in a non-discoverable mode and searches for other unconnected audio playback devices existing around; If other audio playback devices in a discoverable mode are searched, select a child device from the other audio playback devices; Send a connection request including the playback mode information to the child device, so that the child device establishes a communication connection with the audio playback device through the preset communication protocol, and after the communication connection is established, the child device is in a non-discoverable mode; Play the audio data received from the parent device according to the playback mode information; Forward the audio data to the child device, so that the child device plays the audio data according to the playback mode information.
5. The method according to claim 4, wherein, the parent device is an audio source device or another audio playback device.
6. An audio playback method, wherein, applied to an audio playback device, the method comprising: in response to a network connection trigger operation, placing the audio playback device in a discoverable mode; in response to a connection request from an audio source device, establishing a communication connection with the audio source device through a preset communication protocol, and after the communication connection is established, the audio playback device is in a non-discoverable mode and searches for other unconnected audio playback devices existing around; if other audio playback devices in a discoverable mode are searched, selecting a child device from the other audio playback devices, and establishing a communication connection with the child device through the preset communication protocol, and after the communication connection is established, the child device is in a non-discoverable mode; acquiring a signal strength of the audio source device; determining first volume information of the audio playback device according to the signal strength; playing audio data received from the audio source device according to the first volume information; sending the first volume information and the audio data to the child device, so that the child device determines second volume information of the child device according to the first volume information, and plays the audio data according to the second volume information.
Citation Information
Patent Citations
Music playing control circuit and music playing terminal
CN104700858A
Method, apparatus, and computer program product for seamless switching of communication connection
CN104980987A
Audio play control method and apparatus
CN105244048A
Speaker apparatus, electronic apparatus connected therewith, and controlling method thereof
CN108076411A
Bluetooth sound box with voice call transfer processing function
CN202145660U