Multi-channel audio playing method and device, wireless multi-channel home theater system and storage medium

By dynamically managing the physical address and channel role mapping of the speaker through the USB adapter, the problem of sound field reconstruction difficulties caused by the fixed channels of traditional external speakers is solved, realizing flexible configuration of the sound field and a high-quality listening experience.

CN121099141APending Publication Date: 2025-12-09SHENZHEN SKYWORTH DISPLAY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510998086.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-18
Publication Date
2025-12-09

AI Technical Summary

Technical Problem

The fixed channel configuration of traditional external speakers makes sound field reconstruction difficult, affecting sound field performance and expansion flexibility.

Method used

The speaker's physical address is obtained through the USB adapter, a mapping relationship between the physical address and the channel role is established, and multi-channel PCM audio data is sent to the target speaker via the USB interface to achieve dynamic channel management.

Benefits of technology

It enables channel role allocation to be freed from the constraints of physical location, allowing users to reconstruct the sound field configuration in real time through software commands, thereby improving sound field performance and expansion flexibility, and providing a better immersive listening experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121099141A_ABST
    Figure CN121099141A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a multi-channel audio playing method and device, a wireless multi-channel home theater system and a storage medium. The method comprises the following steps: acquiring a physical address of each loudspeaker box through a USB adapter; responding to the sound channel configuration operation, establishing a sound channel mapping relation between the physical address and the sound channel role, and sending the sound channel mapping relation to the USB adapter; decoding the input sound source data, and outputting multi-channel PCM (Pulse Code Modulation) audio data; and sending the multi-channel PCM audio data to the USB adapter through the USB interface, so that the USB adapter directionally sends the PCM audio data of each channel to the corresponding target loudspeaker box according to the channel mapping relation, and multi-channel audio playing is realized. According to the scheme, the USB protocol is creatively adopted to realize sound channel dynamic management, the architecture design enables sound channel role distribution to be completely free from the constraint of physical positions, and the whole process does not need any physical position change of the sound box. The problem that sound field reconstruction is difficult due to the fact that the physical position of a traditional external sound box is fixed is fundamentally solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the field of audio playing technology, and in particular to a multi-channel audio playing method and device, a wireless multi-channel home theater system, and a storage medium. BACKGROUND

[0002] In order to pursue high-level sound quality performance, modern multimedia playing devices such as televisions generally upgrade the system by connecting external audio components. Users often choose modular devices such as sound walls and satellite boxes to break through the physical limitations of built-in speakers.

[0003] The channel configuration of an external sound box (including left and right surround, sky channel, etc.) is directly related to its physical placement position. Once the sound box position is fixed, the corresponding channel attribute is also determined. If the channel configuration needs to be adjusted, the sound box position must be rearranged to adapt to the new channel setting. This fixed channel configuration method will make it difficult to reconstruct the sound field and will restrict the sound field performance ability and expansion flexibility to some extent, ultimately affecting the actual auditory experience of users. SUMMARY

[0004] In view of this, embodiments of the present application provide a multi-channel audio playing method, device, wireless multi-channel home theater system, and storage medium, which effectively alleviate the above technical problems caused by the fixed channel of an external sound box.

[0005] In a first aspect, embodiments of the present application provide a multi-channel audio playing method. The method is applicable to a playing device in a wireless multi-channel home theater system. The wireless multi-channel home theater system further includes a USB adapter connected to a USB interface of the playing device, and a plurality of sound boxes wirelessly connected to the USB adapter. The method includes:

[0006] Obtaining physical addresses of the sound boxes through the USB adapter;

[0007] In response to a channel configuration operation, establishing a channel mapping relationship between the physical addresses and channel roles, and sending the channel mapping relationship to the USB adapter;

[0008] Decoding input audio source data to output multi-channel PCM audio data;

[0009] Sending the multi-channel PCM audio data to the USB adapter through the USB interface, so that the USB adapter sends each channel PCM audio data to the corresponding target sound box according to the channel mapping relationship, to realize multi-channel audio playing.

[0010] In one possible implementation, sending the multi-channel PCM audio data to the USB adapter through the USB interface includes:

[0011] The multi-channel PCM audio data is converted into an audio protocol through a USB interface;

[0012] The multi-channel PCM audio data converted into the audio protocol is sent to a USB adapter.

[0013] In one possible implementation, the method further comprises:

[0014] Upon detecting that the USB interface is inserted into the USB device, device information of the USB device is acquired; wherein the device information comprises Pid information and Vid information;

[0015] Based on the device information, it is detected whether the USB device is a USB adapter;

[0016] In a case where it is detected that the USB device is the USB adapter, the step of acquiring the physical address of each sound box through the USB adapter is performed.

[0017] In one possible implementation, the method further comprises:

[0018] In a case where it is detected that the USB device is the USB adapter, device access notification information is generated, and sound output is switched to the USB adapter.

