Wireless multichannel sound playing control method and system

Through the method of splitting and encrypted the additional timestamp of audio data, the synchronization error problem when transmitting audio signals in wireless networks is solved, and high -quality transmission and playback of audio signals are realized.

CN119342408AInactive Publication Date: 2025-01-21SHENZHEN LIONKING SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411477873.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2025-01-21
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When wireless networks transmit audio signals, due to network delay, synchronization errors occur between different channels, affecting the overall sound effect.

Method used

By splitting the received audio data, selecting the first sub-data for encryption and appending a preset timestamp, it ensures that all receivers play according to the preset timestamp after receiving the encrypted data, thereby solving the synchronization error problem.

Benefits of technology

Based on the synchronization of timestamp, the synchronization error caused by network delay is greatly reduced to ensure high -quality transmission and playback of audio signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119342408A_ABST
    Figure CN119342408A_ABST
Patent Text Reader

Abstract

The invention discloses a wireless multichannel sound playing control method and system, and relates to the technical field of audio playing. The method comprises the following steps: receiving audio data sent by user equipment; splitting the audio data based on a preset rule to obtain a plurality of sub-data; obtaining first sub-data from the multiple pieces of sub-data, adding a preset timestamp into the first sub-data to obtain first encrypted data, and sending the first encrypted data through the transmitter; and after the plurality of receivers receive the first encrypted data, analyzing the first encrypted data to obtain first decrypted data, and playing the first decrypted data according to a preset timestamp. By implementing the technical scheme provided by the invention, the problem of synchronization error when the audio signal is transmitted by a wireless network is solved, and high-quality transmission of the audio signal is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio playback technology, and in particular to a wireless multi-channel sound playback control method and system. Background Art

[0002] With the rapid advancement of multimedia technology, the public's requirements for audio playback quality and experience have significantly increased, especially in large public spaces such as shopping malls, transportation hubs and airports. The demand for multi-channel, high-fidelity sound playback is particularly urgent. Multi-channel audio design aims to ensure that sound signals can evenly cover the entire area through precise acoustic layout, eliminate sound blind spots and echoes, and create a coherent, balanced and high-quality listening environment for listeners.

[0003] When building such advanced sound playback systems, the choice of connection method has become a key link in ensuring sound quality transmission and synchronization. Traditionally, sound playback systems rely on wired connection technology to closely connect various audio components through a complex wiring network. Due to the complexity of wiring caused by wired connections, wireless network transmission technology is currently used for connection, which effectively reduces the constraints of physical cables. However, when wireless networks transmit audio signals, network delays cause synchronization errors between different channels, which in turn affects the overall sound effect.

[0004] Therefore, there is an urgent need for a wireless multi-channel sound playback control method and system that can solve the above technical problems. Summary of the invention

[0005] The present application provides a wireless multi-channel sound playback control method and system, which splits audio data into multiple sub-data, then adds a preset timestamp to the first sub-data, determines the playback time of the audio data according to the preset timestamp, ensures that the audio played by all receivers remains synchronized in time, solves the problem of synchronization error when transmitting audio signals over a wireless network, and ensures high-quality transmission of audio signals.

[0006] In the first aspect, the present application provides a wireless multi-channel sound playback control method, which is applied to a control platform, the control platform includes multiple receivers and transmitters, and the method includes: receiving audio data sent by a user device; splitting the audio data based on preset rules to obtain multiple sub-data; obtaining first sub-data from the multiple sub-data, adding a preset timestamp to the first sub-data to obtain first encrypted data, and sending the first encrypted data through a transmitter; when multiple receivers receive the first encrypted data, they parse the first encrypted data to obtain first decrypted data, and play the first decrypted data according to the preset timestamp.

[0007] By adopting the above technical solution, the received audio data is split into multiple sub-data according to preset rules, the first sub-data is selected for encryption and a preset timestamp is attached. Adding the preset timestamp to the first sub-data is the key to solving the synchronization problem. The timestamp provides a clear reference time point for the receiver, so that different receivers can play the audio data according to the preset timestamp after receiving the first sub-data. After receiving the encrypted data, the receiver parses the encrypted data to decrypt the data, and identifies the preset timestamp. The playback time of the audio data is adjusted according to the preset timestamp to ensure that the audio played by all receivers is synchronized in time. The synchronization based on timestamp greatly reduces the synchronization error caused by network delay, and ensures high-quality transmission and playback of audio signals.

[0008] Optionally, the first sub-data is obtained from multiple sub-data, and a preset timestamp is added to the first sub-data to obtain first encrypted data, specifically including: obtaining a click-to-play request sent by a target user, and determining a first timestamp based on the click-to-play request; sorting multiple sub-data in chronological order to obtain a target sorting result; obtaining the first sub-data, the first sub-data being the sub-data ranked first in the target sorting result; adding the first timestamp to the first sub-data to obtain first encrypted data, the preset timestamp including the first timestamp.

[0009] By adopting the above technical solution, the click-to-play request sent by the target user is obtained, and the first timestamp is determined. The first timestamp is the starting point of the user's request for audio data playback. Multiple sub-data are sorted in chronological order to obtain the target sorting result. The first encrypted data is obtained by obtaining the sub-data ranked first in the target sorting result, that is, the first sub-data, and combining the first sub-data with the first timestamp. The first timestamp enables different receivers to play according to the same first timestamp after receiving the first encrypted data, thereby effectively reducing the synchronization error caused by network delay.

