Audio processing method and electronic device

By detecting channel conflicts in real time and performing frequency hopping in the audio system, the channel congestion problem caused by wireless communication channel conflicts is solved, improving audio signal transmission efficiency and user experience.

WO2026144289A1PCT designated stage Publication Date: 2026-07-09XINYANG INT TRADING CO LTD

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
XINYANG INT TRADING CO LTD
Filing Date
2025-09-19
Publication Date
2026-07-09

Smart Images

  • Figure CN2025122457_09072026_PF_FP_ABST
    Figure CN2025122457_09072026_PF_FP_ABST
Patent Text Reader

Abstract

An audio processing method and an electronic device. The method comprises: a master loudspeaker decodes a source audio signal to generate a decoded audio signal of an independent channel; the master loudspeaker determines a transmission frequency band on the basis of configuration information of the channel; the master loudspeaker creates a first communication link with a slave loudspeaker on the basis of a first frequency corresponding to the transmission frequency band, so as to transmit the decoded audio signal to the slave loudspeaker; if the master loudspeaker determines that the configuration information comprises a frequency hopping identifier and detects that a channel collision exists in the first communication link, the master loudspeaker generates and sends a frequency hopping request; in response to the frequency hopping request, the master loudspeaker and the slave loudspeaker respectively perform frequency hopping processing within a preset frequency range at a preset interval frequency to determine a second frequency; the master loudspeaker creates a second communication link with the slave loudspeaker on the basis of the second frequency, so as to transmit the decoded audio signal to the slave loudspeaker; and the master loudspeaker disconnects the first communication link.
Need to check novelty before this filing date? Find Prior Art

Description

Audio processing methods and electronic devices

[0001] Cross-references to related applications

[0002] This application claims priority to Chinese patent application No. 2024119926138, filed on December 30, 2024, the entire contents of which are incorporated herein by reference. Technical Field

[0003] This application relates to the field of communication technology, and in particular to an audio processing method and an electronic device. Background Technology

[0004] With the development of audio technology, audio systems with multiple independent channels have emerged, bringing users a richer and more enjoyable listening experience with their excellent sound quality and immersive sound. When the audio signals of the independent channels in an audio system are transmitted wirelessly from the speakers, their wireless communication channels may conflict with or be occupied by existing wireless channels (such as WiFi routing channels), causing channel congestion. This can affect the quality of wireless communication, or even lead to audio signal transmission failure or affect the user's normal Internet access, resulting in a poor user experience. Summary of the Invention

[0005] Some embodiments of this application provide an audio processing method based on sound, including:

[0006] The main speaker acquires the source audio signal and decodes it to generate a decoded audio signal for an independent channel.

[0007] The main speaker determines the transmission frequency band based on the channel configuration information; the transmission frequency band is used to associate the decoded audio signal of the channel with the corresponding slave speaker of the channel;

[0008] The main speaker establishes a first communication link with the slave speaker based on the first frequency corresponding to the transmission frequency band, and transmits the decoded audio signal to the slave speaker through the first communication link;

[0009] The speaker plays audio based on the decoded audio signal;

[0010] If the main speaker determines that the configuration information of the channel contains a frequency hopping identifier and detects a channel conflict in the first communication link, the main speaker generates a frequency hopping request and sends the frequency hopping request based on the transmission frequency band.

[0011] The main speaker responds to the frequency hopping request by performing frequency hopping within a preset frequency range and at preset intervals to determine a second frequency.

[0012] The audio source responds to the frequency hopping request by synchronously performing frequency hopping processing within the preset frequency range at the preset interval frequency to determine the second frequency;

[0013] The main speaker establishes a second communication link with the slave speaker based on the second frequency, and transmits the decoded audio signal to the slave speaker through the second communication link;

[0014] The audio player continues to play audio based on the decoded audio signal;

[0015] The main speaker disconnects the first communication link.

[0016] Some embodiments of this application provide an electronic device, including:

[0017] The first communicator is used for data communication with external devices to obtain source code audio signals;

[0018] The second communicator is used for wireless data communication with the speaker.

[0019] The controller is configured as follows:

[0020] The source audio signal is decoded to generate a decoded audio signal with independent channels;

[0021] Based on the configuration information of the audio channel, a transmission frequency band is determined; the transmission frequency band is used to associate the decoded audio signal of the audio channel with the second communicator;

[0022] The second communicator is controlled to establish a first communication link with the slave speaker based on a first frequency corresponding to the transmission frequency band; the first communication link is used to transmit the decoded audio signal to the slave speaker.

[0023] If the configuration information of the audio channel contains a frequency hopping identifier, and a channel conflict is detected in the first communication link corresponding to the second communicator, a frequency hopping request is sent based on the transmission frequency band; the frequency hopping request is used to trigger the second communicator and the slave speaker to perform synchronous frequency hopping processing within a preset frequency range and at preset interval frequencies to determine the second frequency;

[0024] In response to the second frequency received via the second communicator, the second communicator is controlled to establish a second communication link with the slave speaker based on the second frequency; the second communication link is used to transmit the decoded audio signal to the slave speaker;

[0025] Control the second communicator to disconnect the first communication link. Attached Figure Description

[0026] Figure 1 shows a schematic diagram of an electronic device and its control device according to some embodiments of this application;

[0027] Figure 2 shows a hardware configuration block diagram of a display device 200 in some embodiments of this application;

[0028] Figure 3 shows a software configuration diagram of a display device 200 in some embodiments of this application;

[0029] Figure 4 shows a hardware configuration block diagram of a main speaker 510 in some embodiments of this application;

[0030] Figure 5 shows a flowchart of an audio processing method based on sound in some embodiments of this application;

[0031] Figure 6 shows a channel configuration diagram of an audio system in some embodiments of this application;

[0032] Figure 7 shows a detailed flowchart of S540 in the audio processing method based on sound in Figure 5;

[0033] Figure 8 shows a flowchart of a channel collision detection method in an audio processing method based on sound in some embodiments of this application. Detailed Implementation

[0034] To make the embodiments of this application clearer, the exemplary embodiments of this application will be clearly and completely described below with reference to the accompanying drawings of the exemplary embodiments of this application. Obviously, the exemplary embodiments described are only some embodiments of this application, and not all embodiments.

[0035] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.

[0036] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise specified. It should be understood that such terms are interchangeable where appropriate.

[0037] The terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device that includes a range of components is not necessarily limited to all of the components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.

[0038] In related technologies, the slave speakers corresponding to independent channels (such as subwoofer channels, left / right surround channels, etc.) in an audio system can wirelessly establish communication connections with electronic devices (such as the main speaker with control functions in the audio system, or external smart TVs or smartphones that can control the audio system). In this way, the electronic device can transmit the audio signals of the independent channels to the slave speakers for audio playback via a wireless channel. Taking the wireless connection method of the slave speakers using the Wireless Fidelity (WiFi) protocol as an example, the connection process requires network configuration and connection to the user's WiFi router. This occupies the Wi-Fi data transmission channel, which has a certain impact on the user's internet applications. When the audio signal is too loud and / or there are many wirelessly connected slave speakers, the more audio transmission occupies the wireless channel, which can seriously affect normal internet use. Therefore, alternative wireless channels can be pre-set so that when channel conflicts are detected, switching between alternative wireless channels can be performed to reduce channel congestion to some extent. However, wireless communication frequency bands and preset alternative wireless channels are limited. When the amount of data transmitted is large and there are many wireless devices, channel occupation and congestion cannot be avoided.

[0039] Based on the above, some embodiments of this application include a wireless audio transmission avoidance algorithm between the electronic device and the wirelessly connected speaker. This algorithm detects channel conflicts in real time during the wireless transmission of audio signals between the electronic device and the speaker. If a channel conflict exists, it controls the wireless transmitter and the speaker in the electronic device to synchronously perform frequency hopping within a preset frequency range at preset intervals, thereby creating a new wireless communication link to continue transmitting the audio signal. In this way, a new channel can be found and switched to in real time within a certain frequency range, automatically avoiding congested channels to a greater extent and improving the transmission efficiency of the audio signal.