[0019] In one possible implementation, after the input sound source data is decoded and the multi-channel PCM audio data is output, the method further comprises:

[0020] The multi-channel PCM audio data is sequentially adjusted according to a preset channel adjustment order.

[0021] In one possible implementation, the method further comprises:

[0022] In response to a sound box parameter adjustment operation on the sound box, a sound box parameter control instruction including the physical address corresponding to the sound box and the adjustment parameter is generated;

[0023] The sound box parameter control instruction is sent to the USB adapter, so that the USB adapter sends the sound box parameter control instruction to the sound box, and triggers the sound box to update the parameter according to the adjustment parameter in the sound box parameter control instruction.

[0024] In one possible implementation, the sound box parameter control instruction is sent to the USB adapter, so that the USB adapter sends the sound box parameter control instruction to the sound box, comprising:

[0025] The sound box parameter control instruction is parsed into a Hid instruction;

[0026] The Hid instruction is sent to the USB adapter through the USB interface, so that the USB adapter acquires the physical address in the Hid instruction and sends the Hid instruction to the sound box corresponding to the physical address.

[0027] In a second aspect, an embodiment of the present application provides a device for multi-channel audio playing, which is suitable for a playing device in a wireless multi-channel home theater system, the wireless multi-channel home theater system further comprising a USB adapter connected with a USB interface of the playing device, and a plurality of sound boxes wirelessly connected with the USB adapter; the device comprises:

[0028] an obtaining module, configured to obtain physical addresses of the sound boxes through the USB adapter;

[0029] a establishing and sending module, configured to, in response to a channel configuration operation, establish a channel mapping relationship between the physical addresses and channel roles, and send the channel mapping relationship to the USB adapter;

[0030] a decoding and outputting module, configured to decode input audio source data and output multi-channel PCM audio data;

[0031] a sending and playing module, configured to send the multi-channel PCM audio data to the USB adapter through the USB interface, so that the USB adapter sends each channel PCM audio data to a corresponding target sound box according to the channel mapping relationship, to realize multi-channel audio playing.

[0032] In a third aspect, an embodiment of the present application provides a wireless multi-channel home theater system, which comprises a playing device, and a USB adapter connected with a USB interface of the playing device, and further comprises a plurality of sound boxes wirelessly connected with the USB adapter.

[0033] The playing device is configured to implement the method for multi-channel audio playing.

[0034] In a fourth aspect, an embodiment of the present application provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the method for multi-channel audio playing.

[0035] The method, device, wireless multi-channel home theater system and storage medium provided by the embodiment of the present application provide a multi-channel audio playing method, device, wireless multi-channel home theater system and storage medium, the method comprising: obtaining the physical address of each sound box through a USB adapter; in response to a channel configuration operation, establishing a channel mapping relationship between the physical address and the channel role, and sending the channel mapping relationship to the USB adapter; decoding the input sound source data and outputting multi-channel PCM audio data; sending the multi-channel PCM audio data to the USB adapter through a USB interface, so that the USB adapter sends each channel PCM audio data to the corresponding target sound box according to the channel mapping relationship, and realizes multi-channel audio playing. The technical solution innovatively uses the USB protocol to realize dynamic management of the channel: the USB adapter identifies the physical address of the sound box, and establishes a dynamically programmable physical address-channel role mapping relationship. This architecture design makes the channel role allocation completely free from the constraints of the physical position, and the user can only use software instructions to reconstruct the sound field configuration in real time, and the entire process does not require any physical position change of the sound box. This software-defined channel management mechanism fundamentally solves the problem of sound field reconstruction difficulty caused by the fixed physical position of the traditional external sound box, significantly improves the sound field performance and expansion flexibility, and finally brings the user a better immersive listening experience. BRIEF DESCRIPTION OF DRAWINGS

[0036] Figure 1 A structural schematic diagram of a wireless multi-channel home theater system provided by the embodiment of the present application;

[0037] Figure 2 A hardware architecture schematic diagram of a USB adapter provided by the embodiment of the present application;

[0038] Figure 3 A hardware architecture schematic diagram of a sound provided by the embodiment of the present application;

[0039] Figure 4 An embodiment flowchart of a multi-channel audio playing method provided by the embodiment of the present application;

[0040] Figure 5 An embodiment flowchart of another multi-channel audio playing method provided by the embodiment of the present application;

[0041] Figure 6 A power supply scene schematic diagram provided by the embodiment of the present application;

[0042] Figure 7 A software flowchart provided by the embodiment of the present application;

[0043] Figure 8 A structural schematic diagram of a Hid instruction provided by the embodiment of the present application;

[0044] Figure 9An embodiment block diagram of a device for multi-channel audio playing provided by the embodiment of the present application is shown in the figure;