[0010] Optionally, after sorting multiple sub-data in chronological order to obtain a target sorting result, the method also includes: obtaining a first duration corresponding to the audio data, determining a second duration based on the first duration and a target quantity, the target quantity being the total number of sub-data corresponding to splitting the audio data, and the second duration being the duration corresponding to each sub-data; obtaining second sub-data, the second sub-data being the last sub-data in the target sorting result; calculating the target quantity, the second duration and the first timestamp to obtain a second timestamp; adding the second timestamp to the second sub-data to obtain second encrypted data, the preset timestamp including the second timestamp.

[0011] By adopting the above technical solution, the first duration corresponding to the audio data is obtained, and the second duration corresponding to each sub-data is determined according to the first duration and the target number, ensuring that the audio data is evenly divided into multiple sub-data, and the last sub-data in the target sorting result, that is, the second sub-data, is obtained, and the second sub-data is combined with the calculated second timestamp to ensure the integrity and continuity of the audio stream. The precise marking enables the receiver to accurately understand the time when each sub-data starts to play when playing the audio data, further reducing synchronization errors and improving the accuracy of playback.

[0012] Optionally, after multiple receivers receive the first encrypted data, the method also includes: obtaining a target receiving time point corresponding to the target receiver receiving the first encrypted data, the target receiver being any one of the multiple receivers; determining whether the target receiving time point is greater than a preset time point, the preset time point being the time point corresponding to a preset timestamp; when the target receiving time point is greater than the preset time point, confirming that the target receiver is in a first abnormal state, the first abnormal state indicating that the target receiver has a network delay reception error.

[0013] By adopting the above technical solution, the specific time point when the target receiver obtains the encrypted data of the acquisition unit, that is, the target reception time point, can be obtained, the reception status of the receiver can be monitored in real time, and the target reception time point can be compared with the preset time point, so as to accurately determine whether the target receiver has a network delay reception error state. When the target reception time point is greater than the preset time point, it can be immediately confirmed that the target receiver is in the first abnormal state, and problems in the reception process of the target receiver can be discovered and handled in time, thereby ensuring the continuity and stability of the audio service.

[0014] Optionally, when the target receiving time point is greater than the preset time point, after confirming that the target receiver is in the first abnormal state, the method also includes: determining an adjustment plan based on the first abnormal state; sending third encrypted data to the target receiver according to the adjustment plan, and parsing the third encrypted data to obtain second decrypted data, and playing the second decrypted data according to a third timestamp, where the third timestamp is the timestamp corresponding to the third encrypted data.

[0015] By adopting the above technical solution, an adjustment plan is dynamically determined according to the first abnormal state. The dynamic adjustment can enable the control platform to flexibly respond to various network environments and receiving conditions. After identifying the first abnormal state, the adjustment plan can be quickly determined to send the third encrypted data to the target receiver. This rapid response mechanism helps to reduce the playback interruption time caused by network delays and improve the user experience.

[0016] Optionally, after obtaining the target reception time point corresponding to the target receiver receiving the first encrypted data, the method also includes: at a preset time interval, determining whether the transmitter receives the target information, the target information being the received information sent by the target receiver to the transmitter after receiving the first encrypted data; if the transmitter does not receive the target information, it is confirmed that the target receiver is in a second abnormal state, and the second abnormal state indicates that the target receiver has lost data and has not been successfully received.

[0017] By adopting the above technical solution, the target receiver sends the received information, i.e., the target information, to the transmitter after receiving the first encrypted data, and determines whether the transmitter has received the target information at a preset time interval. If the transmitter does not receive feedback information within the preset time, it can quickly confirm that the target receiver is in the second abnormal state, i.e., a state of data loss. This timely abnormality detection helps to adopt corresponding remedial measures.

[0018] Optionally, after adding a preset timestamp to the first sub-data to obtain the first encrypted data, the method further includes: encoding the first encrypted data to obtain target encoded data; according to a preset method, sending the target encoded data to the receiver via a transmitter, and outputting the target encoded data as the first encrypted data.

[0019] By adopting the above technical solution, the first encrypted data is encoded to obtain the target encoded data, and the encoding process includes some verification mechanisms, such as checksums or hash values, to ensure that the data has not been tampered with during transmission. When the receiver receives the target encoded data, the integrity of the data can be verified through the corresponding verification mechanism, thereby ensuring that the received data is complete and has not been tampered with.

[0020] In the second aspect of the present application, a wireless multi-channel sound playback control system is provided, the system is a control platform, the control platform has multiple receivers and transmitters, the control platform includes an acquisition unit, a processing unit and a playback unit; the acquisition unit receives audio data sent by a user device; the processing unit splits the audio data based on preset rules to obtain multiple sub-data; obtains the first sub-data from the multiple sub-data, adds a preset timestamp to the first sub-data, obtains first encrypted data, and sends the first encrypted data through a transmitter; the playback unit parses the first encrypted data after multiple receivers receive the first encrypted data, obtains first decrypted data, and plays the first decrypted data according to the preset timestamp.

