Audio playing equipment switching method, audio playing system and related equipment

Through environmental perception data, we can judge the position changes of the audio device and automatically switch the audio playback device, which solves the problem of low switching convenience of existing audio system equipment and improves the user experience.

CN119883179AInactive Publication Date: 2025-04-25LINKPLAY TECHNOLOGY INC NANJING
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510364355.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-26
Publication Date
2025-04-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing audio systems have low convenience and poor user experience when switching audio devices, and require a more convenient method for switching audio devices.

Method used

The control device obtains environmental perception data and judges the position change of the sensing target in the space where the audio playback device is located. If the preset conditions are met, the target audio playback device is determined, and the audio is switched to the target audio playback device according to the playback progress of the first audio playback device.

Benefits of technology

It realizes convenient switching of audio playback devices without user contact and without contact, improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119883179A_ABST
    Figure CN119883179A_ABST
Patent Text Reader

Abstract

The invention provides a switching method of audio playing equipment, an audio playing system and related equipment. The method is applied to the audio playing system, the audio playing system comprises a control device and at least two audio playing devices, and the method comprises the steps that the control device collects original audio data from a target audio source; the control equipment carries out data packet packaging on the original audio data according to the current moment to obtain target audio data; the control equipment transmits the target audio data to the first audio playing equipment, and all the first audio playing equipment synchronously plays the target audio data; the control equipment judges whether the environment sensing data meets a preset audio playing equipment switching condition or not; if yes, the control device determines at least one target audio playing device according to the environment sensing data; and the control device controls the target audio playing device to be switched to the target audio playing device for audio connection playing. According to the invention, the switching convenience of the audio playing equipment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of audio technology, and in particular to a switching method for an audio playback device, an audio playback system, and related devices. Background Art

[0002] With the development of intelligent audio systems, current audio systems can basically achieve cross-device switching and playback of audio, but the switching is triggered by operating controls or voice commands, which is inconvenient and provides a poor user experience. Summary of the invention

[0003] In view of this, an object of the present disclosure is to provide a switching method of an audio playback device, an audio playback system and related devices to improve the convenience of switching the audio playback device.

[0004] In a first aspect, an embodiment of the present disclosure provides a method for switching an audio playback device, which is applied to an audio playback system, wherein the audio playback system includes a control device and at least two audio playback devices, and the method includes: at least one first audio playback device responds to an audio playback instruction, and the control device collects original audio data from a target audio source; wherein the first audio playback device is any audio playback device in the audio playback system; the control device performs data packet encapsulation on the original audio data according to the current time to obtain target audio data; the control device transmits the target audio data to the first audio playback device, and all the first audio playback devices play the target audio data synchronously; the control device obtains environmental perception data and determines whether the environmental perception data meets a preset audio playback device switching condition; wherein the environmental perception data is used to indicate a position change of a perception target in a space where the audio playback device is located; if it meets the condition, the control device determines at least one target audio playback device according to the environmental perception data; wherein the target audio playback device is an audio playback device other than the first audio playback device in the audio playback system; the control device controls the target audio playback device to switch to the target audio playback device for continuous audio playback based on the playback progress of the target audio data by the first audio playback device.

[0005] In a second aspect, an embodiment of the present disclosure provides an audio playback system, the system comprising a control device and at least two audio playback devices, wherein at least one first audio playback device is used to: in response to an audio playback instruction, the control device collects original audio data from a target audio source; wherein the first audio playback device is any audio playback device in the audio playback system; the control device is used to: according to the current moment, encapsulate the original audio data into data packets to obtain target audio data; the control device is used to: transmit the target audio data to the first audio playback device, and all the first audio playback devices play the target audio data synchronously; the control device is used to: obtain environmental perception data, and determine whether the environmental perception data meets a preset audio playback device switching condition; wherein the environmental perception data is used to indicate a position change of a perception target in the space where the audio playback device is located; if it meets, the control device is used to: determine at least one target audio playback device according to the environmental perception data; wherein the target audio playback device is an audio playback device other than the first audio playback device in the audio playback system; the control device controls: the target audio playback device switches to the target audio playback device for continuous audio playback based on the playback progress of the target audio data by the first audio playback device. In a third aspect, an embodiment of the present disclosure provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned switching method of the audio playback device.

[0006] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the switching method of the above-mentioned audio playback device.

[0007] The embodiments of the present disclosure bring the following beneficial effects: The above-mentioned audio playback device switching method, audio playback system and related equipment can sense the spatial position changes of the target object when multiple audio playback devices are playing audio synchronously, so that the audio playback can be switched to a specific audio playback device for synchronous and connected playback without the user feeling or contacting, making the switching of audio playback devices more convenient and the user experience better.

[0008] Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or understood by practicing the present disclosure. The purpose and other advantages of the present disclosure are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0009] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0011] Figure 1 A flow chart of an embodiment of a method for switching an audio playback device in an embodiment of the present disclosure; Figure 2 A schematic diagram of an audio playback system provided by an embodiment of the present disclosure; Figure 3 A schematic diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0012] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0013] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0014] The switching method of the audio playback device in the embodiment of the present disclosure is applied to an audio playback system, wherein the audio playback system includes a control device and at least two audio playback devices, wherein the control device can be regarded as a master device of the audio playback system, and the audio playback device can be regarded as a slave device of the audio playback system, the control device is communicatively connected with each audio playback device, and the slave devices can also be communicatively connected with each other. To improve the fluency of the audio playback, in one embodiment, the communication connection method is through a local area network connection, wherein the local area network can be a wired local area network or a wireless local area network, which is not specifically limited here.

[0015] In one embodiment, the control device may also be an audio playback device with an audio playback function, such as mobile devices such as mobile phones and tablets, and smart devices such as televisions and speakers. Similarly, the audio playback device in the audio playback system may also be a control device with a control function, such as mobile phones, tablets, televisions, speakers and other smart devices, which are not specifically limited here.

