Audio detection method, system and related equipment

Through the communication connection between the terminal equipment and the monitoring equipment, audio detection data is obtained in real time, which solves the problem that traditional audio detection solutions cannot obtain fault information in real time, and improves the efficiency of fault location and audio delivery.

CN117714958BActive Publication Date: 2024-09-24HONOR DEVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310776991.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-27
Publication Date
2024-09-24
Estimated Expiration
2043-06-27

AI Technical Summary

Technical Problem

Traditional audio detection solutions cannot obtain fault information in real time when terminal equipment is detected in extreme environments, resulting in difficulty in fault location, waste of manpower and low efficiency.

Method used

Through the communication connection between terminal equipment and monitoring equipment, audio detection can be made transparent, detection data can be obtained in real time, fault sites can be quickly located, the difficulty of subsequent problem recurrence and analysis can be reduced, and audio delivery efficiency can be improved.

Benefits of technology

It achieves real-time acquisition of terminal equipment detection data in extreme environments, quickly locates faults, reduces labor consumption and low efficiency, and improves audio delivery efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117714958B
    Figure CN117714958B
Patent Text Reader

Abstract

The present application provides an audio detection method, system and related equipment, which relate to the field of terminal technology. The audio detection method is applied to a monitoring server, which is connected to at least one terminal device in communication. The method includes: outputting a detection instruction to the terminal device so that the terminal device plays a detection sound source in response to the detection instruction; when the terminal device plays the detection sound source, obtaining detection data of a detection node on the terminal device, wherein the detection data is the result of processing the audio data on the detection node; when the detection data does not meet a preset condition, determining that a detection node corresponding to the detection data fails; and outputting relevant information of the failed detection node. Transparency of audio detection is achieved, and technicians will understand (or promptly understand) relevant information when a failure occurs during the detection process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to an audio detection method, system and related equipment. Background Art

[0002] The terminal equipment is generally equipped with audio components such as speakers and receivers. During the production process of the terminal equipment, in order to ensure the audio performance of the terminal equipment, the terminal equipment will be subjected to audio testing.

[0003] Traditional audio detection solutions are unable to obtain relevant information during the detection process. For example, in some scenarios, terminal equipment needs to be tested in extreme environments (such as falling or high temperature and high humidity), and the test results can only be obtained after the test is completed. At this time, technicians will not be able to promptly or will find it difficult to obtain relevant information when a fault occurs during the detection process. Summary of the invention

[0004] In view of the above, it is necessary to provide an audio detection method, system and related equipment, which can realize the transparency of audio detection through the communication connection between the terminal equipment and the monitoring equipment, and the technicians will know (or know in time) the relevant information when a fault occurs during the detection process.

[0005] In the first aspect, an embodiment of the present application provides an audio detection method, which is applied to a monitoring server, and the monitoring server is communicatively connected to at least one terminal device, the method comprising: outputting a detection instruction to the terminal device, so that the terminal device plays a detection sound source in response to the detection instruction; when the terminal device plays the detection sound source, obtaining detection data of a detection node on the terminal device, wherein the detection data is a result of processing audio data on the detection node; when the detection data does not meet a preset condition, determining that a detection node corresponding to the detection data has failed; and outputting relevant information of the failed detection node.

[0006] In an embodiment of the present application, the transparency of audio detection is achieved based on the communication connection between the monitoring device and the terminal device to be audio detected. The monitoring device is not limited by the detection environment, frequency, duration, etc. The monitoring device can obtain the detection data of each detection node on the terminal device during the detection process in real time, or the monitoring device can obtain the detection data of each detection node in the entire detection process, and obtain the detection results of the detection node and / or the terminal device based on the detection data. In this way, the first scene corresponding to the failure in the audio detection process can be quickly located, reducing the difficulty of subsequent problem reproduction and analysis, reducing manpower waste and energy consumption, and correspondingly improving the work efficiency of audio delivery of the terminal device. The relevant information of the detection node where the failure occurs can be output to notify the technical staff, thereby realizing the functions of automatic fault reporting, detection, and early warning.

[0007] In a possible implementation, when the terminal device plays the detection sound source, obtaining the detection data of the detection node on the terminal device includes: when the terminal device plays the detection sound source, obtaining the audio data on the detection node; processing the audio data to obtain the audio energy value; using the audio energy value as the detection data of the detection node. By processing the audio data, a time domain amplitude value or a frequency domain decibel value is obtained, and then the audio energy value is calculated according to the time domain amplitude value or the frequency domain decibel value.

[0008] In a possible implementation, when the detection data does not meet the preset condition, determining that the detection node corresponding to the detection data has failed includes: obtaining the standard energy corresponding to the detection node; when the audio energy value of the detection node is not within the standard energy, determining that the detection node corresponding to the audio energy value has failed. For each detection node, the detection data corresponding to the detection node is judged based on the standard energy corresponding to the detection node, so as to determine whether the detection node has failed.

[0009] In a possible implementation, the terminal devices include two or more, and before outputting the detection instruction to the terminal device, it also includes: for each terminal device, configuring a unique detection audio source for the terminal device according to a preset encryption method; transmitting the detection audio source to the corresponding terminal device. By configuring a unique detection audio source for different terminal devices, it is possible to simultaneously detect the audio processes of multiple terminal devices, and to achieve less impact between the terminal devices.

[0010] In a possible implementation, configuring a unique detection sound source for a terminal device according to a preset encryption method includes: determining a unique identifier of the terminal device; configuring a unique detection sound source for the terminal device according to the preset encryption method and the unique identifier. Configuring the detection sound source for the terminal device based on the unique identifier of the terminal device ensures the uniqueness of the detection sound source of each terminal device.

[0011] In the second aspect, an embodiment of the present application provides an audio detection method, which is applied to a terminal device, and the terminal device is communicatively connected to a monitoring server, the method comprising: obtaining a detection instruction output by the monitoring server; playing a detection sound source in response to the detection instruction; when playing the detection sound source, obtaining detection data of the detection node, wherein the detection data is a result of processing the audio data on the detection node; outputting the detection data to the monitoring server, so that when the monitoring server determines that a corresponding detection node has failed based on the detection data, it outputs relevant information of the failed detection node.

[0012] In a possible implementation, acquiring detection data of the detection node includes: acquiring audio data output by the detection node; processing the audio data to obtain an audio energy value; and using the audio energy value as the detection data of the detection node.

[0013] In a possible implementation, obtaining the detection data of the detection node includes: obtaining standard energy corresponding to the detection node; comparing the audio energy value of the detection node with the standard energy and outputting a comparison result; and using the comparison result as the detection data of the detection node.

[0014] In a possible implementation, before playing the detection sound source in response to the detection instruction, the method further includes: configuring a unique detection sound source for the terminal device according to a preset encryption method and a unique identifier of the terminal device.

[0015] In a third aspect, an embodiment of the present application provides an audio detection system, comprising a monitoring device and at least one terminal device, wherein the monitoring device is communicatively connected to the terminal device, the monitoring device is used to execute any of the above audio detection methods, and the terminal device is used to execute any of the above audio detection methods.

[0016] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory; the memory is used to store a computer program, the computer program includes program instructions; the processor is used to call the computer program to execute any of the above audio detection methods.

[0017] In a fifth aspect, an embodiment of the present application provides a computer storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes any of the above audio detection methods.

[0018] In a sixth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute any of the above audio detection methods.

[0019] In addition, the technical effects brought about by the second to sixth aspects can be found in the descriptions related to the methods of each design in the above method part, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A schematic diagram of the structure of an audio detection system provided in an embodiment of the present application.

[0021] Figure 2 A schematic diagram of the software structure of a terminal device provided in an embodiment of the present application.