[0021] Optionally, the acquisition unit is used to obtain a click-to-play request sent by a target user, and determine a first timestamp based on the click-to-play request; sort multiple sub-data in chronological order to obtain a target sorting result; the acquisition unit is used to obtain the first sub-data, and the first sub-data is the sub-data ranked first in the target sorting result; the processing unit is used to add the first timestamp to the first sub-data to obtain first encrypted data, and the preset timestamp includes the first timestamp.

[0022] Optionally, the acquisition unit is used to obtain a first duration corresponding to the audio data, determine a second duration based on the first duration and a target quantity, the target quantity being the total number corresponding to multiple sub-data obtained by splitting the audio data, and the second duration being the duration corresponding to each sub-data; obtain the second sub-data, the second sub-data being the last sub-data in the target sorting result; the processing unit is used to calculate the target quantity, the second duration and the first timestamp to obtain a second timestamp; add the second timestamp to the second sub-data to obtain second encrypted data, and the preset timestamp includes the second timestamp.

[0023] Optionally, the acquisition unit is used to obtain the target reception time point corresponding to the target receiver receiving the first encrypted data, and the target receiver is any one of the multiple receivers; the processing unit is used to determine whether the target reception time point is greater than the preset time point, and the preset time point is the time point corresponding to the preset timestamp; when the target reception time point is greater than the preset time point, it is confirmed that the target receiver is in a first abnormal state, and the first abnormal state indicates that the target receiver has a network delay reception error.

[0024] Optionally, the processing unit is used to determine an adjustment plan based on the first abnormal state; send third encrypted data to the target receiver according to the adjustment plan, parse the third encrypted data to obtain second decrypted data, and play the second decrypted data according to a third timestamp, where the third timestamp is a timestamp corresponding to the third encrypted data.

[0025] Optionally, the processing unit is used to determine whether the transmitter receives the target information at a preset time interval, where the target information is the received information sent by the target receiver to the transmitter after receiving the first encrypted data; if the transmitter does not receive the target information, it is confirmed that the target receiver is in a second abnormal state, and the second abnormal state indicates that the target receiver has lost data and has not been successfully received.

[0026] Optionally, the processing unit is used to encode the first encrypted data to obtain target encoded data; According to a preset method, the target coded data is sent to the receiver via the transmitter, and the target coded data is output as the first encrypted data.

[0027] In a third aspect of the present application, an electronic device is provided, which includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory, so that an electronic device executes any one of the methods described above in the present application.

[0028] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, any one of the above methods of the present application is executed.

[0029] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. Split the received audio data into multiple sub-data according to preset rules, select the first sub-data for encryption and append a preset timestamp. Adding the preset timestamp to the first sub-data is the key to solving the synchronization problem. The timestamp provides a clear reference time point for the receiver, so that different receivers can play the audio data according to the preset timestamp after receiving the first sub-data. After receiving the encrypted data, the receiver parses the encrypted data to decrypt the data, identifies the preset timestamp, and adjusts the playback time of the audio data according to the preset timestamp to ensure that the audio played by all receivers is synchronized in time. The synchronization based on timestamp greatly reduces the synchronization error caused by network delay, and ensures high-quality transmission and playback of audio signals.

[0030] 2. Obtain the specific time point when the target receiver obtains the encrypted data of the acquisition unit, that is, the target reception time point, and be able to monitor the reception status of the receiver in real time. By comparing the target reception time point with the preset time point, it is possible to accurately determine whether the target receiver has a network delay or reception error. When the target reception time point is greater than the preset time point, it is possible to immediately confirm that the target receiver is in the first abnormal state, and promptly discover and handle problems in the reception process of the target receiver to ensure the continuity and stability of the audio service.

[0031] 3. After receiving the first encrypted data, the target receiver sends the received information, i.e., the target information, to the transmitter. At a preset time interval, it determines whether the transmitter has received the target information. If the transmitter does not receive feedback information within the preset time, it can quickly confirm that the target receiver is in the second abnormal state, i.e., a state of data loss. This timely abnormality detection helps to adopt corresponding remedial measures. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a flowchart of a wireless multi-channel sound playback control method provided by an embodiment of the present application; Figure 2It is a scene schematic diagram of a wireless multi-channel sound playback control method provided in an embodiment of the present application; Figure 3 It is a structural schematic diagram of a wireless multi-channel sound playback control system provided in an embodiment of the present application; Figure 4 It is a structural schematic diagram of an electronic device disclosed in an embodiment of the present application.

[0033] Explanation of the reference numerals: 301, acquisition unit; 302, processing unit; 303, playback unit; 400, electronic device; 401, processor; 402, communication bus; 403, user interface; 404, network interface; 405, memory. DETAILED DESCRIPTION

[0034] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0035] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

[0036] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0037] With the rapid advancement of multimedia technology, the public's requirements for audio playback quality and experience have significantly increased, especially in large public spaces such as shopping malls, transportation hubs and airports. The demand for multi-channel, high-fidelity sound playback is particularly urgent. Multi-channel audio design aims to ensure that sound signals can evenly cover the entire area through precise acoustic layout, eliminate sound blind spots and echoes, and create a coherent, balanced and high-quality listening environment for listeners.

