Sound field rendering method and device, equipment and medium
By obtaining the speaker layout type and selecting the corresponding channel mapping strategy, the problem of poor sound field rendering effect caused by the inability to place the speaker according to the standard layout is solved, and the optimized sound effect is achieved when the speaker is placed arbitrarily.
Patent Information
- Application Number
- CN202411951011.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-03-28
AI Technical Summary
In a home theater environment, speakers cannot be placed in accordance with the standard layout, resulting in poor sound field rendering.
By obtaining the position coordinates of the target speaker relative to the audio-visual device, determining the layout type of the speaker, and selecting the corresponding channel mapping strategy according to the layout type, allocating the audio signal to the channels of the speaker and audio-visual device, and finally performing sound field rendering.
Regardless of the placement of the speaker, through the classification layout and the selection of appropriate channel mapping strategies, the sound effect can be optimized to meet the playback needs of non-standard layouts.
Smart Images

Figure CN119729335A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sound field rendering, and in particular to a sound field rendering method, device, equipment and medium. Background Art
[0002] Standard home theater speakers have standard placement requirements, but in actual use, they are often restricted by home space and cannot be placed according to the standard layout. At this time, if the user places the speakers in a non-standard position or even randomly, how to ensure the sound field rendering effect is a technical problem that technicians in this field need to solve urgently. Summary of the invention
[0003] The purpose of the present invention is to provide a sound field rendering method, device, equipment and medium, which can solve the effect problem when the sound box is placed arbitrarily.
[0004] In order to solve the above technical problems, the present invention provides a sound field rendering method, the method comprising:
[0005] Obtain the position coordinates of the target speaker relative to the audio-visual device;
[0006] Obtaining a layout type of the target speaker according to the position coordinates of the target speaker relative to the audio-visual device;
[0007] Based on the layout type of the target speakers, a corresponding channel mapping strategy is selected to distribute the audio signal to the target speakers and the channels of the audio-visual device accordingly;
[0008] Sound field rendering is performed after the audio signal distribution is completed.
[0009] In a first aspect, in the sound field rendering method provided by the present invention, when the target speakers include a first speaker and a second speaker, obtaining the layout type of the target speakers according to the position coordinates of the target speakers relative to the audio-visual device includes:
[0010] Determine the positional relationship between the first speaker and the second speaker and the emperor's seat respectively according to the positional coordinates of the first speaker and the second speaker relative to the audio-visual device;
[0011] If the first speaker and the second speaker are arranged on both sides of the emperor's seat and are symmetrical to each other, it is determined that the layout type of the target speaker is a quasi-standard layout;
[0012] If the first speaker and the second speaker are arranged on both sides of the emperor's seat and are asymmetrical, then the layout type of the target speaker is determined to be a free layout;
[0013] If the first speaker and the second speaker are located on the same side of the emperor's seat, it is determined that the layout type of the target speaker is a deformed layout.
[0014] On the other hand, in the above-mentioned sound field rendering method provided by the present invention, based on the layout type of the target speaker, a corresponding channel mapping strategy is selected to distribute the audio signal to the target speaker and the channel of the audio-visual device accordingly, including:
[0015] When the layout type of the target speaker is a quasi-standard layout, a free layout, or a deformed layout, the left channel data in the audio signal is transmitted to the left channel of the audio-visual device, the right channel data in the audio signal is transmitted to the right channel of the audio-visual device, the center channel data in the audio signal is transmitted to the center channel of the audio-visual device, and the low-frequency channel data in the audio signal is transmitted to the woofer;
[0016] If the audiovisual device does not have a center channel, transmitting half of the center channel data in the audio signal to the left channel of the audiovisual device, and transmitting the other half of the center channel data in the audio signal to the right channel of the audiovisual device;
[0017] If there is no subwoofer, the low-frequency channel data in the audio signal is discarded.
[0018] On the other hand, in the above-mentioned sound field rendering method provided by the present invention, based on the layout type of the target speaker, a corresponding channel mapping strategy is selected to distribute the audio signal to the target speaker and the channel of the audio-visual device accordingly, including:
[0019] When the layout type of the target speakers is a quasi-standard layout, one channel of surround channel data in the audio signal is transmitted to the first speaker, and another channel of surround channel data in the audio signal is transmitted to the second speaker, and corresponding gain processing is performed on one channel of surround channel data according to the distance between the first speaker and the audio-visual device, and corresponding gain processing is performed on the other channel of surround channel data according to the distance between the second speaker and the audio-visual device.
[0020] On the other hand, in the above-mentioned sound field rendering method provided by the present invention, based on the layout type of the target speaker, a corresponding channel mapping strategy is selected to distribute the audio signal to the target speaker and the channel of the audio-visual device accordingly, including:
[0021] When the layout type of the target speakers is free layout, setting the speakers close to the audio-visual device as reference speakers;
[0022] Performing corresponding gain processing on one surround sound channel data according to the distance between the reference sound box and the audio-visual device;
[0023] The other surround channel data is divided into first surround channel data and second surround channel data according to a set ratio, and the first surround channel data is transmitted to a non-reference speaker, and the second surround channel data is transmitted to a left channel or a right channel of the audio-visual device.
[0024] On the other hand, in the above-mentioned sound field rendering method provided by the present invention, based on the layout type of the target speaker, a corresponding channel mapping strategy is selected to distribute the audio signal to the target speaker and the channel of the audio-visual device accordingly, including:
[0025] When the layout type of the target sound box is an abnormal layout, decorrelation processing is performed on one surround channel data and another surround channel data;
[0026] One surround channel data after decorrelation processing is transmitted to the first speaker, and another surround channel data after decorrelation processing is transmitted to the second speaker.
[0027] On the other hand, in the sound field rendering method provided by the present invention, obtaining the position coordinates of the target sound box relative to the audio-visual device includes:
[0028] According to the position of the speaker and the position of the audio-visual device, a speaker positioning algorithm is used to obtain the position coordinates of the speaker relative to the audio-visual device.
[0029] In order to solve the above technical problems, the present invention further provides a sound field rendering device, the device comprising:
[0030] A position coordinate acquisition module, used to acquire the position coordinates of the target speaker relative to the audio-visual device;
[0031] A layout type determination module, used to obtain the layout type of the target speaker according to the position coordinates of the target speaker relative to the audio-visual device;
[0032] A channel mapping selection module, configured to select a corresponding channel mapping strategy based on the layout type of the target speaker, so as to distribute the audio signal to the target speaker and the channel of the audio-visual device accordingly;
[0033] The sound field rendering module is used to perform sound field rendering after the audio signal distribution is completed.
[0034] In order to solve the above technical problems, the present invention further provides a sound field rendering device, the device comprising:
[0035] Memory for storing computer programs;
[0036] The processor is used to implement the steps of the above-mentioned sound field rendering method when executing the computer program.
[0037] In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above sound field rendering method are implemented.
[0038] It can be seen from the above technical scheme that the present invention provides a sound field rendering method, which includes: obtaining the position coordinates of the target speaker relative to the audio-visual device; obtaining the layout type of the target speaker according to the position coordinates of the target speaker relative to the audio-visual device; based on the layout type of the target speaker, selecting the corresponding channel mapping strategy to distribute the audio signal to the target speaker and the channel of the audio-visual device accordingly; and performing sound field rendering after the audio signal distribution is completed.
[0039] The beneficial effect of the present invention is that the above-mentioned sound field rendering method provided by the present invention first obtains the position coordinates of the target speaker relative to the audio-visual device, obtains the layout type of the target speaker according to the position coordinates, and then selects the channel mapping strategy corresponding to the target speaker layout type, and distributes the audio signal to the target speaker and the channel of the audio-visual device accordingly; after the audio signal distribution is completed, the sound field rendering is performed. In this way, by classifying the speaker layout, different channel mapping strategies are adopted for different categories of layouts, ensuring that when the user places the speaker at any position in the room, the audio signal can be reasonably distributed through the corresponding channel mapping strategy, and the final sound effect can be optimized, thereby being able to meet the playback effect requirements of non-standard layouts, and solving the effect problem when the speaker is placed arbitrarily.
[0040] In addition, the present invention also provides a corresponding sound field rendering device, a sound field rendering equipment and a computer-readable storage medium for the sound field rendering method, which have the same or corresponding technical features as the above-mentioned sound field rendering method and have the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 A flowchart of a sound field rendering method provided by an embodiment of the present invention;
[0043] Figure 2 One of the schematic diagrams of a quasi-standard layout provided by an embodiment of the present invention;
[0044] Figure 3 A second schematic diagram of a quasi-standard layout provided in an embodiment of the present invention;
[0045] Figure 4 One of the schematic diagrams of the free layout provided by the embodiment of the present invention;
[0046] Figure 5 A second schematic diagram of a free layout provided by an embodiment of the present invention;
[0047] Figure 6 One of the schematic diagrams of the deformed layout provided by the embodiment of the present invention;
[0048] Figure 7 The second schematic diagram of the deformed layout provided by the embodiment of the present invention;
[0049] Figure 8 One of the schematic diagrams of the channel mapping strategy corresponding to the quasi-standard layout provided in an embodiment of the present invention;
[0050] Fig. 9 A second schematic diagram of a channel mapping strategy corresponding to a quasi-standard layout provided in an embodiment of the present invention;
[0051] Fig.10 A schematic diagram of a channel mapping strategy corresponding to a free layout provided in an embodiment of the present invention;
[0052] Fig.11 A schematic diagram of a channel mapping strategy corresponding to a deformed layout provided in an embodiment of the present invention;
[0053] Fig.12 A schematic diagram of the structure of a sound field rendering device provided by an embodiment of the present invention;
[0054] Fig.13 A schematic diagram of the structure of a sound field rendering device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0055] 5.1 channel refers to a multi-channel format arranged according to the left channel (L), right channel (R), center channel (C), low-frequency channel (LFE), left surround (LS), and right surround (RS). When a 5.1 channel speaker plays 5.1 channel content, the audio data of each channel is played by its corresponding physical speaker. Although 5.1 channel speakers have standard placement requirements, it is difficult for an average home space to meet the standard placement requirements. In this way, various non-standard speaker placement positions appear, but when using non-standard speaker placement positions to play 5.1 channel data, the sound effect obtained is often unsatisfactory. In order to solve this problem, the present invention provides a sound field rendering method that can meet the playback effect requirements when the speakers are placed in a non-standard manner.
[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Figure 1 A flowchart of a sound field rendering method provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method includes:
[0058] S101, obtaining the position coordinates of a target speaker relative to an audio-visual device.
[0059] It should be noted that the speaker is responsible for providing high-quality audio output, and a surround sound effect is created through the arrangement of multiple channels of speakers. The audio-visual device (such as a television) is responsible for providing clear and realistic video images, which cooperate with the audio of the speaker to present a good audio-visual effect to the audience. When executing step S101, the present invention needs to obtain the placement position of the target speaker relative to the audio-visual device (such as a television). The number of target speakers here is not limited.
[0060] S102: Obtain a layout type of the target speaker according to the position coordinates of the target speaker relative to the audio-visual device.
[0061] It should be pointed out that the layout type of the target speaker refers to the placement and position arrangement of the speaker in a space, that is, the present invention classifies the current speaker placement. The local types of the target speakers of the present invention may include quasi-standard layout, free layout and deformed layout. These layout types mainly involve the positional relationship between the target speaker and the emperor's seat. The emperor's seat is an ideal position to enjoy the best audio-visual effects. The audience can feel the sound coming from all directions in the emperor's seat. The quasi-standard layout refers to the layout of two external speakers that are symmetrical with respect to the emperor's seat, the free layout refers to the layout of two external speakers that are arranged on both sides of the emperor's seat but are asymmetrical, and the deformed layout refers to the layout of two external speakers that are placed on the same side of the emperor's seat.
[0062] S103 . Based on the layout type of the target speakers, select a corresponding channel mapping strategy to distribute the audio signal to the target speakers and the channels of the audio-visual device accordingly.
[0063] It should be noted that the present invention designs a corresponding channel mapping strategy for the layout type of the speaker, that is, different layout types correspond to different channel mapping strategies. After determining the layout type, the corresponding channel mapping strategy can be directly selected to complete the distribution of audio signals, specifically, the channels of the speaker and the audio-visual device.
[0064] S104: After the audio signal distribution is completed, sound field rendering is performed.
[0065] In the above-mentioned sound field rendering method provided by the embodiment of the present invention, the position coordinates of the target speaker relative to the audio-visual device are first obtained, and the layout type of the target speaker is obtained according to the position coordinates, and then the channel mapping strategy corresponding to the target speaker layout type is selected to distribute the audio signal to the target speaker and the channel of the audio-visual device accordingly; after the audio signal distribution is completed, the sound field rendering is performed. In this way, by classifying the speaker layout, different channel mapping strategies are adopted for different categories of layouts, ensuring that when the user places the speaker at any position in the room, the audio signal can be reasonably distributed through the corresponding channel mapping strategy to achieve the optimization of the final sound effect, thereby being able to meet the playback effect requirements of non-standard layouts, and solving the effect problem when the speaker is placed arbitrarily.
[0066] Furthermore, in a specific implementation, in the sound field rendering method provided in an embodiment of the present invention, step S101 obtains the position coordinates of the target speaker relative to the audio-visual device, which may specifically include: according to the position of the speaker and the position of the audio-visual device, using a speaker positioning algorithm to obtain the position coordinates of the speaker relative to the audio-visual device.
[0067] In implementation, the present invention can first obtain the position of the speaker and the position of the audio-visual device, and then obtain the placement coordinates of the speaker relative to the audio-visual device through a speaker positioning algorithm.
[0068] Further, in a specific implementation, in the above-mentioned sound field rendering method provided by an embodiment of the present invention, when the target speaker includes a first speaker and a second speaker, step S102 obtains the layout type of the target speaker according to the position coordinates of the target speaker relative to the audio-visual device, which may specifically include: determining the position relationship between the first speaker and the second speaker and the emperor's seat respectively according to the position coordinates of the first speaker and the second speaker relative to the audio-visual device; if the first speaker and the second speaker are arranged on both sides of the emperor's seat and are symmetrical to each other, then the layout type of the target speaker is determined to be a quasi-standard layout; if the first speaker and the second speaker are arranged on both sides of the emperor's seat and are asymmetrical, then the layout type of the target speaker is determined to be a free layout; if the first speaker and the second speaker are located on the same side of the emperor's seat, then the layout type of the target speaker is determined to be a deformed layout.
[0069] In implementation, Figure 2 and Figure 3As shown, there is an audience Actor at the emperor's position, and the first speaker 1 and the second speaker 2 are located on both sides of the emperor's position and are symmetrical, so this is a standard layout. Figure 4 and Figure 5 As shown, the first speaker 1 and the second speaker 2 are located on both sides of the emperor's seat but are asymmetrical, so this is a free layout. Figure 6 and Figure 7 As shown, the first speaker 1 and the second speaker 2 are both located on the same side of the emperor's seat, so this is an abnormal layout.
[0070] Further, in a specific implementation, in the above-mentioned sound field rendering method provided by an embodiment of the present invention, step S103 selects a corresponding channel mapping strategy based on the layout type of the target speaker to distribute the audio signal to the target speaker and the channel of the audio-visual device accordingly, which may specifically include: when the layout type of the target speaker is a quasi-standard layout, a free layout, or a deformed layout, the left channel data in the audio signal is transmitted to the left channel of the audio-visual device, the right channel data in the audio signal is transmitted to the right channel of the audio-visual device, the center channel data in the audio signal is transmitted to the center channel of the audio-visual device, and the low-frequency channel data in the audio signal is transmitted to the subwoofer; if the audio-visual device has no center channel, half of the center channel data in the audio signal is transmitted to the left channel of the audio-visual device, and the other half of the center channel data in the audio signal is transmitted to the right channel of the audio-visual device; if there is no subwoofer, the low-frequency channel data in the audio signal is discarded.
[0071] In implementation, the present invention adopts different channel mapping strategies for different speaker layouts. The processing strategies for left channel L data, right channel R data, center channel C data, and low frequency channel LFE data can be similar; the processing strategies for left surround channel LS data and right surround channel RS data can be different. Figure 8 As shown, the present invention can specifically provide 100% of the left channel L data, the right channel R data, and the center channel C data to the left channel L, the right channel R, and the center channel C of the television. Fig. 9 As shown in the figure, when the TV does not have a center channel C, the center channel C data is divided into 50% for the left channel L and 50% for the right channel R. Figure 8 As shown in FIG. 1 , when there is a subwoofer, the bass channel LFE data is given to the subwoofer. Fig. 9 As shown, when there is no subwoofer, the bass channel data is discarded.
[0072] Further, in a specific implementation, in the sound field rendering method provided in an embodiment of the present invention, step S103 selects a corresponding channel mapping strategy based on the layout type of the target speaker to distribute the audio signal to the channels of the target speaker and the audio-visual device accordingly. Specifically, it may include: when the layout type of the target speaker is a quasi-standard layout, transmitting one surround channel data in the audio signal to the first speaker, transmitting another surround channel data in the audio signal to the second speaker, and performing corresponding gain processing on one surround channel data according to the distance between the first speaker and the audio-visual device, and performing corresponding gain processing on the other surround channel data according to the distance between the second speaker and the audio-visual device.
[0073] In implementation, when the layout type of the target speaker is a standard layout, such as Figure 8 and Fig. 9 As shown, 100% of the left surround channel LS data is given to the first speaker 1, and 100% of the right surround channel RS data is given to the second speaker 2. According to the distance between the external speakers and the TV, a certain gain processing will be performed on the left surround channel LS data and the right surround channel RS data, where the standard position gain is 1, the gain is greater than 1 when it is farther than the standard position, and less than 1 when it is closer than the calibration position. This processing is to ensure that the sound of the surround channel will not cover the left channel L, right channel R, and center channel C as much as possible, so as to ensure the best sound effect under the standard layout.
[0074] Further, in a specific implementation, in the above-mentioned sound field rendering method provided by an embodiment of the present invention, step S103 selects a corresponding channel mapping strategy based on the layout type of the target speaker to distribute the audio signal to the target speaker and the channel of the audio-visual device accordingly, which may specifically include: when the layout type of the target speaker is a free layout, setting the speaker close to the audio-visual device as a reference speaker; performing corresponding gain processing on one surround channel data according to the distance between the reference speaker and the audio-visual device; dividing the other surround channel data into first surround channel data and second surround channel data according to a set ratio, and transmitting the first surround channel data to the non-reference speaker, and transmitting the second surround channel data to the left channel or right channel of the audio-visual device.
[0075] In implementation, the first surround channel data and the second surround channel data can be understood as left surround channel LS data and right surround channel RS data. When the layout type of the target speaker is free layout, for the left surround channel LS data and the right surround channel RS data, such as Fig.10As shown, first, the speaker closer to the TV is set as the reference speaker, and one surround channel is given 100% to the reference speaker. Then, a certain gain is applied according to the distance of the reference speaker from the TV. The gain application strategy is the same as the standard layout. The other surround channel is given to another speaker and the left (or right) channel of the TV on the same side in a certain proportion, so that a virtual speaker can be formed between the two speakers. By adjusting the proportion of the surround channel data given to the two speakers, the loudness of the virtual speaker can be ensured to be the same as the reference speaker, so as to ensure the best sound effect under the free layout.
[0076] Further, in a specific implementation, in the above-mentioned sound field rendering method provided in an embodiment of the present invention, step S103 selects a corresponding channel mapping strategy based on the layout type of the target speaker to distribute the audio signal to the target speaker and the channel of the audio-visual device accordingly, which may specifically include: when the layout type of the target speaker is an abnormal layout, decorrelation processing is performed on one surround channel data and another surround channel data; the decorrelation-processed surround channel data is transmitted to the first speaker, and the decorrelation-processed surround channel data is transmitted to the second speaker.
[0077] In implementation, when the layout type of the target speaker is a malformed layout, such as Fig.11 As shown, the left and right surround channels are decorrelated and then sent to two speakers respectively to ensure the best sound effect under the abnormal layout.
[0078] In the above embodiments, the sound field rendering method is described in detail, and the present invention also provides embodiments of a sound field rendering device and a sound field rendering apparatus. It should be noted that the present invention describes the embodiments of the device part from two perspectives, one is based on the functional module perspective, and the other is based on the hardware perspective.
[0079] Fig.12 Schematic diagram of the structure of the sound field rendering device provided by an embodiment of the present invention. This embodiment is based on the perspective of functional modules, such as Fig.12 As shown, the device comprises:
[0080] A position coordinate acquisition module 10, used to acquire the position coordinates of the target speaker relative to the audio-visual device;
[0081] A layout type determination module 11 is used to obtain the layout type of the target speaker according to the position coordinates of the target speaker relative to the audio-visual device;
[0082] A channel mapping selection module 12 is used to select a corresponding channel mapping strategy based on the layout type of the target speakers to distribute the audio signals to the target speakers and the channels of the audio-visual device accordingly;
[0083] The sound field rendering module 13 is used to perform sound field rendering after the audio signal distribution is completed.
[0084] In the above-mentioned sound field rendering device provided by the embodiment of the present invention, the position coordinates of the target speaker relative to the audio-visual device can be obtained through the interaction of the above-mentioned four modules, and the layout type of the target speaker can be obtained according to the position coordinates, and then the channel mapping strategy corresponding to the target speaker layout type is selected to distribute the audio signal to the target speaker and the channel of the audio-visual device accordingly; after the audio signal distribution is completed, the sound field rendering is performed. In this way, by classifying the speaker layout, different channel mapping strategies are adopted for different categories of layouts, ensuring that when the user places the speaker at any position in the room, the audio signal can be reasonably distributed through the corresponding channel mapping strategy to achieve the optimization of the final sound effect, thereby being able to meet the playback effect requirements of non-standard layouts and solve the effect problem when the speaker is placed arbitrarily.
[0085] Since the embodiments of the device part correspond to the embodiments of the method part, the embodiments of the device part refer to the description of the embodiments of the method part, which will not be described here. And it has the same beneficial effects as the above-mentioned sound field rendering method.
[0086] Fig.13 This is a schematic diagram of the structure of the sound field rendering device provided by an embodiment of the present invention. This embodiment is based on the hardware perspective, such as Fig.13 As shown, the sound field rendering device includes:
[0087] A memory 20, for storing computer programs;
[0088] The processor 21 is used to implement the steps of the sound field rendering method mentioned in the above embodiment when executing the computer program.
[0089] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU; the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0090] The memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201, wherein the computer program is loaded and executed by the processor 21, and the relevant steps of the sound field rendering method disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. Data 203 may include, but is not limited to, the data involved in the sound field rendering method mentioned above.
[0091] In some embodiments, the sound field rendering device may further include a display screen 22, an input and output interface 23, a communication interface 24, a power supply 25, and a communication bus 26. Those skilled in the art will appreciate that Fig.13 The structure shown in the figure does not constitute a limitation on the sound field rendering device, and may include more or fewer components than shown in the figure. The sound field rendering device provided by the embodiment of the present invention includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the sound field rendering method mentioned above, and the effect is the same as above.
[0092] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.
[0093] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and executes all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes. The computer-readable storage medium provided by the present invention can implement the above-mentioned sound field rendering method, and the effect is the same as above.
[0094] Finally, the present invention also provides an embodiment corresponding to a computer program product. The computer program product includes a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps described in the above-mentioned sound field rendering method embodiment are implemented. The computer program product provided by the present invention can implement the above-mentioned sound field rendering method, and the effect is the same as above.
[0095] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0096] The above is a detailed introduction to the sound field rendering method, device, equipment and medium provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.
Claims
1. A sound field rendering method, characterized in that: The method comprises: Obtain the position coordinates of the target speaker relative to the audio-visual device; Obtaining a layout type of the target speaker according to the position coordinates of the target speaker relative to the audio-visual device; Based on the layout type of the target speakers, a corresponding channel mapping strategy is selected to distribute the audio signal to the target speakers and the channels of the audio-visual device accordingly; Sound field rendering is performed after the audio signal distribution is completed.
2. The sound field rendering method according to claim 1, characterized in that: When the target speakers include a first speaker and a second speaker, obtaining the layout type of the target speakers according to the position coordinates of the target speakers relative to the audio-visual device includes: Determine the positional relationship between the first speaker and the second speaker and the emperor's seat respectively according to the positional coordinates of the first speaker and the second speaker relative to the audio-visual device; If the first speaker and the second speaker are arranged on both sides of the emperor's seat and are symmetrical to each other, it is determined that the layout type of the target speaker is a quasi-standard layout; If the first speaker and the second speaker are arranged on both sides of the emperor's seat and are asymmetrical, then the layout type of the target speaker is determined to be a free layout; If the first speaker and the second speaker are located on the same side of the emperor's seat, it is determined that the layout type of the target speaker is a deformed layout.
3. The sound field rendering method according to claim 2, characterized in that: Based on the layout type of the target speakers, a corresponding channel mapping strategy is selected to distribute the audio signal to the target speakers and the channels of the audio-visual device accordingly, including: When the layout type of the target speaker is a quasi-standard layout, a free layout, or a deformed layout, the left channel data in the audio signal is transmitted to the left channel of the audio-visual device, the right channel data in the audio signal is transmitted to the right channel of the audio-visual device, the center channel data in the audio signal is transmitted to the center channel of the audio-visual device, and the low-frequency channel data in the audio signal is transmitted to the woofer; If the audiovisual device does not have a center channel, transmitting half of the center channel data in the audio signal to the left channel of the audiovisual device, and transmitting the other half of the center channel data in the audio signal to the right channel of the audiovisual device; If there is no subwoofer, the low-frequency channel data in the audio signal is discarded.
4. The sound field rendering method according to claim 2, characterized in that: Based on the layout type of the target speakers, a corresponding channel mapping strategy is selected to distribute the audio signal to the target speakers and the channels of the audio-visual device accordingly, including: When the layout type of the target speakers is a quasi-standard layout, one channel of surround channel data in the audio signal is transmitted to the first speaker, and another channel of surround channel data in the audio signal is transmitted to the second speaker, and corresponding gain processing is performed on one channel of surround channel data according to the distance between the first speaker and the audio-visual device, and corresponding gain processing is performed on the other channel of surround channel data according to the distance between the second speaker and the audio-visual device.
5. The sound field rendering method according to claim 2, characterized in that: Based on the layout type of the target speakers, a corresponding channel mapping strategy is selected to distribute the audio signal to the target speakers and the channels of the audio-visual device accordingly, including: When the layout type of the target speakers is free layout, setting the speakers close to the audio-visual device as reference speakers; Performing corresponding gain processing on one surround sound channel data according to the distance between the reference sound box and the audio-visual device; The other surround channel data is divided into first surround channel data and second surround channel data according to a set ratio, and the first surround channel data is transmitted to a non-reference speaker, and the second surround channel data is transmitted to a left channel or a right channel of the audio-visual device.
6. The sound field rendering method according to claim 2, characterized in that: Based on the layout type of the target speakers, a corresponding channel mapping strategy is selected to distribute the audio signal to the target speakers and the channels of the audio-visual device accordingly, including: When the layout type of the target sound box is an abnormal layout, decorrelation processing is performed on one surround channel data and another surround channel data; One surround channel data after decorrelation processing is transmitted to the first speaker, and another surround channel data after decorrelation processing is transmitted to the second speaker.
7. The sound field rendering method according to claim 1, characterized in that: Get the position coordinates of the target speaker relative to the audio-visual device, including: According to the position of the speaker and the position of the audio-visual device, a speaker positioning algorithm is used to obtain the position coordinates of the speaker relative to the audio-visual device.
8. A sound field rendering device, characterized in that: The device comprises: A position coordinate acquisition module, used to acquire the position coordinates of the target speaker relative to the audio-visual device; A layout type determination module, used to obtain the layout type of the target speaker according to the position coordinates of the target speaker relative to the audio-visual device; A channel mapping selection module, configured to select a corresponding channel mapping strategy based on the layout type of the target speaker, so as to distribute the audio signal to the target speaker and the channel of the audio-visual device accordingly; The sound field rendering module is used to perform sound field rendering after the audio signal distribution is completed.
9. A sound field rendering device, characterized in that: The device comprises: Memory for storing computer programs; A processor, configured to implement the steps of the sound field rendering method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the sound field rendering method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Audio transcoding method and device, equipment and storage medium
CN121239891A