Ring type phased array sound box control method and system, storage medium and intelligent terminal
Through the ring phased array speaker control method, the problem that users can only feel the sound from one direction is solved, multi-directional simulation of the sound source is realized, and the realism and audio-visual effect of the speaker is improved.
Patent Information
- Application Number
- CN202411633687.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-02-25
AI Technical Summary
When existing phased array speakers need to determine the sound orientation, users can only feel the source of the sound from one direction, resulting in a lack of realism.
The ring phased array speaker control method is adopted to obtain the current time and listener position, determine the sounding plot and scene sound source orientation, simulate the sounding direction, and match the listener position based on the listener position and speaker position, calculate the relative distance and simulated volume, and control the speaker to issue the corresponding sounding content.
It realizes the precise positioning of the sound source in the scene, simulates the sound source, allowing users to feel the sound from multiple directions, and improves the realism and audio-visual effect of the speaker sound.
Smart Images

Figure CN119521078A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of speaker sound control technology, and in particular to a ring-type phased array speaker control method, system, storage medium and intelligent terminal. Background Art
[0002] Phased array speakers use advanced phased array technology, and use DSP (digital signal processing) technology to precisely control the phase and radiation angle of each frequency band of each speaker unit. This control method enables phased array speakers to be optimized according to different hall acoustic conditions, thereby improving the sound reproduction characteristics of the speakers and maximizing the hall sound quality. Ordinary speakers do not use this advanced technology, and they usually simply emit sound without the ability to precisely control the sound.
[0003] Phased array speakers are particularly suitable for places with large spaces, poor acoustic conditions, long reverberation time, and turbid sound that cannot be improved by acoustic means, such as stations, high-speed rail stations, stadiums, exhibition halls, etc. In these places, phased array speakers can significantly improve the listening effect and enhance the clarity of speech.
[0004] The prior art has the following problems: although phased array speakers can improve the listening effect, they are still not effective when the direction of the sound needs to be determined, for example, in a 3D movie theater, when users use 3D glasses, they can be immersed in the scene, but they can only feel the source of the sound from one direction, so the sense of reality is still lacking. There is still room for improvement. Summary of the invention
[0005] In order to improve the problem that users can only sense the source of sound from one direction, resulting in a lack of sense of reality, the present application provides a ring phased array speaker control method, system, storage medium and intelligent terminal.
[0006] In a first aspect, the present application provides a ring phased array speaker control method, which adopts the following technical solution: A ring phased array speaker control method, comprising: Get the current time and listener position; Determine a vocalization scenario based on the current time, where the vocalization scenario is a scenario where vocalization is required; Analyze the vocalization scenario to determine the location, content and amplitude of the sound source in the scene; Based on the scene sound source location, the corresponding simulated sound location is found from a preset real database; Determine the center position of the audience based on the audience position; Matching is performed based on the simulated sound emission direction, the center position of the audience, and the preset speaker position to determine a successfully matched speaker position, and the speaker position is defined as the current speaker position; Find the corresponding current speaker number from a preset device database based on the current speaker position; Calculate the relative distance based on the current speaker position and the center position of the listener; Find the corresponding simulated volume from a preset control database based on the relative distance and the sound amplitude; Control the speaker corresponding to the current speaker number to emit sound content at the simulated volume.
[0007] By adopting the above technical solution, by determining the position and orientation of the sound source in the scene, it is simulated to the side of the corresponding viewer, so that the user can feel as if it is happening right in front of him, so that the audience has a better audio-visual sense and the realism of the sound of the speaker is improved.
[0008] Optionally, the method for searching for a corresponding current speaker number from a preset device database based on the current speaker position includes: Matching is performed based on the simulated sound emission direction, the center position of the audience, and the speaker position to determine the successfully matched speaker position, and all successfully matched speaker positions are defined as the current speaker position group; Finding a corresponding expected speaker number group from a preset device database based on the current speaker position group; Randomly select a speaker number in the expected speaker number group, define the speaker number as the expected speaker number and find the corresponding analog volume, and define the analog volume as the expected analog volume; When the expected simulated volume does not fall within a preset suitable audio range, the expected speaker number is defined as an over-frequency speaker number and removed from the expected speaker number group; After all overclocked speaker numbers have been screened and removed, a speaker number in the expected speaker number group is arbitrarily selected as the current speaker number for output.
[0009] Optionally, a method for controlling a speaker cabinet when there is no expected speaker number group or there is no speaker number in the expected speaker number group after removing the over-frequency speaker number is included, the method comprising: The deviation angle is calculated based on the simulated sound direction, the center position of the audience and the position of the speaker; Based on the preset same-circle speaker groups and deviation angles, positive speaker number groups with positive deviation angles and belonging to different same-circle speaker groups and negative speaker number groups with negative deviation angles and belonging to different same-circle speaker groups are obtained respectively; Randomly select a speaker number in the positive speaker number group and a speaker number in the negative speaker number group to find the corresponding positive speaker position and negative speaker position from the device database; Combining based on any number of positive speaker positions, any number of negative speaker positions, and any audio magnitude in a suitable audio range to obtain a combined audio direction and a combined audio magnitude; When the combined audio direction is the simulated sound direction and the combined audio size is the sound amplitude, the combination is defined as an equivalent replacement combination, wherein the equivalent replacement combination is a certain number of positive speaker positions, an arbitrary number of negative speaker positions, and a certain audio size in the appropriate audio range; The speaker with the speaker number in the equivalent replacement combination is controlled to emit the sound content according to the corresponding audio volume in the equivalent replacement combination.
[0010] By adopting the above technical solution, although the speakers are arranged circumferentially around the middle area, the speakers cannot cover all positions, and if all positions are covered, the cost is high, so some angles may not be covered. Therefore, there may be no corresponding speakers, or some distances are too far to reach and thus there is no speaker number group. In this case, the speakers on both sides can be combined through phase control to achieve sound simulation in the same direction, thereby improving the flexibility of the speakers in controlling the sound direction.
[0011] Optionally, the method further includes a method for controlling a speaker when no equivalent replacement combination exists, the method comprising: A combination in which the combined audio direction is a simulated sound emission direction is defined as a direction equivalent replacement combination; Based on any number of directional equivalent substitution combinations, any speaker number in the expected speaker number group, and any audio size in the appropriate audio range, a comprehensive combined audio size is obtained; When the comprehensive combined audio frequency is equal to the sound amplitude, the combination is defined as an equivalent replacement combination; The speaker with the speaker number in the equivalent replacement combination is controlled to emit the sound content according to the corresponding audio volume in the equivalent replacement combination.
[0012] By adopting the above technical solution, when the volume cannot be achieved through a single combination, a higher volume can be formed by cooperating with the speakers on both sides, thereby realizing sound simulation and further improving the flexibility of the speaker in controlling the sound direction.
[0013] Optionally, the method for determining the center position of the audience based on the audience position includes: The position variance is calculated by forming listener position groups based on the listener positions; When the position variance is less than a preset expected variance value, an average audience center position is determined based on the audience position and outputted as the audience center position; When the position variance is greater than the expected variance value, a listener position is randomly removed and then the position variance is recalculated, the position variance is defined as an adjusted position variance, and the listener position group after the listener position is removed is defined as an adjusted listener position group; Screening out an adjusted listener position group with the largest adjusted position variance and position variance deviation, updating the adjusted listener position group as the listener position group and re-determining the position variance until the position variance is less than a preset expected variance value or there is no position variance; When there is no position variance, the average audience center position is determined based on all audience positions and output as the audience center position.
[0014] By adopting the above technical solution, although the direction is determined according to the average audience position, if there are individual people who are far away, it will greatly affect the entire direction. Therefore, these people need to be eliminated to make the average audience position more accurate, thereby improving the rationality of the average audience position.
[0015] Optionally, the method further includes: if the position variance after removing the listener position is less than the expected variance value, after determining the average listener center position as the listener center position for output, controlling the speaker corresponding to the current speaker number to emit the sound content at a simulated volume, the method comprising: The removed listener positions are defined as ignored listener positions; Calculating an ignored relative distance based on the current speaker position and the ignored listener position; Based on the ignored relative distance and the simulated volume, the corresponding ignored sound amplitude is reversely searched from the control database; defining a speaker number in the expected speaker number group after removing the over-frequency speaker number as a conforming speaker number; The corresponding speaker number that ignores the sound amplitude and falls into the preset comfortable amplitude range is screened out and output as the current speaker number, and the speaker corresponding to the current speaker number is controlled to emit the sound content at the simulated volume.
[0016] By adopting the above technical solution, although some deviated people are removed when defining the center position, if the sound at these people's positions is loud, it will still affect the feelings of these people. Therefore, it is still necessary to control the volume, so that although these people cannot experience the sense of reality, they still will not feel uncomfortable, thereby improving the rationality of the speaker output.
[0017] Optionally, the method further includes controlling the speaker corresponding to the current speaker number to emit the sound content when there is no speaker number that meets the requirements of ignoring the sound amplitude falling within the comfortable amplitude range, the method comprising: Find the corresponding comfortable volume range from the control database based on the comfortable amplitude range and ignoring the relative distance; Based on the relative distance and the comfortable volume range, the corresponding comfortable pronunciation amplitude range is reversely searched from the control database; The speaker number with the largest amplitude in the comfortable pronunciation amplitude range is screened out and output as the current speaker number, and the speaker corresponding to the current speaker number is controlled to emit the sound content at the maximum value in the comfortable volume range.
[0018] By adopting the above technical solution, when there is no speaker that can meet the needs of most listeners without making a small number of listeners uncomfortable, a speaker with a larger volume is selected for output as much as possible while satisfying the comfort of a small number of listeners, thereby improving the rationality of the speaker output.
[0019] In a second aspect, the present application provides a ring-type phased array speaker control system, which adopts the following technical solution: A ring-type phased array speaker control system, comprising: The acquisition module is used to obtain the current time, the listener's position and the vocalization plot; A memory, used to store a program of any one of the above-mentioned ring phased array speaker control methods; The program in the processor memory can be loaded and executed by the processor to implement any of the above-mentioned ring phased array speaker control methods.
[0020] By adopting the above technical solution, by determining the position and orientation of the sound source in the scene, it is simulated to the side of the corresponding viewer, so that the user can feel as if it is happening right in front of him, so that the audience has a better audio-visual sense and the realism of the sound of the speaker is improved.
[0021] In the third aspect, the present application provides a smart terminal, which adopts the following technical solution: The intelligent terminal comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and execute any one of the above-mentioned ring phased array speaker control methods.
[0022] By adopting the above technical solution, by determining the position and orientation of the sound source in the scene, it is simulated to the side of the corresponding viewer, so that the user can feel as if it is happening right in front of him, so that the audience has a better audio-visual sense and the realism of the sound of the speaker is improved.
[0023] Fourthly, the present application provides a computer storage medium that can store corresponding programs and has the characteristics of fast interaction with memory big data.
[0024] Computer readable storage medium, using the following technical solution: A computer-readable storage medium stores a computer program that can be loaded by a processor and execute any of the above-mentioned ring phased array speaker control methods.
[0025] By adopting the above technical solution, by determining the position and orientation of the sound source in the scene, it is simulated to the side of the corresponding viewer, so that the user can feel as if it is happening right in front of him, so that the audience has a better audio-visual sense and the realism of the sound of the speaker is improved.
[0026] In summary, the present application includes at least the following beneficial technical effects: 1. By simulating the sound from the sound source to the side of the corresponding viewer, the user can feel as if it is happening right in front of them, so that the audience has a better sense of hearing and hearing, and the realism of the sound from the speaker is improved; 2. The sound simulation in the same direction is achieved by combining the speakers on both sides through phase control, which improves the flexibility of the speakers in controlling the sound direction; 3. Eliminating some people who are far away from each other makes the average audience position more accurate and improves the rationality of the average audience position. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flow chart of a ring phased array speaker control method in an embodiment of the present application.
[0028] Figure 2 It is a layout diagram of the venue speakers in an embodiment of the present application.
[0029] Figure 3 It is a flowchart of a method for searching a corresponding current speaker number from a preset device database based on a current speaker position in an embodiment of the present application.
[0030] Figure 4 It is a flowchart of a method for controlling a speaker when there is no expected speaker number group or there is no speaker number in the expected speaker number group after removing the over-frequency speaker number in an embodiment of the present application.
[0031] Figure 5 It is a flow chart of the method of controlling the speaker when there is no equivalent replacement combination in the embodiment of the present application.
[0032] Figure 6It is a flowchart of a method for determining the center position of an audience based on the audience position in an embodiment of the present application.
[0033] Figure 7 It is a flowchart of a method in an embodiment of the present application for controlling the speaker corresponding to the current speaker number to emit sound content at a simulated volume after determining the average audience center position as the audience center position for output if the position variance after removing the audience position is less than the expected variance value.
[0034] Figure 8 It is a flowchart of a method for controlling the speaker corresponding to the current speaker number to emit sound content when there is no speaker number that meets the requirements of ignoring the sound amplitude falling within the comfortable amplitude range in an embodiment of the present application.
[0035] Fig. 9 It is a system module diagram of a ring phased array speaker control method in an embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solutions and advantages of this application more clear, the following Figure 1-Figure 9 It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0037] The present application embodiment discloses a ring-type phased array speaker control method. Figure 1 , a ring phased array speaker control method includes: Step 100: Get the current time and listener position.
[0038] The current time is the current time. It can be a sound or content with sound currently playing in the venue, such as the time of a movie, or any other time, but the main purpose is to determine the time of the current content being played. The acquisition method can be a counter method. The audience position is the position of the audience in the venue. It can be obtained by a GPS locator, or a trigger switch can be installed on the corresponding seat. Once the audience sits down, the switch is triggered to directly read the corresponding position.
[0039] like Figure 2 As shown, B is the audience position, A is the stage or demonstration screen, etc., so the speakers are arranged circumferentially around the audience position.
[0040] Step 101: Determine the vocalization episode based on the current time.
[0041] The vocalization plot is a scene that needs to be vocalized, such as the plot of a movie, or a clip of a performance video.
[0042] The determination method is to determine which content, that is, which frame, the sound content has reached based on the current time. For the sake of convenience, the subsequent sound content or plot is taken as an example of a movie. If it is just a concert, then only the front sound, that is, the audience, can hear it from the direction of the singer.
[0043] Step 102: Analyze the sound scene to determine the direction of the sound source, the sound content and the sound amplitude of the scene.
[0044] The scene sound source orientation is the orientation of the sound source of the performance scene, where the scene sound source orientation is relative to the characters on the stage, or relative to the characters in the movie. The sound content is the content of the sound, including the music played, the environmental sounds in the movie plot, etc. The sound amplitude is the size of the sound content that is heard. The three can be recorded by the staff in this field based on their own viewing experience, that is, each frame has the scene sound source orientation, sound content and sound amplitude.
[0045] Step 103: Based on the scene sound source orientation, the corresponding simulated sound orientation is searched from a preset real database.
[0046] The simulated sound direction is the direction applied to the current scene. The database stores the mapping relationship between the scene sound source direction and the simulated sound direction. The staff in this field determines the corresponding simulated sound direction based on the sound emitted by each speaker in the corresponding scene, and then compares the scene sound source direction. When the system receives the corresponding scene sound source direction, it automatically finds the corresponding simulated sound direction from the database and outputs it. Figure 2 As shown, the direction of the sound source of the scene C' is emitted on the side of stage A. When the audience is placed in the scene of the stage, what the audience hears is in the direction of BC, but it does not represent the position C.
[0047] Step 104: Determine the center position of the audience based on the audience position.
[0048] The center position of the audience is the center position of multiple audiences. Since there must be more than one audience, a representative position needs to be found to represent the group of audiences. The determination method will be introduced in the subsequent process and will not be repeated here.
[0049] Step 105: Matching is performed based on the simulated sound emission direction, the center position of the audience, and the preset speaker position to determine a successfully matched speaker position, and the speaker position is defined as the current speaker position.
[0050] The speaker position is where the speaker is located. Figure 2As shown, when the audience center position B is determined, a straight line is drawn according to the direction of BC, and the intersection point of the straight line and the speaker position is the current speaker position.
[0051] Step 106: Based on the current speaker position, the corresponding current speaker number is searched from a preset device database.
[0052] The current speaker number is the speaker number of the current speaker position. The database stores the mapping relationship between the current speaker position and the current speaker number. After installation, the staff in this field will number each speaker and record its position in the entire venue, and then record the mapping relationship between the two in the equipment database. When the system receives the corresponding current speaker position, it automatically finds the corresponding current speaker number from the database and outputs it. The purpose of the output is to identify which speaker is and obtain the control system connected to the speaker, so as to control the corresponding speaker to sound.
[0053] Step 107: Calculate the relative distance based on the current speaker position and the center position of the audience.
[0054] The relative distance is the distance from the current speaker position to the center of the audience. The calculation method is that if the entire venue is used as a coordinate system at any point, then the square root of the difference between the horizontal and vertical coordinates of the current speaker position and the center of the audience is the relative distance.
[0055] Step 108: Find the corresponding analog volume from a preset control database based on the relative distance and the sound amplitude.
[0056] The analog volume is the volume of the sound with the sound amplitude generated at the center of the audience when the sound is emitted at the analog volume at the current speaker position. The database stores the mapping relationship between relative distance, sound amplitude and analog volume. Here, it can also be the mapping relationship between the conversion ratio of sound amplitude and analog volume and relative distance. The staff in this field measures the volume amplitude heard at different distances according to different volumes, and then records it. When the system receives the corresponding relative distance and sound amplitude, it automatically finds the corresponding analog volume from the database for output. It can also be that when the system receives the corresponding relative distance, it automatically finds the corresponding conversion ratio from the database, and then multiplies it by the sound amplitude to obtain the analog volume for output.
[0057] Step 109: Control the speaker corresponding to the current speaker number to emit the sound content at a simulated volume.
[0058] This will make the audience feel as if they are standing on the stage or in the movie scene, and hear the sound coming from the side. In this way, combined with 3D glasses, a true 3D movie can be realized.
[0059] Reference Figure 3 The method for searching the corresponding current speaker number from a preset device database based on the current speaker position includes: Step 200: Matching is performed based on the simulated sound emission direction, the center position of the audience and the speaker position to determine the successfully matched speaker positions, and all the successfully matched speaker positions are defined as the current speaker position group.
[0060] like Figure 2 As shown, it can be said that three speakers have been passed in the BC direction, thus forming the current speaker position group.
[0061] Step 201: Find the corresponding expected speaker number from a preset device database based on the current speaker position group.
[0062] The expected speaker number is the speaker number in the current speaker position group, that is, the speaker number expected to be the current speaker number. The establishment of the database is introduced in step 106, which will not be described in detail here.
[0063] Step 202: arbitrarily select a speaker number in the expected speaker number group, define the speaker number as the expected speaker number and find the corresponding analog volume, and define the analog volume as the expected analog volume.
[0064] The method for finding the expected simulated volume is introduced in steps 106-108 and will not be described in detail here.
[0065] Step 203: When the predicted simulated volume does not fall within the preset suitable audio range, the predicted speaker number is defined as an over-frequency speaker number and removed from the predicted speaker number group.
[0066] The appropriate audio range is the reasonable range of sound emitted by the speaker due to its own mechanical structure. If it does not fall within this range, it means that the sound emitted by the speaker cannot reach the expected simulated volume.
[0067] Step 204: After all the overclocked speaker numbers have been screened and removed, a speaker number in the expected speaker number group is randomly selected as the current speaker number for output.
[0068] The purpose of removal is to exclude speakers that have the same direction but cannot produce corresponding sounds, thereby ensuring that any one of the expected speaker number groups can meet the requirements.
[0069] Reference Figure 4, further comprising a method for controlling a speaker cabinet when there is no expected speaker number group or there is no speaker number in the expected speaker number group after removing the over-frequency speaker number, the method comprising: Step 300: Calculate based on the simulated sound direction, the center position of the audience and the position of the speaker to obtain the deviation angle.
[0070] The deviation angle is the angle between the line connecting the speaker position and the center of the audience, and the line connecting the simulated sound direction and the center of the audience, such as Figure 2 ∠CBD is shown.
[0071] Step 301: Based on the preset same-circle speaker groups and deviation angles, positive speaker number groups with positive deviation angles belonging to different same-circle speaker groups and negative speaker number groups with negative deviation angles belonging to different same-circle speaker groups are obtained.
[0072] The same circle speaker group is a group of speaker numbers in the same circle. Figure 2 As shown, the center of the venue is a circle, and the speakers are distributed according to circles of different diameters. The speaker groups on the same diameter circle are all the same circle speaker groups. The method is to classify them according to positive and negative values.
[0073] Step 302: arbitrarily select a speaker number in the positive speaker number group and a speaker number in the negative speaker number group to find the corresponding positive speaker position and negative speaker position from the device database.
[0074] The positive speaker position is the position corresponding to the speaker number in the positive speaker number group. The negative speaker position is the position corresponding to the speaker number in the negative speaker number group. The establishment of the database is not described in detail here. When the system receives any speaker number in the positive speaker number group or the speaker number in the negative speaker number group, it automatically finds the corresponding speaker position and outputs it as the positive speaker position or the negative speaker position in sequence.
[0075] Step 303: Combining based on any number of positive speaker positions, any number of negative speaker positions and any audio magnitude in a suitable audio range to obtain a combined audio direction and a combined audio magnitude.
[0076] Here, the positive speaker position or the negative speaker position and any audio size in the appropriate audio range can be superimposed as a vector, that is, the direction is from the center of the audience toward the positive speaker position or the negative speaker position, and the numerical size is an arbitrary audio size, to obtain a vector of the positive speaker position or the negative speaker position, and then any number of positive vectors and any number of negative vectors are added to obtain a superimposed vector, whose direction is the combined audio direction, and the numerical size is the combined audio size.
[0077] Step 304: When the combined audio direction is the simulated sound direction and the combined audio size is the sound amplitude, the combination is defined as an equivalent replacement combination, wherein the equivalent replacement combination is a certain number of positive speaker positions, any number of negative speaker positions, and a certain audio size in a suitable audio range.
[0078] When the combined audio direction is the simulated sound direction and the combined audio size is the sound amplitude, it means that the combination can be equivalent to the size being the sound amplitude and the direction being the simulated sound direction. It means that the virtual current speaker number that does not exist can be replaced according to this combination.
[0079] Step 305: Control the speaker with the speaker number in the equivalent replacement combination to emit the sound content according to the corresponding audio volume in the equivalent replacement combination.
[0080] Reference Figure 5 , and also includes a method for controlling the speaker when there is no equivalent replacement combination, the method comprising: Step 400: define a combination whose combined audio direction is a simulated sound emission direction as a direction equivalent replacement combination.
[0081] The direction equivalent replacement combination is a combination in which the direction of the combined audio is a simulated sound direction, but the size is not equal to the size of the combined audio.
[0082] Step 401: Combining any number of directional equivalent substitution combinations, any speaker number in the expected speaker number group, and any audio size in the appropriate audio range to obtain a comprehensive combined audio size.
[0083] Here, since the expected speaker number group exists and all the speakers are overclocked speaker numbers, since the speakers in the expected speaker number group are all simulating the direction of the sound azimuth, but the audio cannot reach the sound amplitude, the combination here can also be only the combination of the overclocked speaker numbers in the expected speaker number group.
[0084] Step 402: When the comprehensive combined audio size is the sound amplitude, define the combination as an equivalent replacement combination.
[0085] When the size of the comprehensive combined audio after combination is the sound amplitude, it means that the combination of the overclocking speaker number can achieve the effect of equivalent replacement combination, so the overclocking speaker number can also be combined.
[0086] Step 403: Control the speaker with the speaker number in the equivalent replacement combination to emit the sound content according to the corresponding audio volume in the equivalent replacement combination.
[0087] Reference Figure 6 , the method of determining the center position of the audience based on the audience position includes: Step 500: Forming listener position groups based on listener positions and calculating position variances.
[0088] The position variance is the variance of the listener's position, which is used as a measure of the degree of dispersion of the data. It is calculated by first calculating the mean, and then calculating the average of the squares of the difference between each listener's position and the mean. Its purpose is to determine whether the audience is clustered together and exclude some discrete people.
[0089] Step 501: When the position variance is less than a preset expected variance value, an average audience center position is determined based on the audience positions and output as the audience center position.
[0090] The expected variance value is an artificially set variance value, that is, if it exceeds this variance value, it means that the dispersion is too high, and there are some cases where the deviation is too large. The average audience center position is the average value of the audience position, which can be calculated by adding all the horizontal and vertical coordinates and then dividing by the number of audience positions.
[0091] When the position variance is smaller than the expected variance value, it means that the degree of dispersion is not large, which means that each audience position is referenceable and can be output as the audience center position according to the average value.
[0092] Step 502: when the position variance is greater than the expected variance value, remove any listener position and recalculate the position variance, define the position variance as an adjusted position variance, and define the listener position group after removing the listener position as an adjusted listener position group.
[0093] When it is greater than , it means that there are people whose positions are too dispersed. In this case, we first calculate the variance value after removing one listener position to find the person with the farthest dispersion.
[0094] Step 503: Filter out the adjusted audience position group with the largest adjusted position variance and position variance deviation, update the adjusted audience position group to the audience position group and re-determine the position variance until the position variance is less than the preset expected variance value or there is no position variance.
[0095] The purpose of screening is to remove the farthest discrete listener first.
[0096] Step 504: When there is no position variance, determine the average audience center position based on all audience positions and output it as the audience center position.
[0097] When it does not exist, it means there is only one person at this time. Conversely, when there are two people, the variance is also greater than the expected variance value, which means that everyone is very scattered, so the average audience center position can be used as the audience center position for output.
[0098] Reference Figure 7 , further comprising a method of controlling the speaker corresponding to the current speaker number to emit the sound content at a simulated volume after determining the average listener center position as the listener center position for output if the position variance after removing the listener position is less than the expected variance value, the method comprising: Step 600: Define the removed listener position as the ignored listener position.
[0099] Step 601: Calculate the ignored relative distance based on the current speaker position and the ignored listener position.
[0100] The ignored relative distance is the distance between the current speaker position and the ignored listener position. The calculation method is the same as the calculation method of the relative distance, which will not be repeated here.
[0101] Step 602: Based on the ignored relative distance and the simulated volume, the corresponding ignored sound amplitude is searched from the control database in reverse.
[0102] The ignored sound amplitude is the amplitude of the sound heard at the ignored listener position when the sound is emitted at the current speaker position according to the simulated volume. The establishment of the database has been introduced in the previous step and will not be repeated here. When the system receives the ignored relative distance and simulated volume, it automatically finds the corresponding ignored sound amplitude from the database and outputs it.
[0103] Step 603: Define the speaker numbers in the expected speaker number group after removing the overclocked speaker numbers as conforming speaker numbers.
[0104] The purpose of the definition is to prevent the overclocked speaker number from being selected during the subsequent screening process.
[0105] Step 604: Filter out the corresponding speaker number that ignores the sound amplitude and falls into the preset comfortable amplitude range as the current speaker number and output it, and control the speaker corresponding to the current speaker number to emit the sound content at the simulated volume.
[0106] The comfortable amplitude range is the amplitude of sound that the human body can receive and feel comfortable. The purpose of screening is to ensure that the volume of the sound amplitude can be heard at the center of the audience while ignoring the situation that it is not too noisy at the audience position.
[0107] Reference Figure 8 , and also includes a method for controlling the speaker corresponding to the current speaker number to emit sound content when there is no speaker number that meets the requirements of ignoring the sound amplitude falling into the comfortable amplitude range, the method comprising: Step 700: Find the corresponding comfortable volume range from the control database based on the comfortable amplitude range and ignoring the relative distance.
[0108] The comfortable volume range is the volume of the discrete person's ears that is within the comfortable range after the sound is emitted from the corresponding speaker. When the system receives the comfortable range and ignores the relative distance, it automatically finds the corresponding comfortable volume range from the database and outputs it. Since this is the comfortable range, the output is also the comfortable volume range.
[0109] Step 701: Based on the relative distance and the comfortable volume range, the corresponding comfortable pronunciation amplitude range is reversely searched from the control database.
[0110] The comfortable pronunciation amplitude range is the range of the pronunciation amplitude heard at the center of the audience. When the system receives the corresponding relative distance and comfortable volume range, it automatically searches the database for the corresponding comfortable pronunciation amplitude range and outputs it.
[0111] Step 702: Filter out the speaker number with the largest amplitude in the comfortable pronunciation amplitude range as the current speaker number and output it, and control the speaker corresponding to the current speaker number to emit the sound content at the maximum value in the comfortable volume range.
[0112] Since there is no speaker number that meets the requirements of ignoring the sound amplitude falling into the comfortable amplitude range, it is definitely impossible to produce sound content with a simulated volume at this time, so it can only produce sound at the maximum value within the comfortable volume range.
[0113] Based on the same inventive concept, an embodiment of the present invention provides a ring-type phased array speaker control system.
[0114] Reference Fig. 9 , a ring-type phased array speaker control system, comprising: The acquisition module is used to obtain the current time, the listener's position and the vocalization plot; A memory, used for storing a program of a ring phased array speaker control method; The program in the memory can be loaded and executed by the processor to implement a ring-type phased array speaker control method.
[0115] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0116] An embodiment of the present invention provides a computer-readable storage medium storing a computer program that can be loaded by a processor and executed by a method for controlling a ring phased array speaker.
[0117] Computer storage media include, for example, various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0118] Based on the same inventive concept, an embodiment of the present invention provides an intelligent terminal, including a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executed by a method for controlling a ring phased array speaker.
[0119] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.
Claims
1. A ring phased array speaker control method, characterized in that: include: Get the current time and listener position; Determine a vocalization scenario based on the current time, where the vocalization scenario is a scenario where vocalization is required; Analyze the vocalization scenario to determine the location, content and amplitude of the sound source in the scene; Based on the scene sound source location, the corresponding simulated sound location is found from a preset real database; Determine the center position of the audience based on the audience position; Matching is performed based on the simulated sound emission direction, the center position of the audience, and the preset speaker position to determine a successfully matched speaker position, and the speaker position is defined as the current speaker position; Find the corresponding current speaker number from a preset device database based on the current speaker position; Calculate the relative distance based on the current speaker position and the center position of the listener; Find the corresponding simulated volume from a preset control database based on the relative distance and the sound amplitude; Control the speaker corresponding to the current speaker number to emit sound content at the simulated volume.
2. The ring phased array speaker control method according to claim 1, characterized in that: The method for searching the corresponding current speaker number from a preset device database based on the current speaker position includes: Matching is performed based on the simulated sound emission direction, the center position of the audience, and the speaker position to determine the successfully matched speaker position, and all successfully matched speaker positions are defined as the current speaker position group; Finding a corresponding expected speaker number group from a preset device database based on the current speaker position group; Randomly select a speaker number in the expected speaker number group, define the speaker number as the expected speaker number and find the corresponding analog volume, and define the analog volume as the expected analog volume; When the expected simulated volume does not fall within a preset suitable audio range, the expected speaker number is defined as an over-frequency speaker number and removed from the expected speaker number group; After all overclocked speaker numbers have been screened and removed, a speaker number in the expected speaker number group is arbitrarily selected as the current speaker number for output.
3. The ring phased array speaker control method according to claim 2, characterized in that: Also included is a method for controlling a sound box when there is no expected speaker number group or there is no speaker number in the expected speaker number group after removing the over-frequency speaker number, the method comprising: The deviation angle is calculated based on the simulated sound direction, the center position of the audience and the position of the speaker; Based on the preset same-circle speaker groups and deviation angles, positive speaker number groups with positive deviation angles and belonging to different same-circle speaker groups and negative speaker number groups with negative deviation angles and belonging to different same-circle speaker groups are obtained respectively; Randomly select a speaker number in the positive speaker number group and a speaker number in the negative speaker number group to find the corresponding positive speaker position and negative speaker position from the device database; Combining based on any number of positive speaker positions, any number of negative speaker positions, and any audio magnitude in a suitable audio range to obtain a combined audio direction and a combined audio magnitude; When the combined audio direction is the simulated sound direction and the combined audio size is the sound amplitude, the combination is defined as an equivalent replacement combination, wherein the equivalent replacement combination is a certain number of positive speaker positions, an arbitrary number of negative speaker positions, and a certain audio size in the appropriate audio range; The speaker with the speaker number in the equivalent replacement combination is controlled to emit the sound content according to the corresponding audio volume in the equivalent replacement combination.
4. The ring phased array speaker control method according to claim 3, characterized in that: Also included is a method for controlling a speaker when there is no equivalent replacement combination, the method comprising: A combination in which the combined audio direction is a simulated sound emission direction is defined as a direction equivalent replacement combination; Based on any number of directional equivalent substitution combinations, any speaker number in the expected speaker number group, and any audio size in the appropriate audio range, a comprehensive combined audio size is obtained; When the comprehensive combined audio frequency is equal to the sound amplitude, the combination is defined as an equivalent replacement combination; The speaker with the speaker number in the equivalent replacement combination is controlled to emit the sound content according to the corresponding audio volume in the equivalent replacement combination.
5. The ring phased array speaker control method according to claim 1, characterized in that: Methods for determining the center position of the audience based on the audience position include: The position variance is calculated by forming listener position groups based on the listener positions; When the position variance is less than a preset expected variance value, an average audience center position is determined based on the audience position and outputted as the audience center position; When the position variance is greater than the expected variance value, a listener position is randomly removed and then the position variance is recalculated, the position variance is defined as an adjusted position variance, and the listener position group after the listener position is removed is defined as an adjusted listener position group; Screening out an adjusted listener position group with the largest adjusted position variance and position variance deviation, updating the adjusted listener position group as the listener position group and re-determining the position variance until the position variance is less than a preset expected variance value or there is no position variance; When there is no position variance, the average audience center position is determined based on all audience positions and output as the audience center position.
6. A ring phased array speaker control method according to claim 5, characterized in that: The method also includes a method of controlling the speaker corresponding to the current speaker number to emit the sound content at a simulated volume after determining the average listener center position as the listener center position for output if the position variance after removing the listener position is less than the expected variance value, the method comprising: The removed listener positions are defined as ignored listener positions; Calculating an ignored relative distance based on the current speaker position and the ignored listener position; Based on the ignored relative distance and the simulated volume, the corresponding ignored sound amplitude is reversely searched from the control database; defining a speaker number in the expected speaker number group after removing the over-frequency speaker number as a conforming speaker number; The corresponding speaker number that ignores the sound amplitude and falls into the preset comfortable amplitude range is screened out and output as the current speaker number, and the speaker corresponding to the current speaker number is controlled to emit the sound content at the simulated volume.
7. The ring phased array speaker control method according to claim 6, characterized in that: The method also includes a method for controlling the speaker corresponding to the current speaker number to emit the sound content when there is no speaker number that meets the requirements of ignoring the sound amplitude falling into the comfortable amplitude range, the method comprising: Find the corresponding comfortable volume range from the control database based on the comfortable amplitude range and ignoring the relative distance; Based on the relative distance and the comfortable volume range, the corresponding comfortable pronunciation amplitude range is reversely searched from the control database; The speaker number with the largest amplitude in the comfortable pronunciation amplitude range is screened out and output as the current speaker number, and the speaker corresponding to the current speaker number is controlled to emit the sound content at the maximum value in the comfortable volume range.
8. A ring phased array speaker control system, characterized in that: include: The acquisition module is used to obtain the current time, the listener's position and the vocalization plot; A memory, used to store a program of a ring phased array speaker control method according to any one of claims 1 to 7; The program in the memory can be loaded and executed by the processor to implement a ring-type phased array speaker control method as described in any one of claims 1 to 7.
9. Intelligent terminal, characterized in that: The invention comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and executes a ring-type phased array speaker control method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that A computer program is stored which can be loaded by a processor and executes a ring phased array speaker control method as claimed in any one of claims 1 to 7.