[0038] When building such advanced sound playback systems, the choice of connection method has become a key link in ensuring sound quality transmission and synchronization. Traditionally, sound playback systems rely on wired connection technology to closely connect various audio components through a complex wiring network. Due to the complexity of wiring caused by wired connections, wireless network transmission technology is currently used for connection, which effectively reduces the constraints of physical cables. However, when wireless networks transmit audio signals, network delays cause synchronization errors between different channels, which in turn affects the overall sound effect.

[0039] Therefore, how to solve the problem of synchronization error when transmitting audio signals over a wireless network. A wireless multi-channel sound playback control method provided in an embodiment of the present application is applied to a control platform. The control platform of the present application can be a platform that provides multi-channel audio playback services. The control platform includes multiple receivers and transmitters. The receiver is used to receive audio signals sent by the transmitter, and the transmitter is used to send audio signals to the receiver. Figure 1 is a flow chart of a wireless multi-channel sound playback control method provided by an embodiment of the present application, with reference to Figure 1 The method includes the following steps S101-S104.

[0040] S101: receiving audio data sent by a user device.

[0041] In the above S101, the control platform receives the audio data sent by the user device. At this time, the audio data refers to the data to be played by the sound playback system. The audio data is usually transmitted in the form of a digital signal and may contain voice, music or other types of audio content. Before receiving the audio data sent by the user device, a stable communication connection must be established between the user device and the control platform. This can be achieved through wireless networks, WiFi, Bluetooth and the like. Then use appropriate interfaces and protocols to receive the audio data. The data may be in the form of a continuous stream or may be sent in batches in the form of data packets. After receiving the audio data, the audio data is stored in the buffer of the control platform for subsequent processing.

[0042] S102: Split the audio data based on a preset rule to obtain a plurality of sub-data.

[0043] In the above S102, after receiving the audio data, the audio data can be split into multiple smaller data segments (sub-data) according to a preset rule, which is helpful for data processing. The preset rule is set based on the time length (such as one sub-data every 10 seconds) or the data volume (such as one sub-data per mb). According to the defined rule, the audio data is split, and the split sub-data are sequenced according to the playback time sequence to obtain multiple sub-data, one sub-data corresponds to a sequence number, and the smaller the sequence number, the earlier the sub-data is played, such as the sub-data with a sequence number of 1 is the first audio data to be played.

[0044] S103: Acquire first sub-data from the plurality of sub-data, add a preset timestamp to the first sub-data to obtain first encrypted data, and send the first encrypted data through a transmitter.

[0045] In the above S103, the first sub-data is obtained from the multiple sub-data, and the preset timestamp is added to the first sub-data to obtain the first encrypted data, which specifically includes: obtaining the click-to-play request sent by the target user, and determining the first timestamp according to the click-to-play request; sorting the multiple sub-data in chronological order to obtain the target sorting result; obtaining the first sub-data, the first sub-data being the sub-data ranked first in the target sorting result; adding the first timestamp to the first sub-data to obtain the first encrypted data, and the preset timestamp includes the first timestamp. Specifically, a click-to-play request for audio data from the target user is received, and the target user is a staff member who controls the sound playback system. After receiving the click-to-play request, the click-to-play request is processed to confirm the time when the target user needs the audio data to start playing in the sound playback system. The click-to-play request contains the play time and the number of plays, and the play time is the time when the audio data starts playing. A first timestamp is generated according to the play time, and this timestamp indicates the time when the audio data starts playing. Then, the multiple sub-data are sorted according to the time order in the original audio to obtain the target sorting result, and the sorting is performed to ensure that the complete audio content can be restored during playback. Since the plurality of sub-data are sequenced in advance, the plurality of sub-data can be sequenced based on the sequence numbers from small to large to obtain the target sequence result. After obtaining the target sequence result, the target sequence result can be verified to ensure that all sub-data are sequenced in the correct order. Then the first sub-data is obtained from the target sequence result. The first sub-data is the sub-data ranked first in the target sequence result. This sub-data indicates the starting point for the audio data to start playing. Then the first timestamp is added to the first sub-data, that is, the first timestamp is embedded in the first sub-data as metadata. This can be achieved by modifying the file format of the sub-data, adding additional fields, or any other suitable method. Then the sub-data with the timestamp is encrypted, and encryption can be performed using an encryption algorithm (symmetric encryption or asymmetric encryption). The security of the key and the strength of the encryption algorithm need to be ensured during the encryption process. After the encryption process is completed, the encrypted data obtained is marked as the first encrypted data, and then the first encrypted data is sent to the receiver through the transmitter. A low-latency transmission protocol can be used between the transmitter and the receiver. The protocol includes mechanisms such as automatic retransmission request and forward error correction to improve the reliability of data transmission and reduce latency.