[0016] For ease of understanding, the specific process of the embodiment of the present disclosure is described below. Figure 1 , an embodiment of a method for switching an audio playback device in an embodiment of the present disclosure includes the following steps: Step S10: at least one first audio playback device controls the device to collect original audio data from a target audio source in response to an audio playback instruction; wherein the first audio playback device is any audio playback device in the audio playback system; The audio playback instruction can be triggered by a control device and sent by the control device to the first audio playback device so that the first audio playback device responds to the audio playback instruction. In addition, the audio playback instruction can also be directly triggered by the audio playback device, and the triggered audio playback device, i.e., the first audio playback device, responds to the audio playback instruction.

[0017] For example, the user can select one or more speakers on the control device and designate them as the first audio playback device, and the control device sends an audio playback instruction to the first audio playback device; the user can also designate one or more speakers as the first audio playback device through the controls on the speakers or through voice to trigger the audio playback instruction.

[0018] The audio playback instruction can specify an audio source, and the audio source specified by the audio playback instruction is the target audio source. If the audio playback instruction does not specify an audio source, the default / preset audio source can be determined as the target audio source, which is not limited here. The target audio source can be a local music library, online streaming media, TV audio source, etc., which is not limited here.

[0019] The original audio data collected by the control device from the target audio source can be part / all of the audio data of the target audio object. The target audio object can also be specified by an audio playback instruction, for example, it can be a song, a TV program, an audio story, etc., which is not limited here.

[0020] In one embodiment, in order to improve the smoothness of synchronous audio playback or switching playback, the original audio data collected by the control device from the target audio source is partial audio data of the target audio object, and during the audio playback process, the collection is continued according to the playback timing of the target audio object. The original audio data collected at present is audio data that conforms to the playback timing of the target audio object.

[0021] For example, the original audio data collected last time is the original audio data of the target audio object from the 5th to the 10th second, then the original audio data collected this time may be the original audio data of the target audio object from the 10th to the 15th second, and the specific details are not limited here.

[0022] Step S20: The control device encapsulates the original audio data into data packets according to the current time to obtain target audio data; In this embodiment, the original audio data is packaged into data packets, and the obtained target audio data contains a clock that can be used for synchronous playback calibration, so that the audio playback is more synchronized. When the original audio data is packaged into data packets according to the current time, the control device can determine a reference clock according to the current time, and then merge the reference clock and the original audio data into a data packet to obtain the target audio data, so that different audio playback devices can refer to the clock as a standard for synchronous audio playback.

[0023] When the control device encapsulates the original audio data into a data packet according to the current time, the system clock of the control device can be used as a standard clock, and the system clock of the control device and the original audio data can be combined into a data packet to obtain target audio data.

[0024] When encapsulating the original audio data into data packets, the original audio data can also be framed according to the current time to obtain target audio data containing timing information that is easier to play; the original audio data can also be compressed to obtain target audio data with a higher transmission rate.

[0025] Step S30: The control device transmits the target audio data to the first audio playback devices, and all the first audio playback devices play the target audio data synchronously; By uniformly distributing the target audio data to each audio playback device through the control device, the computing resources required for each audio playback device to collect audio data from the audio source and encapsulate the data can be reduced, making the audio playback more synchronized and smoother. In one embodiment, the control device can distribute the target audio data to each first audio playback device through a local area network, making the synchronous playback of the audio smoother.

[0026] After the first audio playback device receives the target audio data transmitted by the control device, it can parse the target audio data packet and play it synchronously according to the parsing result. In one embodiment, the first audio playback device can parse the target audio data to obtain a reference clock, and then use the reference clock as a standard to determine whether to calibrate the playback rate or progress according to its own system clock, and then play the target audio data synchronously according to the calibration result, so that the synchronization of audio playback is better.

[0027] Step S40: The control device acquires environmental perception data and determines whether the environmental perception data meets a preset audio playback device switching condition; wherein the environmental perception data is used to indicate a position change of the perception target in the space where the audio playback device is located; Environmental perception data is used to represent the position changes of the target to be perceived in the space where each or each group of audio playback devices are located. Among them, the target to be perceived, that is, the perception target, the space where each or each group of audio playback devices are located can be pre-delineated, and the audio playback devices in the audio playback system can be grouped in advance according to the space where each audio playback device is located. It can also be grouped in a user-specified manner, which is not limited here.

[0028] The space where one or a group of audio playback devices are located can be regarded as an audio space. For example, if there is one speaker in a room, then this room can be regarded as an audio space. For another example, if there are two speakers in a living room, then this living room can be regarded as an audio space.

[0029] Environmental perception data can be used to indicate the position change of the perception target in different audio spaces. For example, if the perception target moves from a room to a living room, then the environmental perception data can be used to indicate that the perception target moves from the audio space of the room to the audio space of the living room, thereby switching the audio playback device according to the audio playback devices in different audio spaces to achieve contactless audio switching control.

[0030] In one embodiment, the control device can learn user behavior patterns based on environmental perception data collected historically, and predict user intentions based on currently collected environmental perception data to obtain a user switching intention probability, which is used to indicate the size of the user's intention to switch the audio playback device. The control device can also determine whether the environmental perception data meets the preset audio playback device switching conditions based on the user switching intention probability. For example, when the user switching intention probability is greater than a certain threshold, it is determined that the environmental perception data meets the preset audio playback device switching conditions. The specific details are not limited here.

[0031] Specifically, an example of user behavior pattern learning and intent prediction is:

[0032] Where I represents the user's switching intention probability, m represents the user's movement trajectory vector in the historical environment perception data, t represents the current time, p is the audio playback status information in the historical environment perception data, h represents the user's historical behavior pattern, represents the probability distribution based on the current observation, represents the prior probability based on historical environmental perception data, is the weight of each parameter. The algorithm predicts the user's mobility intention and duration by analyzing the user's historical behavior pattern and current context.