[0040] It should be noted that the "channel conflict" mentioned in some embodiments of this application is a functional term oriented towards communication performance. It is not limited to direct interference caused by two or more signals transmitting on the exact same frequency or channel identifier, but broadly includes any wireless environmental condition that causes one or more preset performance indicators of the target communication link (e.g., but not limited to, data transmission rate, throughput, packet loss rate, bit error rate, retransmission rate, transmission delay, etc.) to degrade below a preset threshold. The causes of this condition can be co-channel interference, adjacent channel interference, signal attenuation, multipath effects, or any other factors affecting wireless transmission quality.

[0041] The electronic device provided in some embodiments of this application can have various implementation forms. For example, the electronic device can be a main speaker with control functions in an audio system; the electronic device can also be an external device to the audio system, such as a television, mobile phone, or vehicle terminal with audio processing and wireless communication capabilities. The electronic device is wirelessly connected to at least one of the secondary speakers in the speaker system.

[0042] Figure 1 is a schematic diagram of the scene between the electronic device and its control device in some embodiments of this application. As shown in Figure 1, the electronic device is the main speaker 510 with control function in the audio system 500. The main speaker 510 is wirelessly connected to at least one independent channel slave speaker 520 to send the decoded audio signal of the corresponding channel of the slave speaker 520 to the slave speaker 520. The wireless method may include infrared protocol communication, Bluetooth protocol communication, or Wireless Fidelity (WiFi) protocol communication, etc. The slave speaker 520 may be a front left channel speaker, a front right channel speaker, a center speaker, a rear left surround speaker, a rear right surround speaker, or a subwoofer channel speaker, etc. The display device 200 is wiredly connected to the main speaker 510 to send the source audio file to the main speaker 510 for audio processing. The user can operate the display device 200 through the mobile device 300 or the control device 100.

[0043] In some embodiments of this application, the control device 100 may be a remote control. Communication between the remote control and the display device includes infrared protocol communication, Bluetooth protocol communication, and other short-range communication methods, controlling the display device 200 wirelessly or via wired means. Users can control the display device 200 by inputting user commands through buttons on the remote control, voice input, control panel input, etc. In some embodiments of this application, a mobile device 300 (such as a mobile terminal, tablet computer, desktop computer, laptop computer, etc.) may also be used to control the display device 200. For example, an application running on the mobile device 300 can be used to control the display device 200.

[0044] In some embodiments of this application, the display device 200 may receive commands without using the aforementioned mobile device 300 or control device 100, but instead through touch or interactive gestures (such as gestures, eye movements, body postures, etc.). In some embodiments of this application, the display device 200 may also employ methods other than the control device 100 and mobile device 300 for control. For example, it may directly receive user voice commands through a module configured within the display device 200 for acquiring voice commands, or it may receive user voice commands through a voice control device external to the display device 200.

[0045] In some embodiments of this application, the display device 200 also communicates with the server 400. The display device 200 may be allowed to communicate via a local area network (LAN), wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactive features to the display device 200. The server 400 may be a cluster or multiple clusters, and may include one or more types of servers.

[0046] As shown in Figure 2, the hardware structure of the display device 200 includes at least one of the following: a tuner / demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory 290, a power supply 280, and a user interface 291. In some embodiments of this application, the display 260 includes a display screen assembly for presenting images, a driving assembly for driving image display, a component for receiving image signals output from the controller, and components for displaying video content, image content, and a menu control interface, as well as a user interface. In some embodiments of this application, the display 260 may be a liquid crystal display, an OLED display, or a projection display, and may also be a projection device and a projection screen. In some embodiments, the audio output interface 270 includes a speaker 2701 and an external audio output terminal 2702.

[0047] In some embodiments of this application, the communicator 220 is a component used to communicate with external devices or servers according to various communication protocols. For example, the communicator may include at least one of the following: a WiFi module 2201, a Bluetooth module 2202, a wired Ethernet module 2203, or other network communication protocol chips or near-field communication protocol chips, as well as an infrared receiver. The display device 200 can establish the transmission and reception of control signals and data signals with the external control device 100 or server 400 through the communicator 220.

[0048] In some embodiments of this application, the user interface can be used to receive control signals from the control device 100 (e.g., an infrared remote control). In some embodiments of this application, the detector 230 is used to collect signals from the external environment or to interact with the outside world. For example, the detector 230 includes a light receiver, a sensor for collecting ambient light intensity; or, the detector 230 includes an image acquisition device 2302, such as a camera, which can be used to collect external environmental scenes, user attributes, or user interaction gestures; or, the detector 230 includes a sound acquisition device 2301, such as a microphone, for receiving external sounds.

[0049] In some embodiments of this application, the external device interface 240 may include, but is not limited to, one or more of the following interfaces: High-definition multimedia interface 2401 (HDMI), analog or data high-definition component input interface 2403 (component), composite video input interface 2402 (CVBS), USB input interface 2404 (USB), RGB port, etc. It may also be a composite input / output interface formed by the above multiple interfaces.

[0050] In some embodiments of this application, the tuner 210 receives broadcast television signals via wired or wireless means, and demodulates audio and video signals, such as EPG data signals, from multiple wireless or wired broadcast television signals. In some embodiments of this application, the controller 250 and the tuner 210 can be located in different separate devices; that is, the tuner 210 can also be located in an external device of the main device containing the controller 250, such as an external set-top box. In some embodiments of this application, the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200. For example, in response to receiving a user command to select a UI object to display on the display 260, the controller 250 can perform operations related to the object selected by the user command. In some embodiments of this application, the controller 250 includes at least one of a central processing unit (CPU) 2506, a video processor 2503, an audio processor 2505, a graphics processing unit (GPU) 2504, RAM 2501, ROM 2502, a first interface 2507, a second interface 2508, ..., up to an nth interface 2509 for input / output, and a communication bus.

[0051] Referring to Figure 3, the software system of the display device can be divided into four layers, from top to bottom: Applications layer 311 (hereinafter referred to as the "Application Layer"), Application Framework layer 312 (hereinafter referred to as the "Framework Layer"), Android runtime and system library layer 313 (hereinafter referred to as the "System Runtime Library Layer"), and kernel layer 314. In some embodiments of this application, at least one application runs in the Application Layer. These applications can be Windows programs, system settings programs, or clock programs that come with the operating system; they can also be applications developed by third-party developers. In specific implementations, the application packages in the Application Layer are not limited to the examples above.

[0052] In some embodiments of this application, the framework layer provides an application programming interface (API) and a programming framework for the application. The application framework layer includes predefined functions. It acts as a processing center that determines the actions taken by the application within the application layer. Through the API, the application can access system resources and obtain system services during execution.

[0053] As shown in Figure 3, in some embodiments of this application, the application framework layer includes managers, content providers, etc., wherein the managers include at least one of the following modules: an Activity Manager configured to interact with all activities running in the system; a Location Manager configured to provide access to system location services to system services or applications; a Package Manager configured to retrieve various information related to application packages currently installed on the device; a Notification Manager configured to control the display and clearing of notification messages; and a Window Manager configured to manage icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.

[0054] In some embodiments of this application, the activity manager is configured to manage the lifecycle of each application and common navigation and back functions, such as controlling application exit, opening, and back actions. The window manager is configured to manage all window programs, such as obtaining the screen size, determining whether there is a status bar, locking the screen, capturing the screen, and controlling changes to the display window (e.g., shrinking the display window, shaking the display, or distorting the display).

[0055] In some embodiments of this application, the system runtime library layer provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system runs the C / C++ libraries contained in the system runtime library layer to implement the functions to be performed by the framework layer. In some embodiments of this application, the kernel layer is the layer between hardware and software. As shown in Figure 3, the kernel layer includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc. In some embodiments, the kernel layer 314 further includes a power management module 315.