[0022] Figure 3 A flowchart of an audio detection method provided in an embodiment of the present application.

[0023] Figure 4 A schematic diagram of an encryption method provided in an embodiment of the present application.

[0024] Figure 5 A schematic diagram of another encryption method provided in an embodiment of the present application.

[0025] Figure 6 A schematic diagram of the audio playback process provided in an embodiment of the present application.

[0026] Figure 7 A schematic diagram of detection nodes in the audio detection process provided in an embodiment of the present application.

[0027] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] In the description of the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field in this application. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. It should be understood that, unless otherwise specified in this application, " / " means or. For example, A / B can represent A or B. "And / or" in this application is only a description of the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, a, b and c seven situations.

[0030] When the audio of the terminal device is delivered, audio detection is required. In some scenarios, the continuity of the audio detection process needs to be guaranteed. For example, in the scenarios of probabilistic silent fault detection, drop detection, long-term aging detection (such as 120-hour aging detection), high temperature detection, low temperature detection, double 85 test (that is, the temperature of the test box is set to 85°C and the humidity is 85%) or audio mechanical strength detection, the audio detection is subject to the detection environment and / or detection frequency and / or detection duration, etc., and the final test result can only be obtained after the test is completed. If the detection tool (such as a temperature box) is turned on or the test is paused during the test, the test results will be affected. When a fault occurs during the audio detection process, the technician cannot obtain the relevant information of the fault in the detection process in a timely or real-time manner, such as the first scene of the fault (such as the time (frequency) of the fault, the detection node where the fault occurs, the equipment where the fault occurs, etc.), which brings great difficulty to locating the fault, and brings great difficulty to the subsequent problem reproduction and analysis, which correspondingly brings great waste of manpower and energy consumption.

[0031] In view of this, the embodiments of the present application provide an audio detection method, system and related equipment, which realize the transparency of audio detection based on the communication connection between the monitoring device and the terminal device to be audio detected. The monitoring device is not limited by the detection environment, frequency and duration, etc. The monitoring device can obtain the detection data of each detection node on the terminal device during the detection process in real time, or the monitoring device can obtain the detection data of each detection node in the entire detection process, and obtain the detection results of the detection node and / or the terminal device based on the detection data. In this way, the first scene corresponding to the failure in the audio detection process can be quickly located, reducing the difficulty of subsequent problem reproduction and analysis, reducing manpower waste and energy consumption, and correspondingly improving the work efficiency of audio delivery of terminal devices.

[0032] See also Figure 1 , an audio detection system 100 provided in an embodiment of the present application is exemplarily introduced.

[0033] The audio detection system 100 includes a monitoring device 20 and at least one terminal device 10, and a communication connection is established between the monitoring device 20 and the terminal device 10. The monitoring device 20 and the terminal device 10 can realize information transmission between the monitoring device 20 and the terminal device 10 by means of the established communication connection. Among them, the information transmitted between the monitoring device 20 and the terminal device 10 includes but is not limited to control instructions (such as detection instructions), detection sound sources, audio data, detection data and related information of detection nodes (such as logs), etc., which will be described in detail below.

[0034] The monitoring device 20 and the terminal device 10 can communicate with each other by wire or by wireless. Exemplarily, a wired connection can be established between the monitoring device 20 and the terminal device 10 using a Universal Serial Bus (USB). For another example, a wireless connection can be established between the monitoring device 20 and the terminal device 10 through a global system for mobile communications (GSM), a general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), Bluetooth, wireless fidelity (Wi-Fi), near field communication (NFC), voice over Internet protocol (VoIP), and a communication protocol supporting a network slicing architecture, which is not specifically limited in the embodiments of the present application.

[0035] In an embodiment of the present application, the monitoring device 20 can be a server, which can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. The embodiment of the present application does not impose any restrictions on this.

[0036] In the embodiment of the present application, the terminal device 10 may refer to a user device, an access terminal, a user unit, a user station, a mobile station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent or a user device. Exemplarily, the terminal device 10 may be a traditional audio output device such as a Bluetooth headset, a wired headset, or a mobile phone, a tablet, a TV (also referred to as a smart TV, a smart screen or a large screen device), a laptop, a TV, a speaker, a vehicle-mounted device, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), a wearable electronic device, a virtual reality device, and other electronic devices with audio input and output functions, and the embodiment of the present application does not impose any restrictions on this.

[0037] In the embodiment of the present application, an audio device is deployed in the terminal device 10, and the audio device includes a sound device. Among them, the sound device can be a device for playing sound, such as a speaker, a sound, a loudspeaker, and a receiver. When the terminal device 10 plays the sound source, the corresponding audio is played through the sound device.

[0038] In some embodiments, the audio device may further include an audio collector. The audio collector may be a microphone or the like. The audio collector may collect the audio played by the sound generating device to obtain audio data. The terminal device 10 may process the audio data and transmit the processing result to the monitoring device 20. Alternatively, the terminal device 10 may transmit the audio data to the monitoring device 20, which may process the audio data.

[0039] In some embodiments, the audio detection system 100 further includes a management device 30. The management device 30 is connected to the monitoring device 20. The management device 30 and the monitoring device 20 can communicate with each other by wire or by wireless. For details, please refer to the above and will not be repeated here. The management device 30 receives the results detected by the monitoring device 20 (such as relevant information of the failed detection node) and notifies the corresponding user (such as a technician) of the detected results.

[0040] The management device 30 can be implemented as a server, such as an application server, an instant messaging server, etc. The instant messaging server communicates with other systems to further convert the results detected by the monitoring device 20 into short messages, instant messages or emails to be sent to the technicians.

[0041] In some embodiments, the audio detection system 100 may further include a sound collection device 40. The sound collection device 40 is connected to the monitoring device 20 for communication. The monitoring device 20 and the sound collection device 40 may communicate via a wired manner or wirelessly. For details, please refer to the above and will not be repeated here. When the terminal device 10 for audio detection is a traditional audio output device, such as headphones, the sound collection device 40 collects the audio played by the sound device on the terminal device 10 to obtain audio data. The sound collection device 40 transmits the audio data to the monitoring device 20, which is processed by the monitoring device 20.

[0042] The sound collection device 40 is independent of the terminal device 10, and can be implemented as a microphone array.

[0043] In the embodiment of the present application, the terminal device 10 to be subjected to audio detection is placed in the same detection environment, such as placing the terminal device 10 in a test box for a double 85 test. At this time, based on the communication connection between the terminal device 10 and the monitoring device 20, the terminal device 10 immediately reports the detection data of each detection node in the audio detection process, and then the monitoring device 20 can obtain the detection data of each detection node on the terminal device 10 during the entire detection process, thereby realizing the background automatic monitoring function. When the sound collection device 40 is placed in the same detection environment as the terminal device 10, based on the communication connection between the sound collection device 40 and the monitoring device 20, the sound collection device 40 transmits the audio data collected during the detection process to the monitoring device 20. The monitoring device 20 processes the obtained detection data or audio data to obtain the corresponding detection results, and the technician does not need to open the test box or suspend the detection.

[0044] In some embodiments, the audio detection system 100 also has unique encryption function, early warning function and analysis and traversal condition functions such as original fault sound source, log preservation, abnormal problem prompts, etc., which will be introduced in detail below.

[0045] In an embodiment of the present application, the number of terminal devices 10 in the audio detection system 100 can be two or more, and the two or more terminal devices 10 can be different types of devices, such as performing audio detection on two or more mobile phones of different models at the same time, or performing audio detection on headphones, mobile phones and speakers at the same time, etc.

[0046] It should be noted that Figure 1 The number and type of monitoring devices 20, the number and type of terminal devices 10, and the number and type of management devices 30 in the audio detection system 100 shown are only examples, and this application does not make any specific limitations on this.

