Voice testing method, device, electronic device and storage medium
By generating a simulated microphone output signal based on the setting information and location of the sound source to be tested, the problem of insufficient voice test accuracy in the existing technology is solved, a more accurate and comprehensive voice test is achieved, the number of retests is reduced, and the voice equipment is ensured of normal operation.
Patent Information
- Application Number
- CN202010772715.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-04
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-08-04
AI Technical Summary
The accuracy of existing voice test methods is affected by factors such as the microphone installation location, actual wiring status, tester position, and production environment noise, resulting in poor test results.
By generating a simulated microphone output signal based on the sound source setting information to be tested and the sound source position information to be tested, the audio attenuation process between the sound source and the microphone is simulated, the influence of external factors is shielded, and the voice test is performed directly.
It improves the accuracy and comprehensiveness of voice testing, reduces the number of retests, and ensures that voice equipment operates normally in actual applications.
Smart Images

Figure CN111951833B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of signal processing technology, and in particular to a voice testing method, device, electronic equipment and storage medium. Background Art
[0002] With the development of intelligent control, voice devices mainly used for voice recognition and sound source localization, such as in-vehicle infotainment and navigation systems, play an important role in realizing intelligent control and improving human-computer interaction experience. In order to ensure the normal operation of voice devices, manufacturers need to perform voice tests on voice devices with integrated microphone inputs based on the voice signals collected and output by the microphones.
[0003] The current voice testing method usually involves the tester or an external power amplifier system outputting the test audio, the external microphone of the voice device collecting the test audio signal and outputting the corresponding analog signal, and finally converting the analog signal into digital form for the voice device to perform voice testing on it. However, during the entire test process, the accuracy of the voice test is affected by factors such as the microphone installation position, the actual wiring status, the tester's position, and the noise in the production environment, resulting in poor accuracy of the voice test. Summary of the invention
[0004] The embodiments of the present invention provide a voice testing method, device, electronic device and storage medium, which are used to solve the defect of insufficient accuracy of voice testing in the prior art.
[0005] An embodiment of the present invention provides a voice testing method, comprising:
[0006] Generate a simulated microphone output signal based on the sound source setting information and the sound source position information;
[0007] A voice test is performed based on the simulated microphone output signal.
[0008] According to a speech testing method according to an embodiment of the present invention, generating a simulated microphone output signal based on the setting information of the sound source to be tested and the position information of the sound source to be tested specifically includes:
[0009] Based on the position information of the sound source to be measured, determining the relative positions of the sound source to be measured and a plurality of microphones;
[0010] Based on the audio attenuation coefficient corresponding to the relative position of the sound source to be measured and any microphone, attenuate the standard audio corresponding to the setting information of the sound source to be measured to obtain the audio to be measured of any microphone;
[0011] Signal processing is performed on the audio to be tested of any of the microphones to obtain a simulated microphone output signal of any of the microphones.
[0012] According to a speech testing method according to an embodiment of the present invention, the audio attenuation coefficient corresponding to the relative position between the sound source to be tested and any microphone is determined based on the following steps:
[0013] The audio intensity in the setting information of the sound source to be measured and the audio attenuation coefficient corresponding to the relative position of the sound source to be measured and any microphone are selected from the predetermined audio attenuation coefficients corresponding to different audio intensities and different relative positions.
[0014] According to a speech testing method according to an embodiment of the present invention, the audio attenuation coefficients corresponding to different audio intensities and different relative positions are determined based on the following steps:
[0015] Controlling the sample sound source to play a standard audio corresponding to any audio intensity at any sampling relative position, collecting the standard audio through a sampling microphone, and obtaining a measured microphone output signal output by the sampling microphone; the sampling relative position is the relative position of the sampling microphone and the sample sound source;
[0016] Based on the any audio intensity and the intensity of the measured microphone output signal, an audio attenuation coefficient corresponding to the any audio intensity and the any sampling relative position is determined.
[0017] According to a speech testing method of an embodiment of the present invention, determining the relative positions of the sound source to be tested and a plurality of microphones based on the position information of the sound source to be tested specifically includes:
[0018] Based on the relative position of the sound source to be measured and the reference microphone in the sound source position information, and the relative position of the reference microphone and each of the remaining microphones, the relative position of the sound source to be measured and each microphone is determined; the reference microphone is any one of the multiple microphones.
[0019] According to a speech testing method according to an embodiment of the present invention, the sound source setting information to be tested includes speech command setting information and environmental noise setting information, and the sound source position information to be tested includes speech command position information and environmental noise position information.
[0020] According to a speech testing method according to an embodiment of the present invention, the signal processing of the audio to be tested of any microphone to obtain the simulated microphone output signal of any microphone specifically includes:
[0021] Performing digital-to-analog conversion on the audio to be tested of any microphone to obtain an analog signal of the audio to be tested;
[0022] The analog signal of the audio to be tested is amplified to obtain an analog microphone output signal of any microphone.
[0023] The embodiment of the present invention further provides a speech testing device, comprising:
[0024] A microphone output signal simulation unit, used for generating a simulated microphone output signal based on the setting information of the sound source to be measured and the position information of the sound source to be measured;
[0025] A voice testing unit is used to perform a voice test based on the analog microphone output signal.
[0026] An embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of any of the above-mentioned voice testing methods are implemented.
[0027] An embodiment of the present invention further provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned speech testing methods are implemented.
[0028] The voice testing method, device, electronic device and storage medium provided in the embodiments of the present invention generate an analog microphone output signal based on adjustable sound source setting information to be tested and sound source position information to be tested, and perform voice testing based on the analog microphone output signal, thereby improving the comprehensiveness of the voice testing and shielding the adverse effects of many factors such as the microphone installation position, actual wiring status, tester operation differences, and environmental noise in the production workshop, thereby improving the accuracy of the voice testing and reducing the number of retests. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are 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.
[0030] Figure 1 A flow chart of a voice testing method provided by an embodiment of the present invention;
[0031] Figure 2 A schematic diagram of a flow chart of a microphone output signal simulation method provided by an embodiment of the present invention;
[0032] Figure 3 A schematic flow chart of a method for determining an audio attenuation coefficient provided by an embodiment of the present invention;
[0033] Figure 4 A schematic diagram of the relative positions of a sound source to be measured and multiple microphones provided in an embodiment of the present invention;
[0034] Figure 5 A flowchart of a voice testing method provided by another embodiment of the present invention;
[0035] Figure 6 A schematic diagram of the structure of a speech testing device provided by an embodiment of the present invention;
[0036] Figure 7 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0038] With the development of intelligent control, the functions and performance of voice devices used for intelligent voice control affect the effect of intelligent control and the experience of human-computer interaction. In order to ensure the normal operation of voice devices, manufacturers need to perform voice tests on them based on the voice signals collected and output by microphones when producing voice devices.
[0039] The current voice testing method usually outputs test audio through a tester or an external power amplifier system to simulate the terminal user, so as to perform a system test on the voice recognition, sound source localization and other functions of the voice device. During the entire test process, after the tester or the external power amplifier system plays the test audio, the external microphone of the voice device collects the test audio signal and outputs the corresponding analog signal, and finally converts the analog signal into digital form to perform a voice test on it. However, in the entire test process, in addition to the voice device, the actual test objects also include the tester / power amplifier system, microphone, connected wiring harness and production environment. Any problem with any of the above objects will cause errors in the test results of the voice device. That is, the accuracy of the voice test is affected by many factors such as the installation position of the microphone, the actual wiring status, the tester's position, the environmental noise of the production workshop, etc., resulting in poor accuracy of the voice test of the voice device.
[0040] In this regard, an embodiment of the present invention provides a voice testing method. Figure 1 A flow chart of a voice testing method provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method includes:
[0041] Step 110, generating a simulated microphone output signal based on the setting information of the sound source to be measured and the position information of the sound source to be measured;
[0042] Step 120: Perform a voice test based on the analog microphone output signal.
[0043] Specifically, a test command issued by a tester is received. Among them, the test command may include the sound source setting information to be tested and the sound source position information to be tested. Here, the sound source setting information to be tested is the audio setting information corresponding to the sound source to be tested, and may include the voice command text corresponding to the audio output of the sound source to be tested, the audio intensity of the audio, etc. The sound source position information to be tested is the relative position of the sound source to be tested and the external microphone of the voice device. In order to simulate the various application scenarios of the actual operation of the voice device as much as possible during the test, the tester can adjust the sound source setting information to be tested and the sound source position information to be tested at any time, so that different sound source setting information to be tested can reflect various voice commands and various audio intensities, and different sound source position information to be tested can reflect the relative positions of various sound sources and microphones. The combination of the two can ensure the comprehensiveness of the voice test, thereby ensuring that the voice device that passes the test can also operate normally when put into actual application.
[0044] After obtaining the test source setting information and the test source location information set by the tester, the audio can be synthesized based on the test source setting information and the test source location information, and the audio propagation process and the microphone signal collection process when the sound source actually makes a sound are simulated to generate a corresponding simulated microphone output signal. Here, the simulated microphone output signal is similar to the signal actually collected and output by the external microphone of the voice device when the sound source corresponding to the same test source setting information and the test source location information plays audio.
[0045] Then, based on the simulated microphone output signal, the voice device is tested. When performing voice recognition tests or sound source localization tests, since the tester can adjust the sound source setting information and the sound source location information at any time, simulate various application scenarios such as different voice commands with different audio intensities issued by users at different locations, and comprehensively test the voice recognition accuracy or sound source localization accuracy of the voice device to be tested. In addition, the tester can also adjust the time interval for inputting the test command to improve the efficiency of the voice test and save test time.
[0046] Since the basis of voice testing is the simulated microphone output signal, there is no need for testers or external power amplifier systems to play test audio during the entire test process, nor is there a need for microphones to collect and convert signals. This allows the adverse effects of many factors, such as the microphone installation position, actual wiring status, tester operation differences, and environmental noise in the production workshop, to be shielded, thereby improving the accuracy of voice testing and reducing the number of retests.
[0047] The method provided by the embodiment of the present invention generates an analog microphone output signal based on adjustable sound source setting information to be tested and sound source position information to be tested, and performs voice testing based on the analog microphone output signal, thereby improving the comprehensiveness of the voice testing and shielding the adverse effects of many factors such as the microphone installation position, actual wiring status, tester operation differences, and environmental noise in the production workshop, thereby improving the accuracy of the voice testing and reducing the number of retests.
[0048] Based on the above embodiments, Figure 2 A schematic diagram of a flow chart of a microphone output signal simulation method provided by an embodiment of the present invention, such as Figure 2 As shown, step 110 specifically includes:
[0049] Step 111, determining the relative positions of the sound source to be measured and a plurality of microphones based on the position information of the sound source to be measured;
[0050] Step 112, based on the audio attenuation coefficient corresponding to the relative position of the sound source to be measured and any microphone, attenuate the standard audio corresponding to the setting information of the sound source to be measured to obtain the audio to be measured of the microphone;
[0051] Step 113: perform signal processing on the audio to be tested of the microphone to obtain an analog microphone output signal of the microphone.
[0052] Specifically, since the sound gradually attenuates during the process of propagating from the sound source to the microphone, the audio collected by the microphone is the result of the attenuation of the audio played by the sound source. Therefore, in order to correctly simulate the audio collected and output at the microphone, it is necessary to determine the audio attenuation coefficient when the audio propagates from the sound source to be measured through the air to the microphone position. Among them, the audio attenuation coefficient refers to the degree of attenuation of the audio intensity when the audio propagates from the sound source to be measured to the microphone, and its size is affected by the relative position between the sound source to be measured and the microphone.
[0053] When the voice device is connected to one or more microphones, each microphone will collect the audio played by the sound source to be tested, so it is necessary to generate the corresponding analog microphone output signal for each microphone. However, since the relative positions of each microphone and the sound source to be tested are different, the corresponding audio attenuation coefficients are different for different microphones, and the collected audio is also different. Therefore, the relative position of the sound source to be tested and each microphone can be determined based on the position information of the sound source to be tested given by the tester. Among them, the relative position of the sound source to be tested and any microphone can include the horizontal and vertical coordinates of the sound source to be tested in a rectangular coordinate system with the microphone as the origin, and can also include the distance between the sound source to be tested and the microphone, and the angle between the line between the sound source to be tested and the microphone and the horizontal or vertical direction. The embodiment of the present invention does not specifically limit this.
[0054] After obtaining the relative position of the sound source to be measured and each microphone, for any microphone, the corresponding audio attenuation coefficient is determined based on the relative position of the sound source to be measured and the microphone. Then, based on the audio attenuation coefficient, the standard audio corresponding to the setting information of the sound source to be measured is attenuated to obtain the audio to be measured of the microphone. Among them, the standard audio is the audio corresponding to different sound source setting information collected in advance using a sampling microphone. Specifically, the sample sound source can be used to play the audio corresponding to different sound source setting information respectively, and then the sampling microphone set at the position of the sample sound source is used to collect it. Since the attenuation of the audio propagating from the sample sound source to the sampling microphone is small and can be ignored, the collected audio can be used as the standard audio corresponding to different sound source setting information to simulate the audio played by the sound source to be measured. Finally, the audio to be measured of the microphone is subjected to signal processing, and the audio is converted into a signal form that can be received by the microphone interface of the voice device to be measured as the analog microphone output signal of the microphone.
[0055] The method provided by the embodiment of the present invention determines the relative position of the sound source to be measured and several microphones based on the position information of the sound source to be measured, and then attenuates and processes the standard audio corresponding to the setting information of the sound source to be measured based on the audio attenuation coefficient corresponding to the relative position of the sound source to be measured and any microphone, so as to obtain the analog microphone output signal of the microphone, thereby improving the accuracy of the analog microphone output signal.
[0056] Based on any of the above embodiments, the audio attenuation coefficient corresponding to the relative position between the sound source to be measured and any microphone is determined based on the following steps:
[0057] The audio attenuation coefficient corresponding to the audio intensity in the sound source setting information to be measured and the audio attenuation coefficient corresponding to the relative position of the sound source to be measured and any microphone is selected from the predetermined audio attenuation coefficients corresponding to different audio intensities and different relative positions.
[0058] Specifically, since the audio attenuation coefficient is not only related to the relative position between the sound source to be measured and the microphone, but also to the audio intensity of the audio played by the sound source to be measured, the sample sound source can be deployed in different relative positions in advance, and then the audio with different audio intensities can be played, and then the audio attenuation coefficient at this time can be calculated, so as to obtain the audio attenuation coefficient corresponding to different audio intensities and different relative positions. Here, the audio attenuation coefficients corresponding to different audio intensities and different relative positions can be stored in the audio attenuation coefficient matrix for easy retrieval. For example, the microphone can be used as the origin to divide the microphone's pickup space into a two-dimensional space of m*n, wherein each coordinate point in the two-dimensional space represents the relative position of the sound source to be measured and the microphone, and for any audio intensity, the audio attenuation coefficient corresponding to each coordinate point in the two-dimensional space is calculated, thereby constructing an audio attenuation coefficient matrix as shown below:
[0059]
[0060] Among them, ε[k] is the audio attenuation coefficient matrix when the audio intensity is k, and ε(i, j, k), i∈[1, m], j∈[1, n] is the audio attenuation coefficient corresponding to the coordinate (i, j) in the two-dimensional space when the audio intensity is k.
[0061] After determining the relative position between the sound source to be measured and any microphone, the audio attenuation coefficient library is searched in combination with the audio intensity contained in the setting information of the sound source to be measured, and the audio attenuation coefficient corresponding to the audio intensity and the relative position is selected.
[0062] Based on any of the above embodiments, Figure 3 A flow chart of a method for determining an audio attenuation coefficient provided by an embodiment of the present invention is shown in FIG. Figure 3 As shown, the audio attenuation coefficients corresponding to different audio intensities and different relative positions are determined based on the following steps:
[0063] Step 310, control the sample sound source to play standard audio corresponding to any audio intensity at any sampling relative position, collect the standard audio through the sampling microphone, and obtain the measured microphone output signal output by the sampling microphone; the sampling relative position is the relative position of the sampling microphone and the sample sound source.
[0064] Step 320: Determine an audio attenuation coefficient corresponding to the audio intensity and the relative position of the sample based on the audio intensity and the intensity of the measured microphone output signal.
[0065] Specifically, the sample sound source is deployed at any sampling relative position (i, j), and then the standard audio corresponding to k levels of audio intensity are played in sequence. Here, the sampling relative position is the relative position of the sampling microphone and the sample sound source. Then, the standard audio played by the sample sound source is collected by the sampling microphone to obtain the intensity V(i, j, 1), V(i, j, 2), ..., V(i, j, k) of the measured microphone output signal output by the sampling microphone.
[0066] The strength of the measured microphone output signal collected and output by the sampling microphone is the product of the audio strength of the standard audio and the audio attenuation coefficient corresponding to the relative position of the sampling. That is, the relationship between the audio strength, the strength of the measured microphone output signal, and the audio attenuation coefficient corresponding to the audio strength and the relative position of the sampling satisfies the following conditions:
[0067]
[0068] Where V(i,j,k) is the strength of the measured microphone output signal when the sample sound source plays the standard audio with audio intensity level k at the sampling relative position (i,j), and Uk is the audio intensity of the standard audio, and ε(i,j,k) is the audio attenuation coefficient corresponding to the audio intensity and the relative position of the sample.
[0069] Therefore, based on the audio intensity and the intensity of the measured microphone output signal, the audio attenuation coefficient corresponding to the audio intensity and the relative position of the sampling can be calculated.
[0070] Based on any of the above embodiments, step 111 specifically includes:
[0071] Based on the relative position of the sound source to be measured and the reference microphone in the sound source position information, and the relative position of the reference microphone and each of the remaining microphones, the relative position of the sound source to be measured and each microphone is determined; the reference microphone is any one of the plurality of microphones.
[0072] Specifically, when the voice device to be tested is connected to multiple microphones, the basic parameters of the multiple microphones are the same, and the only difference is the relative position between the sound source to be tested and each microphone, that is, the difference in the signals collected and output by each microphone is only related to the relative position between the sound source to be tested and each microphone, so it is necessary to determine the relative position between the sound source to be tested and each microphone respectively. Normally, the relative position between each microphone connected to the voice device to be tested is fixed. Taking the vehicle-mounted voice device as an example, the microphone usually connected to it is a dual-microphone array, including a driver's microphone closer to the driver and a passenger microphone closer to the passenger, and for the vehicle-mounted voice devices of the same model, the relative position between the driver's microphone and the passenger microphone is fixed.
[0073] Therefore, after selecting any one of the multiple microphones as the reference microphone and setting the relative position of the sound source to be measured and the reference microphone in the sound source position information, the relative position of the sound source to be measured and each microphone can be determined based on the relative position of the reference microphone and each of the remaining microphones. Figure 4 A schematic diagram of the relative positions of a sound source to be measured and multiple microphones provided in an embodiment of the present invention, such as Figure 4 As shown in the figure, taking the dual microphone array corresponding to the vehicle voice device as an example, the main driver microphone mic1 is selected as the reference microphone, the relative position between the sound source s to be measured and the main driver microphone mic1 is (x1, y1), and the distance between the main driver microphone mic1 and the co-driver microphone mic2 is L. Taking the main driver microphone mic1 as the origin of the coordinate system, if x1<0, and L>|x1|, the sound source to be measured is in Figure 4 When the shaded part is shown in the figure, the distance between the sound source s to be measured and the passenger microphone mic2 can be calculated according to the Pythagorean theorem of triangles:
[0074]
[0075] At the same time, according to the definition of the tangent function, the angle between the line connecting the sound source s to be measured and the co-pilot microphone mic2 and the horizontal direction can be calculated:
[0076] δ2=argtan(y1 / (L-|x1|))
[0077] If x1≥0, or, |x1|>L and x1<0, the sound source to be measured is in Figure 4 When the position is outside the shaded part, the distance between the sound source s to be measured and the passenger microphone mic2 can be calculated according to the Pythagorean theorem of triangles:
[0078]
[0079] According to the definition of the tangent function, the angle between the line connecting the sound source s to be measured and the passenger microphone mic2 and the horizontal direction is calculated:
[0080] δ2=argtan(y1 / |L+x1|)
[0081] It should be noted that the distance between the sound source s to be measured and the passenger microphone mic2, and the angle between the line between the sound source s to be measured and the passenger microphone mic2 and the horizontal direction can be directly used as the relative position of the sound source s to be measured and the passenger microphone mic2; the distance between the sound source s to be measured and the passenger microphone mic2, and the angle between the line between the sound source s to be measured and the passenger microphone mic2 and the horizontal direction can also be converted into horizontal and vertical coordinate forms as the relative position of the sound source s to be measured and the passenger microphone. The embodiment of the present invention does not make any specific limitation on this.
[0082] By analogy, when the number of microphones is greater than two, the relative position of each remaining microphone and the sound source to be measured can be calculated in the same manner.
[0083] After determining the relative position of the sound source to be measured and each microphone, for any microphone, the audio attenuation coefficient corresponding to the audio intensity and the relative position can be determined based on the relative position of the sound source to be measured and the microphone, and the audio intensity of the standard audio played by the sound source to be measured, and the standard audio is attenuated based on the determined audio attenuation coefficient. After signal processing, the analog microphone output signal corresponding to the microphone is obtained.
[0084] Based on any of the above embodiments, the sound source setting information to be measured includes voice command setting information and environmental noise setting information, and the sound source position information to be measured includes voice command position information and environmental noise position information.
[0085] Specifically, when voice equipment is actually put into use, the use environment is not absolutely quiet. In addition to the user's voice commands, there are also various environmental noises. For example, when the in-vehicle voice equipment is in use, the signal collected and output by the microphone will contain engine noise, wind noise, tire noise and other noises. In order to simulate the actual application scenarios of the actual operation of the voice equipment as much as possible during the test, so as to ensure that the voice equipment that has passed the test can also operate normally when put into actual application, it is necessary to take environmental noise into account during the test.
[0086] Therefore, when setting the sound source setting information to be tested, the tester needs to set the voice command setting information and the ambient noise setting information at the same time. Among them, the voice command setting information may include the voice command text and the audio intensity of the voice command audio, and the ambient noise setting information may include the type of ambient noise, such as engine noise, wind noise or tire noise, and the audio intensity of the noise audio. In addition, the source of ambient noise is different from the source of voice command, so when setting the location information of the sound source to be tested, it is necessary to set the voice command location information and the ambient noise location information separately, which represent the location information of the voice command source and the location information of the ambient noise source respectively.
[0087] Since the sound sources to be tested include voice command sound sources and ambient noise sound sources, when generating the corresponding analog microphone output signal for any microphone, it is necessary to superimpose the audio to be tested corresponding to the voice command and the audio to be tested corresponding to the ambient noise, and then perform signal processing to obtain the analog microphone output signal. Among them, the corresponding standard audio can be selected based on the voice command text and audio intensity in the voice command setting information, and the standard audio is attenuated based on the audio attenuation coefficient corresponding to the audio intensity and the voice command position information to obtain the audio to be tested corresponding to the voice command.
[0088] For environmental noise, it is necessary to pre-build standard audio corresponding to different types of environmental noise and different levels of audio intensity. For any type of environmental noise, it is also necessary to pre-determine the audio attenuation coefficient corresponding to different audio intensities and different relative positions of environmental noise, so as to generate the audio to be tested corresponding to the environmental noise in the same way as the audio to be tested corresponding to the voice command. It should be noted that for some environmental noise, such as engine noise, since the position of the source of the environmental noise is fixed, when determining the audio attenuation coefficient, only the audio attenuation coefficient corresponding to different audio intensities can be measured.
[0089] Taking engine noise as an example, since the distance between the engine and the microphone is fixed, the signal strength received by the microphone is only related to the noise audio strength emitted by the engine itself, and the noise audio strength emitted by the engine is usually related to the speed. Therefore, the noise audio strength emitted by the engine at different speeds and the measured microphone output signal strength output by the sampling microphone can be measured. According to the following relationship between the noise audio strength emitted by the engine, the measured microphone output signal strength output by the sampling microphone, and the audio attenuation coefficient corresponding to the noise audio strength, the audio attenuation coefficient corresponding to different noise audio strengths is calculated:
[0090] V[p,q,k pq ]=[V(p,q,1),V(p,q,2),…,V(p,q,k pq )]
[0091] =[ε(p,q,1),ε(p,q,2),…,ε(p,q,k pq )]*W kpq
[0092] =ε[p,q,k pq ]*W kpq
[0093]
[0094] Among them, V[p, q, k pq ] includes the engine from the 1st to the kth pq When the noise level is 100%, the measured microphone output signal strengths V(p, q, 1), V(p, q, 2), ..., V(p, q, k) of the sampled microphone outputs are pq );W kpq The 1st, 2nd or kth time the engine is pq The noise intensity of the level, ε[p,q,k pq ] includes the corresponding 1st to kth pq Audio attenuation coefficients of level noise audio intensity ε(p, q, 1), ε(p, q, 2), ..., ε(p, q, k pq ).
[0095] The method provided by the embodiment of the present invention can more accurately simulate real application scenarios and improve the accuracy of voice testing by setting voice command setting information and ambient noise setting information in the sound source setting information to be tested, and setting voice command position information and ambient noise position information in the sound source position information to be tested.
[0096] Based on any of the above embodiments, step 113 specifically includes:
[0097] Performing digital-to-analog conversion on the audio to be tested of any microphone to obtain an analog signal of the audio to be tested;
[0098] The analog signal of the audio to be tested is amplified to obtain an analog microphone output signal of the microphone.
[0099] Specifically, in order to convert the audio into a signal form that can be received by the microphone interface of the voice device to be tested, considering that the signal output by the microphone to the voice device is an analog signal, it is necessary to use a digital-to-analog converter D / A to perform digital-to-analog conversion on the audio to be tested of any microphone to obtain the analog signal of the audio to be tested. In addition, the voltage amplitude of the microphone output signal that the voice device to be tested can receive needs to be within a certain voltage range, and the voltage amplitude of the analog signal obtained after the digital-to-analog conversion may be small and cannot reach the voltage range. Therefore, the signal amplification control circuit can also be used to amplify the analog signal of the audio to be tested, so that the voltage amplitude of the analog microphone output signal obtained can meet the receiving requirements of the voice device to be tested. Among them, when the signal is amplified, the gain value can be determined based on the audio amplitude of the audio to be tested and the voltage amplitude of the output signal of the sampling microphone, and the analog signal of the audio to be tested is amplified based on the gain value.
[0100] Based on any of the above embodiments, Figure 5 A flow chart of a voice testing method provided by another embodiment of the present invention is shown as follows: Figure 5 As shown, the method includes:
[0101] Step 510, receiving the test command issued by the tester. Here, the test command includes voice command setting information, environmental noise setting information, voice command location information and environmental noise location information. Among them, the voice command setting information also includes the voice command text and the audio intensity of the voice command audio, and the environmental noise setting information also includes the environmental noise type and the audio intensity of the noise audio. The tester can also control the time interval for inputting the test command to improve the efficiency of the voice test and save test time.
[0102] Step 520: Determine the relative positions of the voice command source and the ambient noise source to the plurality of microphones based on the voice command position information and the ambient noise position information. Specifically, the relative positions of the voice command source and the ambient noise source to each microphone may be determined based on the relative position of the voice command source to the reference microphone, the relative position of the ambient noise source to the reference microphone, and the relative position of the reference microphone to each of the remaining microphones.
[0103] Step 530, determining the audio attenuation coefficient of the voice command audio based on the audio intensity of the voice command audio and the relative position of the voice command sound source and any microphone; determining the audio attenuation coefficient of the noise audio based on the audio intensity of the noise audio and the relative position of the noise sound source and the microphone.
[0104] Step 540, respectively attenuate the standard audio of the voice command and the standard audio of the noise using the audio attenuation coefficient of the voice command audio and the audio attenuation coefficient of the noise audio, to obtain the audio to be tested corresponding to the voice command and the audio to be tested corresponding to the ambient noise. The standard audio of the voice command is determined based on the voice command text and the audio intensity of the voice command audio, and the standard audio of the noise is determined based on the ambient noise type and the audio intensity of the noise audio. Specifically, the following formula can be used to calculate the audio to be tested corresponding to the voice command and the audio to be tested corresponding to the ambient noise:
[0105] V[x i ,y j , k ij ]=ε(x i ,y j , k ij )*U(n)
[0106] V[x p ,y q , k pq ]=ε(x p ,y q , k pq )*W(n)
[0107] Among them, U(n) and W(n) are the discrete forms of the standard audio of the voice command and the standard audio of the noise, respectively. i ,y j , k ij ) is the corresponding relative position (x i ,y j ) and audio intensity k ij The audio attenuation coefficient of the voice command audio, ε(x p ,y q , k pq ) is the corresponding relative position (x p ,y q ) and audio intensity k pq The audio attenuation coefficient of the noise audio, V[x i ,y j , k ij ] and V[x p ,y q , k pq ] are the audio to be tested corresponding to the voice command and the audio to be tested corresponding to the environmental noise.
[0108] Step 550: Superimpose the audio to be tested corresponding to the voice command and the audio to be tested corresponding to the ambient noise to obtain the audio to be tested of the microphone:
[0109] Z1(n)=V[x i ,y j , k ij ]+V[x p ,y q , k pq ]
[0110] Step 560: Perform digital-to-analog conversion and signal amplification on the audio to be tested of the microphone to obtain an analog microphone output signal of the microphone.
[0111] Step 570: Transmit the analog microphone output signal of each microphone to the voice device under test for voice testing. Specifically, the channel control method can be used to open the input channel corresponding to each microphone of the voice device under test, and input the analog microphone output signal of each microphone to the voice device under test.
[0112] The following is a description of a speech testing device provided by an embodiment of the present invention. The speech testing device described below and the speech testing method described above can be referenced to each other.
[0113] Based on any of the above embodiments, Figure 6 A schematic diagram of the structure of a speech testing device provided by an embodiment of the present invention, such as Figure 6 As shown, the device includes: a microphone output signal simulation unit 610 and a voice testing unit 620.
[0114] The microphone output signal simulation unit 610 is used to generate a simulated microphone output signal based on the setting information of the sound source to be measured and the position information of the sound source to be measured;
[0115] The voice testing unit 620 is used to perform a voice test based on the analog microphone output signal.
[0116] The device provided by the embodiment of the present invention generates an analog microphone output signal based on adjustable sound source setting information to be tested and sound source position information to be tested, and performs voice testing based on the analog microphone output signal, thereby improving the comprehensiveness of the voice testing and shielding the adverse effects of many factors such as the microphone installation position, actual wiring status, tester operation differences, and environmental noise in the production workshop, thereby improving the accuracy of the voice testing and reducing the number of retests.
[0117] Based on any of the above embodiments, the microphone output signal simulation unit 610 specifically includes:
[0118] A relative position determination unit, used to determine the relative positions of the sound source to be measured and the plurality of microphones based on the position information of the sound source to be measured;
[0119] The audio generation unit to be tested is used to attenuate the standard audio corresponding to the setting information of the sound source to be tested based on the audio attenuation coefficient corresponding to the relative position of the sound source to be tested and any microphone, so as to obtain the audio to be tested of the microphone;
[0120] The signal processing unit is used to perform signal processing on the audio to be tested of the microphone to obtain a simulated microphone output signal of the microphone.
[0121] The device provided by the embodiment of the present invention determines the relative position of the sound source to be measured and several microphones based on the position information of the sound source to be measured, and thus attenuates and processes the standard audio corresponding to the setting information of the sound source to be measured based on the audio attenuation coefficient corresponding to the relative position of the sound source to be measured and any microphone, so as to obtain the analog microphone output signal of the microphone, thereby improving the accuracy of the analog microphone output signal.
[0122] Based on any of the above embodiments, the device further includes an audio attenuation coefficient determining unit, and the audio attenuation coefficient determining unit is specifically used to:
[0123] The audio attenuation coefficient corresponding to the audio intensity in the sound source setting information to be measured and the audio attenuation coefficient corresponding to the relative position of the sound source to be measured and any microphone is selected from the predetermined audio attenuation coefficients corresponding to different audio intensities and different relative positions.
[0124] Based on any of the above embodiments, the device further includes an audio attenuation coefficient measuring unit, and the audio attenuation coefficient measuring unit is specifically used to:
[0125] The sample sound source is controlled to play standard audio corresponding to any audio intensity at any sampling relative position, and the standard audio is collected by the sampling microphone to obtain the measured microphone output signal output by the sampling microphone; the sampling relative position is the relative position of the sampling microphone and the sample sound source.
[0126] Based on the audio intensity and the intensity of the measured microphone output signal, an audio attenuation coefficient corresponding to the audio intensity and the relative position of the sample is determined.
[0127] Based on any of the above embodiments, the relative position determination unit is specifically used for:
[0128] Based on the relative position of the sound source to be measured and the reference microphone in the sound source position information, and the relative position of the reference microphone and each of the remaining microphones, the relative position of the sound source to be measured and each microphone is determined; the reference microphone is any one of the plurality of microphones.
[0129] Based on any of the above embodiments, the sound source setting information to be measured includes voice command setting information and environmental noise setting information, and the sound source position information to be measured includes voice command position information and environmental noise position information.
[0130] The device provided by the embodiment of the present invention can more accurately simulate real application scenarios and improve the accuracy of voice testing by setting voice command setting information and environmental noise setting information in the sound source setting information to be tested, and setting voice command position information and environmental noise position information in the sound source position information to be tested.
[0131] Based on any of the above embodiments, the signal processing unit is specifically used for:
[0132] Performing digital-to-analog conversion on the audio to be tested of any microphone to obtain an analog signal of the audio to be tested;
[0133] The analog signal of the audio to be tested is amplified to obtain an analog microphone output signal of the microphone.
[0134] Figure 7 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 7 As shown, the electronic device may include: a processor 710, a communication interface 720, a memory 730 and a communication bus 740, wherein the processor 710, the communication interface 720 and the memory 730 communicate with each other through the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to execute the voice test method, which includes: generating a simulated microphone output signal based on the sound source setting information to be tested and the sound source position information to be tested; and performing a voice test based on the simulated microphone output signal.
[0135] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0136] On the other hand, an embodiment of the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the speech testing method provided by the above-mentioned method embodiments, the method including: generating an analog microphone output signal based on the sound source setting information to be tested and the sound source position information to be tested; and performing a speech test based on the analog microphone output signal.
[0137] On the other hand, an embodiment of the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the speech testing method provided in the above-mentioned embodiments, the method comprising: generating an analog microphone output signal based on the setting information of the sound source to be tested and the position information of the sound source to be tested; and performing a speech test based on the analog microphone output signal.
[0138] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0139] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0140] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A voice testing method, It is characterized in that include: Generate a simulated microphone output signal based on the sound source setting information and the sound source position information; Performing a voice test based on the simulated microphone output signal; The sound source setting information to be tested represents audio setting information corresponding to the sound source to be tested, and the audio setting information includes: a voice command text corresponding to the audio output of the sound source to be tested, and an audio intensity corresponding to the audio output of the sound source to be tested; The generating of the analog microphone output signal based on the setting information of the sound source to be measured and the position information of the sound source to be measured specifically includes: Based on the position information of the sound source to be measured, determining the relative positions of the sound source to be measured and a plurality of microphones; Based on the audio attenuation coefficient corresponding to the relative position of the sound source to be measured and any microphone, attenuate the standard audio corresponding to the setting information of the sound source to be measured to obtain the audio to be measured of any microphone; Performing signal processing on the audio to be tested of any of the microphones to obtain a simulated microphone output signal of any of the microphones; The audio attenuation coefficient corresponding to the relative position of the sound source to be measured and any microphone is determined based on the following steps: Based on any audio intensity, the audio attenuation coefficient corresponding to each coordinate point in the two-dimensional space is calculated to construct an audio attenuation coefficient matrix, and the audio intensity in the sound source setting information to be measured and the audio attenuation coefficient corresponding to the relative position of the sound source to be measured and any microphone are selected from the audio attenuation coefficient matrix; each coordinate point in the two-dimensional space represents the relative position of the sound source to be measured and any microphone.
2. The voice testing method according to claim 1, It is characterized in that The audio attenuation coefficients corresponding to different audio intensities and different relative positions are determined based on the following steps: Controlling the sample sound source to play a standard audio corresponding to any audio intensity at any sampling relative position, collecting the standard audio through a sampling microphone, and obtaining a measured microphone output signal output by the sampling microphone; The sampling relative position is the relative position between the sampling microphone and the sample sound source; Based on the any audio intensity and the intensity of the measured microphone output signal, an audio attenuation coefficient corresponding to the any audio intensity and the any sampling relative position is determined.
3. The voice testing method according to claim 1, It is characterized in that The determining the relative positions of the sound source to be measured and the plurality of microphones based on the position information of the sound source to be measured specifically includes: Based on the relative position of the sound source to be measured and the reference microphone in the sound source position information, and the relative position of the reference microphone and each of the remaining microphones, the relative position of the sound source to be measured and each microphone is determined; the reference microphone is any one of the multiple microphones.
4. The speech testing method according to any one of claims 1 to 3, It is characterized in that The sound source setting information to be measured includes voice command setting information and environmental noise setting information, and the sound source position information to be measured includes voice command position information and environmental noise position information.
5. The speech testing method according to any one of claims 1 to 3, It is characterized in that The signal processing of the audio to be tested of any microphone to obtain the analog microphone output signal of any microphone specifically includes: Performing digital-to-analog conversion on the audio to be tested of any microphone to obtain an analog signal of the audio to be tested; The analog signal of the audio to be tested is amplified to obtain an analog microphone output signal of any microphone.
6. A voice testing device, It is characterized in that include: A microphone output signal simulation unit, used for generating a simulated microphone output signal based on the setting information of the sound source to be measured and the position information of the sound source to be measured; A voice testing unit, used for performing a voice test based on the analog microphone output signal; The sound source setting information to be tested represents audio setting information corresponding to the sound source to be tested, and the audio setting information includes: a voice command text corresponding to the audio output of the sound source to be tested, and an audio intensity corresponding to the audio output of the sound source to be tested; The generating of the analog microphone output signal based on the setting information of the sound source to be measured and the position information of the sound source to be measured specifically includes: Based on the position information of the sound source to be measured, determining the relative positions of the sound source to be measured and a plurality of microphones; Based on the audio attenuation coefficient corresponding to the relative position of the sound source to be measured and any microphone, attenuate the standard audio corresponding to the setting information of the sound source to be measured to obtain the audio to be measured of any microphone; Performing signal processing on the audio to be tested of any of the microphones to obtain a simulated microphone output signal of any of the microphones; The audio attenuation coefficient corresponding to the relative position of the sound source to be measured and any microphone is determined based on the following steps: Based on any audio intensity, the audio attenuation coefficient corresponding to each coordinate point in the two-dimensional space is calculated to construct an audio attenuation coefficient matrix, and the audio intensity in the sound source setting information to be measured and the audio attenuation coefficient corresponding to the relative position of the sound source to be measured and any microphone are selected from the audio attenuation coefficient matrix; each coordinate point in the two-dimensional space represents the relative position of the sound source to be measured and any microphone.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the speech testing method according to any one of claims 1 to 5 are implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the speech testing method according to any one of claims 1 to 5 are implemented.