[0056] Figure 4 illustrates an exemplary block diagram of the main speaker 510 in some embodiments of Figure 1. As shown in Figure 4, the main speaker 510 includes a controller 511, a first communicator 512, at least one second communicator 513, a user input / output interface 514, a memory 515, and a power supply 514. The main speaker 510 can receive control signals and source audio signals from the display device through the first communicator 512, and perform decoding and channel decomposition on the source audio signals through the audio decoding module in the controller 511 to obtain the decoded audio signals corresponding to the independent channels. Then, the controller 511 can control the second communicator 513 corresponding to the wireless frequency band adapted to the independent channel to send the decoded audio signals to the slave speakers of the corresponding channels.

[0057] In some embodiments of this application, the first communicator 512 may include at least one of a WiFi chip 5121, a Bluetooth module 5122, a wired Ethernet module 5123, or other network communication protocol chips or near-field communication protocol chips, as well as an infrared receiver. In some embodiments of this application, the second communicator 513 mainly serves as an audio signal transmission model, and may include wireless network communication protocol chips such as a WiFi chip 5131 and a Bluetooth module 5132.

[0058] In some embodiments of this application, the main speaker 510 has an audio playback function. Therefore, the controller 511 of the main speaker 510 may include a power amplifier module, and the user input / output interface 514 may include a speaker. Thus, after the audio decoding module in the controller 511 outputs a decoded audio signal adapted to be played by the main speaker 510, the signal can be amplified by the power amplifier module and transmitted to the speaker for audio playback.

[0059] In some embodiments of this application, the controller 511 includes at least one of the following: processor 5113, RAM 5111 (Random Access Memory), ROM 5112 (Read-Only Memory), audio decoding module 5114, power amplifier module 5115, etc.

[0060] In some embodiments of this application, the aforementioned electronic device specifically includes: a first communicator configured to communicate data with an external device to obtain source audio signals; a second communicator configured to communicate wirelessly with a speaker; and a controller configured to perform the functions of steps A to F as follows:

[0061] Step A: Decode the source audio signal to generate a decoded audio signal with independent channels.

[0062] In some embodiments, the source audio signal is the unprocessed, unencoded audio signal to be played, which can be obtained from an external device (such as a display device) via a first communicator. The decoded audio signal is a decoded, independent-channel audio signal. In some embodiments, the electronic device can obtain the source audio signal via the first communicator. Then, it undergoes decoding processing by an audio decoding module, and is decomposed into independent-channel decoded audio signals based on information accompanying the audio signal. For example, if a sound system includes five speakers, each corresponding to one of the five independent channels, the electronic device can decode and obtain five decoded audio signals.

[0063] Step B: Determine the transmission frequency band based on the channel configuration information; the transmission frequency band is used to associate the decoded audio signal of the channel with the second communicator.

[0064] In some embodiments, the transmission frequency band is a pre-configured wireless communication frequency band, such as the 2.4 GHz band, 5.2 GHz band, or 5.8 GHz band. In some embodiments, when establishing a wireless connection between each channel's slave speaker, the audio system can configure the transmission frequency band according to the wireless communication frequency band supported by the transmitting communicator (i.e., the second communicator) of the electronic device and the receiving communicator in the slave speaker. Alternatively, the audio system is factory-configured with a suitable transmission frequency band for each channel's slave speaker. For example, the front left channel slave speaker, if both the second communicator of the electronic device and the receiving communicator of the slave speaker support it, can be configured with a 5.2 GHz transmission frequency band for its wireless connection. Similarly, the electronic device can configure a corresponding second communicator according to its supported wireless communication frequency band. In this way, the association between the slave speaker channel, communication frequency band, and second communicator can be established through the communication frequency band in the configuration information of each channel in the audio system. For example, the above example can establish an association between the front left channel, the 5.2 GHz band, and the second communicator. For any decoded audio signal, the electronic device can query the above-mentioned correlation based on the channel corresponding to the decoded audio signal to determine the corresponding transmission frequency band and the second communicator.

[0065] Step C: Control the second communicator to create a first communication link with the slave speaker based on the first frequency corresponding to the transmission frequency band; the first communication link is used to transmit decoded audio signals to the slave speaker.

[0066] In some embodiments, the first frequency is the default transmission frequency in the transmission band. The first communication link is a wireless communication link established when the audio signal begins transmission. In some embodiments, the electronic device sends the decoded audio signal to a queried second communicator and controls the second communicator to establish a first communication link between the second communicator and the slave speaker of the channel according to the first frequency in the transmission band. The electronic device can then transmit the decoded audio signal to the corresponding slave speaker via the first communication link. After receiving the decoded audio signal, the slave speaker can perform corresponding audio signal processing and play the processed audio signal.

[0067] Step D: If the channel configuration information contains a frequency hopping identifier and a channel conflict is detected in the first communication link corresponding to the second communicator, a frequency hopping request is sent based on the transmission frequency band. The frequency hopping request is used to trigger the second communicator and the speaker to perform synchronous frequency hopping processing within a preset frequency range and at preset intervals to determine the second frequency.

[0068] In some embodiments, a frequency hopping identifier is an identifier indicating that the channel supports frequency hopping functionality. Channel conflict refers to the mutual interference that occurs when two or more signals are transmitted simultaneously, at the same frequency, or in the same spatial channel in a communication system. Such conflicts can lead to a degraded signal quality and even prevent normal communication. A frequency hopping request is a request that triggers the execution of a frequency hopping process. A preset frequency range is a pre-set range of frequency fluctuations for wireless communication, which can be set based on the transmission frequency band and / or the wireless communication frequency bands supported by both the second communicator and the receiving communicator in the speaker. For example, if the supported wireless communication frequency bands include the 2.4 GHz band, the 5.2 GHz band, and the 5.8 GHz band, then the preset frequency range can include at least one of the frequency ranges corresponding to these three bands. A preset interval frequency is a frequency value that increments with each frequency hopping process. The second frequency is the transmission frequency determined after the frequency hopping process.

[0069] In some embodiments, considering that a large number of wireless devices can easily lead to channel conflicts that affect wireless communication efficiency, and that the second communicator corresponding to a channel without a frequency hopping identifier does not support frequency hopping functionality, the electronic device can detect whether a channel conflict exists for any channel configured with a frequency hopping identifier. For example, the electronic device can detect whether the communication quality of the first communication link of a certain channel meets the standard; it can also detect whether the first frequency of the first communication link overlaps with the communication frequency of other wireless communication links; it can also detect whether the channel identifier of the first communication link overlaps with the channel identifier of other wireless communication links, etc. If a channel conflict is detected in the first communication link of the channel, the electronic device can generate a frequency hopping request and send the frequency hopping request to the second communicator corresponding to the channel. In response to the frequency hopping request, the second communicator can generate a frequency hopping command and synchronize the frequency hopping command to the slave speaker corresponding to the channel. In this way, the second communicator and the receiver in the slave speaker can synchronously execute the frequency hopping process. That is, synchronously, within the preset frequency range corresponding to the channel, the communication frequency is increased from the first frequency at preset intervals. Each time the communication frequency is increased, the second communicator and the receiver in the speaker search for and match each other's signals until they are successfully paired. Then, the communication frequency at this time can be determined to be the second frequency.

[0070] It should be noted that during frequency hopping, if the communication frequency after hopping reaches or exceeds the upper boundary of the preset frequency range, the frequency hopping cycle can restart from the lower boundary of the preset frequency range. It should also be noted that if the preset frequency range covers at least two communication bands, the communication band can be switched first during frequency hopping, and then the communication frequency can be incremented. This takes advantage of the relatively low probability of channel conflicts between different communication bands, allowing for faster frequency hopping and further improving audio transmission efficiency.

[0071] Understandably, if the preset frequency range covers at least two communication bands, then during frequency hopping, the communication frequency can be incremented first, and then the communication band can be switched. In this way, frequency hopping can be completed relatively quickly when the channel conflict in the current communication band is not severe.