[0045] Figure 10 An embodiment structural diagram of an electronic device provided by the embodiment of the present application is shown in the figure. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0047] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0048] For the convenience of understanding the embodiments of the present application, further explanation and description will be made with specific embodiments in combination with the drawings, and the embodiments do not constitute limitation on the embodiments of the present application. Figure 1 An embodiment structural diagram of a wireless multi-channel home theater system is shown in the figure, as Figure 1 shown, the wireless multi-channel home theater system of the embodiment includes a playing device 100, a USB (Universal Serial Bus) adapter 102 connected with a USB interface 101 of the playing device 100, and a plurality of sound boxes 103 wirelessly connected with the USB adapter 102.

[0049] In some embodiments, the playing device 100 can be any one of a television, a mobile terminal, a tablet computer, a computer, a notebook computer, an AR (Augmented Reality) / VR (Virtual Reality) device, etc. configured with a USB interface and having an audio playing function, which is not limited herein.

[0050] In the technical solution, the USB adapter (Dongle) as a core audio expansion device wirelessly connects the playing device and the multi-channel sound box to build a complete wireless multi-channel home theater system for realizing the wireless transmission and playing function of high-fidelity multi-channel audio.

[0051] As Figure 2 shown in the USB adapter hardware architecture diagram, the USB adapter is mainly composed of a USB interface module and a TX (Transmitter) wireless transmission controller. The USB interface module is physically inserted into the USB interface of the playing device to establish a connection, which provides a basic link for subsequent wireless audio transmission.

[0052] The hardware architecture of a sound box is shown in the following figure Figure 3 The core components include RX (Receiver) wireless receiving controller, power amplifier (AMP) and speaker. The TX wireless transmitting controller of the USB adapter and the RX wireless receiving controller of the sound box are connected through the wireless transmission protocol such as WiSA (Wireless Speaker and Audio) or Bluetooth, so as to realize the wireless connection between the USB adapter and each sound box.

[0053] It should be particularly pointed out that, in order to ensure the integrity of the sound channel configuration, the number of sound boxes connected through the wireless mode is required to be not less than the number of sound channel configurations. This design not only ensures the accuracy of sound field reconstruction, but also maintains the consistency of expansion, so that the number of sound boxes is not limited.

[0054] Based on the above description, the embodiment of the present application provides a multi-channel audio playing method, which is suitable for a playing device 100 in a wireless multi-channel home theater system, as shown in the following figure Figure 4 , Figure 4 The embodiment flow chart of the multi-channel audio playing method provided by the embodiment of the present application is shown in the following figure. Figure 4 The flow shown in the figure can include the following steps:

[0055] Step 401: obtaining the physical address of each sound box through the USB adapter;

[0056] The USB adapter actively scans and obtains the physical address (MAC (Media Access Control) address or device ID (Identification)) of the RX wireless receiving controller built in each sound box through the wireless protocol (such as WiSA or Bluetooth), and the physical address is used as the unique identifier of the sound box in the network. This process is usually completed at the initialization time, and it is required to ensure that all sound boxes are in the discoverable mode.

[0057] Step 402: in response to the sound channel configuration operation, establishing the sound channel mapping relationship between the physical address and the sound channel, and sending the sound channel mapping relationship to the USB adapter;

[0058] In the case that the playback device has a user interaction interface (such as an APP (Application)), the user can specify the sound channel roles corresponding to each sound box through the user interaction interface. Specifically, the physical addresses of each sound box are displayed in the form of a visual topology graph on the user interaction interface, and the user binds the physical addresses of each sound box to sound channel roles (such as front left / right, center, etc.) through a sound channel configuration operation (such as a click operation or a drag operation), generates a sound channel mapping relationship, and sends it to the TX wireless transmission controller of the USB adapter for storage through the USB interface.

[0059] In the case that the playback device does not have a user interaction interface, a smart device (such as a mobile phone, computer, tablet computer, etc.) with a user interface can be connected to the playback device, the smart device obtains the physical addresses of each sound box obtained by the playback device, and then uses the user interface to bind the physical addresses to sound channel roles. The process is the same as the binding process of the user interaction interface described above, and will not be described here. Then the smart device sends the sound channel mapping relationship generated after binding to the playback device to trigger the playback device to send the sound channel mapping relationship to the TX wireless transmission controller of the USB adapter for storage.

[0060] In the case that the playback device does not have a user interaction interface, in addition to the above remote configuration through a smart device, other ways can also be used to establish the sound channel mapping relationship, such as offline configuration file injection, hardware interface configuration, firmware level protocol control, etc. This scheme maintains compatibility for various sound channel mapping establishment methods and does not limit the specific implementation form.

[0061] The above-mentioned sound channel mapping relationship is usually stored in the TX wireless transmission controller of the USB adapter in JSON (JavaScript Object Notation) or binary format.

[0062] Step 403, decoding the input sound source data to output multi-channel PCM audio data;

[0063] The playback device decodes the input sound source data (such as Dolby Digital, DTS (Digital Theater System) encoded stream) to convert it into a multi-channel PCM (Pulse Code Modulation) audio data stream. The decoding process needs to support at least 24bit / 192kHz high-resolution audio and maintain the synchronization of each channel PCM audio data. The specific decoding method is not limited in this scheme.

