Search

CN-119946500-B - Directional broadcasting method, device and equipment of sound box and storage medium

CN119946500BCN 119946500 BCN119946500 BCN 119946500BCN-119946500-B

Abstract

The invention relates to the technical field of broadcasting and discloses a directional broadcasting method, device, equipment and storage medium of a sound box, wherein the method comprises the steps of receiving a first sound signal by a plurality of sound sensors in a preset first time window; the method comprises the steps of calculating a covariance matrix of a sound signal by using a linear constraint minimum variance algorithm, determining a direction vector of a target direction, determining a target weight vector according to the direction vector of the target direction and constraint conditions of the direction vector, determining the target weight vector as a beam forming weight vector, solving the target weight vector by using a Lagrange multiplier method to obtain a first optimal weight vector, carrying out weighted summation on the first sound signal by using the first optimal weight vector to generate an output signal, and playing the output signal by using a sound box. By applying the technical scheme of the invention, the signal in the required direction can be effectively enhanced through reasonable signal processing and control strategies, and meanwhile, the interference from other directions is restrained, so that high-quality audio output is realized.

Inventors

  • Zhou Danchun
  • MING DE
  • ZHAO DINGJIN

Assignees

  • 广东保伦电子股份有限公司

Dates

Publication Date
20260512
Application Date
20250120

Claims (8)

  1. 1. A method of directional broadcasting of sound boxes, the method comprising: in a preset first time window, a plurality of sound sensors are utilized to receive a first sound signal; Calculating a covariance matrix of the sound signal by using a linear constraint minimum variance algorithm, and determining a direction vector of a target direction; Solving a target weight vector by using a Lagrangian multiplier method to obtain a first optimal weight vector; Carrying out weighted summation on the first sound signals by utilizing the first optimal weight vector to generate output signals; playing the output signal by using a sound box; Determining a target signal according to the first sound signal and a direction vector of the target direction; According to the target signal and the output signal, adjusting the target weight vector by using a least mean square LMS algorithm of an adaptive filter to obtain a second optimal weight vector; the second optimal weight vector is utilized to carry out weighted summation on second sound signals to generate second output signals, wherein the second sound signals are received by a plurality of sound sensors in a preset second time window; and playing the second output signal by using the sound box.
  2. 2. The directional broadcasting method of a sound box as claimed in claim 1, wherein calculating a covariance matrix of the first sound signal using a linear constraint minimum variance algorithm, determining a direction vector of a target direction, and determining a target weight vector according to the direction vector of the target direction and a constraint condition thereof, comprises: The covariance matrix of the first sound signal has the expression: R=E[x(n)x H (n)]; Wherein R is a covariance matrix of the first sound signal, E represents an expected value, and x H (n) is a conjugate transpose of x (n); x (n) is a signal vector of the first sound signal, and its expression is: x N (N) is the first sound signal received by the nth sound sensor, n=1, 2,..m; the expression for calculating the direction vector of the target direction is: Wherein, the J is an imaginary unit for a direction vector of the target direction, and satisfies j 2 = -1, d is an array pitch, lambda is a signal wavelength, and theta is an angle of the target direction; direction vector for the nth sound sensor, n=1, 2, M, where M represents the number of sound sensors; the expression of the constraint condition of the direction vector of the target direction is as follows: ; Wherein, the Is a target weight vector.
  3. 3. The directional broadcasting method of sound box according to claim 2, wherein solving the target weight vector by using lagrangian multiplier method to obtain a first optimal weight vector comprises: deriving the Lagrange function, substituting the derived Lagrange function into the constraint condition of the direction vector of the target direction to obtain a first optimal weight vector; wherein, the expression of the Lagrangian function is: ; the expression of the first optimal weight vector is: 。
  4. 4. The directional broadcasting method as set forth in claim 3, wherein the lagrangian function is derived, and the derived lagrangian function is substituted into the constraint condition of the direction vector of the target direction to obtain the first optimal weight vector, specifically: Respectively solving Lagrangian functions And lambda partial derivative, and making the partial derivative zero to obtain a target equation; wherein the Lagrangian function relates to The expression of the partial derivative of (c) is: the partial derivative of the Lagrangian function with respect to λ is expressed as: the expression of the objective equation is: Substituting the target equation into the constraint condition of the direction vector of the target direction to obtain a first optimal weight vector.
  5. 5. The directional broadcasting method of a sound box according to claim 1, wherein adjusting the target weight vector according to the target signal and the output signal by using a least mean square LMS algorithm of an adaptive filter to obtain a second optimal weight vector, further comprises: subtracting the target signal from the output signal to obtain an error signal; iteratively updating the target weight vector according to a preset step factor until a termination condition is met, so as to obtain a second optimal weight vector; ; Wherein, the As a result of the weight vector of the object, In order to update the target weight vector, E (n) is an error signal, and x' (n) is a signal vector of the second sound signal; the expression of the signal vector of the second sound signal is: x’(n)=[x 1 '(n),x 2 '(n),...,x M ’(n)]; wherein x' N (N) is a second sound signal received by the nth sound sensor, n=1, 2, &..m, M being the number of sound sensors; The termination condition is that the iteration number is reached, the error signal is lower than an error threshold or the mean square value of the error signal is lower than a preset mean square value threshold.
  6. 6. The directional broadcasting device of the sound box is characterized by comprising a receiving module, a weight calculating module, a signal calculating module and an output module; the receiving module is used for receiving first sound signals by utilizing a plurality of sound sensors in a preset first time window; the weight calculation module is used for calculating a covariance matrix of the sound signal by using a linear constraint minimum variance algorithm and determining a direction vector of a target direction, determining a target weight vector according to the direction vector of the target direction and constraint conditions of the direction vector, wherein the target weight vector is a beam forming weight vector; The signal calculation module is used for carrying out weighted summation on the first sound signals by utilizing the first optimal weight vector to generate output signals; The output module is used for playing the output signal by utilizing the sound box; The weight updating module is used for determining a target signal according to the first sound signal and the direction vector of the target direction, adjusting the target weight vector to obtain a second optimal weight vector by using a least mean square LMS algorithm of the adaptive filter according to the target signal and the output signal, carrying out weighted summation on the second sound signal by using the second optimal weight vector to generate a second output signal, wherein the second sound signal is received by a plurality of sound sensors in a preset second time window, and playing the second output signal by using a sound box.
  7. 7. The directional broadcasting equipment of the sound box is characterized by comprising a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface are communicated with each other through the communication bus; the memory is configured to store at least one executable instruction that causes the processor to perform the operations of the directional broadcasting method of a sound box according to any one of claims 1-5.
  8. 8. A computer readable storage medium, wherein at least one executable instruction is stored in the storage medium, which when run on a directional broadcasting apparatus/device of a loudspeaker box, causes the directional broadcasting apparatus/device of the loudspeaker box to perform the operations of the directional broadcasting method of the loudspeaker box according to any one of claims 1-5.