[0047] The software system of the terminal device 10 can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture or a cloud architecture. The following embodiment of the present application takes the Android system of the layered architecture as an example to illustrate the software structure of the terminal device 10. Of course, in other operating systems, as long as the functions implemented by each functional module are similar to the embodiments of the present application, the embodiments of the present application can also be implemented.

[0048] See also Figure 2 , exemplarily introduces the software structure of the terminal device 10 provided in an embodiment of the present application.

[0049] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into five layers, from top to bottom: application layer, application framework layer, library layer, hardware abstraction layer (HAL), kernel layer, and hardware layer.

[0050] The application layer can include a series of application packages. Figure 2 As shown, the application layer may include application programs (APP) such as game applications, video applications, and music applications.

[0051] Applications in the application layer include audio applications. Audio applications are applications that have audio functions and can provide audio content to users. Exemplarily, audio applications can be music applications, camera applications, video applications, or map applications. Music applications can play music. The camera application can output the system preset shutter sound when taking pictures. The video application can output audio corresponding to the video screen while playing the video. The map application can output navigation voice after turning on the navigation function. The audio application can be an audio application that comes with the device when it leaves the factory, such as music, or it can be an audio application released by a third party. This application does not specifically limit the specific type of audio application.

[0052] In some embodiments, the audio application includes an audio detection application. The audio detection method provided in the embodiment of the present application can be implemented as an audio detection application, which can be installed on the terminal device 10 and the monitoring device 20, and when the audio detection application is running, the audio detection method provided in the embodiment of the present application can be executed.

[0053] The application framework layer is used to support the operation of various applications in the application layer.

[0054] The application framework layer includes the application programming interface (API) of each application, such as the API of game application, the API of video application and the API of music application. The application programming interface can be a Java API, which is not specifically limited in this application.

[0055] The application framework layer also includes the Audio Manager, Audio System, and Audio Track. The Audio Manager is used to provide an API for controlling and accessing the audio stream, volume, and ringtone mode of the application. The Audio System is used as an entry point for sampling audio system resources, allowing querying and accessing the mixer installed on the system. The Audio Track is used to provide the corresponding audio track.

[0056] In some embodiments, the application framework layer may also include a window manager service (WMS), an activity manager service (AMS), a call manager, a notification manager, etc., and the embodiments of the present application do not impose any restrictions on this.

[0057] The library layer, also known as the system runtime layer, includes the Android runtime and the program library. The Android runtime includes the Dalvik virtual machine and the Java core library. The program library provides services to developers through the application framework, including a series of third-party libraries, such as the Audio Policy service and the AudioFlinger service.

[0058] Among them, the audio policy service is the maker of audio policies, responsible for the policy decisions on audio device switching, volume adjustment policies, etc. For example, the audio policy service can play a routing role, determining to which sound device the audio stream generated by a certain Audio Track will eventually be transmitted.

[0059] The audio stream management service, also known as the audio system engine, is the executor of the audio strategy. It is responsible for managing the devices for input audio streams, managing the devices for output audio streams, and data transmission, such as switching audio modes, loading audio parameters, processing and transmitting audio stream data, etc.

[0060] The audio stream management service includes but is not limited to the following classes: Resampling processing class (AudioResampler.cpp), which is used to perform sampling rate conversion and channel conversion. Mixing processing class (AudioMixer.cpp), including resampling, volume adjustment, channel conversion and other functions. Sound effect processing class (Effects.cpp) is used to perform sound effect processing. Audio stream management class (Tracks.cpp), which is used to control the state of the audio stream, such as start, pause, etc. Playback and recording thread class (Threads.cpp), playback is to read data from the first-in-first-out memory (First Input First Output, FIFO) and mix the data and then write the data to the device that outputs the audio stream. Recording is to read data from the device that inputs the audio stream, resample it and then write the data to the first-in-first-out memory. The audio stream management class (AudioFlinger.cpp) is an interface for providing services to the outside world.

[0061] The hardware abstraction layer is responsible for interacting with each hardware device of the terminal device 10. On the one hand, the hardware abstraction layer hides the implementation details of each hardware device, and on the other hand, it can provide the Android system with an interface for calling each hardware device. The hardware abstraction layer provides abstract layers (HALs) corresponding to different hardware devices, such as the audio hardware abstraction layer (Audio HAL), the camera hardware abstraction layer implementation (Camera HAL), the Wi-Fi hardware abstraction layer implementation (Wi-Fi HAL), etc. Among them, the Audio HAL can be further divided into Primary HAL, A2dpHAL, etc. Exemplarily, the audio stream management service can call Primary HAL to output audio data to the speaker of the terminal device 10, or the audio stream management service can call A2dp HAL to output audio data to a Bluetooth headset connected to the terminal device 10.

[0062] The kernel layer is the layer between hardware and software. The kernel layer includes but is not limited to: audio driver, display driver, camera driver, audio driver and sensor driver, etc. Among them, the audio driver is mainly responsible for the interaction with audio devices, including but not limited to speakers and other devices.

[0063] The hardware layer provides various hardware devices, such as modems, advanced digital signal processors (ADSP), smart power amplifiers (Smart PA), codecs, Bluetooth chips, and audio devices (such as receivers and speakers), etc., which are not limited in the embodiments of the present application.

[0064] Among them, the modem is used to convert analog signals from call peripherals into digital signals, and to convert digital signals from ADSP into analog signals. The Bluetooth chip is used to establish a Bluetooth connection and transmit Bluetooth data. The codec is a combination of encoder / decoder. It can be implemented as a device or some computer programs for encoding or decoding data streams or signals. In some embodiments, the ADSP may include a sound effect algorithm. The ADSP is used to process audio data, such as sound effect processing of voice data, and mixing processing of multiple voice data. In some embodiments, the ADSP may include a Smart PA algorithm, which can be run in the ADSP. The Smart PA algorithm includes functions such as digital-to-analog conversion, signal amplification, and device protection. Generally, it monitors the real-time impedance R0, real-time temperature, F0, overvoltage, overcurrent and other abnormal conditions of the speaker in real time through the IV feedback loop on the circuit; so as to protect the speaker from the effect parameters to prevent the speaker from burning, loose coils and other faults. The smart power amplifier is used to drive audio devices, such as speakers.

[0065] It should be noted that Figure 2 Only modules related to the embodiments of the present application are shown. Each layer may also include any other possible modules, and each module may also include one or more sub-modules, which are not limited in the present application.

[0066] The following describes an audio detection method provided by an embodiment of the present application, which can be applied to Figure 1 The audio detection system 100 shown. The terminal device 10 is in communication connection with the monitoring device 20. The terminal device 10 and the monitoring device 20 can be used to execute the audio detection method alone or in collaboration. The following description is made by taking the terminal device 10 and the monitoring device 20 cooperating to execute the audio detection method as an example.

[0067] See also Figure 3 , an exemplary introduction to the audio detection method process provided in an embodiment of the present application.

[0068] Step S31, the monitoring device configures a detection sound source for the terminal device and transmits it to the corresponding terminal device.

[0069] In an embodiment of the present application, the monitoring device can transmit the detection audio source configured for the terminal device to the terminal device based on the communication connection with the terminal device. When there are two or more terminal devices that need to perform audio detection, for each terminal device, the monitoring device configures a unique detection audio source for the terminal device and transmits the configured detection audio source to the corresponding terminal device. That is, the detection audio source received by each terminal device is uniquely related to the terminal device, such as the secret key of the detection audio source is uniquely related to the terminal device.