[0072] Step E: In response to the second frequency received via the second communicator, control the second communicator to establish a second communication link with the slave speaker based on the second frequency; the second communication link is used to transmit decoded audio signals to the slave speaker.

[0073] In some embodiments, the second communication link is a new wireless communication link created after frequency hopping. In some embodiments, after the second communicator and the slave speaker synchronously determine the second frequency through frequency hopping, the electronic device can control the second communicator to create a second communication link between the second communicator and the slave speaker of that channel according to the second frequency. At this time, both the first and second communication links exist simultaneously between the second communicator and the slave speaker. The electronic device can continue to transmit the decoded audio signal to the corresponding slave speaker through the first and second communication links. The slave speaker then continues to process and play the decoded audio signals received from the two communication links.

[0074] Step F: Control the second communicator to disconnect the first communication link.

[0075] In some embodiments, after the electronic device determines that a second communication link has been established, it can control the second communicator to disconnect the first communication link that is in conflict with the channel, and continue to transmit the remaining decoded audio signal through the second communication link.

[0076] The electronic device provided in the above embodiments of this application can be pre-configured with at least one second communicator corresponding to a wireless transmission frequency band (i.e., transmission frequency band), and the second communicator is controlled to create a first communication link with a secondary speaker based on a first frequency corresponding to the transmission frequency band, so as to transmit decoded audio signals to the secondary speaker through the first communication link; when the channel is configured with a frequency hopping identifier and a channel conflict is detected in the first communication link, a frequency hopping request is sent, so that the second communicator and the secondary speaker perform synchronous frequency hopping processing within a preset frequency range and at preset intervals to determine a second frequency; then a second communication link is created with the secondary speaker based on the second frequency to continue transmitting decoded audio signals; the second communicator is controlled to disconnect the first communication link; this realizes that in the case of wireless channel conflict, the transmitting end and receiving end of the audio signal can be controlled to perform synchronous frequency hopping processing within a preset frequency range and at preset intervals, so as to select a suitable channel for audio signal transmission from more wireless channels, automatically detect and avoid existing wireless channels, avoid the problem of poor wireless communication quality caused by channel conflict in a limited number of preset channels, thereby reducing mutual interference between multiple wireless channels, improving the transmission quality and efficiency of audio signals, and improving user experience.

[0077] In some embodiments of this application, the controller is configured to implement step F in the following manner:

[0078] The second communicator is controlled to maintain the first and second communication links; the first and second communication links are used to continue transmitting decoded audio signals; if a channel conflict is detected in the second communication link, the second communicator is controlled to disconnect the first communication link and continue to maintain the second communication link.

[0079] In some embodiments, after the electronic device establishes a second communication link between the second communicator and a certain channel's speaker, given the uncertainty of the stability of the second communication link, it can first continue transmitting the decoded audio signal of that channel simultaneously through the first and second communication links, and detect the stability of the second communication link. When no channel conflict is detected in the second communication link, it indicates that it has reached a stable state for fast transmission. At this time, the electronic device can control the second communicator to disconnect the first communication link, so as to continue high-speed transmission of the decoded audio signal through the second communication link.

[0080] With the above configuration, the original communication link can be kept uninterrupted during frequency hopping, and a new stable communication link can be found through synchronous frequency hopping. This ensures the continuity and stability of the decoded audio signal transmission and avoids audio playback interruption caused by the interruption of audio signal transmission due to switching communication links, thereby further improving the stability of the audio system and the user experience.

[0081] In some embodiments of this application, the controller is also configured to:

[0082] After controlling the second communicator to maintain the first and second communication links, if a channel conflict is detected in the second communication link, the process returns to step D, which involves sending a frequency hopping request based on the transmission frequency band, until there is no channel conflict in the second communication link.

[0083] In some embodiments, when the electronic device detects a channel conflict in the second communication link, it indicates that the second communication link is also unstable. The electronic device can then resend a frequency modulation request to trigger the second communicator and the speaker of that channel to continue synchronous frequency hopping within a preset frequency range and at preset intervals. This re-determines a second frequency that can be paired between the two parties, and a new second communication link is created based on the new second frequency for audio signal transmission and stability testing. This process is then repeated until the new second communication link is free of channel conflicts.

[0084] It should be noted that during the aforementioned cyclic frequency hopping process for rebuilding the second communication link, the first communication link remains connected to ensure uninterrupted transmission of the decoded audio signal. This configuration allows for the search for a new, stable communication link through synchronous frequency hopping during the frequency hopping process, ensuring the continuity and stability of the decoded audio signal transmission.

[0085] In some embodiments of this application, the controller is configured to detect whether a channel conflict exists in the target communication link by detecting whether the audio signal transmission quality of the target communication link meets a preset quality threshold; if yes, then it is determined that a channel conflict exists in the target communication link; if no, then it is determined that no channel conflict exists in the target communication link.

[0086] In some embodiments, the target communication link includes a first communication link or a second communication link. The preset quality threshold is a pre-set critical value for measuring communication quality, which can be set according to the quality indicators used. In some embodiments, considering that different communication links may interfere with each other and affect wireless communication even when the communication frequencies of the channels do not overlap or the channel identifiers are inconsistent, some embodiments of this application do not use channel conflict judgment methods based on whether the communication frequencies overlap or the channel identifiers are consistent. Instead, they determine whether the communication link is congested and thus affects transmission efficiency by detecting the communication quality of the communication link. Electronic devices can evaluate the communication quality of the target communication link using certain transmission quality indicators and compare it with the preset quality threshold to determine whether channel conflict exists.

[0087] If the comparison result shows that the audio signal transmission quality of the target communication link does not meet the preset quality threshold, then it is determined that there is a channel conflict in the target communication link. Conversely, if the comparison result shows that the audio signal transmission quality of the target communication link meets the preset quality threshold, then it is determined that there is no channel conflict in the target communication link.

[0088] In some embodiments of this application, the controller is configured to detect whether the audio signal transmission quality of the target communication link meets a preset quality threshold by detecting whether a first communication indicator of the target communication link is lower than a first quality threshold.

[0089] In some embodiments, the first communication metric includes data transmission rate and / or throughput. A first quality threshold is a pre-set threshold for data transmission rate and / or throughput. In some embodiments, the electronic device may detect whether the data transmission rate of the target communication link is lower than its corresponding first quality threshold. And / or, the electronic device may detect whether the throughput of the target communication link is lower than its corresponding first quality threshold. Then, based on the comparison results, it can be determined whether channel conflict exists in the target communication link.

[0090] It should be noted that if users have high requirements for audio playback quality, they can test only one indicator to improve the timeliness of frequency hopping processing; if users have relatively low requirements for audio playback quality, they can test both indicators at the same time to reduce the power consumption generated by frequency hopping processing.

[0091] In some embodiments of this application, the controller is configured to detect whether the audio signal transmission quality of the target communication link meets a preset quality threshold by detecting whether a second communication index of the target communication link is higher than the second quality threshold.

[0092] In some embodiments, the second communication metric includes at least one of bit error rate, packet loss rate, retransmission rate, and transmission delay. The second quality threshold is a preset threshold value for the bit error rate, packet loss rate, retransmission rate, and / or transmission delay. In some embodiments, the electronic device can detect at least one of the bit error rate, packet loss rate, retransmission rate, and transmission delay of the target communication link and compare it with the corresponding second quality threshold. Then, based on the comparison result, it can be determined whether channel conflict exists in the target communication link.

[0093] It should be noted that if users have high requirements for audio playback quality, they can test only one indicator to improve the timeliness of frequency hopping processing; if users have low requirements for audio playback quality, they can test all four indicators at the same time to reduce the power consumption generated by frequency hopping processing; if users have moderate requirements for audio playback quality, they can test two or three of the four indicators at the same time to balance the timeliness of frequency hopping processing and the power consumption generated by frequency hopping processing.