[0064] Step 404, the multi-channel PCM audio data is sent to the USB adapter through the USB interface, so that the USB adapter sends the channel PCM audio data to the corresponding target speaker according to the channel mapping relationship, and multi-channel audio playback is realized.

[0065] The multi-channel PCM audio data is sent to the USB adapter through the USB interface in a batch transmission mode, and the USB adapter splits the channel PCM audio data according to the channel mapping relationship and sends the channel PCM audio data to the target speaker at the corresponding physical address through a wireless protocol to realize multi-channel audio playback.

[0066] It should be noted that the QoS (Quality of Service) mechanism can be used to ensure low delay (<10ms) and anti-interference to ensure sound and picture synchronization.

[0067] The multi-channel audio playback method provided by the embodiment of the application innovatively uses the USB protocol to realize dynamic management of channels: the USB adapter identifies the physical address of the speaker and establishes a dynamically programmable physical address-channel role mapping relationship. This architecture design makes the channel role allocation completely free from the constraints of physical location, and users can only need to use software instructions to reconstruct the sound field configuration in real time, and the entire process does not require any physical position change of the speaker. This software-defined channel management mechanism fundamentally solves the problem of sound field reconstruction difficulty caused by the fixed physical position of the traditional external speaker, significantly improves the sound field performance and expansion flexibility, and finally brings users a better immersive listening experience.

[0068] On the basis of Figure 4 , refer to Figure 5 , Figure 5 The embodiment flowchart of another multi-channel audio playback method provided by the embodiment of the application is shown. Figure 5 The flowchart shown can include the following steps:

[0069] Step 501, when detecting that the USB interface is inserted into the USB device, obtaining device information of the USB device;

[0070] The playback device monitors the USB interface state in real time through the USB event listening mechanism, and when detecting that the device is inserted, the playback device will immediately obtain the descriptor data of the USB device. By analyzing these descriptor data, the key parameters for unique identification of the USB device can be extracted, including Pid (Product Identifier, product identifier) information and Vid (Vendor Identifier, vendor identifier) information, which are two core device information.

[0071] Step 502, detecting whether the USB device is a USB adapter based on the device information;

[0072] A Vid / Pid whitelist database of known USB adapters is stored in advance in the playback device. When it is detected that the Pid information and the Vid information are in the whitelist database, it is indicated that the inserted USB device is a USB adapter. When it is detected that the Pid information and / or the Vid information are not in the whitelist database, it is indicated that the inserted USB device is not a USB adapter.

[0073] Step 503, in the case where it is detected that the USB device is a USB adapter, obtaining the physical addresses of the individual sound boxes through the USB adapter, generating device access notification information, and setting the sound output to switch to the USB adapter.

[0074] If the playback device has a user interaction interface, the device access notification information can be sent to the user interaction interface to prompt the user that a USB adapter is accessed. If the playback device does not have a user interaction interface, the device access notification information can be sent to a smart device in communication connection with the playback device to prompt the user that a USB adapter is accessed, so as to facilitate the user to timely perform subsequent configuration and establishment of the sound channel mapping relationship.

[0075] The audio output switching to the USB adapter refers to that the playback device adjusts the default audio transmission path to be output through the USB interface. Specifically, the playback device modifies the default playback terminal configuration, and changes the multi-channel PCM audio data from being originally output through the built-in sound card to being transmitted to the external USB adapter through the USB interface. This process involves underlying operations such as device enumeration of the audio service manager, default output terminal setting, and loading of the USB audio class driver, which are not described here in detail.

[0076] Step 504, in response to the sound channel configuration operation, establishing a sound channel mapping relationship between the physical address and the sound channel role, and sending the sound channel mapping relationship to the USB adapter.

[0077] The process is the same as that of step 402 in the above embodiment, which is not described here in detail.

[0078] Step 505, decoding the input sound source data to output multi-channel PCM audio data.

[0079] In actual application, the existing scheme sets the decoding link outside the playback device, and the USB adapter performs decoding. In the present scheme, the decoding link is set inside the playback device. Since the USB adapter no longer needs to be responsible for decoding, the hardware scheme is greatly simplified, so the USB adapter no longer needs an additional power supply for power supply, and only uses the USB power supply of the playback device. However, the playback device and the sound box still need to provide independent power supplies for power supply. For ease of understanding, as shown inFigure 6 The power supply scene diagram is shown.

[0080] Step 506, sequentially adjusting the multi-channel PCM audio data according to the preset channel adjustment order;

[0081] In the multi-channel PCM audio data processing flow, the multi-channel PCM audio data must be sequentially adjusted according to the preset channel adjustment order. This operation not only optimizes the data storage structure, but more importantly, ensures that each logical channel (such as left front, center, right surround, etc.) can accurately correspond to the physical output interface, avoiding sound field positioning errors or surround effect failures caused by channel misplacement. For example, adjusting the original collected [L, R, C, LFE] sequence to the [C, LFE, L, R] arrangement required by the sound card.