[0070] Specifically, for each terminal device, the monitoring device obtains the unique identification of the terminal device based on the communication connection with the terminal device, and configures a unique detection sound source for the terminal device according to the unique identification of the terminal device, that is, the detection sound source corresponding to the terminal device can be determined by the unique identification of the terminal device. Alternatively, for each terminal device, the monitoring device configures a unique detection sound source for the terminal device according to a preset encryption method. For example, different encryption methods can be used to configure detection sound sources for different terminal devices. Alternatively, for each terminal device, the monitoring device configures a unique detection sound source for the terminal device according to a preset encryption method and the unique identification of the terminal device.

[0071] The unique identification of the terminal device includes but is not limited to: (1) international mobile equipment identity (IMEI) code, including IMEI1 code (IDimei1) and IMEI 2 code (IDimei2); (2) serial number (SN) code (IDsn); (3) subscriber identification module (SIM) card number (IDsim); (4) WLAN MAC address (IDwlan); (5) Bluetooth MAC address (IDbt); (6) a unique identification code composed of any one or more of the terminal device's ROM version number, manufacturer name, CPU model, unique time of a certain stage of terminal device production and other hardware information. The combination method can be set according to actual conditions and is not limited here.

[0072] Among them, the preset encryption methods include but are not limited to: encrypting the sound source based on the unique identification of the terminal device, generating an ultrasonic signal based on the unique identification of the terminal device, encryption based on time domain, encryption based on frequency domain, and encryption based on time-frequency domain.

[0073] The monitoring device can provide the above encryption method to the technician through the interactive interface, and receive the encryption method selected by the technician through the interactive interface, and use the encryption method selected by the technician as the preset encryption method. Alternatively, the technician sets a default encryption method through the interactive interface, and the default encryption method is used as the preset encryption method. The embodiment of the present application does not specifically limit the specific implementation method of the monitoring device obtaining the preset encryption method.

[0074] The following describes the above encryption methods in detail:

[0075] 1. Encrypted sound source based on the unique identification of the terminal device: The monitoring device determines the initial sound source of the terminal device, and encrypts the initial sound source according to the unique identification of the terminal device and the encryption algorithm to obtain the detection sound source. The secret key of the detection sound source is related to the unique identification of the terminal device. The encryption algorithm includes but is not limited to: binary encryption algorithm, plaintext encryption, digital encryption, partial sound source encryption and full encryption algorithm. Among them, the initial sound source can be an aging sound source, which is not specifically limited in this application.

[0076] Exemplarily, taking the XOR encryption method in the binary encryption algorithm as an example, mobile phone A, mobile phone B and mobile phone C are placed in the detection tool or detection environment at the same time, and the monitoring device determines that the initial sound sources of mobile phone A, mobile phone B and mobile phone C are sound source 1, sound source 2 and sound source 3 respectively, where sound source 1, 2, and 3 can be the same sound source or different. Based on the communication connection with mobile phone A, mobile phone B and mobile phone C, the monitoring device obtains the unique identification of mobile phone A, mobile phone B and mobile phone C respectively: identification a, identification b and identification c. The monitoring device converts the data in sound sources 1, 2, and 3 into binary codes to obtain binary files, which are files 1, 2, and 3 respectively. The monitoring device converts identification a, identification b and identification c into binary codes to obtain binary files, which are files a1, b2, and c3 respectively. The monitoring device performs an XOR operation on file 1 and file a1, and converts the file after the operation into a sound source file. This sound source file is the only detection sound source A1 configured by the monitoring device for mobile phone A. The detection sound source A1 carries the private characteristic information of mobile phone A. The secret key of the detection sound source A1 is related to the unique identifier a of mobile phone A, that is, the detection sound source A1 can be decrypted based on the identifier a. Correspondingly, the monitoring device performs an XOR operation on file 2 and file b2, and converts the file after the operation into a sound source file. This sound source file is the only detection sound source B1 configured by the monitoring device for mobile phone B. The secret key of the detection sound source B1 is related to the unique identifier b of mobile phone B. The monitoring device performs an XOR operation on file 3 and file c3, and converts the file after the operation into a sound source file. This sound source file is the only detection sound source C1 configured by the monitoring device for mobile phone C. The secret key of the detection sound source C1 is related to the unique identifier c of mobile phone C.

[0077] Mobile phone A plays the detection sound source A1, mobile phone B plays the detection sound source B1, and mobile phone C plays the detection sound source C1. When playing the detection sound source, mobile phone A, mobile phone B and mobile phone C respectively report the detection data of each detection node to the monitoring device in real time, and the monitoring device decrypts the received detection data based on the unique identification of each mobile phone, and then obtains the detection data corresponding to (or received or processed) each detection node, so as to determine whether a fault occurs and the type of fault based on the detection data. Exemplarily, the audio collectors on mobile phones A, mobile phone B and mobile phone C collect audio, or the sound collection equipment in the detection environment collects audio, and the audio collector or the sound collection equipment outputs the detection data to the monitoring device according to the collected audio, and the monitoring device decrypts the received detection data based on the unique identification of each mobile phone. Among them, the way in which the monitoring device obtains the secret key includes but is not limited to: after the terminal device is securely identified, the unique identification of the terminal device is obtained. Alternatively, each mobile phone decrypts the detection data of each detection node based on its corresponding unique identification, and reports the decrypted data to the monitoring device.

[0078] 2. Generate ultrasonic signals based on the unique identifier of the terminal device: The monitoring device determines the initial sound source of the terminal device, and generates an ultrasonic signal sequence of a preset duration according to the unique identifier of the terminal device, and superimposes the generated ultrasonic signal sequence on the initial sound source to obtain the detection sound source of the terminal device. The unique identifier of the terminal device is used to ensure that the superimposed ultrasonic signal sequence is unique. The ultrasonic signal can ensure that the sound source of the aging test is not interfered with, and the detection of silent, noisy, and abnormal sound problems can be achieved under the premise that the aging test is carried out normally. The preset duration can be determined according to the length of the unique identifier, or set according to the actual situation, such as 100ms, and this application does not make specific limitations on this.

[0079] In the embodiment of the present application, generating an ultrasonic signal sequence of a preset duration based on the unique identifier of the terminal device includes: converting the unique identifier of the terminal device into a binary code, setting a single-frequency ultrasonic signal of a first ultrasonic frequency corresponding to a position where the binary number in the binary code is 0, and setting a single-frequency ultrasonic signal of a second ultrasonic frequency corresponding to a position where the binary number in the binary code is 1. The first ultrasonic frequency is different from the second ultrasonic frequency, for example, the first ultrasonic frequency may be 21kHz, and the second ultrasonic frequency may be 23kHz.

[0080] In some embodiments, a signal of a third ultrasonic frequency of a specific duration is added as a flag at the start position and the end position of the superimposed ultrasonic signal sequence, and the first ultrasonic frequency, the second ultrasonic frequency and the third ultrasonic frequency are all different. In other embodiments, a signal of a third ultrasonic frequency and a signal of a fourth ultrasonic frequency of a specific duration are added as flags at the start position and the end position of the superimposed ultrasonic signal sequence, and the first ultrasonic frequency, the second ultrasonic frequency, the third ultrasonic frequency and the fourth ultrasonic frequency are all different. The specific duration can be set according to actual conditions, such as 200ms, and this application does not make specific limitations on this.

[0081] In the embodiment of the present application, the first ultrasonic frequency or the second ultrasonic frequency corresponding to the same batch of terminal devices performing audio detection may be the same or different. For example, the first ultrasonic frequency corresponding to mobile phone A is 21kHz, and the first ultrasonic frequency corresponding to mobile phone B is 23kHz. As long as it is ensured that for the same terminal device, the first ultrasonic frequency and the second ultrasonic frequency corresponding to 0 and 1 in its binary code are different, this application does not make specific limitations on this.