[0046] In addition, after processing the first sub-data, other sub-data are obtained, and then the timestamps corresponding to each sub-data are obtained, and each sub-data and the corresponding timestamp are processed to obtain encrypted data, and the encrypted data is sent to multiple receivers through the transmitter in sequence, specifically including: obtaining the first duration corresponding to the audio data, determining the second duration according to the first duration and the target number, the target number is the total number of sub-data corresponding to the splitting of the audio data, and the second duration is the duration corresponding to each sub-data; obtaining the second sub-data, the second sub-data is the last sub-data in the target sorting result; calculating the target number, the second duration and the first timestamp to obtain the second timestamp; adding the second timestamp to the second sub-data to obtain the second encrypted data, and the preset timestamp includes the second timestamp. Specifically, it is necessary to first determine the total duration of the audio data, that is, the first duration. Then obtain the total number of sub-data corresponding to the splitting of the audio data, that is, the target number, and the target number is determined based on the actual demand splitting. Then divide the first duration by the target number to obtain the second duration, which is the duration that each sub-data should have. If the first duration is not divisible by the target number, it may be necessary to adjust the duration of the last sub-data or add additional blank / padding data to ensure that all sub-data can be processed evenly. Then obtain the second sub-data from the target sorting result. If the second sub-data is the last sub-data in the target sorting result, that is, the last element in the target sorting result. Calculate the target number, the second duration and the first timestamp to obtain the second timestamp. The second timestamp can be calculated by the following formula: T2=(n-1)*t+T1, T2 represents the second timestamp, n represents the target number, t represents the second duration, and T1 represents the first timestamp. Since the second sub-data represents the last element in the target sorting result, n-1 can be used to represent the number of other elements before the last element in the target sorting result. If the second sub-data represents the second to last element in the target sorting result, n-2 can be used to represent the number of other elements before the second to last element in the target sorting result. The second timestamp represents the time when the second sub-data starts to play. The calculated second timestamp is embedded in the second sub-data as metadata. Then, the sub-data with the timestamp is encrypted to generate second encrypted data. This encrypted data will contain the original second sub-data and the timestamp when the last sub-data should start playing. After the encryption is completed, the obtained encrypted data is marked as the second encrypted data, and the second encrypted data is sent to multiple receivers through the transmitter.

[0047] For example, the first duration corresponding to audio data A is 150 seconds, and the target number is 5, that is, the audio data is divided into 5 sub-data; the first duration and the target number are calculated to obtain the second duration corresponding to each sub-data is 30 seconds. If the first sub-data is the audio sub-data that starts to be played, the first timestamp corresponding to the first sub-data is obtained. If the first timestamp is 13:12:15, if the second sub-data is the last audio sub-data played in the audio data, the above formula is used to calculate T2=(5-1)*30+T1. At this time, the second timestamp T2 is 13:14:15.

[0048] Furthermore, in addition to using the above encryption algorithm to encrypt the first sub-data with the first timestamp, the first sub-data with the first timestamp can also be encoded to obtain target encoded data. A suitable encoding method can be selected according to the security requirements of the data, the transmission efficiency, and the decoding capability of the receiver. Common encoding methods include data compression, data encryption, or specific format encoding. The first encrypted data is then encoded using the selected encoding algorithm. After the encoding is completed, the target encoded data is generated. The communication method between the transmitter and the receiver is then determined using a preset method. Common communication methods include wired communication (such as Ethernet, optical fiber), wireless communication (such as Wi-Fi, Bluetooth), or other dedicated communication links. At this time, the target encoded data represents the first encrypted data.

[0049] S104: After receiving the first encrypted data, the multiple receivers parse the first encrypted data to obtain first decrypted data, and play the first decrypted data according to a preset timestamp.

[0050] In the above S104, the first encrypted data is sent to multiple receivers through the transmitter. After receiving the first encrypted data, the multiple receivers parse the first encrypted data to restore the original sub-data and the preset timestamp, and then arrange the playback order and time of the first sub-data according to the preset timestamp. After receiving the first encrypted data through the communication interface, the receiver uses a decryption algorithm that matches the sending end to decrypt the first encrypted data and restore the original first sub-data and timestamp, that is, the first decrypted data. The receiver plays the first decrypted data according to the timestamp. Figure 2 As shown, the audio data is transmitted between the user device and the control platform through wireless transmission technology. After receiving the audio data, the control platform splits the audio data and adds a timestamp, and then encrypts each sub-data with the timestamp to obtain encrypted data, and then sends the encrypted data to each receiver in turn through the transmitter, so that after receiving the encrypted data, the receiver parses the encrypted data to obtain decrypted data, and then sends the decrypted data to the corresponding channel for playback according to the timestamp. The channel is a, and the channel represents a speaker or loudspeaker.