[0094] In some embodiments of this application, the controller is configured to detect whether the audio signal transmission quality of the target communication link meets a preset quality threshold by detecting whether a first communication index of the target communication link is lower than a first quality threshold and detecting whether a second communication index of the target communication link is higher than a second quality threshold.

[0095] In some embodiments, when the user has relatively low requirements for audio playback quality, the electronic device may detect data transmission rate and / or throughput, as well as at least one of bit error rate, packet loss rate, retransmission rate, and transmission delay. When the user has even lower requirements for audio playback quality, the electronic device may detect three or more of the following metrics of the target communication link: data transmission rate, throughput, bit error rate, packet loss rate, retransmission rate, and transmission delay, and compare them with their corresponding first quality threshold or second quality threshold to determine whether channel conflict exists in the target communication link based on the comparison results.

[0096] In some embodiments of this application, when there are multiple speakers, each speaker includes a subwoofer channel speaker and at least one other channel speaker; the other channels include center channel, front left channel, front right channel, rear left channel, rear right channel, side left channel or side right channel.

[0097] In some embodiments of multi-channel audio systems in the related art, due to channel conflict issues in wireless channels, channels with larger amounts of transmitted audio data are often connected via wired connections. This means that each additional channel requires an additional set of audio transmission lines, which necessitates professional wiring. Furthermore, once installed, the layout cannot be easily altered due to limitations in cable length and location, resulting in poor flexibility in the audio system's layout. Additionally, cable damage and aging can lead to a decline in product quality.

[0098] Based on the above, some embodiments of this application can further arrange the slave speakers in the audio system as wirelessly connected, building upon the audio processing methods for automatically detecting wireless channel conflicts and automatically frequency hopping provided in the above embodiments. In this way, at least one of the slave speakers in the subwoofer channel, center channel, front left channel, front right channel, rear left channel (also known as surround left channel), rear right channel (also known as surround right channel), side left channel, and side right channel can be arranged wirelessly, thereby reducing the installation difficulty of the audio system and improving its layout flexibility and aesthetics. Furthermore, based on the audio processing methods provided in the above embodiments, the audio transmission efficiency of the audio system is also relatively high, further enhancing the user experience.

[0099] In some embodiments of this application, the transmission frequency band of the subwoofer channel is the 2.4 GHz band; the subwoofer channel is not configured with a frequency hopping identifier.

[0100] In some embodiments, considering the relatively low sensitivity of the human ear to low-frequency sounds, the transmission frequency band of the subwoofer channel in the audio system can be set to the 2.4 GHz band. Combined with a Low Complexity Communications Codec (LC3), audio clarity can be maintained while compressing the amount of transmitted data, significantly improving anti-interference performance in the 2.4 GHz band. Therefore, even if channel conflicts occur in the 2.4 GHz band, their impact on the audio transmission of the subwoofer channel is relatively small, and the human ear's perception is low. Thus, the subwoofer channel can also be set to not support frequency hopping, i.e., without a frequency hopping flag, reducing the processing complexity of the audio system to some extent.

[0101] In some embodiments of this application, the transmission frequency band of other channels is the 5.2GHz band or the 5.8GHz band; other channels are configured with frequency hopping identifiers. In some embodiments, the data volume of the audio signal corresponding to other channels besides the subwoofer channel is large, and the transmission speed of the 2.4GHz band is slow, and it is a relatively congested and easily interfered wireless communication band. Therefore, in some embodiments of this application, the 5.2GHz band or the 5.8GHz band can be set for other channels to improve data transmission speed.

[0102] In addition, considering that the human ear is slightly more sensitive to audio signals from other channels, and that there are also signal interference problems in the 5.2GHz or 5.8GHz frequency bands, some embodiments of this application may configure frequency hopping flags for other channels so that during the transmission of audio signals from other channels, the audio signals can be switched to a communication link with less channel conflict in a timely manner.

[0103] In some embodiments of this application, the preset frequency range includes the frequency range corresponding to the 5.2GHz band and / or the frequency range corresponding to the 5.8GHz band. Based on setting the transmission frequency band of the 5.2GHz or 5.8GHz band for other channels, the preset frequency range for frequency hopping processing for the other channels can be set to the frequency range corresponding to the 5.2GHz band and / or the 5.8GHz band. In this way, during frequency hopping processing, the other channels remain within the frequency range of the 5.2GHz and / or 5.8GHz bands, maintaining their high-speed audio signal transmission and interference-free transmission characteristics, thereby further improving the transmission efficiency of the audio signal.

[0104] Figure 5 shows a flowchart illustrating an audio processing method provided in some embodiments of this application. This audio processing method can be executed by an audio system consisting of a main speaker and slave speakers. As shown in Figure 5, the audio processing method provided in some embodiments of this application includes the following steps:

[0105] S510: The main speaker acquires the source audio signal and decodes it to generate a decoded audio signal for an independent channel.

[0106] In some embodiments, the source audio signal is the unencoded source signal of the audio to be played, which can be obtained from an external device (such as a display device) via a first communicator. The decoded audio signal is a decoded, independent-channel audio signal. In some embodiments, the main speaker can obtain the source audio signal from an external source via the first communicator. Then, the audio decoding module performs decoding processing and decomposes the audio signal into independent-channel decoded audio signals based on the information accompanying the audio signal. For example, if the speaker system includes five slave speakers, each corresponding to a separate channel, then the main speaker can decode to obtain five decoded audio signals.

[0107] S520: The main speaker determines the transmission frequency band based on the channel configuration information; the transmission frequency band is used to associate the decoded audio signal of the channel with the corresponding slave speaker.

[0108] In some embodiments, the transmission frequency band is a pre-configured wireless communication frequency band, such as the 2.4 GHz band, 5.2 GHz band, or 5.8 GHz band. In some embodiments, when establishing a wireless connection between each channel's slave speaker, the audio system can select the transmission frequency band based on the wireless communication frequency band supported by the main speaker's transmitting communicator (i.e., the second communicator) and the slave speaker's receiving communicator. Alternatively, the audio system can be factory-configured with a suitable transmission frequency band for each channel's slave speaker. For example, the front left channel slave speaker, if supported by both the main speaker's second communicator and the slave speaker's receiving communicator, can be configured with a 5.2 GHz transmission frequency band for its wireless connection. Similarly, the main speaker can be configured with a corresponding second communicator based on its supported wireless communication frequency band. In this way, the association between the slave speaker's channel, communication frequency band, and second communicator can be established through the communication frequency band in the configuration information of each channel in the audio system. For example, the above example can establish an association between the front left channel, the 5.2 GHz band, and the second communicator.

[0109] For any decoded audio signal, the main speaker can query the above-mentioned correlation based on the channel corresponding to the decoded audio signal to determine the corresponding transmission frequency band and the second communicator.

[0110] S530: The main speaker establishes a first communication link with the slave speaker based on the first frequency corresponding to the transmission frequency band, and transmits the decoded audio signal to the slave speaker through the first communication link.

[0111] In some embodiments, the first frequency is the default transmission frequency in the transmission band. The first communication link is a wireless communication link established when the audio signal begins to transmit. In some embodiments, the main speaker controls a second communicator therein to establish a first communication link between the second communicator and the slave speaker of that channel according to the first frequency in the transmission band. The main speaker can then transmit the decoded audio signal to the corresponding slave speaker via this first communication link.

[0112] S540: Audio playback is performed from the speaker based on the decoded audio signal.

[0113] In some embodiments, after receiving the decoded audio signal from the speaker, the corresponding audio signal processing can be performed, and the processed audio signal can be played.

[0114] S550 If the main speaker determines that the channel configuration information contains a frequency hopping identifier and detects a channel conflict in the first communication link, the main speaker generates a frequency hopping request and sends the frequency hopping request based on the transmission frequency band.