[0082] For example, see Figure 4 , taking the unique identification IMEI number of mobile phone A as 867639060023774, the first ultrasonic frequency as 23kHz, and the second ultrasonic frequency as 21kHz as an example, the binary representation corresponding to the unique identification is 001100010101 0001 1100 1111 0101 1111 0111 0100 1001 1101 1110, and the corresponding ultrasonic signal sequence is 23kHz23kHz21kHz21kHz23kHz23kHz…21kHz23kHz23kHz23kHz23kHz23kHz21kHz. After the monitoring device adds the single-frequency ultrasonic signal of the third ultrasonic frequency to the initial sound source, it superimposes the ultrasonic signal sequence generated based on the unique identification of mobile phone A, and adds the single-frequency ultrasonic signal of the fourth ultrasonic frequency to the ultrasonic signal sequence to obtain the detection sound source. That is, the detection sound source includes an initial sound source, an ultrasonic signal sequence generated based on the unique identifier of mobile phone A, a single-frequency ultrasonic signal of a third ultrasonic frequency, and a single-frequency ultrasonic signal of a fourth ultrasonic frequency.

[0083] Mobile phone A obtains the detection sound source. When the sound source of mobile phone A plays the detection sound source, the audio collector of mobile phone A will record synchronously to obtain detection data. Mobile phone A reports the detection data to the monitoring device. When the monitoring device performs detection based on the detection data, it can identify according to the initial flag, the end flag and the ultrasonic signal sequence. If there is a corresponding ultrasonic signal sequence, it indicates that the sound device has sound, and if there is no corresponding ultrasonic signal sequence, it indicates that the sound device is silent. Or mobile phone A performs detection based on the audio data collected by the audio collector, obtains the detection result, and reports the detection result as detection data to the monitoring device. Specifically, the terminal device can identify according to the initial flag, the end flag and the ultrasonic signal sequence. If there is sound, the detection result "0" is output as the detection data, and if there is no sound, the detection result "1" is output as the detection data.

[0084] 3. Time domain encryption: The same batch of terminal devices performing audio detection play the detection audio source at different times, that is, the detection audio source is played at different times. For example, the monitoring device instructs mobile phone A to play the detection audio source at time T1 to T3, and the monitoring device instructs mobile phone B to play the detection audio source at time T4 to T6. The detection audio sources played by mobile phone A and mobile phone B can be the same or different.

[0085] 4. Frequency domain encryption: The frequency domains of the detection audio sources played by the same batch of terminal devices for audio detection are different. For example, the frequency domain of the detection audio source configured by the monitoring device for mobile phone A is 25kHz, and the frequency domain of the detection audio source configured by the monitoring device for mobile phone B is 30kHz. The time for mobile phone A and mobile phone B to play the detection audio source can be the same or different.

[0086] 5. Time-frequency domain encryption: a combination of the above time-domain encryption and frequency-domain encryption. For example, the monitoring device instructs mobile phone A to play the detection sound source from T1 to T3, and the frequency domain of the detection sound source is 25kHz. The monitoring device instructs mobile phone B to play the detection sound source from T4 to T6, and the frequency domain of the detection sound source is 30kHz.

[0087] In some embodiments, the encryption method may also include: combining multiple algorithms such as STFT transform algorithm, wavelet transform algorithm, etc. to produce a detection sound source.

[0088] It can be understood that the monitoring device can configure a unique detection sound source for the terminal device based on any one or more of the above encryption methods, and this application does not make any specific limitations on this.

[0089] Step S32: the monitoring device outputs a detection instruction to the terminal device.

[0090] In the embodiment of the present application, the detection instruction instructs the terminal device to play the detection sound source. Wherein, the monitoring device can transmit the detection sound source and the detection instruction to the terminal device at the same time based on the communication connection with the terminal device.

[0091] The order of step S31 and step S32 is not specifically limited. For example, when the monitoring device can execute step S31, after determining the detection sound source configured for the terminal device, the monitoring device transmits the detection sound source and the detection instruction to the terminal device at the same time.

[0092] In some embodiments, step S31 can be deleted, and the terminal device can be configured with a unique detection sound source, or the terminal device can pre-store a unique detection sound source that belongs to it. When multiple electronic devices need to perform audio detection, for each terminal device, the terminal device can determine its own unique detection sound source, or the terminal device can obtain information about the detection sound sources configured by other terminal devices from the monitoring device, so that the detection sound sources determined by each electronic device are different.

[0093] Before the terminal device plays the detection sound source in response to the detection instruction, it also includes: the terminal device configures a unique detection sound source for the terminal device according to the preset encryption method and the unique identifier of the terminal device. Specifically, the terminal device can determine its corresponding detection sound source when receiving the detection instruction, and then play the detection sound source in response to the detection instruction. Alternatively, the terminal device determines its corresponding detection sound source in response to the detection instruction and plays the detection sound source. The way in which the terminal device configures a unique detection sound source for it can refer to the above, such as configuring a unique detection sound source based on the above-mentioned preset encryption method and / or unique identifier, which will not be repeated here.

[0094] In some embodiments, the detection instruction sent by the monitoring device to the terminal device may indicate an encryption method, and the encryption method indicated by the detection instruction is a preset encryption method. When the terminal device pre-stores an encryption method, the detection instruction may indicate encryption based on the pre-stored encryption method. The encryption algorithm corresponding to the encryption method may be combined with any algorithm module in the audio playback process, such as the sound effect algorithm in the audio stream management service Audio Flinger service, or the Smart PA algorithm in ADSP.

[0095] See also Figure 5, the terminal device receives the detection instruction sent by the monitoring device, and the terminal device plays the pre-stored detection sound source (such as the aging sound source) in response to the detection instruction. When the detection sound source is processed by the Smart PA algorithm, the detection sound source is encrypted in combination with the encryption algorithm to obtain the corresponding audio data, and the audio data is output to the smart power amplifier, and the smart power amplifier controls the corresponding sound generating device to output the audio. The sound collecting device of the terminal device decodes the audio after receiving it, and the terminal device decrypts the decoded audio according to the decryption information corresponding to the encryption algorithm, and reports the decrypted data as detection data to the monitoring device.

[0096] In other embodiments, the terminal device may report the detection data and decryption information corresponding to the encryption algorithm to the monitoring device, and the monitoring device may decrypt the detection data based on the decryption information.

[0097] Step S33: the terminal device plays the detection sound source in response to the detection instruction.

[0098] The workflow of playing an audio source of a terminal device provided in an embodiment of the present application is exemplarily introduced.

[0099] Step 1: The terminal device starts the corresponding audio application in response to the detection instruction.

[0100] In some embodiments, the detection instruction may indicate an audio application to be launched, such as a music application.

[0101] Step 2: The audio application at the application layer outputs audio data, which forms an audio stream.

[0102] In some embodiments, the audio stream may be identified with a corresponding identifier, such as a media stream, a call stream, a system stream, a ringtone stream, a warning stream (alarm), a notification stream, a dial key stream, and the like.

[0103] Step 3: The audio application calls the corresponding audio playback interface in the application framework layer to create a corresponding audio track (Audio track), which can output the decoded audio stream.

[0104] Optionally, the audio playback interface may be an application programming interface (API) of a Java class application using a media player, ie, a Java API.

[0105] Step 4: The Audio track corresponding to the audio application can further call the audio stream management service for corresponding processing.

[0106] Step 5: The audio stream management service outputs the processed audio stream to the audio hardware abstraction layer.

[0107] Step 6: The audio hardware abstraction layer transmits the processed audio stream to the audio driver.

[0108] In step seven, the audio driver transmits the processed audio stream to the advanced digital signal processor.

