CN112822665A - Audio playing method, device, equipment and system - Google Patents

Audio playing method, device, equipment and system Download PDF

Info

Publication number
CN112822665A
CN112822665A CN201911128248.5A CN201911128248A CN112822665A CN 112822665 A CN112822665 A CN 112822665A CN 201911128248 A CN201911128248 A CN 201911128248A CN 112822665 A CN112822665 A CN 112822665A
Authority
CN
China
Prior art keywords
audio
audio playing
playing
sub
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911128248.5A
Other languages
Chinese (zh)
Inventor
黄启生
刘兆健
胡俊锋
李岳冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201911128248.5A priority Critical patent/CN112822665A/en
Publication of CN112822665A publication Critical patent/CN112822665A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides an audio playing method, an audio playing device, audio playing equipment and an audio playing system, wherein the method comprises the following steps: the audio playing device responds to a connection request of a parent device, establishes communication connection with the parent device through a preset communication protocol, selects a child device from other audio playing devices if other audio playing devices are searched, and establishes communication connection with the child device through the preset communication protocol; playing the audio data received from the parent device; and the audio data is forwarded to the sub-equipment for playing, so that the stereo playing effect of the audio is realized.

Description

Audio playing method, device, equipment and system
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to an audio playing method, device, equipment and system.
Background
Along with the continuous development of artificial intelligence technology, more and more intelligent equipment gets into people's life, provides very big facility for people's life, for example intelligent audio amplifier, intelligent bracelet etc..
At present, a common use mode for smart speakers is: terminal equipment such as a mobile phone and the like serving as an audio source is connected with a certain intelligent sound box in a Bluetooth mode, and then audio such as songs in the mobile phone is transmitted to the intelligent sound box through Bluetooth connection to be played.
At present, the audio source is connected with the intelligent sound box to play audio through the intelligent sound box, and the use mode is single, so that the requirement of people on the sound effect of stereo sound cannot be met.
Disclosure of Invention
The embodiment of the invention provides an audio playing method, device, equipment and system, which can realize the stereo playing effect of audio.
In a first aspect, an embodiment of the present invention provides an audio playing method, which is applied to an audio playing device, and the method includes:
responding to a connection request of a parent device, and establishing communication connection with the parent device through a preset communication protocol;
if other audio playing devices are searched, selecting a sub-device from the other audio playing devices, and establishing communication connection with the sub-device through the preset communication protocol;
playing audio data received from the parent device;
and forwarding the audio data to the sub-equipment for playing.
In a second aspect, an embodiment of the present invention provides an audio playing apparatus, which is applied to an audio playing device, and includes:
the connection module is used for responding to a connection request of a father device and establishing communication connection with the father device through a preset communication protocol; if other audio playing devices are searched, selecting a sub-device from the other audio playing devices, and establishing communication connection with the sub-device through the preset communication protocol;
the playing module is used for playing the audio data received from the father equipment;
and the sending module is used for forwarding the audio data to the sub-equipment for playing.
In a third aspect, an embodiment of the present invention provides an audio playing device, including: a memory, a processor; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to implement at least the audio playback method as described in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to implement at least the audio playing method according to the first aspect.
In a fifth aspect, an embodiment of the present invention provides an audio playing system, including:
the audio source device and the at least two audio playing devices form a serial network topology structure through a preset communication protocol;
the audio source device is used for sending audio data to the connected audio playing device;
and any one of the at least two audio playing devices is used for playing the audio data received from the connected parent device and forwarding the audio data to the child device when the connected child device exists.
In a fifth aspect, an embodiment of the present invention provides an audio playing method, which is applied to an audio playing device, and the method includes:
responding to a connection request of an audio source device, and establishing communication connection with the audio source device through a preset communication protocol;
and if the audio data which are sent by the audio source equipment and meet the preset conditions are received, playing the audio data.
In a sixth aspect, an embodiment of the present invention provides an audio playing method, which is applied to an audio playing device, and the method includes:
receiving a connection request of a parent device, wherein the connection request comprises first volume information of the parent device, and the parent device is another audio playing device;
establishing communication connection with the parent equipment through a preset communication protocol;
determining second volume information of the audio playing equipment according to the first volume information;
and playing the audio data received from the parent equipment according to the second volume information.
In a seventh aspect, an embodiment of the present invention provides an audio playing method, which is applied to an audio playing device, and the method includes:
receiving a connection request of a parent device, wherein the connection request comprises play mode information of the parent device;
establishing communication connection with the parent equipment through a preset communication protocol;
if other audio playing devices are searched, selecting the sub-devices from the other audio playing devices;
sending a connection request including the play mode information to the sub-equipment so that the sub-equipment establishes communication connection with the audio play equipment through the preset communication protocol;
playing the audio data received from the parent equipment according to the playing mode information;
and forwarding the audio data to the sub-equipment so that the sub-equipment plays the audio data according to the play mode information.
In an eighth aspect, an embodiment of the present invention provides an audio playing method, which is applied to an audio playing device, and the method includes:
responding to a connection request of an audio source device, and establishing communication connection with the audio source device through a preset communication protocol;
if other audio playing devices are searched, selecting a sub-device from the other audio playing devices, and establishing communication connection with the sub-device through the preset communication protocol;
acquiring the signal strength of the audio source device;
determining first volume information of the audio playing device according to the signal intensity;
playing audio data received from the audio source device according to the first volume information;
and sending the first volume information and the audio data to the sub-equipment so that the sub-equipment determines second volume information of the sub-equipment according to the first volume information and plays the audio data according to the second volume information.
In the embodiment of the present invention, in order to achieve a stereo playing effect of audio, an audio source device and at least two audio playing devices are required, where the audio source device and the at least two audio playing devices form a serial network topology through a preset communication protocol. Taking two audio playing devices as an example, the two audio playing devices are respectively called a first audio playing device and a second audio playing device, when audio data output by an audio source device needs to be played through the first audio playing device and the second audio playing device, firstly, the audio source device is in communication connection with the first audio playing device through a preset communication protocol, after the first audio playing device is connected to the audio source device, the second audio playing device is triggered to be searched, and after the second audio playing device is searched, the second audio playing device is in communication connection with the second audio device through the preset communication protocol, so that a serial network topology structure of the audio source device, the first audio playing device and the second audio playing device is formed. The audio data output by the audio source device is played by the first audio playing device and forwarded to the second audio playing device for playing, so that the stereo playing effect of the audio is realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a block diagram of an audio playing system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a principle of generating a serial network topology according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of an audio playing method according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating another audio playing method according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating another audio playing method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an audio playing scene corresponding to the embodiment shown in FIG. 5;
fig. 7 is a flowchart illustrating another audio playing method according to an embodiment of the present invention;
fig. 8 is a flowchart illustrating another audio playing method according to an embodiment of the present invention;
fig. 9 is a flowchart illustrating another audio playing method according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an audio playing apparatus according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an audio playing device corresponding to the audio playing apparatus provided in the embodiment shown in fig. 10.
Detailed Description
In order to make the objects, 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 drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, and "a plurality" typically includes at least two.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
In addition, the sequence of steps in each method embodiment described below is only an example and is not strictly limited.
Fig. 1 is a block diagram of an audio playing system according to an embodiment of the present invention, and as shown in fig. 1, the audio playing system includes: an audio source device and at least two audio playback devices, such as audio playback device a, audio playback device B, and audio playback device C illustrated in fig. 1.
In practical applications, the audio source device is, for example, a terminal device such as a mobile phone and a notebook computer, and the audio playing device is, for example, a terminal device such as a smart speaker.
In order to realize the stereo audio playing effect, firstly, the audio source device and the at least two audio playing devices form a serial network topology structure through a preset communication protocol, and further, based on the network topology structure, the audio source device can send audio data to the audio playing devices connected with the audio source device, and any one of the at least two audio playing devices is used for playing the audio data received from the connected parent device and forwarding the audio data to the connected child device when the connected child device exists.
The audio playing effect of stereo is simply that a plurality of audio playing devices play the same audio data at the same time to achieve the stereo effect.
Wherein, for any audio playing device, the two connected devices are respectively called as a parent device and a child device. Wherein, from the perspective of network topology, the parent device is its previous hop (hop) device, and the child device is its next hop device; from the aspect of the flow direction of the audio data, the any audio playing device receives the audio data from the parent device and forwards the audio data to the child device.
For ease of understanding, taking the three audio playback devices shown in fig. 1 as an example, the serial network topology may be that illustrated in fig. 1: the audio source equipment is in communication connection with the audio playing equipment A, the audio playing equipment A is in communication connection with the audio playing equipment B, and the audio playing equipment B is in communication connection with the audio playing equipment C.
Based on the network topology structure, the audio data output by the audio source device is transmitted to the audio playing device a, and the audio playing device a plays the audio data and forwards the audio data to the audio playing device B. The audio playing device B plays the audio data and forwards the audio data to the audio playing device C. The audio playing device C plays the audio data.
For the audio playing device a, the parent device is the audio source device, and the child device is the audio playing device B. For the audio playing device B, the parent device is the audio playing device a, and the child device is the audio playing device C. For the audio playing device C, its parent device is the audio playing device B, and there is no child device.
Therefore, in the serial network topology structure, except for the root node device (i.e., the audio source device) and the leaf node device (i.e., the last audio playing device — the audio playing device C), other audio playing devices (the audio playing device a and the audio playing device B) all play a relay forwarding function of audio data.
In this embodiment of The present invention, The preset communication protocol may be any standard communication protocol capable of implementing short-distance Wireless communication, for example, The protocol may be a bluetooth Audio transmission model protocol (The Advanced Audio Distribution Profile, abbreviated as A2DP), a Wireless-Fidelity (Wi-Fi) protocol, an Ultra Wideband (UWB) protocol, and so on.
It can be understood that, after a communication protocol is adopted to establish a communication connection between the audio source device and the audio playing device, audio data output by the audio source device will be encapsulated into a data packet corresponding to the communication protocol for forwarding transmission between the audio source device and the audio playing device.
In addition, it can be understood that, in order to support the preset communication protocol, hardware such as corresponding chips and software for executing the preset communication protocol are installed in the audio source device and each audio playing device. In order to enable the audio source device and the audio playing device to achieve a stereo audio playing effect, the audio source device and the audio playing device need to be able to achieve the above-mentioned functions of forming a serial network topology and forwarding audio data, and in order to enable the audio source device and the audio playing device to have the above-mentioned functions and shield differences of hardware produced by different hardware manufacturers, a general solution is to implant Software capable of achieving the above-mentioned functions in the audio source device and the audio playing device in a Software manner, where the Software is implemented, for example, as a Software Development Kit (SDK).
As can be seen from the above description, the audio source device and the at least two audio playing devices form a serial network topology, which is the basis for implementing the stereo playing effect of audio, and how to implement the serial network topology is described below.
First, the functions that the audio source device and any one of the at least two audio devices need to implement to form a serial topological network structure are summarized as follows:
the audio source device: when the at least two audio playing devices are searched, determining the audio playing device to be connected from the at least two audio playing devices, and establishing communication connection with the audio playing device to be connected through a preset communication protocol.
Any one of the at least two audio playback devices: responding to a connection request of the parent equipment, and establishing communication connection with the parent equipment through a preset communication protocol; and if other audio playing devices in the at least two audio playing devices are searched, selecting the sub-device from the other audio playing devices, and establishing communication connection with the sub-device through a preset communication protocol.
For ease of understanding, the generation principle of the serial network topology is illustrated below with reference to fig. 2. In fig. 2, the audio source device, the audio playback device a, the audio playback device B, and the audio playback device C illustrated in fig. 1 are also taken as examples.
As shown in fig. 2, first, the audio playback device a, the audio playback device B, and the audio playback device C place themselves in discoverable mode based on some networking trigger operation of the user. The discoverable mode is simply to enable other devices to search for themselves, and the opposite concept in the following is an undiscoverable mode, i.e. to enable other devices not to search for themselves.
The audio source device starts to search for audio playing devices existing around based on the trigger of the user, and assuming that the audio source device searches for the audio playing device a, the audio playing device B, and the audio playing device C, at this time, the audio source device determines, for example, the audio playing device a as the audio playing device to be connected to perform communication connection. The audio source device may send a connection request to the audio playing device a through a preset communication protocol (e.g., a bluetooth protocol), and the audio playing device a replies a connection response, thereby completing establishment of a communication connection between the audio source device and the audio playing device a.
Further, as shown in fig. 2, audio playback device a, after establishing a communication connection with its parent device, the audio source device, may place itself in the non-discoverable mode and search for other audio playback devices that are not connected that are present around. The audio playing device A searches the audio playing device B and the audio playing device C, and assumes that the audio playing device B is determined as a sub-device, and is in communication connection with the audio playing device B through a preset communication protocol.
Further, as shown in fig. 2, after the audio playback device B is connected by the audio playback device a, the audio playback device B places itself in the undetectable mode and searches for other audio playback devices that are not connected and exist around. The audio playing device B only searches for the audio playing device C, and thus, the audio playing device C is used as a sub-device and is in communication connection with the audio playing device C through a preset communication protocol.
Further, as shown in fig. 2, after the audio playback device C is connected by the audio playback device B, the audio playback device C places itself in the undetectable mode and searches for other audio playback devices that are not connected and exist around. The audio playing device C does not search for other audio playing devices, and the search is ended. Thus, a serial network topology structure is generated, in which an audio source device, an audio playing device a, an audio playing device B, and an audio playing device C are connected in sequence.
As can be seen from the networking principle shown in fig. 2, after the audio source device invites the first audio playing device a to access the network, the audio playing device a invites the second audio playing device B to access the network, and the audio playing device B invites the third audio playing device C to access the network, and so on, the network access of all the audio playing devices is completed in sequence. The advantages of this networking approach are: only two devices are involved in the process of establishing communication connection each time, so that the reliability of the communication connection between the devices can be ensured, and the problem of connection failure caused by the fact that one audio playing device is connected by a plurality of devices at the same time is avoided.
In addition, as shown in fig. 2, based on the establishment of the serial network topology, when a user triggers an audio playing operation on an audio source device, the audio source device may transmit audio data to the audio playing device a, and the audio playing device a plays the audio data and forwards the audio data to the audio playing device B. The audio playing device B plays the audio data and forwards the audio data to the audio playing device C. The audio playing 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. And the audio playing device A stops playing the audio data based on the received playing stopping instruction and forwards the playing stopping instruction to the audio playing device B. And the audio playing device B stops playing the audio data based on the received playing stopping instruction and forwards the playing stopping instruction to the audio playing device C. And the audio playing device C stops playing the audio data based on the received playing stopping instruction.
In practical application, optionally, in the process of playing the audio data, before the audio source device sends the audio data to the audio playing device a, the audio source device may also send a play start instruction to the audio playing device a, so that the audio playing device a is ready to play based on the play start instruction, and feeds back a confirmation message to the audio source device, and after receiving the confirmation message, the audio source device sends the audio data to the audio playing device a. Similarly, before forwarding the audio data to the audio playing device B, the audio playing device a may also send a play start instruction to the audio playing device B, so that the audio playing device B is ready to play based on the play start instruction, and feeds back a confirmation message to the audio playing device a, and after receiving the confirmation message, the audio playing device a forwards the audio data to the audio playing device B. Wherein, the start playing instruction is a control message with negligible time delay.
The establishment process of the serial network topology and the playing process of the audio data are schematically described above with reference to fig. 2.
Based on this principle, an alternative audio playing implementation in practical application is exemplified below with reference to fig. 3, wherein the audio source device, the audio playing device a, the audio playing device B, and the audio playing device C in the embodiment shown in fig. 1 are still taken as examples for description, and the preset communication protocol is assumed to be the bluetooth protocol.
Fig. 3 is a schematic flowchart of an audio playing method according to an embodiment of the present invention, and as shown in fig. 3, the audio playing method may include the following steps:
301. the audio playing device A, the audio playing device B and the audio playing device C listen to the detection request frame in response to the networking trigger operation.
302. The audio source device transmits a probe request frame in response to a networking trigger operation.
303. The audio playing device A, the audio playing device B and the audio playing device C listen to the detection request frame sent by the audio source device and reply to the detection response frame.
In practical applications, when a user wants to play certain audio data (such as a certain song) in the audio source device through the three audio playing devices, a networking trigger operation may be performed. Based on this networking trigger operation, each audio playback device places itself in discoverable mode. It will be appreciated that in practice the three audio playback devices are located relatively close together.
The audio playing device provided in this embodiment puts itself into discoverable mode in an implementation manner that: the audio playback device turns on the function of listening for probe request frames (which may be denoted as probe requests). Based on the start of the listening function, the audio playing device may listen to the probe request frame sent by other surrounding devices through the bluetooth protocol, and when the probe request frame sent by a certain device is listened to, may reply to the probe response frame (which may be denoted as probe response) to let the device sending the probe request frame discover itself.
In practical applications, optionally, the networking triggering operation may be a preset voice triggered by a user, or a preset touch operation triggered by the user.
For example, when a user wants to play audio data in the audio source device through the three audio playing devices, a preset voice may be spoken, the preset voice plays a role in waking up, each audio playing device starts a function of listening to the detection request frame when receiving the preset voice, and the audio source device broadcasts and sends the detection request frame when receiving the preset voice, so as to search for audio playing devices existing around.
For another example, when the user wants to play audio data in the audio source device through the three audio playing devices, a certain button on each audio playing device may be pressed respectively to trigger each audio playing device to start the function of listening to the detection request frame, where the button may be a physical button or a virtual button. Similarly, the user may trigger a touch operation (for example, a touch operation on a button in an interface) on the audio source device, so that the audio source device broadcasts the probe request frame.
The audio playback device that listens to the probe request frame sent by the audio source device may reply with the probe response frame when listening to the probe request frame, so that the audio source device is aware of its own presence. Optionally, the detection response frame may include a device identifier, so that the audio source device determines, according to the device identifier, whether the type of the device that sends out the detection response frame is an audio playback device, and if so, the audio source device may use the audio playback device that sends out the detection response frame as a candidate connection device.
In practical applications, the probe response frame may further include a communication address, such as a MAC address, of the audio playing device, so that the audio source device may establish a communication connection with the audio playing device according to the communication address.
304. And the audio source equipment determines to send a connection request to the audio playing equipment A according to the detection response frames replied by the audio playing equipment A, the audio playing equipment B and the audio playing equipment C.
305. The audio playing device A takes the audio source device as a parent device and establishes communication connection with the audio source device through a preset communication protocol.
For example, in combination with the audio playing device a, the audio playing device B, and the audio playing device C, after the audio source device receives the detection response frames of the three audio playing devices, the device identifiers of the three audio playing devices may be displayed on the screen, so that the user may select one audio playing device from the three audio playing devices to connect with the audio source device. Wherein the user can randomly select one audio playing device from the audio files.
It is assumed in the present embodiment that the user selects the audio playback device a, and thus, the audio source device issues a connection request to the audio playback device a based on the selection of the user. Thus, the audio playback device a establishes a communication connection with the audio source device through the preset communication protocol, with the audio source device as a parent device.
Of course, optionally, the audio source device may also select the audio playing device corresponding to the detection response frame with the strongest signal strength from the signal strengths corresponding to the detection response frames of the three audio playing devices to connect.
306. The audio playback device a stops listening to the probe request frame.
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 may place itself in the non-discoverable mode.
The audio playback device a may put itself in the non-discoverable mode by stopping the listening probe request frame, i.e. turning off the functionality of the listening probe request frame.
307. The audio playback device a transmits a probe request frame.
308. And the audio playing device B and the audio playing device C listen to the detection request frame sent by the audio playing device A and reply to the detection response frame.
309. And the audio playing device A determines to send a connection request to the audio playing device B according to the detection response frames replied by the audio playing device B and the audio playing device C.
310. The audio playing device B takes the audio playing device A as a parent device and establishes communication connection with the audio playing device A through a preset communication protocol.
When the audio playing device a is connected to the audio source device as a sub-device of the audio source device, the audio playing device a is triggered to start searching its own sub-device.
Specifically, the audio playing device a broadcasts and sends the probe request frame, and since the functions of the audio playing device B and the audio playing device C for intercepting the probe request frame are still turned on at this time, the audio playing device B and the audio playing device C reply the probe response frame after intercepting the probe request frame sent by the audio playing device a. The probe response frame may include a device identifier, so that the audio playback device a may determine that the two devices are indeed audio playback devices according to the device identifiers included in the probe response frames sent by the audio playback device B and the audio playback device C. Further, the audio playback device a selects one of the two audio playback devices as its own child device for communication connection.
Alternatively, the audio playing device a may select the sub-device with the highest signal strength from the signal strengths of the probe response frames returned by the two audio playing devices, and assume that the audio playing device B is selected as the sub-device.
The audio playing device a may send a connection request to the audio playing device B, so that the audio playing device B establishes a communication connection with the audio playing device a in response to the connection request.
311. The audio playback device B stops listening to the probe request frame.
The audio playback device B also places itself in the undiscoverable mode after establishing a communication connection with the audio playback device a as a child device. In particular, it may be put in a non-discoverable mode by stopping listening to probe request frames.
Further, the audio playback device B starts searching its own sub-device, and the searching process is as described in step 312 and 316.
312. The audio playback device B transmits a probe request frame.
313. And the audio playing device C listens the detection request frame sent by the audio playing device B and replies a detection response frame.
314. And the audio playing device B determines to send a connection request to the audio playing device C according to the detection response frame replied by the audio playing device C.
315. And the audio playing device C takes the audio playing device B as a parent device and establishes communication connection with the audio playing device C through a preset communication protocol.
316. The audio playback device C stops listening to the probe request frame.
The process of the audio playing device B searching the sub-device, i.e. the audio playing device C, can refer to the execution process of the audio playing device a, and is not described in detail.
Only, optionally, when the audio playing device B can only search one device, that is, the audio playing device C, the audio playing device B may notify the audio playing device C that it is the last audio playing device, so that after the audio playing device C establishes a communication connection with the audio playing device B, the process of searching its own sub-device may not be executed any more.
Of course, the audio playing device B may not perform the notification of the message, and at this time, the audio playing device C starts to search its own sub-device after connecting to the audio playing device B. Specifically, the audio playing device C sends the probe request frame, but the audio playing device C cannot receive the probe response frame replied by other audio playing devices at this time, so that if the audio playing device C does not receive the probe response frame within the preset time, it is determined that the audio playing device C is the last audio playing device.
At this point, the networking process of the audio source device and the plurality of audio playback devices is finished.
317. The audio source device transmits audio data to the audio playback device a in response to the audio playback operation.
In practical applications, the audio playing operation is, for example, to click and play a certain song after the user selects the song.
318. The audio playing device a plays the audio data and forwards the audio data to the audio playing device B.
319. The audio playing device B plays the audio data and forwards the audio data to the audio playing device C.
320. The audio playing device C plays audio data.
Finally, it should be noted that when a certain audio playing device (e.g., audio playing device a) searches for multiple audio playing devices (e.g., audio playing device B and audio playing device C), the audio playing device (e.g., audio playing device B) with the strongest signal strength is selected for connection, so that the robustness of network connection can be ensured, thereby helping to ensure the realization of the stereo playing effect of audio. Because at least two audio playing devices are required for realizing the stereo playing effect, when there are, for example, 3 or more audio playing devices, because the audio playing devices are connected in series, if the quality of the communication connection between the first two audio playing devices is not good and the audio data cannot be transmitted to the second audio playing device, the latter audio playing device will not receive the audio data, and thus the stereo playing effect cannot be realized.
Fig. 4 is a schematic flowchart of another audio playing method according to an embodiment of the present invention, where the audio playing method may be executed by any audio playing device, and thus, as shown in fig. 4, the audio playing method may include the following steps:
401. any audio playing device responds to the connection request of the audio source device and establishes communication connection with the audio source device through a preset communication protocol.
402. And if any audio playing device receives the audio data which is sent by the audio source device and meets the preset conditions, the audio playing device plays the audio data.
In this embodiment, the any audio playing device may be, for example, the audio playing device a illustrated in the foregoing embodiment, and the process of establishing the communication connection between the audio source device and the audio playing device a may join the related description in the foregoing embodiment, which is not described herein again.
The main idea of the audio playing method provided by the embodiment is as follows: when an audio playing device establishes a communication connection with an audio source device, generally, any audio data in the audio source device can be played through the audio playing device, such as a song in the audio source device, a voice call received by the audio source device, and the like. Therefore, it is possible for the audio playing device to set that it plays the audio data only when receiving the audio data that satisfies the preset condition and is sent by the audio source device, and does not play the audio data if the received audio data does not satisfy the preset condition, and at this time, it switches to outputting the audio data to the user by the audio source device.
Optionally, the preset condition may include at least one of the following:
the current time does not belong to the preset disturbance-free time period, and the audio data is not voice telephone data.
That is, if the audio playing device receives that the audio data sent by the audio source device is voice telephone data, the audio playing device does not play the audio data and switches to the audio source device to play the audio data; if the audio playing device receives the audio data sent by the audio source device in a certain period of time in the evening, the period of time is not suitable for being played by the audio playing device, and therefore the audio playing device is switched to play.
For example, imagine the following practical application scenario: the audio source device is a mobile phone of a user, the audio playing device is a smart sound box, if a friend makes a call to the user, the voice of the friend can be played through the smart sound box after the user answers the call, and therefore the protection of the personal privacy of the user is not facilitated. Based on this, when the audio source device answers the friend's phone, the voice phone data generated by the friend is not transmitted to the connected audio playing device, and thus, the voice phone data is output to the user only through the voice output interface of the audio source device.
For another example, imagine the following practical application scenario: the audio source device is a mobile phone of a user, the audio playing device is a smart sound box, the mobile phone of the user is assumed to be in communication connection with the smart sound box, and the current time is assumed to be 11:00 at night. Since the family of the user may fall asleep at this time, the user wants to listen to the song currently, but the user forgets that the mobile phone of the user is connected with the smart sound box, so that the user triggers the song playing operation on the mobile phone, the song is played through the smart sound box, and the volume of the smart sound box is high, so that the family is affected. Therefore, the preset condition can be set on the smart sound box, so that when the smart sound box receives audio data transmitted by the mobile phone in a preset disturbance-free time period (the night is 11:00 in the preset disturbance-free time period), the audio data is not played. In addition, at this moment, the smart sound box can feed back prompt information to the mobile phone through the communication connection between the smart sound box and the mobile phone so as to prompt that the user is not suitable for playing audio through the smart sound box at this moment. Of course, optionally, when the mobile phone receives an audio playing operation of a user, such as a song, in the non-disturbing period, the audio data may not be sent to the audio playing device, so as to avoid being played by the audio playing device.
It can be understood from the above description that, assuming that there are multiple audio playback devices around the user, when the scheme of steps 401 and 402 is executed, it is not limited that these audio playback devices need to form a serial network topology as described in the foregoing other embodiments. The audio playing devices may establish communication connection with the audio source device, and at this time, for example, when the audio source device searches for multiple audio playing devices, the audio playing devices may establish communication connection with the audio playing devices through a preset communication protocol (for example, a bluetooth protocol).
Fig. 5 is a schematic flowchart of another audio playing method according to an embodiment of the present invention, where the audio playing method may be executed by any audio playing device, and thus, as shown in fig. 5, the audio playing method may include the following steps:
501. any audio playing device responds to the connection request of the audio source device and establishes communication connection with the audio source device through a preset communication protocol.
502. And if any audio playing device searches other audio playing devices, selecting a sub-device from the other audio playing devices, and establishing communication connection with the sub-device through a preset communication protocol.
503. And if any audio playing device receives the audio data which is sent by the audio source device and meets the preset conditions, playing the audio data, and forwarding the audio data to the sub-device for playing.
Different from the embodiment shown in fig. 4, in this embodiment, in order to make consideration of the stereo playing effect of the audio data and the rationality of playing through the audio playing device, it is limited that the audio source device and the plurality of audio playing devices need to form a serial network topology.
For convenience of understanding, in fig. 6, the audio source device, the audio playing device a, the audio playing device B, and the audio playing device C exemplified in the foregoing embodiment are still combined, and at this time, any one of the audio playing devices in the above steps is assumed to be the audio playing device a selected from the three audio playing devices. For the process of generating the serial network topology by the audio source device, the audio playing device a, the audio playing device B, and the audio playing device C, reference is made to the related description in the foregoing embodiments, which is not repeated herein.
In this embodiment, only after the audio source device, the audio playing device a, the audio playing device B, and the audio playing device C form a serial network topology, if the audio data to be played by the audio source device satisfies the preset condition, the audio data is sequentially transmitted to the audio playing device a, the audio playing device B, and the audio playing device C for playing, otherwise, if the audio data does not satisfy the preset condition, the audio data is only played by the audio source device. For example, as shown in fig. 6, if the audio data to be played by the audio source device is voice telephone data, the audio source device does not transmit the voice telephone data to the audio playing device a, and thus the audio playing device B and the audio playing device C will not receive the voice telephone data, and the audio source device outputs the voice telephone data to the user. For example, as shown in fig. 6, if the audio data to be played by the audio source device is a song, the audio source device transmits the song to the audio playing device a, and forwards the song to the audio playing device B by the audio playing device a, and forwards the song to the audio playing device C by the audio playing device B, so that the three audio playing devices play the songs received by the three audio playing devices.
Fig. 7 is a schematic flowchart of another audio playing method according to an embodiment of the present invention, where the audio playing method may be executed by any audio playing device, and thus, as shown in fig. 7, the audio playing method may include the following steps:
701. any audio playing device receives a connection request of a parent device, wherein the connection request comprises first volume information of the parent device, and the parent device is another audio playing device.
702. And the any audio playing device establishes communication connection with the parent device through a preset communication protocol.
703. And the any audio playing equipment determines second volume information of the any audio playing equipment according to the first volume information.
704. And the any audio playing device plays the audio data received from the parent device according to the second volume information.
The audio playing scheme provided by the embodiment is originally designed as follows: when the audio source device and the audio playing devices form a serial network topology structure, because the distances between users corresponding to the audio source device and the audio playing devices are different, in order to enable the users to obtain better listening experience, the volume of each audio playing device is preferably not different for the users, and therefore, the users can obtain better listening experience through automatic volume adjustment among the audio playing devices.
The implementation process of the audio playing scheme provided in this embodiment is still described in conjunction with the audio source device, the audio playing device a, the audio playing device B, and the audio playing device C exemplified in the foregoing embodiments. The process of forming a serial network topology structure by the audio source device, the audio playing device a, the audio playing device B, and the audio playing device C is not repeated.
For the audio playing device a, since it is the first audio playing device directly connected to the audio source device, in practical applications, the volume information of the audio playing device a may be the default volume value.
Assuming that any one of the audio playing devices in the above steps is the audio playing device B, when the audio playing device a searches for and determines to establish a communication connection with the audio playing device B, a connection request including volume information (referred to as first volume information) of the audio playing device a may be sent to the audio playing device B. Based on the connection request, the audio playing device B establishes a communication connection with the audio playing device a through a preset communication protocol on the one hand, and can determine second volume information of itself according to the first volume information of the audio playing device a on the other hand.
In practical applications, optionally, a volume adjustment policy may be pre-set in any audio playing device, where the volume adjustment policy describes how the volume of any audio playing device should be adjusted when another audio playing device connected to the audio playing device has a certain volume. Thus, based on the volume adjustment policy, the audio playback device B determines its second volume information.
Based on this, when the subsequent audio playing device B receives the audio data forwarded by the audio playing device a, the audio data is played by adopting the volume corresponding to the second volume information.
As described in the foregoing embodiments, the basis for the audio playback device a to select the communication connection with the audio playback device B may be: and when the audio playing device A searches the audio playing device B and the audio playing device C, finally determining to select the audio playing device B with higher signal intensity for connection according to the respective corresponding signal intensities of the two audio playing devices. Based on this, optionally, the connection request sent by the audio playing device a to the audio playing device B may further include the signal intensity of the audio playing device B in addition to the first volume information of the audio playing device a, so that the audio playing device B may determine its second volume information according to the first volume information and the signal intensity.
Specifically, the audio playing device B may estimate a distance between itself and the audio playing device a according to the signal intensity, and then determine second volume information of itself according to a corresponding relationship between a preset distance range and a volume adjustment mode in combination with the first volume information of the audio playing device a. For example, the volume value corresponding to the first volume information is 6, and the distance between the audio playback device a and the audio playback device B is 1 meter, assuming that the correspondence describes: if the distance from the parent device is 0.8 m to 1.5 m, the volume is increased by 1, and thus, the audio playing device B determines that the second volume information of itself is: the volume value is 7.
For the audio playing device B, in the networking stage, after the audio playing device B is connected to the audio playing device a, the audio playing device B may continue to search for other audio playing devices that are not connected around. And if other audio playing devices are searched, selecting the sub-device from the other audio playing devices, and sending a connection request comprising the second volume information to the sub-device. Assuming that the selected sub-device is the audio playing device C, the audio playing device C establishes a communication connection with the audio playing device B through a preset communication protocol based on the connection request, and determines third volume information of the audio playing device C according to the second volume information. The determination process of the third volume information is consistent with the determination process of the second volume information, and is not described again.
It can be understood that, after receiving the audio data sent by the audio playing device a, the audio playing device B plays the audio data with the second volume information on one hand, and on the other hand, forwards the audio data to the sub-device, that is, the audio playing device C, so that the audio playing device C plays the audio data according to the third volume information of its own.
In summary, based on the audio playing scheme provided in this embodiment, not only a stereo playing effect of audio can be achieved, but also automatic adjustment of volume between different audio playing devices can be achieved, so as to ensure the listening experience of the user.
Fig. 8 is a schematic flowchart of another audio playing method according to an embodiment of the present invention, where the audio playing method may be executed by any audio playing device, and thus, as shown in fig. 8, the audio playing method may include the following steps:
801. any audio playing device receives a connection request of a parent device, wherein the connection request comprises playing mode information of the parent device.
Optionally, the parent device is an audio source device or another audio playback device.
802. And the any audio playing device establishes communication connection with the parent device through a preset communication protocol.
803. And if any audio playing device searches other audio playing devices, selecting the sub-device from the other audio playing devices.
804. And the any audio playing device sends a connection request comprising the playing mode information to the sub-device so that the sub-device establishes communication connection with the any audio playing device through a preset communication protocol.
805. And the any audio playing device plays the audio data received from the parent device according to the playing mode information.
806. And any audio playing device forwards the audio data to the sub-device, so that the sub-device plays the audio data according to the playing mode information.
The core idea of the audio playing scheme provided by the embodiment is as follows: when an audio source device and a plurality of audio playing devices form a serial network topology structure, in order to enable a user to obtain better listening experience, consistency of playing strategies needs to be maintained among the audio playing devices. In this embodiment, it is assumed that the playback policy includes the playback mode information in the above steps.
Taking the audio data as a song as an example, the play mode information may be understood as the play style of the song. For example, if the user selected a genre of audio on the audio source device that is popular, then to maintain consistency, the audio playback devices should also play songs using that popular genre.
In order to realize consistent play mode information among the audio play devices, in practical application, in a networking stage, a parent device may carry the play mode information of the parent device in a connection request sent to the parent device, so that child devices synchronize to be consistent play mode information.
Fig. 9 is a schematic flowchart of another audio playing method according to an embodiment of the present invention, where the audio playing method may be executed by any audio playing device, and thus, as shown in fig. 9, the audio playing method may include the following steps:
901. any audio playing device responds to the connection request of the audio source device and establishes communication connection with the audio source device through a preset communication protocol.
902. And if any audio playing device searches other audio playing devices, selecting a sub-device from the other audio playing devices, and establishing communication connection with the sub-device through a preset communication protocol.
903. The audio playing device acquires the signal intensity of the audio source device.
904. And the any audio playing device determines the first volume information of the any audio playing device according to the signal intensity.
905. And any audio playing device plays the audio data received from the audio source device according to the first volume information.
906. And the any audio playing device sends the first volume information and the audio data to the sub-device, so that the sub-device determines second volume information of the sub-device according to the first volume information, and plays the audio data according to the second volume information.
The core idea of the audio playing scheme provided by the embodiment is as follows: after the audio source device and the plurality of audio playing devices form a serial network topology structure, a user corresponding to the audio source device may be initially located at a certain position, and at this time, each audio playing device plays audio data to be played by the audio source device at a certain volume. When the user moves the position, the distance relationship between the user and each audio playing device may change obviously, in order to enable the user to obtain consistent listening experience before and after the movement and avoid the phenomenon of sudden large and small volume, at this time, each audio playing device responds to the position movement of the user and adjusts the respective corresponding volume information to play audio data with the adjusted volume.
The implementation process of the audio playing scheme provided in this embodiment is still described in conjunction with the audio source device, the audio playing device a, the audio playing device B, and the audio playing device C exemplified in the foregoing embodiments. Any of the audio playback devices in the above steps is assumed to be the audio playback device a connected to the audio source device.
The process of forming a serial network topology structure by the audio source device, the audio playing device a, the audio playing device B, and the audio playing device C is not repeated.
After networking is completed, that is, a serial network topology is formed, the audio playback device a connected to the audio source device may detect the signal strength of the audio source device at set time intervals. Specifically, the audio playback device a may transmit a preset control message to the audio source device, and determine the signal strength of the audio source device based on the response message fed back by the audio source device. The signal strength reflects the distance between the audio playback device a and the audio source device.
Assuming that the volume of the audio playing device a at time T1 is a, the signal intensity of the audio source device detected at time T2 is P1, and the signal intensity of the audio source device corresponding to time T1 is P2, and P1 is less than P2, it indicates that the user has moved and is moving away from the audio playing device a. At this time, the audio playback device a may determine the volume b (corresponding to the first volume information in the above step) that needs to be currently adjusted according to the difference between P1 and P2 and the previous volume a. In practical applications, the corresponding relationship between the signal strength variation and the volume adjustment amplitude may be preset to determine how to adjust the volume based on the corresponding relationship.
After the audio playing device a redetermines the first volume information of itself, the audio playing device a plays the audio data from the audio source device with the first volume information, and forwards the first volume information and the audio data of itself to the sub-device, i.e., the audio playing device B. And the audio playing device B determines second volume information of the audio playing device B according to the first volume information so as to play audio data according to the second volume information. The process of determining the second volume information by the audio playing device B can be implemented with reference to the embodiment shown in fig. 7.
The audio playback apparatus of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these audio playback devices can be constructed using commercially available hardware components configured through the steps taught by the present solution.
Fig. 10 is a schematic structural diagram of an audio playing apparatus according to an embodiment of the present invention, as shown in fig. 10, the apparatus includes: a connection module 11, a playing module 12 and a sending module 13.
The connection module 11 is configured to respond to a connection request of a parent device, and establish a communication connection with the parent device through a preset communication protocol; and if other audio playing devices are searched, selecting the sub-device from the other audio playing devices, and establishing communication connection with the sub-device through the preset communication protocol.
And a playing module 12, configured to play the audio data received from the parent device.
And a sending module 13, configured to forward the audio data to the sub-device for playing.
Optionally, the preset communication protocol includes: a bluetooth communication protocol.
Optionally, the apparatus further comprises:
a receiving module, configured to listen to a probe request frame in response to a networking trigger operation;
the sending module 13 is further configured to: and if the detection request frame sent by the father equipment is intercepted, replying a detection response frame so that the father equipment determines whether to send the connection request to the audio playing equipment or not according to the detection response frame.
Optionally, the receiving module is further configured to: after the connection module 11 establishes a communication connection with the parent device through a preset communication protocol, the listening probe request frame is stopped.
Optionally, the receiving module is further configured to: if receiving a preset voice triggered by a user, monitoring a detection request frame; or if a preset touch operation triggered by a user is received, the detection request frame is intercepted.
Optionally, the parent device is an audio source device or another audio playback device.
Optionally, in the process of searching for other audio playing devices and selecting a sub-device from the other audio playing devices, the connection module 11 is specifically configured to: triggering the sending module 13 to send a probe request frame; and if the detection response frames replied by the other audio playing devices are received through the receiving module, selecting the sub-device from the other audio playing devices.
Optionally, in the process of selecting a sub-device from the other audio playing devices, the connection module 11 is specifically configured to: and selecting the sub-equipment with the highest signal intensity from the other audio playing equipment according to the signal intensity of the detection response frame replied by the other audio playing equipment.
Optionally, the probe response frame includes a device identifier, and the connection module 11 is further configured to: and determining the equipment type of the other audio playing equipment as the audio playing equipment according to the equipment identification contained in the detection response frame replied by the other audio playing equipment.
Optionally, the sending module 13 is further configured to: and after the connection module 11 establishes communication connection with the sub-device through the preset communication protocol, stopping sending the probe request frame.
Optionally, the receiving module is further configured to receive a play stop instruction sent by the parent device. Thus, the playing module 12 is further configured to: and stopping playing the audio data. The sending module 13 is further configured to: and forwarding the playing stopping instruction to the sub-equipment.
The apparatus shown in fig. 10 can execute the audio playing method provided in the embodiments shown in fig. 1 to fig. 3, and the detailed execution process and technical effect refer to the description in the embodiments, which is not described herein again.
In one possible design, the structure of the audio playing apparatus shown in fig. 10 may be implemented as an audio playing device, such as a smart sound box. As shown in fig. 11, the audio playback apparatus may include: a processor 21 and a memory 22. Wherein the memory 22 has stored thereon executable code, which when executed by the processor 21, makes the processor 21 at least implement the audio playing method as provided in the foregoing embodiments shown in fig. 1 to 3.
Optionally, the audio playing device may further include a communication interface 23 for communicating with other devices.
Optionally, the audio playing device may also execute the audio playing method provided in any one of the embodiments shown in fig. 4 to fig. 9.
In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored, and when the executable code is executed by a processor of an electronic device, the processor is enabled to implement at least an audio playing method as provided in the foregoing embodiments shown in fig. 1 to 9.
The above-described apparatus embodiments are merely illustrative, wherein the units described as separate components may or may not be physically separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described aspects and portions of the present technology which contribute substantially or in part to the prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including without limitation disk storage, CD-ROM, optical storage, and the like.
The audio playing method provided in the embodiment of the present invention may be executed by a certain program/software, the program/software may be provided by a network side, the audio playing device and the audio source device mentioned in the foregoing embodiment may download the program/software into a local nonvolatile storage medium, and when it needs to execute the audio playing method, the program/software is read into a memory by a CPU, and then the CPU executes the program/software to implement the audio playing method provided in the foregoing embodiment, and the execution process may refer to the schematic in fig. 1 to fig. 9.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (26)

