Detailed Description
The following describes embodiments of the present application in detail with reference to the drawings.
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, interfaces, techniques, etc., in order to provide a thorough understanding of the present application.
The term "and/or" is merely an association relationship describing the associated object, and means that three relationships may exist, for example, a and/or B may mean that a exists alone, while a and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship. Further, "a plurality" herein means two or more than two. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, may mean including any one or more elements selected from the group consisting of A, B and C.
As described above, three kinds of sound posts realizing a constant beam width have problems of high-frequency aliasing and poor low-frequency directivity due to the limitations of the shape and algorithm thereof.
For ease of understanding, the structure of the speaker array of the present application will be described.
As shown in fig. 1, a schematic plan view of a speaker array according to an embodiment of the present application is shown. Specifically, as shown in fig. 1, the speaker array 10 includes a first speaker sub-array 11 and a second speaker sub-array 12, wherein the second speaker sub-array 12 is disposed parallel and aligned with the first speaker sub-array 11. In actual use, the second speaker sub-array 12 is placed in a horizontal direction with the first speaker sub-array 11, the second speaker sub-array 12 being located behind the first speaker sub-array 11.
The first speaker sub-array 11 includes a first speaker row 11a, and the first speaker row 11a includes a plurality of first speaker units 111. The second speaker sub-array 12 includes a plurality of second speaker units 121, and the plurality of second speaker units 121 are divided into a second speaker row 12a and a third speaker row 12b that are adjacently disposed. That is, the second speaker sub-array 12 includes a second speaker row 12a and a third speaker row 12b. In actual use, the first speaker line 11a is placed in parallel with the second speaker line 12a and the third speaker line 12b in the horizontal direction, and the second speaker line 12a and the third speaker line 12b are located behind the first speaker line 11 a.
The second speaker units 121 in the second speaker row 12a are staggered with respect to the second speaker units 121 in the third speaker row 12b, and the size of the first speaker unit 111 is larger than the size of the second speaker unit 121.
The second speaker units 121 in the second speaker row 12a are staggered with the second speaker units 121 in the third speaker row 12b, i.e., the centers of the second speaker units 121 in the second speaker row 12a and the centers of the second speaker units 121 in the third speaker row 12b are not located in the same vertical direction, reducing the horizontal distance between the second speaker units 121. In some examples, the centers of the second speaker units 121 in the second speaker row 12a are located in the middle of the centers of two adjacent second speaker units 121 in the third speaker row 12b.
The size of the first speaker unit 111 is larger than the size of the second speaker unit 121, that is, the first speaker sub-array 11 employs a larger speaker unit and the second speaker sub-array 12 employs a smaller speaker unit, canceling the rearward sound signal. The size of the first speaker unit 111 may be 5 to 7 inches and the size of the second speaker unit 121 may be 3 to 4 inches.
As described above, the second speaker sub-array 12 is disposed in alignment with the first speaker sub-array 11, and in some examples, the third speaker row 12b in the second speaker sub-array 12 is aligned with the first speaker row 11a in the first speaker sub-array 11. Since the second speaker units 121 in the second speaker row 12a are staggered with the second speaker units 121 in the third speaker row 12b, the number of second speaker units 121 in the second speaker row 12a is smaller than the number of second speaker units 121 in the third speaker row 12 b.
In the present application, the specific structure of the first speaker unit 111 and the second speaker unit 121 is not limited, and sound production may be satisfied, and for example, a speaker may be included.
In the present embodiment, the upper limit of the frequency aliasing is raised by dividing the second speaker unit 121 in the second speaker sub-array 12 into the second speaker line 12a and the third speaker line 12b with the second speaker unit 121 in the second speaker line 12a being staggered with the second speaker unit 121 in the third speaker line 12b, and the first speaker line 11a including the first speaker line 11a by the first speaker sub-array 11, the first speaker line 11a including the plurality of first speaker units 111, the size of the first speaker unit 111 being larger than the size of the second speaker unit 121 while raising the directivity of the low frequency so that the sound energy is concentrated in the desired range.
In some embodiments, the second speaker sub-array 12 is disposed within the second rectangular box 122 within the first rectangular box 112, and the first rectangular box 112 is the same size as the second rectangular box 122. Since the third speaker row 12b in the second speaker sub-array 12 is aligned with the first speaker row 11a in the first speaker sub-array 11, and the size of the first rectangular box 112 is the same as the size of the second rectangular box 122, the gaps on the left and right sides in the first rectangular box 112 are the same as the gaps on the left and right sides in the second rectangular box 122. The dimensions of the first rectangular box 112 and the second rectangular box 122 may be 2.6:1.6:1, 2:1.44:1, or 1.59:1.26:1 (length: width: height), at which time the standing waves in the first rectangular box 112 and the second rectangular box 122 are minimal.
In some embodiments, each first speaker unit 111 includes a first housing 111a, and each second speaker unit 121 includes a second housing 121a, with both the first housing 111a and the second housing 121a being hermetically sealed. That is, in the speaker array 10, each speaker unit has a closed cabinet, and structural resonance and acoustic short-circuiting phenomena can be reduced.
The back and top of the first casing 111a and the back and top of the second casing 121a are provided with sound absorbing material layers, standing waves generated by reflection of sound waves in the casing are largely eliminated, and amplitude variation in response of the speaker unit is reduced. The thickness of the sound absorbing material layer may be 1-1.5cm, and the low frequency resonance frequency in the case may be reduced by 10%, and the Q value may be reduced by about 20%.
In some embodiments, the first speaker units 111 in the first speaker row 11a are disposed at a first interval, and the second speaker units 121 in the second speaker row 12a and the second speaker units 121 in the third speaker row 12b are disposed at a second interval, wherein the first interval is greater than the second interval. Since the first interval is larger than the second interval and the size of the first speaker unit 111 is larger than the size of the second speaker unit 121, the number of the first speaker units 111 in the first speaker row 11a is smaller than the number of the second speaker units 121 in the third speaker row 12b.
Fig. 2 is a schematic circuit diagram of a speaker according to an embodiment of the present application. The speaker 20 includes a speaker array 21, a plurality of power amplifiers 22, and a filter processing circuit 23. The speaker array 21 is the speaker array of the above-described embodiment which is horizontally arranged, for example, the speaker array 10 in the embodiment of fig. 1. The speaker array of the above embodiment is described in detail in the above embodiment, and will not be described here. A plurality of power amplifiers 22 are coupled to each first speaker unit 111 and each second speaker unit 121, respectively, i.e. each power amplifier 22 is coupled to one speaker unit. The filter processing circuit 23 is coupled to a plurality of power amplifiers 22.
The sound source signal x is input to the filter processing circuit 23, and the filter processing circuit 23 performs weighted filtering on the sound source signal x using the filter coefficients to obtain a filtered audio signal x 1…xL, and each speaker unit in the speaker array 21 is driven by the power amplifier 22, so that the speaker 20 starts to operate.
Wherein the filter coefficients of the filter processing circuit 23 are pre-designed.
Fig. 3 is a schematic flow chart of a driving method of a speaker according to an embodiment of the present application. This driving method is applied to the speaker of the above embodiment, for example, the speaker 20 in the embodiment of fig. 2. The driving method may be performed by an electronic device, for example, a terminal device or a server or other processing device, wherein the terminal device may be a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a Personal digital assistant (Personal DIGITAL ASSISTANT, PDA), a handheld device, a computing device, an in-vehicle device, a wearable device, or the like. In some possible implementations, the method may be implemented by way of a processor invoking computer readable instructions stored in a memory. Specifically, as shown in fig. 3, the driving method includes:
step S31, determining a desired beam pattern of the loudspeaker.
Ideally, an ideal beam pattern includes beams where the beam width is constant at all frequencies, the high frequency and low frequency are directed consistently, the desired directional energy is greatest, and the other directional signals are completely suppressed. The ideal beam response pattern is limited mainly by the size of the speaker array, the law of spatial sampling, etc., and is generally difficult to achieve, and the desired beam pattern is as close as possible to the ideal beam pattern. For example, in the desired beam pattern, the response of the main lobe in the desired direction is maximum, while the response in the undesired direction becomes smaller.
Step S32, obtaining filter coefficients of a filter processing circuit according to the expected beam pattern, so as to drive the loudspeaker array through the filter processing circuit and a plurality of power amplifiers by using the filter coefficients.
And according to the expected beam pattern, an actual design beam pattern is designed, namely, the filter coefficient of the filtering processing circuit is obtained.
And weighting and filtering the sound source signals input to the loudspeaker by using the filter coefficients to obtain filtered audio signals, and driving each loudspeaker unit in the loudspeaker array through the power amplifier so that the loudspeaker starts to work. The filter coefficients are in effect different complex weights applied to the individual frequency components of the audio source signal input to the loudspeaker, resulting in a beam of constant beamwidth.
In this embodiment, the filter coefficient of the filter processing circuit is obtained by determining the desired beam pattern of the speaker according to the desired beam pattern, so that the filter coefficient is applied to the speaker, and the speaker array is driven by the filter processing circuit and the plurality of power amplifiers, so that the driving of the speaker is realized, the upper limit of frequency aliasing is improved, and the directivity of low frequency is improved.
In some embodiments, obtaining filter coefficients of a filter processing circuit from a desired beam pattern includes obtaining a minimum mean square error between a design beam pattern and the desired beam pattern to obtain filter coefficients of the filter processing circuit, wherein side lobes of beams in the design beam pattern are less than a preset value.
Further, in some examples, obtaining a minimum mean square error between the design beam pattern and the desired beam pattern includes calculating a minimum mean square error between the design beam pattern and the desired beam pattern using steering vectors of the speaker array and desired beam direction responses in the desired beam pattern.
The desired beam pattern may be represented by a desired beam response. The expected directional response of the loudspeaker array is assumed to be expressed as follows:
pD(θ)=[pD(θ1),…,pD(θi),…,pD(θN)]θi∈ΘNL,
The desired beam response may be a conventional beam response of some reference frequency or an ideal beam pattern generated in some way. The desired beam response is a beam response in an ideal state.
The design beam pattern is described below. With the center of the speaker array as the origin, the sound pressure at a certain position in space is the result of the combined action of all the units of the speaker array. Assuming that the signal played by each speaker unit is an ideal point sound source S j, any point is subjected to spatial convolution of a spatial transfer function HThe sound pressure at this point can be expressed as:
Where L is the number of speaker units.
The ideal spatial transfer function of the jth speaker unit to any point in space can be expressed as a green's function as follows:
Where k represents wave number, k=2pi f/c, f represents frequency point, and c represents sound velocity.
Let the spatial response of the designed beam of the speaker array be p (θ) for representing the designed beam pattern as follows:
p (θ) = [ p (θ 1),…,p(θi),…,p(θN)],θi∈ΘNL where θ NL represents a spatial region, and is uniformly discretized into N points, i represents an i-th square point).
According to an ideal spatial transfer function, the spatial response of the beam at the ith square point, p (θ i), is as follows:
p(θi)=wHa(θi)
where a (θ i) is the steering vector (otherwise known as the green function) of the speaker array in the direction θ i.
Then, in order to achieve the design objective, i.e. the desired beam pattern is as close as possible to the ideal beam pattern, the minimum mean square error between the design beam pattern and the desired beam pattern is calculated using the steering vector of the loudspeaker array and the desired beam direction response in the desired beam pattern, so that the response of the main lobe in the desired direction is maximized, while the response of the main lobe in the undesired direction is reduced. The calculation formula of the minimum mean square error between the design beam pattern and the expected beam pattern is as follows:
wherein the sidelobes of the beams in the design beam pattern are smaller than a preset value, as shown in the following formula, in order to make the design beam pattern more in line with the desired beam pattern.
Wherein p (theta) and p D (theta) are respectively the designed beam response and the expected beam response when the angle is theta, theta ML is a main lobe area and is discretized into M square points, lambda i is an error weighting coefficient in different directions in the main lobe and represents the fitting degree of the designed beam and the expected beam in different directions, theta SL is a side lobe area and is discretized into S square points, and epsilon is a side lobe constraint value. I.e. the N angles in space, are divided into M points of the main lobe region and S points of the side lobe region.
As described above, the minimum mean square error between the designed beam pattern and the desired beam pattern is obtained, thereby obtaining the filter coefficients of the filter processing circuit. In some embodiments, obtaining a minimum mean square error between the design beam pattern and the desired beam pattern to obtain filter coefficients for the filter processing circuit includes obtaining measured spatial frequency responses for each first speaker unit and each second speaker unit in the speaker array and calculating a minimum mean square error between the design beam pattern and the desired beam pattern using the measured spatial frequency responses to obtain filter coefficients for the filter processing circuit.
The measured spatial frequency response of each first speaker unit refers to the spatial frequency response measured by each first speaker unit over the entire speaker array by measuring the far field impulse response of each first speaker unit. The measured spatial frequency response of each second speaker unit refers to the spatial frequency response measured by each second speaker unit over the entire speaker array by measuring the far field impulse response of each second speaker unit. The far field impulse response of each speaker unit contains the actual spatial orientation of each speaker unit as it were over the entire speaker array.
The far field impulse response of each speaker unit (i.e., the first speaker unit and the second speaker unit) in the speaker array is measured either in the anechoic chamber or outside the chamber. At the time of anechoic chamber measurement, the measurement point is a first preset distance, for example, 2m, from the center position of the speaker array. In outdoor measurement, no wind is required, and there is no reflector in a large surrounding area, and the measurement point is a second preset distance, for example, 5m or 10m, from the center position of the speaker array. On a circle of a given radius (e.g., 2m,5m,10m, etc.), one sample point may be taken every 5 degrees apart, for a total of 72 sample points. Of course, it is also possible to take 360 sampling points with 1 degree interval.
As described above, the minimum mean square error between the designed beam pattern and the desired beam pattern is calculated using the measured spatial frequency response, thereby obtaining the filter coefficients of the filter processing circuit.
In some embodiments, calculating the minimum mean square error between the design beam pattern and the desired beam pattern using the measured spatial frequency response includes weighting steering vectors of the speaker array using the measured spatial frequency response to obtain weighted steering vectors, and calculating the minimum mean square error between the design beam pattern and the desired beam pattern using the weighted steering vectors and the desired beam direction response in the desired beam pattern.
The steering vector of the speaker array is weighted using the measured spatial frequency response as follows:
Where u (ω) represents the spatial frequency response of the measured array element and ω represents the angular frequency.
The filter coefficients are then calculated using the weighted steering vectors, i.e. b (θ, w) in the above equation is substituted for a (θ i) in the above equation for the minimum mean square error.
In this embodiment, the steering vector of the speaker array is weighted by using the actually measured spatial frequency response, and the minimum mean square error between the designed beam pattern and the expected beam pattern is calculated by using the weighted steering vector and the expected beam direction response in the expected beam pattern, so that the filter coefficient is more consistent with the actual situation of the speaker array, the performance of the speaker array is more stable, the directivity is better, the cancellation of the rear signal of the speaker array by using the first speaker row of the speaker array is realized, and the low-frequency directivity is improved.
It will be appreciated by those skilled in the art that in the above-described method of the specific embodiments, the written order of steps is not meant to imply a strict order of execution but rather should be construed according to the function and possibly inherent logic of the steps.
Fig. 4 is a schematic diagram of a driving apparatus of a speaker according to an embodiment of the present application. The driving device 40 is applied to the speaker of the above embodiment, for example, the speaker in fig. 2. The driving means 40 comprise a determination module 41 and an acquisition module 42. The determination module 41 is used to determine the desired beam pattern of the loudspeaker. The obtaining module 42 is configured to obtain filter coefficients of the filter processing circuit according to the desired beam pattern, so as to drive the speaker array through the filter processing circuit and the plurality of power amplifiers using the filter coefficients.
Fig. 5 is a schematic diagram of an electronic device 50 according to an embodiment of the present application. The electronic device 50 comprises a memory 51 and a processor 52 coupled to each other, the processor 52 being adapted to execute program instructions stored in the memory 51 for carrying out the steps of any of the above-described embodiments of the method of driving a loudspeaker. In one specific implementation scenario, electronic device 50 may include, but is not limited to, a microcomputer, a server, and further, electronic device 50 may also include a mobile device such as a notebook computer, a tablet computer, etc., without limitation.
In particular, the processor 52 is configured to control itself and the memory 51 to implement the steps of, or to implement the steps of, the training method embodiment of any of the image detection models described above. The processor 52 may also be referred to as a CPU (Central Processing Unit ). The processor 52 may be an integrated circuit chip having signal processing capabilities. The Processor 52 may also be a general purpose Processor, a digital signal Processor (DIGITAL SIGNAL Processor, DSP), an Application SPECIFIC INTEGRATED Circuit (ASIC), a Field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. In addition, the processor 52 may be commonly implemented by an integrated circuit chip.
FIG. 6 is a schematic diagram of a frame of a computer readable storage medium 60 according to an embodiment of the present application. The computer readable storage medium 60 stores program instructions 601 executable by a processor, the program instructions 601 being for implementing the steps in the driving method embodiment of any of the speakers described above.
In some embodiments, functions or modules included in an apparatus provided by the embodiments of the present disclosure may be used to perform a method described in the foregoing method embodiments, and specific implementations thereof may refer to descriptions of the foregoing method embodiments, which are not repeated herein for brevity.
The foregoing description of various embodiments is intended to highlight differences between the various embodiments, which may be the same or similar to each other by reference, and is not repeated herein for the sake of brevity.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical, or other forms.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes.