Method and device for voice equipment production test, voice equipment and medium
By integrating ultrasonic modules in voice equipment and programmatically processing signals, the problems of high detection cost, long time and cumbersome operation in the prior art are solved, and efficient and accurate ultrasonic sensing algorithm detection of voice equipment are achieved.
Patent Information
- Application Number
- CN202311133205.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-04
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2043-09-04
AI Technical Summary
When the prior art detects whether ultrasonic sensing algorithms are supported on the voice equipment production line, the cost is high, the detection time is long, the operation is cumbersome, and the measuring instrument is easily affected by the environment, making it difficult to ensure the detection accuracy.
By integrating ultrasonic transmission and reception modules in the voice device, using encoded ultrasonic signals for detection, programmatically process ultrasonic signals to remove noise, and determine whether the voice module supports ultrasonic perception algorithms based on the sound pressure level value.
It reduces production costs, simplifies operating procedures, improves detection efficiency and accuracy, and makes the detection process intelligent.
Smart Images

Figure CN119559966A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home appliance technology, for example, to a method and apparatus for production testing of voice equipment, a voice equipment, and a storage medium. Background Art
[0002] At present, with the improvement of people's living standards, people have put forward higher and higher requirements for home environment. In order to maintain the realization of intelligent home environment, voice equipment has become an indispensable device in people's lives, such as voice air conditioners, voice TVs, etc. As for whether the ultrasonic perception algorithm is suitable for voice equipment of different models, it is also necessary to determine whether the model can support the ultrasonic perception algorithm in the production test stage.
[0003] The related technology discloses a method for detecting whether a voice device can support an ultrasonic sensing algorithm. Independent verification experiments are conducted on environmental indicators and device performance in the laboratory. At the same time, special personnel need to be arranged to conduct testing in the specific production process. Sound pressure measuring instruments are used to measure the signal strength to detect whether the voice device can support the ultrasonic sensing algorithm.
[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:
[0005] It is necessary to set up a special detection point on the production line for separate measurement to detect whether the voice equipment can support the ultrasonic sensing algorithm. The production cost is high, the detection time is long, the operation of the inspectors is cumbersome, and the measuring instrument is easily affected by the environment, making it difficult to ensure the accuracy of the detection.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.
[0008] The embodiments of the present disclosure provide a method and apparatus, a voice device, and a storage medium for production testing of a voice device, so as to reduce production costs, simplify operation procedures, improve detection efficiency, and improve detection accuracy in the detection of whether the voice device can support an ultrasonic sensing algorithm.
[0009] In some embodiments, the voice device includes: a voice module, an ultrasonic transmitting module for generating and transmitting coded ultrasonic signals, and an ultrasonic receiving module for collecting ultrasonic signals; the method includes: transmitting the generated ultrasonic wave when a coded sound wave trigger instruction is monitored; synchronously collecting the reflected ultrasonic signal at the moment of transmitting the generated ultrasonic wave; processing the collected ultrasonic signal to remove the noise signal and obtain a denoised ultrasonic signal; and determining whether the voice module supports the ultrasonic perception algorithm based on the sound pressure level value in the denoised ultrasonic signal.
[0010] In some embodiments, the voice device includes: a voice module, an ultrasonic transmitting module for generating and transmitting coded ultrasonic signals, and an ultrasonic receiving module for collecting ultrasonic signals; the device includes: a transmitting module, configured to transmit the generated ultrasonic wave when a coded sound wave trigger instruction is monitored; an collecting module, configured to synchronously collect the reflected ultrasonic signal at the moment of transmitting the generated ultrasonic wave; a denoising module, configured to process the collected ultrasonic signal to remove the noise signal and obtain a denoised ultrasonic signal; a determination module, configured to determine whether the voice module supports the ultrasonic perception algorithm based on the sound pressure level value in the denoised ultrasonic signal.
[0011] In some embodiments, the apparatus comprises a processor and a memory storing program instructions, and the processor is configured to execute the method for voice device production testing when running the program instructions.
[0012] In some embodiments, the voice device includes: a voice device body, including: a voice module, an ultrasonic transmitting module for generating and transmitting encoded ultrasonic signals, and an ultrasonic receiving module for collecting ultrasonic signals; the device for production testing of the voice device is installed on the voice device body.
[0013] In some embodiments, the storage medium stores program instructions, and when the program instructions are run, the method for voice device production testing is executed.
[0014] The method and apparatus for voice device production testing, voice device, and storage medium provided by the embodiments of the present disclosure can achieve the following technical effects:
[0015] The measurement process of whether the voice module can support the ultrasonic sensing algorithm is algorithmized and programmed. The detection of whether the voice module can support the ultrasonic sensing algorithm can be triggered by monitoring the coded sound wave trigger instruction. There is no need to set up a special detection position on the production line for separate measurement, which reduces production costs. There is no need for measurement personnel to perform tedious operations for detection. Only the program control is required to emit ultrasonic waves, collect ultrasonic waves, and synchronously replace the detection steps of the original voice interaction link, which simplifies the operation steps, improves the detection efficiency, and makes the detection process intelligent. And because the noise signal in the ultrasonic signal has been removed, and the sound pressure level value of the denoised ultrasonic signal is used to detect whether the voice module supports the ultrasonic sensing algorithm, the accuracy of the detection is improved. Furthermore, the disclosed embodiments can not only determine whether the ultrasonic perception algorithm is suitably adapted to different machine models, but can also determine whether the voice interaction function of the voice module itself is normal. Since the working principle of the perception algorithm in the ultrasonic segment is consistent with that in the audible sound segment, and the requirements for acoustic devices are also consistent, once it is detected that the voice device meets the sound pressure requirements of the ultrasonic segment, it will inevitably meet the acoustic performance requirements of the device for voice interaction. There is no need to perform additional special tests for the passability of voice interaction, and the test efficiency of voice function detection in the production link is also improved.
[0016] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:
[0018] Figure 1 is a schematic diagram of a system environment for voice equipment production testing provided by an embodiment of the present disclosure;
[0019] Figure 2 is a schematic diagram of a method for production testing of a voice device provided by an embodiment of the present disclosure;
[0020] Figure 3 is a schematic diagram of another method for production testing of a voice device provided by an embodiment of the present disclosure;
[0021] Figure 4 is a schematic diagram of another method for production testing of a voice device provided by an embodiment of the present disclosure;
[0022] Figure 5 is a schematic diagram of a device for production testing of a voice device provided by an embodiment of the present disclosure;
[0023] Figure 6 is a schematic diagram of another apparatus for production testing of a voice device provided by an embodiment of the present disclosure;
[0024] Figure 7 It is a schematic diagram of a voice device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.
[0026] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.
[0027] Unless otherwise stated, the term "plurality" means two or more.
[0028] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.
[0029] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.
[0030] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.
[0031] In the embodiments of the present disclosure, smart home appliances refer to home appliances that are formed by introducing microprocessors, sensor technology, and network communication technology into home appliances. They have the characteristics of intelligent control, intelligent perception, and intelligent application. The operation process of smart home appliances often relies on the application and processing of modern technologies such as the Internet of Things, the Internet, and electronic chips. For example, smart home appliances can be connected to electronic devices to enable users to remotely control and manage the smart home appliances.
[0032] In the disclosed embodiments, the terminal device refers to an electronic device with a wireless connection function. The terminal device can communicate with the above-mentioned smart home appliances by connecting to the Internet, or can communicate with the above-mentioned smart home appliances directly through Bluetooth, WiFi, etc. In some embodiments, the terminal device is, for example, a mobile device, a computer, or a vehicle-mounted device built into a hover car, or any combination thereof. Mobile devices may include, for example, mobile phones, smart home devices, wearable devices, smart mobile devices, virtual reality devices, etc., or any combination thereof, wherein wearable devices include, for example: smart watches, smart bracelets, pedometers, etc.
[0033] Combination Figure 1 As shown, the system environment for production testing of voice equipment includes: voice equipment 1, signal baffle 2, mobile terminal 3, sound wave trigger tooling module 4, and production MES (Manufacturing Execution System) system 5. The voice equipment 1 includes: a voice module, an ultrasonic transmitting module for generating and transmitting coded ultrasonic signals, and an ultrasonic receiving module for collecting ultrasonic signals. The voice equipment 1 is arranged on the assembly line 6. The signal baffle 2 has a size of 2m high and 1m wide, and is directly opposite the voice equipment 1 and the distance from the voice equipment 1 is a set distance. Specifically, the value of the set distance can be 1m. The sound wave trigger tool APP (application, application software) of the mobile terminal 3 or the sound wave trigger tooling module 4 can send a coded sound wave trigger instruction to the voice equipment 1. The sound wave trigger tooling module 4 is connected to the production MES system 5.
[0034] Optionally, the ultrasonic transmitting module includes a speaker, and the ultrasonic receiving module includes a microphone.
[0035] Based on the above system environment for voice equipment production testing, combined with Figure 2 As shown, the embodiment of the present disclosure provides a method for production testing of a voice device, comprising:
[0036] S201, when a coded sound wave trigger instruction is monitored, the voice device emits the generated ultrasonic wave.
[0037] S202, when the generated ultrasonic wave is emitted, the voice device synchronously collects the reflected ultrasonic wave signal.
[0038] S203, the voice device processes the collected ultrasonic signal to remove the noise signal and obtain a denoised ultrasonic signal.
[0039] S204: The voice device determines whether the voice module supports the ultrasonic perception algorithm based on the sound pressure level value in the denoised ultrasonic signal.
[0040] By adopting the method for voice equipment production testing provided by the embodiment of the present disclosure, the measurement process of whether the voice module can support the ultrasonic perception algorithm is algorithmized and programmed. The detection of whether the voice module can support the ultrasonic perception algorithm can be triggered by monitoring the coded sound wave trigger instruction. There is no need to set up a special detection position on the production line for separate measurement, which reduces the production cost. There is no need for measurement personnel to perform tedious operations for detection. Only the program is required to control the emission of ultrasonic waves, the collection of ultrasonic waves, and the synchronous replacement of the detection steps of the original voice interaction link, which simplifies the operation steps, improves the detection efficiency, and makes the detection process intelligent. And because the noise signal in the ultrasonic signal has been removed, and whether the voice module supports the ultrasonic perception algorithm is detected according to the sound pressure level value of the denoised ultrasonic signal, the accuracy of the detection is improved. Furthermore, the disclosed embodiments can not only determine whether the ultrasonic perception algorithm is suitably adapted to different machine models, but can also determine whether the voice interaction function of the voice module itself is normal. Since the working principle of the perception algorithm in the ultrasonic segment is consistent with that in the audible sound segment, and the requirements for acoustic devices are also consistent, once it is detected that the voice device meets the sound pressure requirements of the ultrasonic segment, it will inevitably meet the acoustic performance requirements of the device for voice interaction. There is no need to perform additional special tests for the passability of voice interaction, and the test efficiency of voice function detection in the production link is also improved.
[0041] Optionally, the voice device transmits the generated ultrasonic wave, including: the voice device transmits the generated ultrasonic wave signal in the sine signal format for multiple times, and the duration of each transmission is the first duration. In this way, it is conducive to multiple determination of the sound pressure level value in the ultrasonic wave signal, and multiple detections in manual testing are replaced by intelligence, thereby improving the detection efficiency and making the test process more intelligent.
[0042] Optionally, the value of the first duration can be 250ms. The frequency of the ultrasonic signal ranges from [19kHz, 22kHz]. The number of times the generated ultrasonic signal is emitted can be 4 times. Specifically, the frequency of the ultrasonic signal can be 19kHz, 20kHz, 21kHz or 22kHz. In this way, the ultrasonic sensing algorithm program generally uses a continuous frequency modulation wave of 19 to 22kHz. In order to enable the detection program to complete the self-test faster, four integer frequencies of 19kHz, 20kHz, 21kHz or 22kHz are selected here as self-test measurement signals, which is beneficial to improve the detection efficiency.
[0043] Optionally, the voice device synchronously collects the reflected ultrasonic signal, including: the voice device synchronously collects the reflected ultrasonic signal, the sampling time is the second time, and the sampling frequency is the set sampling frequency. The second time is greater than the first time. In this way, since the sampling time for collecting the reflected ultrasonic signal is greater than the time for transmitting the ultrasonic wave, the reflected ultrasonic signal can be collected more completely, thereby improving the accuracy of detection.
[0044] Optionally, the second duration may be 300 ms. The sampling frequency may be set to 48 kHz. In this way, since the sampling duration for collecting the reflected ultrasonic signal is longer than the duration for transmitting the ultrasonic wave, the reflected ultrasonic signal may be collected more completely, thereby improving the accuracy of detection.
[0045] Optionally, the voice device processes the collected ultrasonic signal to remove the noise signal and obtain a denoised ultrasonic signal, including: the voice device performs filtering preprocessing on the collected ultrasonic signal to remove the random abnormal reflection signal and obtain the denoised ultrasonic signal. The voice device records and stores the abnormal reflection peak signal in the denoised ultrasonic signal for use in the ultrasonic sensing algorithm. In this way, the collected ultrasonic wave is first filtered and preprocessed to remove the random abnormal reflection signal. Since the actual installation of the ultrasonic transmitting module will produce a gap between the whole machine housing and the ultrasonic transmitting module, such a gap will more or less form an abnormal ultrasonic reflection signal, affecting the subsequent ultrasonic sensing algorithm for sensing the detection accuracy of the active human body. Therefore, when performing the detection, this part of the abnormal reflection peak signal is synchronously recorded, and this part of the original abnormal peak data is used in the ultrasonic sensing algorithm for compensation, thereby improving the accuracy of the ultrasonic sensing algorithm. Thereby better reducing the impact of the installation of the environment or the components of the voice device itself on the detection, improving the accuracy of the detection, and improving the test efficiency of the voice function detection in the production link.
[0046] Optionally, the voice device performs filtering preprocessing on the collected ultrasonic signal to remove random abnormal reflection signals and obtain a denoised ultrasonic signal, including: the voice device performs bandpass filtering on the collected ultrasonic signal to obtain a bandpass filtered ultrasonic signal. The voice device uses two bandpass filtered ultrasonic signals, performs consistency filtering on each separate bandpass filtered ultrasonic signal, removes random abnormal reflection signals on the separate bandpass filtered ultrasonic signal, and obtains a denoised ultrasonic signal. In this way, the collected ultrasonic signal is first bandpass filtered, and then the separate ultrasonic signal is consistently filtered to achieve better denoising. This can better reduce the impact of the environment on detection and improve the accuracy of detection.
[0047] Optionally, the voice device performs bandpass filtering on the collected ultrasonic signal to obtain a bandpass filtered ultrasonic signal, including: the voice device uses a Butterworth filter to perform bandpass filtering on the collected ultrasonic signal to obtain a bandpass filtered ultrasonic signal.
[0048] Specifically, the parameters of the Butterworth filter include: passband start frequency Wp1, passband cutoff frequency Wp2, passband range [Wp1, Wp2], stopband start frequency Ws1, stopband cutoff frequency Ws2, stopband range [0, Ws1] and [Ws2, +∞], passband ripple Rp, stopband attenuation Rs. Among them, the passband ripple is the difference between the maximum amplitude and the minimum amplitude of the passband in the frequency response of the filter, and the stopband attenuation is the minimum value of the attenuation degree of the stopband signal that needs to be achieved.
[0049] More specifically, the value of Wp1 may be 19 kHz, the value of Wp2 may be 22 kHz, the value of Ws1 may be 17 kHz, the value of Ws2 may be 24 kHz, the value of Rp may be 3 dB, and the value of Rs may be 40 dB.
[0050] In this way, the Butterworth filter is used for bandpass filtering, which will not introduce amplitude distortion or phase delay within the passband range, and because the stopband part has a very high suppression ratio, it can effectively filter out noise and clutter, which is beneficial to improving the denoising effect. Thereby better reducing the impact of the environment on the detection and improving the accuracy of the detection. In addition, the Butterworth filter has a fast response speed and a high conversion rate, which is beneficial to improving the detection efficiency.
[0051] Optionally, the voice device records and stores the abnormal reflection peak signal in the denoised ultrasonic signal for use in the ultrasonic perception algorithm, including: the voice device calculates the average amplitude of the overall signal of the denoised ultrasonic signal. The voice device separately records and stores the abnormal reflection peak signal in the denoised ultrasonic signal that is greater than a set multiple of the average amplitude. The voice device compensates for the abnormal reflection peak signal in the denoised ultrasonic signal in the ultrasonic perception algorithm. Specifically, the value of the set multiple can be 1.5 times.
[0052] In this way, in the pre-processed ultrasonic signal, the abnormal reflection peak signal that is greater than the set multiple of the average amplitude is screened out for recording and storage. In the ultrasonic sensing algorithm, the abnormal reflection peak signal is compensated. Therefore, when doing the detection, this part of the abnormal reflection peak signal is recorded synchronously, and this part of the original abnormal peak data is used for compensation in the ultrasonic sensing algorithm, which improves the accuracy of the ultrasonic sensing algorithm. Thereby better reducing the impact of the environment or the installation of the voice equipment itself on the detection, improving the accuracy of the detection, and improving the test efficiency of the voice function detection in the production link.
[0053] Optionally, the speech device calculates the average amplitude of the overall signal of the denoised ultrasonic signal, including: the speech device calculates the average amplitude of each sampling point of the denoised ultrasonic signal.
[0054] Optionally, the voice device separately records and stores the abnormal reflection peak signal in the denoised ultrasonic signal that is greater than a set multiple of the average amplitude, including: the voice device compares the multiple relationship between the amplitude of the sampling point and the average amplitude one by one, and selects the sampling points whose multiple relationship is greater than the set multiple as the abnormal reflection peak signal. The voice device separately records and stores the multiple abnormal reflection peak signal. The set multiple value can be 1.5 times.
[0055] In this way, in the pre-processed ultrasonic signal, it is helpful to more accurately screen out the abnormal reflection peak signal that is greater than the set multiple of the average amplitude for recording and storage, and synchronously record this part of the abnormal reflection peak signal, and use this part of the original abnormal peak data for compensation in the sound pressure level value algorithm, thereby improving the accuracy of the sound pressure level value algorithm. This can better reduce the impact of the environment or the installation of the voice equipment itself on the detection, improve the accuracy of the detection, and improve the test efficiency of the voice function detection in the production link.
[0056] Optionally, the voice device compensates for the abnormal reflection peak signal in the denoised ultrasonic signal in the ultrasonic sensing algorithm, including: the voice device replaces the peak value of the sampling point of the abnormal reflection peak signal with zero to obtain the denoised ultrasonic signal. In this way, the peak value of the sampling point of the abnormal reflection peak signal is replaced with zero, and this part of the original abnormal peak data is used for compensation, thereby improving the accuracy of the ultrasonic sensing algorithm. This can better reduce the impact of the environment or the installation of the voice device's own components on the detection, improve the accuracy of the detection, and improve the test efficiency of the voice function detection in the production link.
[0057] Optionally, the voice device determines whether the voice module supports the ultrasonic perception algorithm according to the sound pressure level value in the denoised ultrasonic signal, including:
[0058] The speech device calculates the sound pressure level value in the denoised ultrasonic signal.
[0059] When the sound pressure level values of all denoised ultrasonic signals are greater than or equal to the standard level value, the voice device determines that the voice module supports the ultrasonic perception algorithm. Or,
[0060] In a case where the sound pressure level values of all denoised ultrasonic signals are less than the standard level value, the voice device determines that the voice module does not support the ultrasonic perception algorithm.
[0061] Specifically, the standard level value may be 52dB.
[0062] This is conducive to self-checking the two major functions of ultrasonic sensing algorithm and voice interaction service at the same time.
[0063] Optionally, the voice device calculates the sound pressure level value in the denoised ultrasonic signal, including: the voice device calculates the actual signal sound pressure P according to the air density ρ, the sound speed c in the denoised ultrasonic signal, the sound power N, the spherical radius r, and the sound intensity I. The voice device calculates the sound pressure level value SPL according to the actual signal sound pressure P and the reference sound pressure Pref. The unit of P is Pa, and the unit of ρ is kg / m 3 , the unit of c is m / s, the unit of N is W, the unit of r is m, and the unit of I is W / m 2 .
[0064] Specifically, the voice device calculates the actual signal sound pressure P according to the air density ρ, the sound speed c in the denoised ultrasonic signal, the sound power N, the spherical radius r, and the sound intensity I, including: the voice device calculates the actual signal sound pressure P by P 2 =ρ*c*N / (4*π*r 2 )=ρ*c*I and P is calculated.
[0065] Specifically, the voice device calculates the sound pressure level value SPL according to the actual signal sound pressure P and the reference sound pressure Pref, including: the voice device calculates SPL=10*log(P / Pref).
[0066] In this way, the sound pressure level value can be calculated more accurately, thereby more accurately determining whether the ultrasonic perception algorithm is supported and whether the voice interaction service is qualified.
[0067] Combination Figure 3 As shown, the embodiment of the present disclosure provides another method for production testing of a voice device, comprising:
[0068] S301, when the voice device is powered on, the voice device monitors a sound wave trigger instruction.
[0069] S302, when a coded sound wave trigger instruction is monitored, the voice device emits the generated ultrasonic wave.
[0070] S303, when the generated ultrasonic wave is emitted, the voice device synchronously collects the reflected ultrasonic wave signal.
[0071] S304, the voice device processes the collected ultrasonic signal to remove the noise signal and obtain a denoised ultrasonic signal.
[0072] S305: The voice device determines whether the voice module supports the ultrasonic perception algorithm according to the sound pressure level value in the denoised ultrasonic signal.
[0073] By adopting the method for voice equipment production testing provided by the embodiment of the present disclosure, the measurement process of whether the voice module can support the ultrasonic perception algorithm is algorithmized and programmed. The detection of whether the voice module can support the ultrasonic perception algorithm can be triggered by monitoring the coded sound wave trigger instruction. There is no need to set up a special detection position on the production line for separate measurement, which reduces the production cost. There is no need for measurement personnel to perform tedious operations for detection. Only the program is required to control the emission of ultrasonic waves, the collection of ultrasonic waves, and the synchronous replacement of the detection steps of the original voice interaction link, which simplifies the operation steps, improves the detection efficiency, and makes the detection process intelligent. And because the noise signal in the ultrasonic signal has been removed, and whether the voice module supports the ultrasonic perception algorithm is detected according to the sound pressure level value of the denoised ultrasonic signal, the accuracy of the detection is improved. Furthermore, the disclosed embodiments can not only determine whether the ultrasonic perception algorithm is suitably adapted to different machine models, but can also determine whether the voice interaction function of the voice module itself is normal. Since the working principle of the perception algorithm in the ultrasonic segment is consistent with that in the audible sound segment, and the requirements for acoustic devices are also consistent, once it is detected that the voice device meets the sound pressure requirements of the ultrasonic segment, it will inevitably meet the acoustic performance requirements of the device for voice interaction. There is no need to perform additional special tests for the passability of voice interaction, and the test efficiency of voice function detection in the production link is also improved.
[0074] Optionally, the voice device monitors the coded sound wave trigger instruction, including: the voice device monitors the sound wave trigger instruction sent by the coded sound wave trigger tool APP of the mobile terminal or monitors the coded sound wave trigger instruction emitted by the sound wave trigger tooling module. In this way, the separate trigger tool APP and the sound wave trigger tooling module send the coded sound wave trigger instruction, and the tooling module can be connected with the MES system at the production site to achieve complete automated detection.
[0075] Optionally, the communication method of the encoded sound wave trigger instruction is sound wave frequency modulation encoding, using the signal sound wave of the first frequency as the low-frequency transmission signal, and the sound wave signal of the second frequency as the high-frequency transmission signal. The baud rate of the signal transmission is the set baud rate, and the broadcast method is global broadcast.
[0076] The coded sound wave trigger instruction is composed of a start signal, a reserved address code and a start information code. Specifically, the value of the start signal can be FFFE, the reserved address code can be four bits, and the value of the start information code can be 01.
[0077] Specifically, the value of the first frequency may be 16 kHz, the value of the second frequency may be 17 kHz, and the value of the set baud rate may be 96 bit / s.
[0078] In this way, the communication of the coded sound wave trigger instruction is mainly used to trigger the start of the self-test program of the voice module. Selecting a relatively low communication rate will reduce the design of the detection and will also greatly reduce the occupation of the module's software and hardware resources.
[0079] Combination Figure 4 As shown, the embodiment of the present disclosure provides another method for production testing of a voice device, comprising:
[0080] S401, when the voice device is powered on, the voice device monitors a sound wave trigger instruction.
[0081] S402, when a coded sound wave trigger instruction is monitored, the voice device transmits the generated ultrasonic signal in a sinusoidal signal format multiple times, and the duration of each transmission is the first duration.
[0082] S403, when the generated ultrasonic wave is emitted, the voice device synchronously collects the reflected ultrasonic wave signal.
[0083] S404, the voice device performs filtering preprocessing on the collected ultrasonic signal to remove random abnormal reflection signals to obtain a denoised ultrasonic signal.
[0084] S405, the voice device records and stores the abnormal reflection peak signal in the denoised ultrasonic signal for use in the ultrasonic perception algorithm.
[0085] S406, the voice device calculates the sound pressure level value in the denoised ultrasonic signal.
[0086] S407: When the sound pressure level values of all denoised ultrasonic signals are greater than or equal to the standard level value, the voice device determines that the voice module supports the ultrasonic perception algorithm. Or,
[0087] S408: When the sound pressure level value of the denoised ultrasonic signal is less than the standard level value, the voice device determines that the voice module does not support the ultrasonic perception algorithm.
[0088] By adopting the method for voice equipment production test provided by the embodiment of the present disclosure, the measurement process of whether the voice module can support the ultrasonic perception algorithm is algorithmized and programmed. The detection of whether the voice module can support the ultrasonic perception algorithm can be triggered by monitoring the coded sound wave trigger instruction. There is no need to set up a special detection position on the production line for separate measurement, which reduces the production cost. There is no need for measurement personnel to perform cumbersome operations for detection. Only the program control is required to transmit ultrasonic waves, collect ultrasonic waves, and synchronously replace the detection steps of the original voice interaction link, simplify the operation steps, improve the detection efficiency, and make the detection process intelligent. First, the collected ultrasonic waves are filtered and pre-processed to remove random abnormal reflection signals. Since the actual installation of the ultrasonic transmitting module will produce a gap between the whole machine housing and the ultrasonic transmitting module, such a gap will more or less form abnormal ultrasonic reflection signals, affecting the subsequent ultrasonic perception algorithm The detection accuracy of the sensing active human body, therefore, when doing the detection, this part of the abnormal reflection peak signal is synchronously recorded, and this part of the original abnormal peak data is used in the ultrasonic perception algorithm for compensation, which improves the accuracy of the ultrasonic perception algorithm. This can better reduce the impact of the environment or the installation of components of the voice equipment itself on the detection, improve the accuracy of the detection, and enhance the test efficiency of the voice function detection in the production process.
[0089] Combination Figure 5 As shown, the embodiment of the present disclosure provides an apparatus 200 for production testing of voice equipment, including a transmitting module 501, an acquisition module 502, a denoising module 503 and a determining module 504. The transmitting module 501 is configured to transmit the generated ultrasonic wave when a coded sound wave trigger instruction is monitored. The acquisition module 502 is configured to synchronously collect the reflected ultrasonic signal at the moment of transmitting the generated ultrasonic wave. The denoising module 503 is configured to process the collected ultrasonic signal to remove the noise signal and obtain a denoised ultrasonic signal. The determining module 504 is configured to determine whether the voice module supports the ultrasonic perception algorithm based on the sound pressure level value in the denoised ultrasonic signal.
[0090] By using the device for voice equipment production testing provided by the embodiment of the present disclosure, the measurement process of whether the voice module can support the ultrasonic sensing algorithm is algorithmized and programmed. The detection of whether the voice module can support the ultrasonic sensing algorithm can be triggered by monitoring the coded sound wave trigger instruction. There is no need to set up a special detection position on the production line for separate measurement, which reduces production costs. There is no need for measurement personnel to perform tedious operations for detection. Only the program is required to control the emission of ultrasonic waves, the collection of ultrasonic waves, and the synchronous replacement of the detection steps of the original voice interaction link, which simplifies the operation steps, improves the detection efficiency, and makes the detection process intelligent. And because the noise signal in the ultrasonic signal has been removed, and whether the voice module supports the ultrasonic sensing algorithm is detected based on the sound pressure level value of the denoised ultrasonic signal, the accuracy of the detection is improved. Furthermore, the disclosed embodiments can not only determine whether the ultrasonic perception algorithm is suitably adapted to different machine models, but can also determine whether the voice interaction function of the voice module itself is normal. Since the working principle of the perception algorithm in the ultrasonic segment is consistent with that in the audible sound segment, and the requirements for acoustic components are also consistent, once it is detected that the voice device meets the sound pressure requirements of the ultrasonic segment, it will inevitably meet the acoustic performance requirements of the device for voice interaction. There is no need to perform additional special tests for the passability of voice interaction, and the test efficiency of voice function detection in the production link is also improved.
[0091] Combination Figure 6 As shown, the embodiment of the present disclosure provides a device 300 for voice equipment production testing, including a processor (processor) 600 and a memory (memory) 601. Optionally, the device may also include a communication interface (Communication Interface) 602 and a bus 603. Among them, the processor 600, the communication interface 602, and the memory 601 can communicate with each other through the bus 603. The communication interface 602 can be used for information transmission. The processor 600 can call the logic instructions in the memory 601 to execute the method for voice equipment production testing of the above embodiment.
[0092] In addition, the logic instructions in the memory 601 described above can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0093] The memory 601 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 600 executes the function application and data processing by running the program instructions / modules stored in the memory 601, that is, the method for voice device production testing in the above embodiment is implemented.
[0094] The memory 601 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 601 may include a high-speed random access memory and may also include a non-volatile memory.
[0095] Combination Figure 7 As shown, an embodiment of the present disclosure provides a voice device 100, including: a voice device body, and the above-mentioned device 200 (300) for production testing of voice devices. The device 200 (300) for production testing of voice devices is installed on the voice device body. The installation relationship described here is not limited to placement inside the voice device, but also includes installation connections with other components of the voice device, including but not limited to physical connections, electrical connections or signal transmission connections, etc. Those skilled in the art can understand that the device 200 (300) for production testing of voice devices can be adapted to a feasible voice device body, thereby realizing other feasible embodiments.
[0096] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned method for production testing of a voice device.
[0097] The computer-readable storage medium mentioned above may be a transient computer-readable storage medium or a non-transitory computer-readable storage medium.
[0098] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, including: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes, or a transient storage medium.
[0099] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0100] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0101] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. 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 units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0102] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A method for production testing of a voice device, characterized in that: The speech device comprises: a speech module, an ultrasonic transmitting module for generating and transmitting a coded ultrasonic signal, and an ultrasonic receiving module for collecting the ultrasonic signal; the method comprises: When a coded sound wave trigger instruction is monitored, the generated ultrasonic wave is emitted; At the moment of emitting the generated ultrasonic wave, the reflected ultrasonic wave signal is synchronously collected; Processing the collected ultrasonic signal to remove the noise signal and obtain a denoised ultrasonic signal; According to the sound pressure level value in the denoised ultrasonic signal, it is determined whether the voice module supports the ultrasonic perception algorithm.
2. The method according to claim 1, characterized in that Transmits the generated ultrasonic wave, including: The ultrasonic signal in the sinusoidal signal format is generated by multiple transmissions, and the transmission duration of each transmission is the first duration.
3. The method according to claim 1, characterized in that The collected ultrasonic signal is processed to remove the noise signal to obtain a denoised ultrasonic signal, including: Performing filtering preprocessing on the collected ultrasonic signal to remove random abnormal reflection signals and obtain a denoised ultrasonic signal; The abnormal reflection peak signal in the denoised ultrasonic signal is recorded and stored for use in the ultrasonic sensing algorithm.
4. The method according to claim 3, characterized in that The collected ultrasonic signal is filtered and preprocessed to remove the random abnormal reflection signal and obtain the denoised ultrasonic signal, including: Performing bandpass filtering on the collected ultrasonic signal to obtain a bandpass filtered ultrasonic signal; By using two bandpass filtered ultrasonic signals, consistency filtering is performed on each individual bandpass filtered ultrasonic signal to remove random abnormal reflection signals on the individual bandpass filtered ultrasonic signal and obtain a denoised ultrasonic signal.
5. The method according to claim 3, characterized in that: The abnormal reflection peak signal in the denoised ultrasonic signal is recorded and stored for use in the ultrasonic sensing algorithm, including: Calculate the average amplitude of the overall signal of the denoised ultrasonic signal; Separately record and store abnormal reflection peak signals in the denoised ultrasonic signal that are greater than a set multiple of the average amplitude; In the ultrasonic sensing algorithm, the abnormal reflection peak signal in the denoised ultrasonic signal is compensated.
6. The method according to any one of claims 2 to 5, characterized in that: According to the sound pressure level value in the denoised ultrasonic signal, determine whether the voice module supports the ultrasonic perception algorithm, including: Calculate the sound pressure level value in the denoised ultrasonic signal; When the sound pressure level values of all denoised ultrasonic signals are greater than or equal to the standard level value, it is determined that the voice module supports the ultrasonic perception algorithm; or, In the case where the sound pressure level value of the denoised ultrasonic signal is less than the standard level value, it is determined that the voice module does not support the ultrasonic perception algorithm.
7. A device for production testing of voice equipment, characterized in that: The speech device includes: a speech module, an ultrasonic transmitting module for generating and transmitting a coded ultrasonic signal, and an ultrasonic receiving module for collecting ultrasonic signals; the device includes: A transmitting module is configured to transmit the generated ultrasonic wave when a coded sound wave trigger instruction is monitored; The collection module is configured to synchronously collect the reflected ultrasonic signal at the moment of emitting the generated ultrasonic wave; A denoising module is configured to process the collected ultrasonic signal to remove the noise signal and obtain a denoised ultrasonic signal; The determination module is configured to determine whether the voice module supports the ultrasonic perception algorithm according to the sound pressure level value in the denoised ultrasonic signal.
8. A device for production testing of a voice device, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for voice device production testing according to any one of claims 1 to 6 when running the program instructions.
9. A voice device, characterized in that: include: The voice device body includes: a voice module, an ultrasonic transmitting module for generating and transmitting coded ultrasonic signals, and an ultrasonic receiving module for collecting ultrasonic signals; The device for production testing of speech devices as described in claim 7 or 8 is installed on the speech device body.
10. A storage medium storing program instructions, characterized in that: When the program instructions are executed, the method for production testing of a voice device according to any one of claims 1 to 6 is executed.
Citation Information
Patent Citations
Ultrasonic wave sensor index detection method and device
CN103591975A
Ultrasonic calibration method and device for mobile device
CN106301606A
Detection device for ultrasonic transmitter and receiver
CN107197069A
Instrument test method, mobile terminal and computer readable storage medium
CN108092726A
Ultrasonic equipment detecting system
CN109549665A