[0082] Step 507, converting the multi-channel PCM audio data into an audio protocol using a USB interface;

[0083] In the USB audio transmission process, the original multi-channel PCM audio data needs to be protocol-encapsulated according to the USB Audio Class (UAC) specification. The specific implementation includes: 1) According to the channel configuration and parameters defined in the device descriptor, recombine the discrete PCM samples into audio frames that conform to the USB specification; 2) In the synchronous transmission mode, build isochronous data packets, each containing a timestamp and synchronization information; 3) Strictly follow the data format defined by the USB audio interface descriptor to ensure that the USB adapter can correctly parse the multi-channel PCM audio data. This standardized encapsulation enables multi-channel PCM audio data to be reliably transmitted to the external USB adapter via the USB bus.

[0084] Step 508, sending the multi-channel PCM audio data after audio protocol conversion to the USB adapter, so that the USB adapter can direct the PCM audio data of each channel to the corresponding target speaker according to the channel mapping relationship, realizing multi-channel audio playback.

[0085] In order to understand the multi-channel audio playback process, Figure 7 A software flow diagram is shown, and the multi-channel audio playback process is explained from the software flow aspect. Taking the playback device as an example, an Android system with a user interaction interface, the channel audio playback process is briefly explained, and the specific implementation steps include:

[0086] 1. After the UsbHostManager (USB host manager) detects that the USB device is inserted, it queries the Pid and Vid, judges whether it is a USB adapter, and then notifies the AudioPolicyManager (audio policy manager) upward;

[0087] 2. The AudioPolicyManager notifies the middleware layer that a legal USB adapter is inserted, the middleware layer notifies the APP layer, and simultaneously switches the sound output to the USB adapter and obtains the physical addresses of the various sound boxes to establish a sound channel mapping relationship between the physical addresses and the sound channel roles;

[0088] 3. The AudioHal (Audio Hardware Abstraction Layer) obtains the decoded multi-channel PCM audio data from the system bottom layer, adjusts the data according to the self-defined sound channel order, and provides the adjusted multi-channel PCM audio data to the UsbAudioHal (Usb Audio Hardware Abstraction Layer);

[0089] 4. The UsbAudioHal provides the multi-channel PCM audio data to the USB adapter through a standard interface, and the USB adapter distributes the PCM audio data of each sound channel to the sound boxes according to the physical addresses of the sound boxes.

[0090] In the software implementation architecture of the audio playback device, the Apple system and the Harmony system follow similar logical processes, and the main difference lies in the naming and implementation of the system-level modules. This design difference is essentially a technical selection problem of the operating system ecology and does not affect the implementation logic of the basic audio function, so it will not be described in detail here.

[0091] In actual application, the playback device can also control the sound box parameters (such as gain, light effect) of the sound box through the USB adapter. Specifically, steps A1 to A2 can be implemented:

[0092] Step A1: In response to the sound box parameter adjustment operation for the sound box, a sound box parameter control instruction including the physical address corresponding to the sound box and the adjustment parameter is generated;

[0093] When the playback device is equipped with a user interaction interface, the user can adjust the sound box parameters through the following steps:

[0094] 1. Enter the sound box parameter setting interface;

[0095] 2. Select the physical address of the sound box that needs to be adjusted;

[0096] 3. Modify the specific parameters in the [Detailed Information] tab drop-down menu. After that, the playback device will automatically generate a sound box parameter control instruction containing the physical address and the adjustment parameter.

[0097] When the playback device is not equipped with a user interaction interface, the smart device connected in communication with the playback device can be used to configure the audio parameters of the above process to generate the sound box parameter control instruction and send the sound box parameter control instruction to the playback device.

[0098] Step A2, the sound box parameter control instruction is sent to the USB adapter, so that the USB adapter sends the sound box parameter control instruction to the sound box, and triggers the sound box to update the parameters according to the adjustment parameters in the sound box parameter control instruction.

[0099] The process of sending the sound box parameter control instruction to the USB adapter to make the USB adapter send the sound box parameter control instruction to the sound box specifically includes: parsing the sound box parameter control instruction into a Hid (Human Interface Device) instruction; sending the Hid instruction to the USB adapter through the USB interface, so that the USB adapter obtains the physical address in the Hid instruction and sends the Hid instruction to the sound box corresponding to the physical address.

[0100] The original sound box parameter control instruction is reorganized according to the format defined by the Hid report descriptor to generate a standard Hid report package containing a physical address and an adjustment parameter. In order to facilitate understanding, Figure 8 A structural diagram of a Hid instruction is shown as Figure 8 In the above, Data0 and Data1 indicate the type of the instruction, such as filling MSG (Message) type in Data0 and filling MSGID in Data1; Data2-10 are specific values of the instruction, including gain value, light effect information, physical address, etc. It should be noted that the above Hid instruction is a 16-bit instruction with a maximum length of 11. In actual application, the Hid instruction can be set according to actual needs, which is not limited here.