[0033] In this implementation, a personalized behavior model is constructed by recording the user's behavior patterns such as movement patterns, dwell time, and audio listening habits at different time periods in history. For example, the system learns that the user usually stays for 20 minutes from the bedroom to the kitchen in the morning, but may stay for a long time at night. Based on these patterns, the algorithm calculates the user's expected stay time in the new space, and only triggers the switch when the expected stay exceeds the threshold. The algorithm can also adapt to different audio content types-users tend to move between rooms when listening to the news, but tend to stay in a fixed position when listening to books. In actual applications, the algorithm reduces 63% of unnecessary switching operations and improves the naturalness of the system response.

[0034] The preset audio playback device switching condition can be preset by the user. For example, the preset audio playback device switching condition can be when the perception target is in the audio space to which it is transferred for a certain period of time, or the perception target triggers a specific instruction in the audio space to which it is transferred. The specific instruction can be received by the audio playback device or the perception device in the audio space. The specific details are not limited here.

[0035] For example, by determining through environmental perception data that the perception target has shifted from audio space A to audio space B, specific instructions can be triggered through the controls of the audio playback device or the perception device in audio space B, or by inputting specific gestures to the audio playback device, so that the environmental perception data meets the preset audio playback device switching conditions, thereby achieving contactless audio switching control.

[0036] In one embodiment, the source of environmental perception data may be more than one, and multiple sources of environmental perception data (such as mobile device location, camera human body detection, sensor data, etc.) may be fused through a multi-source environmental perception data fusion algorithm to calculate the user's presence probability in different audio spaces, and then determine whether the environmental perception data meets the preset audio playback device switching conditions based on the probability. For example, when the user's presence probability in one audio space decreases and the presence probability in another audio space increases, it is determined that the environmental perception data meets the preset audio playback device switching conditions.

[0037] Specifically, an example of a multi-source environment perception data fusion algorithm is:

[0038] in, represents the probability that the user is at location L given all environmental perception data E, is the normalization coefficient, is the weight coefficient of the i-th environmental perception data, is the feature conversion function of the i-th environmental perception data, is the i-th environment perception data.

[0039] In this implementation, each type of environmental perception data is converted into a standardized location probability through a feature conversion function, and then assigned different weights according to its reliability. For example, a mobile device has a higher weight when the user carries it with him; if the device is detected to be stationary and the camera detects human movement, the weight of the camera data will increase. By regularly evaluating the status of each data source and dynamically adjusting the weight, the accuracy of location judgment is significantly improved and the misjudgment rate is reduced.

[0040] Step S50: If the conditions are met, the control device determines at least one target audio playback device according to the environment perception data; wherein the target audio playback device is an audio playback device other than the first audio playback device in the audio playback system; If the environmental perception data meets the preset audio playback device switching conditions, the control device can determine the target audio playback device to be switched based on the position change of the perception target indicated by the environmental perception data in the space where the audio playback device is located, thereby switching the target audio object being played on the first audio playback device to the target audio playback device for playback, thereby achieving seamless and contactless audio switching control.

[0041] In one implementation, the control device can determine the target audio space where the perception target is currently located based on the environmental perception data, and then determine the audio playback device that is pre-bound to the target audio space as the target audio playback device, thereby achieving seamless and contactless audio switching control.

[0042] Step S60: The control device controls the target audio playback device to switch to the target audio playback device for continuous audio playback based on the playback progress of the target audio data by the first audio playback device.

[0043] After determining the target audio playback device, the target audio object currently played by the first audio playback device can be switched to the target audio playback device for playback, so that the playback progress of the target audio object can be connected on different audio playback devices, giving the user a better listening experience.

[0044] In one embodiment, in order to make the switching of audio playback devices smoother, audio content features can be extracted from the data after the playback progress of the target audio object, and the optimal audio transition point can be identified based on the extracted audio content features, and the target audio playback device can be switched to play the audio continuously at the optimal audio transition point.

[0045] Specifically, an example of an optimal transition point identification algorithm is:

[0046] in, represents the optimal transition time point, represents the silence function of the audio signal at time t, represents the structural boundary function at time t (such as phrase or chapter boundary), represents the content importance function at time t (the more important the content, the lower the value), is the weight coefficient, and .

[0047] In this implementation, for music content, the algorithm identifies natural transition points such as beat boundaries and measure ends; for speech content, it selects pauses between sentences; for movie audio, it selects scene transition points. In actual applications, the best transition point can be found within a 5-second window near the current playback position to ensure a natural and smooth transition. Experiments show that compared with direct switching, this algorithm improves user experience satisfaction by 78% and reduces perceived audio discontinuity by 62%.

[0048] The audio playback device switching method provided in the above-mentioned implementation manner can, when multiple audio playback devices are playing audio synchronously, sense the spatial position changes of the target object, so that the audio playback can be switched to a specific audio playback device for synchronous and connected playback without the user noticing or contacting, making the switching of audio playback devices more convenient and the user experience better.

[0049] In one implementation, the sensing target may be a mobile device or a human body. The following describes in detail the sensing switching methods of these two sensing targets.

[0050] In one embodiment, the perception target is a target mobile device; when the control device obtains environmental perception data and determines whether the environmental perception data meets the preset audio playback device switching conditions, the control device obtains the environmental perception data, and determines whether the audio space where the target mobile device is located is transferred based on the position of the target mobile device in the space where the audio playback device is located in the environmental perception data; wherein the audio space contains at least one audio playback device; if the audio space where the target mobile device is located is transferred, it is determined that the environmental perception data meets the preset audio playback device switching conditions.

[0051] The target mobile device is a mobile device with a positioning module / function, for example, a certain device can be a mobile device such as a mobile phone, a tablet, or a wearable device such as a bracelet, a smart watch, glasses, or an independent sensing device with a positioning module / function, which is not limited here. Any mobile device with a positioning module / function can be configured as a sensing target, making the follow-up playback of audio more flexible.

