Loudspeaker array determination method and device, equipment and storage medium
By obtaining the acoustic environment parameters and processing with the LASSO regression algorithm, the target speaker array in the speaker array is determined, which solves the problem of matching the speaker array and the acoustic environment, and improves the energy efficiency of the beam and the listening experience.
Patent Information
- Application Number
- CN202310203114.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-23
- Publication Date
- 2024-08-23
AI Technical Summary
The existing technology is difficult to efficiently match the speaker array to the acoustic environment under the limited number of DSP processor channels, resulting in low energy efficiency of the beam and insufficient three-dimensional surround feeling.
By obtaining the acoustic environment parameter information, determine the beam parameter value of the target beam, and use the minimum absolute shrinkage and selection operator LASSO regression algorithm to calculate the weight matrix of the loudspeaker, exclude speakers whose energy contribution is lower than the preset conditions, and form a target loudspeaker array. To achieve sparsification and improve beam directivity.
While ensuring directional beams, the number of speakers is reduced, the energy efficiency of the speaker array is improved, the three-dimensional and surround sense of the sound field is enhanced, and the listener's experience is enhanced.
Smart Images

Figure CN118540633A
Abstract
Description
Technical Field
[0001] The present application relates to the field of signal processing technology, and in particular to a method, device, equipment and storage medium for determining a loudspeaker array. Background Art
[0002] Immersive three-dimensional (3D) experience has become a key feature of sound reproduction systems such as smart speakers and smart screens. In order to make the sound field formed by the beam projected by the speaker array have a better sense of three-dimensionality and surround, it is necessary to make the beam projected by the speaker array adapt to the acoustic environment in which the speaker array is located.
[0003] However, since the acoustic environment is diverse and the number of speakers playing audio is often greater than the number of channels of the digital signal processor, how to efficiently achieve a beam matching the acoustic environment based on the limited number of channels of the DSP processor in response to changes in the acoustic environment is an urgent problem to be solved. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus, device and storage medium for determining a speaker array, which can efficiently implement a beam matching the acoustic environment based on a limited number of channels of a DSP processor for different acoustic environments.
[0005] In a first aspect, an embodiment of the present application provides a method for determining a speaker array, which is applied to an electronic device including a speaker array, comprising:
[0006] Obtain parameter information of the acoustic environment in which the electronic equipment is located;
[0007] Determining beam parameter values of target beams of each of the multiple channels according to parameter information of the acoustic environment, wherein the target beam is a beam generated when the electronic device plays the audio and matches the acoustic environment;
[0008] According to the beam parameter value of the target beam of each channel in the multiple channels, speakers whose energy contribution is lower than a preset condition are excluded from the speaker array to obtain a target speaker array, wherein all speakers in the speaker array include all speakers in the target speaker array.
[0009] In one example, the parameter information of the acoustic environment includes the spatial size of the acoustic environment where the electronic device is located, the position of the electronic device in the acoustic environment, and the position of the listener in the acoustic environment.
[0010] In this solution, according to the acoustic environment in which the electronic device is located, the beam parameter values of the target beams of different channels suitable for the acoustic environment can be determined. Based on the beam parameter values of the target beam, when the number of channels of the digital signal processor (DSP) in the electronic device is limited and the number of speakers in the speaker array that plays the audio signal is minimal, the speaker array can project the target beam when playing the audio, that is, the speaker array can form a strong directional beam in the acoustic environment, improve the stereoscopic and surround sense of the sound field constructed by the beam, and thus improve the listener's experience.
[0011] In a possible implementation, excluding speakers whose energy contribution is lower than a preset condition from the speaker array according to the beam parameter value of the target beam of each of the multiple channels to obtain the target speaker array includes:
[0012] determining a transfer function of each loudspeaker in the loudspeaker array at a plurality of frequency points according to a beam parameter value of a target beam of the sound channel;
[0013] According to the transfer function of each speaker and the beam parameter value of the target beam, a first weight matrix corresponding to the speaker is solved by least absolute shrinkage and selection operator LASSO regression to obtain a first weight matrix corresponding to the speaker, wherein the elements in the first weight matrix are used to identify the proportion of energy contributed by the speakers in the speaker array when outputting the target beam;
[0014] A target speaker array is determined from the speaker array according to a first weight matrix corresponding to the speaker.
[0015] In this way, by solving the first weight matrix, the energy contribution of the speaker array to generating the target beam can be determined, thereby excluding speakers with lower energy contributions, ensuring that the speakers in the speaker array used to play audio can maintain high energy efficiency while ensuring the generation of a directional beam.
[0016] In a possible implementation, solving the first weight matrix corresponding to the speaker by least absolute shrinkage and selection operator LASSO regression according to the transfer function of each speaker and the beam parameter value of the target beam to obtain the first weight matrix corresponding to the speaker includes:
[0017] The first weight matrix w satisfies a first formula, which is:
[0018] Wherein, p represents the sound field vector formed by the sound field generated by the target beam at the multiple frequency points, G represents the transfer function matrix formed by the transfer function of each speaker in the speaker array at each frequency point in the multiple frequency points, λ 2,1 represents the Lagrange multiplier;
[0019] The 1-norm regularization constraint is introduced to calculate the beam effect criterion under different values of Lagrange multipliers;
[0020] When the beam effect criterion satisfies a preset condition, a first weight matrix corresponding to the Lagrange multiplier with the largest value is determined.
[0021] In this way, when the beam effect criterion meets the preset conditions, the Lagrange multiplier is continuously increased, so that the sparsification degree of the speaker array is increased, and then when the beam effect meets the preset conditions, the highest sparsification degree is achieved. Here, sparsification refers to reducing the number of speakers in the speaker array that plays audio.
[0022] In a possible implementation, the method further includes:
[0023] Determining a target filter coefficient corresponding to each speaker in the target speaker array according to the target speaker array and the beam parameter value of the target beam of each channel;
[0024] Using the target filter coefficient corresponding to each channel, filtering the channel signal corresponding to the channel to obtain the filtered channel signal corresponding to each channel;
[0025] The filtered channel signal is played through the target speaker array.
[0026] In this way, the target speaker array is determined according to the beam parameter value of the target beam, so that when the target speaker array plays the audio signal, it can project a target beam with strong directivity, thereby improving the stereoscopic and surround sense of the sound field constructed by the beam, thereby improving the listener's experience.
[0027] In a possible implementation manner, determining a target filter coefficient corresponding to each speaker in the target speaker array according to the target speaker array and the beam parameter value of the target beam of each channel includes:
[0028] Determining a transfer function of each speaker in the target speaker array from the respective transfer functions of each speaker in the speaker array;
[0029] Based on the transfer function corresponding to each speaker in the target speaker array and the beam parameter value of the target beam, the second weight matrix of the target speaker array is solved by Ridge regression to obtain the target filter coefficient corresponding to each speaker in the target speaker array.
[0030] In a possible implementation manner, the beam effect criterion is an acoustic energy contrast value corresponding to the target beam or a sound field matching error value of the target beam.
[0031] In a second aspect, an embodiment of the present application provides a device for determining a speaker array, which is applied to an electronic device including a speaker array, including:
[0032] An acquisition module, used to acquire parameter information of the acoustic environment in which the electronic device is located;
[0033] A determination module, configured to determine beam parameter values of target beams of each of the plurality of channels according to parameter information of the acoustic environment, wherein the target beam is a beam generated when the electronic device plays the audio and matches the acoustic environment;
[0034] A sparseness module is used to exclude speakers whose energy contribution is lower than a preset condition from the speaker array according to the beam parameter value of the target beam of each channel in the multiple channels, so as to obtain a target speaker array, wherein all speakers in the speaker array include all speakers in the target speaker array.
[0035] In this solution, according to the acoustic environment in which the electronic device is located, the beam parameter values of the target beams of different channels suitable for the acoustic environment can be determined. Based on the beam parameter values of the target beam, when the number of channels of the digital signal processor (DSP) in the electronic device is limited and the number of speakers in the speaker array that plays the audio signal is minimal, the speaker array can project the target beam when playing the audio, that is, the speaker array can form a strong directional beam in the acoustic environment, improve the stereoscopic and surround sense of the sound field constructed by the beam, and thus improve the listener's experience.
[0036] In a possible implementation, the sparseness module is used to:
[0037] The step of excluding loudspeakers whose energy contribution is lower than a preset condition from the loudspeaker array according to the beam parameter value of the target beam of each of the multiple channels to obtain a target loudspeaker array includes:
[0038] determining a transfer function of each loudspeaker in the loudspeaker array at a plurality of frequency points according to a beam parameter value of a target beam of the sound channel;
[0039] According to the transfer function of each speaker and the beam parameter value of the target beam, a first weight matrix corresponding to the speaker is solved by least absolute shrinkage and selection operator LASSO regression to obtain a first weight matrix corresponding to the speaker, wherein the elements in the first weight matrix are used to identify the proportion of energy contributed by the speakers in the speaker array when outputting the target beam;
[0040] A target speaker array is determined from the speaker array according to a first weight matrix corresponding to the speaker.
[0041] In this way, by solving the first weight matrix, the energy contribution of the speaker array to generating the target beam can be determined, thereby excluding speakers with lower energy contributions, ensuring that the speakers in the speaker array used to play audio can maintain high energy efficiency while ensuring the generation of a directional beam.
[0042] In a possible implementation, the sparse module includes:
[0043] The first weight matrix w satisfies a first formula, which is:
[0044] Wherein, p represents the sound field vector formed by the sound field generated by the target beam at the multiple frequency points, G represents the transfer function matrix formed by the transfer function of each speaker in the speaker array at each frequency point in the multiple frequency points, λ 2,1 represents the Lagrange multiplier;
[0045] The 1-norm regularization constraint is introduced to calculate the beam effect criterion under different values of Lagrange multipliers;
[0046] When the beam effect criterion satisfies a preset condition, a first weight matrix corresponding to the Lagrange multiplier with the largest value is determined.
[0047] In this way, when the beam effect criterion meets the preset conditions, the Lagrange multiplier is continuously increased, so that the sparsification degree of the speaker array is increased, and then when the beam effect meets the preset conditions, the highest sparsification degree is achieved. Here, sparsification refers to reducing the number of speakers in the speaker array that plays audio.
[0048] In a possible implementation manner, the device further includes:
[0049] A coefficient determination module, used to determine a target filter coefficient corresponding to each speaker in the target speaker array according to the target speaker array and the beam parameter value of the target beam of each channel;
[0050] A filtering module, used to filter the channel signal corresponding to each channel using the target filter coefficient corresponding to the channel to obtain the filtered channel signal corresponding to each channel;
[0051] A playing module is used to play the filtered channel signal through the target speaker array.
[0052] In this way, the target speaker array is determined according to the beam parameter value of the target beam, so that when the target speaker array plays the audio signal, it can project a target beam with strong directivity, thereby improving the stereoscopic and surround sense of the sound field constructed by the beam, thereby improving the listener's experience.
[0053] In a possible implementation manner, the beam effect criterion is an acoustic energy contrast value corresponding to the target beam or a sound field matching error value of the target beam.
[0054] In a third aspect, an embodiment of the present application provides an electronic device, comprising: at least one memory for storing programs; and at least one processor for executing the programs stored in the memory, wherein when the programs stored in the memory are executed, the processor is used to execute the method provided in the first aspect.
[0055] In a fourth aspect, an embodiment of the present application provides an electronic device, characterized in that the electronic device runs computer program instructions to execute the method provided in the first aspect. Exemplarily, the electronic device may include a chip or a processor.
[0056] In one example, the electronic device may include a processor, which may be coupled to a memory, read instructions in the memory, and execute the method provided in the first aspect according to the instructions. The memory may be integrated in a chip or a processor, or may be independent of the chip or the processor.
[0057] In a fifth aspect, an embodiment of the present application provides a computer storage medium, in which instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the method provided in the first aspect.
[0058] In a sixth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on an electronic device, enables the electronic device to execute the method provided in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0060] Figure 2 It is a schematic diagram of the architecture of a sound playback system provided in an embodiment of the present application;
[0061] Figure 3 is a schematic diagram of the architecture of a speaker array determination system provided in an embodiment of the present application;
[0062] Figure 4 It is a structural diagram of a DSP provided in an embodiment of the present application;
[0063] Figure 5 is a flowchart of a method for determining a speaker array provided in an embodiment of the present application;
[0064] Figure 6a is a schematic diagram of the direction of a directional beam provided in an embodiment of the present application;
[0065] Figure 6b is a schematic diagram of the direction of another directional beam provided in an embodiment of the present application;
[0066] Figure 7 is a schematic diagram of a speaker array generating a directional beam provided in an embodiment of the present application;
[0067] Figure 8a is a schematic diagram of the architecture of a speaker array provided in an embodiment of the present application;
[0068] Figure 8b is a schematic diagram of the architecture of another speaker array provided in an embodiment of the present application;
[0069] Figure 8c is a schematic diagram of the architecture of another speaker array provided in an embodiment of the present application;
[0070] Figure 9a This is a rendering of a speaker array projecting a directional beam provided by an embodiment of the present application;
[0071] Figure 9b This is a rendering of another speaker array projecting a directional beam provided in an embodiment of the present application;
[0072] Fig.9c This is another effect diagram of a loudspeaker array projecting a directional beam provided in an embodiment of the present application;
[0073] Fig.10a is a curve diagram of acoustic contrast at different frequencies provided by an embodiment of the present application;
[0074] Fig.10b is a curve diagram of a sound field matching error at different frequencies provided by an embodiment of the present application;
[0075] Fig.11 is a structural schematic diagram of a speaker array determination device provided in an embodiment of the present application;
[0076] Fig.12 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0077] 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 below in conjunction with the accompanying drawings.
[0078] In the description of the embodiments of the present application, words such as "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a concrete way.
[0079] In the description of the embodiments of the present application, the term "and / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, B exists alone, and A and B exist at the same time. In addition, unless otherwise specified, the term "multiple" means two or more. For example, multiple systems refers to two or more systems, and multiple terminals refers to two or more terminals.
[0080] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprises", "has" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0081] Before describing the scheme of the present application in detail, some terms used in the present embodiment are first explained. It should be noted that these explanations are for the convenience of understanding by those skilled in the art and do not constitute a limitation on the scope of protection claimed by the present application.
[0082] Loudspeaker array: An array consisting of at least two loudspeakers.
[0083] Array architecture: An array of speakers used to play audio, where the number of speakers in the array architecture is less than or equal to the total number of speakers in the electronic device.
[0084] Sparsification: Excluding speakers from the speaker array whose energy contribution is below a preset condition.
[0085] Immersive three-dimensional (3D) experience has become a key feature of sound reproduction systems such as smart speakers and smart screens. In order to achieve immersive 3D surround sound fields (such as Dolby Atmos) in sound reproduction systems, sound projection is currently a mainstream technical solution. Sound projection is to generate a highly directional sound wave beam, with the help of reflection from the wall (walls, ceilings, etc.), to form a virtual sound source in the direction of the reflected wave in the subjective perception of the listener. Figure 1 As shown, the sound played by the TV generates a sound wave beam in the direction of 50° relative to the y-axis, and after reflection from the wall, a virtual sound source is formed on the ceiling. The listener can perceive the sound generated by the virtual sound source on the ceiling. Taking the audio architecture of the smart screen as an example, for high-frequency audio signals, the speakers (or speaker modules, hereinafter referred to as speakers) in the sound system of the smart screen already have a certain directionality, but the directionality is weak in the mid- and low-frequency bands, and beamforming can achieve stronger directionality in the mid- and low-frequency bands. Therefore, beamforming technology has become a key means for sound reproduction systems to achieve sound projection.
[0086] At the same time, in order to make the sound field formed by the beam projected by the speaker array have a better sense of three-dimensionality and surround, it is necessary to make the beam projected by the speaker array adapt to the acoustic environment in which the speaker array is located. For example, by adjusting the angle and width of the beam, the virtual sound source corresponding to the surround channel is made as close as possible to the plane where the listener is located, which can effectively enhance the three-dimensionality and surround of the sound field. Therefore, how to adopt different beam angles and beam widths in different acoustic environments and automatically adapt to different acoustic environments is also a problem that needs to be solved urgently.
[0087] In addition, in electronic devices with audio playback functions, especially consumer audio products, the number of speakers playing audio is often greater than the number of DSP channels based on the requirement for a certain loudness. Figure 2As shown, the sound playback system of the electronic device includes a signal input terminal 21, a signal selector 22, a digital signal processor (Digital Signal Processing, DSP) 23, a digital to analog converter (Digital to Analog Converter, DAC) 24, a power amplifier (Power Amplifier, PA) 25 and a speaker array 26. Among them, the speaker array 26 includes a plurality of speakers. Some speakers in the speaker array 26 can form an array to play audio. However, due to the limited number of channels of the DSP processor, the number of speakers used to perform beamforming will be less than the total number of speakers in the speaker array. Therefore, the architecture of the speaker used to form the beam can be adjusted according to the changes in the acoustic environment in which the electronic device is located. Therefore, in view of the changes in the acoustic environment, based on the limited number of channels of the DSP processor, how to efficiently realize the beam matching the acoustic environment and how to select the optimal array architecture are problems to be solved.
[0088] In order to achieve a predefined direct-to-reverberation sound energy ratio in the related art, the directivity index of the beam generated by the speaker array is adjusted by measuring the distance from the listener to the speaker array. However, when other physical conditions remain unchanged, to maintain the predefined direct-to-reverberation sound energy ratio, the directivity index should be proportional to the square of the distance from the array to the listener. Therefore, when the distance changes, the direct-to-reverberation sound energy ratio can be maintained constant by changing the directivity index of the array accordingly. However, this method will result in the presence of low-energy speakers in the array used to play audio, which will have a low contribution to the formation of the target beam, and thus lead to low energy efficiency of the beam formed by the array.
[0089] Based on this, an embodiment of the present application provides a method for determining a speaker array, which can calculate the beam parameter values of the target beams corresponding to different channels through the parameter information of the acoustic environment, such as the spatial size of the acoustic environment in which the electronic device is located, the position of the electronic device in the acoustic environment, and the position of the listener in the acoustic environment. Among them, the target beam is a beam that matches the acoustic environment and is generated when the electronic device plays the audio. Furthermore, based on the beam parameter value of the target beam, when the number of DSP channels in the electronic device is limited and the number of speakers in the speaker array that plays the audio signal is minimal, the speaker array can project the target beam when playing the audio signal, that is, the speaker array can form a strong directional beam in the acoustic environment, improve the stereoscopic and surround sense of the sound field constructed by the beam, and thus improve the listener's experience. This is just a brief description of the method. For details about the method, please refer to the description below.
[0090] Next, a speaker array determination system that may be applied to the speaker array determination method provided in the embodiment of the present application is described in detail. Figure 3 Schematic diagram of the structure of a system for determining a loudspeaker array provided in an embodiment of the present application. The method for determining a loudspeaker array provided in an embodiment of the present application can be applied to Figure 3 In the determination system of the loudspeaker array shown in FIG. Figure 3 As shown, the speaker array determination system provided in the embodiment of the present application includes: a distance detector 31, a beam designer 32, a DSP 33, a DAC 34, a power amplifier 35 and a speaker array 36.
[0091] Among them, the distance detector can obtain parameter information of the sound field environment, such as the size of the space of the acoustic environment, the position of the listener in the acoustic environment, and the position of the speaker array in the acoustic environment.
[0092] As a possible implementation method, the distance detector can be a device that can perform human-computer interaction with a user, so that the user can input parameter information of the acoustic environment through the device. For example, the distance detector can be a display device with human-computer interaction function, or a voice interaction device, etc.
[0093] As another possible implementation, the distance detector can automatically collect parameter information of the acoustic environment. For example, the distance detector may include a camera or a laser scanner, etc. The distance detector scans the acoustic environment through the camera or the laser scanner to obtain the parameter information of the acoustic environment.
[0094] The above possible implementation methods of the distance detector are only for illustrative purposes. The distance detector can also obtain parameter information of the acoustic environment through any other possible implementation methods. The embodiments of the present application do not specifically limit the implementation method of the distance detector obtaining parameter information.
[0095] The beam designer determines the parameters of the target beam corresponding to each channel, such as the beam angle and beam width of the target beam, based on the parameter information of the acoustic environment. The beam designer transmits the parameters of the target beam corresponding to each channel to the DSP. The DSP selects the optimal speaker array architecture and the filter coefficients corresponding to each channel from the speaker array based on the parameters of the target beam corresponding to each channel.
[0096] After the channel signal input to the DSP is convolved with the filter coefficients corresponding to the channel, the signal is routed to the speaker through the DAC and power amplifier based on the optimal speaker array architecture for audio playback.
[0097] In some embodiments, Figure 4As shown, the DSP includes an array architecture determination module 41, a filtering module 42 and a signal routing module 43. The array architecture determination module 41 performs sparse processing on the speaker array according to the target beam corresponding to each channel, thereby determining the speaker for playing the audio, that is, determining the array architecture of multiple speakers for playing the audio from the speaker array, and obtaining the parameters of the array architecture. The parameters of the array architecture include the identity of the speaker for playing the audio. The parameters of the array architecture between the array architecture determination modules are sent to the signal routing module.
[0098] The array architecture module is also used to determine the filter parameters corresponding to each channel according to the target beam corresponding to each channel, and send the filter parameters corresponding to each channel to the filtering module.
[0099] The filtering module filters the channel signal according to the filter parameters of each channel, and sends the filtered channel signal to the signal routing module.
[0100] The signal routing module sends the filtered channel signal to the corresponding loudspeaker according to the parameters of the array architecture, so that the loudspeaker in the array architecture can project the target beam, thereby forming a highly directional beam in the acoustic environment, improving the stereoscopic and surround sense of the sound field constructed by the beam, and thus improving the listener's experience.
[0101] Next, a method for determining a speaker array provided in an embodiment of the present application is described in detail.
[0102] Figure 5 FIG. 1 is a flow chart of a method for determining a loudspeaker array provided in an embodiment of the present application. Figure 5 As shown, the method for determining a speaker array provided in an embodiment of the present application includes the following steps S501 to S503.
[0103] S501: Acquire parameter information of the acoustic environment in which the electronic device is located.
[0104] The acoustic environment may refer to the environment of the space where the electronic device is located. The parameter information of the acoustic environment includes the spatial size of the acoustic environment where the electronic device is located, the position of the electronic device in the acoustic environment, and the position of the listener in the acoustic environment.
[0105] As a possible implementation, the user inputs the parameter information of the acoustic environment through the human-computer interaction interface of the electronic device. As another possible implementation, the electronic device can scan the acoustic environment through a scanning device on the electronic device to obtain the parameter information of the acoustic environment.
[0106] S502: Determine beam parameter values of target beams of each of the multiple channels according to parameter information of the acoustic environment, where the target beam is a beam generated when the electronic device plays the audio and matches the acoustic environment.
[0107] The electronic device can determine the beam parameter value of the target beam corresponding to each channel according to the collected parameter information of the acoustic environment. The beam parameter of the target beam includes the beam width and beam angle of the target beam.
[0108] Here, the target beam refers to the beam generated when the electronic device plays audio, which can match the acoustic environment and is the beam that the user expects the electronic device to generate.
[0109] S503, according to the beam parameter value of the target beam of each channel in the multiple channels, exclude speakers whose energy contribution is lower than a preset condition from the speaker array to obtain a target speaker array, wherein all speakers in the speaker array include all speakers in the target speaker array.
[0110] The electronic device performs a sparse processing on the speaker array according to the beam parameter value of the target beam corresponding to each channel, that is, excludes the speakers whose energy contribution is lower than the preset condition from the speaker array, so that some speakers can be screened from the speaker array. In this way, based on the beam parameter value of the target beam, when the number of channels of the digital signal processor (DSP) in the electronic device is limited and the number of speakers in the speaker array playing the audio signal is minimal, the speaker array can project the target beam when playing the audio, that is, the speaker array can form a strong directional beam in the acoustic environment, improve the stereoscopic and surround sense of the sound field constructed by the beam, and thus improve the listener's experience.
[0111] Sparse processing of the speaker array refers to excluding speakers in the speaker array that have little contribution to forming the target beam. The target speaker array refers to the speaker array after the speaker array is thinned out.
[0112] In some embodiments, the electronic device may perform a sparse processing on the speaker array by using a least absolute shrinkage and selection operator LASSO regression algorithm.
[0113] Specifically, the electronic device can determine the transfer function of each speaker in the speaker array at multiple frequency points according to the beam parameter value of the target beam of the channel; according to the transfer function of each speaker and the beam parameter value of the target beam, the first weight matrix corresponding to the speaker is solved by minimum absolute shrinkage and selection operator LASSO regression to obtain the first weight matrix corresponding to the speaker, and the elements in the first weight matrix are used to identify the proportion of energy contributed by the speakers in the speaker array when outputting the target beam; according to the first weight matrix corresponding to the speakers, the target speaker array is determined from the speaker array.
[0114] The element values in the first weight matrix can represent the proportion of energy contributed by the speakers in the speaker array when outputting the target beam. In one possible implementation, when the first weight matrix is relative to the target beam of one channel, the first weight matrix is a column vector. Among them, the number of rows of the first weight matrix is the same as the number of speakers in the speaker array. In another possible implementation, when the first weight matrix is relative to the target beams of multiple channels, the first weight matrix is a matrix. For example, if the number of channels is N and the number of speakers is M, then the first weight matrix is a matrix with M rows and N columns.
[0115] In the above process, the frequency band range to be considered when determining the architecture is specified. Based on the beam parameter value of the target beam corresponding to the channel, the matrix p of the target sound field within the frequency band range is determined.
[0116] As a possible implementation, the matrix p refers to the target sound field generated by the target beam of a channel at multiple frequency points. For example, if there are N frequency points in the frequency band, then the matrix p is a column vector with N rows and 1 column, that is, Wherein, N is a positive integer.
[0117] As another possible implementation, the matrix of the target sound field is relative to the target beams of multiple channels. For example, there are N frequency points in the frequency band, S channels, that is, S target beams, then the matrix p is a matrix of N rows and S columns composed of S N-row and 1-column column vectors, that is, p = [p1, p2, ..., p s ].
[0118] For the convenience of description, the following processes are all based on the target beam corresponding to one channel, that is, the matrix p is a column vector, and the implementation process of the following embodiments of the present application is described in detail.
[0119] Next, according to the selected frequency points, the transfer function matrix G of each speaker in the speaker array at multiple frequency points is calculated when the speaker array projects the target beam. Exemplarily, the speaker array includes k speakers and the selected frequency points are N, then the transfer function matrix G is a matrix with N rows and S columns.
[0120] According to the beam parameter values of multiple target beams and the transfer function corresponding to each speaker, a first formula is constructed, which can be regarded as a weight optimization model. The weight optimization model satisfies the following formula (1):
[0121]
[0122] Wherein, w represents the first weight matrix, p represents the sound field vector formed by the sound field generated by the target beam at the multiple frequency points, G represents the transfer function matrix formed by the transfer function of each speaker in the speaker array at each frequency point in the multiple frequency points, λ 2,1 represents the Lagrange multiplier.
[0123] Based on the least absolute shrinkage and selection operator LASSO regression algorithm, the Lagrange multiplier λ 2,1 , introduce the 1-norm regularization constraint, iteratively optimize the weight matrix, and thus perform sparse processing on the speaker array. Among them, the weight matrix of the mth speaker in the kth step satisfies the following formula (2):
[0124]
[0125] Among them, w m,k represents the weight matrix of the mth speaker at the kth step, and Z m,k Y after acceleration by the Newton momentum (Nestrov) algorithm m,k The weight matrix after gradient descent, α is the Lipschitz continuity constant, Y m,k represents the intermediate state of the weight of the mth speaker during the kth iteration.
[0126] The above formula (1) is iterated, wherein a 1-norm regularization constraint is introduced to calculate the beam effect criterion under different values of Lagrange multipliers; when the beam effect criterion satisfies a preset condition, the first weight matrix corresponding to the Lagrange multiplier with the largest value is determined.
[0127] The preset condition may be a condition determined by the user according to his / her own needs and circumstances. In some embodiments, the beam effect criterion may include an acoustic contrast value or an acoustic field matching error value. For example, when the acoustic contrast value is less than 0.5, it indicates that the beam effect criterion meets the preset condition.
[0128] Specifically, when the weight value of a speaker is less than a preset weight threshold, the energy contributed by the speaker to the generation of the target beam is zero, and the speaker is a non-essential speaker, that is, the speaker cannot be used as a speaker for playing audio. Here, in the process of forming the target beam, the higher the energy of the speaker, the greater the contribution to the formation of the target beam. Therefore, by iterating the above formula (1), according to the weight corresponding to each speaker in the weight matrix, the speakers that contribute less to the formation of the target beam can be gradually excluded, thereby achieving sparse processing of the speaker array.
[0129] In the iterative process, by gradually increasing the Lagrange multiplier λ 2,1 , thereby improving the sparsification degree of the speaker array. The sparsification degree can be determined by the ratio between the total number of speakers in the speaker array and the number of speakers in the target speaker array. In order to achieve an appropriate sparsification degree, different Lagrange multipliers λ can be calculated. 2,1 The beam effect criterion under the condition of maintaining a good beam effect criterion (for example, the acoustic contrast value or the acoustic field matching error value is small), select the largest Lagrange multiplier λ 2,1 .
[0130] Since the beam effect criterion is calculated based on the first weight matrix, when the beam criterion effect is maintained well, the first weight matrix corresponding to the maximum Lagrange multiplier is the final weight matrix. According to the element values in the final weight matrix, unnecessary elements are eliminated to achieve the highest degree of sparsification of the speaker array. In the case of a limited number of DSP channels, the purpose of using fewer speakers and achieving the target beam with high efficiency is achieved, thereby improving the stereoscopic and surround sense of the sound field constructed by the beam, thereby improving the listener's experience.
[0131] After the speaker array architecture is sparsely processed, the target filter coefficient corresponding to each speaker is designed based on the target speaker array and the beam parameter values of multiple target beams. The channel signal corresponding to the channel is filtered by the target filter coefficient to obtain the filtered channel signal corresponding to the channel. The filtered channel signal is played through the target speaker array to generate a target beam, thereby improving the stereoscopic and surround sense of the sound field constructed by the beam, thereby improving the listener's experience.
[0132] The target filter coefficients and the speakers are in a one-to-one correspondence, so the target filter coefficients and the target beam are in a one-to-one correspondence. In the process of designing the target filter coefficients, different target beams can be designed in sequence. Specifically, the transfer function of each speaker in the target speaker array is determined from the transfer function of each speaker in the speaker array; based on the transfer function corresponding to each speaker in the target speaker array and the beam parameter value of the target beam, the second weight matrix of the target speaker array is solved by Ridge regression to obtain the target filter coefficients corresponding to each speaker in the target speaker array.
[0133] According to the beam parameter values of multiple target beams and the sparse speaker array, that is, the transfer function corresponding to each speaker in the target speaker array, a filter coefficient design model is constructed. The filter coefficient design model satisfies the following formula (3):
[0134]
[0135] Wherein, G' represents the updated transfer function matrix G. The difference between G' and G is that the transfer function corresponding to the speakers that have been excluded in G' is 0. Similarly, w' represents the second weight matrix, that is, the updated first weight matrix w. The difference between w' and w is that the weight corresponding to the speakers that have been excluded in w' is 0.
[0136] Based on the Ridge regression algorithm, the 2-norm regularization constraint is introduced through the Lagrange multiplier λ2, and the weight matrix is iteratively optimized to obtain the target filter coefficients.
[0137] In the embodiment of the present application, the second weight matrix may be solved by gradient descent, and the weights in the second weight matrix corresponding to the speakers in the target speaker array are used as the filter coefficients of the speakers.
[0138] According to an embodiment of the present application, according to the acoustic environment in which the electronic device is located, the beam parameter values of the target beams of different channels suitable for the acoustic environment can be determined. Based on the beam parameter values of the target beam, when the number of channels of the digital signal processor (DSP) in the electronic device is limited and the number of speakers in the speaker array that plays the audio signal is minimal, the speaker array can project the target beam when playing the audio, that is, the speaker array can form a highly directional beam in the acoustic environment, improve the stereoscopic and surround sense of the sound field constructed by the beam, and thus improve the listener's experience.
[0139] Next, the practical application of this solution is exemplified.
[0140] Taking the secondary reflected sky sound channel as an example, the line array on the back of the TV is used to form a directional beam (i.e., target beam), which is then reflected from the walls and ceiling to form sky sound. Figure 6a As shown in , when the angle of the directional beam deviates, the directional beam cannot accurately reach the listener. Figure 6b As shown in the figure, the accurate directional beam should reach the listener's head after secondary reflection. Therefore, the optimal beam angle depends on the variables that vary with the environment, such as the distance from the array to the wall, the distance to the ceiling, and the distance to the listener. A study was conducted based on this specific situation. Figure 7 As shown, the back of the TV is provided with a line array of 16 elements, that is, the back of the TV includes a speaker array formed by 16 speakers, the number of channels of the DSP used to form the sky sound is 8, the sparsity is 50%, and the calculated optimal beam angle is 50. Since the size of the TV is much larger than the length of the speaker array, the problem of the speaker array forming an accurate directional beam can be approximated to the beamforming problem of the line array located on an infinite baffle. The transfer function matrix can be calculated by a point source radiation model, and the sampling is performed in space from -90° to 90° at intervals of 5°. The target direction of the beam is 50°, and the beam width is 30°, so that the vector of the directional beam can be determined. When determining the array architecture, select 10 frequencies that are logarithmically distributed from 500Hz to 8000Hz. The following three methods are used to determine the array architecture, such as Figure 8a The array architecture shown is an array architecture determined by the solution provided by the embodiment of the present application. Figure 8b The array architecture shown is determined by the uniform distribution (MEAN) scheme. Figure 8c The array architecture shown is determined by the Gram-Schmidt orthogonalization scheme. Figures 8a to 8c In the figure, white circles represent excluded speakers, and black circles represent speakers used to form the target speaker array.
[0141] After determining the array architecture, the filter coefficients of the loudspeakers under different architectures are calculated through the optimization algorithm (the order of the lateral tap filter is 256), and the beam effects under different schemes can be obtained. Figure 9a The beam effect projected by the array architecture determined by the embodiment of the present application (LASSO regression) is shown. Figure 9b The effect of beam projection determined by the array architecture with uniform distribution is shown. Fig.9c The beam effect of the array architecture projected by the Gram-Schmidt orthogonalization scheme is shown. Figures 9a to 9c It can be seen that Figure 9a The sidelobe suppression effect is significantly better than Figure 9b and Fig.9c The sidelobe suppression effect in
[0142] Fig.10a The contrast values at different frequencies are shown under LASSO regression, MEAN scheme and Gram-Schmidt orthogonalization scheme. Fig.10a It can be seen that the acoustic contrast under the LASSO regression scheme is better than the acoustic contrast under the uniform distribution (MEAN) scheme and the Gram-Schmidt orthogonalization scheme. Fig.10b The figure shows the sound field matching error values at different frequencies under the LASSO regression, uniform distribution (MEAN) scheme and Gram-Schmidt orthogonalization scheme. Fig.10b It can be seen that the sound field matching error under the LASSO regression scheme is better than the sound field matching error under the uniform distribution (MEAN) scheme and the Gram-Schmidt orthogonalization scheme.
[0143] It can be seen that from the perspective of acoustic contrast and sound field matching error, the scheme of the embodiment of the present application is superior to the uniform distribution (MEAN) scheme and the Gram-Schmidt orthogonalization scheme, that is, the sound field generated by the target speaker array determined by the embodiment of the present application is closer to the target sound field, and the sound energy is more concentrated in the main lobe area of the beam.
[0144] Assume that the time domain energy of each channel is calculated as: Among them, w mj represents the time domain energy of the mth speaker in the jth channel. The energy difference between the maximum energy channel filter and the minimum energy channel filter is calculated as: The differences between the different solutions are: 7.04dB (solution provided in the embodiment of the present application), 11.15dB (Gram-Schmidt orthogonalization), 14.51dB (uniform distribution). It can be seen that the filter energy distribution obtained based on the embodiment of the present application is more balanced than the other two solutions.
[0145] Based on the same concept as the embodiment of the method of the present application, the embodiment of the present application also provides a device for determining a speaker array. The device for determining a speaker array includes several modules, each of which is used to execute each step in the personal information identification method provided in the embodiment of the present application, and the division of the modules is not limited here. The technicians in the relevant field can clearly understand that in practical applications, the various steps in the method for determining the speaker array provided in the embodiment of the present application can be assigned to different modules as needed, that is, the internal structure of the device is divided into different modules to complete all or part of the functions described above. Each module in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more modules can be integrated into one unit, and the above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of each module are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present application. The specific working process of the module in the above-mentioned device can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0146] For example, the speaker array determination device is used to execute the personal information identification method provided in the embodiment of the present application, Fig.11 is a schematic diagram of the structure of a device for determining a speaker array provided in an embodiment of the present application. Fig.11 As shown, the speaker array determination device provided in the embodiment of the present application is applied to an electronic device including a speaker array, and includes:
[0147] An acquisition module, used to acquire parameter information of the acoustic environment in which the electronic device is located;
[0148] A determination module, configured to determine beam parameter values of target beams of each of the plurality of channels according to parameter information of the acoustic environment, wherein the target beam is a beam generated when the electronic device plays the audio and matches the acoustic environment;
[0149] A sparseness module is used to exclude speakers whose energy contribution is lower than a preset condition from the speaker array according to the beam parameter value of the target beam of each channel in the multiple channels, so as to obtain a target speaker array, wherein all speakers in the speaker array include all speakers in the target speaker array.
[0150] In this solution, according to the acoustic environment in which the electronic device is located, the beam parameter values of the target beams of different channels suitable for the acoustic environment can be determined. Based on the beam parameter values of the target beam, when the number of channels of the digital signal processor (DSP) in the electronic device is limited and the number of speakers in the speaker array that plays the audio signal is minimal, the speaker array can project the target beam when playing the audio, that is, the speaker array can form a strong directional beam in the acoustic environment, improve the stereoscopic and surround sense of the sound field constructed by the beam, and thus improve the listener's experience.
[0151] In a possible implementation, the sparseness module is used to:
[0152] The step of excluding loudspeakers whose energy contribution is lower than a preset condition from the loudspeaker array according to the beam parameter value of the target beam of each of the multiple channels to obtain a target loudspeaker array includes:
[0153] determining a transfer function of each loudspeaker in the loudspeaker array at a plurality of frequency points according to a beam parameter value of a target beam of the sound channel;
[0154] According to the transfer function of each speaker and the beam parameter value of the target beam, a first weight matrix corresponding to the speaker is solved by least absolute shrinkage and selection operator LASSO regression to obtain a first weight matrix corresponding to the speaker, wherein the elements in the first weight matrix are used to identify the proportion of energy contributed by the speakers in the speaker array when outputting the target beam;
[0155] A target speaker array is determined from the speaker array according to a first weight matrix corresponding to the speaker.
[0156] In this way, by solving the first weight matrix, the energy contribution of the speaker array to generating the target beam can be determined, thereby excluding speakers with lower energy contributions, ensuring that the speakers in the speaker array used to play audio can maintain high energy efficiency while ensuring the generation of a directional beam.
[0157] In a possible implementation, the sparse module includes:
[0158] The first weight matrix w satisfies a first formula, which is:
[0159] Wherein, p represents the sound field vector formed by the sound field generated by the target beam at the multiple frequency points, G represents the transfer function matrix formed by the transfer function of each speaker in the speaker array at each frequency point in the multiple frequency points, λ2,1 represents the Lagrange multiplier;
[0160] The 1-norm regularization constraint is introduced to calculate the beam effect criterion under different values of Lagrange multipliers;
[0161] When the beam effect criterion satisfies a preset condition, a first weight matrix corresponding to the Lagrange multiplier with the largest value is determined.
[0162] In this way, when the beam effect criterion meets the preset conditions, the Lagrange multiplier is continuously increased, so that the sparsification degree of the speaker array is increased, and then when the beam effect meets the preset conditions, the highest sparsification degree is achieved. Here, sparsification refers to reducing the number of speakers in the speaker array that plays audio.
[0163] In a possible implementation manner, the device further includes:
[0164] A coefficient determination module, used to determine a target filter coefficient corresponding to each speaker in the target speaker array according to the target speaker array and the beam parameter value of the target beam of each channel;
[0165] A filtering module, used to filter the channel signal corresponding to each channel using the target filter coefficient corresponding to the channel to obtain the filtered channel signal corresponding to each channel;
[0166] A playing module is used to play the filtered channel signal through the target speaker array.
[0167] In this way, the target speaker array is determined according to the beam parameter value of the target beam, so that when the target speaker array plays the audio signal, it can project a target beam with strong directivity, thereby improving the stereoscopic and surround sense of the sound field constructed by the beam, thereby improving the listener's experience.
[0168] In a possible implementation manner, the beam effect criterion is an acoustic energy contrast value corresponding to the target beam or a sound field matching error value of the target beam.
[0169] Based on the same concept as the embodiment of the method of the present application, the embodiment of the present application also provides an electronic device. The electronic device is also a personal information identification device. The electronic device can be a server or a terminal device. Among them, the terminal device can be a mobile phone, a tablet computer, a wearable device, a smart TV, a Huawei smart screen, a smart speaker, a car machine, etc.
[0170] Fig.12 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application.
[0171] like Fig.12 As shown, the electronic device 1200 includes a processor 1201 , a memory 1202 , and a network interface 1203 .
[0172] The processor 1201 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0173] Among them, the non-volatile memory can be a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous connection dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM).
[0174] For example, a computer program may be stored in the memory 1202, and the processor 1201 implements the steps in the above method embodiment when executing the computer program. Alternatively, the processor 1201 implements the functions of each module in the above device embodiment when executing the computer program. For example, the computer program may be divided into one or more modules / units, and the one or more modules / units may be a series of computer program instruction segments that can perform specific functions. The one or more modules / units are stored in the memory 1202 and executed by the processor 1201 to complete the present application. The specific functions of each module are described above.
[0175] The network interface 1203 is used to send and receive data, for example, to send data processed by the processor 1201 to other electronic devices, or to receive data sent by other electronic devices.
[0176] Of course, to simplify, Fig.12 Only some of the components of the electronic device 1200 related to the present application are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application conditions, the electronic device 1200 may also include any other appropriate components. In addition, the electronic device may be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. Those skilled in the art will understand that Fig.12 This is only an example of the electronic device 1200 and does not constitute a limitation of the electronic device. The electronic device may include more or fewer components than shown in the figure, or may combine certain components, or may have different components. For example, the electronic device may also include an input device, an output device, a network access device, a bus, etc. For example, the input device may be a microphone array, and may also include, for example, a keyboard, a mouse, etc. For example, the output device may output various information to the outside, and may include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto, etc.
[0177] It is understood that the processor in the embodiments of the present application may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.
[0178] In addition to the above methods, devices and electronic devices, the embodiments of the present application may also provide a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps in the method for determining the speaker array of various embodiments of the present application described in the "Method" section of the present specification. The computer program product may be written in any combination of one or more programming languages to write computer program codes for executing the operations of the embodiments of the present application, and the programming languages include object-oriented programming languages such as Java, C++, etc., and also include conventional procedural programming languages such as "C" language or similar programming languages. The computer program code may be in source code form, object code form, executable file or some intermediate form, etc. The computer program code may be executed entirely on a user computing device, partially on a user computing device, as an independent software package, partially on a user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0179] In addition, the embodiment of the present application may also provide a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions, when executed by the processor, cause the processor to perform the steps in the display control method according to various embodiments of the present disclosure described in the above "method" section of this specification. The computer-readable storage medium may adopt any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may, for example, include but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples of readable storage media (non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.
[0180] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.
[0181] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0182] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.
Claims
1. A method for determining a loudspeaker array, characterized in that: Applicable to electronic devices containing speaker arrays, including: Obtain parameter information of the acoustic environment in which the electronic equipment is located; Determining beam parameter values of target beams of each of the multiple channels according to parameter information of the acoustic environment, wherein the target beam is a beam generated when the electronic device plays audio and matches the acoustic environment; According to the beam parameter value of the target beam of each channel in the multiple channels, speakers whose energy contribution is lower than a preset condition are excluded from the speaker array to obtain a target speaker array, wherein all speakers in the speaker array include all speakers in the target speaker array.
2. The method according to claim 1, characterized in that The step of excluding loudspeakers whose energy contribution is lower than a preset condition from the loudspeaker array according to the beam parameter value of the target beam of each of the multiple channels to obtain a target loudspeaker array includes: determining a transfer function of each loudspeaker in the loudspeaker array at a plurality of frequency points according to a beam parameter value of a target beam of the sound channel; According to the transfer function of each speaker and the beam parameter value of the target beam, a first weight matrix corresponding to the speaker is solved by least absolute shrinkage and selection operator LASSO regression to obtain a first weight matrix corresponding to the speaker, wherein the elements in the first weight matrix are used to identify the proportion of energy contributed by the speakers in the speaker array when outputting the target beam; A target speaker array is determined from the speaker array according to a first weight matrix corresponding to the speaker.
3. The method according to claim 2, characterized in that The step of solving the first weight matrix corresponding to the loudspeaker by least absolute shrinkage and selection operator LASSO regression according to the transfer function of each loudspeaker and the beam parameter value of the target beam to obtain the first weight matrix corresponding to the loudspeaker includes: The first weight matrix w satisfies a first formula, which is: Wherein, p represents the sound field vector formed by the sound field generated by the target beam at the multiple frequency points, G represents the transfer function matrix formed by the transfer function of each speaker in the speaker array at each frequency point in the multiple frequency points, λ 2,1 represents the Lagrange multiplier; The 1-norm regularization constraint is introduced to calculate the beam effect criterion under different values of Lagrange multipliers; When the beam effect criterion satisfies a preset condition, a first weight matrix corresponding to the Lagrange multiplier with the largest value is determined.
4. The method according to claim 2 or 3, characterized in that: The method further comprises: Determining a target filter coefficient corresponding to each speaker in the target speaker array according to the target speaker array and the beam parameter value of the target beam of each channel; Using the target filter coefficient corresponding to each channel, filtering the channel signal corresponding to the channel to obtain the filtered channel signal corresponding to each channel; The filtered channel signal is played through the target speaker array.
5. The method according to claim 4, characterized in that The step of determining a target filter coefficient corresponding to each speaker in the target speaker array according to the target speaker array and the beam parameter value of the target beam of each channel comprises: Determining a transfer function of each speaker in the target speaker array from the respective transfer functions of each speaker in the speaker array; Based on the transfer function corresponding to each speaker in the target speaker array and the beam parameter value of the target beam, the second weight matrix of the target speaker array is solved by Ridge regression to obtain the target filter coefficient corresponding to each speaker in the target speaker array.
6. The method according to claim 3, characterized in that: The beam effect criterion is an acoustic energy contrast value corresponding to the target beam or a sound field matching error value of the target beam.
7. A device for determining a loudspeaker array, characterized in that: Applicable to electronic devices containing speaker arrays, including: An acquisition module, used to acquire parameter information of the acoustic environment in which the electronic device is located; A determination module, configured to determine beam parameter values of target beams of respective multiple channels according to parameter information of the acoustic environment, wherein the target beam is a beam generated when the electronic device plays audio and matches the acoustic environment; A sparseness module is used to exclude speakers whose energy contribution is lower than a preset condition from the speaker array according to the beam parameter value of the target beam of each channel in the multiple channels, so as to obtain a target speaker array, wherein all speakers in the speaker array include all speakers in the target speaker array.
8. The device according to claim 7, characterized in that The sparsification module is used to: According to the beam parameter value of the target beam of each of the multiple channels, speakers whose energy contribution is lower than a preset condition are excluded from the speaker array to obtain a target speaker array, including: determining a transfer function of each loudspeaker in the loudspeaker array at a plurality of frequency points according to a beam parameter value of a target beam of the sound channel; According to the transfer function of each speaker and the beam parameter value of the target beam, a first weight matrix corresponding to the speaker is solved by least absolute shrinkage and selection operator LASSO regression to obtain a first weight matrix corresponding to the speaker, wherein the elements in the first weight matrix are used to identify the proportion of energy contributed by the speakers in the speaker array when outputting the target beam; A target speaker array is determined from the speaker array according to a first weight matrix corresponding to the speaker.
9. The device according to claim 7, characterized in that The sparsification module is used to: The step of solving the first weight matrix corresponding to the loudspeaker by least absolute shrinkage and selection operator LASSO regression according to the transfer function of each loudspeaker and the beam parameter value of the target beam to obtain the first weight matrix corresponding to the loudspeaker includes: The first weight matrix w satisfies a first formula, which is: Wherein, p represents the sound field vector formed by the sound field generated by the target beam at the multiple frequency points, G represents the transfer function matrix formed by the transfer function of each speaker in the speaker array at each frequency point in the multiple frequency points, λ 2,1 represents the Lagrange multiplier; The 1-norm regularization constraint is introduced to calculate the beam effect criterion under different values of Lagrange multipliers; When the beam effect criterion satisfies a preset condition, a first weight matrix corresponding to the Lagrange multiplier with the largest value is determined.
10. The device according to claim 8 or 9, characterized in that The device also includes: A coefficient determination module, used to determine a target filter coefficient corresponding to each speaker in the target speaker array according to the target speaker array and the beam parameter value of the target beam of each channel; A filtering module, used to filter the channel signal corresponding to each channel using the target filter coefficient corresponding to the channel to obtain the filtered channel signal corresponding to each channel; A playing module is used to play the filtered channel signal through the target speaker array.
11. The device according to claim 10, characterized in that The coefficient determination module is used for: Determining a transfer function of each speaker in the target speaker array from the respective transfer functions of each speaker in the speaker array; Based on the transfer function corresponding to each speaker in the target speaker array and the beam parameter value of the target beam, the second weight matrix of the target speaker array is solved by Ridge regression to obtain the target filter coefficient corresponding to each speaker in the target speaker array.
12. The device according to claim 9, characterized in that The beam effect criterion is an acoustic energy contrast value corresponding to the target beam or a sound field matching error value of the target beam.
13. An electronic device, characterized in that: include: at least one memory for storing a program; At least one processor is used to execute the program stored in the memory. When the program stored in the memory is executed, the processor is used to execute the method according to any one of claims 1 to 6.
14. An electronic device, characterized in that: The electronic device runs computer program instructions to execute the method according to any one of claims 1-6.
15. A computer storage medium, wherein instructions are stored in the computer storage medium, and when the instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 6.
16. A computer program product comprising instructions, which, when executed on an electronic device, enables the electronic device to execute the method according to any one of claims 1 to 6.
Citation Information
Cited By
Small sample sonar reverberation data enhancement and target detection method and system
CN120744480A
Directional sound propagation method, device and equipment based on phased array and storage medium
CN120857034A
Phased array based directional sound propagation method, apparatus, device and storage medium
CN120857034B
