A human-computer interaction system and method based on auditory perception
Through a human-computer interaction system based on auditory perception, using microphone arrays and rotating platforms, it solves the problems of delay and unsmoothness in traditional systems when interacting in complex environments, achieves 360-degree omnidirectional rotation and high-precision sound source positioning, and improves Efficiency and naturalness of human-computer interaction.
Patent Information
- Application Number
- CN202410161441.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-05
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-02-05
AI Technical Summary
Traditional human-computer interaction systems rely on visual sensors, which are limited by lighting conditions and obstructions, making it difficult to achieve 360-degree omnidirectional rotation, resulting in delays and unsmooth interactions in complex environments, and the inability to accurately identify and respond to the location of the user's sound source.
A human-computer interaction system based on auditory perception is used to collect sound source signals through a microphone array for real-time sound source positioning and processing. It is combined with a rotating platform to achieve 360-degree omnidirectional rotation, ensuring that the robot can quickly respond to changes in the user's position.
It improves the sound source positioning accuracy and interaction efficiency in complex environments, realizes the robot's high-precision recognition and rapid response to the user's position, and improves the naturalness and reliability of human-computer interaction.
Smart Images

Figure CN118098228B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of interactive robots, and in particular to a human-computer interaction system and method based on auditory perception. Background Art
[0002] With the continuous development of artificial intelligence and robotics, human-computer interaction systems have been widely used in many fields. As an important aspect of human-computer interaction, sound source localization has gradually attracted the attention of researchers. Traditional human-computer interaction systems mainly rely on visual sensors. However, due to the limitations of lighting conditions, occlusion and complex environments, robots have certain difficulties in obtaining and tracking user positions.
[0003] In order to solve the above problems, some research is devoted to introducing sound perception technology to achieve more flexible and accurate perception of the user's position. However, most systems currently still use a single microphone or a simple sound localization method, which limits its application in real scenarios. In existing sound source localization technology, microphone arrays are often used to locate the direction of the sound source, but there are still some limitations, such as limited real-time localization capabilities for multi-directional sound sources.
[0004] There is an obvious limitation in the development of existing robot technology, that is, the robot's ability to rotate is restricted by design and technology, and it is difficult to achieve a full 360-degree rotation. This limitation seriously affects the fluency and effect of human-computer interaction. In many interactive scenarios, users may be in different positions or angles of the robot, and traditional robot systems may not be able to respond to users' voice commands quickly and accurately or communicate effectively because they cannot rotate 360 degrees in all directions. Especially in complex environments, robots may face occlusions or other obstacles and cannot adjust their direction in time, resulting in delays and unsmooth interactions. This limitation limits the robot's perception and response capabilities in specific directions, and may miss key information from users, thereby reducing the overall efficiency of human-computer interaction and user experience.
[0005] In summary, how to make the interactive robot identify the location of the sound source, combine it with the human-computer interaction function, and enable it to accurately identify the location of the sound source, respond in real time, and rotate 360 degrees to face the sound source is an issue that needs to be solved urgently by researchers in this field. Summary of the invention
[0006] The technical problem to be solved by the present invention is to provide a human-computer interaction system and method based on auditory perception in response to the above-mentioned deficiencies in the prior art. The human-computer interaction system and method based on auditory perception can identify the position of the sound source in the space, thereby more accurately identifying the current position of the user. At the same time, the interactive robot makes targeted responses according to the current position of the user, thereby better performing human-computer interaction with the user.
[0007] In order to achieve the above technical objectives, the technical solution adopted by the present invention is:
[0008] A human-computer interaction method based on auditory perception, comprising a sound source acquisition step, a sound source localization step and a human-computer interaction step;
[0009] The sound source collection steps include:
[0010] S101, a microphone array collects audio signals from a sound source;
[0011] S102, amplifying the collected audio signal;
[0012] S103, filtering the amplified audio signal;
[0013] S104, collecting the amplified and filtered audio signal through a USB data acquisition card;
[0014] S105, transmitting the audio signal collected by the USB data acquisition card to the PC in real time;
[0015] The sound source localization step is performed on the PC side, and the sound source localization step includes:
[0016] S201, loading the audio signal collected by the USB data acquisition card;
[0017] S202, performing trend elimination and normalization preprocessing on the collected audio signals, and performing denoising on the preprocessed audio signals to obtain multi-channel denoised audio signals;
[0018] S203, performing windowing and framing processing on the multi-channel denoised audio signals to obtain multi-channel short-term stable signals;
[0019] S204, judging whether the multi-channel short-term stable signals are voice signals through endpoint detection; if yes, executing step S205; if no, executing step S210;
[0020] S205, performing fast Fourier transform on the multi-channel short-time stationary signals to determine the cross-power spectral density function of the multi-channel short-time stationary signals;
[0021] S206, performing a weighted cross-correlation operation on the frequency domain signals of the multi-path short-time stationary signals;
[0022] S207, continuing to perform inverse Fourier transformation on the cross-correlation operation result, transforming from the frequency domain to the time domain;
[0023] S208, searching for the maximum value of the peak value in the inverse Fourier transform to obtain the time delay difference between the sound source reaching other microphones in the microphone array and the reference microphone;
[0024] S209, calculating the position of the sound source relative to the microphone array according to the obtained time delay difference and the distance between the microphones in the microphone array;
[0025] S210, discarding multiple short-term stable signals;
[0026] The human-computer interaction steps include:
[0027] S301, the PC encodes the currently calculated position of the sound source relative to the microphone array and the sound source information and transmits them to the interactive robot;
[0028] S302, the interactive robot receives the encoded signal, decodes and converts the coordinate system, and calculates the position of the sound source relative to the interactive robot;
[0029] S303, the interactive robot determines the corresponding interactive content according to the sound source information obtained after decoding;
[0030] S304: The interactive robot outputs the interactive content in a human-computer interaction manner according to the determined interactive content; the interactive robot completes a turning action according to the position of the sound source relative to the interactive robot, and faces the sound source.
[0031] As a further improved technical solution of the present invention, step S304 includes:
[0032] S3041, determining the priority of the turning action. When the turning action has a higher priority than other actions, first execute steps S3042-S3043, and then execute steps S3044-S3047; when the turning action has a lower priority than other actions, first execute steps S3044-S3047, and then execute steps S3042-S3043;
[0033] S3042, the interactive robot sends the encoded position of the sound source relative to the interactive robot to the Arduino controller in the Arduino-based rotating platform through the serial port. After receiving the data, the Arduino controller decodes it and controls the operation of the servo in the rotating platform according to the decoded position of the sound source relative to the interactive robot. The servo in the rotating platform drives the interactive robot to complete the turning action. After the interactive robot faces the sound source, the Arduino controller sends the information of the completion of the turning action to the interactive robot through the serial port; the interactive robot performs the next step of the interactive action.
[0034] S3043. If the interactive robot receives the serial port information sent by the Arduino controller indicating that the turning action is completed, the next interactive action is performed; if the interactive robot does not receive the serial port information sent by the Arduino controller indicating that the turning action is completed, the interactive robot continues to wait until the interactive robot receives the serial port information sent by the Arduino controller indicating that the turning action is completed;
[0035] S3044, the interactive robot calls the ontology API;
[0036] S3045, the interactive robot searches the library for an interactive content file corresponding to the current sound source information;
[0037] S3046, the interactive robot loads and executes the interactive content file through the API;
[0038] S3047. The interactive robot completes body movements according to the action instructions of the interactive content file. The interactive robot uses the main body speaker and plays interactive voice according to the voice instructions of the interactive content file to complete action interaction and voice interaction, thereby completing human-computer interaction.
[0039] As a further improved technical solution of the present invention, the microphone array includes 4 microphones, one of which is set as a reference microphone with coordinates (0, 0, 0), and the coordinates of the other three microphones are respectively recorded as (L, 0, 0), (0, L, 0), and (0, 0, L);
[0040] Step S209 includes:
[0041] According to the three obtained time delay differences and the shortest distance L from the other three microphones in the microphone array to the reference microphone, substitute them into the microphone array sound source localization analytical formula to calculate the position of the sound source relative to the microphone array;
[0042] The analytical formula for microphone array sound source localization is: 4r0 2 [(c 2 τ1 2 +c 2 τ2 2 +c 2 τ3 2 )-L 2 ]-4r0[L 2 (cτ1+cτ2+cτ3)+(c 3 τ1 3 +c 3 τ2 3 +c 3 τ3 3 )]+(c 4 τ1 4 +c 4 τ2 4 +c 4 τ3 4 )-2L 2 (c 2 τ1 2 +c 2 τ2 2 +c 2 τ32 )+3L 4 =0 (1);
[0043]
[0044] Where L is the array element spacing, that is, the shortest distance from the other three microphones in the microphone array to the reference microphone; τ i is the time delay difference between the sound source signal reaching the i-th microphone in the microphone array and the reference microphone, i = 1, 2, 3; r 0 is the distance from the target sound source to the reference microphone, c is the propagation speed of sound, is the azimuth angle between the sound source and the reference microphone, θ is the elevation angle between the sound source and the reference microphone;
[0045] Calculate r0 according to formula (1), substitute the solved r0 into formula (2) to calculate and θ;
[0046] The position of the sound source relative to the microphone array includes the distance r0 from the target sound source to the reference microphone, the azimuth angle between the sound source and the reference microphone and the elevation angle θ between the sound source and the reference microphone.
[0047] As a further improved technical solution of the present invention, the PC and the interactive robot are connected via local area network wireless communication.
[0048] As a further improved technical solution of the present invention, the microphone array includes a microphone array frame and four microphones;
[0049] The microphone includes a microphone sensor and a microphone circuit board. The microphone sensor is welded on the microphone circuit board. The microphone circuit board is connected to the microphone sensor bracket by using microphone circuit board screws. A flexible buffer pad is filled between the microphone circuit board and the microphone sensor bracket. The microphone sensor bracket is connected to the microphone array frame by bolts.
[0050] The microphone array frame includes three profiles, which are perpendicular to each other and connected by angle brackets. Three microphone sensor brackets are respectively connected to the three profiles by bolts. The fourth microphone sensor bracket is fixedly connected to one end of one of the profiles close to the angle bracket, and the microphone on the fourth microphone sensor bracket is a reference microphone.
[0051] As a further improved technical solution of the present invention, the rotating platform includes a rotating disk, a turntable platform base, a power switch, an OLED display screen module, a lithium battery charging interface, a universal ball bearing, an Arduino controller, a steering wheel, a steering gear and a lithium battery;
[0052] The inner side of the turntable platform base is connected with universal ball bearings around the periphery, and the universal ball bearings are used to guide and support the rotating disk. The middle part of the inner side of the turntable platform base is connected with a steering gear and a lithium battery. The outer circular wall of the turntable platform base is connected with an OLED display screen module, a power switch, and a lithium battery charging interface;
[0053] The lithium battery charging interface is electrically connected to the lithium battery, and the lithium battery is electrically connected to the OLED display screen module, the Arduino controller and the steering gear through the power switch. The Arduino controller is electrically connected to the steering gear and the OLED display screen module at the same time. The Arduino controller has a serial communication port, and the serial communication port is arranged on the outer circular wall of the turntable platform base;
[0054] The output end of the steering gear is connected to a rotating disk through a steering plate, and the rotating disk is located on a turntable platform base and is in contact with a universal ball bearing;
[0055] The steering gear is used to drive the rotating disk to rotate relative to the turntable platform base through the steering plate.
[0056] As a further improved technical solution of the present invention, the turntable platform base is cylindrical; the middle inner part of the turntable platform base is a hollow structure, and the middle inner part is provided with a first mounting groove for fixing the servo and a second mounting groove for fixing the lithium battery; the outer circular wall of the turntable platform base is provided with a plurality of through holes for fixing the OLED display screen module, the power switch, the lithium battery charging interface and the serial communication port respectively.
[0057] As a further improved technical solution of the present invention, one end of the universal ball bearing is a bolt structure, and the bolt structure at this end penetrates into the reserved through hole at the bottom of the turntable platform base and is connected to the hexagonal nut;
[0058] A spline groove is arranged in the middle of one side of the steering disc, the spline groove is connected to the output shaft of the steering gear, and the other side of the steering disc is connected to the rotating disc through bolts.
[0059] In order to achieve the above technical purpose, another technical solution adopted by the present invention is:
[0060] A human-computer interaction system based on auditory perception, comprising a sound source information collection module, a sound source position calculation and analysis module, and a human-computer interaction module;
[0061] The human-machine interaction module includes an interactive robot and a rotating platform, wherein the interactive robot is placed on the rotating platform, and the rotating platform is used to drive the interactive robot to rotate;
[0062] The sound source information collection module is used to collect audio signals and pre-process the audio signals;
[0063] The sound source position calculation and analysis module is used to calculate and analyze the preprocessed audio signal to obtain the sound source position and send the sound source position and sound source information to the interactive robot;
[0064] The interactive robot is used to send the location of the sound source to the rotating platform, and the rotating platform drives the interactive robot to rotate according to the received location of the sound source so as to face the sound source;
[0065] The interactive robot is used to call the ontology API according to the sound source information and execute the interactive content file corresponding to the current sound source information through the ontology API.
[0066] As a further improved technical solution of the present invention, the sound source information collection module includes a microphone array, a DC bias voltage circuit, an audio amplifier circuit, a bandpass filter circuit and a USB data acquisition card;
[0067] The DC bias voltage circuit is used to provide a bias voltage for the microphone array;
[0068] The audio amplifier circuit is used to amplify the audio signal collected by the microphone array;
[0069] The bandpass filter circuit is used to perform bandpass filtering on the amplified audio signal;
[0070] The USB data acquisition card is used to collect the amplified and filtered audio signal and transmit it to the PC through the USB interface, and the sound source position calculation and analysis module is deployed on the PC end.
[0071] The beneficial effects of the present invention are:
[0072] (1) The present invention provides a human-computer interaction system based on auditory perception, which collects sound source signals through a microphone array, calculates and analyzes the position, and realizes high-precision real-time positioning of the sound source. Compared with the traditional visual system, this system uses auditory perception, is not restricted by illumination and occlusion, and improves reliability and robustness in complex environments.
[0073] (2) The present invention designs an omnidirectional rotation mechanism, which enables the robot to rotate freely 360 degrees. This omnidirectional rotation capability provides the robot with a more flexible interaction mode, enabling it to quickly respond to changes in the user's position, and improving the naturalness and efficiency of human-computer interaction.
[0074] (3) The present invention combines real-time sound source localization technology with an omnidirectional rotation mechanism, so that the robot can quickly adjust its posture to face the user. This allows the robot to respond to the user's instructions and actions more quickly and naturally, achieving smoother human-computer interaction.
[0075] (4) The present invention improves the system's adaptability to the environment and noise by optimizing the sound processing algorithm. The robot can maintain efficient sound source localization and interaction capabilities in the scene, providing more robust and reliable services.
[0076] (5) This system is a modular system with a flexible structure.
[0077] (6) The present invention provides a sound signal acquisition circuit that can better acquire sound signals.
[0078] (7) The present invention provides a microphone array structure with better real-time performance.
[0079] (8) The present invention provides a sound source localization algorithm with high positioning accuracy and good real-time performance.
[0080] (9) The present invention provides a communication method among a microphone array, a data acquisition card, a PC, an interactive robot, and an Arduino rotating platform.
[0081] (10) The present invention provides a process for determining the priority of rotational movements and other movements of the robot. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] Figure 1 It is a general composition framework diagram of a human-computer interaction system based on auditory perception provided by an embodiment of the present invention.
[0083] Figure 2 is a schematic diagram of a microphone array structure provided by an embodiment of the present invention.
[0084] Figure 3 This is a flow chart of collecting sound source signals using four microphones provided in an embodiment of the present invention.
[0085] Figure 4 It is a flow chart of solving the sound source position based on the arrival delay difference and generalized cross-correlation delay estimation method provided by an embodiment of the present invention.
[0086] Figure 5 It is a flowchart of the human-machine interaction execution of the interactive robot provided by an embodiment of the present invention.
[0087] Figure 6 It is a communication flow chart of a human-computer interaction system based on auditory perception provided by an embodiment of the present invention.
[0088] Figure 7 It is a general flow chart of the human-computer interaction system based on auditory perception provided by an embodiment of the present invention.
[0089] Figure 8 It is a flow chart based on the Arduino Uno R3 rotating platform provided by an embodiment of the present invention.
[0090] Fig. 9 is a structural diagram of a microphone array provided in an embodiment of the present invention.
[0091] Fig.10 It is an exploded view of a method for fixing microphones in a microphone array provided in an embodiment of the present invention.
[0092] Fig.11 It is a structural diagram of a microphone sensor bracket provided by an embodiment of the present invention.
[0093] Fig.12 It is a structural diagram of another microphone sensor bracket provided by an embodiment of the present invention.
[0094] Fig.13 It is a structural diagram of a rotating platform provided in an embodiment of the present invention.
[0095] Fig.14 It is a diagram of the internal composition of the rotating platform provided in an embodiment of the present invention.
[0096] Fig.15 It is a bottom view of the turntable platform base provided by an embodiment of the present invention.
[0097] Fig.16 It is a top view of the turntable platform base provided by an embodiment of the present invention.
[0098] Fig.17 It is a side view of the turntable platform base provided by an embodiment of the present invention.
[0099] Fig.18 It is a position diagram of a microphone array, a turntable platform, a PC, and an interactive robot provided in an embodiment of the present invention.
[0100] Fig.19 1 is an audio amplification circuit diagram of a microphone array provided in an embodiment of the present invention.
[0101] Fig. 20 4 is a circuit diagram of a bandpass filter of a microphone array provided in an embodiment of the present invention.
[0102] Fig.21 The figure is a circuit diagram of a rotating platform based on Arduino Uno R3 provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0103] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0104] The present invention solves the problem of sound source localization based on multi-microphone sound source localization.
[0105] The interactive robot in the present invention can be a mobile robot or a fixed robot.
[0106] The sound source in the present invention can be a fixed sound source or a mobile sound source.
[0107] The following embodiments take the optimal spatial tetrahedron array structure as an example (such as Figure 2 As shown), a method and device for locating a target sound source are introduced.
[0108] The frequency range of speech signals is generally 300-3400 Hz. According to the spatial sampling theorem, the microphone spacing of the present invention can be set to 20-50 cm.
[0109] This embodiment provides a human-computer interaction system based on auditory perception. Figure 1 As shown, it includes a sound source information collection module, a sound source position calculation and analysis module, and a human-computer interaction module.
[0110] like Figure 3 As shown, the sound source information collection module includes a microphone array, a DC bias voltage circuit, a Max9814 audio amplifier circuit, a bandpass filter circuit and a USB data acquisition card.
[0111] The microphones in the microphone array use electret microphone sensors, which are omnidirectional microphones. When selecting microphones, you should choose electret microphones, omnidirectional microphones, microphones with wide frequency response, high sensitivity, and good identity between microphone sensors.
[0112] The microphone used in this embodiment is a 9767 direct-plug anti-interference microphone, which is an omnidirectional microphone with a frequency response range of 50-16000 Hz, a sensitivity of -38dB±3dB, a signal-to-noise ratio greater than 56dB, and an input impedance of 2.2KΩ.
[0113] The DC bias voltage circuit is used to provide bias voltage for the microphone array; the audio amplifier circuit is used to amplify the audio signal collected by the microphone array; the bandpass filter circuit is used to perform bandpass filtering on the amplified audio signal; the USB data acquisition card is used to collect the amplified and filtered audio signal and transmit it to the PC through the USB interface, and the sound source position calculation and analysis module is deployed on the PC side.
[0114] The sound source information acquisition module is used to collect audio signals and pre-process the audio signals. The sound source position calculation and analysis module is used to calculate and analyze the pre-processed audio signals to obtain the sound source position and send the sound source position and sound source information to the interactive robot. The interactive robot is used to send the sound source position to the rotating platform, and the rotating platform drives the interactive robot to rotate according to the received sound source position so as to face the sound source. The interactive robot is used to call the ontology API according to the sound source information and execute the interactive content file corresponding to the current sound source information through the ontology API.
[0115] The human-machine interaction module includes an interactive robot and a rotating platform. The interactive robot is placed on the rotating platform, and the rotating platform is used to drive the interactive robot to rotate.
[0116] The interactive robot is placed on a rotating platform based on Arduino Uno R3. The rotating platform with the interactive robot is placed in the quadrant of the microphone array. The PC is placed outside the quadrant of the microphone array. See the detailed location for details. Fig.18 A is a PC; F is a USB data acquisition card; B is an audio acquisition circuit; C is a microphone array (optimal four-dimensional array); D is an interactive robot; and E is a rotating platform based on Arduino.
[0117] This embodiment also provides a human-computer interaction method based on auditory perception, including a sound source collection process of a sound source information collection module, a sound source location process of a sound source location calculation and analysis module, and a human-computer interaction process of a human-computer interaction module. The overall process is as follows: Figure 7 shown.
[0118] The sound source collection process of the sound source information collection module is as follows: Figure 3 As shown, including:
[0119] S101, there are four microphones in the microphone array, such as Figure 2 As shown, the microphone 1, the microphone 2, the microphone 3 and the microphone 4 all use electret microphone sensors. Among them, the microphone 1 is the reference microphone.
[0120] S102: Add a bias voltage at one end of the microphone in the microphone array through a DC bias voltage circuit, the voltage being no greater than 10V, to drive the electret microphone to work normally. The microphone array collects audio signals from a sound source.
[0121] S103, amplifying the collected weak voltage signal through an audio amplifier circuit.
[0122] In step S103, for the selection of the amplifying circuit module, it is necessary to amplify the audio signal within the required frequency range with small distortion.
[0123] In step S103, the audio amplifier circuit used in this embodiment is a Max9814 audio amplifier module, which has a built-in 2V microphone bias generator and is suitable for electret condenser microphones. The AGC function of this module has a dynamic range of 20dB, which can avoid the situation of output clipping when the input gain is too large to a certain extent. The chip integrates a low-noise preamplifier, a variable gain amplifier, an output amplifier, a microphone bias generator and an AGC control circuit. The chip is powered by a direct current 2.7V-5.5V power supply, and the frequency response range is 200Hz-20KHz.
[0124] S104: filtering the amplified audio signal through a bandpass filter circuit to weaken the audio signal in the non-speech signal frequency band.
[0125] In step S104, the selected filter type is a bandpass filter, which is mainly used to filter out unnecessary frequency components in the conditioning circuit, and the filter bandwidth needs to be within the range of 300 Hz-3.4 KHz.
[0126] In step S104, the bandpass filter used in this embodiment is a Butterworth second-order active bandpass filter, which is designed using the NE5532DR low-noise dual operational amplifier IC chip. There is no amplification function, and the module gain is 0dB. The bandwidth is 300Hz-3.4KHz, and the center frequency is 1.85KHz. ±5V is used for power supply.
[0127] S105, collect the amplified and filtered audio signal through a USB data acquisition card. Both ADC conversion data acquisition and microphone acquisition data set acquisition are implemented on the USB data acquisition card. The USB data acquisition card has the function of ADC conversion data acquisition and outputs microphone acquisition data.
[0128] In step S105, the selection of the USB data acquisition card needs to meet the following requirements: the USB data acquisition card is a synchronous data acquisition card, the data acquisition card needs to support analog input function, the data acquisition card sampling channel needs to be greater than four, the ADC resolution needs to be greater than or equal to 12 bits, the sampling speed needs to be greater than 100KSa / s, the range needs to be greater than or equal to ±5V, and support real-time data export programming.
[0129] In step S105, in the embodiment of the present invention, the USB data acquisition card model used is USB4012 synchronous data acquisition card, which supports 8-channel single-ended analog input, 16-bit ADC sampling, the maximum sampling rate of a single channel is 200KS / a, the maximum total of 8 channels is 1.6MSa / s, the range is ±5V / ±10V, and supports real-time data export programming.
[0130] S106, transmitting the audio signal collected by the USB data acquisition card to the PC in real time; loading it into the array, and waiting for the next step of sound source position calculation and analysis.
[0131] The sound source location calculation and analysis module is deployed on the PC side, and its sound source localization process is executed on the PC side. The sound source localization process of the sound source location calculation and analysis module is as follows: Figure 4 As shown, including:
[0132] S201, loading the sound source audio signal collected by the USB data acquisition card.
[0133] S202: performing trend elimination and normalization preprocessing on the collected audio signals, and performing denoising on the preprocessed audio signals to obtain four denoised audio signals.
[0134] S203, performing windowing and framing processing on the four-channel denoised audio signals to obtain four-channel short-term stable signals.
[0135] In step S203, as an implementation method, the four denoised sound source signals are framed using a Hamming window function to obtain four short-term stationary signals. The windowing and framing generally adopts a frame-by-frame overlapping method.
[0136] S204. Determine whether the four-channel short-term stable signals are voice signals through endpoint detection; if yes, execute step S205; if not, execute step S210.
[0137] In step S204, endpoint detection is speech endpoint detection, which uses energy gate endpoint detection to determine the starting point and ending point of the signal by calculating the energy of the signal in each time frame and then comparing it with a pre-set threshold.
[0138] S205, performing fast Fourier transform on the four-channel short-time stationary signals to determine the cross-power spectral density function of the four-channel short-time stationary signals.
[0139] S206: Perform a weighted cross-correlation operation on the frequency domain signals of the four-path short-time stationary signals.
[0140] In step 206, in is the frequency domain weighting function; is the weighted generalized cross-correlation function; signals x1(t) and x2(t); X1(ω) and X2(ω) are the Fourier transforms of signals x1(t) and x2(t), respectively; e -jωt is the inverse Fourier transform;
[0141] In step 206, the frequency domain weighting function is a phase transformation weighting function that makes the cross-power spectrum between signals smoother, thereby sharpening the generalized cross-correlation function.
[0142] is the PHAT phase transformation weighting function.
[0143] S207 , continue to perform inverse Fourier transform on the cross-correlation operation result, transforming from the frequency domain to the time domain.
[0144] S208. In the inverse Fourier transform, search for the maximum value of the peak value to obtain the time delay difference between the sound source reaching the other three microphones in the microphone array and the reference microphone.
[0145] In step S208, 1. Calculate the cross-correlation function: perform an inverse Fourier transform on the signal to obtain a cross-correlation function, which reflects the time delay of the sound source signal between different microphones. 2. Find the peak: In the obtained cross-correlation function, find the maximum value of the peak by searching. This usually involves finding the maximum value at a discrete time point. 3. Determine the time difference: The time point corresponding to the maximum peak, or the index in discrete time, is the time difference between the sound source and the microphone. This is because the peak corresponds to the maximum value of the cross-correlation function, which corresponds to the time delay of the sound wave reaching different microphones. 4. Convert to actual time: Convert the discrete time index to the actual time difference. This usually involves knowledge of the sampling rate (sampling frequency), because the relationship between the interval of discrete time units and the actual time is determined by the sampling rate.
[0146] S209: Calculate the position of the sound source relative to the microphone array according to the three obtained time delay differences and the distances between the microphones in the microphone array.
[0147] The microphone array of this embodiment includes 4 microphones, among which microphone 1 is set as the reference microphone with coordinates (0, 0, 0), and the coordinates of the other three microphones (microphone 2, microphone 3 and microphone 4) are recorded as (L, 0, 0), (0, L, 0) and (0, 0, L) respectively.
[0148] In step S209, the three obtained time delay differences and the shortest distance L from the other three microphones in the microphone array to the reference microphone are substituted into the microphone array sound source localization analytical formula to calculate the position of the sound source relative to the microphone array.
[0149] The analytical formula for microphone array sound source localization is: 4r0 2 [(c 2 τ1 2 +c 2 τ2 2 +c 2 τ3 2 )-L 2]-4r0[L 2 (cτ1+cτ2+cτ3)+(c 3 τ1 3 +c 3 τ2 3 +c 3 τ3 3 )]+(c 4 τ1 4 +c 4 τ2 4 +c 4 τ3 4 )-2L 2 (c 2 τ1 2 +c 2 τ2 2 +c 2 τ3 2 )+3L 4 =0 (1);
[0150]
[0151] Where L is the array element spacing, that is, the shortest distance from the other three microphones in the microphone array to the reference microphone; τ i is the time delay difference between the sound source signal reaching the i-th microphone in the microphone array and the reference microphone, i=1,2,3; r0 is the distance from the target sound source to the reference microphone, c is the propagation speed of sound, is the azimuth angle between the sound source and the reference microphone, and θ is the elevation angle between the sound source and the reference microphone. Assume that the coordinates of the sound source are (x, y, z), and the position of the sound source is vertically projected onto the xoy plane. The angle between the line connecting the projection point and the origin of the coordinates and the x-axis is the azimuth angle between the sound source and the reference microphone. The angle between the line connecting the coordinate point where the sound source is located and the coordinate origin and the z-axis is the pitch angle θ between the sound source and the reference microphone.
[0152] Calculate r0 according to formula (1), substitute the solved r0 into formula (2) to calculate the azimuth and pitch angle θ.
[0153] The position of the sound source relative to the microphone array includes the distance r0 from the target sound source to the reference microphone, the azimuth angle between the sound source and the reference microphone and the elevation angle θ between the sound source and the reference microphone.
[0154] S210, discard the four short-term stable signals; update the sound source signal, the process ends and enters the next frame.
[0155] The human-computer interaction process in the human-computer interaction module is as follows: Figure 5 As shown, including:
[0156] S301. The PC encodes the currently calculated position of the sound source relative to the microphone array and the sound source information and transmits them to the interactive robot.
[0157] S302: The interactive robot receives the encoded signal, decodes and converts the coordinate system, and calculates the position of the sound source relative to the interactive robot.
[0158] In step S302, in this embodiment, the process of transforming the coordinate system of the interactive robot is to transform the coordinate system of the sound source position. The position of the spatial sound source detected by the microphone array is a spatial rectangular coordinate system established relative to the array element microphones. It is necessary to re-establish the coordinate system with the interactive robot as the coordinate origin, and calculate the position of the sound source relative to the interactive robot.
[0159] S303, the interactive robot determines the corresponding interactive content according to the sound source information obtained after decoding;
[0160] S304: The interactive robot outputs the interactive content in a human-computer interaction manner according to the determined interactive content; the interactive robot completes a turning action according to the position of the sound source relative to the interactive robot, and faces the sound source.
[0161] The step S304 specifically includes:
[0162] S3041, determine the priority of the turning action (the priority is preset manually). When the turning action has a higher priority than other actions, first execute steps S3042-S3043 (i.e. communicate with the Arduino-based rotating platform, drive the servo to rotate and face the sound source), and then execute steps S3044-S3047; when the turning action has a lower priority than other actions, first execute steps S3044-S3047 (i.e. execute the robot body API interaction content file first), and then execute steps S3042-S3043 (i.e. execute the turning action last);
[0163] S3042, the interactive robot sends the encoded position of the sound source relative to the interactive robot to the Arduino controller in the Arduino-based rotating platform through the USB serial port. After receiving the data, the Arduino controller decodes it and controls the operation of the servo in the rotating platform according to the decoded position of the sound source relative to the interactive robot. The servo in the rotating platform drives the interactive robot to complete the turning action. After the interactive robot faces the sound source, the Arduino controller sends the information of the completion of the turning action to the interactive robot through the USB serial port; the interactive robot performs the next step of the interactive action.
[0164] S3043. If the interactive robot receives the serial port information sent by the Arduino controller indicating that the turning action is completed, the next interactive action is performed; if the interactive robot does not receive the serial port information sent by the Arduino controller indicating that the turning action is completed, the interactive robot continues to wait until the interactive robot receives the serial port information sent by the Arduino controller indicating that the turning action is completed;
[0165] S3044, the interactive robot calls the ontology API;
[0166] S3045, the interactive robot searches the library for an interactive content file corresponding to the current sound source information;
[0167] S3046, the interactive robot loads and executes the interactive content file through the API;
[0168] S3047. The interactive robot completes body movements according to the action instructions of the interactive content file. The interactive robot uses the main body speaker and plays interactive voice according to the voice instructions of the interactive content file to complete action interaction and voice interaction, thereby completing human-computer interaction.
[0169] In the above steps, the PC and the interactive robot are in the same local area network, and the PC and the interactive robot communicate wirelessly through the local area network. The local area network wireless communication is based on the TCP / IP protocol. The use of local area network wireless communication requires encoding and transmitting the transmission information. In this embodiment, the interactive action is set in the interactive robot supporting action editing software in advance, and the interactive voice is imported. The action voice file is used as the interactive content file, and the library is built and stored in the internal environment of the interactive robot. In the interactive robot, the servo steering gear is used to control the corresponding manipulator, mechanical arm, mechanical leg, mechanical foot and head to imitate the actions of moving forward, backward, blowing a kiss, covering the face, shaking hands, and holding a fist.
[0170] like Figure 6 As shown, the communication process scheme:
[0171] In the embodiment of the present invention, the USB data acquisition card communicates with the PC end, adopts the USB self-defined protocol to perform real-time data transmission, and is a one-way wired communication. The USB data acquisition card sends the audio signal to the PC end in real time.
[0172] In the embodiment of the present invention, the PC communicates with the interactive robot using the TCP / IP protocol. The PC and the interactive robot need to be in the same local area network, which is a two-way wireless communication. The TCP / IP protocol requires a handshake to confirm the establishment of communication. The PC sends the sound source location information to the interactive robot.
[0173] In the embodiment of the present invention, the interactive robot communicates with the rotating platform based on Arduino, and the USB serial port is used for communication, which is a two-way wired communication. The interactive robot sends the sound source location information to the rotating platform based on Arduino, and the rotating platform based on Arduino sends the rotation completion information to the interactive robot.
[0174] like Figure 8 As shown, the Arduino controller of this embodiment is an Arduino UNO R3 single-chip development board. Flow chart of the rotating platform based on Arduino Uno R3:
[0175] Turn on the rotating platform power.
[0176] And connect the serial port to the interactive robot, and wait for the interactive robot serial port to send data.
[0177] If the interactive robot does not send data, the Arduino serial port will continue to listen and wait for data transmission.
[0178] If the interactive robot sends data, Arduino first decodes the data, and then sends it to the OLED screen display module through the IIC protocol to display the specific information of distance, azimuth and pitch angle.
[0179] Then extract the azimuth angle value, convert it into an angle, convert it into a corresponding PWM signal, and send it to the servo.
[0180] The servo receives the PWM signal and completes the rotation.
[0181] Arduino sends the serial information of rotation completion to the interactive robot through the serial port.
[0182] At this point, one cycle is completed. After that, the serial port monitoring continues, waiting for the next interactive robot to transmit data.
[0183] like Figure 9-12 As shown, the microphone array:
[0184] The microphone array includes a microphone array frame and four microphones.
[0185] The microphone array frame includes three profiles 702, and the three profiles 702 are perpendicular to each other and connected to each other by angle brackets 703. The microphone array is a three-axis coordinate system, forming x, y, and z axes. Three microphone sensor brackets 710 are respectively connected to the three profiles 702 by profile fixing bolts 709 and trapezoidal nuts 708. The fourth microphone sensor bracket 710 is fixedly connected to one end of the profile 702 connected to the angle bracket 703 by profile fixing bolts 709 and trapezoidal nuts 708, and the microphone on the fourth microphone sensor bracket 710 is a reference microphone.
[0186] like Fig.10 The microphone includes a microphone sensor 701 and a microphone circuit board 706. The microphone sensor 701 is welded on the microphone circuit board 706. The microphone circuit board 706 is connected to the microphone sensor bracket 710 by using a microphone circuit board screw 705. A flexible buffer gasket 707 is filled between the microphone circuit board 706 and the microphone sensor bracket 710 to alleviate the rigid connection of the machinery, reduce mechanical resonance, and improve the sampling accuracy of the microphone sensor 701.
[0187] The microphone sensor bracket 710 is formed by 3D printing, and a fixing hole is opened on the contact surface between the microphone sensor bracket 710 and the profile 702. The microphone sensor bracket 710 is connected to the profile 702 through the profile fixing bolt 709 and the trapezoidal nut 708. The microphone sensor bracket 710 is not a single shape, but a variety of shapes, and its main purpose is to fix the microphone circuit board 706 on the profile 702.
[0188] The microphone sensor bracket 710 of this embodiment has two forms, respectively: Fig.11 As shown and Fig.12 shown.
[0189] like Fig.11 The microphone sensor bracket 710 shown in the figure has four positioning holes 711 fixed to the profile 702. The diameter of the positioning holes 711 is 4.2 mm, and the fixing bolts are M4*16. Fig.11 The microphone sensor bracket 710 shown is used to mount microphone four and microphone one.
[0190] like Fig.11 The microphone sensor bracket 710 shown is fixed to the profile 702 using four M4*16 bolts;
[0191] Two M2*10s are used to fix the microphone circuit board 706 and the microphone sensor bracket 710, with a flexible buffer gasket 707 in between.
[0192] like Fig.12 The microphone sensor bracket 710 shown in the figure has two positioning holes 711 fixed to the profile 702. The diameter of the positioning hole 711 is 4.2 mm, and the size of the fixing bolt is M4*16. Fig.12 The microphone sensor bracket 710 shown is used to mount microphone two and microphone three.
[0193] like Fig.12The microphone sensor bracket 710 shown is fixed to the profile 702 using two M4*16 bolts; the microphone circuit board 706 and the microphone sensor bracket 710 are fixed using two M2*10 bolts, with a flexible buffer gasket 707 in between.
[0194] The microphone array is a three-axis coordinate system, in which one microphone sensor 701 (microphone one) is fixed at the coordinate origin, and the other three microphone sensors 701 (microphone two, microphone three, microphone four) are fixed on the x-axis, y-axis, and z-axis respectively. The sensors fixed on the x, y, and z axes are respectively at a fixed distance from the origin.
[0195] In the embodiment of the present invention, the array element spacing, that is, the distance between the microphone sensor 701 and the coordinate origin is 400 mm.
[0196] like Figure 13-Figure 17 As shown, the rotating platform structure:
[0197] The rotating platform includes a rotating disk 901, a turntable platform base 902, a steering wheel fixing screw 903, a power switch 904, an OLED display screen module 905, a lithium battery charging interface 906, a universal ball bearing 907, an Arduino UNO R3 single-chip microcomputer development board 908, a charging interface fixing plate 909, a steering wheel 910, a steering gear 911, a step-down module 912, a lithium battery 913 and a hexagonal nut.
[0198] The rotating disk 901 has five fixing holes at the center for fixing with the steering plate 910. The contact surface between the rotating disk 901 and the turntable platform base 902 has an arc-shaped guide groove for guiding tangent to the shaft spherical surface of the universal ball bearing 907. The rotating disk 901 is formed by 3D printing.
[0199] The turntable platform base 902 is cylindrical in shape as a whole, with a hollow structure in the middle. Four bearing through holes 917 are provided around the turntable platform base 902 to install the universal ball bearing 907, and a hexagonal stepped hole 914 is provided on the other side of the four bearing through holes 917 to install the hexagonal nut and fix the universal ball bearing 907. A first mounting groove 915 for the servo 911 is provided in the center of the rotating platform to fix the servo 911. A second mounting groove 916 for the lithium battery 913 is also provided on the inner side to fix the lithium battery 913. Through holes of different sizes and shapes are provided on the cylindrical outer surface of the turntable platform base 902, which are respectively used to install the OLED display screen module 905, the lithium battery charging interface 906, the power switch 904, and the serial communication port of the Arduino Uno R3. Among them, the lithium battery charging interface 906 is bolted to the turntable platform base 902 through the charging interface fixing plate 909.
[0200] The power switch 904 turns on the power when in use and turns off the power when not in use, thereby saving energy and extending the service life of the electronic system.
[0201] The OLED display screen module 905 is used to display the sound source localization result, sound source distance, azimuth angle and pitch angle.
[0202] The lithium battery charging interface 906 is used to charge the 7.4V lithium battery 913 .
[0203] Universal ball bearings 907 are used to guide and support the rotating disk 901. There are four of them, which are distributed in a square shape around the turntable platform base 902. The other part of the universal ball bearing 907 at the ball head is a bolt structure, which penetrates into the through hole at the bottom of the turntable platform base 902 and is then connected with a hexagonal nut to achieve fixation.
[0204] Arduino UNO R3 single-chip microcomputer development board 908 is used to control the OLED display screen module 905 and the servo 911, and has a serial communication port (USB serial port) to receive signals from the host computer.
[0205] The steering wheel 910 has a spline groove in the middle of one side for connecting to the output rotating shaft of the steering gear 911, and the other side is connected to the rotating disk 901 through the steering wheel fixing screw 903 to transmit the rotational force.
[0206] The servo 911 is a 360-degree high-torque motor that provides precise angle control. The position where the output shaft center of the servo 911 coincides with the center of the turntable platform base 902 is the fixed position of the servo 911. It is connected to the turntable platform base 902 with bolts.
[0207] The step-down module 912 is used to step down the 7.4V of the lithium battery 913 to 5V to supply power to the Arduino UNO R3 single-chip microcomputer development board 908, the OLED display screen module 905 and the servo 911.
[0208] The lithium battery 913 is a 7.4V rechargeable lithium battery, which supplies power to the Arduino UNO R3 single-chip microcomputer development board 908, the OLED display screen module 905 and the servo 911.
[0209] The lithium battery charging interface 906 is electrically connected to the lithium battery 913, and the lithium battery 913 is electrically connected to the OLED display screen module 905, the Arduino UNO R3 single-chip microcomputer development board 908 and the steering gear 911 through the power switch 904. The Arduino UNOR3 single-chip microcomputer development board 908 is electrically connected to the steering gear 911 and the OLED display screen module 905 at the same time. The Arduino UNO R3 single-chip microcomputer development board 908 contains a serial communication port (USB serial port), and the serial communication port is arranged on the outer circular wall of the turntable platform base 902.
[0210] The steering gear 911 is used to drive the rotating disk 901 to rotate relative to the turntable platform base 902 through the steering wheel 910.
[0211] Fig.19 and Fig. 20 , is the Max9814 audio amplifier circuit diagram and bandpass filter circuit diagram of the microphone array.
[0212] In the present invention, the audio acquisition circuit is composed of a microphone sensor, a Max9814 audio amplifier circuit and a bandpass filter circuit.
[0213] The principle of the audio acquisition circuit is acquisition, amplification, and filtering. The voltage signal is acquired through the microphone sensor, and the microphone sensor is connected to the Max9814 audio amplifier circuit to amplify the voltage signal acquired by the microphone. Then the output line of the Max9814 audio amplifier circuit is connected to the bandpass filter circuit to filter out the signals other than the 300Hz-3.4KHz frequency. Finally, the output voltage signal is connected to the USB data acquisition card for real-time signal acquisition.
[0214] The power supply of the audio acquisition circuit is a separate power supply, the Max9814 audio amplifier circuit is powered by DC 5V, and the Max9814ETD+T chip has a built-in 2V microphone bias generator to power the electret condenser microphone. The filter circuit is powered by DC ±5V.
[0215] Because the embodiment of the present invention uses the optimal spatial tetrahedron array as the microphone array, it is a four-element microphone, and the total number of acquisition circuits is four groups, which ultimately output four sampling voltage signals.
[0216] like Fig.19 As shown in the figure, in the Max9814 audio amplifier circuit, the H1 signal output terminal is the output terminal of the amplified signal; the H2 power input terminal is the power supply terminal for the Max9814 audio amplifier circuit, and the power supply voltage is DC5V. MICBIAS is connected to the pin 13 of Max9814. Fig. 20As shown in the figure, in the bandpass filter circuit, the H3 power input terminal is the power supply terminal for the high and low pass filter circuits, and the power supply voltage is DC±5v, where pin 1 is DC-5v, pin 2 is GND, and pin 3 is DC+5V. The H4 signal input terminal is the signal input terminal; the H5 signal output terminal is the filtered signal output terminal. The H1 signal output terminal outputs the signal that has passed through the Max9814 audio amplifier module, that is, the amplified signal, which is connected to the H4 signal input terminal; the H5 signal output terminal outputs the signal that has been amplified and filtered, which is connected to the USB data acquisition card.
[0217] In the bandpass filter circuit, the filter is a second-order active bandpass filter, and the type of the filter is a Butterworth filter. The filter is used to filter out various types of interference signals in the circuit or to filter out unnecessary frequency components in the conditioning circuit. The filter is designed with the NE5532DR chip low-noise dual operational amplifier IC chip. The filter is powered by ±5v and has a 3pin interface, namely -5V, GND, and +5V. The filter has no amplification function and the module gain is 0dB. The bandwidth of the filter is 300Hz-3.4KHz and the center frequency is 1.85KHz. In the circuit design part of the filter, a diode circuit is added to the power supply for reverse power protection. The filter is an active filter, which can achieve any response without using an inductor, avoids the thorny problem of magnetic leakage, and does not require magnetic shielding. Compared with passive filtering, the signal in the passband not only has no energy loss, but also has an insignificant load effect. When multiple stages are connected, the mutual influence is very small. It is easy to form a high-order filter using a simple cascade method. In terms of construction, the use of universal standard components can be easily assembled, with small size and light weight. In this embodiment, the function of the filter is to filter out unnecessary frequency components in the conditioning circuit. The collected audio signal is mainly human voice, so the filter bandwidth is designed to be within the range of 300Hz-3.4KHz, the center frequency is 1.85KHz, and the power supply is ±5v.
[0218] like Fig.21 , is the circuit diagram of a rotating platform based on Arduino Uno R3.
[0219] In the present invention, the Arduino controller is an Arduino UNO R3 single-chip microcomputer development board 908; the controller includes an input-output interface board, and a microprocessor, a flash memory, a static random access memory and an electrically erasable read-only memory loaded thereon, and the microprocessor is connected to the flash memory, the static random access memory and the electrically erasable read-only memory respectively;
[0220] The input and output interface board has 14 digital I / O pins, of which 6 pins are used as PWM outputs; it also has 6 analog inputs, a 16MHz crystal oscillator, a USB interface, a power jack, an ICSP connector and a reset button.
[0221] In the present invention, the OLED display screen module 905 has a 4-pin pin header, which are GND, VCC, SCL, and SDA respectively; the size is 0.96 inches, the resolution is 128*64; the power supply is DC 3V-5V; and IIC is used for communication.
[0222] In the present invention, the servo 911 has a 3-pin header, which is respectively GND, VCC, and PWM; it is a 360-degree control mode, corresponding to a pulse width of 500-2500us; and the power supply voltage is DC 4.8V-7.4V.
[0223] In the present invention, the step-down module 912 is a LM2596S-ADJ adjustable step-down power supply module, and its inlet and outlet are 4 pins, namely IN+, IN-, OUT+, and OUT-. The input voltage is: 3.2V-40V, the output voltage is 1.25-35V, and the conversion efficiency is 92%. When the power supply is connected, the power indicator light on the LM2596S-ADJ is on, and the module works normally; adjust the blue potentiometer knob and monitor the output voltage with a multimeter until it reaches the required voltage.
[0224] In the present invention, the lithium battery 913 is a 7.4V18650 battery pack with a discharge voltage of 7.4V and a charge voltage of 8.4V; the lithium battery pack leads out 2pin discharge lines, namely VCC and GND, and has a built-in DC5.5 charging port, supporting 8.4V charging.
[0225] In the present invention, the rotating platform based on Arduino adopts lithium battery 913 for overall power supply, and lithium battery 913 leads to 2P discharge line, 7.4V VCC and GND are respectively connected to IN+ and IN- of step-down module 912, and the blue potentiometer knob on step-down module 912 is adjusted to the required 5V voltage. Step-down module 912, OUT+, OUT-, are respectively connected to Vin and GND pin ports of Arduino UNO R3 single-chip microcomputer development board 908 through Dupont lines. OLED display screen module 905, 4pin interface GND, VCC, SCL, SDA are respectively connected to GND, +5V, A5 / SCL, A4 / SDA interfaces of Arduino UNO R3 single-chip microcomputer development board 908. Servo 911, 3pin interface GND, VCC, PWM are respectively connected to GND, +5V, D9 PWM interfaces of Arduino UNO R3 single-chip microcomputer development board 908.
[0226] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A human-computer interaction method based on auditory perception, characterized in that: It includes the steps of sound source collection, sound source localization and human-computer interaction; The sound source collection steps include: S101, a microphone array collects audio signals from a sound source; S102, amplifying the collected audio signal; S103, filtering the amplified audio signal; S104, collecting the amplified and filtered audio signal through a USB data acquisition card; S105, transmitting the audio signal collected by the USB data acquisition card to the PC in real time; The sound source localization step is performed on the PC side, and the sound source localization step includes: S201, loading the audio signal collected by the USB data acquisition card; S202, performing trend elimination and normalization preprocessing on the collected audio signals, and performing denoising on the preprocessed audio signals to obtain multi-channel denoised audio signals; S203, performing windowing and framing processing on the multi-channel denoised audio signals to obtain multi-channel short-term stable signals; S204, judging whether the multi-channel short-term stable signals are voice signals through endpoint detection; if yes, executing step S205; if no, executing step S210; S205, performing fast Fourier transform on the multi-channel short-time stationary signals to determine the cross-power spectral density function of the multi-channel short-time stationary signals; S206, performing a weighted cross-correlation operation on the frequency domain signals of the multi-path short-time stationary signals; S207, continuing to perform inverse Fourier transformation on the cross-correlation operation result, transforming from the frequency domain to the time domain; S208, searching for the maximum value of the peak value in the inverse Fourier transform to obtain the time delay difference between the sound source reaching other microphones in the microphone array and the reference microphone; S209, calculating the position of the sound source relative to the microphone array according to the obtained time delay difference and the distance between the microphones in the microphone array; S210, discarding multiple short-term stable signals; The human-computer interaction steps include: S301, the PC encodes the currently calculated position of the sound source relative to the microphone array and the sound source information and transmits them to the interactive robot; S302, the interactive robot receives the encoded signal, decodes and converts the coordinate system, and calculates the position of the sound source relative to the interactive robot; S303, the interactive robot determines the corresponding interactive content according to the sound source information obtained after decoding; S304, the interactive robot outputs the interactive content in a human-computer interaction manner according to the determined interactive content; the interactive robot completes a turning action according to the position of the sound source relative to the interactive robot, and faces the sound source; The step S304 includes: S3041, determining the priority of the turning action. When the turning action has a higher priority than other actions, first execute steps S3042-S3043, and then execute steps S3044-S3047; when the turning action has a lower priority than other actions, first execute steps S3044-S3047, and then execute steps S3042-S3043; S3042, the interactive robot sends the encoded position of the sound source relative to the interactive robot to the Arduino controller in the Arduino-based rotating platform through the serial port. After receiving the data, the Arduino controller decodes it and controls the operation of the servo in the rotating platform according to the decoded position of the sound source relative to the interactive robot. The servo in the rotating platform drives the interactive robot to complete the turning action. After the interactive robot faces the sound source, the Arduino controller sends the information of the completion of the turning action to the interactive robot through the serial port; the interactive robot performs the next step of the interactive action. S3043. If the interactive robot receives the serial port information sent by the Arduino controller indicating that the turning action is completed, the next interactive action is performed; if the interactive robot does not receive the serial port information sent by the Arduino controller indicating that the turning action is completed, the interactive robot continues to wait until the interactive robot receives the serial port information sent by the Arduino controller indicating that the turning action is completed; S3044, the interactive robot calls the ontology API; S3045, the interactive robot searches the library for an interactive content file corresponding to the current sound source information; S3046, the interactive robot loads and executes the interactive content file through the API; S3047, the interactive robot completes the body movement according to the action instruction of the interactive content file, and the interactive robot uses the body speaker to play the interactive voice according to the voice instruction of the interactive content file to complete the action interaction and voice interaction, thereby completing the human-computer interaction; The microphone array includes a microphone array frame and four microphones; The microphone includes a microphone sensor and a microphone circuit board. The microphone sensor is welded on the microphone circuit board. The microphone circuit board is connected to the microphone sensor bracket by using microphone circuit board screws. A flexible buffer pad is filled between the microphone circuit board and the microphone sensor bracket. The microphone sensor bracket is connected to the microphone array frame by bolts. The microphone array frame includes three profiles, the three profiles are perpendicular to each other and connected to each other by angle brackets, three microphone sensor brackets are respectively connected to the three profiles by bolts, the fourth microphone sensor bracket is fixedly connected to one end of one of the profiles close to the angle bracket, and the microphone on the fourth microphone sensor bracket is a reference microphone; The rotating platform includes a rotating disk, a rotating disk platform base, a power switch, an OLED display screen module, a lithium battery charging interface, a universal ball bearing, an Arduino controller, a steering wheel, a steering gear and a lithium battery; The inner side of the turntable platform base is connected with universal ball bearings around the periphery, and the universal ball bearings are used to guide and support the rotating disk. The middle part of the inner side of the turntable platform base is connected with a steering gear and a lithium battery. The outer circular wall of the turntable platform base is connected with an OLED display screen module, a power switch, and a lithium battery charging interface; The lithium battery charging interface is electrically connected to the lithium battery, and the lithium battery is electrically connected to the OLED display screen module, the Arduino controller and the steering gear through the power switch. The Arduino controller is electrically connected to the steering gear and the OLED display screen module at the same time. The Arduino controller has a serial communication port, and the serial communication port is arranged on the outer circular wall of the turntable platform base; The output end of the steering gear is connected to a rotating disk through a steering plate, and the rotating disk is located on a turntable platform base and is in contact with a universal ball bearing; The steering gear is used to drive the rotating disk to rotate relative to the turntable platform base through the steering plate.
2. The human-computer interaction method based on auditory perception according to claim 1, characterized in that: The microphone array includes 4 microphones, one of which is set as a reference microphone with coordinates (0, 0, 0), and the coordinates of the other three microphones are recorded as (L, 0, 0), (0, L, 0), and (0, 0, L). Step S209 includes: According to the three obtained time delay differences and the shortest distance L from the other three microphones in the microphone array to the reference microphone, substitute them into the microphone array sound source localization analytical formula to calculate the position of the sound source relative to the microphone array; The analytical formula for microphone array sound source localization is: 4r0 2 [(c 2 τ1 2 +c 2 τ2 2 +c 2 τ3 2 )-L 2 ]-4r0[L 2 (cτ1+cτ2+cτ3)+(c 3 τ1 3 +c 3 τ2 3 +c 3 τ3 3 )]+(c 4 τ1 4 +c 4 τ2 4 +c 4 τ3 4 )-2L 2 (c 2 τ1 2 +c 2 τ2 2 +c 2 τ3 2 )+3L 4 =0 (1); Where L is the array element spacing, that is, the shortest distance from the other three microphones in the microphone array to the reference microphone; τ i is the time delay difference between the sound source signal reaching the i-th microphone in the microphone array and the reference microphone, i=1,2,3; r0 is the distance from the target sound source to the reference microphone, c is the propagation speed of sound, is the azimuth angle between the sound source and the reference microphone, θ is the elevation angle between the sound source and the reference microphone; Calculate r0 according to formula (1), substitute the solved r0 into formula (2) to calculate and θ; The position of the sound source relative to the microphone array includes the distance r0 from the target sound source to the reference microphone, the azimuth angle between the sound source and the reference microphone and the elevation angle θ between the sound source and the reference microphone.
3. The human-computer interaction method based on auditory perception according to claim 1, characterized in that: The PC and the interactive robot are connected via LAN wireless communication.
4. The human-computer interaction method based on auditory perception according to claim 1, characterized in that: The turntable platform base is cylindrical; the inner middle part of the turntable platform base is a hollow structure, and the inner middle part is provided with a first mounting groove for fixing the servo and a second mounting groove for fixing the lithium battery; the outer circular wall of the turntable platform base is provided with a plurality of through holes for fixing the OLED display screen module, the power switch, the lithium battery charging interface and the serial communication port respectively.
5. The human-computer interaction method based on auditory perception according to claim 1, characterized in that: One end of the universal ball bearing is a bolt structure, and the bolt structure at this end penetrates into the reserved through hole at the bottom of the turntable platform base and is connected to the hexagonal nut; A spline groove is arranged in the middle of one side of the steering disc, the spline groove is connected to the output shaft of the steering gear, and the other side of the steering disc is connected to the rotating disc through bolts.
6. A human-computer interaction system based on auditory perception, characterized in that: The human-computer interaction method based on auditory perception as claimed in claim 1 comprises a sound source information collection module, a sound source position calculation and analysis module, and a human-computer interaction module; The human-machine interaction module includes an interactive robot and a rotating platform, wherein the interactive robot is placed on the rotating platform, and the rotating platform is used to drive the interactive robot to rotate; The sound source information acquisition module is used to collect audio signals and pre-process the audio signals, and includes a microphone array, a DC bias voltage circuit, an audio amplifier circuit, a bandpass filter circuit and a USB data acquisition card; The DC bias voltage circuit is used to provide a bias voltage for the microphone array; The audio amplifier circuit is used to amplify the audio signal collected by the microphone array; The bandpass filter circuit is used to perform bandpass filtering on the amplified audio signal; The USB data acquisition card is used to collect the amplified and filtered audio signal and transmit it to the PC through the USB interface, and the sound source position calculation and analysis module is deployed on the PC end; The sound source position calculation and analysis module is used to calculate and analyze the preprocessed audio signal to obtain the sound source position and send the sound source position and sound source information to the interactive robot; The interactive robot is used to send the location of the sound source to the rotating platform, and the rotating platform drives the interactive robot to rotate according to the received location of the sound source so as to face the sound source; The interactive robot is used to call the ontology API according to the sound source information and execute the interactive content file corresponding to the current sound source information through the ontology API.