[0052] The target mobile device can send its own location information to the control device or server. The control device collects the location information sent by the target mobile device from the target mobile device or server, obtains environmental perception data, and then determines whether the location of the perceived target meets the preset audio playback device switching conditions based on the environmental perception data, thereby determining whether to switch the audio playback device.

[0053] In an audio playback system, the spaces where different audio playback devices are located can be defined as different audio spaces. For example, in a home, room 1 can be used as an audio space and room 2 can be used as another audio space. Similarly, the living room, kitchen, and dining room can all be used as an audio space. Different audio spaces can contain different audio playback devices. For example, room 1 contains speaker 1, room 2 contains speaker 2, the living room contains speaker 3, speaker 4, and a TV, the kitchen contains a tablet, and the dining room contains a mobile phone. The specific details are not limited here.

[0054] It is understandable that for a movable audio playback device, the audio space in which it is located is also variable. The audio space has a specific division at the physical space level. The preset audio space division data can be used to determine whether the audio space in which the target mobile device is located has been transferred. The audio space division data can include boundary position information, range position information, etc. of the audio space, which is not specifically limited here.

[0055] The preset audio playback device switching condition may be whether the audio space where the target mobile device is located is transferred. If the environmental perception data indicates that the audio space where the target mobile device is located is transferred, it may be determined that the environmental perception data meets the preset audio playback device switching condition, triggering the switching of the audio playback device.

[0056] In one embodiment, when the control device determines at least one target audio playback device based on environmental perception data, the control device determines the current audio space where the target mobile device is located after the audio space transfer occurs based on the location information of the target mobile device in the environmental perception data; determines the audio playback device corresponding to the current audio space based on a preset mapping relationship between the audio space and the audio playback device; and determines the audio playback device corresponding to the current audio space as the target audio playback device to obtain at least one target audio playback device.

[0057] If the environmental perception data meets the preset audio playback device switching conditions, it means that the audio space where the target mobile device is located has shifted. Then, based on the audio space where the target mobile device is currently located (i.e., the current audio space), the audio playback device corresponding to the current audio space can be determined as the target audio playback device. The target audio playback device can be one or more than one, and the specific number is not limited here.

[0058] Different audio playback devices are pre-bound with corresponding mapping relationships with different audio spaces. For example, in the above example, room 1 contains speaker 1, so the mapping relationship bound between room 1 and speaker 1 is the mapping relationship between the audio space and the audio playback device, which is not limited here.

[0059] When the perception target is a human body, when the control device obtains environmental perception data and determines whether the environmental perception data meets the preset audio playback device switching conditions, the control device obtains the environmental perception data and determines whether the human body has moved in the audio space based on the position change of the human body in the space where the audio playback device is located in the environmental perception data; wherein the audio space contains at least one audio playback device; if the human body has moved in the audio space, it is determined that the environmental perception data meets the preset audio playback device switching conditions.

[0060] Perceiving the changes in the spatial position of the human body can be achieved through human body sensing devices / apparatuses that can be used to collect human body position information, such as image acquisition equipment and thermal sensing devices. The human body sensing devices / apparatuses can send the collected environmental perception data to the control device or server. The control device obtains the environmental perception data from the human body sensing device / apparatus or the server to determine whether the preset audio playback device switching conditions are met.

[0061] In one embodiment, if it is determined based on the data captured or collected by the human body perception device / apparatus that the human body has moved in the audio space, for example, the camera captures the user moving from room 1 to the living room, then it can be determined that the environmental perception data meets the preset audio playback device switching conditions, and the audio playback can be switched from room 1 to the living room, thereby achieving seamless and contactless switching control of the audio playback device.

[0062] If the environmental perception data meets the preset audio playback device switching conditions, when the control device determines at least one target audio playback device based on the environmental perception data, it can determine the current audio space where the human body is located according to the audio space data indicating the audio space where the human body is located in the environmental perception data; determine the audio playback device corresponding to the current audio space according to the preset mapping relationship between the audio space and the audio playback device; determine the audio playback device in the current audio space as the target audio playback device, and obtain at least one target audio playback device.

[0063] Through environmental perception data, the current audio space where the human body is located can be determined. The current audio space can be one or more. In one implementation, based on the environmental perception data, an audio space where a human body exists or where the human body stays for a period of time exceeding a certain threshold can be determined as the current audio space, and then based on a preset mapping relationship, the audio playback device corresponding to the current audio space is determined, and the audio playback device corresponding to the current audio space is determined as the target audio playback device.

[0064] Next, the synchronous playback method before and after audio switching is specifically described.

[0065] In one embodiment, when the control device encapsulates the original audio data into data packets according to the current time to obtain the target audio data, the control device obtains the system clock, converts the system clock into a timestamp, and obtains an absolute timestamp; divides the original audio data according to the frame rate to obtain multiple frames of audio data; wherein each frame of audio data corresponds to timing information; and merges the timing information and absolute timestamps corresponding to the multiple frames of audio data to obtain the target audio data.

[0066] When the control device encapsulates the original audio data into data packets, it pre-processes the original audio data and writes a reference clock to the original audio data for synchronous playback of different audio playback devices, thereby making the audio playback more synchronous and smoother.

[0067] In this implementation, the system clock of the control device is used as the reference clock, which is converted into a timestamp and then merged into the original audio data after framing as an absolute timestamp. The timestamp is used for clock calibration of the first audio playback device, so that more than one first audio playback device can play the target audio object simultaneously with higher synchronization.

[0068] When the original audio data is divided according to the frame rate, the target frame rate for the required division can be determined based on the current data transmission rate, where the current data transmission rate refers to the rate at which the control device collects the original audio data from the target audio source. The higher the data transmission rate, the higher the target frame rate, and vice versa.

[0069] After the control device divides the original audio data according to the frame rate, it writes the timing information of each frame into the audio data of the corresponding frame at the same time, and merges it with the above-mentioned absolute timestamp to obtain the target audio data, so that any audio playback device can play the target audio data synchronously with high synchronization and good listening effect.