[0115] In some embodiments, a frequency hopping identifier is an identifier indicating that the channel supports frequency hopping functionality. Channel conflict refers to the mutual interference that occurs when two or more signals are transmitted simultaneously, at the same frequency, or in the same spatial channel in a communication system. Such conflicts can lead to a degraded signal quality and even prevent normal communication. A frequency hopping request is a request that triggers the execution of a frequency hopping process. A preset frequency range is a pre-set range of frequency fluctuations for wireless communication, which can be set based on the transmission frequency band and / or the wireless communication frequency bands supported by both the second communicator and the receiving communicator in the speaker. For example, if the supported wireless communication frequency bands include the 2.4 GHz band, the 5.2 GHz band, and the 5.8 GHz band, then the preset frequency range can include at least one of the frequency ranges corresponding to these three bands. A preset interval frequency is a frequency value that increments with each frequency hopping process.

[0116] In some embodiments, the triggering mechanism for the main speaker to generate a frequency hopping request is not limited to detecting channel conflict on the first communication link. To provide a more proactive user experience, the main speaker can also be configured to periodically or during idle periods scan the channel quality within a preset frequency range. If the main speaker predicts that the current channel is about to become congested (e.g., by detecting a new strong WiFi signal), or discovers a significantly better alternative channel (e.g., with lower interference levels and greater available bandwidth), even if the transmission quality of the current first communication link has not deteriorated below a preset threshold, the main speaker can proactively generate and send a frequency hopping request to preemptively switch to the better communication link, thereby achieving predictive avoidance of communication quality problems.

[0117] In some embodiments, considering that a large number of wireless devices can easily lead to channel conflicts that affect wireless communication efficiency, and that the second communicator corresponding to a channel without a frequency hopping identifier does not support frequency hopping, the main speaker can detect whether there is a channel conflict for any channel with a frequency hopping identifier. For example, the main speaker can detect whether the communication quality of the first communication link of a certain channel meets the standard; it can also detect whether the first frequency of the first communication link overlaps with the communication frequency of other wireless communication links; it can also detect whether the channel identifier of the first communication link overlaps with the channel identifier of other wireless communication links, etc. If a channel conflict is detected in the first communication link of that channel, the main speaker can generate a frequency hopping request and send the frequency hopping request to the corresponding slave speaker through the transmission frequency band.

[0118] S560: The main speaker responds to the frequency hopping request and performs frequency hopping processing within a preset frequency range at preset intervals to determine the second frequency.

[0119] In some embodiments, the main speaker may perform a frequency hopping process in response to a frequency hopping request. That is, within a preset frequency range corresponding to the channel, the communication frequency is incremented from a first frequency at preset intervals. Each time the communication frequency is incremented, the main speaker and the slave speaker search for and match each other's signals until they are successfully paired, at which point the communication frequency is determined to be the second frequency.

[0120] S570: In response to the frequency hopping request from the audio system, synchronous frequency hopping is performed within a preset frequency range at preset intervals to determine the second frequency.

[0121] In some embodiments, the speaker can synchronously execute a frequency hopping process in response to a frequency hopping request. That is, within a preset frequency range corresponding to the channel, the communication frequency is incremented from a first frequency at preset intervals. Each time the communication frequency is incremented, the speaker and the main speaker perform signal retrieval and identity matching until they are successfully paired, at which point the communication frequency is determined to be the second frequency.

[0122] It should be noted that during frequency hopping, if the communication frequency after hopping reaches or exceeds the upper boundary of the preset frequency range, the frequency hopping cycle can restart from the lower boundary of the preset frequency range. It should also be noted that if the preset frequency range covers at least two communication bands, the communication band can be switched first during frequency hopping, and then the communication frequency can be incremented. This takes advantage of the relatively low probability of channel conflicts between different communication bands, allowing for faster frequency hopping and further improving audio transmission efficiency.

[0123] Understandably, if the preset frequency range covers at least two communication bands, then during frequency hopping, the communication frequency can be incremented first, and then the communication band can be switched. In this way, frequency hopping can be completed relatively quickly when the channel conflict in the current communication band is not severe.

[0124] It should be understood that the meaning of the second frequency in this application can be interpreted broadly. In some embodiments, the second frequency may be a new, fixed transmission frequency. In some embodiments, the second frequency may be the starting frequency or center frequency of a new frequency hopping sequence, or it may be an identifier of a new frequency hopping mode. Accordingly, the "second communication link" created based on the second frequency may not only be a new single-channel communication link, but also a dynamic communication link that itself employs technologies such as frequency hopping spread spectrum (FHSS) or direct sequence spread spectrum (DSSS) and has stronger anti-interference capabilities.

[0125] S580: The main speaker establishes a second communication link with the slave speaker based on the second frequency, and transmits the decoded audio signal to the slave speaker through the second communication link.

[0126] In some embodiments, the second communication link is a new wireless communication link created after frequency hopping. In some embodiments, after the main speaker and the slave speaker synchronously determine the second frequency through frequency hopping, the main speaker can create a second communication link between the main speaker and the slave speaker of that channel according to the second frequency. At this time, both the first and second communication links exist simultaneously between the main speaker and the slave speaker. Then, the main speaker can continue to transmit the decoded audio signal to the corresponding slave speaker through both the first and second communication links.

[0127] S590: Continue audio playback from the speaker based on the decoded audio signal.

[0128] In some embodiments, the speaker receives decoded audio signals from two communication links, continues to process the audio signals, and then plays them back.

[0129] S5100, the main speaker disconnects the first communication link.

[0130] In some embodiments, after the main speaker determines that a second communication link has been established, it can disconnect the first communication link that is in conflict with the channel and continue to transmit the remaining decoded audio signal through the second communication link.

[0131] The audio processing method provided in the above embodiments of this application can detect in real time whether there is channel conflict in the wireless communication link during the process of establishing a wireless communication link between the main speaker and the slave speaker to transmit audio signals. If there is channel conflict in the wireless communication link, the transmitting end (main speaker) and receiving end (slave speaker) of the audio signal are controlled to perform synchronous frequency hopping within a preset frequency range and at preset intervals. This allows for the selection of a suitable channel for audio signal transmission from a wider range of wireless channels. It automatically detects and avoids existing wireless channels, thus avoiding the problem of poor wireless communication quality caused by channel conflicts in a limited number of preset channels. This reduces mutual interference between multiple wireless channels, improves the transmission quality and efficiency of audio signals, and enhances the user experience.

[0132] In some embodiments of this application, when there are multiple speakers, each speaker includes a subwoofer channel speaker and at least one other channel speaker; the other channels include a center channel, front left channel, front right channel, rear left channel, rear right channel, side left channel, or side right channel. Specifically, in multi-channel speaker systems of related technologies, due to channel conflict issues in wireless channels, the speakers of channels transmitting a large amount of audio data are mostly connected by wires. Thus, each additional channel requires an additional set of audio transmission lines, which requires professional wiring. Once installed, the layout cannot be easily changed due to limitations in cable length and location, resulting in poor flexibility in the speaker system's layout. Furthermore, cable damage and aging can lead to a decline in product quality.

[0133] Based on the above, some embodiments of this application can further arrange the slave speakers in the audio system as wirelessly connected, building upon the audio processing methods for automatically detecting wireless channel conflicts and automatically frequency hopping provided in the above embodiments. In this way, at least one of the slave speakers in the subwoofer channel, center channel, front left channel, front right channel, rear left channel (also known as surround left channel), rear right channel (also known as surround right channel), side left channel, and side right channel can be arranged wirelessly, thereby reducing the installation difficulty of the audio system and improving its layout flexibility and aesthetics. Furthermore, based on the audio processing methods provided in the above embodiments, the audio transmission efficiency of the audio system is also relatively high, further enhancing the user experience.