[0051] In addition, after receiving the first encrypted data, it is necessary to detect the network delay of each receiver, and perform corresponding processing according to the detection result to ensure the accurate transmission and synchronous playback of the audio data, specifically including: obtaining the target receiving time point corresponding to the target receiver receiving the first encrypted data, the target receiver is any one of the multiple receivers; judging whether the target receiving time point is greater than the preset time point, the preset time point is the time point corresponding to the preset timestamp; when the target receiving time point is greater than the preset time point, it is confirmed that the target receiver is in the first abnormal state, and the first abnormal state indicates that the target receiver has a network delay reception error state. Specifically, in this application, one receiver corresponds to one channel, and the channel represents a speaker or a horn. The time when multiple receivers receive the first encrypted data is detected in turn, and it is determined whether there is a network delay according to the detection result, and the time when any one of the receivers receives the encrypted data is detected as an example for explanation. When the target receiver successfully receives the first encrypted data, it sends a confirmation message to the transmitter, and the confirmation message contains the target receiving time point, and the target receiving time point can be understood as the specific time point when the target receiver successfully receives the first encrypted data. Then extract the preset time point from the first encrypted data, and the preset time point is the time point when the first sub-data starts to be played. Compare the target time point with the preset time point. This comparison is a direct numerical comparison, but make sure that both use the same time unit. According to the comparison result, if the target reception time point is greater than the preset time point, it means that there is a delay or deviation in the reception. Once it is confirmed that the target reception time point is greater than the preset time point, the state of the target receiver is marked as the first abnormal state. This can be achieved by modifying the record in the database, updating the status flag in the memory, or sending an alarm message to the administrator. For example, when the transmitter sends the first encrypted data to the target receiver at 13:12:50, the time point for starting playback corresponding to the first encrypted data is 13:13:40. If the target receiver receives the target reception time point corresponding to the first encrypted data at 13:13:43, it is confirmed that the target reception time point is greater than the preset time point, that is, the target reception time point is later than the preset time point. At this time, the target receiver is in the first abnormal state.

[0052] Further, an adjustment scheme is determined according to the first abnormal state; according to the adjustment scheme, the third encrypted data is sent to the target receiver, and the third encrypted data is parsed to obtain the second decrypted data, and the second decrypted data is played according to the third timestamp, and the third timestamp is the timestamp corresponding to the third encrypted data. Specifically, it is necessary to analyze the specific cause of the first abnormal state. This may include network congestion, receiver performance problems, data packet loss, etc. Based on the analysis of the abnormal cause, one or more adjustment strategies are formulated. These strategies may include retrying to send the first encrypted data, sending new encrypted data containing additional redundant data, adjusting the sending rate to adapt to network conditions, or requesting the receiver to perform specific error recovery operations, etc. Select a scheme that best suits the current situation from multiple possible adjustment strategies. This scheme should be able to minimize network delays and reception errors while ensuring the integrity and synchronization of audio data. According to the adjustment scheme, it may be necessary to re-encrypt part or all of the original audio data and add additional metadata (such as timestamps, sequence numbers, checksums, etc.). These data will be encapsulated into third encrypted data. The third encrypted data is sent to the target receiver using appropriate communication protocols and transmission mechanisms. This may involve multiple aspects such as network programming, data encryption, and error handling. After receiving the third encrypted data, the target receiver needs to parse and decrypt it to restore the original audio data (second decrypted data) and related metadata (such as timestamp). The target receiver uses the same decryption algorithm and key as the sender to parse the third encrypted data. This process usually involves multiple steps such as data decryption, format parsing, and metadata extraction. During the parsing process, the target receiver may need to verify the integrity and correctness of the decrypted data. This can be achieved by comparing checksums, checking timestamps and sequence numbers, etc. Extract the audio data (second decrypted data) and related metadata (such as timestamps) from the parsed data for subsequent processing. The target receiver uses a playback controller (such as an audio player or media framework) to synchronously play the second decrypted data. The playback controller reads the third timestamp and adjusts the start time and progress of the playback based on this timestamp. If any errors are encountered during playback (such as audio data corruption, timestamp errors, etc.), the target receiver needs to be able to perform appropriate error handling, such as requesting to resend the data, skipping the error part, or stopping playback.

[0053] Furthermore, when the target receiving time point is less than the preset time point, it is confirmed that the target receiver is in a normal state, and the decrypted data is played according to the first timestamp.

[0054] In a possible implementation, in order to ensure that each receiver can successfully receive each sub-data, prompt in time when data loss occurs, so as to reduce the occurrence of asynchronous playback of audio data in each channel due to data loss, specifically including: interval preset time, determine whether the transmitter receives the target information, the target information is the target receiver after receiving the first encrypted data, send the received information to the transmitter; if the transmitter does not receive the target information, confirm that the target receiver is in the second abnormal state, the second abnormal state indicates that the target receiver has a state of data loss and unsuccessful reception. Specifically, a reasonable preset time interval can be set, which is used to receive the waiting time for the target receiver to send confirmation information after receiving the first encrypted data. After the transmitter sends the first encrypted data to the target receiver, the timer operation is triggered so that the timer starts timing. After the preset time is reached, the transmitter's receiving buffer or message queue is checked to determine whether the target information has been received. This usually involves traversing the messages in the buffer or queue and searching for confirmation messages related to the target receiver. If the target information is not found during the inspection process, it is confirmed that the transmitter has not received the information. This confirmation process may involve comparing the expected number of target information with the actual number received, or checking specific identifiers (such as sequence numbers or timestamps) to verify the integrity and correctness of the message. Once it is confirmed that the target receiver has not sent the target information, the system needs to mark its status as the second abnormal state. This can be achieved by updating a database record, setting a status flag in memory, or sending an alarm message to an administrator. After confirming the second abnormal state, a series of subsequent operations can be performed to deal with this problem. This may include retrying to send the first encrypted data, sending an error report to an administrator, removing the target receiver from the current communication session, or taking other appropriate recovery measures. In addition, the total number of sub-data received by each receiver within a preset time period can be determined, the total number of target receivers within a preset time period is obtained, and then compared with the number of sub-data sent by the transmitter to the target receiver. If the two are the same, it is confirmed that there is no data loss when the transmitter sends audio data to the target receiver. If the two are not the same, each sub-data is checked in turn to determine whether data loss has occurred.

