Sound box directivity intelligent adjustment control method, system and device
Through the closed-loop control algorithm of the directional adjustment model and the sound array acquisition system, the problem of low sound quality loss and accuracy in the directional adjustment of the speaker is solved, and the precise matching and adaptability of the directional angle of the speaker is achieved.
Patent Information
- Application Number
- CN202411255847.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-11-12
AI Technical Summary
The existing speaker directional adjustment technology has problems such as loss of sound quality and low accuracy of directional angle adjustment, especially the lack of adaptability of digital signal processing methods in different application scenarios.
The directional adjustment model and acoustic array acquisition system are adopted to accurately adjust the directional angle of the speaker through a closed-loop control algorithm, ensuring the minimum sound quality loss, and improving the accuracy and adaptability of the directional angle. The specific steps include obtaining speaker parameters, setting theoretical directional angles, calculating the sound unit parameters, collecting actual directional angles, and adjusting parameters through a closed-loop control algorithm until the precise matching of the theoretical directional angle is achieved.
It realizes the accuracy and adaptability of the speaker's directional angle while ensuring sound quality, reduces operational complexity and sound quality loss, and is suitable for a variety of application scenarios.
Smart Images

Figure CN118945558A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of speaker intelligent control, and in particular to a speaker directivity intelligent adjustment control method, system and device. Background Art
[0002] The directivity adjustment of speakers plays an important role in improving sound quality and listening experience. It is used in a wide range of applications, including home theaters, public broadcasting systems, conference systems, and performance venues.
[0003] The current technologies mainly include traditional mechanical adjustment methods and digital signal processing methods. The mechanical adjustment method changes the direction of sound wave propagation by physically rotating the speaker or adjusting the height and angle of the speaker. Although this method is simple and direct, it has problems such as complex operation, manual intervention, limited accuracy and complex operation; the digital signal processing method achieves directivity control by adjusting the parameters of the audio signal. The main technologies include beamforming and frequency equalizer adjustment.
[0004] Although digital signal processing methods have made significant progress in directivity adjustment and achieved more flexible control, the existing technology cannot guarantee the sound quality of the speaker due to the problem of sound quality loss in digital signal processing. In addition, due to the lack of feedback on the directivity angle, the existing technology has low accuracy in adjusting the directivity angle and is not adaptable to different application scenarios. Summary of the invention
[0005] In order to solve the problems in the above-mentioned prior art, the present invention provides a method, system and device for intelligently adjusting and controlling the directivity of a speaker. The invention achieves the minimum sound quality loss under the premise of ensuring the directivity angle through a directivity adjustment model. At the same time, the directivity angle of the speaker is collected through a sound array collection system, and a closed-loop control algorithm is used for feedback to achieve closed-loop control of the directivity angle of the speaker, thereby improving the accuracy of the directivity angle of the speaker and making it more adaptable. To achieve the above-mentioned purpose, the technical solution is as follows:
[0006] In a first aspect, the present invention provides a method for intelligently adjusting and controlling the directivity of a speaker, the method comprising:
[0007] S1. Obtain speaker parameters and speaker control software, and set the theoretical directivity angle of the speaker through the speaker control software according to the venue environment;
[0008] S2. According to the theoretical directivity angle of the speaker and the speaker parameters, the parameters of each sound unit in the speaker are obtained through the directivity adjustment model;
[0009] S3, obtaining the sound output of the speaker through a beamforming algorithm according to the parameters of each sound unit in the speaker and the theoretical directivity angle of the speaker;
[0010] S4, collecting the sound output of the speaker through the sound array collection system of the speaker, and using the beam calculation method to obtain the actual directivity angle of the speaker;
[0011] S5. Compare the theoretical directivity angle of the speaker with the actual directivity angle of the speaker, and determine the subsequent steps according to the judgment rules. The judgment rules are as follows:
[0012] Rule 1: If the actual directivity angle of the speaker meets the theoretical directivity angle of the speaker, the process ends;
[0013] Rule 2: If the actual directivity angle of the speaker does not meet the theoretical directivity angle of the speaker, proceed to the next step;
[0014] S6. According to the actual directivity angle of the speaker and the theoretical directivity angle of the speaker, the parameters of each sound unit after adjustment are obtained through a closed-loop control algorithm;
[0015] S7, replacing the parameters of each sound unit in the speaker with the adjusted parameters of each sound unit, and repeating S3 to S7 until the process ends.
[0016] Optionally, in S2, according to the theoretical directivity angle of the speaker and the parameters of the speaker, the parameters of each sound unit in the speaker are obtained through the directivity adjustment model, including:
[0017] S21. According to the sound box parameters, obtain the number of sound units in the sound box and initial parameters of each sound unit, wherein the initial parameters include position parameters of the sound unit, maximum gain of the sound unit, and sound intensity ratios of the sound unit in various directions;
[0018] S22, inputting the number of sound units in the speaker and initial parameters of each sound unit into the directivity adjustment model to obtain the directivity adjustment model in an initialized state;
[0019] S23, inputting the theoretical directivity angle of the speaker into the directivity adjustment model in the initialization state to obtain the delay parameters and gain parameters of each sound unit,
[0020] The delay calculation formula of each sound unit is as follows:
[0021] (1)
[0022] In the formula, is the delay parameter of the i-th sound unit, is the distance from the ith sound unit to the reference point, is the theoretical directivity angle of the speaker, c is the speed of sound;
[0023] The gain calculation formula of each sound unit is as follows:
[0024] (2)
[0025] In the formula, is the gain parameter of the i-th sound unit, is the maximum gain of the sound unit, is the initial directivity angle of the speaker, is a gain function, which is adjusted according to the difference in directivity angle;
[0026] S24, according to the delay parameters and gain parameters of each sound unit, through the optimization algorithm, the delay parameters and the gain parameters are slightly adjusted to obtain the parameters of each sound unit in the speaker,
[0027] The optimization algorithm function is as follows:
[0028] (3)
[0029] In the formula, is the sound quality error function, for After a slight adjustment of the value near for After a slight adjustment of the value near is the number of the ith sound unit at time The sound of every moment, For the sound unit The ratio of sound intensity at angle, is the angle from the ith sound unit to the reference point, and N is the number of sound units.
[0030] (4)
[0031] In the formula, These are the parameters of each sound unit in the speaker.
[0032] Optionally, S3 obtains the sound output of the speaker through a beamforming algorithm according to the parameters of each sound unit in the speaker and the theoretical directivity angle of the speaker, including:
[0033] S31, according to the parameters of each sound unit in the speaker and the theoretical directivity angle of the speaker, a finite number of sample observation method is used to obtain an amplitude weighting matrix W,
[0034] (5)
[0035] In the formula, is the weighted value of the first sound unit, is the weighted value of the second sound unit, is the weighted value of the Nth sounding unit;
[0036] S32, according to the amplitude weighting matrix W and the parameters of each sound unit in the speaker, the sound of each sound unit is summed up, as shown in formula (6), to obtain the sound output of the speaker,
[0037] (6)
[0038] In the formula, The sound output of the speaker.
[0039] Optionally, in S4, the sound array collection system of the speaker is used to collect the sound output of the speaker, and a beam calculation method is used to obtain an actual directivity angle of the speaker, including:
[0040] S41, collecting the sound output of the speaker through the sound array collection system of the speaker, and obtaining the receiving signal a of the sound array collection system t ,
[0041] (7)
[0042] In the formula, is the received signal of the acoustic array acquisition system, is the received signal of the mth microphone at time t, where m is the number of microphones;
[0043] S42. According to the position of the microphone in the sound array acquisition system, the delay compensation of the sound of each microphone in different directions is obtained, as shown in formula (8):
[0044] (8)
[0045] In the formula, is the horizontal angle at which the sound enters the sound array acquisition system, is the vertical angle at which the sound enters the sound array acquisition system, is the delay compensation time of the jth microphone, is the distance difference between the sound to the jth microphone and the sound to the center of the sound array acquisition system;
[0046] S43, according to the received signal a of the acoustic array acquisition system t and delay compensation of each microphone in different directions, The signals of are superimposed, as shown in formula (9), and the direction is obtained The signal output on
[0047] (9)
[0048] In the formula, The direction at the t moment is The signal output, is the jth microphone at Signal output at each moment;
[0049] S44, according to the direction The signal output is, according to formula (10), the direction is obtained Signal output strength on ;
[0050] (10)
[0051] In the formula, The direction at the t moment is Signal output strength on ;
[0052] S45, obtaining the signal output strength at each angle, comparing the signal output strength at each angle, and obtaining the angle of the direction of the maximum signal output strength ;
[0053] S46, according to the angle of the maximum signal output intensity direction , select the angle with maximum signal output strength The vertical angle of the speaker is .
[0054] Optionally, in S6, according to the actual directivity angle of the speaker and the theoretical directivity angle of the speaker, a closed-loop control algorithm is used to obtain the adjusted parameters of each sound unit, including:
[0055] S61. According to the actual directivity angle of the speaker And the theoretical orientation angle , through formula (11), we can get the actual directivity angle of the speaker And the theoretical directivity angle of the speaker The error between
[0056] (11)
[0057] In the formula, It is the error between the actual directivity angle of the speaker and the theoretical directivity angle of the speaker;
[0058] S62, according to the actual directivity angle of the speaker And the theoretical directivity angle of the speaker The error between , through formula (12), the adjustment amount of the delay parameter of each sound unit is obtained,
[0059] (12)
[0060] In the formula, is the adjustment amount of the delay parameter of the i-th sound unit, is the proportional gain of the delay parameter of the i-th sound unit, is the integral gain of the delay parameter of the i-th sound unit, is the differential gain of the delay parameter of the i-th sound unit, is the error between the actual directivity angle of the speaker at time t and the theoretical directivity angle;
[0061] S63, according to the actual directivity angle of the speaker And the theoretical directivity angle of the speaker The error between , through formula (13), the adjustment amount of the gain parameter of each sound unit is obtained,
[0062] (13)
[0063] In the formula, is the adjustment amount of the gain parameter of the i-th sound unit, is the proportional gain of the i-th sound unit gain parameter, is the integral gain of the gain parameter of the i-th sounding unit, is the differential gain of the gain parameter of the i-th sounding unit;
[0064] S64, according to the adjustment amount of the delay parameter of each sound unit and the adjustment amount of the gain parameter of each sound unit, the adjusted delay parameter of each sound unit and the adjusted gain parameter of each sound unit are obtained by formula (14) and formula (15), and the adjusted delay parameter of each sound unit and the adjusted gain parameter of each sound unit are the adjusted parameters of each sound unit.
[0065] (14)
[0066] (15)
[0067] In the formula, is the delay parameter of each sound unit after adjustment. It is the gain parameter of each sound unit after adjustment.
[0068] Optionally, the judgment criteria for comparing the actual directivity angle of the speaker with the theoretical directivity angle of the speaker include:
[0069] If the theoretical directivity angle -1°≤actual directivity angle≤theoretical directivity angle +1°, the actual directivity angle of the speaker meets the theoretical directivity angle of the speaker;
[0070] If the actual directivity angle is less than the theoretical directivity angle -1° or the actual directivity angle is greater than the theoretical directivity angle +1°, the actual directivity angle of the speaker does not conform to the theoretical directivity angle of the speaker.
[0071] Optionally, the number of sound-emitting units in the speaker is not less than 6.
[0072] Optionally, the sound array in the sound array acquisition system includes a linear sound array and a planar sound array.
[0073] In a second aspect, the present invention provides a speaker directivity intelligent adjustment control system, which is applied to a speaker directivity intelligent adjustment control method, and the system includes:
[0074] An input module is used to obtain speaker parameters and speaker control software, and to set the theoretical directivity angle of the speaker through the speaker control software according to the venue environment;
[0075] An adjustment module, used to obtain the parameters of each sound unit in the speaker through a directivity adjustment model according to the theoretical directivity angle of the speaker and the speaker parameters;
[0076] A first acquisition module is used to obtain the sound output of the speaker through a beamforming algorithm according to the parameters of each sound unit in the speaker and the theoretical directivity angle of the speaker;
[0077] The second acquisition module is used to collect the sound output of the speaker through the sound array acquisition system of the speaker, and obtain the actual directivity angle of the speaker by using the beam calculation method;
[0078] The judgment module is used to compare the theoretical directivity angle of the speaker with the actual directivity angle of the speaker, and judge the subsequent steps according to the judgment rules. The judgment rules are as follows:
[0079] Rule 1: If the actual directivity angle of the speaker meets the theoretical directivity angle of the speaker, the process ends;
[0080] Rule 2: If the actual directivity angle of the speaker does not match the theoretical directivity angle of the speaker, proceed to the next step;
[0081] The third acquisition module is used to obtain the adjusted parameters of each sound unit through a closed-loop control algorithm according to the actual directivity angle of the speaker and the theoretical directivity angle of the speaker;
[0082] The parameter replacement module is used to replace the parameters of each sound unit in the speaker with the adjusted parameters of each sound unit, and repeat the control process until the process ends.
[0083] In the third aspect, the present invention provides a device for intelligent adjustment and control of speaker directivity, which is applied to a method for intelligent adjustment and control of speaker directivity. The device includes: a sound unit, a sound array acquisition system, speaker control software, a controller, a memory, a processor, and a speaker directivity adjustment and control adapter program stored in the memory and executable on the processor. When the speaker directivity adjustment and control adapter program is executed by the processor, the steps of the method for intelligent adjustment and control of speaker directivity are implemented.
[0084] Compared with the prior art, the technical solution of the present invention has at least the following beneficial effects:
[0085] On the one hand, the above scheme achieves minimal sound quality loss while ensuring the directivity angle through the directivity adjustment model. On the other hand, the directivity angle of the speaker is collected by the sound array acquisition system, and a closed-loop control algorithm is used for feedback to achieve closed-loop control of the directivity angle of the speaker, thereby improving the accuracy of the directivity angle of the speaker and making it more adaptable. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0087] Figure 1 is a flow chart provided by an embodiment of the present invention;
[0088] Figure 2 is a flow chart of directivity adjustment of a speaker provided by an embodiment of the present invention;
[0089] Figure 3 is a flow chart of beamforming of a speaker provided by an embodiment of the present invention;
[0090] Figure 4 is a flow chart of actual directivity angle acquisition of a speaker provided by an embodiment of the present invention;
[0091] Figure 5 is a flow chart of closed-loop control of a speaker provided by an embodiment of the present invention;
[0092] Figure 6 is a system block diagram provided by an embodiment of the present invention;
[0093] Figure 7It is a block diagram of a device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0094] The technical solution of the present invention is described below in conjunction with the accompanying drawings.
[0095] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.
[0096] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0097] like Figures 1 to 5 As shown, the present invention provides a method for intelligently adjusting and controlling the directivity of a speaker, which is implemented by a control system for intelligently adjusting and controlling the directivity of a speaker and a device for intelligently adjusting and controlling the directivity of a speaker, and the method comprises:
[0098] S1. Obtain speaker parameters and speaker control software, and set the theoretical directivity angle of the speaker through the speaker control software according to the venue environment;
[0099] S2. According to the theoretical directivity angle of the speaker and the speaker parameters, the parameters of each sound unit in the speaker are obtained through the directivity adjustment model;
[0100] Specifically, in S2, according to the theoretical directivity angle of the speaker and the parameters of the speaker, the parameters of each sound unit in the speaker are obtained through the directivity adjustment model, including:
[0101] S21. According to the sound box parameters, obtain the number of sound units in the sound box and initial parameters of each sound unit, wherein the initial parameters include position parameters of the sound unit, maximum gain of the sound unit, and sound intensity ratios of the sound unit in various directions;
[0102] Furthermore, the number of sound-emitting units in the speaker is 6.
[0103] S22, inputting the number of sound units in the speaker and initial parameters of each sound unit into the directivity adjustment model to obtain the directivity adjustment model in an initialized state;
[0104] S23, inputting the theoretical directivity angle of the speaker into the directivity adjustment model in the initialized state to obtain the delay parameters and gain parameters of each sound unit,
[0105] The delay calculation formula of each sound unit is as follows:
[0106] (1)
[0107] In the formula, is the delay parameter of the i-th sound unit, is the distance from the ith sound unit to the reference point, is the theoretical directivity angle of the speaker, c is the speed of sound;
[0108] The gain calculation formula of each sound unit is as follows:
[0109] (2)
[0110] In the formula, is the gain parameter of the i-th sound unit, is the maximum gain of the sound unit, is the initial directivity angle of the speaker, is a gain function, which is adjusted according to the difference in directivity angle;
[0111] S24, according to the delay parameters and gain parameters of each sound unit, through the optimization algorithm, the delay parameters and the gain parameters are slightly adjusted to obtain the parameters of each sound unit in the speaker,
[0112] The optimization algorithm function is as follows:
[0113] (3)
[0114] In the formula, is the sound quality error function, for After a slight adjustment of the value near for After a slight adjustment of the value near is the number of the ith sound unit at time The sound of every moment, For the sound unit The ratio of sound intensity at angle, is the angle from the ith sound unit to the reference point, and N is the number of sound units.
[0115] (4)
[0116] In the formula, These are the parameters of each sound unit in the speaker.
[0117] S3, obtaining the sound output of the speaker through a beamforming algorithm according to the parameters of each sound unit in the speaker and the theoretical directivity angle of the speaker;
[0118] Specifically, in S3, according to the parameters of each sound unit in the speaker and the theoretical directivity angle of the speaker, the sound output of the speaker is obtained through a beamforming algorithm, including:
[0119] S31, according to the parameters of each sound unit in the speaker and the theoretical directivity angle of the speaker, a finite number of sample observation method is used to obtain an amplitude weighting matrix W,
[0120] (5)
[0121] In the formula, is the weighted value of the first sound unit, is the weighted value of the second sound unit, is the weighted value of the Nth sounding unit;
[0122] S32, according to the amplitude weighted matrix W and the parameters of each sound unit in the speaker, the sound of each sound unit is summed up, as shown in formula (6), to obtain the sound output of the speaker,
[0123] (6)
[0124] In the formula, The sound output of the speaker.
[0125] S4, collecting the sound output of the speaker through the sound array collection system of the speaker, and using the beam calculation method to obtain the actual directivity angle of the speaker;
[0126] Specifically, in S4, the sound array collection system of the speaker is used to collect the sound output of the speaker, and the beam calculation method is used to obtain the actual directivity angle of the speaker, including:
[0127] S41, collecting the sound output of the speaker through the sound array collection system of the speaker, and obtaining the receiving signal a of the sound array collection system t ,
[0128] (7)
[0129] In the formula, is the received signal of the acoustic array acquisition system, is the received signal of the mth microphone at time t, where m is the number of microphones;
[0130] Furthermore, the sound array in the sound array acquisition system adopts a linear sound array.
[0131] S42. According to the position of the microphone in the sound array acquisition system, the delay compensation of the sound of each microphone in different directions is obtained, as shown in formula (8):
[0132] (8)
[0133] In the formula, is the horizontal angle at which the sound enters the sound array acquisition system, is the vertical angle at which the sound enters the sound array acquisition system, is the delay compensation time of the jth microphone, is the distance difference between the sound to the jth microphone and the sound to the center of the sound array acquisition system;
[0134] S43, according to the received signal a of the acoustic array acquisition system t and delay compensation of each microphone in different directions, The signals of are superimposed, as shown in formula (9), and the direction is obtained The signal output on
[0135] (9)
[0136] In the formula, The direction at the t moment is The signal output, is the jth microphone at Signal output at each moment;
[0137] S44, according to the direction The signal output is, according to formula (10), the direction is obtained Signal output strength on ;
[0138] (10)
[0139] In the formula, The direction at the t moment is Signal output strength on ;
[0140] S45, obtaining the signal output strength at each angle, comparing the signal output strength at each angle, and obtaining the angle of the direction of the maximum signal output strength ;
[0141] S46, according to the angle of the maximum signal output intensity direction , select the angle with maximum signal output strength The vertical angle of the speaker is .
[0142] S5. Compare the theoretical directivity angle of the speaker with the actual directivity angle of the speaker, and determine the subsequent steps according to the judgment rules. The judgment rules are as follows:
[0143] Rule 1: If the actual directivity angle of the speaker meets the theoretical directivity angle of the speaker, the process ends;
[0144] Rule 2: If the actual directivity angle of the speaker does not match the theoretical directivity angle of the speaker, proceed to the next step;
[0145] Specifically, the judgment criteria for comparing the actual directivity angle of the speaker with the theoretical directivity angle of the speaker include:
[0146] If the theoretical directivity angle -1°≤actual directivity angle≤theoretical directivity angle +1°, the actual directivity angle of the speaker meets the theoretical directivity angle of the speaker;
[0147] If the actual directivity angle is less than the theoretical directivity angle -1° or the actual directivity angle is greater than the theoretical directivity angle +1°, the actual directivity angle of the speaker does not conform to the theoretical directivity angle of the speaker.
[0148] S6. According to the actual directivity angle of the speaker and the theoretical directivity angle of the speaker, the parameters of each sound unit after adjustment are obtained through a closed-loop control algorithm;
[0149] Specifically, in S6, according to the actual directivity angle of the speaker and the theoretical directivity angle of the speaker, the parameters of each sound unit after adjustment are obtained through a closed-loop control algorithm, including:
[0150] S61, according to the actual directivity angle of the speaker From the perspective of theoretical orientation , through formula (11), we can get the actual directivity angle of the speaker And the theoretical directivity angle of the speaker The error between
[0151] (11)
[0152] In the formula, It is the error between the actual directivity angle of the speaker and the theoretical directivity angle of the speaker;
[0153] S62, according to the actual directivity angle of the speaker And the theoretical directivity angle of the speaker The error between , through formula (12), the adjustment amount of the delay parameter of each sound unit is obtained,
[0154] (12)
[0155] In the formula, is the adjustment amount of the delay parameter of the i-th sound unit, is the proportional gain of the delay parameter of the i-th sound unit, is the integral gain of the delay parameter of the i-th sound unit, For the i
[0156] Furthermore, an acoustic simulation analysis is performed on the speaker directivity according to the speaker parameters to obtain the proportional gain of the delay parameters and gain parameters of each sound unit, the integral gain of the delay parameters and gain parameters of each sound unit, and the differential gain of the delay parameters and gain parameters of each sound unit.
[0157] S64, according to the adjustment amount of the delay parameter of each sound unit and the adjustment amount of the gain parameter of each sound unit, the adjusted delay parameter of each sound unit and the adjusted gain parameter of each sound unit are obtained by formula (14) and formula (15), and the adjusted delay parameter of each sound unit and the adjusted gain parameter of each sound unit are the adjusted parameters of each sound unit.
[0158] S7, replacing the parameters of each sound unit in the speaker with the adjusted parameters of each sound unit, and repeating S3 to S7 until the process ends.
[0159] like Figure 6 As shown, the present invention provides a speaker directivity intelligent adjustment control system, which is applied to a speaker directivity intelligent adjustment control method. The system includes: an input module, an adjustment module, a first acquisition module, a second acquisition module, a determination module, a third acquisition module and a parameter replacement module. Specifically,
[0160] The input module is used to obtain speaker parameters and speaker control software, and set the theoretical directivity angle of the speaker through the speaker control software according to the venue environment;
[0161] The adjustment module is used to obtain the parameters of each sound unit in the speaker through the directivity adjustment model according to the theoretical directivity angle of the speaker and the speaker parameters;
[0162] The first acquisition module is used to obtain the sound output of the speaker through a beamforming algorithm according to the parameters of each sound unit in the speaker and the theoretical directivity angle of the speaker;
[0163] The second acquisition module is used to collect the sound output of the speaker through the sound array acquisition system of the speaker, and obtain the actual directivity angle of the speaker by using the beam calculation method;
[0164] The determination module is used to compare the theoretical directivity angle of the speaker with the actual directivity angle of the speaker, and determine the subsequent steps according to the determination rules. The determination rules are as follows:
[0165] Rule 1: If the actual directivity angle of the speaker meets the theoretical directivity angle of the speaker, the process ends;
[0166] Rule 2: If the actual directivity angle of the speaker does not match the theoretical directivity angle of the speaker, proceed to the next step;
[0167] The third acquisition module is used to obtain the adjusted parameters of each sound unit through a closed-loop control algorithm according to the actual directivity angle of the speaker and the theoretical directivity angle of the speaker;
[0168] The parameter replacement module is used to replace the parameters of each sound unit in the speaker with the adjusted parameters of each sound unit, and repeat the control process until the process ends.
[0169] like Figure 7 As shown, the present invention provides a device for intelligent adjustment and control of speaker directivity, which is applied to a method for intelligent adjustment and control of speaker directivity. The device includes: a sound unit, a sound array acquisition system, speaker control software, a controller, a memory, a processor, and a speaker directivity adjustment control adapter program stored in the memory and runnable on the processor.
[0170] Specifically, when the speaker directivity adjustment control adapter program is executed by the processor, the steps of the speaker directivity intelligent adjustment control method are implemented.
[0171] The present invention provides a method, system and device for intelligently adjusting and controlling the directivity of a speaker. The present invention achieves minimum sound quality loss by using a directivity adjustment model while ensuring the directivity angle. At the same time, the present invention collects the directivity angle of the speaker through an acoustic array collection system, and adopts a closed-loop control algorithm for feedback to achieve closed-loop control of the directivity angle of the speaker, thereby improving the accuracy of the directivity angle of the speaker and making it more adaptable.
[0172] It is to be understood that the present invention is described by the above embodiments and should not be construed as limiting the embodiments of the present invention and the scope of the present invention. It is known to those skilled in the art that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application are within the scope of protection of the present invention.
Claims
1. A method for intelligently adjusting and controlling the directivity of a speaker. It is characterized in that The method comprises: S1. Acquire speaker parameters and speaker control software, and set the theoretical directivity angle of the speaker through the speaker control software according to the venue environment; S2. According to the theoretical directivity angle of the speaker and the speaker parameters, the parameters of each sound unit in the speaker are obtained through a directivity adjustment model; S3, obtaining the sound output of the speaker through a beamforming algorithm according to the parameters of each sound unit in the speaker and the theoretical directivity angle of the speaker; S4, collecting the sound output of the speaker through the sound array collection system of the speaker, and using a beam calculation method to obtain the actual directivity angle of the speaker; S5, comparing the theoretical directivity angle of the speaker with the actual directivity angle of the speaker, and determining the subsequent steps according to the determination rules, the determination rules are as follows: Rule 1: If the actual directivity angle of the speaker meets the theoretical directivity angle of the speaker, the process ends; Rule 2: If the actual directivity angle of the speaker does not conform to the theoretical directivity angle of the speaker, proceed to the next step; S6. According to the actual directivity angle of the speaker and the theoretical directivity angle of the speaker, the parameters of each sound unit after adjustment are obtained through a closed-loop control algorithm; S7, replacing the parameters of each sound unit in the speaker with the adjusted parameters of each sound unit, and repeating S3 to S7 until the process ends.
2. According to claim 1, the method for intelligently adjusting and controlling the directivity of a speaker, It is characterized in that In S2, according to the theoretical directivity angle of the speaker and the parameters of the speaker, the parameters of each sound unit in the speaker are obtained through the directivity adjustment model, including: S21. According to the speaker parameters, obtain the number of sound units in the speaker and initial parameters of each sound unit, wherein the initial parameters include position parameters of the sound unit, maximum gain of the sound unit, and sound intensity ratios of the sound unit in various directions; S22, inputting the number of sound-emitting units in the sound box and initial parameters of each sound-emitting unit into a directivity adjustment model to obtain a directivity adjustment model in an initialized state; S23, inputting the theoretical directivity angle of the sound box into the directivity adjustment model in the initialization state to obtain the delay parameters and gain parameters of each sound-emitting unit, The delay calculation formula of each sound unit is as follows: (1) In the formula, is the delay parameter of the i-th sound unit, is the distance from the ith sound unit to the reference point, is the theoretical directivity angle of the speaker, and c is the speed of sound; The gain calculation formula of each sound unit is as follows: (2) In the formula, is the gain parameter of the i-th sound unit, is the maximum gain of the sound unit, is the initial directivity angle of the speaker, is a gain function, which is adjusted according to the difference in directivity angle; S24, according to the delay parameters and gain parameters of each sound-emitting unit, the delay parameters and the gain parameters are slightly adjusted through an optimization algorithm to obtain the parameters of each sound-emitting unit in the speaker. The optimization algorithm function is as follows: (3) In the formula, is the sound quality error function, for After a slight adjustment of the value near for After a slight adjustment of the value near is the number of the ith sound unit at time The sound of every moment, For the sound unit The ratio of sound intensity at angle, is the angle from the i-th sound unit to the reference point, N is the number of sound units, (4) In the formula, These are the parameters of each sound unit in the speaker.
3. The method for intelligently adjusting the directivity of a speaker according to claim 2, It is characterized in that In S3, the sound output of the speaker is obtained by a beamforming algorithm according to the parameters of each sound unit in the speaker and the theoretical directivity angle of the speaker, including: S31, according to the parameters of each sound unit in the speaker and the theoretical directivity angle of the speaker, a finite number of sample observation method is used to obtain an amplitude weighting matrix W, (5) In the formula, is the weighted value of the first sound unit, is the weighted value of the second sound unit, is the weighted value of the Nth sounding unit; S32, according to the amplitude weighting matrix W and the parameters of each sound unit in the speaker, the sound of each sound unit is summed up, as shown in formula (6), to obtain the sound output of the speaker, (6) In the formula, The sound output of the speaker.
4. The method for intelligently adjusting and controlling the directivity of a speaker according to claim 3, It is characterized in that In S4, the sound array collection system of the speaker is used to collect the sound output of the speaker, and the actual directivity angle of the speaker is obtained by using a beam calculation method, including: S41, collecting the sound output of the speaker through the sound array collection system of the speaker, and obtaining the receiving signal a of the sound array collection system t , (7) In the formula, is the received signal of the acoustic array acquisition system, is the received signal of the mth microphone at time t, where m is the number of microphones; S42. According to the position of the microphone in the sound array acquisition system, the delay compensation of the sound of each microphone in different directions is obtained, as shown in formula (8): (8) In the formula, is the horizontal angle at which the sound enters the sound array acquisition system, is the vertical angle at which the sound enters the sound array acquisition system, is the delay compensation time of the jth microphone, is the distance difference between the sound to the jth microphone and the sound to the center of the sound array acquisition system; S43, according to the received signal a of the acoustic array acquisition system t And the delay compensation of each microphone in different directions will be The signals of are superimposed, as shown in formula (9), and the direction is obtained The signal output on (9) In the formula, The direction at the t moment is The signal output, is the jth microphone at Signal output at each moment; S44, according to the direction The signal output is, according to formula (10), the direction is obtained Signal output strength on ; (10) In the formula, The direction at the t moment is Signal output strength on ; S45, obtaining the signal output strength at each angle, comparing the signal output strength at each angle, and obtaining the angle of the direction of the maximum signal output strength ; S46, according to the angle of the maximum signal output intensity direction , select the angle of the maximum signal output intensity The vertical angle of the speaker is .
5. The method for intelligently adjusting and controlling the directivity of a speaker according to claim 4, It is characterized in that In S6, the parameters of each sound unit after adjustment are obtained through a closed-loop control algorithm according to the actual directivity angle of the sound box and the theoretical directivity angle of the sound box, including: S61, according to the actual directivity angle of the speaker and the theoretical directivity angle , through formula (11), the actual directivity angle of the speaker is obtained and the theoretical directivity angle of the speaker The error between (11) In the formula, is the error between the actual directivity angle of the speaker and the theoretical directivity angle of the speaker; S62, according to the actual directivity angle of the speaker and the theoretical directivity angle of the speaker The error between , through formula (12), the adjustment amount of the delay parameter of each sound unit is obtained, (12) In the formula, is the adjustment amount of the delay parameter of the i-th sound unit, is the proportional gain of the delay parameter of the i-th sound unit, is the integral gain of the delay parameter of the i-th sound unit, is the differential gain of the delay parameter of the i-th sound unit, is the error between the actual directivity angle of the speaker at time t and the theoretical directivity angle; S63, according to the actual directivity angle of the speaker and the theoretical directivity angle of the speaker The error between , through formula (13), the adjustment amount of the gain parameter of each sound unit is obtained, (13) In the formula, is the adjustment amount of the gain parameter of the i-th sound unit, is the proportional gain of the i-th sound unit gain parameter, is the integral gain of the gain parameter of the i-th sounding unit, is the differential gain of the gain parameter of the i-th sounding unit; S64, according to the adjustment amount of the delay parameter of each sound unit and the adjustment amount of the gain parameter of each sound unit, the adjusted delay parameter of each sound unit and the adjusted gain parameter of each sound unit are obtained by formula (14) and formula (15), and the adjusted delay parameter of each sound unit and the adjusted gain parameter of each sound unit are the adjusted parameters of each sound unit. (14) (15) In the formula, is the delay parameter of each sound unit after adjustment. It is the gain parameter of each sound unit after adjustment.
6. The method for intelligently adjusting and controlling the directivity of a speaker according to claim 1, It is characterized in that The judgment criteria for comparing the actual directivity angle of the speaker with the theoretical directivity angle of the speaker include: If the theoretical directivity angle -1°≤the actual directivity angle≤the theoretical directivity angle +1°, the actual directivity angle of the speaker meets the theoretical directivity angle of the speaker; If the actual directivity angle is less than the theoretical directivity angle - 1° or the actual directivity angle is greater than the theoretical directivity angle + 1°, the actual directivity angle of the speaker does not conform to the theoretical directivity angle of the speaker.
7. The method for intelligently adjusting and controlling the directivity of a speaker according to claim 2, It is characterized in that The number of sound-emitting units in the speaker is no less than 6.
8. The method for intelligently adjusting and controlling the directivity of a speaker according to claim 4, It is characterized in that The acoustic array in the acoustic array acquisition system includes a linear acoustic array and a planar acoustic array.
9. A speaker directivity intelligent adjustment control system, It is characterized in that The system comprises: An input module is used to obtain speaker parameters and speaker control software, and to set the theoretical directivity angle of the speaker through the speaker control software according to the venue environment; An adjustment module, used to obtain the parameters of each sound unit in the speaker through a directivity adjustment model according to the theoretical directivity angle of the speaker and the speaker parameters; A first acquisition module is used to obtain the sound output of the speaker through a beamforming algorithm according to the parameters of each sound unit in the speaker and the theoretical directivity angle of the speaker; A second acquisition module is used to collect the sound output of the speaker through the sound array acquisition system of the speaker, and obtain the actual directivity angle of the speaker by using a beam calculation method; The determination module is used to compare the theoretical directivity angle of the speaker with the actual directivity angle of the speaker, and determine the subsequent steps according to the determination rules. The determination rules are as follows: Rule 1: If the actual directivity angle of the speaker meets the theoretical directivity angle of the speaker, the process ends; Rule 2: If the actual directivity angle of the speaker does not conform to the theoretical directivity angle of the speaker, proceed to the next step; A third acquisition module is used to obtain the adjusted parameters of each sound unit through a closed-loop control algorithm according to the actual directivity angle of the speaker and the theoretical directivity angle of the speaker; The parameter replacement module is used to replace the parameters of each sound unit in the speaker with the adjusted parameters of each sound unit, and repeat the control process until the process ends.
10. A speaker directivity intelligent adjustment control device, It is characterized in that The device includes: a sound-emitting unit, a sound array acquisition system, a speaker control software, a controller, a memory, a processor, and a speaker directivity adjustment control adapter program stored in the memory and executable on the processor. When the speaker directivity adjustment control adapter program is executed by the processor, the steps of the speaker directivity intelligent adjustment control method as described in any one of claims 1 to 5 are implemented.