[0070] In one embodiment, when the control device transmits the target audio data to the first audio playback device and all the first audio playback devices play the target audio data synchronously, the control device compresses the target audio data through a preset audio compression algorithm to obtain compressed audio data; the control device transmits the compressed audio data to all the first audio playback devices through a local area network; the compressed audio data received by all the first audio playback devices are decompressed to obtain decompressed audio data; all the first audio playback devices perform clock calibration according to the absolute timestamp in the decompressed audio data, and synchronously play the decompressed audio data according to the clock calibration result.

[0071] When the control device transmits any audio data, the audio data to be transmitted (such as target audio data) may be compressed first, and the preset audio compression algorithm used may be any audio compression algorithm, which is not specifically limited here.

[0072] After obtaining the compressed audio data, the compressed audio data can be sent to the audio playback device to be played (such as the first audio playback device or the target audio playback device) through the local area network, so that the delay of synchronous playback is reduced and the audio playback is smoother.

[0073] After receiving the compressed audio data, the specific audio playback device can decompress it to obtain the decompressed audio data, and then extract the absolute timestamp written when the data packet is encapsulated from the decompressed audio data to determine whether the clock of the audio playback device needs to be calibrated. If not, the decompressed audio data is directly played synchronously.

[0074] If the difference between the absolute timestamp and the system timestamp of the audio playback device to be played is less than a certain threshold, it can be determined that the clock of the audio playback device does not need to be calibrated; otherwise, it can be determined that the clock of the audio playback device needs to be calibrated.

[0075] In one embodiment, when the control device controls the target audio playback device to switch to the target audio playback device for audio connection playback based on the playback progress of the target audio data by the first audio playback device, the control device obtains the current playback progress of the target audio data from the first audio playback device; the control device collects the audio data to be played corresponding to the target audio data from the target audio source according to the current playback progress and the current time, encapsulates the audio data to be played into data packets, and obtains the first audio data; the control device sends the first audio playback data to the target audio device, and the target audio playback device plays the target audio data synchronously.

[0076] After determining the target audio playback device, the control device can send an audio playback instruction to the target audio playback device, and control the target audio playback device to perform audio connection playback according to the current playback progress of the target audio object by the first audio playback device, so that the target audio playback device starts audio playback with the current playback progress of the target audio object. If there are more than one target audio playback devices, each target audio playback device performs synchronous and connection playback of audio in this way.

[0077] When the control device controls the target audio playback device to play the audio in a connected manner, the original audio data to be played can be encapsulated in data packets based on the current playback progress of the target audio object by the first audio playback device and the current time to obtain the target audio data to be played, and then the target audio data to be played is transmitted to each target audio playback device, and each target audio playback device plays the target audio data to be played synchronously, thereby achieving seamless audio device switching.

[0078] It is understandable that the control device can control different audio playback devices for synchronous playback in the same way, that is, the control device controls the first audio playback device to synchronously play any audio data in the same way as controlling the target audio playback device to synchronously play any audio data, thereby reducing the complexity of audio device switching.

[0079] In one embodiment, after switching to the target audio playback device for continuous audio playback, the control device may also send a stop playback instruction to the first audio playback device. The first audio playback device responds to the stop playback instruction and stops playing the audio, thereby achieving energy saving.

[0080] Corresponding to the above method embodiment, see Figure 2 A schematic diagram of an audio playback system is shown, the system includes a control device and at least two audio playback devices, wherein: At least one first audio playback device is used for: in response to an audio playback instruction, the control device collects original audio data from a target audio source; wherein the first audio playback device is any audio playback device in the audio playback system; the control device is used for: according to the current moment, encapsulating the original audio data into data packets to obtain target audio data; the control device is used for: transmitting the target audio data to the first audio playback device, and all the first audio playback devices play the target audio data synchronously; the control device is used for: obtaining environmental perception data, and judging whether the environmental perception data meets the preset audio playback device switching condition; wherein the environmental perception data is used to indicate the position change of the perception target in the space where the audio playback device is located; if it meets the condition, the control device is used for: determining at least one target audio playback device according to the environmental perception data; wherein the target audio playback device is an audio playback device other than the first audio playback device in the audio playback system; the control device is used for: the target audio playback device switches to the target audio playback device for continuous audio playback based on the playback progress of the target audio data by the first audio playback device.

[0081] The above-mentioned audio playback system can, when multiple audio playback devices are playing audio synchronously, sense the spatial position changes of the target object, so that the audio playback can be switched to a specific audio playback device for synchronous and connected playback without the user feeling or contacting, making the switching of audio playback devices more convenient and the user experience better.

[0082] Optionally, the perception target is a target mobile device; when the control device is used to: obtain environmental perception data, and determine whether the environmental perception data meets the preset audio playback device switching condition, it includes: the control device obtains the environmental perception data, and determines whether the audio space where the target mobile device is located is transferred according to the position of the target mobile device in the space where the audio playback device is located in the environmental perception data; wherein the audio space contains at least one audio playback device; if the audio space where the target mobile device is located is transferred, it is determined that the environmental perception data meets the preset audio playback device switching condition.

[0083] Optionally, if it meets the requirements, the control device is used to: determine at least one target audio playback device based on the environmental perception data, including: if it meets the requirements, determine the current audio space where the target mobile device is located after the audio space transfer occurs based on the location information of the target mobile device in the environmental perception data; determine the audio playback device corresponding to the current audio space based on a preset mapping relationship between the audio space and the audio playback device; determine the audio playback device corresponding to the current audio space as the target audio playback device, and obtain at least one target audio playback device.