[0055] Through the above method, the audio data is split, and then the multiple sub-data after the split are sorted according to the preset order to obtain the target sorting result, and then the first sub-data is obtained from the target sorting result. After determining the timestamp corresponding to the first sub-data, adding the first sub-data to the timestamp is the key to solving the synchronization problem. The timestamp provides a clear reference time point for each receiver, so that different receivers can play the audio data according to the timestamp after receiving each sub-data. By encrypting each sub-data, it can be ensured that the data has not been tampered with during the transmission process, and a reasonable encoding method can optimize the storage and transmission efficiency of the data, further improving the reliability of data transmission.

[0056] The embodiment of the present application also provides a wireless multi-channel sound playback control system, Figure 3 is a schematic diagram of a wireless multi-channel sound playback control system provided in an embodiment of the present application, with reference to Figure 3 The system is a control platform, which has multiple receivers and transmitters. The control platform includes an acquisition unit 301, a processing unit 302 and a playback unit 303.

[0057] The acquiring unit 301 receives audio data sent by a user device.

[0058] The processing unit 302 splits the audio data based on a preset rule to obtain multiple sub-data; obtains the first sub-data from the multiple sub-data, adds a preset timestamp to the first sub-data to obtain first encrypted data, and sends the first encrypted data through a transmitter.

[0059] The playing unit 303 parses the first encrypted data to obtain first decrypted data after the multiple receivers receive the first encrypted data, and plays the first decrypted data according to a preset timestamp.

[0060] In a possible implementation, the acquisition unit 301 is used to obtain a click-to-play request sent by a target user, and determine a first timestamp based on the click-to-play request; sort multiple sub-data in chronological order to obtain a target sorting result; the acquisition unit 301 is used to obtain the first sub-data, and the first sub-data is the sub-data ranked first in the target sorting result; the processing unit 302 is used to add the first timestamp to the first sub-data to obtain first encrypted data, and the preset timestamp includes the first timestamp.

[0061] In a possible implementation, the acquisition unit 301 is used to acquire a first duration corresponding to the audio data, determine a second duration based on the first duration and a target number, the target number being the total number corresponding to multiple sub-data obtained by splitting the audio data, and the second duration being the duration corresponding to each sub-data; acquire the second sub-data, the second sub-data being the last sub-data in the target sorting result; the processing unit 302 is used to calculate the target number, the second duration and the first timestamp to obtain a second timestamp; add the second timestamp to the second sub-data to obtain second encrypted data, and the preset timestamp includes the second timestamp.

[0062] In a possible implementation, the acquisition unit 301 is used to acquire a first duration corresponding to the audio data, determine a second duration based on the first duration and a target number, the target number being the total number corresponding to multiple sub-data obtained by splitting the audio data, and the second duration being the duration corresponding to each sub-data; acquire the second sub-data, the second sub-data being the last sub-data in the target sorting result; the processing unit 302 is used to calculate the target number, the second duration and the first timestamp to obtain a second timestamp; add the second timestamp to the second sub-data to obtain second encrypted data, and the preset timestamp includes the second timestamp.

[0063] In one possible implementation, the processing unit 302 is used to determine an adjustment plan based on the first abnormal state; send third encrypted data to the target receiver according to the adjustment plan, parse the third encrypted data to obtain second decrypted data, and play the second decrypted data according to a third timestamp, where the third timestamp is a timestamp corresponding to the third encrypted data.

[0064] In one possible implementation, the processing unit 302 is used to determine whether the transmitter receives the target information at a preset time interval, where the target information is the received information sent by the target receiver to the transmitter after receiving the first encrypted data; if the transmitter does not receive the target information, it is confirmed that the target receiver is in a second abnormal state, and the second abnormal state indicates that the target receiver has lost data and has not been successfully received.

[0065] In one possible implementation, the processing unit 302 is used to determine whether the transmitter receives the target information at a preset time interval, where the target information is the received information sent by the target receiver to the transmitter after receiving the first encrypted data; if the transmitter does not receive the target information, it is confirmed that the target receiver is in a second abnormal state, and the second abnormal state indicates that the target receiver has lost data and has not been successfully received.

[0066] It should be noted that: when the system provided in the above embodiment realizes its functions, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the system and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0067] The present application also discloses an electronic device. Figure 4 , Figure 4 The electronic device 400 may include: at least one processor 401 , at least one network interface 404 , a user interface 403 , a memory 405 , and at least one communication bus 402 .

[0068] The communication bus 402 is used to realize the connection and communication between these components.

[0069] The user interface 403 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 403 may also include a standard wired interface and a wireless interface.

[0070] The network interface 404 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0071] Among them, the processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the processor 401 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 401 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application requests; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 401, and it can be implemented separately through a chip.

[0072] Among them, the memory 405 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 405 includes a non-transitory computer-readable storage medium. The memory 405 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area. Instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. can be stored; the data storage area can store data involved in the above-mentioned various method embodiments, etc. The memory 405 can also be optionally at least one storage device located away from the aforementioned processor 401.

