An interactive user speech recognition method for AI agents
By installing a microphone array in the AI agent and building a coordinate system to calculate the weight of the sound data, the problem of not considering the distance between the microphone and the user is solved and the accuracy of speech recognition is improved.
Patent Information
- Application Number
- CN202411000652.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-25
AI Technical Summary
Existing AI agents fail to effectively consider the distance between the microphone and the user when collecting the user's voice, resulting in low authenticity of speech recognition.
By installing a microphone array in the intelligent recognition area, constructing a two-dimensional coordinate system, dividing the sound data sequence into data segments, calculating the sound intensity and distance of each data segment, and assigning weight to the sound data sequence, thereby improving the accuracy of speech recognition.
By calculating the characteristics of the user's position in a short period of time, the amount of position calculation is reduced, the impact of distance on the sound data is increased, and the accuracy and recognition effect of the speech data sequence are improved.
Smart Images

Figure CN118522285B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of speech data processing, and in particular to an interactive user speech recognition method for an AI agent. Background Art
[0002] At present, intelligent life has entered all aspects of life. Smart home appliances have greatly improved the convenience and efficiency of life through automation and networking functions. Most smart home appliances can be remotely controlled, and there are many ways to give user instructions, such as voice, touch screen, etc. Some operations such as lamps require a lot of space cost, and users need to walk to the corresponding switch position to operate them. Therefore, voice operation is very convenient, which can collect the user's voice instructions, identify the user's intentions, and make corresponding accurate operations.
[0003] In the process of collecting user voices, the AI agent obtains the user's voice through the user's voice collected by multiple microphones; however, in the process of obtaining the user's voice, the distance between the microphone and the user is not considered, resulting in low authenticity of the obtained user's voice. Summary of the invention
[0004] The present invention provides an interactive user speech recognition method for an AI agent to solve the existing problems.
[0005] The interactive user speech recognition method for an AI agent of the present invention adopts the following technical solution:
[0006] The present invention proposes an interactive user speech recognition method for an AI agent, the method comprising the following steps:
[0007] Install microphones in the intelligent recognition area to obtain a sound data sequence of each microphone;
[0008] A two-dimensional coordinate system is constructed for the intelligent recognition area to obtain the horizontal coordinate and vertical coordinate of each microphone; the sound data sequence of each microphone is divided into several data segments, and the sound intensity of each data segment of each microphone is obtained; according to the horizontal coordinate of the microphone and the sound intensity of each data segment, several latest microphones are obtained, and then the sound intensity of each data segment of the latest microphone is obtained; according to the sound intensity and horizontal coordinate of each latest microphone, the sound attenuation rate around each microphone in the time corresponding to each data segment is obtained; the horizontal coordinate of the user in the time corresponding to each data segment is obtained by combining the coordinates of the latest microphone with the sound intensity of each data segment; according to the sound intensity and vertical coordinate of each data segment of each microphone, the vertical coordinate of the user in the time corresponding to each data segment is obtained; according to the horizontal and vertical coordinates of the user in the time corresponding to each data segment and the horizontal and vertical coordinates of the microphone, the distance between the user and each microphone in the time corresponding to each data segment is obtained;
[0009] According to the discrete degree of the sound data in each data segment of each microphone and the distance between the user and each microphone during the time corresponding to each data segment, the weight of the sound data in each data segment of each microphone is obtained, and then the influence weight of each sound data in the sound data sequence of each microphone is obtained;
[0010] According to each sound data in the sound data sequence of each microphone and its influence weight, the user's sound data sequence is obtained and speech recognition is performed.
[0011] Furthermore, the microphones are installed in the intelligent recognition area to obtain the sound data sequence of each microphone, including the specific method of:
[0012] Install in smart identification area microphones, and obtain a microphone array so that when the user performs voice operation, the user is in the microphone array; wherein the distance between each microphone and other microphones in its four neighborhoods is rice, Indicates the number of microphones installed in each row. Indicates the number of microphones installed in each preset column. Indicates the distance between each preset microphone and other microphones in its four neighborhoods;
[0013] The microphone capture interval is ms of sound data, and obtain the sound data sequence of each microphone; wherein, Indicates the preset collection interval.
[0014] Furthermore, the two-dimensional coordinate system is constructed for the intelligent recognition area to obtain the horizontal coordinate and the vertical coordinate of each microphone, including the specific method of:
[0015] With the microphone at the lower left corner of the intelligent recognition area as the origin, the horizontal rightward direction as the horizontal axis, and the vertical upward direction as the vertical axis, a two-dimensional coordinate system is obtained, and then the horizontal and vertical coordinates of each microphone are obtained.
[0016] Furthermore, the method of dividing the sound data sequence of each microphone into a plurality of data segments and obtaining the sound intensity of each data segment of each microphone includes the following specific methods:
[0017] The duration of the preset data segment is ms, divide the sound data sequence of each microphone into several data segments; The first microphone The mean value of all sound data in the data segment is recorded as The first microphone The sound intensity of each data segment.
[0018] Furthermore, the method of obtaining a number of latest microphones according to the horizontal coordinates of the microphones and the sound intensity of each data segment, and then obtaining the sound intensity of each data segment of the latest microphone, includes the following specific methods:
[0019] According to the horizontal coordinate of each microphone, each microphone is mapped to the horizontal axis to the right, and we get The latest microphones; The coordinates of the latest microphone are ; Set all the horizontal coordinates in the two-dimensional coordinate system to The microphone The average value of the sound intensity of the data segment is recorded as The latest microphone The sound intensity.
[0020] Furthermore, the method of obtaining the sound attenuation rate around each microphone in the time corresponding to each data segment according to the sound intensity and the horizontal coordinate of each latest microphone includes the following specific methods:
[0021] All the latest microphones The two newest microphones with the largest sound intensity are recorded as sound microphones;
[0022] Get the The time corresponding to the data segment The specific calculation formula for the sound attenuation rate around a microphone is as follows:
[0023]
[0024] In the formula, Indicates The time corresponding to the data segment The rate at which sound around a microphone decreases, represents the distance between each microphone and its four neighboring microphones, Indicates The latest microphone The sound intensity, Indicates The latest microphone The sound intensity.
[0025] Furthermore, the method of combining the coordinates of the latest microphone with the sound intensity of each data segment to obtain the horizontal coordinate of the user in the time corresponding to each data segment includes the following specific methods:
[0026]
[0027] In the formula, Indicates The horizontal coordinate of the user in the time corresponding to the data segment, Indicates The time corresponding to the data segment The rate at which sound around a microphone decreases, represents the distance between each microphone and its four neighboring microphones, represents the minimum horizontal coordinate of the sound microphone, represents the maximum horizontal coordinate of the sound microphone, Indicates the number of microphones installed in a row. The sound intensity of the microphone with the smallest horizontal axis is represented by It represents the sound intensity of the microphone adjacent to the right side of the microphone with the largest sound on the horizontal axis. The horizontal axis represents the sound intensity of the microphone with the largest sound.
[0028] Furthermore, the method of obtaining the vertical coordinate of the user in the time corresponding to each data segment according to the sound intensity and the vertical coordinate of each data segment of each microphone includes the following specific methods:
[0029] According to the ordinate of each microphone, each microphone is mapped to the vertical axis, and we get Update microphone, The updated microphone coordinates are ;in, Indicates the number of microphones installed in each preset column;
[0030] All the vertical coordinates in the two-dimensional coordinate system are The microphone The average value of the sound intensity of the data segment is recorded as Update microphone sound intensity;
[0031] According to The method for obtaining the horizontal coordinate of the user within the time corresponding to the data segment is based on the first The sound intensity and coordinates are obtained The vertical coordinate of the user within the time period corresponding to each data segment.
[0032] Furthermore, the weight of the sound data in each data segment of each microphone is obtained according to the discreteness of the sound data in each data segment of each microphone and the distance between the user and each microphone within the time corresponding to each data segment, and then the influence weight of each sound data in the sound data sequence of each microphone is obtained, including the specific method of:
[0033]
[0034] In the formula, Indicates The first microphone The weight of the sound data in a data segment, Indicates The time corresponding to the data segment is the time when the user The distance between the microphones, Indicates The average distance between the user and all microphones during the time corresponding to the data segment, Indicates The first microphone The variance of the sound data within a data segment, Indicates the first The mean of the variance of the sound data in the data segment, is an exponential function with a natural constant as base, represents the softmax function;
[0035] The first The first microphone The weight of the sound data in the data segment is used as the The first microphone The influence weight of each sound data in a data segment.
[0036] Furthermore, the method of obtaining the user's voice data sequence according to each voice data and its influence weight data in the voice data sequence of each microphone includes the following specific methods:
[0037]
[0038] In the formula, Indicates the first The value of the sound data, Indicates The first The influence weight of each sound data, Indicates The first The value of the sound data, Indicates the number of microphones installed in the smart recognition area.
[0039] The beneficial effects of the technical solution of the present invention are: in the process of obtaining the user's sound data sequence through the sound data sequences of multiple microphones, based on the characteristic that the user's position will not change significantly in a short period of time, the user's position at each collection time in each time period is obtained through the user's position at the time corresponding to each time period, thereby reducing the amount of calculation for calculating the user's position at each collection time; based on the characteristic that the intensity of the sound data of a microphone at a collection time is related to the distance between the user and the microphone, the horizontal and vertical coordinates of the user in the time corresponding to each data segment are obtained, paving the way for calculating the distance between the user and each microphone in the time corresponding to each data segment; in the process of calculating the weight of the sound data in each data segment of each microphone, based on the characteristic that the discreteness of the sound data in a data segment of a microphone can reflect the distance between the microphone and the user in the time corresponding to the data segment, the influence of the distance between the user and the microphone on the weight of the sound data in each data segment of each microphone is increased, thereby making the obtained user's sound data sequence more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative work.
[0041] Figure 1 A flowchart of the steps of an interactive user speech recognition method for an AI agent of the present invention;
[0042] Figure 2 A distribution diagram representing the positions of microphones;
[0043] Figure 3 A graph showing the locations of users and microphones. DETAILED DESCRIPTION
[0044] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of an interactive user speech recognition method for an AI agent proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0045] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0046] The following is a detailed description of a specific scheme of an interactive user speech recognition method for an AI agent provided by the present invention in conjunction with the accompanying drawings.
[0047] See also Figure 1 , which shows a flowchart of a method for interactive user speech recognition for an AI agent provided by an embodiment of the present invention, the method comprising the following steps:
[0048] Step S001: Install microphones in the intelligent recognition area and obtain the sound data sequence of each microphone.
[0049] This embodiment recognizes the user's purpose through the user's voice and allows the smart home appliances to perform corresponding operations. Therefore, a microphone device is installed in the area where smart recognition is required.
[0050] Specifically, install in the smart identification area microphones, and a microphone array is obtained, where the distance between each microphone and the other microphones in its four neighborhoods is When the user performs voice operation, the user is in the microphone array. The number of microphones installed in each row is preset in this embodiment. , the preset number of microphones installed in each column This is described as an example, and other implementations may be set to other values. The position distribution of the microphones after installation is as follows: Figure 2 The distances between each microphone and other microphones in its four neighborhoods are preset in this embodiment. , this is used as an example for description, and other values may be set in other implementation modes.
[0051] Furthermore, the sound data is collected by the microphone to obtain the sound data sequence of each microphone. In this embodiment, the sound data is the loudness of the sound. The collection interval of the microphone is ms. The collection interval preset in this embodiment is , this is used as an example for description, and other implementation modes may be set to other values; the microphone starts collecting sound data from the moment the user speaks.
[0052] Step S002: construct a two-dimensional coordinate system for the intelligent recognition area to obtain the horizontal coordinate and vertical coordinate of each microphone; divide the sound data sequence of each microphone into several data segments, and obtain the sound intensity of each data segment of each microphone; obtain several latest microphones according to the horizontal coordinate of the microphone and the sound intensity of each data segment, and then obtain the sound intensity of each data segment of the latest microphone; obtain the sound attenuation rate around each microphone in the time corresponding to each data segment according to the sound intensity and horizontal coordinate of each latest microphone; obtain the horizontal coordinate of the user in the time corresponding to each data segment by combining the coordinates of the latest microphone and the sound intensity of each data segment; obtain the vertical coordinate of the user in the time corresponding to each data segment according to the sound intensity and vertical coordinate of each data segment of each microphone; obtain the distance between the user and each microphone in the time corresponding to each data segment according to the horizontal and vertical coordinates of the user in the time corresponding to each data segment and the horizontal and vertical coordinates of the microphone.
[0053] It should be further explained that, when obtaining the value of the sound data collected by the user at a collection time based on the value of the sound data collected by each microphone at the collection time, it is necessary to first obtain the influence weight of the sound data collected by each microphone at a collection time on the sound data collected by the user at the collection time. When the distance between the user and a microphone is shorter, it means that the sound data collected by the microphone is more real. Therefore, when obtaining the influence weight of the sound data collected by each microphone at a collection time on the sound data collected by the user at the collection time, first calculate the distance between the user and the microphone at each collection time.
[0054] It should be further explained that since the user's position will not change significantly in a short period of time, that is, the user's position at multiple acquisition times within a short time interval is considered to be the same, the sound data sequence of each microphone is divided into several data segments, and the user's position in each data segment is obtained.
[0055] It should be further explained that when calculating the user's position in each data segment, the average of all sound data of a microphone in a data segment is used as the sound intensity of the microphone in the data segment. Since the user is the sound source, the sound intensity of a microphone in a data segment can reflect the distance between the user and the microphone in the data segment. Therefore, the user's position in each data segment is obtained based on the sound intensity of each microphone in each data segment.
[0056] It should be further explained that since the microphones are evenly arranged in the two-dimensional plane, that is, when calculating the position of the user in each data segment, the horizontal coordinate and vertical coordinate of the user in each data segment are calculated separately. Therefore, the microphones in each column of the two-dimensional plane are regarded as a microphone, and the microphones in the two-dimensional plane are converted to microphones on a one-dimensional coordinate axis; the microphones in each row of the two-dimensional plane are regarded as a microphone, and the microphones in the two-dimensional plane are converted to microphones on another one-dimensional coordinate axis. According to the sound intensity of the microphones in the two one-dimensional coordinate axes in each data segment, the horizontal and vertical coordinates of the user in the time corresponding to each data segment are obtained respectively.
[0057] It should be further explained that the sound intensity of the microphone at a certain time of acquisition is directly proportional to the sound intensity transmitted by the user and inversely proportional to the square of the distance between the microphone and the user. The specific formula is as follows:
[0058]
[0059] in, Represents the sound intensity at a certain distance. is the power of the sound source, and is the distance from the source, It represents the surface area of a sphere centered on the source, and explains how sound waves propagate in space; that is, the sound intensity of a microphone at a certain acquisition time can indirectly reflect the distance between the user and the microphone, and the closer the distance between the microphone and the user, the greater the sound intensity of the microphone. Therefore, according to the sound intensity of all microphones in two one-dimensional coordinate axes in a data segment, the approximate range of the horizontal and vertical coordinates of the user in the time corresponding to the data segment is obtained.
[0060] It should be further explained that the sound intensity of the microphone at a collection time is inversely proportional to the square of the distance between the microphone and the user. The distance between the microphone and the user is If the distance between the microphone and the user is twice, the acquisition time is The sound intensity of the first microphone is The sound intensity of each microphone That is, the reciprocal of the square root of the user's voice intensity at the collection time is equal to the The difference between the square root of the sound intensity of the first microphone and the reciprocal of the sound intensity of the second microphone is The reciprocal of the square root of the sound intensity of the first microphone is equal to the The difference between the inverse of the sound intensity of the microphones after taking the square root. Therefore, according to the sound intensity of the microphones in each data segment mapped to the two one-dimensional coordinate axes, the horizontal and vertical coordinates of the user in the time corresponding to each data segment are obtained.
[0061] Specifically, the duration of the preset data segment is ms, the sound data sequence of each microphone is divided into several data segments. The duration of the data segment preset in this embodiment is , which is described as an example, and other implementations may be set to other values. The first microphone The mean value of all sound data in the data segment is recorded as The first microphone The sound intensity of each data segment.
[0062] Furthermore, the microphone at the lower left corner of the intelligent recognition area is taken as the origin, the horizontal right axis is taken as the horizontal axis, and the vertical upward axis is taken as the vertical axis to obtain a two-dimensional coordinate system, and then the horizontal and vertical coordinates of each microphone are obtained. According to the horizontal coordinate of each microphone, each microphone is mapped to the horizontal right axis to obtain The latest microphone. The coordinates of the latest microphone are . Set all the horizontal coordinates in the two-dimensional coordinate system to The microphone The average value of the sound intensity of the data segment is recorded as The latest microphone The sound intensity.
[0063] Further, all the latest Mike The two newest microphones with the largest sound intensity are recorded as sound microphones. The specific calculation formula for the user's horizontal coordinate within the time corresponding to each data segment is as follows:
[0064]
[0065]
[0066] In the formula, Indicates The time corresponding to the data segment The rate at which sound around a microphone decreases, represents the distance between each microphone and its four neighboring microphones, Indicates The latest microphone The sound intensity, Indicates The latest microphone The sound intensity, Indicates The horizontal coordinate of the user in the time corresponding to the data segment, represents the minimum horizontal coordinate of the sound microphone, represents the maximum horizontal coordinate of the sound microphone, Indicates the number of microphones installed in a row. The sound intensity of the microphone with the smallest horizontal axis is represented by It represents the sound intensity of the microphone adjacent to the right side of the microphone with the largest sound on the horizontal axis. The sound intensity of the microphone with the largest sound on the horizontal axis; hour .
[0067] It should be noted that The smaller the value, the The smaller the sound change within a unit distance in the time corresponding to the data segment; since the sound intensity collected by the two latest microphones is related to the sound intensity emitted by the user and the distance of the user's latest microphone, the sound intensity emitted by the user at the same collection time is the same, so when , explain During the time corresponding to each data segment, the user is between the two sound microphones; Indicates that when the user's horizontal coordinate is less than At that time, The distance between the user's horizontal coordinate and the sound microphone with the smallest horizontal coordinate during the time corresponding to each data segment; Indicates that when the user's horizontal coordinate is equal to At that time, The distance between the user's horizontal coordinate and the sound microphone with the smallest horizontal coordinate during the time corresponding to the data segment. The specific position relationship is as follows: Figure 3 shown.
[0068] At this point, the horizontal coordinate of the user in the time corresponding to each data segment is obtained.
[0069] Furthermore, according to the ordinate of each microphone, each microphone is mapped to the vertical axis, and the obtained Update microphone, represents the number of microphones installed in each column. The updated microphone coordinates are . Set all the vertical coordinates in the two-dimensional coordinate system to The microphone The average value of the sound intensity of the data segment is recorded as Update microphone The sound intensity. The method for obtaining the horizontal coordinate of the user within the time corresponding to the data segment is based on the first The sound intensity and coordinates are obtained The vertical coordinate of the user within the time period corresponding to each data segment.
[0070] At this point, the vertical coordinate of the user in the time corresponding to each data segment is obtained.
[0071] Furthermore, according to The horizontal and vertical coordinates of the user in the time corresponding to the data segment are obtained. The specific calculation formula for the distance between the user and each microphone within the time corresponding to each data segment is as follows:
[0072]
[0073] In the formula, Indicates The time corresponding to the data segment is the time when the user The distance between the microphones, Indicates The horizontal coordinate of the user in the time corresponding to the data segment, Indicates The vertical coordinate of the user within the time corresponding to the data segment, Indicates The horizontal coordinate of the microphone, Indicates The vertical coordinate of the microphone.
[0074] It should be noted that The smaller the value of The horizontal coordinate of the user in the time corresponding to the data segment is The smaller the difference in the horizontal coordinates of the microphones; The smaller the value of The vertical coordinate of the user in the time corresponding to the data segment is The smaller the difference in the vertical coordinates of the microphones.
[0075] At this point, the distance between the user and each microphone within the time period corresponding to each data segment is obtained.
[0076] Step S003: According to the discrete degree of the sound data in each data segment of each microphone and the distance between the user and each microphone within the time corresponding to each data segment, the weight of the sound data in each data segment of each microphone is obtained, and then the influence weight of each sound data in the sound data sequence of each microphone is obtained.
[0077] It should be noted that when calculating the influence weight of the sound data collected by each microphone at a collection time on the sound data collected by the user at the collection time, since the discreteness of the sound data in a data segment of a microphone, that is, the variance, reflects the information conveyed by the number of sounds in the data segment, the weight of the sound data in each data segment of each microphone is obtained based on the discreteness of the sound data in a data segment of each microphone and the distance between the user and each microphone during the time corresponding to each data segment.
[0078] Specifically, the specific calculation formula for obtaining the weight of the sound data in each data segment of each microphone is as follows:
[0079]
[0080] In the formula, Indicates The first microphone The weight of the sound data in a data segment, Indicates The time corresponding to the data segment is the time when the user The distance between the microphones, Indicates The average distance between the user and all microphones during the time corresponding to the data segment, Indicates The first microphone The variance of the sound data within a data segment, Indicates the first The mean of the variance of the sound data in the data segment, is an exponential function with a natural constant as base, Represents the softmax normalization function, the normalized object is all microphones .
[0081] It should be noted that The smaller the value of The time corresponding to the data segment is the time when the user The closer the distance between the first microphone, the The first microphone The smaller the difference between the sound data in a data segment and the sound data transmitted by the user; The larger the value, the The first microphone The more sound data in a data segment, the more it indicates that The time corresponding to the data segment is the time when the user The closer the microphones are, the This is used to avoid the softmax function having input values of 0.
[0082] Furthermore, The first microphone The weight of the sound data in the data segment is recorded as The first microphone The influence weight of each sound data in a data segment.
[0083] At this point, the influence weight of each sound data in the sound data sequence of each microphone is obtained.
[0084] Step S004: According to each sound data in the sound data sequence of each microphone and its influence weight, the sound data sequence of the user is obtained, and speech recognition is performed.
[0085] Specifically, according to the influence weight of each sound data in the sound data sequence of each microphone and each sound data in the sound data sequence of each microphone, a specific calculation formula for obtaining the sound data of the user is as follows:
[0086]
[0087] In the formula, Indicates the first The value of the sound data, Indicates The first The influence weight of each sound data, Indicates The first The value of the sound data, Indicates the number of microphones installed in the smart recognition area.
[0088] At this point, the user's voice data sequence is obtained.
[0089] Furthermore, voice recognition is performed based on the user's voice data sequence. However, performing voice recognition based on the user's voice data sequence is not the focus of this embodiment and is a well-known technology, so this embodiment will not elaborate on it.
[0090] At this point, this embodiment is completed.
[0091] To sum up, in the embodiments of the present invention, the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for interactive user speech recognition for an AI agent, characterized in that: The method comprises the following steps: Install microphones in the intelligent recognition area to obtain a sound data sequence of each microphone; A two-dimensional coordinate system is constructed for the intelligent recognition area to obtain the horizontal coordinate and vertical coordinate of each microphone; the sound data sequence of each microphone is divided into several data segments, and the sound intensity of each data segment of each microphone is obtained; according to the horizontal coordinate of the microphone and the sound intensity of each data segment, several latest microphones are obtained, and then the sound intensity of each data segment of the latest microphone is obtained; according to the sound intensity and horizontal coordinate of each latest microphone, the sound attenuation rate around each latest microphone in the time corresponding to each data segment is obtained; the horizontal coordinate of the user in the time corresponding to each data segment is obtained by combining the coordinates of the latest microphone with the sound intensity of each data segment; according to the sound intensity and vertical coordinate of each data segment of each microphone, the vertical coordinate of the user in the time corresponding to each data segment is obtained; according to the horizontal and vertical coordinates of the user in the time corresponding to each data segment and the horizontal and vertical coordinates of the microphone, the distance between the user and each microphone in the time corresponding to each data segment is obtained; The specific method of obtaining the sound attenuation rate around each latest microphone in the time corresponding to each data segment according to the sound intensity and the horizontal coordinate of each latest microphone includes: All the latest microphones The two newest microphones with the largest sound intensity are recorded as sound microphones; Get the The time corresponding to the data segment The specific calculation formula for the sound attenuation rate around the latest microphone is as follows: In the formula, Indicates The time corresponding to the data segment The rate at which sound is attenuated around the latest microphone. represents the distance between each microphone and its four neighboring microphones, Indicates The latest microphone The sound intensity, Indicates The latest microphone sound intensity; The specific method of combining the coordinates of the latest microphone with the sound intensity of each data segment to obtain the horizontal coordinate of the user in the time corresponding to each data segment includes: In the formula, Indicates The horizontal coordinate of the user in the time corresponding to the data segment, Indicates The time corresponding to the data segment The rate at which sound is attenuated around the latest microphone. represents the distance between each microphone and its four neighboring microphones, represents the minimum horizontal coordinate of the sound microphone, represents the maximum horizontal coordinate of the sound microphone, Indicates the number of microphones installed in a row. The sound intensity of the microphone with the smallest horizontal axis is represented by It represents the sound intensity of the microphone adjacent to the right side of the microphone with the largest sound on the horizontal axis. The sound intensity of the microphone representing the largest sound on the horizontal axis; The specific method of obtaining the vertical coordinate of the user in the time corresponding to each data segment according to the sound intensity and the vertical coordinate of each data segment of each microphone includes: According to the ordinate of each microphone, each microphone is mapped to the vertical axis, and we get Update microphone, The updated microphone coordinates are ;in, Indicates the number of microphones installed in each preset column; All the vertical coordinates in the two-dimensional coordinate system are The microphone The average value of the sound intensity of the data segment is recorded as Update microphone sound intensity; According to The method for obtaining the horizontal coordinate of the user within the time corresponding to the data segment is based on the first The sound intensity and coordinates are obtained The vertical coordinate of the user within the time period corresponding to each data segment; According to the discrete degree of the sound data in each data segment of each microphone and the distance between the user and each microphone during the time corresponding to each data segment, the weight of the sound data in each data segment of each microphone is obtained, and then the influence weight of each sound data in the sound data sequence of each microphone is obtained; According to each sound data in the sound data sequence of each microphone and its influence weight, the sound data sequence of the user is obtained, and speech recognition is performed; The specific method of installing microphones in the intelligent recognition area and obtaining the sound data sequence of each microphone includes: Install in smart identification area microphones, and obtain a microphone array so that when the user performs voice operation, the user is in the microphone array; wherein the distance between each microphone and other microphones in its four neighborhoods is rice, Indicates the number of microphones installed in each row. Indicates the number of microphones installed in each preset column. Indicates the distance between each preset microphone and other microphones in its four neighborhoods; The microphone capture interval is ms of sound data, and obtain the sound data sequence of each microphone; wherein, Indicates the preset collection interval; The specific method of obtaining a number of latest microphones according to the abscissa of the microphone and the sound intensity of each data segment, and then obtaining the sound intensity of each data segment of the latest microphone, includes: According to the horizontal coordinate of each microphone, each microphone is mapped to the horizontal axis to the right, and we get The latest microphones; The coordinates of the latest microphone are ; Set all the horizontal coordinates in the two-dimensional coordinate system to The microphone The average value of the sound intensity of the data segment is recorded as The latest microphone sound intensity; The method of obtaining the weight of the sound data in each data segment of each microphone according to the discrete degree of the sound data in each data segment of each microphone and the distance between the user and each microphone during the time corresponding to each data segment, and then obtaining the influence weight of each sound data in the sound data sequence of each microphone, includes the following specific methods: In the formula, Indicates The first microphone The weight of the sound data in a data segment, Indicates The time corresponding to the data segment is the time when the user The distance between the microphones, Indicates The average distance between the user and all microphones during the time corresponding to the data segment, Indicates The first microphone The variance of the sound data within a data segment, Indicates the first The mean of the variance of the sound data in the data segment, is an exponential function with a natural constant as base, represents the softmax function; The first The first microphone The weight of the sound data in the data segment is used as the The first microphone The influence weight of each sound data in a data segment.
2. The interactive user speech recognition method for an AI agent according to claim 1, characterized in that: The specific method of constructing a two-dimensional coordinate system for the intelligent recognition area to obtain the horizontal coordinate and the vertical coordinate of each microphone includes: With the microphone at the lower left corner of the intelligent recognition area as the origin, the horizontal rightward direction as the horizontal axis, and the vertical upward direction as the vertical axis, a two-dimensional coordinate system is obtained, and then the horizontal and vertical coordinates of each microphone are obtained.
3. The interactive user speech recognition method for an AI agent according to claim 1, characterized in that: The method of dividing the sound data sequence of each microphone into a plurality of data segments and obtaining the sound intensity of each data segment of each microphone includes: The duration of the preset data segment is ms, divide the sound data sequence of each microphone into several data segments; The first microphone The mean value of all sound data in a data segment is recorded as The first microphone The sound intensity of each data segment.
4. The interactive user speech recognition method for an AI agent according to claim 1, characterized in that: The method of obtaining the user's voice data sequence according to each voice data and its influence weight data in the voice data sequence of each microphone includes the following specific methods: In the formula, Indicates the first The value of the sound data, Indicates The first The influence weight of each sound data, Indicates The first The value of the sound data, Indicates the number of microphones installed in the smart recognition area.