1. An audio playing method is applied to an audio playing device, and the method comprises the following steps:
responding to a connection request of a parent device, and establishing communication connection with the parent device through a preset communication protocol;
if other audio playing devices are searched, selecting a sub-device from the other audio playing devices, and establishing communication connection with the sub-device through the preset communication protocol;
playing audio data received from the parent device;
and forwarding the audio data to the sub-equipment for playing.
2. The method of claim 1, further comprising:
in response to a networking trigger operation, listening for a probe request frame;
and if the detection request frame sent by the father equipment is intercepted, replying a detection response frame so that the father equipment determines whether to send the connection request to the audio playing equipment or not according to the detection response frame.
3. The method according to claim 2, wherein after establishing the communication connection with the parent device through the preset communication protocol, the method further comprises:
the listening for probe request frames is stopped.
4. The method of claim 2, wherein listening for probe request frames in response to a networking trigger operation comprises:
if receiving a preset voice triggered by a user, monitoring a detection request frame; alternatively, the first and second electrodes may be,
and if a preset touch operation triggered by a user is received, intercepting a detection request frame.
5. The method of claim 1, wherein the parent device is an audio source device or another audio playback device.
6. The method according to any one of claims 1 to 5, wherein if other audio playing devices are searched, selecting a sub-device from the other audio playing devices comprises:
sending a detection request frame;
and if the detection response frames replied by the other audio playing devices are received, selecting the sub-device from the other audio playing devices.
7. The method of claim 6, wherein the selecting a sub-device from the other audio playback devices comprises:
and selecting the sub-equipment with the highest signal intensity from the other audio playing equipment according to the signal intensity of the detection response frame replied by the other audio playing equipment.
8. The method of claim 6, wherein the probe response frame comprises: a device identification;
the method further comprises the following steps:
and determining the equipment type of the other audio playing equipment as the audio playing equipment according to the equipment identification contained in the detection response frame replied by the other audio playing equipment.
9. The method according to claim 6, wherein after establishing the communication connection with the sub-device through the preset communication protocol, the method further comprises:
and stopping sending the probe request frame.
10. The method of claim 1, further comprising:
receiving a playing stopping instruction sent by the parent equipment;
stopping playing the audio data;
and forwarding the playing stopping instruction to the sub-equipment.
11. The method of claim 1, wherein the predetermined communication protocol comprises: a bluetooth communication protocol.
12. The method of claim 1, wherein the audio playback device comprises: intelligent audio amplifier.
13. An audio playback apparatus, comprising:
the connection module is used for responding to a connection request of a father device and establishing communication connection with the father device through a preset communication protocol; if other audio playing devices are searched, selecting a sub-device from the other audio playing devices, and establishing communication connection with the sub-device through the preset communication protocol;
the playing module is used for playing the audio data received from the father equipment;
and the sending module is used for forwarding the audio data to the sub-equipment for playing.
14. An audio playback device, comprising: a memory, a processor; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the audio playback method of any of claims 1 to 12.
15. An audio playback system, comprising: the audio source device and the at least two audio playing devices form a serial network topology structure through a preset communication protocol;
the audio source device is used for sending audio data to the connected audio playing device;
and any one of the at least two audio playing devices is used for playing the audio data received from the connected parent device and forwarding the audio data to the child device when the connected child device exists.
16. The system of claim 15, wherein any of the at least two audio playback devices is further configured to:
responding to the connection request of the parent equipment, and establishing communication connection with the parent equipment through the preset communication protocol; and if other audio playing devices in the at least two audio playing devices are searched, selecting a sub-device from the other audio playing devices, and establishing communication connection with the sub-device through the preset communication protocol.
17. The system of claim 15, wherein the audio source device is further configured to:
when the at least two audio playing devices are searched, determining the audio playing device to be connected from the at least two audio playing devices, and establishing communication connection with the audio playing device to be connected through the preset communication protocol.
18. An audio playing method is applied to an audio playing device, and the method comprises the following steps:
responding to a connection request of an audio source device, and establishing communication connection with the audio source device through a preset communication protocol;
and if the audio data which are sent by the audio source equipment and meet the preset conditions are received, playing the audio data.
19. The method of claim 18, further comprising:
if other audio playing devices are searched, selecting a sub-device from the other audio playing devices, and establishing communication connection with the sub-device through the preset communication protocol;
and forwarding the audio data to the sub-equipment for playing.
20. The method of claim 18, wherein the preset condition comprises at least one of:
the current time does not belong to the preset disturbance-free time period, and the audio data is not voice telephone data.
21. An audio playing method is applied to an audio playing device, and the method comprises the following steps:
receiving a connection request of a parent device, wherein the connection request comprises first volume information of the parent device, and the parent device is another audio playing device;
establishing communication connection with the parent equipment through a preset communication protocol;
determining second volume information of the audio playing equipment according to the first volume information;
and playing the audio data received from the parent equipment according to the second volume information.
22. The method of claim 21, wherein the connection request further includes a signal strength of the audio playback device measured by the parent device;
the determining second volume information of the audio playing device according to the first volume information includes:
and determining second volume information of the audio playing equipment according to the first volume information and the signal intensity.
23. The method of claim 21, further comprising:
if other audio playing devices are searched, selecting the sub-devices from the other audio playing devices;
sending a connection request including the second volume information to the sub-device, so that the sub-device establishes communication connection with the audio playing device through the preset communication protocol and determines third volume information of the sub-device according to the second volume information;
and forwarding the audio data to the sub-equipment so that the sub-equipment plays the audio data according to the third volume information.
24. An audio playing method is applied to an audio playing device, and the method comprises the following steps:
receiving a connection request of a parent device, wherein the connection request comprises play mode information of the parent device;
establishing communication connection with the parent equipment through a preset communication protocol;
if other audio playing devices are searched, selecting the sub-devices from the other audio playing devices;
sending a connection request including the play mode information to the sub-equipment so that the sub-equipment establishes communication connection with the audio play equipment through the preset communication protocol;
playing the audio data received from the parent equipment according to the playing mode information;
and forwarding the audio data to the sub-equipment so that the sub-equipment plays the audio data according to the play mode information.
25. The method of claim 24, wherein the parent device is an audio source device or another audio playback device.
26. An audio playing method is applied to an audio playing device, and the method comprises the following steps:
responding to a connection request of an audio source device, and establishing communication connection with the audio source device through a preset communication protocol;
if other audio playing devices are searched, selecting a sub-device from the other audio playing devices, and establishing communication connection with the sub-device through the preset communication protocol;
acquiring the signal strength of the audio source device;
determining first volume information of the audio playing device according to the signal intensity;
playing audio data received from the audio source device according to the first volume information;
and sending the first volume information and the audio data to the sub-equipment so that the sub-equipment determines second volume information of the sub-equipment according to the first volume information and plays the audio data according to the second volume information.
CN201911128248.5A 2019-11-18 2019-11-18 Audio playing method, device, equipment and system Pending CN112822665A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911128248.5A CN112822665A (en) 2019-11-18 2019-11-18 Audio playing method, device, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911128248.5A CN112822665A (en) 2019-11-18 2019-11-18 Audio playing method, device, equipment and system