[0073] like Figure 4 As shown, the memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program for wireless multi-channel sound playback control.

[0074] exist Figure 4In the electronic device 400 shown, the user interface 403 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 401 can be used to call the application program for wireless multi-channel sound playback control stored in the memory 405. When executed by one or more processors, the electronic device executes one or more methods in the above-mentioned embodiments.

[0075] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

[0076] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0077] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0078] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0079] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0080] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

[0081] The above are only exemplary embodiments of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, it will be easy for those skilled in the art to think of other embodiments of the present disclosure. This application is intended to cover any variation, use or adaptive change of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure.

Claims

1. A wireless multi-channel sound playback control method, characterized in that: Applied in a control platform, the control platform includes a plurality of receivers and transmitters, the method includes: Receiving audio data sent by a user device; Splitting the audio data based on a preset rule to obtain a plurality of sub-data; Acquire first sub-data from the plurality of sub-data, add a preset timestamp to the first sub-data to obtain first encrypted data, and send the first encrypted data through the transmitter; After receiving the first encrypted data, the plurality of receivers parse the first encrypted data to obtain first decrypted data, and play the first decrypted data according to the preset timestamp.

2. The method according to claim 1, characterized in that The acquiring the first sub-data from the plurality of sub-data, adding a preset timestamp to the first sub-data, and obtaining the first encrypted data specifically includes: Obtaining a click-to-play request sent by a target user, and determining a first timestamp according to the click-to-play request; Sorting the plurality of sub-data in chronological order to obtain a target sorting result; Acquire the first sub-data, where the first sub-data is the sub-data ranked first in the target sorting result; The first timestamp is added to the first sub-data to obtain the first encrypted data, and the preset timestamp includes the first timestamp.

3. The method according to claim 1, characterized in that After the plurality of sub-data are sorted in chronological order to obtain a target sorting result, the method further includes: Obtain a first duration corresponding to the audio data, and determine a second duration according to the first duration and a target number, where the target number is the total number of sub-data obtained by splitting the audio data, and the second duration is the duration corresponding to each sub-data; Acquire second sub-data, where the second sub-data is the last sub-data in the target sorting result; Calculating the target quantity, the second duration, and the first timestamp to obtain a second timestamp; The second timestamp is added to the second sub-data to obtain second encrypted data, and the preset timestamp includes the second timestamp.

4. The method according to claim 1, characterized in that: After the plurality of receivers receive the first encrypted data, the method further comprises: Obtaining a target receiving time point corresponding to a target receiver receiving the first encrypted data, the target receiver being any one of the multiple receivers; Determine whether the target receiving time point is greater than a preset time point, where the preset time point is a time point corresponding to the preset timestamp; When the target reception time point is greater than the preset time point, it is confirmed that the target receiver is in a first abnormal state, and the first abnormal state indicates that the target receiver has a network delayed reception error state.

5. The method according to claim 4, characterized in that After confirming that the target receiver is in the first abnormal state when the target reception time point is greater than the preset time point, the method further includes: determining an adjustment plan according to the first abnormal state; According to the adjustment scheme, third encrypted data is sent to the target receiver, and the third encrypted data is parsed to obtain second decrypted data, and the second decrypted data is played according to a third timestamp, where the third timestamp is a timestamp corresponding to the third encrypted data.

6. The method according to claim 4, characterized in that After obtaining the target receiving time point corresponding to the target receiver receiving the first encrypted data, the method further includes: At a preset time interval, determining whether the transmitter receives target information, wherein the target information is the received information sent by the target receiver to the transmitter after receiving the first encrypted data; If the transmitter fails to receive the target information, it is determined that the target receiver is in a second abnormal state, where the second abnormal state indicates that the target receiver is in a state where data is lost and not received successfully.

7. The method according to claim 1, characterized in that After adding the preset timestamp to the first sub-data to obtain the first encrypted data, the method further includes: Encoding the first encrypted data to obtain target encoded data; According to a preset manner, the target coded data is sent to the receiver via the transmitter, and the target coded data is output as the first encrypted data.

8. A wireless multi-channel sound playback control system, characterized in that: The system is a control platform, the control platform has multiple receivers and transmitters, and the control platform includes an acquisition unit (301), a processing unit (302) and a playback unit (303); The acquisition unit (301) receives audio data sent by a user device; The processing unit (302) splits the audio data based on a preset rule to obtain a plurality of sub-data; obtains a first sub-data from the plurality of sub-data, adds a preset timestamp to the first sub-data to obtain a first encrypted data, and sends the first encrypted data through the transmitter; The playing unit (303) parses the first encrypted data to obtain first decrypted data after the plurality of receivers receive the first encrypted data, and plays the first decrypted data according to the preset timestamp.

9. An electronic device, characterized in that: The electronic device (400) comprises a processor (401), a memory (405), a user interface (403) and a network interface (404), wherein the memory (405) is used to store instructions, the user interface (403) and the network interface (404) are used to communicate with other devices, and the processor (401) is used to execute the instructions stored in the memory (405) so that the electronic device (400) executes the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is performed.