[0084] Optionally, the perception target is a human body; when the control device is used to: obtain environmental perception data, and determine whether the environmental perception data meets the preset audio playback device switching conditions, it includes: the control device obtains the environmental perception data, and determines whether the human body has transferred in the audio space according to the position change of the human body in the space where the audio playback device is located in the environmental perception data; wherein the audio space contains at least one audio playback device; if the human body has transferred in the audio space, it is determined that the environmental perception data meets the preset audio playback device switching conditions.

[0085] Optionally, if it meets the requirements, the control device is used to: determine at least one target audio playback device based on the environmental perception data, including: if it meets the requirements, determine the current audio space in which the human body is located according to the audio space data indicating the audio space in which the human body is located in the environmental perception data; determine the audio playback device corresponding to the current audio space according to a preset mapping relationship between the audio space and the audio playback device; determine the audio playback device in the current audio space as the target audio playback device, and obtain at least one target audio playback device.

[0086] Optionally, when the control device is used to: encapsulate the original audio data into data packets according to the current moment to obtain target audio data, it includes: the control device obtains a system clock, converts the system clock into a timestamp, and obtains an absolute timestamp; divides the original audio data according to the frame rate to obtain multiple frames of audio data; wherein each frame of audio data corresponds to timing information; and merges the timing information corresponding to the multiple frames of audio data and the absolute timestamp to obtain the target audio data.

[0087] Optionally, when the control device is used to: transmit the target audio data to the first audio playback device, and all the first audio playback devices play the target audio data synchronously, it includes: the control device compresses the target audio data through a preset audio compression algorithm to obtain compressed audio data; the control device transmits the compressed audio data to all the first audio playback devices through a local area network; all the first audio playback devices decompress the compressed audio data received to obtain decompressed audio data; all the first audio playback devices perform clock calibration according to the absolute timestamp in the decompressed audio data, and synchronously play the decompressed audio data according to the clock calibration result.

[0088] Optionally, when the control device is used to control the target audio playback device to switch to the target audio playback device for audio continuity playback based on the playback progress of the target audio data by the first audio playback device, it includes: the control device obtains the current playback progress of the target audio data from the first audio playback device; the control device collects the audio data to be played corresponding to the target audio data from the target audio source according to the current playback progress and the current time, and encapsulates the audio data to be played into data packets to obtain the first audio data; the control device sends the first audio playback data to the target audio device, and the target audio playback device plays the target audio data synchronously.

[0089] This embodiment also provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned audio playback device switching method. The electronic device can be a server or a terminal device.

[0090] See also Figure 3 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine executable instructions that can be executed by the processor 100. The processor 100 executes the machine executable instructions to implement the above-mentioned switching method of the audio playback device.

[0091] Further, Figure 3 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .

[0092] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0093] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware, for example: At least one first audio playback device responds to an audio playback instruction, and the control device collects original audio data from a target audio source; wherein the first audio playback device is any audio playback device in the audio playback system; the control device encapsulates the original audio data into data packets according to the current time to obtain target audio data; the control device transmits the target audio data to the first audio playback device, and all first audio playback devices play the target audio data synchronously; the control device obtains environmental perception data and determines whether the environmental perception data meets the preset audio playback device switching condition; wherein the environmental perception data is used to indicate the position change of the perception target in the space where the audio playback device is located; if it meets the condition, the control device determines at least one target audio playback device according to the environmental perception data; wherein the target audio playback device is an audio playback device other than the first audio playback device in the audio playback system; the control device controls the target audio playback device to switch to the target audio playback device for continuous audio playback based on the playback progress of the target audio data by the first audio playback device.

[0094] In this way, when multiple audio playback devices are playing audio synchronously, the spatial position change of the target object can be sensed, so that the audio playback can be switched to a specific audio playback device for synchronous and connected playback without the user feeling or contacting, making the switching of audio playback devices more convenient and providing a better user experience.

[0095] Optionally, the perception target is a target mobile device; the step of controlling the device to obtain environmental perception data and determining whether the environmental perception data meets the preset audio playback device switching condition includes: controlling the device to obtain environmental perception data, and determining whether the audio space where the target mobile device is located is transferred according to the position of the target mobile device in the space where the audio playback device is located in the environmental perception data; wherein the audio space contains at least one audio playback device; if the audio space where the target mobile device is located is transferred, it is determined that the environmental perception data meets the preset audio playback device switching condition.

[0096] Optionally, if it meets the requirements, the control device determines the step of at least one target audio playback device according to the environmental perception data, including: if it meets the requirements, determining the current audio space where the target mobile device is located after the audio space transfer occurs according to the location information of the target mobile device in the environmental perception data; determining the audio playback device corresponding to the current audio space according to a preset mapping relationship between the audio space and the audio playback device; determining the audio playback device corresponding to the current audio space as the target audio playback device, and obtaining at least one target audio playback device.

[0097] Optionally, the perception target is a human body; the step of controlling a device to obtain environmental perception data and determining whether the environmental perception data meets a preset audio playback device switching condition includes: controlling the device to obtain environmental perception data, and determining whether the human body has shifted in the audio space based on a position change of the human body in the space where the audio playback device is located in the environmental perception data; wherein the audio space contains at least one audio playback device; if the human body has shifted in the audio space, determining that the environmental perception data meets the preset audio playback device switching condition.

[0098] Optionally, if it meets the requirements, the control device determines the step of at least one target audio playback device according to the environmental perception data, including: if it meets the requirements, determining the current audio space in which the human body is located according to the audio space data indicating the audio space in which the human body is located in the environmental perception data; determining the audio playback device corresponding to the current audio space according to a preset mapping relationship between the audio space and the audio playback device; determining the audio playback device in the current audio space as the target audio playback device, and obtaining at least one target audio playback device.

[0099] Optionally, the control device encapsulates the original audio data into data packets according to the current moment to obtain the target audio data, including: the control device obtains the system clock, converts the system clock into a timestamp, and obtains an absolute timestamp; divides the original audio data according to the frame rate to obtain multiple frames of audio data; wherein each frame of audio data corresponds to timing information; and merges the timing information and absolute timestamps corresponding to the multiple frames of audio data to obtain the target audio data.

