Background
At present, most audio collecting devices such as microphones and sound collectors generally adopt a spherical structure in order to receive sound propagated from various directions as much as possible, but they do not have a sound source direction determination function.
In some specific application occasions, the device needs to judge the direction and the orientation of a sound source, such as some anti-theft monitoring devices, fire safety monitoring devices, classroom real-time recording devices, robots and the like, and needs to judge the orientation of a person or an object which makes a sound, so as to realize automatic tracking of a target.
At present, most of sound source tracking methods are realized through circuits or software, accuracy cannot be guaranteed, cost is high, but no hardware device capable of judging sound direction exists, so that a sound source direction judging device and a sound source direction judging method are developed, judgment and identification of the position of a sound source are realized, and the sound source tracking method has important significance.
Disclosure of Invention
The invention provides a sound source position judging device and a sound source position judging method based on a directional sound sensor, which are used for realizing the positioning and the identification of a sound source, and the specific technical scheme is as follows:
a directional acoustic sensor characterized by: the sound collection device comprises a sound collection cavity 2, wherein a sound channel 4 is arranged in the middle of the sound collection cavity 2, a silencing cavity 1 is arranged between the sound channel 4 and the outer wall of the sound collection cavity 2, and soft silencing materials are arranged in the silencing cavity 1; the sound channel 4 bottom sets up miaow head chamber 5, set up the miaow head in the miaow head chamber 5.
Further, the software sound attenuation material is polyester sound absorption cotton.
The sound source direction judging device based on the directional sound sensors comprises 4 directional sound sensors which are arranged in the same plane, the directional sound sensors are arranged at intervals of 90 degrees by taking a certain point as a center, and the microphone heads of the sound sensors are all connected with a central processing chip 6.
The sound source direction judging device based on the directional sound sensors comprises 6 directional sound sensors which are arranged in a space, wherein the directional sound sensors are arranged at intervals of 90 degrees from a certain point to the top, the bottom, the left, the right, the front and the back, and the microphone heads of the sound sensors are all connected with a central processing chip 6.
The sound source direction judging method based on the sound source direction judging device comprises the following steps:
a: establishing a plane coordinate system by taking the centers of the directional sensors in 4 directions as an origin, and setting a quadrant;
b: the 4 directional sensors arranged in different directions respectively collect the signals of the sound source and transmit the signals to the central processing chip, and the sound signal intensities are respectively recorded as S1, S2, S3 and S4;
c: selecting the maximum two values of S1, S2, S3 and S4, and marking the maximum two values as Sx along the X-axis direction and Sy along the Y-axis direction, namely the sound source direction is closest to the sound direction of the directional sensor corresponding to the Sx and Sy, so as to obtain the quadrant where the sound source is located;
d: according to the formula
Calculating the included angle alpha between the sound source direction and the X axis
E: and determining the direction of the sound source according to the quadrant of the sound source and the included angle alpha.
The sound source direction judging method based on the sound source direction judging device comprises the following steps:
a: establishing a space coordinate system by taking the centers of the directional sensors in 6 directions as an origin, and setting a first quadrant to an eighth quadrant;
b: the 6 directional sensors arranged in different directions respectively collect signals of a sound source and transmit the signals to the central processing chip, and the sound signal intensities are respectively recorded as S1, S2, S3, S4, S5 and S6;
c: selecting two maximum values of S1, S2, S3, S4, S5 and S6, marking as Sx along the X-axis direction, marking as Sy along the Y-axis direction, and marking as Sz along the Z-axis direction, namely, the sound source direction is closest to the sound direction of the directional sensor corresponding to Sx, Sy and Sz, so as to obtain the quadrant where the sound source is located;
d: according to the formula
Calculating X, Y the included angle alpha between the sound source direction and the X axis in the plane
According to the formula
Calculating X, Z the included angle beta between the sound source direction and the X axis in the plane
Calculating the space angle gamma between the sound source direction and the X axis according to the included angle alpha and the included angle beta
E: and determining the direction of the sound source according to the quadrant of the sound source and the space angle gamma.
The sound source direction judging device and method based on the directional sound sensor provided by the invention have the following advantages that:
the method has the advantages that firstly, the direction selection function is realized, only the sound in the direction of the sound channel is received, the sound transmitted in other directions is obviously weakened, the function of the sound sensor is expanded, the method is suitable for wide occasions, and hardware support is provided for judging the direction and tracking of the sound source;
secondly, a unique silencing cavity design is adopted, and a special silencing material is matched, so that the silencing effect on sounds in other directions is good; simple structure and easy integration.
Thirdly, the method comprises the following steps: the method can realize the direction identification of the sound source in the plane and the three-dimensional environment, reduce the circuit and software algorithm design and reduce the cost.
Detailed Description
The following describes the directional acoustic sensor according to the present invention in further detail with reference to the drawings and the embodiments.
As shown in fig. 1, the sound sensor with directivity comprises a sound collection cavity 2, a sound channel 4 is arranged in the middle of the sound collection cavity 2, a sound attenuation cavity 1 is arranged between the sound channel 4 and the outer wall of the sound collection cavity 2, and a soft sound attenuation material is arranged in the sound attenuation cavity 1. The opening of the sound-deadening chamber 1 is gradually narrowed from the sound passage 4 to the outer wall of the sound-collecting chamber 2. The soft noise reduction material is preferably polyester sound absorption cotton. The sound channel 4 bottom sets up miaow head chamber 5, set up the miaow head in the miaow head chamber 5. The microphone is connected with the sound processing chip to process the collected sound.
The sound sensor with the directivity only receives the sound in the direction of the sound channel 4, most of the sound transmitted in other directions is absorbed by the silencing cavity 1, and compared with the sound transmitted from the sound channel, the sound sensor with the directivity is obviously weakened, can realize the identification and tracking of a target sound source by being matched with other equipment, and has wide application prospect.
As shown in fig. 2, the sound source direction determination device based on the directional sound sensors includes 4 directional sound sensors arranged in the same plane, the directional sound sensors are arranged at an interval of 90 ° with a certain point as the center, and the microphones of the sound sensors are all connected to the central processing chip 6.
The sound source direction judging method based on the sound source direction judging device comprises the following steps:
a: establishing a plane coordinate system by taking the centers of the directional sensors in 4 directions as an origin, and setting a quadrant;
b: the 4 directional sensors arranged in different directions respectively collect the signals of the sound source 7 and transmit the signals to the central processing chip, and the sound signal intensities are respectively recorded as S1, S2, S3 and S4;
c: selecting the two largest values of S1, S2, S3 and S4, and marking as Sx along the X-axis direction and Sy along the Y-axis direction, as shown in FIG. 3, that is, the sound source direction is closest to the sound direction of the directional sensor corresponding to Sx and Sy, so as to obtain the quadrant where the sound source is located;
d: according to the formula
Calculating the included angle alpha between the sound source direction and the X axis
E: and determining the direction of the sound source according to the quadrant of the sound source and the included angle alpha.