Publications (1)

Publication Number Publication Date
CN112822665A true CN112822665A (en) 2021-05-18

Family

ID=75852512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911128248.5A Pending CN112822665A (en) 2019-11-18 2019-11-18 Audio playing method, device, equipment and system

Country Status (1)

Country Link
CN (1) CN112822665A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023116426A1 (en) * 2021-12-24 2023-06-29 深圳创维数字技术有限公司 Wireless network connection method and apparatus, access point, and storage medium

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002223280A (en) * 2001-01-29 2002-08-09 Aiwa Co Ltd Communication terminal device and base station device
EP1585291A1 (en) * 2004-04-07 2005-10-12 Wen-Hsiang Yueh MP3 player capable of wirelessly communicating with a mobile telephone
US20090154739A1 (en) * 2007-12-13 2009-06-18 Samuel Zellner Systems and methods employing multiple individual wireless earbuds for a common audio source
CN202145660U (en) * 2011-06-30 2012-02-15 豪威科技(上海)有限公司 Bluetooth sound box with voice call transfer processing function
CN103546842A (en) * 2013-10-30 2014-01-29 王波兰 Sound play control system
CN104700858A (en) * 2015-02-14 2015-06-10 苏黎 Music playing control circuit and music playing terminal
JP2015130574A (en) * 2014-01-07 2015-07-16 埼玉日本電気株式会社 Audio system, audio system control method, program, and recording medium
CN104955168A (en) * 2015-05-18 2015-09-30 乐视致新电子科技(天津)有限公司 Audio data transmitting method, receiving method and device
CN104980987A (en) * 2014-04-08 2015-10-14 诺基亚技术有限公司 Method, apparatus, and computer program product for seamless switching of communication connection
CN105072537A (en) * 2015-07-30 2015-11-18 广东欧珀移动通信有限公司 Bluetooth connection-based audio play method and device
CN105244048A (en) * 2015-09-25 2016-01-13 小米科技有限责任公司 Audio play control method and apparatus
US20160182991A1 (en) * 2014-09-07 2016-06-23 Joseph John Zakzeski Wireless earbuds without separate audio source
CN205491076U (en) * 2016-03-15 2016-08-17 中山奥凯华泰电子有限公司 Intelligence sound scene bedroom stereo set based on bluetooth
CN206077480U (en) * 2016-10-10 2017-04-05 冷明 A kind of music player that can be received calls
US20180020308A1 (en) * 2016-07-18 2018-01-18 Bose Corporation Dynamically Changing Master Audio Playback Device
CN107621933A (en) * 2015-09-22 2018-01-23 广东欧珀移动通信有限公司 A kind of audio frequency playing method and device and related media production
CN107943447A (en) * 2017-10-16 2018-04-20 深圳市艾特智能科技有限公司 Method for playing music, system, readable storage medium storing program for executing and intelligent terminal
CN108076411A (en) * 2016-11-07 2018-05-25 三星电子株式会社 Speaker unit, the electronic device being attached thereto and its control method
CN108513702A (en) * 2018-04-26 2018-09-07 万魔声学科技有限公司 Audio wireless communication means, device and audio-frequence player device, system
CN110234036A (en) * 2019-06-19 2019-09-13 广州酷狗计算机科技有限公司 A kind of method, apparatus and system playing multimedia file

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002223280A (en) * 2001-01-29 2002-08-09 Aiwa Co Ltd Communication terminal device and base station device
EP1585291A1 (en) * 2004-04-07 2005-10-12 Wen-Hsiang Yueh MP3 player capable of wirelessly communicating with a mobile telephone
US20090154739A1 (en) * 2007-12-13 2009-06-18 Samuel Zellner Systems and methods employing multiple individual wireless earbuds for a common audio source
CN202145660U (en) * 2011-06-30 2012-02-15 豪威科技(上海)有限公司 Bluetooth sound box with voice call transfer processing function
CN103546842A (en) * 2013-10-30 2014-01-29 王波兰 Sound play control system
JP2015130574A (en) * 2014-01-07 2015-07-16 埼玉日本電気株式会社 Audio system, audio system control method, program, and recording medium
CN104980987A (en) * 2014-04-08 2015-10-14 诺基亚技术有限公司 Method, apparatus, and computer program product for seamless switching of communication connection
US20160182991A1 (en) * 2014-09-07 2016-06-23 Joseph John Zakzeski Wireless earbuds without separate audio source
CN104700858A (en) * 2015-02-14 2015-06-10 苏黎 Music playing control circuit and music playing terminal
CN104955168A (en) * 2015-05-18 2015-09-30 乐视致新电子科技(天津)有限公司 Audio data transmitting method, receiving method and device
CN105072537A (en) * 2015-07-30 2015-11-18 广东欧珀移动通信有限公司 Bluetooth connection-based audio play method and device
CN107621933A (en) * 2015-09-22 2018-01-23 广东欧珀移动通信有限公司 A kind of audio frequency playing method and device and related media production
CN105244048A (en) * 2015-09-25 2016-01-13 小米科技有限责任公司 Audio play control method and apparatus
CN205491076U (en) * 2016-03-15 2016-08-17 中山奥凯华泰电子有限公司 Intelligence sound scene bedroom stereo set based on bluetooth
US20180020308A1 (en) * 2016-07-18 2018-01-18 Bose Corporation Dynamically Changing Master Audio Playback Device
CN206077480U (en) * 2016-10-10 2017-04-05 冷明 A kind of music player that can be received calls
CN108076411A (en) * 2016-11-07 2018-05-25 三星电子株式会社 Speaker unit, the electronic device being attached thereto and its control method
CN107943447A (en) * 2017-10-16 2018-04-20 深圳市艾特智能科技有限公司 Method for playing music, system, readable storage medium storing program for executing and intelligent terminal
CN108513702A (en) * 2018-04-26 2018-09-07 万魔声学科技有限公司 Audio wireless communication means, device and audio-frequence player device, system
CN110234036A (en) * 2019-06-19 2019-09-13 广州酷狗计算机科技有限公司 A kind of method, apparatus and system playing multimedia file

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
秦贵和;李宝玲;: "车载MOST音频网络设计", 微计算机信息, no. 11, pages 296 - 298 *
韩晓波;: "基于网络通信的校园智能音箱设计", 电子制作, no. 01, pages 52 - 53 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023116426A1 (en) * 2021-12-24 2023-06-29 深圳创维数字技术有限公司 Wireless network connection method and apparatus, access point, and storage medium