[0101] If the process is described from the software flow, see Figure 7 The middleware layer issues the sound box parameter control instruction to the UsbManager (Usb Manager), the UsbManager parses the sound box parameter control instruction into a self-defined Hid instruction, outputs it to the USB adapter through a standard interface, and finally the USB adapter sends the Hid instruction to the sound box wirelessly to trigger the sound box to update the parameters according to the adjustment parameters in the sound box parameter control instruction.

[0102] Referring to Figure 9 A multi-channel audio playing device provided by the embodiment of the present application, which is suitable for a playing device in a wireless multi-channel home theater system. The wireless multi-channel home theater system further comprises a USB adapter connected with a USB interface of the playing device, and a plurality of sound boxes wirelessly connected with the USB adapter. The device comprises:

[0103] The obtaining module 901 is configured to obtain the physical addresses of the sound boxes through the USB adapter;

[0104] The establishing sending module 902 is configured to, in response to a channel configuration operation, establish a channel mapping relationship between a physical address and a channel role, and send the channel mapping relationship to the USB adapter;

[0105] The decoding output module 903 is configured to decode the input sound source data and output multi-channel PCM audio data.

[0106] The sending playing module 904 is configured to send the multi-channel PCM audio data to the USB adapter through the USB interface, so that the USB adapter sends each channel PCM audio data to a corresponding target sound box according to the channel mapping relationship, and realizes multi-channel audio playing.

[0107] The device for multi-channel audio playing provided by the embodiment of the application innovatively uses the USB protocol to realize dynamic management of channels: the USB adapter identifies the physical address of the sound box, and establishes a dynamically programmable physical address-channel role mapping relationship, so that the channel role allocation is completely free from the constraint of the physical position, and the user can only need to use software instructions to reconstruct the sound field configuration in real time, and the whole process does not need any physical position change of the sound box. The software-defined channel management mechanism fundamentally solves the problem of sound field reconstruction difficulty of the traditional external sound box caused by the fixed physical position, significantly improves the sound field performance and expansion flexibility, and finally brings a better immersive listening experience to the user.

[0108] Figure 10 A structural schematic diagram of an electronic device provided by the embodiment of the application is shown in the figure, Figure 10 The electronic device 1200 shown in the figure includes at least one processor 1201, a memory 1202, at least one network interface 1204 and other user interfaces 1203. The various components in the electronic device 1200 are coupled together through a bus system 1205. It can be understood that the bus system 1205 is used to realize the connection and communication between the components. In addition to the data bus, the bus system 1205 also includes a power bus, a control bus and a status signal bus. However, for the purpose of clear illustration, all kinds of buses are marked as the bus system 1205 in the figure. Figure 10

[0109] The user interface 1203 can include a display, a keyboard or a clicking device (for example, a mouse, a trackball, a touchpad or a touch screen, etc.).

[0110] ​It is to be appreciated that the memory 1202 in the embodiments of the present application can be a volatile memory or a nonvolatile memory, or can include both volatile and nonvolatile memory. Among them, the nonvolatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM) used as an external cache. By way of example, and not limitation, many forms of RAM can be used, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synch link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 1202 described herein is intended to include, without being limited to, these and any other suitable types of memory.

[0111] In some embodiments, the memory 1202 stores the following elements, executable units or data structures, or a subset of them, or an extended set of them: an operating system 12021 and an application program 12022.

[0112] Among them, the operating system 12021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application program 12022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., for implementing various application services. The program for implementing the method embodiments of the present application can be included in the application program 12022.

[0113] In the embodiments of the present application, by calling the programs or instructions stored in the memory 1202, specifically, the programs or instructions stored in the application program 12022, the processor 1201 is configured to execute the method steps provided by the method embodiments, for example, including:

[0114] Obtaining the physical addresses of the sound boxes through the USB adapter;

[0115] In response to the sound channel configuration operation, establishing a sound channel mapping relationship between the physical addresses and the sound channels, and sending the sound channel mapping relationship to the USB adapter;

[0116] Decoding the input sound source data to output multi-channel PCM audio data;

[0117] Sending the multi-channel PCM audio data to the USB adapter through the USB interface, so that the USB adapter sends each sound channel PCM audio data to the corresponding target sound box according to the sound channel mapping relationship, to realize multi-channel audio playback.

[0118] In one possible implementation, sending the multi-channel PCM audio data to the USB adapter through the USB interface includes:

[0119] Converting the multi-channel PCM audio data into an audio protocol using the USB interface;

[0120] Sending the multi-channel PCM audio data converted into the audio protocol to the USB adapter.

[0121] In one possible implementation, the method further includes:

[0122] Upon detecting that the USB interface is inserted into the USB device, obtaining device information of the USB device; wherein the device information includes Pid information and Vid information;