[0109] In step eight, the advanced digital signal processor processes the received audio stream and outputs a digital signal to the smart power amplifier and / or outputs a digital signal to the codec.

[0110] In some embodiments, when the audio device plays audio, the smart power amplifier receives an IV feedback signal fed back by the audio device.

[0111] Step nine: the intelligent power amplifier converts the digital signal into an analog signal and outputs the analog signal to the audio device.

[0112] Step 10: The audio device processes the analog signal and outputs the corresponding audio.

[0113] Specifically, taking the audio application on the terminal device as a music application as an example, refer to Figure 6 , Figure 6 The music application in the application layer receives the detected sound source and outputs audio data, which forms audio stream A. The music application calls the audio playback interface of the music application and creates an Audio track corresponding to the music application in the application framework layer. The Audio track corresponding to the music application can output the decoded audio stream A. The Audio track corresponding to the music application can further call the audio stream management service, and the audio stream management service processes the audio stream A. For example, the audio stream management service executes a sound effect algorithm on the output audio stream A to perform sound effect processing. Alternatively, the audio stream management service loads the volume corresponding to the media stream A, which is the playback volume of the audio stream A output by the music application.

[0114] The audio stream management service outputs the processed audio stream A to the audio hardware abstraction layer. The audio hardware abstraction layer can select a hardware device that outputs the processed audio stream A and access the driver of the hardware device in the kernel layer to play audio through the hardware device. The hardware device selected by the audio hardware abstraction layer for the music application is a speaker. The audio hardware abstraction layer outputs the processed audio stream A to the advanced digital signal processor. The advanced digital signal processor outputs a digital signal to the smart power amplifier based on the audio stream A. The smart power amplifier converts the digital signal into an analog signal and outputs the analog signal to the speaker. The speaker processes the analog signal and plays the audio corresponding to the detected sound source on the music application.

[0115] It should be noted that the above is only an exemplary introduction to the process of generating and emitting sound inside the terminal device (i.e., the audio playback process). The modules and devices involved in the audio playback process can be determined according to actual conditions, and this application does not make specific limitations on this.

[0116] Step S34: When the terminal device plays the detection sound source, the monitoring device obtains the detection data of the detection node on the terminal device.

[0117] In an embodiment of the present application, a terminal device or a monitoring device may pre-set a detection node. For each detection node, the terminal device transmits the detection data of the detection node to the monitoring device in real time. Among them, the terminal device obtains the detection data on the detection node in a manner including but not limited to: code dotting, plugging, etc. Among them, the detection node is a node related to audio playback, including a node located inside the terminal device, and also including a node located outside the terminal device. The detection node can be each module (software module or hardware device) on the audio playback process (pathway), and can also be a node between each module.

[0118] The monitoring device may obtain the detection data of the detection node on the terminal device by: when the terminal device plays the detection sound source, the terminal device transmits back (or reports immediately) the detection data of the detection node to the monitoring device in real time.

[0119] With the above Figure 6 For an example of the audio playback process in Figure 7, an exemplary introduction to the detection nodes related to the audio playback process on the terminal device. When the music application in the application layer wants to play audio, the music application outputs the retrieved detection sound source to the first node 41. The first node 41 is located between the music application and its corresponding API interface. The API of the music application calls the corresponding Audio track to output the decoded audio stream to the second node 42. The second node 42 is located between the Audio track and the audio stream management service. The audio stream management service outputs the processed audio stream to the third node 43. The third node 43 is located between the audio stream management service and the audio hardware abstraction layer. The audio hardware abstraction layer transmits the processed audio stream to the audio driver. The audio driver outputs the processed audio stream to the fourth node 44, which is located between the audio driver and the advanced digital signal processor. The advanced digital signal processor outputs the digital signal to the fifth node 45. The fifth node 45 is located between the advanced digital signal processor and the intelligent power amplifier. The digital signal is converted into an analog signal after being converted by the intelligent power amplifier through digital-to-analog conversion, and the analog signal is output to the sixth node 46. The sixth node 46 is located between the intelligent power amplifier and the sound-generating device. The sound device processes the analog signal and outputs IV feedback to the seventh node 47. The audio signal output by the sound device is transmitted to the eighth node 48, which is located between the sound device and the audio collector (or sound collection device). The eighth node 48 can be understood as the node where the terminal device outputs audio. After the audio collector collects the audio signal, it outputs it to the ninth node 49, which is located at the output end of the audio collector (or sound collection device). The detection nodes on the terminal device include but are not limited to the above-mentioned first node 41 to the ninth node 49.

[0120] The corresponding processes of each terminal device when playing audio may be different, and the software modules and / or hardware modules involved in the corresponding processes are also different, and the corresponding detection nodes may be different. Alternatively, the detection nodes corresponding to each terminal device can be determined according to actual conditions.

[0121] The terminal device can obtain the audio data or detection data on the first node 41 to the seventh node 47 by code dotting, and based on the communication connection with the monitoring device, the terminal device uploads the detection data corresponding to the first node 41 to the seventh node 47 to the monitoring device. Alternatively, based on the communication connection with the monitoring device, the terminal device obtains the audio data collected by the sound collection device on the terminal device, processes the audio data collected by the sound collection device and the audio data output, and then uploads the corresponding detection data to the monitoring device. Alternatively, the audio data collected by the sound collection device is used as the data on the eighth node 48, and the audio data output by the sound collection device is used as the data on the ninth node 49.

[0122] In an embodiment of the present application, the detection data uploaded to the monitoring device can be the most original data (audio data) on the detection node, or the audio data after the terminal device pre-processes the audio data (such as noise reduction), the audio energy value obtained after the terminal device processes the audio data, or the comparison result after comparison based on the audio energy value. The present application does not make any specific limitations on this.

[0123] Specifically, when the terminal device plays the detection sound source, the terminal device obtains the audio data output by the detection node and uses the audio data as the detection data. Alternatively, the terminal device obtains the audio data output by the detection node, processes the audio data, obtains the audio energy value, and uses the audio energy value as the detection data of the detection node. Alternatively, the terminal device obtains the standard energy corresponding to the detection node, compares the audio energy value of the detection node with the standard energy, outputs the comparison result, and uses the comparison result as the detection data of the detection node.

[0124] like Figure 7 As shown, the audio data corresponding to the first node 41 is the detection sound source called by the audio application, and its format can be various forms of data such as wav, raw, and text documents. The audio data corresponding to the second node 42 is the decoded audio stream, and its file before the audio stream manager service is processed, and its format can be various forms of data such as wav, raw, and MP3. The audio data corresponding to the third node 43 is the file processed by the audio stream manager service, such as the file processed by the audio algorithm of the audio stream management service, and its format can be various forms of data such as wav, raw, and MP3. The audio data corresponding to the fourth node 44 is the file output by the audio driver, which can be a file processed by the hardware abstraction layer, etc. The audio data corresponding to the fifth node 45 is a digital signal processed by an advanced digital signal processor. The audio data corresponding to the sixth node 46 is the electrical signal output by the intelligent power amplifier to the sound device. The audio data corresponding to the seventh node 47 is the IV feedback signal of the sound signal returned to the intelligent power amplifier. The audio data corresponding to the eighth node 48 is the audio played by the sound device, that is, the audio signal collected by the sound collection device or the audio collector. The audio data corresponding to the ninth node 49 is an audio signal output by a sound collecting device or an audio collector.

[0125] In an embodiment of the present application, when the terminal device plays the detection sound source, the monitoring device or the terminal device obtains the audio data output by the detection node on the terminal device in real time, processes the audio data, obtains the audio energy value, and uses the audio energy value as the detection data of the detection node.