[0100] Optionally, the control device transmits the target audio data to the first audio playback device, and all the first audio playback devices synchronously play the target audio data, including: the control device compresses the target audio data by using a preset audio compression algorithm to obtain compressed audio data; the control device transmits the compressed audio data to all the first audio playback devices through a local area network; all the first audio playback devices decompress the compressed audio data received to obtain decompressed audio data; all the first audio playback devices perform clock calibration according to the absolute timestamp in the decompressed audio data, and synchronously play the decompressed audio data according to the clock calibration result.

[0101] Optionally, the control device controls the target audio playback device to switch to the target audio playback device for audio continuity playback based on the playback progress of the target audio data by the first audio playback device, comprising: the control device obtains the current playback progress of the target audio data from the first audio playback device; the control device collects the audio data to be played corresponding to the target audio data from the target audio source according to the current playback progress and the current time, and encapsulates the audio data to be played into data packets to obtain the first audio data; the control device sends the first audio playback data to the target audio device, and the target audio playback device plays the target audio data synchronously.

[0102] This embodiment further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned switching method of the audio playback device, for example: At least one first audio playback device responds to an audio playback instruction, and the control device collects original audio data from a target audio source; wherein the first audio playback device is any audio playback device in the audio playback system; the control device encapsulates the original audio data into data packets according to the current time to obtain target audio data; the control device transmits the target audio data to the first audio playback device, and all first audio playback devices play the target audio data synchronously; the control device obtains environmental perception data and determines whether the environmental perception data meets the preset audio playback device switching condition; wherein the environmental perception data is used to indicate the position change of the perception target in the space where the audio playback device is located; if it meets the condition, the control device determines at least one target audio playback device according to the environmental perception data; wherein the target audio playback device is an audio playback device other than the first audio playback device in the audio playback system; the control device controls the target audio playback device to switch to the target audio playback device for continuous audio playback based on the playback progress of the target audio data by the first audio playback device.

[0103] In this way, when multiple audio playback devices are playing audio synchronously, the spatial position change of the target object can be sensed, so that the audio playback can be switched to a specific audio playback device for synchronous and connected playback without the user feeling or contacting, making the switching of audio playback devices more convenient and providing a better user experience.

[0104] Optionally, the perception target is a target mobile device; the step of controlling the device to obtain environmental perception data and determining whether the environmental perception data meets the preset audio playback device switching condition includes: controlling the device to obtain environmental perception data, and determining whether the audio space where the target mobile device is located is transferred according to the position of the target mobile device in the space where the audio playback device is located in the environmental perception data; wherein the audio space contains at least one audio playback device; if the audio space where the target mobile device is located is transferred, it is determined that the environmental perception data meets the preset audio playback device switching condition.

[0105] Optionally, if it meets the requirements, the control device determines the step of at least one target audio playback device according to the environmental perception data, including: if it meets the requirements, determining the current audio space where the target mobile device is located after the audio space transfer occurs according to the location information of the target mobile device in the environmental perception data; determining the audio playback device corresponding to the current audio space according to a preset mapping relationship between the audio space and the audio playback device; determining the audio playback device corresponding to the current audio space as the target audio playback device, and obtaining at least one target audio playback device.

[0106] Optionally, the perception target is a human body; the step of controlling a device to obtain environmental perception data and determining whether the environmental perception data meets a preset audio playback device switching condition includes: controlling the device to obtain environmental perception data, and determining whether the human body has shifted in the audio space based on a position change of the human body in the space where the audio playback device is located in the environmental perception data; wherein the audio space contains at least one audio playback device; if the human body has shifted in the audio space, determining that the environmental perception data meets the preset audio playback device switching condition.

[0107] Optionally, if it meets the requirements, the control device determines the step of at least one target audio playback device according to the environmental perception data, including: if it meets the requirements, determining the current audio space in which the human body is located according to the audio space data indicating the audio space in which the human body is located in the environmental perception data; determining the audio playback device corresponding to the current audio space according to a preset mapping relationship between the audio space and the audio playback device; determining the audio playback device in the current audio space as the target audio playback device, and obtaining at least one target audio playback device.

[0108] Optionally, the control device encapsulates the original audio data into data packets according to the current moment to obtain the target audio data, including: the control device obtains the system clock, converts the system clock into a timestamp, and obtains an absolute timestamp; divides the original audio data according to the frame rate to obtain multiple frames of audio data; wherein each frame of audio data corresponds to timing information; and merges the timing information and absolute timestamps corresponding to the multiple frames of audio data to obtain the target audio data.

[0109] Optionally, the control device transmits the target audio data to the first audio playback device, and all the first audio playback devices synchronously play the target audio data, including: the control device compresses the target audio data by using a preset audio compression algorithm to obtain compressed audio data; the control device transmits the compressed audio data to all the first audio playback devices through a local area network; all the first audio playback devices decompress the compressed audio data received to obtain decompressed audio data; all the first audio playback devices perform clock calibration according to the absolute timestamp in the decompressed audio data, and synchronously play the decompressed audio data according to the clock calibration result.

[0110] Optionally, the control device controls the target audio playback device to switch to the target audio playback device for audio continuity playback based on the playback progress of the target audio data by the first audio playback device, comprising: the control device obtains the current playback progress of the target audio data from the first audio playback device; the control device collects the audio data to be played corresponding to the target audio data from the target audio source according to the current playback progress and the current time, and encapsulates the audio data to be played into data packets to obtain the first audio data; the control device sends the first audio playback data to the target audio device, and the target audio playback device plays the target audio data synchronously.

[0111] The switching method of the audio playback device, the audio playback system and the computer program product of the related devices provided in the embodiments of the present disclosure include a computer-readable storage medium storing program codes. The instructions included in the program codes can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments and will not be repeated here.