[0134] In some embodiments of this application, the transmission frequency band of the subwoofer channel is the 2.4 GHz band; the subwoofer channel is not configured with a frequency hopping indicator. In some embodiments, considering that the human ear has relatively low sensitivity to low-frequency sounds, the transmission frequency band of the subwoofer channel in the audio system can be set to the 2.4 GHz band. Combined with a Low Complexity Communications Codec (LC3), the audio clarity can be guaranteed while compressing the amount of transmitted data, greatly improving the anti-interference performance in the 2.4 GHz band. Based on this, even if channel conflicts occur in the 2.4 GHz band, their impact on the audio transmission of the subwoofer channel is relatively small, and the human ear's perception is low. Therefore, the subwoofer channel can also be set to not support frequency hopping processing, i.e., without a frequency hopping indicator, which reduces the processing complexity of the audio system to some extent.

[0135] In some embodiments of this application, the transmission frequency band for other channels is the 5.2GHz band or the 5.8GHz band; frequency hopping identifiers are configured for other channels. In some embodiments, the data volume of the audio signals corresponding to channels other than the subwoofer channel is relatively large, while the transmission speed of the 2.4GHz band is relatively slow and is a relatively congested and easily interfered wireless communication band. Therefore, in some embodiments of this application, the 5.2GHz band or the 5.8GHz band can be set for other channels to improve data transmission speed. In addition, considering that the human ear has a slightly stronger perception of the audio signals of other channels, and that the 5.2GHz band or the 5.8GHz band also has signal interference problems, frequency hopping identifiers can be configured for other channels in some embodiments of this application so that during the transmission of audio signals from other channels, the audio signals can be switched to a communication link with less channel conflict in a timely manner.

[0136] In some embodiments of this application, the preset frequency range includes the frequency range corresponding to the 5.2GHz band and / or the frequency range corresponding to the 5.8GHz band. Based on setting the transmission frequency band of the 5.2GHz or 5.8GHz band for other channels, the preset frequency range for frequency hopping processing for the other channels can be set to the frequency range corresponding to the 5.2GHz band and / or the 5.8GHz band. In this way, during frequency hopping processing, the other channels remain within the frequency range of the 5.2GHz and / or 5.8GHz bands, maintaining their high-speed audio signal transmission and interference-free transmission characteristics, thereby further improving the transmission efficiency of the audio signal.

[0137] Referring to Figure 6, taking the main speaker 510 as the main speaker, the audio system includes a subwoofer channel slave speaker 5201, a front left channel slave speaker 5202, a front right channel slave speaker 5203, a rear left channel (also called surround left channel) slave speaker 5204, and a rear right channel (also called surround right channel) slave speaker 5205 as an example. According to the descriptions of the foregoing embodiments, all five slave speakers are wirelessly connected. The subwoofer channel slave speaker uses the 2.4GHz band without frequency hopping, while the other four slave speakers use the 5.2GHz or 5.8GHz band with frequency hopping. Thus, the main speaker can use the first communication link corresponding to the 2.4GHz band to send the decoded audio signal of the subwoofer channel to the subwoofer channel slave speaker, and this first communication link remains unchanged during transmission. Meanwhile, the main speaker can use the first communication link corresponding to the 5.2GHz or 5.8GHz frequency band to transmit the decoded audio signals corresponding to the front left channel, front right channel, rear left channel and rear right channel to the corresponding slave speakers respectively. During the transmission of the decoded audio signals of each channel, the main speaker can perform channel conflict detection and frequency hopping processing for any one of the first communication links of the front left channel, front right channel, rear left channel and rear right channel.

[0138] Figure 7 shows a detailed flowchart of S5100 in the audio processing method shown in Figure 5. In some embodiments of this application, the main speaker can cyclically hop frequencies within a preset frequency range until the second communication link is stable. Based on this, as an optional embodiment, the main speaker can disconnect the first communication link only after determining that the second communication link is stable. As shown in Figure 7, S5100 "the main speaker disconnects the first communication link" includes the following steps:

[0139] S710, the main speaker maintains a first communication link and a second communication link with the slave speaker, and continues to transmit decoded audio signals through the first communication link and the second communication link.

[0140] In some embodiments, after the main speaker establishes a second communication link with a slave speaker of a certain channel, given the uncertainty of the stability of the second communication link, the decoded audio signal of that channel can be transmitted simultaneously through the first and second communication links.

[0141] S720, detect whether there is a channel conflict in the second communication link.

[0142] In some embodiments, the main speaker can detect the stability of the second communication link, that is, detect whether there is a channel conflict in the second communication link. If there is, then S730 is executed; if not, then S740 is executed.

[0143] S730, the main speaker returns to the steps of generating a frequency hopping request and sending the frequency hopping request based on the transmission frequency band until there is no channel conflict in the second communication link.

[0144] In some embodiments, when the main speaker detects a channel conflict in the second communication link, it indicates that the second communication link is also unstable. The main speaker can then regenerate and send a frequency hopping request to trigger the main speaker and the slave speaker of that channel to continue synchronous frequency hopping within a preset frequency range and at preset intervals. This re-determines a second frequency that can be paired between the two speakers, and based on the new second frequency, recreates the second communication link for audio signal transmission and stability testing. Then, steps S720 to S730 are executed repeatedly until the new second communication link is free of channel conflicts.

[0145] S740: The main speaker disconnects from the first communication link and continues to transmit the decoded audio signal through the second communication link.

[0146] In some embodiments, the absence of channel conflict on the second communication link indicates that it has reached a stable state of high-speed transmission. At this point, the main speaker can disconnect the first communication link to continue high-speed transmission of the decoded audio signal via the second communication link. It should be noted that during the transmission of the decoded audio signal from the channel configured with frequency hopping indicators, the aforementioned detection process for channel conflict and frequency hopping processing can be performed in real-time / periodically to ensure that the decoded audio signal maintains the highest possible transmission speed, thereby improving the stability of the speaker system and the user experience.

[0147] The audio processing method provided in the above embodiments of this application can maintain the original communication link without interruption during frequency hopping and find a new stable communication link through synchronous frequency hopping. This can ensure the continuity and stability of the decoded audio signal transmission and avoid audio playback interruption caused by the interruption of audio signal transmission due to switching communication links, thereby further improving the stability of the audio system and the user experience.

[0148] Figure 8 illustrates a detailed flowchart of the audio processing method for detecting channel conflicts in a target communication link. As shown in Figure 8, "detecting channel conflicts in a target communication link" includes the following steps:

[0149] S810, the main speaker detects whether the audio signal transmission quality of the target communication link meets the preset quality threshold.

[0150] In some embodiments, the target communication link includes a first communication link or a second communication link. The preset quality threshold is a pre-set critical value for measuring communication quality, which can be set according to the quality indicators used. In some embodiments, considering that different communication links may interfere with each other and affect wireless communication even when the communication frequencies of the channels do not overlap or the channel identifiers are inconsistent, some embodiments of this application do not use a channel conflict judgment method based on whether the communication frequencies overlap or the channel identifiers are consistent. Instead, they determine whether the communication link is congested and affects transmission efficiency by detecting its communication quality. The main speaker can evaluate the communication quality of the target communication link using certain transmission quality indicators and compare it with the preset quality threshold to determine whether channel conflict exists.

[0151] In some embodiments of this application, S810 includes: the main speaker detecting whether a first communication index of the target communication link is lower than a first quality threshold.

[0152] In some embodiments, the first communication metric includes data transmission rate and / or throughput. A first quality threshold is a pre-set threshold for data transmission rate and / or throughput. In some embodiments, the main speaker can detect whether the data transmission rate of the target communication link is lower than its corresponding first quality threshold. And / or, the main speaker can detect whether the throughput of the target communication link is lower than its corresponding first quality threshold. Then, based on the comparison results, it can be determined whether channel conflict exists in the target communication link.

[0153] It should be noted that if users have high requirements for audio playback quality, they can test only one indicator to improve the timeliness of frequency hopping processing; if users have relatively low requirements for audio playback quality, they can test both indicators at the same time to reduce the power consumption generated by frequency hopping processing.

[0154] In some embodiments of this application, S810 includes: the main speaker detecting whether a second communication index of the target communication link is higher than a second quality threshold.