[0126] The terminal device or monitoring device obtains the corresponding time domain amplitude value or frequency domain decibel value according to the audio data on the detection node, and then calculates the corresponding log RMS energy value, that is, the audio energy value, according to the time domain amplitude value or the frequency domain decibel value through a calculation formula. The calculation formula can be the root mean square (RMS), that is, the square root of the sum of the squares of N items divided by N, that is, the root mean square result.

[0127] For example, the calculation formula is to calculate the root mean square as an example:

[0128]

[0129] Among them, X rms That is, the audio energy value corresponding to each detection node, N is the sampling point on the audio data corresponding to the detection node, and X represents the time domain amplitude value or frequency domain decibel value of the sampling point on the audio data.

[0130] Among them, the method for obtaining the time domain amplitude value of the audio data can be: by sampling and quantizing the analog signal of the audio data to obtain the time domain amplitude value X of each sampling point, and the unit of the time domain amplitude value can be volt. The method for obtaining the frequency domain decibel value can be: the time domain amplitude value X is obtained by Fourier transforming the frequency domain value, and then the frequency domain value is converted into the corresponding frequency domain decibel value by formula Y=20log(X), and the unit of the frequency domain decibel value can be dB. The time domain amplitude value or frequency domain decibel value of the sampling point on the audio data can be set according to the actual situation, and this application does not make specific limitations on this.

[0131] In some embodiments, the terminal device may have a built-in audio detection application, and the terminal device starts the audio detection application in response to the detection instruction. When the terminal device runs the audio detection application, the audio detection application may perform one or more of the following operations: configuring a detection sound source (such as configuring a detection sound source in response to the detection instruction), playing a detection sound source, obtaining detection data, and reporting detection data.

[0132] Step S35: When the detection data does not meet the preset condition, the monitoring device determines that the detection node corresponding to the detection data fails.

[0133] In an embodiment of the present application, when the detection data does not meet the preset conditions, the monitoring device determines that the detection node corresponding to the detection data has a fault, specifically including: the monitoring device obtains the standard energy corresponding to the detection node; when the audio energy value of the detection node is not within the standard energy, the monitoring device determines that the detection node corresponding to the audio energy value has a fault. The standard energy can be a predefined energy range, for example, the standard energy is defined based on the average audio signal energy in a time window of a predefined duration, and the standard energy can also be a preset threshold. For example, the standard can include a first preset threshold. When the audio energy value on the detection node is greater than or equal to the first preset threshold within a preset time period, it is considered that noise or noise occurs at the detection node. The standard can include a second preset threshold. When the audio energy value on the detection node is less than or equal to the second preset threshold within a preset time period, it is considered that the sound of the detection node is low or a silent fault occurs. The present application does not specifically limit the setting of the standard energy.

[0134] For example, Figure 7 Taking the nine detection nodes in the example, Jinji 1 plays audio, and the audio energy values ​​corresponding to the nine detection nodes in Jinji 1 are A1, A2, ...A9. Jinji 2 plays audio, and the audio energy values ​​corresponding to the nine detection nodes in Jinji 2 are B1, B2, ...B9. Jinji 3 plays audio, and the audio energy values ​​corresponding to the nine detection nodes in Jinji 3 are C1, C2, ...C9. Jinji 4 plays audio, and the audio energy values ​​corresponding to the nine detection nodes in Jinji 4 are D1, D2, ...D9. The threshold interval is obtained by testing these four Jinji devices: the standard energy corresponding to the first node is [A1, D1], the standard energy corresponding to the second node is [A2, D2], and so on. The standard energy corresponding to the ninth node is [A9, D9].

[0135] In an embodiment of the present application, the terminal device can upload the audio data of its various detection nodes to the monitoring device, or the terminal device can upload the audio energy value of its various detection nodes to the monitoring device, or the terminal device pre-stores the standard energy corresponding to each detection node, and compares the audio energy value of each detection node with the corresponding standard energy to confirm whether the detection node has a fault, and uploads the relevant information of the detection node whose comparison result is a fault to the monitoring device.

[0136] The monitoring device compares the obtained audio energy value with the standard energy corresponding to the detection node to confirm whether the detection node is faulty. Alternatively, the terminal device pre-stores the standard energy corresponding to each detection node, and compares the audio energy value of each detection node with the corresponding standard energy to confirm whether the detection node is faulty, and uploads the relevant information of the detection node with a comparison result of fault to the monitoring device.

[0137] As in the above example, the values of the first detection node a1, the second detection node a2, …, and the ninth detection node a9 are calculated by each detection node on the terminal device.

[0138] Comparison and judgment method 1:

[0139] Judge whether the first detection node a1 falls within the standard energy [A1, D1] corresponding to the first detection node. If so, it represents normal. If the first detection node a1 > A1, it represents that the sound is too loud and there may be a large noise, then report and notify the technical staff. Or if the first detection node a1 < D1, it represents that the sound is too small and there is a problem of no sound or very small sound, then report and notify the technical staff.

[0140] Comparison and judgment method 2:

[0141] Compare the first detection node a1 to the ninth detection node a9, and it can be judged from which detection node the fault occurs between individual terminal devices, so as to realize more refined monitoring reporting and real-time monitoring.

[0142] In some embodiments, when the detection data is the result of the terminal device comparing the audio data according to the standard energy corresponding to the detection node, the preset condition indicates the situation where the detection result is normal. Exemplarily, use "1" to represent that the detection node has a fault, and use "0" to represent that the detection node has no fault. When the detection data is "1", the monitoring device determines that the detection node corresponding to the detection data has a fault.

[0143] In some embodiments, after the terminal device compares the audio data according to the standard energy corresponding to the detection node, the terminal device can upload only the detection data corresponding to the detection node with a fault.

[0144] Step S36, the monitoring device outputs the relevant information of the detection node with a fault to the management device.

[0145] In the embodiments of the present application, the monitoring device obtains and stores the following information according to the real-time obtained detection data and / or audio data: The log includes the running water log, the sound source file formats of each detection node include but are not limited to wav / raw / binary, the fault identification code, the fault detection result, and the protocol content agreed upon for fault reporting.

[0146] The information content uploaded by the monitoring device to the management device includes but is not limited to: the identifier (such as the number) of the terminal device presenting the fault, the time of the fault occurrence, the fault type (such as the existence of noise, no sound, etc.), the storage location information such as the log, the number of times of the fault occurrence, the number of completed detection times (rounds), the order of the fault occurrence (such as the fault at the Xth verification), the storage size of the log, the duration, the preservation time, etc.

[0147] In an embodiment of the present application, the monitoring device can send a detection instruction to each terminal device in response to the user's operation, and can also send a pause instruction to each terminal device in response to the user's operation so that each terminal device pauses playing audio, and can also send a stop instruction to each terminal device in response to the user's operation so that each terminal device stops playing audio.

[0148] In an embodiment of the present application, based on the communication connection between the monitoring device and the terminal device, the monitoring device can obtain the detection data of each detection node on the terminal device during the detection process in real time, or the monitoring device can obtain the detection data of each detection node in the entire detection process, thereby quickly locating the first scene corresponding to the failure in the audio detection process, and realizing the transparency of audio detection. The monitoring device is not limited by the detection environment, frequency, duration, etc., and obtains the detection results of the detection node and / or terminal device based on the detection data. Reduce the difficulty of subsequent problem reproduction and analysis, reduce manpower waste and energy consumption, and correspondingly improve the work efficiency of terminal device audio delivery.

[0149] Furthermore, it has the function of private ciphertext detection. First, the played audio files are processed by encryption, ultrasound, feature extraction and other algorithms to obtain private independent sound sources, so that the impact between the audio files is small, and the frequency is not the key to judging whether the device is silent or noisy, and the detection accuracy is higher. Secondly, the communication connection between the monitoring equipment and the terminal equipment is used, such as broadcasting and transmitting detection instructions to multiple terminal devices in real time based on WiFi, and the background automatically opens the log system to complete the automatic reporting of WiFi online data, thereby realizing the functions of automatic fault reporting, detection, and early warning.