Description

Directional broadcasting method, device and equipment of sound box and storage medium Technical Field The embodiment of the invention relates to the technical field of broadcasting, in particular to a directional broadcasting method, device and equipment of a sound box and a computer readable storage medium. Background In the current technical implementation of directional broadcasting of sound boxes, the traditional sound box design often lacks a precise sound wave control mechanism, and has poor directivity, so that sound cannot be effectively concentrated in a specific direction in the propagation process, and the layout of the speakers and the utilization of the sound wave interference phenomenon are insufficient. This makes it difficult for a listener to clearly receive broadcast content when the listener deviates from a predetermined reception area because the energy ratio in a desired direction is not high when the sound diverges around, greatly affecting the accuracy of information propagation. Due to the variety of noise sources present in the environment. The prior art has limited noise reduction and anti-interference capabilities, and cannot efficiently distinguish the target broadcast sound from the interference signals. When a plurality of sounds are mixed together, the clarity and intelligibility of the broadcast sound are greatly reduced. Furthermore, when a coverage range is set for part of sound boxes, accurate regulation and control are difficult to achieve. Or the coverage is too large, so that the sound energy is dispersed, the sound intensity is insufficient at a remote place, or the coverage is too small, so that the actual scene requirement cannot be met, and the resource waste and the poor broadcasting effect are caused. This is mainly due to insufficient analysis of the acoustic propagation model and the lack of efficient algorithms for fine tuning of coverage during signal processing. Disclosure of Invention In view of the above problems, embodiments of the present invention provide a directional broadcasting method, apparatus, device, and computer readable storage medium for a sound box, which are used to effectively enhance signals in a desired direction and suppress interference from other directions through reasonable signal processing and control strategies, so as to implement high-quality audio output. According to one aspect of the embodiment of the invention, a directional broadcasting method of a sound box is provided, and the method comprises the steps of receiving a first sound signal by a plurality of sound sensors in a preset first time window; Calculating a covariance matrix of the sound signal by using a linear constraint minimum variance algorithm, and determining a direction vector of a target direction; Solving a target weight vector by using a Lagrangian multiplier method to obtain a first optimal weight vector; Carrying out weighted summation on the first sound signals by utilizing the first optimal weight vector to generate output signals; And playing the output signal by using a sound box. Specifically, the invention realizes the directional broadcasting of the sound box through the linear constraint minimum variance algorithm, and can effectively enhance the signals in the required direction and inhibit the interference from other directions through reasonable signal processing and control strategies, thereby realizing high-quality audio output. In an alternative way, a target signal is determined according to the first sound signal and a direction vector of the target direction; According to the target signal and the output signal, adjusting the target weight vector by using a least mean square LMS algorithm of an adaptive filter to obtain a second optimal weight vector; the second optimal weight vector is utilized to carry out weighted summation on second sound signals to generate second output signals, wherein the second sound signals are received by a plurality of sound sensors in a preset second time window; and playing the second output signal by using the sound box. Specifically, the present invention uses the LMS algorithm to adjust weights, and adjusts the weight vector through a feedback mechanism (error signal) to adaptively enhance the target signal in a dynamic environment. This process allows the system to automatically optimize its performance under different signal conditions, thereby achieving efficient directional broadcasting. In an alternative manner, using a linear constraint minimum variance algorithm, calculating a covariance matrix of the first sound signal, determining a direction vector of a target direction, and determining a target weight vector according to the direction vector of the target direction and a constraint condition thereof, including: The covariance matrix of the first sound signal has the expression: R=E[x(n)xH(n)]; Wherein R is a covariance matrix of the first sound signal, E represents an expected value, and x H (n