Similar Documents

Publication Publication Date Title
JP6657353B2 (en) Multi-household support
WO2017024696A1 (en) Bluetooth connection control method and apparatus for multiple playback devices, and music playback system
US10514884B2 (en) Multi source wireless headphone and audio switching device
CN111436038A (en) Bluetooth connection method and system, Bluetooth master and slave device connection method and Bluetooth master and slave device
US10789038B2 (en) Content streaming apparatus and method
WO2014137524A1 (en) Wireless device pairing
US11543876B2 (en) Synchronous playback with battery-powered playback device
EP3836582B1 (en) Relay device for voice commands to be processed by a voice assistant, voice assistant and wireless network
CN108521890A (en) Random access method and device
JP6451596B2 (en) Audio apparatus and audio equipment
CN111447602A (en) Bluetooth device, Bluetooth preemption method and device thereof, and computer-readable storage medium
US20200341721A1 (en) Speaker with broadcasting mode and broadcasting method thereof
US10516974B2 (en) Method for equipment networking and outputting by equipment, and equipment
US9723406B2 (en) System and method for changing a channel configuration of a set of audio output devices
CN105679350A (en) Audio playing method and device
CN112822665A (en) Audio playing method, device, equipment and system
CN114513773A (en) Audio playing method, system, audio playing device and storage medium
CN107566188B (en) Method and apparatus for identifying wired connections
WO2023279928A1 (en) Signal transmission method and apparatus, information prompt method and apparatus, and electronic device
US20240114565A1 (en) Smart Wireless Connection Handling Techniques
CN117729513A (en) Audio transmission method and device and storage medium
CN108696844B (en) Information processing method, device and system
WO2022268733A1 (en) Method and system for reproducing sound
CN116156470A (en) Bluetooth reconnection method and device, information storage method and device and terminal equipment
CN115967926A (en) Bluetooth connection method, device, electronic equipment and computer readable storage medium

Legal Events

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