[0123] Detecting whether the USB device is a USB adapter based on the device information;

[0124] In the case where it is detected that the USB device is a USB adapter, performing the step of obtaining the physical addresses of the sound boxes through the USB adapter.

[0125] In one possible implementation, the method further includes:

[0126] In the case where it is detected that the USB device is a USB adapter, generating device access notification information and setting the sound output to switch to the USB adapter.

[0127] In one possible implementation, after decoding the input sound source data to output multi-channel PCM audio data, the method further includes:

[0128] Adjusting the multi-channel PCM audio data in sequence according to a preset sound channel adjustment sequence.

[0129] In one possible implementation, the method further includes:

[0130] In response to the sound box parameter adjustment operation for the sound box, a sound box parameter control instruction including the physical address corresponding to the sound box and the adjustment parameter is generated;

[0131] The sound box parameter control instruction is sent to the USB adapter, so that the USB adapter sends the sound box parameter control instruction to the sound box, triggering the sound box to update the parameters according to the adjustment parameter in the sound box parameter control instruction.

[0132] In one possible implementation, sending the sound box parameter control instruction to the USB adapter, so that the USB adapter sends the sound box parameter control instruction to the sound box, includes:

[0133] The sound box parameter control instruction is parsed into a Hid instruction;

[0134] The Hid instruction is sent to the USB adapter through the USB interface, so that the USB adapter acquires the physical address in the Hid instruction and sends the Hid instruction to the sound box corresponding to the physical address.

[0135] The method disclosed in the above embodiments of the application can be applied to the processor 1201 or implemented by the processor 1201. The processor 1201 can be an integrated circuit chip having a signal processing capability. In the implementation process, each step of the above method can be completed by an integrated logic circuit or an instruction in the form of software in the processor 1201. The processor 1201 described above can be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Each method, step and logic block disclosed in the embodiments of the application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the application can be directly embodied as a hardware code processor for execution, or a combination of hardware and software units in the code processor for execution. The software unit can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register or other mature storage medium in the art. The storage medium is located in the storage 1202, and the processor 1201 reads the information in the storage 1202 and combines the hardware to complete the steps of the above method.

[0136] It can be understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing units can be implemented within one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSP Devices; DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof.

[0137] For software implementation, the techniques described herein can be implemented with a processing unit that executes program components or modules. The software code can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.

[0138] The electronic device provided by the embodiments can be an electronic device as shown in Figure 10 , can perform all steps of the method for multi-channel audio playing as described in Figures 4-5 , and thus achieve the technical effects of the method for multi-channel audio playing as described in Figures 4-5 . For brevity, details are not repeated here. Figures 4-5

[0139] The embodiments of the present application further provide a storage medium (computer readable storage medium). The storage medium stores one or more programs. The storage medium can include a volatile memory, such as a random access memory, and can also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk, or a solid-state disk. The storage medium can also include a combination of the above-mentioned types of memories.

[0140] When the one or more programs stored in the storage medium can be executed by one or more processors to implement the method for multi-channel audio playing.

[0141] The processor is configured to execute the program for multi-channel audio playing stored in the memory to implement the steps of the method for multi-channel audio playing.

[0142] The physical address of each sound box is obtained through the USB adapter;

[0143] In response to the channel configuration operation, a channel mapping relationship between the physical address and the channel is established, and the channel mapping relationship is sent to the USB adapter.​

[0144] decoding the input sound source data to output multi-channel PCM audio data;

[0145] sending the multi-channel PCM audio data to the USB adapter through the USB interface, so that the USB adapter sends the PCM audio data of each channel to the corresponding target speaker according to the channel mapping relationship, to realize multi-channel audio playback.

[0146] In one possible implementation, sending the multi-channel PCM audio data to the USB adapter through the USB interface comprises:

[0147] converting the multi-channel PCM audio data into an audio protocol using the USB interface;

[0148] sending the multi-channel PCM audio data converted into the audio protocol to the USB adapter.

[0149] In one possible implementation, the method further comprises:

[0150] when detecting that the USB interface is inserted into the USB device, obtaining device information of the USB device; wherein the device information comprises Pid information and Vid information;

[0151] detecting whether the USB device is the USB adapter based on the device information;

[0152] when detecting that the USB device is the USB adapter, performing the step of obtaining the physical address of each speaker through the USB adapter.

[0153] In one possible implementation, the method further comprises:

[0154] when detecting that the USB device is the USB adapter, generating device access notification information and setting sound output switching to the USB adapter.

[0155] In one possible implementation, after decoding the input sound source data to output multi-channel PCM audio data, the method further comprises:

[0156] sequentially adjusting the multi-channel PCM audio data according to a preset channel adjustment order.

[0157] In one possible implementation, the method further comprises:

[0158] in response to a speaker parameter adjustment operation for the speaker, generating a speaker parameter control instruction comprising the physical address corresponding to the speaker and the adjustment parameter;