[0155] In some embodiments, the second communication metric includes at least one of bit error rate, packet loss rate, retransmission rate, and transmission delay. The second quality threshold is a preset threshold value for the bit error rate, packet loss rate, retransmission rate, and / or transmission delay. In some embodiments, the main speaker can detect at least one of the bit error rate, packet loss rate, retransmission rate, and transmission delay of the target communication link and compare it with the corresponding second quality threshold. Then, based on the comparison result, it can be determined whether channel conflict exists in the target communication link.

[0156] It should be noted that if users have high requirements for audio playback quality, they can test only one indicator to improve the timeliness of frequency hopping processing; if users have low requirements for audio playback quality, they can test all four indicators at the same time to reduce the power consumption generated by frequency hopping processing; if users have moderate requirements for audio playback quality, they can test two or three of the four indicators at the same time to balance the timeliness of frequency hopping processing and the power consumption generated by frequency hopping processing.

[0157] In some embodiments of this application, S810 includes: the main speaker detecting whether a first communication index of the target communication link is lower than a first quality threshold, and detecting whether a second communication index of the target communication link is higher than a second quality threshold.

[0158] In some embodiments, when the user has relatively low requirements for audio playback quality, the main speaker can detect data transmission rate and / or throughput, as well as at least one of bit error rate, packet loss rate, retransmission rate, and transmission delay. When the user has even lower requirements for audio playback quality, the main speaker can detect three or more of the following metrics of the target communication link: data transmission rate, throughput, bit error rate, packet loss rate, retransmission rate, and transmission delay, and compare them with their corresponding first quality threshold or second quality threshold to determine whether channel conflict exists in the target communication link based on the comparison results.

[0159] S820, the main audio system has determined that there is a channel conflict in the target communication link.

[0160] In some embodiments, if the comparison result is that the audio signal transmission quality of the target communication link does not meet a preset quality threshold, for example, at least one first communication indicator is lower than its first quality threshold, and / or at least one second communication indicator is higher than its second quality threshold, then it is determined that there is a channel conflict in the target communication link.

[0161] S830, the main audio system confirms that there is no channel conflict in the target communication link.

[0162] In some embodiments, if the comparison result is that the audio signal transmission quality of the target communication link meets a preset quality threshold, for example, at least one first communication indicator is not lower than its first quality threshold, and / or at least one second communication indicator is not higher than its second quality threshold, then it is determined that there is no channel conflict in the target communication link.

[0163] In the audio processing methods provided in the above embodiments of this application, the presence of channel conflict in the communication link is detected by the communication quality of the communication link. This avoids the omission problem caused by the judgment of communication frequency or channel identifier, thereby improving the accuracy of channel conflict judgment, thereby improving the rationality of frequency hopping processing, and further improving the stability of audio signal transmission of the audio system.

[0164] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

[0165] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the described embodiments and various different variations of embodiments suitable for specific use considerations.

Claims

1. An audio processing method, comprising: The main speaker acquires the source audio signal and decodes it to generate a decoded audio signal for an independent channel. The main speaker determines the transmission frequency band based on the channel configuration information; the transmission frequency band is used to associate the decoded audio signal of the channel with the corresponding slave speaker of the channel; The main speaker establishes a first communication link with the slave speaker based on the first frequency corresponding to the transmission frequency band, and transmits the decoded audio signal to the slave speaker through the first communication link; The speaker plays audio based on the decoded audio signal; If the main speaker determines that the configuration information of the channel contains a frequency hopping identifier and detects a channel conflict in the first communication link, the main speaker generates a frequency hopping request and sends the frequency hopping request based on the transmission frequency band. The main speaker responds to the frequency hopping request by performing frequency hopping within a preset frequency range and at preset intervals to determine a second frequency. The audio source responds to the frequency hopping request by synchronously performing frequency hopping processing within the preset frequency range at the preset interval frequency to determine the second frequency; The main speaker establishes a second communication link with the slave speaker based on the second frequency, and transmits the decoded audio signal to the slave speaker through the second communication link; The audio player continues to play audio based on the decoded audio signal; The main speaker disconnects the first communication link.

2. The method according to claim 1, wherein, The main speaker disconnects the first communication link, including: The main speaker maintains the first communication link and the second communication link with the slave speaker, and continues to transmit the decoded audio signal through the first communication link and the second communication link; If the main speaker detects that there is no channel conflict on the second communication link, the main speaker disconnects the first communication link and continues to transmit the decoded audio signal through the second communication link.

3. The method according to claim 2, further comprising: After the main speaker maintains the first and second communication links with the slave speaker, and continues to transmit the decoded audio signal through the first and second communication links, If the main speaker detects a channel conflict in the second communication link, the main speaker returns to the steps of generating a frequency hopping request and sending the frequency hopping request based on the transmission frequency band, until there is no channel conflict in the second communication link.

4. The method according to any one of claims 1 to 3, wherein, The main audio detection of whether there is channel conflict in the target communication link includes: The main speaker detects whether the audio signal transmission quality of the target communication link meets a preset quality threshold; the target communication link includes the first communication link or the second communication link; If so, the main speaker determines that there is no channel conflict in the target communication link; If not, the main speaker determines that there is a channel conflict in the target communication link.

5. The method according to claim 4, wherein, The main speaker detects whether the audio signal transmission quality of the target communication link meets a preset quality threshold, including: The main speaker detects whether a first communication indicator of the target communication link is lower than a first quality threshold; the first communication indicator includes data transmission rate and / or throughput. And / or, the main speaker detects whether a second communication metric of the target communication link is higher than a second quality threshold; the second communication metric includes at least one of bit error rate, packet loss rate, retransmission rate, and transmission delay.

6. The method according to claim 1, wherein, When there are multiple secondary speakers, each secondary speaker includes a secondary speaker for a subwoofer channel and at least one secondary speaker for another channel; the other channels include a center channel, a front left channel, a front right channel, a rear left channel, a rear right channel, a side left channel, or a side right channel.

7. The method according to claim 6, wherein, The transmission frequency band of the subwoofer channel includes the 2.4 GHz band; the subwoofer channel is not configured with the frequency hopping identifier; The transmission frequency band of the other channels includes the 5.2GHz band or the 5.8GHz band; the other channels are configured with the frequency hopping identifier.

8. The method according to claim 7, wherein, The preset frequency range includes the frequency range corresponding to the 5.2GHz band and / or the frequency range corresponding to the 5.8GHz band.

9. An electronic device, comprising: The first communicator is configured to communicate with external devices to obtain source audio signals; The second communicator is configured to wirelessly communicate with the speaker; The controller is configured as follows: The source audio signal is decoded to generate a decoded audio signal with independent channels; Based on the configuration information of the audio channel, a transmission frequency band is determined; the transmission frequency band is used to associate the decoded audio signal of the audio channel with the second communicator; The second communicator is controlled to establish a first communication link with the slave speaker based on a first frequency corresponding to the transmission frequency band; the first communication link is used to transmit the decoded audio signal to the slave speaker. If the configuration information of the audio channel contains a frequency hopping identifier, and a channel conflict is detected in the first communication link corresponding to the second communicator, a frequency hopping request is sent based on the transmission frequency band; the frequency hopping request is used to trigger the second communicator and the slave speaker to perform synchronous frequency hopping processing within a preset frequency range and at preset interval frequencies to determine the second frequency; In response to the second frequency received via the second communicator, the second communicator is controlled to establish a second communication link with the slave speaker based on the second frequency; the second communication link is used to transmit the decoded audio signal to the slave speaker; Control the second communicator to disconnect the first communication link.

10. The electronic device according to claim 9, wherein, The controller is also configured to: The second communicator is controlled to maintain the first communication link and the second communication link; both the first communication link and the second communication link are used to continue transmitting the decoded audio signal; If no channel conflict is detected in the second communication link, the second communicator is controlled to disconnect the first communication link and to continue maintaining the second communication link.