[0150] Please also read Figure 8 , exemplarily introduces the hardware structure of the electronic device provided in the embodiment of the present application. Figure 8 As shown, the electronic device includes: a processor 91, a memory 92, a communication interface 93, and a bus 94. The electronic device can be the above-mentioned terminal device, and can also be the above-mentioned monitoring device.

[0151] The processor 91 may be connected to a memory 92. The memory 92 may be used to store the program code and data. Therefore, the memory 92 may be a storage unit inside the processor 91, or an external storage unit independent of the processor 91, or a component including a storage unit inside the processor 91 and an external storage unit independent of the processor 91. The processor 91 in the electronic device may be used to execute Figure 3 The audio detection method shown.

[0152] Optionally, the electronic device may further include a bus 94. The memory 92 and the communication interface 93 may be connected to the processor 91 via the bus 94. The bus 94 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus 94 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 The fact that only one line is used in the diagram does not mean that there is only one bus or only one type of bus.

[0153] It should be understood that in the embodiment of the present application, the processor 91 can adopt a central processing unit (CPU). The processor can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. Or the processor 91 adopts one or more integrated circuits to execute related programs to implement the technical solutions provided in the embodiment of the present application.

[0154] The memory 92 may include a read-only memory and a random access memory, and provides instructions and data to the processor 91. A portion of the processor 91 may also include a nonvolatile random access memory. For example, the processor 91 may also store information on the device type.

[0155] When the electronic device is running, the processor 91 executes the computer-executable instructions in the memory 92 to perform the operation steps of the above-mentioned audio detection method.

[0156] In an embodiment of the present application, the electronic device may further include a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. Among them, the hardware layer may include hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also called main memory). The operating system of the operating system layer may be any one or more computer operating systems that implement business processing through a process, such as Hongmeng operating system, Linux operating system, Unix operating system, Android operating system, iOS operating system, or Windows operating system. The application layer may include applications such as driving assistance software, navigation software, audio and video software, address book, word processing software, and instant messaging software.

[0157] The embodiments of the present application do not specifically limit the specific structure of the execution subject of the method provided in the embodiments of the present application, as long as it can communicate according to the method provided in the embodiments of the present application by running a program that records the code of the method provided in the embodiments of the present application. For example, the execution subject of the method provided in the embodiments of the present application may be a vehicle-mounted device, or a functional module in the vehicle-mounted device that can call and execute a program.

[0158] An embodiment of the present application provides a terminal device, including a processor, the processor is coupled to a memory, and the processor is used to execute a computer program or instruction stored in the memory so that the terminal implements the audio detection method as described above.

[0159] An embodiment of the present application provides a monitoring device, including a processor, which is coupled to a memory, and the processor is used to execute a computer program or instruction stored in the memory so that a cloud platform implements the audio detection method as described above.

[0160] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the audio detection method of the application program in the above-mentioned method embodiments.

[0161] An embodiment of the present application further provides a computer storage medium, including computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the audio detection method of the above embodiment.

[0162] Among them, the electronic device, computer storage medium, computer program product or chip system provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0163] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0164] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is 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 device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection 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.

[0165] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.

[0166] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0167] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.

[0168] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.

Claims

1. An audio detection method, It is characterized in that Applied to a monitoring server, the monitoring server is communicatively connected with a plurality of terminal devices, the method comprising: For each of the terminal devices, a detection sound source corresponding to the terminal device is configured for the terminal device according to a preset encryption method and a unique identifier of the terminal device, wherein a secret key of the detection sound source is related to the unique identifier of the terminal device; Transmitting the detected sound source to the corresponding terminal device; Outputting a detection instruction to the terminal device, so that the terminal device plays the detection sound source in response to the detection instruction; When the terminal device plays the detection sound source, the detection data reported by the terminal device in real time is obtained, wherein the detection data includes the detection data of each detection node on the terminal device, the detection node includes the module on the audio playback channel and the node between the modules when the terminal device plays the detection sound source, the module includes a software module and a hardware device, and the detection data is the result of processing the audio data on the detection node; When the detection data does not meet a preset condition, determining that the detection node corresponding to the detection data fails; The relevant information of the detection node where the failure occurs is output.

2. The audio detection method according to claim 1, It is characterized in that When the terminal device plays the detection sound source, acquiring the detection data of the detection node on the terminal device includes: When the terminal device plays the detection sound source, obtaining audio data on the detection node; Processing the audio data to obtain an audio energy value; The audio energy value is used as detection data of the detection node.

3. The audio detection method according to claim 2, It is characterized in that When the detection data does not meet a preset condition, determining that the detection node corresponding to the detection data fails includes: Obtaining a standard energy corresponding to the detection node; When the audio energy value of the detection node is not within the standard energy, it is determined that the detection node corresponding to the audio energy value fails.

4. An audio detection method, It is characterized in that Applied to a terminal device, the terminal device is communicatively connected to a monitoring server, and the method comprises: Obtaining a detection instruction output by the monitoring server; According to a preset encryption method and a unique identifier of the terminal device, a detection sound source corresponding to the terminal device is configured for the terminal device, wherein a secret key of the detection sound source is related to the unique identifier of the terminal device; Playing the detection sound source in response to the detection instruction; When playing the detection sound source, the detection data of the detection node is obtained in real time, wherein the detection data includes the detection data of each detection node on the terminal device, the detection node includes the module on the audio playback channel and the node between the modules when the terminal device plays the detection sound source, the module includes a software module and a hardware device, and the detection data is the result of processing the audio data on the detection node; The detection data is output to the monitoring server in real time, so that when the monitoring server determines that the corresponding detection node fails according to the detection data, the monitoring server outputs relevant information of the failed detection node.

5. The audio detection method according to claim 4, It is characterized in that The acquiring of detection data of the detection node comprises: Get the audio data output by the detection node; Processing the audio data to obtain an audio energy value; The audio energy value is used as detection data of the detection node.

6. The audio detection method according to claim 4, It is characterized in that The acquiring of detection data of the detection node comprises: Obtaining a standard energy corresponding to the detection node; Comparing the audio energy value of the detection node with the standard energy, and outputting a comparison result; The comparison result is used as the detection data of the detection node.

7. An audio detection system, It is characterized in that It includes a monitoring device and at least one terminal device, the monitoring device is communicatively connected to the terminal device, the monitoring device is used to execute the audio detection method as described in any one of claims 1 to 3, and the terminal device is used to execute the audio detection method as described in any one of claims 4 to 6.

8. An electronic device, It is characterized in that include: Processor and memory; The memory is used to store a computer program, wherein the computer program includes program instructions; The processor is used to call the computer program to execute the audio detection method as claimed in any one of claims 1 to 3 or 4 to 6.

9. A computer storage medium, It is characterized in that The method comprises computer instructions, which, when executed on an electronic device, enable the electronic device to execute the audio detection method as claimed in any one of claims 1 to 3 or 4 to 6.

10. A computer program product, It is characterized in that When the computer program product is run on a computer, the computer is enabled to execute the audio detection method according to any one of claims 1 to 3 or 4 to 6.

Citation Information

Patent Citations

  • Remote fault diagnosis method and device for vehicle-mounted audio equipment

    CN110572764A

  • Microphone anomaly detection method and device and storage medium

    CN110798790A

  • Audio detection method and audio test equipment

    CN115604641A

  • Automated detection and securing of a network audio data stream

    US20230161548A1

  • Probabilistic silent failure detection method and apparatus

    WO2020107261A1