[0159] The sound box parameter control instruction is sent to the USB adapter, so that the USB adapter sends the sound box parameter control instruction to the sound box, and triggers the sound box to perform parameter updating according to the adjustment parameter in the sound box parameter control instruction.

[0160] In one possible implementation, sending the sound box parameter control instruction to the USB adapter, so that the USB adapter sends the sound box parameter control instruction to the sound box, includes:

[0161] The sound box parameter control instruction is parsed into a Hid instruction;

[0162] The Hid instruction is sent to the USB adapter through the USB interface, so that the USB adapter acquires a physical address in the Hid instruction, and sends the Hid instruction to the sound box corresponding to the physical address.

[0163] Those skilled in the art should further appreciate that the units and algorithm steps of each example described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, each example has been described in general terms above as including functional groups and steps. Whether such functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0164] The steps of the method or algorithm described in connection with the embodiments disclosed herein can be implemented in hardware, software executed by a processor, or a combination of both. The software module can be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0165] The above specific implementation further details the purpose, technical solution and beneficial effects of the present application. It should be understood that the above description is only a specific implementation of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A method for playing multi-channel audio, characterized in that, The method is applicable to playback devices in a wireless multi-channel home theater system, wherein the wireless multi-channel home theater system further includes a USB adapter connected to the USB interface of the playback device, and multiple speakers wirelessly connected to the USB adapter; the method includes: The physical address of each speaker is obtained through the USB adapter; In response to a channel configuration operation, establish a channel mapping relationship between the physical address and the channel role, and send the channel mapping relationship to the USB adapter; Decode the input audio source data and output multi-channel PCM audio data; The multi-channel PCM audio data is sent to the USB adapter via the USB interface, so that the USB adapter can send the PCM audio data of each channel to the corresponding target speaker according to the channel mapping relationship, thereby realizing multi-channel audio playback.

2. The method according to claim 1, characterized in that, The step of sending the multi-channel PCM audio data to the USB adapter via the USB interface includes: The multi-channel PCM audio data is converted to an audio protocol using the USB interface. The multi-channel PCM audio data, after audio protocol conversion, is sent to the USB adapter.

3. The method according to claim 1, characterized in that, The method further includes: When a USB device is detected inserted into the USB interface, the device information of the USB device is obtained; wherein, the device information includes Pid information and Vid information; Based on the device information, detect whether the USB device is the USB adapter; If the USB device is detected to be the USB adapter, the step of obtaining the physical address of each speaker through the USB adapter is performed.

4. The method according to claim 3, characterized in that, The method further includes: If the USB device is detected to be the USB adapter, a device access notification is generated, and the audio output is switched to the USB adapter.

5. The method according to claim 1, characterized in that, After decoding the input audio source data and outputting multi-channel PCM audio data, the method further includes: The multi-channel PCM audio data is sequentially adjusted according to the preset channel adjustment order.

6. The method according to claim 1, characterized in that, The method further includes: In response to a speaker parameter adjustment operation for the speaker, a speaker parameter control command is generated, including the physical address of the speaker and the adjustment parameters. The speaker parameter control command is sent to the USB adapter, so that the USB adapter sends the speaker parameter control command to the speaker, triggering the speaker to update its parameters according to the adjustment parameters in the speaker parameter control command.

7. The method according to claim 6, characterized in that, Sending the speaker parameter control command to the USB adapter, so that the USB adapter sends the speaker parameter control command to the speaker, includes: The speaker parameter control commands are parsed into Hid commands; The Hid command is sent to the USB adapter via the USB interface, so that the USB adapter obtains the physical address in the Hid command and sends the Hid command to the speaker corresponding to the physical address.

8. A device for multi-channel audio playback, characterized in that, The device is suitable for a playback device in a wireless multi-channel home theater system. The wireless multi-channel home theater system also includes a USB adapter connected to the USB interface of the playback device, and multiple speakers wirelessly connected to the USB adapter. The device includes: The acquisition module is used to acquire the physical address of each speaker through the USB adapter; A sending module is established to respond to channel configuration operations, establish a channel mapping relationship between the physical address and the channel role, and send the channel mapping relationship to the USB adapter; The decoding output module is used to decode the input audio source data and output multi-channel PCM audio data; The playback module is used to send the multi-channel PCM audio data to the USB adapter via the USB interface, so that the USB adapter can send the PCM audio data of each channel to the corresponding target speaker according to the channel mapping relationship, thereby realizing multi-channel audio playback.

9. A wireless multi-channel home theater system, characterized in that, The wireless multi-channel home theater system includes: a playback device, a USB adapter connected to the USB interface of the playback device, and multiple speakers wirelessly connected to the USB adapter; The playback device is used to implement the multi-channel audio playback method according to any one of claims 1 to 7.

10. A storage medium, characterized in that, The storage medium stores one or more programs, which can be executed by one or more processors to implement the multi-channel audio playback method according to any one of claims 1 to 7.