[0112] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0113] In addition, in the description of the embodiments of the present disclosure, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present disclosure can be understood according to specific circumstances.

[0114] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program code.

[0115] In the description of the present disclosure, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present disclosure and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present disclosure. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0116] Finally, it should be noted that the above embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above embodiments, those skilled in the art should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A method for switching an audio playback device, applied to an audio playback system, characterized in that: The audio playback system includes a control device and at least two audio playback devices, and the method includes: At least one first audio playback device responds to the audio playback instruction, and the control device collects original audio data from the target audio source; wherein the first audio playback device is any audio playback device in the audio playback system; The control device encapsulates the original audio data into data packets according to the current time to obtain target audio data; The control device transmits the target audio data to the first audio playback devices, and all the first audio playback devices synchronously play the target audio data; The control device acquires environmental perception data and determines whether the environmental perception data meets a preset audio playback device switching condition; wherein the environmental perception data is used to indicate a position change of a perception target in a space where the audio playback device is located; If yes, the control device determines at least one target audio playback device according to the environment perception data; wherein the target audio playback device is an audio playback device in the audio playback system other than the first audio playback device; The control device controls the target audio playback device to switch to the target audio playback device for continuous audio playback based on the playback progress of the target audio data by the first audio playback device.

2. The method according to claim 1, characterized in that The sensing target is a target mobile device; The step of the control device acquiring environmental perception data and determining whether the environmental perception data meets a preset audio playback device switching condition includes: The control device acquires environmental perception data, and determines whether the audio space where the target mobile device is located is transferred according to the position of the target mobile device in the space where the audio playback device is located in the environmental perception data; wherein the audio space includes at least one audio playback device; If the audio space where the target mobile device is located is transferred, it is determined that the environmental perception data meets the preset audio playback device switching condition.

3. The method according to claim 2, characterized in that If the conditions are met, the control device determines at least one target audio playback device according to the environment perception data, including: If yes, determining the current audio space where the target mobile device is located after the audio space transfer occurs according to the location information of the target mobile device in the environmental perception data; Determining the audio playback device corresponding to the current audio space according to a preset mapping relationship between the audio space and the audio playback device; An audio playback device corresponding to the current audio space is determined as a target audio playback device, and at least one target audio playback device is obtained.

4. The method according to claim 1, characterized in that The sensing target is a human body; The step of the control device acquiring environmental perception data and determining whether the environmental perception data meets a preset audio playback device switching condition includes: The control device acquires environmental perception data, and determines whether the human body has moved into the audio space according to the position change of the human body in the space where the audio playback device is located in the environmental perception data; wherein the audio space includes at least one audio playback device; If the human body moves in the audio space, it is determined that the environmental perception data meets the preset audio playback device switching condition.

5. The method according to claim 4, characterized in that If the conditions are met, the control device determines at least one target audio playback device according to the environment perception data, including: If yes, determining the current audio space where the human body is located according to the audio space data indicating the audio space where the human body is located in the environmental perception data; Determining the audio playback device corresponding to the current audio space according to a preset mapping relationship between the audio space and the audio playback device; An audio playback device in the current audio space is determined as a target audio playback device, and at least one target audio playback device is obtained.

6. The method according to claim 1, characterized in that The control device encapsulates the original audio data into data packets according to the current time to obtain the target audio data, including: The control device acquires a system clock, converts the system clock into a timestamp, and obtains an absolute timestamp; Dividing the original audio data according to the frame rate to obtain multiple frames of audio data; wherein each frame of audio data corresponds to timing information; The timing information corresponding to the multiple frames of audio data and the absolute timestamp are combined to obtain target audio data.

7. The method according to claim 6, characterized in that The step of the control device transmitting the target audio data to the first audio playback devices, and all the first audio playback devices synchronously playing the target audio data, comprises: The control device compresses the target audio data by using a preset audio compression algorithm to obtain compressed audio data; The control device transmits the compressed audio data to all the first audio playback devices via a local area network; Decompressing the compressed audio data received by all the first audio playback devices to obtain decompressed audio data; All the first audio playback devices perform clock calibration according to the absolute timestamp in the decompressed audio data, and synchronously play the decompressed audio data according to the clock calibration result.

8. The method according to claim 1, characterized in that The step of controlling the target audio playback device to switch to the target audio playback device for continuous audio playback based on the playback progress of the target audio data by the first audio playback device comprises: The control device obtains the current playback progress of the target audio data from the first audio playback device; The control device collects the audio data to be played corresponding to the target audio data from the target audio source according to the current playing progress and the current time, and performs data packet encapsulation on the audio data to be played to obtain the first audio data; The control device sends the first audio playback data to the target audio device, and the target audio playback device synchronously plays the target audio data.

9. An audio playback system, characterized in that: The audio playback system comprises a control device and at least two audio playback devices, wherein: At least one first audio playback device is used for: in response to an audio playback instruction, the control device collects original audio data from a target audio source; wherein the first audio playback device is any audio playback device in the audio playback system; The control device is used to: encapsulate the original audio data into data packets according to the current time to obtain target audio data; The control device is used to: transmit the target audio data to the first audio playback devices, so that all the first audio playback devices play the target audio data synchronously; The control device is used to: obtain environmental perception data, and determine whether the environmental perception data meets the preset audio playback device switching condition; wherein the environmental perception data is used to indicate the position change of the perception target in the space where the audio playback device is located; If it is met, the control device is used to: determine at least one target audio playback device according to the environmental perception data; wherein the target audio playback device is an audio playback device in the audio playback system other than the first audio playback device; The control device is used to control: the target audio playback device switches to the target audio playback device for continuous audio playback based on the playback progress of the target audio data by the first audio playback device.

10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the switching method of the audio playback device according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by the processor, the computer-executable instructions prompt the processor to implement the switching method of the audio playback device according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Audio playing method and device, electronic equipment and storage medium

    CN118210470A

  • Audio playing method, device, chip, equipment and system

    CN118550498A