Audio system detection method, device, equipment, vehicle, medium and procedure
By adjusting and collecting the audio output by the audio system, and combining the quality analysis of the first and third audios, the problem of low detection accuracy of the audio system in the prior art is solved, and a more efficient audio system status detection is achieved.
Patent Information
- Application Number
- CN202411633093.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-04-04
AI Technical Summary
In the prior art, the test method that relies on audio testing engineers to determine whether the audio system is operating normally has low accuracy and is greatly disturbed by the test environment.
Gain adjustment is performed by obtaining the target audio output from the audio system, the first audio is generated, and quality analysis is performed to determine the operating status of the audio software. Then, the third audio collected by the audio system on the target sound is obtained and quality analysis is performed to determine the operating status of the audio hardware.
It improves the accuracy of audio system detection, reduces dependence on the test environment, and can quickly locate whether the abnormal operation in the audio system is audio software or audio hardware, thereby facilitating optimization and adjustment.
Smart Images

Figure CN119767230A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of acoustics, more specifically to the field of computer acoustic processing, and in particular to a detection method, device, equipment, vehicle, medium and program for an audio system. Background Art
[0002] With the development of science and technology, electronic devices have become an indispensable and common item in people's daily life. For example, mobile phones, personal computers, (smart) cars, etc. Many electronic devices are equipped with audio systems. The audio system can output audio files as sounds through the audio output path, and can also collect sounds through the audio input path to obtain audio files. For example, people can listen to music and other audio played by electronic devices through the audio system, and can also record voice files into electronic devices through the audio system.
[0003] When the audio system operates abnormally, there may be discordant noise in the sound output by the audio system, such as POP noise. Therefore, in the manufacturing process of electronic equipment, it is necessary to test the audio system in the electronic equipment to determine whether the audio system is operating normally. When it is tested that there is noise in the sound output by the audio system, that is, when it is tested that the audio system operates abnormally, the audio system needs to be optimized.
[0004] In the related art, when testing an audio system, an audio test engineer usually listens to the sound output by the audio system and determines whether there is noise in the heard sound. If the audio test engineer determines that there is noise in the heard sound, the audio test engineer will then determine the cause of the noise in the sound output by the audio system. Summary of the invention
[0005] In the related art, the test method that relies on the hearing of audio test engineers to determine whether the audio system being tested is operating normally has a low accuracy rate. There are two main reasons for the low test accuracy: first, this test method is overly dependent on the test experience of audio test engineers. For inexperienced audio test engineers, it may be difficult to detect relatively subtle noises, resulting in failure to promptly detect abnormal audio systems; second, this test method is greatly affected by the test environment. For example, the power of the speaker of the audio system is small, resulting in a small volume of the output sound, or there are other noises in the test environment. It is difficult for audio test engineers to hear the sound output by the audio system, and thus they cannot detect the presence of noise in the sound output by the audio system, let alone timely detect abnormal audio systems. The purpose of the embodiments of the present application is to provide a detection method, device, equipment, medium, chip and computer program product for an audio system, which can solve the technical problem of low accuracy of the test method that relies on the hearing of audio test engineers to determine whether the audio system being tested is operating normally to a certain extent.
[0006] A first aspect of an embodiment of the present application provides a detection method for an audio system, the method comprising:
[0007] Acquire a first audio; the first audio is audio obtained by gain-adjusting a second audio, and the second audio is audio copied from an audio output path of the audio system during a process in which a target audio is output by the audio system;
[0008] Performing a quality analysis on the first audio, and determining a running state of the audio software in the audio system according to the obtained first analysis result;
[0009] When it is determined that the running state of the audio software is normal, obtaining a third audio; the third audio is the audio obtained by the audio system collecting the target sound, and the target sound is the sound generated by the audio system outputting the target audio;
[0010] The quality of the third audio is analyzed, and the operating state of the audio hardware in the audio system is determined according to the obtained second analysis result.
[0011] A second aspect of an embodiment of the present application provides a detection device for an audio system, the device comprising:
[0012] A first acquisition module is used to acquire a first audio; the first audio is audio obtained by performing gain adjustment on a second audio, and the second audio is audio copied from an audio output path of the audio system during a process in which a target audio is output by the audio system;
[0013] a first analysis module, configured to perform quality analysis on the first audio and determine a running state of the audio software in the audio system according to a first analysis result;
[0014] A second acquisition module is used to acquire a third audio when it is determined that the running state of the audio software is running normally; the third audio is the audio obtained by the audio system collecting the target sound, and the target sound is the sound generated by the audio system outputting the target audio;
[0015] The second analysis module is used to analyze the quality of the third audio and determine the operating state of the audio hardware in the audio system according to the obtained second analysis result.
[0016] A third aspect of an embodiment of the present application provides an electronic device, comprising: a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the audio system detection method described in the first aspect are implemented.
[0017] A fourth aspect of an embodiment of the present application provides a vehicle, comprising: a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the audio system detection method described in the first aspect are implemented.
[0018] A fifth aspect of an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the audio system detection method described in the first aspect are implemented.
[0019] A sixth aspect of an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the audio system detection method as described in the first aspect.
[0020] A seventh aspect of an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the audio system detection method as described in the first aspect.
[0021] In an embodiment of the present application, in the process of outputting the target audio as the target sound, the audio system recollects (i.e., copies) the output target audio from the audio output path to obtain the second audio; at the same time, the audio system collects the target sound output by itself to obtain the third audio. Gain adjustment is performed on the recollected second audio to obtain the first audio. The quality of the first audio is analyzed, and the operating state of the audio software in the audio system is determined based on the first analysis result obtained. When it is determined that the audio software is running normally, the third audio is quality analyzed again, and the operating state of the audio hardware in the audio system is determined based on the second analysis result obtained. When determining the operating state of the audio system (audio software and audio hardware), it is no longer necessary to rely on the subjective hearing judgment of the audio test engineer, but by analyzing the quality of the target audio output by the audio system and the sound of the target audio output by itself, the operating state of the audio system (audio software and audio hardware) is objectively determined according to the quality analysis result, so that the accuracy of the test is relatively higher. During the testing process, the audio software and audio hardware can be tested in a targeted manner, which can help test engineers quickly locate whether the abnormal operation in the audio system is the audio software or the audio hardware, and make adjustments to the abnormal part of the audio system, thereby improving the test efficiency of test engineers. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0023] Figure 2 is a flow chart of a detection method of an audio system provided in an embodiment of the present application;
[0024] Figure 3 A detection method for an audio system provided in an embodiment of the present application is Figure 1 Schematic diagram of the audio system of the electronic device 10 performing self-test as shown in FIG.
[0025] Figure 4 is a flowchart of some steps in a detection method of an audio system provided in an embodiment of the present application;
[0026] Figure 5 It is a time domain waveform of a noise-free audio.
[0027] Figure 6 It is a time domain waveform of a noisy audio.
[0028] Figure 7 It is a frequency domain spectrum diagram of a piece of audio with noise;
[0029] Figure 8 A detection method for an audio system provided in an embodiment of the present application is Figure 1 Schematic diagram of the audio system of the electronic device 10 performing self-test as shown in FIG.
[0030] Fig. 9 is a flow chart of a detection method of an audio system provided by another embodiment of the present application;
[0031] Fig.10 A detection method for an audio system provided in an embodiment of the present application is Figure 1 Schematic diagram of the audio system of the electronic device 10 performing self-test as shown in FIG.
[0032] Fig.11 is a flowchart of some steps in a detection method of an audio system provided in an embodiment of the present application;
[0033] Fig.12 yes Figure 1 The overall flow chart of the electronic device 10 shown in FIG. 1 when performing a self-check on its own audio system;
[0034] Fig.13 yes Fig.12 A flowchart of the audio software detection part in the detection method of the audio system shown;
[0035] Fig.14 yes Fig.12 A flowchart of the audio hardware detection part in the detection method of the audio system shown;
[0036] Fig.15 is a structural schematic diagram of a detection device for an audio system provided in an embodiment of the present application;
[0037] Fig.16 The present application also provides a schematic diagram of the structure of an electronic device;
[0038] Fig.17 Another structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0039] Fig.18 An embodiment of the present application also provides a structural schematic diagram of a vehicle. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0041] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0042] In the related art, when testing an audio system, an audio test engineer usually listens to the sound output by the audio system and determines whether there is noise in the sound heard. When the audio test engineer determines that there is noise in the sound heard, the audio test engineer determines the reason for the noise in the sound output by the audio system. This test method that relies on the hearing of the audio test engineer to determine whether the tested audio system is operating normally has a low accuracy rate, and the audio test engineer may not find some abnormal audio systems in time. If an audio system with abnormal operation is put on the market, it will reduce the user experience and cause customer complaints. For example, the host of the vehicle's central control platform is usually equipped with an audio system. If its abnormal operation is not discovered in time and installed and sold, it may cause noise when the driver and passengers use the audio system on the vehicle, which will bring a bad user experience to the driver and passengers. It is also difficult for the driver and passengers to debug and optimize the audio system in the host of the central control platform by themselves, causing certain troubles for the driver and passengers.
[0043] The detection method, device, equipment, vehicle, storage medium, chip and computer program product of an audio system provided by the embodiments of the present application can effectively solve the above technical problems. The detection method, device, equipment, vehicle, storage medium, chip and computer program product of an audio system provided by the embodiments of the present application are described below in conjunction with the accompanying drawings.
[0044] like Figure 1 As shown, Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may be a computer, a smart phone, a tablet computer, a wearable smart device, an in-vehicle infotainment system on a smart car (IVI SoC) or other devices, or may be a server of a distributed system, a cloud server, an intelligent cloud computing server with artificial intelligence technology or an intelligent cloud host or other servers. Please refer to Figure 1The electronic device 10 provided in the embodiment of the present application includes: a central processing unit (CPU) 11, a digital signal processor (DSP) 12, a memory 13, an audio input path 14, an audio output path 15 and a communication bus 16. The audio input path 14 and the audio output path 15 are schematic diagrams of the hardware part of the audio system in the electronic device 10.
[0045] At least one of the CPU 11 and the DSP 12 is used to run a corresponding program or instruction to implement the audio system detection method provided in the embodiment of the present application, that is, at least one of the CPU 11 and the DSP 12 is used to:
[0046] Acquire a first audio; the first audio is audio obtained by gain-adjusting a second audio, and the second audio is audio copied from an audio output path of the audio system during a process in which a target audio is output by the audio system;
[0047] Performing a quality analysis on the first audio, and determining a running state of the audio software in the audio system according to the obtained first analysis result;
[0048] When it is determined that the running state of the audio software is normal, obtaining a third audio; the third audio is the audio obtained by the audio system collecting the target sound, and the target sound is the sound generated by the audio system outputting the target audio;
[0049] The quality of the third audio is analyzed, and the operating state of the audio hardware in the audio system is determined according to the obtained second analysis result.
[0050] Regarding the CPU 11 and DSP 12 running corresponding programs or instructions to implement the audio system detection method and its technical effects provided in the embodiment of the present application, please refer to the relevant instructions in the following text and will not be repeated here.
[0051] Please continue to see Figure 1 , CPU11 and DSP12 may each include one or more processing units; optionally, CPU11 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, and the modem processor mainly processes communication signals, such as a baseband processor and a digital signal processor (i.e., DSP). It is understandable that the modem processor may not be integrated into CPU11.
[0052] The CPU 11, the DSP 12 and the memory 13 are all connected to the communication bus 16. The devices connected to the communication bus 16 can communicate with each other through the communication bus 16.
[0053] Please continue to see Figure 1 , the memory 13 can be used to store software programs and various data. The memory 13 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. For example, the program or instruction stored in the memory 13 may include a program or instruction corresponding to the detection method of the audio system provided in an embodiment of the present application, etc., and the stored program or instruction may be executed by the processor set in the CPU 11 and the DSP 12. The data stored in the memory 13 can be read by the CPU 11 and the DSP 12, and the CPU 11 and the DSP 12 may also store data in the memory 13. In addition, the memory 13 may include a volatile memory or a non-volatile memory, or the memory 13 may include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or a flash memory. The volatile memory can be a random access memory (Random Access Memory, RAM), a static random access memory (Static RAM, SRAM), a dynamic random access memory (Dynamic RAM, DRAM), a synchronous dynamic random access memory (Synchronous DRAM, SDRAM), a double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), an enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), a synchronous connection dynamic random access memory (Synch link DRAM, SLDRAM) and a direct memory bus random access memory (DirectRambus RAM, DRRAM). The memory 13 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0054] Please continue to see Figure 1, the audio input path 14 includes: a microphone (MIC) 142 and a MIC controller 141. The MIC 142 is connected to the MIC controller 141, and the MIC controller 141 is connected to the communication bus 16. The audio output path 15 includes: a speaker 152 and a speaker controller 151. The speaker 152 is connected to the speaker controller 151, and the speaker controller 151 is connected to the communication bus 16. For example, the MIC 142 collects the sound in the environment to obtain audio, and transmits the collected audio to the MIC controller 141, and the MIC controller 141 stores the received audio in the memory 13 through the communication bus 16 for the CPU 11 and / or the DSP 12 to read. For another example, the sound source software (exemplarily: music player, video player, radio, navigation software, etc.) running on the CPU 11 generates audio, and transmits the generated audio to the DSP 12 through the communication bus 16 or stores it in the memory 13, the DSP 12 transmits the audio generated by the sound source software to the speaker controller 151, and the speaker controller 151 controls the speaker 152 to output the corresponding sound based on the received audio.
[0055] It should be noted that, in practice, the audio input path 14 and the audio output path 15 usually contain other Figure 1 Physical components not shown in the figure. For example, the audio input path 14 usually has an analog-to-digital converter (ADC) to convert the audio of the analog signal collected by the MIC 142 into the audio of the digital signal, and transmit the audio of the digital signal to the MIC controller 141. For another example, the audio output path 15 usually has an integrated circuit built-in audio (Inter-IC Sound, I2S) bus and a power amplifier, etc. After receiving the audio, the speaker controller 151 transmits it to the power amplifier through the I2S bus. The power amplifier converts it into an analog signal that can drive the speaker 152 to output sound, and transmits the audio converted into an analog signal to the speaker 152, thereby driving the speaker 152 to output sound.
[0056] It should also be noted that the electronic device 10 may also include other input and output systems. For example, the electronic device 10 may also include a communication system (in Figure 1 The communication system can enable the electronic device 10 to send data externally or receive data internally to communicate with other electronic devices; for example, the electronic device 10 can also include an image input and output system (in Figure 1), an image input system (exemplarily, such as a camera) enables the electronic device 10 to capture images from the external environment, and an image output system (exemplarily, such as a display) enables the electronic device 10 to output images for display; and the electronic device 10 may also include input and output systems with other input and output functions.
[0057] Exemplarily, the electronic device 10 may also include, but is not limited to: a radio frequency unit, a network module, an input unit, a sensor, a display unit, a user input unit, an interface unit, etc. Those skilled in the art may understand that the electronic device 10 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the CPU 11 through a power management system, so as to implement functions such as charging management, discharging management, and power consumption management through the power management system. Figure 1 The structure of the electronic device 10 shown in the does not constitute a limitation on the electronic device provided in the embodiment of the present application. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange different components, which will not be repeated here. It should be understood that in the embodiment of the present application, the input unit may include a graphics processor (Graphics Processing Unit, GPU), which processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit includes a display panel, which can be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit includes a touch panel and at least one of other input devices. A touch panel is also called a touch screen. The touch panel may include two parts: a touch detection device and a touch controller. Other input devices may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0058] like Figure 2 As shown, Figure 2 Flowchart of a method for detecting an audio system provided by an embodiment of the present application. Figure 1 The electronic device shown in the figure is taken as an example to illustrate the detection method of the audio system provided in the embodiment of the present application. However, it should be stated that this is not a specific limitation of the detection method of the audio system provided in the embodiment of the present application. The detection method of the audio system provided in the embodiment of the present application can also be applied to Fig.15 The detection device of the audio system shown, Fig.16 and 17 The electronic equipment shown, Fig.18 For details, please refer to the relevant descriptions in the embodiments of this application. Figure 1 and Figure 2At least one of the CPU 11 and the DSP 12 of the electronic device 10 executes a program or instruction corresponding to the audio system detection method to implement the following steps S21 to S22 to perform a self-test on the audio system of the electronic device 10:
[0059] S21, obtaining a third audio;
[0060] S22: Analyze the quality of the third audio, and determine the operating state of the audio system according to the obtained second analysis result.
[0061] The third audio is the audio obtained by the audio system collecting the target sound, and the target sound is the sound generated by the audio system outputting the target audio.
[0062] like Figure 3 As shown, Figure 3 A detection method for an audio system provided in an embodiment of the present application is Figure 1 The schematic diagram of the self-test of the audio system of the electronic device 10 shown in FIG. Figure 3 , when the electronic device 10 performs a self-test on its own audio system (including both the hardware part of the audio system and the software part of the audio system), in some optional implementations, the target audio Audio-0 is the audio generated in real time by the selected sound source software on the electronic device 10 (such as at least one of the audio player, video player, radio, etc. installed on the electronic device 10) when the audio system on the electronic device 10 is tested. Optionally, the sound source software can generate the target audio Audio-0 in response to receiving the start test command Start_Test instruction issued by the test software (corresponding to the detection method of the audio system provided in the embodiment of the present application). Of course, the sound source software can also start generating the target audio Audio-0 in response to the playback operation of the test engineer. In the embodiment of the present application, no specific restrictions are made on the start conditions for the sound source software to generate the target audio Audio-0.
[0063] Please continue to see Figure 3 After the sound source software running on CPU11 generates the target audio Audio-0, CPU11 transmits the target audio Audio-0 to DSP12. DSP12 transmits the target audio Audio-0 to speaker 152 to output the target sound Sound (at Figure 3 The other components except the speaker 152 on the audio output path 15 and the other components except the MIC 142 on the audio input path 14 are omitted in order to illustrate the flow direction of the audio data, and should not be understood as limiting the structure of the electronic device provided in the embodiment of the present application. For the specific working principle of the audio output path 15 and the audio output path 14, please refer to the above related Figure 1 MIC142 collects the target sound Sound output by the speaker 152 to obtain the third audio Audio-1. The collected third audio Audio-1 is transmitted to DSP12. After acquiring the third audio Audio-1, DSP12 performs quality analysis to obtain a second analysis result. When DSP12 determines based on the second analysis result that there is no noise in the third audio Audio-1, DSP12 determines that the operating status of the audio system of the electronic device 10 is normal. When DSP12 determines based on the second analysis result that there is noise in the third audio Audio-1, DSP12 determines that the operating status of the audio system of the electronic device 10 is abnormal.
[0064] Please continue to see Figure 3 In some optional implementations, when the DSP12 determines that the operating state of the audio system is abnormal, it outputs prompt information for indicating that the audio system is abnormal. For example, the DSP12 notifies the CPU11 of the prompt information for indicating that the audio system is abnormal, and the CPU11 passes it to the test software to output prompts in the form of sound and light (for example, voice broadcast "audio system is abnormal", and the text prompt "audio system is abnormal" is output on the screen). In this way, the audio test engineer can promptly know that the operating state of the audio system is abnormal, and can then make optimization adjustments in a timely manner.
[0065] Of course, in some other embodiments, MIC142 may also transmit the collected third audio Audio-1 to CPU11, and after CPU11 obtains the third audio Audio-1, perform a quality analysis on it to obtain a second analysis result. When CPU11 determines based on the second analysis result that there is no noise in the third audio Audio-1, CPU11 determines that the operating state of the audio system of the electronic device 10 is normal. When CPU11 determines based on the second analysis result that there is noise in the third audio Audio-1, CPU11 determines that the operating state of the audio system of the electronic device 10 is abnormal.
[0066] It should be added that the electronic device 10 is preferably in a relatively quiet environment to prevent the third audio Audio-1 collected by MIC142 from containing noise output by other sound sources in the environment, which may interfere with the detection of the audio system and affect the accuracy of the detection. If the environment in which the electronic device 10 is located contains sound output by other sound sources, it is necessary to perform noise reduction processing on the third audio Audio-1 collected by MIC142 to eliminate the noise output by other sound sources contained in the third audio Audio-1. For the methods of noise reduction, please refer to the relevant technology of computer acoustic audio signal processing, which will not be repeated here.
[0067] exist Figure 3 In the illustrated embodiment, the target audio is generated by the sound source software. In some optional embodiments, the target audio is an audio pre-stored in the memory 13. When the audio system is self-checked, the CPU 11 will read the target audio from the memory 13 when the sound source software is run, and output it to the outside through the DSP 12 and the audio output path 15. Similarly, the MIC 142 will collect the output sound to obtain the third audio. The subsequent operation state of the audio system of the electronic device 10 based on the third audio is the same as the aforementioned embodiment, and will not be repeated here.
[0068] exist Figure 3 In the illustrated embodiment, the target audio is generated by the sound source software, but the target audio generated by the sound source software itself may also contain noise, which may interfere with the detection of the audio system. Therefore, optionally, the target audio pre-stored in the memory 13 is a pre-selected (or produced) standard audio for audio detection, and its audio quality meets the detection standard (that is, the energy proportion of the first frequency band in the standard audio is less than the first threshold and there is no signal strength difference between adjacent sampling points greater than or equal to the second threshold), that is, the standard audio does not contain noise. Therefore, by detecting the audio system of the electronic device 10 based on the standard audio, it is possible to eliminate the interference of the substandard audio generated by the sound source software on the detection of the audio system.
[0069] In some optional implementations, the target audio is provided by other electronic devices that are communicatively connected to the electronic device 10. For example, the other electronic device establishes a Bluetooth connection with the electronic device 10, and the electronic device 10 plays an audio file on the electronic device that is communicatively connected to the other electronic device to output the target sound. Optionally, the audio file may be a standard audio file pre-stored in an electronic device that is communicatively connected to the electronic device 10, or may be a non-standard audio file generated in real time by the electronic device that is communicatively connected to the electronic device 10 or a non-standard audio file pre-stored.
[0070] In an embodiment of the present application, when the audio system outputs the target audio as the target sound, the audio system collects the target sound output by itself to obtain a third audio. The quality of the third audio is analyzed, and the operating state of the audio system is determined based on the second analysis result obtained. When determining the operating state of the audio system, it is no longer necessary to rely on the subjective hearing judgment of the audio test engineer, but the quality of the third audio obtained by collecting the sound output by the audio system itself is analyzed, and the operating state of the audio system is objectively determined based on the quality analysis result, so that the accuracy of the test is relatively higher. Moreover, other detection equipment is no longer needed to realize the self-inspection of the audio system of the electronic device, which can relatively save material and financial resources.
[0071] In some other embodiments, at least one of the CPU 11 and the DSP 12 of the electronic device 10 executes a program or instruction corresponding to the detection method of the audio system to implement the above steps S21 to S22 to detect the audio system of other (electronic devices) (i.e., other detection). Exemplarily, while the electronic device under test outputs the target audio (the target audio can be either standard audio or non-standard audio, and the non-standard audio can be generated in real time by the sound source software on the electronic device under test or pre-stored in the electronic device under test) through the audio output path to generate the target sound, the audio input path in the electronic device under test collects the target sound to obtain the third audio. The electronic device under test transmits the third audio to the main electronic device 10 through the communication system or the interface unit. After the main electronic device 10 obtains the third audio, it performs a quality analysis on it and determines the operating state of the audio system of the electronic device under test according to the obtained second analysis result. The main electronic device 10 detects the operating state of the audio system of the electronic device under test based on the third audio, which is the same as the above-mentioned embodiment. Please refer to the above-mentioned embodiment for details, and will not be repeated here.
[0072] It should be particularly noted that, in the following text, the self-test of the electronic device 10 on its own internal audio system will be mainly used as an example for explanation. The principle of the electronic device 10 detecting other (electronic device) audio systems is similar to the principle of self-test. Those skilled in the art know that the difference between self-test and other-test lies in the source of the third audio. It is only necessary to transmit the third audio recorded by the audio system under test to the main test electronic device 10 to detect it. Therefore, the detection of other (electronic device) audio systems by the electronic device 10 will not be explained in the following text. Based on the description of self-test, those skilled in the art can understand how to implement other-test.
[0073] like Figure 4 As shown, Figure 4 is a flowchart of some steps in the audio system detection method provided in the embodiment of the present application. Figure 4 In some optional implementations, the above step S22 includes the following steps S221 to S222:
[0074] S221, performing quality analysis on the third audio according to at least one of a preset third analysis dimension, a preset fourth analysis dimension, and a preset fifth analysis dimension to obtain a second analysis result;
[0075] S222: Determine the operating status of the audio hardware in the audio system according to the second analysis result.
[0076] The third analysis dimension is to analyze the energy proportion of each frequency band in the third audio, the fourth analysis dimension is to analyze the overlap between the third audio and the second audio in the frequency domain, and the fifth analysis dimension is to analyze the similarity between the third audio and the second audio in the time domain; the second audio is the audio copied from the audio output path of the audio system during the process of the target audio being output by the audio system.
[0077] The following is still combined Figure 1 The electronic device 10 shown explains steps S221 to S222.
[0078] Based on the Nyquist sampling theorem, it can be known that the third audio sampled by MIC142 is obtained by collecting the intensity of the sound signal of the target sound at each periodic time point according to the predetermined sampling frequency, that is, the obtained third audio is a waveform distribution in the time domain (i.e., a time domain waveform diagram, whose horizontal axis is usually the sampling time point and the vertical axis is the sampling signal intensity). For example, Figure 5 As shown, Figure 5 This is a time domain waveform of a noise-free audio. Figure 5 The entire waveform transition is relatively natural, and there is no large turning waveform segment (please compare Figure 6 ).like Figure 6 As shown, Figure 6 This is a time domain waveform of a noisy audio. Figure 6 The waveform transition in the box is unnatural and has a large turning point, and a POP sound may be generated at the mutation point. By performing a Fast Fourier Transformation (FFT) on the waveform distribution in the time domain, the corresponding spectrum distribution in the frequency domain can be obtained. Therefore, by performing a Fast Fourier Transformation (FFT) on the third audio, the spectrum distribution in the frequency domain corresponding to the third audio can be obtained (i.e., a frequency domain spectrum diagram, whose horizontal axis is usually the various frequencies and the vertical axis is the sampled signal strength). Figure 7 As shown, Figure 7 This is a frequency domain spectrum diagram of a noisy audio. Figure 7There is an abnormally shaped spectrum in the box, and this low-frequency spectrum is likely to produce POP sound when it is output. When the quality analysis of the third audio is performed based on the third analysis dimension, the spectrum distribution of the third audio in the frequency domain can be analyzed, and the energy proportion of each frequency band in the third audio can be determined, that is, the second analysis result obtained contains the energy proportion of each frequency band. The so-called energy proportion of each frequency band refers to the distribution of the energy of the signal at different frequencies, which can be analyzed by power spectral density (PSD). The PSD is a function that describes the distribution of random signal power with frequency. For more details, please refer to the relevant technology of computer acoustic audio signal processing, which will not be repeated here.
[0079] Please continue to see Figure 3 After obtaining the third audio Audio-1, DSP12 (or CPU11) can analyze the quality of the third audio Audio-1 based on the third analysis dimension, that is, determine the energy proportion of each frequency band of the third audio Audio-1, and determine the operating status of the audio hardware in the audio system of the electronic device 10 according to the second analysis result obtained.
[0080] like Figure 8 As shown, Figure 8 A detection method for an audio system provided in an embodiment of the present application is Figure 1 Schematic diagram of the self-test of the audio system of the electronic device 10 shown in FIG. Figure 3 and Figure 8 , Figure 8 The embodiment shown is relative to Figure 3 The difference between the illustrated implementations is that, when DSP12 (or CPU11) performs quality analysis on the third audio Audio-1 after acquiring it, it can not only directly perform quality analysis on the third audio Audio-1 (i.e., performing quality analysis on the third audio Audio-1 based on the third analysis dimension as described above), but can also perform quality analysis on the third audio Audio-1 with reference to the second audio Audio-3.
[0081] See also Figure 1As described above, when the target audio is being output, the target audio first enters the DSP12, and then is transmitted to the speaker controller 151 by the DSP12. The speaker controller 151 then transmits the target audio to the speaker 152, and the speaker 152 outputs the target audio as the target sound. Therefore, when the target audio is being output, the DSP12 and the (narrow sense) audio output path 15 constitute an audio output path in a broad sense. When the target audio Audio is being output, the output target audio Audio-0 can be collected from the (broad sense) audio output path to obtain the second audio Audio-3, which is stored in the memory 13. Optionally, the second audio Audio-3 may be obtained by synchronously copying the target audio Audio-0 when the DSP12 transmits the target audio Audio-0 to the speaker controller 151. The second audio Audio-3 may also be obtained by synchronously copying the target audio Audio when the speaker controller 151 transmits the target audio Audio to the speaker 152, and then transmitted back to the DSP12 and stored in the memory 13. The second audio Audio-3 may also be obtained by collecting the audio from the path between the speaker controller 151 and the speaker 152 based on the Nyquist sampling theorem (such as Figure 8 The obtained second audio Audio-3 is also a waveform distribution in the time domain, and an FFT operation can be performed on it to obtain the spectrum distribution corresponding to the second audio Audio-3 in the frequency domain.
[0082] Please continue to see Figure 8 After obtaining both the third audio Audio-1 and the second audio Audio-3, DSP12 (or CPU11) can not only perform quality analysis on the third audio Audio-1 based on the third analysis dimension, but also perform quality analysis on the third audio Audio-1 based on the fourth analysis dimension or the fifth analysis dimension, that is, the third audio Audio-1 can also be quality analyzed with reference to the second audio Audio-3. When quality analysis is performed on the third audio Audio-1 with reference to the second audio Audio-3, the frequency spectrum overlap between the third audio Audio-1 and the second audio Audio-3 in the frequency domain can be analyzed, that is, the quality analysis of the third audio Audio-1 is performed with the fourth analysis dimension, and the waveform similarity between the third audio Audio-1 and the second audio Audio-3 in the time domain can also be analyzed, that is, the quality analysis of the third audio Audio-1 is performed with the fifth analysis dimension. For more details on the analysis of frequency spectrum overlap and waveform similarity, please refer to the relevant technology of computer acoustic audio signal processing, which will not be elaborated here.
[0083] In some optional implementations, the third audio quality may be analyzed only according to a third analysis dimension. When the third audio is analyzed only according to the third analysis dimension and the second analysis result obtained satisfies a preset third condition, it is determined that the operating state of the audio system is abnormal; correspondingly, when the third audio is analyzed only according to the third analysis dimension and the second analysis result obtained does not satisfy the third condition, it is determined that the operating state of the audio system is normal. The third condition is that the energy proportion of the preset second frequency band in the third audio is greater than or equal to a preset third threshold.
[0084] Optionally, the second frequency band is a low frequency band in the third audio. Exemplarily, the second frequency band may be 20 Hz-250 Hz.
[0085] POP sound exists in all frequency bands of audio, including low, medium and high frequencies, and each frequency band can be detected. However, since POP sound is generally manifested as a sudden sound or explosion, it is not evenly distributed in the spectrum. The low frequency range of 20Hz to 250Hz is mainly responsible for low-frequency response and heavy bass effect, and the sound details are relatively low, which is easier to detect. Since the human ear is not sensitive to low frequencies, when the POP sound can be heard by the human ear, it means that the energy ratio is high. Between the medium and high frequencies of 250Hz to 20kHz (kilohertz), POP sound is mixed in normal audio, involving more complex sound details, and it is difficult to judge whether it is normal or abnormal. Therefore, it is usually chosen to detect whether there is POP sound in 20Hz to 250Hz. Therefore, the energy ratio of the 20Hz to 250Hz frequency band in the audio is detected.
[0086] Optionally, the third threshold can be dynamically specified and selected according to different judgment methods. For example, the power spectrum density is used to calculate the energy ratio, and the threshold can be set to 65%. Of course, the threshold needs to be adjusted and optimized according to the specific situation, such as spectrum characteristics, signal type, etc., rather than simply using a fixed value. This is only an example.
[0087] In the range of 20Hz-20kHz, by processing the audio signal in frames, that is, dividing it into continuous time windows, the step size is pre-set to s (the value of s depends on the specific signal characteristics, analysis requirements, etc. The smaller the value, the more conducive it is to distinguish subtle changes in the spectrum, and the larger the value, the more conducive it is to judge the speed of signal changes. In this example, the typical range is between 1 and 50.), it can be divided into [20~20+s, 20+s~20+2s, ..., 20000-s, 20000], and Fourier transform is applied to each window to obtain the spectrum information of each window, and the power spectrum density is obtained by squaring the amplitude of the spectrum. The power spectrum density of all windows is summed to obtain the sum of the overall power spectrum density. At the same time, for the specified range, here is 20Hz~250Hz, the sum is taken within this range to obtain the corresponding sum of the power spectrum density. By calculating the ratio of the sum of the two power spectral densities, we can get the proportion of the signal energy in a specific frequency range to the signal energy in the overall frequency range. When the energy ratio in several windows before the continuous windows is obviously greater than or equal to the specified threshold, which is 65% here, it means that there is a sharp change in energy, the proportion of low-frequency energy is too high, and there may be abnormal noise.
[0088] When the third audio quality is analyzed only according to the third analysis dimension, the second analysis result obtained only contains the energy proportion of the audio in each frequency band in the third audio. When the energy proportion of the second frequency band is greater than or equal to the preset third threshold, it is determined that the third audio contains noise, that is, it is determined that the operating state of the audio hardware in the audio system is abnormal. Correspondingly, when the energy proportion of the second frequency band is less than the preset third threshold, it is determined that the third audio does not contain noise, that is, it is determined that the operating state of the audio hardware in the audio system is normal.
[0089] In some optional implementations, the third audio quality may be analyzed only according to a fourth analysis dimension. When the third audio is analyzed only according to the fourth analysis dimension and the second analysis result obtained satisfies a preset fourth condition, it is determined that the operating state of the audio hardware in the audio system is abnormal. Correspondingly, when the third audio is analyzed only according to the fourth analysis dimension and the second analysis result obtained does not satisfy the fourth condition, it is determined that the operating state of the audio hardware in the audio system is normal. The fourth condition is that the overlap between the third audio and the second audio in the frequency domain is less than a preset fourth threshold.
[0090] Optionally, the fourth threshold value can be dynamically specified and selected according to different judgment methods. For example, using the cosine similarity method, the threshold value can be set to 0.8.
[0091] The third audio and the second audio are processed by framing, and each window is subjected to FFT transformation. Then, the power spectrum density of the two audios is obtained and converted into a vector as a feature value, that is, the third audio is represented by A = [a1, a2, ..., an], and the second audio is represented by B = [b1, b2, ..., bn], where ai and bi are the power values of audio A and B on the i-th frequency component. Then, the cosine similarity between the two vectors is calculated to measure their similarity. The value range is between -1 and 1. The closer the value is to 1, the higher the similarity. If the calculated cosine similarity is greater than or equal to the threshold of 0.8, the two audio clips are judged to be similar; otherwise, they are judged to be dissimilar.
[0092] When the third audio quality is analyzed only according to the fourth analysis dimension, the second analysis result obtained only contains the overlap between the third audio and the second audio in the frequency domain. When the overlap between the third audio and the second audio in the frequency domain is less than the preset fourth threshold, it is determined that the third audio contains noise, that is, it is determined that the operating state of the audio hardware in the audio system is abnormal. Correspondingly, when the overlap between the third audio and the second audio in the frequency domain is greater than or equal to the preset fourth threshold, it is determined that the third audio does not contain noise, that is, it is determined that the operating state of the audio hardware in the audio system is normal.
[0093] In some optional implementations, the third audio quality may be analyzed only according to the fifth analysis dimension. When the third audio is analyzed only according to the fifth analysis dimension and the second analysis result obtained satisfies the preset fifth condition, it is determined that the operating state of the audio hardware in the audio system is abnormal operation. Correspondingly, when the third audio is analyzed only according to the fifth analysis dimension and the second analysis result obtained does not satisfy the fifth condition, it is determined that the operating state of the audio hardware in the audio system is normal operation. The fifth condition is that the similarity between the third audio and the second audio in the time domain is less than a preset fifth threshold.
[0094] Optionally, the fifth threshold value can be dynamically specified and selected according to different judgment methods. For example, a correlation method is used to measure the similarity of two waveform sequences by calculating the Pearson correlation coefficient of the two waveform sequences, and the threshold value can be set to 0.8.
[0095] The third audio is represented as A=[a1, a2, ..., an], and the second audio is represented as B=[b1, b2, ..., bn]. The means of the waveform vectors of audio A and audio B are calculated respectively, and then the covariance and standard deviation of the waveform vectors of audio A and audio B are calculated. The covariance and standard deviation are used to calculate the Pearson correlation coefficient. The coefficient ranges from -1 to 1. The closer the value is to 1, the more correlated the two waveform vectors are. The closer the value is to -1, the stronger the negative correlation between the waveform vectors is. The value of 0 indicates no correlation. When the coefficient value is greater than or equal to 0.8, the audio is considered to be similar.
[0096] When the third audio quality is analyzed only according to the fifth analysis dimension, the second analysis result obtained only contains the similarity between the third audio and the second audio in the time domain. When the similarity between the third audio and the second audio in the time domain is less than the preset fifth threshold, it is determined that the third audio contains noise, that is, it is determined that the operating state of the audio hardware in the audio system is abnormal. Correspondingly, when the similarity between the third audio and the second audio in the time domain is greater than or equal to the preset fifth threshold, it is determined that the third audio does not contain noise, that is, it is determined that the operating state of the audio hardware in the audio system is normal.
[0097] In some optional implementations, the third audio quality may be analyzed only according to the third analysis dimension and the fourth analysis dimension. When the third audio is analyzed only according to the third analysis dimension and the fourth analysis dimension and the second analysis result obtained satisfies at least one of the preset third condition and the preset fourth condition, it is determined that the operating state of the audio hardware in the audio system is abnormal operation. Accordingly, when the third audio is analyzed only according to the third analysis dimension and the fourth analysis dimension and the second analysis result obtained satisfies neither the third condition nor the fourth condition, it is determined that the operating state of the audio hardware in the audio system is normal operation.
[0098] When the third audio quality is analyzed only according to the third analysis dimension and the fourth analysis dimension, the obtained second analysis result contains the energy proportion of each frequency band in the third audio and the overlap degree of the third audio and the second audio in the frequency domain. When the energy proportion of the second frequency band is greater than or equal to the third threshold and / or the overlap degree of the third audio and the second audio in the frequency domain is less than the preset fourth threshold, it is determined that the third audio contains noise, that is, it is determined that the operating state of the audio hardware in the audio system is abnormal. Correspondingly, when the energy proportion of the second frequency band is less than the third threshold and the overlap degree of the third audio and the second audio in the frequency domain is greater than or equal to the preset fourth threshold, it is determined that the third audio does not contain noise, that is, it is determined that the operating state of the audio hardware in the audio system is normal.
[0099] In some optional implementations, the third audio quality may be analyzed only according to the third analysis dimension and the fifth analysis dimension. When the third audio is analyzed only according to the third analysis dimension and the fifth analysis dimension and the second analysis result obtained satisfies at least one of the preset third condition and the preset fifth condition, it is determined that the operating state of the audio hardware in the audio system is abnormal operation. Accordingly, when the third audio is analyzed only according to the third analysis dimension and the fifth analysis dimension and the second analysis result obtained satisfies neither the third condition nor the fifth condition, it is determined that the operating state of the audio hardware in the audio system is normal operation.
[0100] When the third audio quality is analyzed only according to the third analysis dimension and the fifth analysis dimension, the second analysis result obtained contains the energy proportion of each frequency band in the third audio and the similarity between the third audio and the second audio in the time domain. When the energy proportion of the second frequency band is greater than or equal to the third threshold and / or the similarity between the third audio and the second audio in the time domain is less than the preset fifth threshold, it is determined that the third audio contains noise, that is, it is determined that the operating state of the audio hardware in the audio system is abnormal. Correspondingly, when the energy proportion of the second frequency band is less than the third threshold and the similarity between the third audio and the second audio in the time domain is greater than or equal to the preset fifth threshold, it is determined that the third audio does not contain noise, that is, it is determined that the operating state of the audio hardware in the audio system is normal.
[0101] In some optional implementations, the third audio quality may be analyzed only according to the fourth analysis dimension and the fifth analysis dimension. When the third audio is analyzed only according to the fourth analysis dimension and the fifth analysis dimension and the second analysis result obtained satisfies at least one of the preset fourth condition and the preset fifth condition, it is determined that the operating state of the audio hardware in the audio system is abnormal operation. Accordingly, when the third audio is analyzed only according to the fourth analysis dimension and the fifth analysis dimension and the second analysis result obtained satisfies neither the fourth condition nor the fifth condition, it is determined that the operating state of the audio hardware in the audio system is normal operation.
[0102] When the third audio quality is analyzed only according to the fourth analysis dimension and the fifth analysis dimension, the obtained second analysis result contains the overlap of the third audio and the second audio in the frequency domain and the similarity of the third audio and the second audio in the time domain. When the overlap of the third audio and the second audio in the frequency domain is less than the fourth threshold and / or the similarity of the third audio and the second audio in the time domain is less than the preset fifth threshold, it is determined that the third audio contains noise, that is, it is determined that the operating state of the audio hardware in the audio system is abnormal. Correspondingly, when the overlap of the third audio and the second audio in the frequency domain is greater than or equal to the fourth threshold and the similarity of the third audio and the second audio in the time domain is greater than or equal to the preset fifth threshold, it is determined that the third audio does not contain noise, that is, it is determined that the operating state of the audio hardware in the audio system is normal.
[0103] In some optional implementations, the third audio quality is analyzed according to a third analysis dimension, a fourth analysis dimension, and a fifth analysis dimension. When the third audio is analyzed according to the third analysis dimension, the fourth analysis dimension, and the fifth analysis dimension and the second analysis result obtained satisfies at least one of the preset third condition, the preset fourth condition, and the preset fifth condition, it is determined that the operating state of the audio hardware in the audio system is abnormal operation. Accordingly, when the third audio is analyzed according to the third analysis dimension, the fourth analysis dimension, and the fifth analysis dimension and the second analysis result obtained does not satisfy all of the third condition, the fourth condition, and the fifth condition, it is determined that the operating state of the audio hardware in the audio system is normal operation.
[0104] When the third audio quality is analyzed according to the third analysis dimension, the fourth analysis dimension and the fifth analysis dimension, the obtained second analysis result includes the energy proportion of each frequency band in the third audio, the overlap of the third audio and the second audio in the frequency domain and the similarity of the third audio and the second audio in the time domain. When the energy proportion of the second frequency band is greater than or equal to the third threshold, the overlap of the third audio and the second audio in the frequency domain is less than the fourth threshold and / or the similarity of the third audio and the second audio in the time domain is less than the preset fifth threshold, it is determined that the third audio contains noise, that is, it is determined that the operating state of the audio hardware in the audio system is abnormal. Correspondingly, when the energy proportion of the second frequency band is less than the third threshold, the overlap of the third audio and the second audio in the frequency domain is greater than or equal to the fourth threshold and the similarity of the third audio and the second audio in the time domain is greater than or equal to the preset fifth threshold, it is determined that the third audio does not contain noise, that is, it is determined that the operating state of the audio hardware in the audio system is normal.
[0105] like Fig. 9 As shown, Fig. 9FIG. 1 is a flow chart of a detection method of an audio system provided by another embodiment of the present application. Fig. 9 Based on any of the above implementations, before step S21, the following steps S91 to S92 are also included:
[0106] S91, obtaining a first audio; the first audio is an audio obtained by performing gain adjustment on the second audio;
[0107] S92, performing quality analysis on the first audio, and determining the running state of the audio software in the audio system according to the obtained first analysis result; if it is determined that the running state of the audio software is running normally, executing step S21;
[0108] S21, obtaining a third audio;
[0109] S22, analyzing the quality of the third audio, and determining the operating state of the audio hardware in the audio system according to the obtained second analysis result.
[0110] Based on the above description, it can be seen that Figures 2 to 8 In the illustrated embodiment, when the electronic device 10 performs a self-check on its own audio system, it generally checks the hardware part of the audio system. Those skilled in the art know that the target audio is transmitted from the sound source software to the operating system of the electronic device 10 (the operating system itself is also software), and then the operating system controls the CPU 11 to transmit the target audio to the DSP 12. This process involves multiple audio-related software or program modules (such as audio decoding software, sound card driver software, etc.). These related software or program modules (including the sound source software) are also part of the audio system and may also run abnormally, resulting in abnormalities in the target audio transmitted to the DSP 12. If the target audio output from the audio output path 15 itself contains noise, then it is obvious that no matter how it is detected, the third audio collected by the MIC 142 must also contain noise, which will result in a low accuracy rate in the detection of the audio system.
[0111] Therefore, in this embodiment, the running state of the audio software in the audio system is first determined. When it is determined that the running state of the audio software is normal, that is, when it is determined that the target audio transmitted to the DSP 12 does not contain noise, the audio system is tested again, which can eliminate the interference of abnormal operation of the audio software, so that the test result can be more accurate. Figure 1 The electronic device 10 shown in the figure performs a self-test as an example. Fig. 9 The detection method of the audio system shown is described below.
[0112] like Fig.10 As shown, Fig.10A detection method for an audio system provided in an embodiment of the present application is Figure 1 FIG. 1 is a schematic diagram of a self-test of an audio system of an electronic device 10 shown in FIG. Fig.10 and Figure 8 It can be seen that Fig.10 The embodiment shown is relative to Figure 8 The difference between the embodiments shown is that after acquiring the second audio Audio-3, DSP12 (or CPU11) first adjusts the gain thereof to obtain the first audio Audio-2, and then analyzes the quality of the first audio Audio-2, and determines the running state of the audio software in the audio system according to the first analysis result. When the first analysis result shows that the first audio Audio-2 does not contain noise, it indicates that the running state of the audio software in the audio system is normal; when the first analysis result shows that the first audio Audio-2 contains noise, it indicates that the running state of the audio software in the audio system is abnormal. When it is determined that the audio software in the audio system is running normally, the third audio Audio-1 is read from the memory 13 (MIC142 stores the third audio Audio-1 in the memory 13 for the processor to read after collecting it) to DSP12 (or CPU11), and the quality of the third audio Audio-1 is analyzed, and the running state of the audio system is determined according to the second analysis result.
[0113] In some optional embodiments, when the gain of the second audio Audio-3 is adjusted, the signal strength of the second audio Audio-3 is adjusted to a preset decibel number. The decibel number (dB value) is obtained by calculating the logarithmic ratio of two numerical values, and its maximum range is 0. For example, the preset decibel number is 0 decibel (dB). When the audio is played, the application will set the volume value and then pass it to the system. When the value is not the preset 0dB, the system will modify this parameter to 0dB and keep the maximum value on the software, which means no longer attenuating the output for the hardware. Those skilled in the art can flexibly set the preset decibel number according to the detection accuracy requirements. The volume of the audio is defined as 0dB as the maximum value that can be represented, and the volume value of the audio is a relative value. In the embodiment of the present application, 0dB refers to the default value when the audio itself is not adjusted in volume.
[0114] When multimedia files are played and output, the corresponding volume is set. Adjusting the gain to 0dB is equivalent to returning the set volume parameter to the default value. Adjusting the gain to 0dB is equivalent to adjusting the set volume parameter to the preset volume value. In this way, the first audio Audio-2 can more prominently reflect whether there is a possibility of outputting POP sound, which is conducive to quality analysis of the first audio Audio-2.
[0115] Obviously, when it is determined that the audio software in the audio system is running normally, determining the running state of the audio system according to the second analysis result is essentially determining the running state of the audio hardware in the audio system. Therefore, the above step S22 includes: performing quality analysis on the third audio, and determining the running state of the audio hardware in the audio system according to the obtained second analysis result.
[0116] Please continue to see Fig.10 , when DSP12 (or CPU11) determines based on the second analysis result that there is no noise in the third audio Audio-1, DSP12 (or CPU11) determines that the operating state of the audio hardware of the audio system of the electronic device 10 is operating normally. When DSP12 (or CPU11) determines based on the second analysis result that there is noise in the third audio Audio-1, DSP12 (or CPU11) determines that the operating state of the audio hardware of the audio system of the electronic device 10 is operating abnormally.
[0117] In an embodiment of the present application, the audio system collects the output target audio to obtain a second audio in the process of outputting the target audio as the target sound; at the same time, the audio system collects the target sound output by itself to obtain a third audio. After the second audio is gain-adjusted, a quality analysis is performed to determine the operating state of the audio software of the audio system. When it is determined that the audio software of the audio system is running normally, the quality of the third audio is analyzed to determine the operating state of the audio hardware of the audio system. When determining the operating state of the audio system, it is no longer necessary to rely on the subjective hearing judgment of the audio test engineer, but the quality of the third audio obtained by collecting the sound output by the audio system itself is analyzed, and the operating state of the audio system is objectively determined according to the quality analysis result, so that the accuracy of the test is relatively higher. Moreover, in the detection, it can be accurately determined whether the audio software or audio hardware in the audio system is running abnormally, which can facilitate engineers to accurately locate whether the abnormality is software or hardware in the audio system, thereby optimizing the software or hardware with abnormal operation of the audio system and improving the work efficiency of audio test engineers.
[0118] like Fig.11 As shown, Fig.11 It is a flowchart of some steps in the audio system detection method provided in an embodiment of the present application.
[0119] See also Fig.11 In some optional implementations, the above step S92 includes the following steps S921 to S922:
[0120] S921, performing quality analysis on the first audio according to at least one of a preset first analysis dimension and a preset second analysis dimension to obtain a first analysis result;
[0121] S922: Determine the running status of the audio software in the audio system according to the first analysis result.
[0122] The first analysis dimension is to analyze the energy proportion of each frequency band in the first audio, and the second analysis dimension is to analyze the signal strength difference between adjacent sampling points in the first audio.
[0123] The following is still combined Figure 1 The electronic device 10 shown explains steps S221 to S222.
[0124] The first audio is obtained after the gain of the second audio is adjusted, and it is still a signal strength distribution in the time domain. After obtaining the first audio, an FFT operation can also be performed on it to obtain a frequency domain spectrum diagram of the first audio, so as to analyze the energy proportion of each frequency band in the first audio. It is the same as the way of analyzing the energy proportion of each frequency band in the third audio. Based on the above description of the analysis of the energy proportion of each frequency band in the third audio, technicians in this field can understand the analysis of the energy proportion of each frequency band in the first audio, so it will not be repeated here.
[0125] Based on the foregoing, it can be known that the obtained first audio is a signal strength distribution in the time domain. In some optional embodiments, when analyzing the signal strength difference between adjacent sampling points in the first audio, starting from the first sampling point on the time domain waveform of the first audio, a preset time window is slid on the time domain waveform of the first audio with a preset step length, and at each step, the signal strength difference between each adjacent sampling point in the time domain waveform within the current time window is determined until the time window slides to the last sampling point on the time domain waveform of the first audio.
[0126] The duration window is a pre-set "tool" for measuring the length of the band selected when selecting a band from the time domain waveform of the first audio for signal strength difference analysis. Optionally, the width l of the duration window is 5ms. Of course, those skilled in the art can also flexibly set the width of the duration window.
[0127] The step length is the sliding distance of the preset band selection tool (duration window), which is usually an integer multiple of the width of the duration window. Optionally, the step length x is 1l, that is, the sliding distance of the duration window is l, that is, the time interval between the first sampling point in the window after the duration window slides and the last sampling point in the window before the duration window slides is a period T. Of course, those skilled in the art can also flexibly set the step length.
[0128] For example, the sampling time of the first audio is a minutes (min), and the sampling rate is bHz, so there are 60ab sampling points in the first audio. It should be noted that the first audio is stored in the electronic device as a digital signal, and one sampling point corresponds to one digital signal. Assume that the first audio is A={m 1 ,m 2 ,…,m n …,m 60ab}, where m n Indicates the signal strength of the nth sampling point. When analyzing the signal strength difference of adjacent sampling points in the first audio, the time window is first set to the first sampling point to the nth sampling point. The band corresponding to the sampling point On, among which Indicates that the value of lb is rounded down, for example Then, calculate the band The signal strength difference Δm between each adjacent sampling point in the calculation is Δm 2 =m 2 -m 1 , Then slide the duration window according to the preset step length x, and place the duration window at the first Sampling point to The band corresponding to the sampling point Then, calculate the band The signal strength difference Δm between each adjacent sampling point in the calculation Then, the time window is slid according to the preset step length x, and the signal strength difference between each adjacent sampling point in the band in the next time window is calculated, until the time window is slid to the last sampling point of the first audio, completing the quality analysis of the first audio from the second analysis dimension.
[0129] For example, the waveform of the first audio is {1234567, 6543251, 9876578, ...}, where one number represents a signal strength, and one number corresponds to a sampling point, such as the signal strength of the first sampling point is 1234567, and the signal strength of the second sampling point is 6543251. The width of the time window is 5ms, and there are 100 sampling points within the 5ms of the band where the time window is currently located. That is, the difference between the signal strength of the first sampling point and the signal strength of the second sampling point, the difference between the signal strength of the second sampling point and the signal strength of the third sampling point, ..., the difference between the signal strength of the ninety-ninth sampling point and the signal strength of the hundredth sampling point is determined.
[0130] In some optional implementations, the first audio quality can be analyzed only according to a first analysis dimension. When the first audio is analyzed only according to the first analysis dimension and the first analysis result obtained satisfies a preset first condition, it is determined that the running state of the audio software is abnormal. Correspondingly, when the first audio is analyzed only according to the first analysis dimension and the first analysis result obtained does not satisfy the first condition, it is determined that the running state of the audio software is normal. The first condition is that the energy proportion of a preset first frequency band in the first audio is greater than or equal to a preset first threshold.
[0131] Optionally, the first frequency band is a low frequency band in the third audio. For example, according to the human ear perception ability, the first frequency band can be 20 Hz-200 Hz, which is usually called low frequency, and there is also an intermediate frequency between 200 Hz-2 kHz and a high frequency between 2 kHz-20 kHz.
[0132] Optionally, the first threshold can be dynamically specified and selected according to different judgment methods. For example, the power spectrum density is used to calculate the energy proportion, and the threshold can be set to 65%. Of course, the threshold needs to be adjusted and optimized according to the specific situation, such as spectrum characteristics, signal type, etc., rather than simply using a fixed value. This is only an example.
[0133] In the range of 20Hz-20kHz, the audio signal is processed by dividing it into frames, that is, into continuous time windows, and applying Fourier transform to each window to obtain the spectrum information of each window, and the power spectrum density is calculated, and the sum of the overall power spectrum density is further obtained. At the same time, for the specified range, here is 20Hz-200Hz, the sum is taken in this range to obtain the corresponding sum of the power spectrum density. By calculating the ratio of the sum of the two power spectrum densities, the proportion of the signal energy in a specific frequency range to the signal energy in the overall frequency range can be obtained. When the energy ratio in some windows before the continuous windows is significantly greater than or equal to the specified threshold, here is 65%, it means that there is a sharp change in energy here, the proportion of low-frequency energy is too high, and there may be abnormal noise.
[0134] When the first audio quality is analyzed only according to the first analysis dimension, the first analysis result obtained only contains the energy proportion of the audio in each frequency band in the first audio. When the energy proportion of the first frequency band is greater than or equal to the preset first threshold, it is determined that the third audio contains noise, that is, it is determined that the operating state of the audio software of the audio system is abnormal. Correspondingly, when the energy proportion of the first frequency band is less than the preset first threshold, it is determined that the first audio does not contain noise, that is, it is determined that the operating state of the audio software of the audio system is normal.
[0135] In some optional implementations, the first audio quality can be analyzed only according to the second analysis dimension. When the first audio is analyzed only according to the second analysis dimension and the first analysis result obtained satisfies a preset second condition, it is determined that the running state of the audio software is abnormal. Correspondingly, when the first audio is analyzed only according to the second analysis dimension and the first analysis result obtained does not satisfy the second condition, it is determined that the running state of the audio software is normal. The second condition is that there is a signal strength difference between adjacent sampling points in the first audio that is greater than or equal to a preset second threshold.
[0136] Optionally, the angle corresponding to the second threshold setting threshold is 70 degrees. If it is greater than this angle, it is considered that the amplitude change is too large. When sampling and quantizing the encoding, if it is encoded in 8 bits, the minimum sampling value is 0, the maximum sampling value is 255, and the difference value of adjacent points is mapped to the angle range of 0 to 90 degrees. Assuming that the maximum amplitude is 255 corresponding to 90 degrees, the difference can be mapped to the angle range by the following formula: Angle = (difference ÷ 255) × 90. When the angle is 70 degrees, according to the formula, it can be calculated that the difference = 255 × (70 ÷ 90) ≈ 198. This shows that when encoded in 8 bits, the threshold is 198. When the difference value of adjacent points is greater than 198, it means that the deviation is too large and the waveform here may be abnormal.
[0137] When the first audio quality is analyzed only according to the second analysis dimension, the first analysis result obtained only contains the signal strength difference of adjacent sampling points in the first audio. There are adjacent sampling points in the first audio whose signal strength difference is greater than or equal to the preset second threshold (for example, Δm in the above example). 1 to If any one of the Δm in the first audio is greater than or equal to the preset second threshold value), it is determined that the third audio contains noise, that is, it is determined that the running state of the audio software of the audio system is abnormal. 1 to When all Δm in the third audio are less than a preset second threshold), it is determined that the third audio does not contain noise, that is, it is determined that the running state of the audio software of the audio system is running normally.
[0138] In some optional implementations, the first audio quality is analyzed according to a first analysis dimension and a second analysis dimension. When the first audio is analyzed according to the first analysis dimension and the second analysis dimension and the first analysis result obtained satisfies at least one of a preset first condition and a preset second condition, it is determined that the running state of the audio software is abnormal. Correspondingly, when the first audio is analyzed according to the first analysis dimension and the second analysis dimension and the first analysis result obtained satisfies neither the first condition nor the second condition, it is determined that the running state of the audio software is normal.
[0139] When the first audio quality is analyzed according to the first analysis dimension and the second analysis dimension, the first analysis result obtained contains the energy proportion of the audio of each frequency band in the first audio and the signal strength difference of adjacent sampling points in the first audio. When the energy proportion of the first frequency band is greater than or equal to the preset first threshold and / or there is a signal strength difference of adjacent sampling points in the first audio that is greater than or equal to the preset second threshold, it is determined that the third audio contains noise, that is, it is determined that the running state of the audio software of the audio system is abnormal. Correspondingly, when the energy proportion of the first frequency band is less than the preset first threshold and there is no signal strength difference of adjacent sampling points in the first audio that is greater than or equal to the preset second threshold, it is determined that there is no noise in the first audio, that is, it is determined that the running state of the audio software of the audio system is normal.
[0140] In order to facilitate the understanding of the embodiments of the present application, the following is an overall description of the embodiments of the present application. Figure 1 The self-check of the audio system of the electronic device 10 is taken as an example for explanation.
[0141] like Fig.12 As shown, Fig.12 yes Figure 1 The overall flow chart of the electronic device 10 shown in FIG. 10 and FIG. 10 is a flow chart of the electronic device 10 performing a self-check on its own audio system. Fig.12 When the electronic device 10 detects its own audio system, it can be divided into an audio software detection part ( Fig.12 The process shown in the upper part of the dotted line) and the audio hardware detection part ( Fig.12 The process shown in the lower part of the dotted line).
[0142] In the Audio Software Detection section:
[0143] (1) The selected audio source software runs on CPU 11, and the audio source software starts playing the target audio Audio-0, and CPU 11 transmits the target audio Audio-0 to DSP 12;
[0144] (2) DSP12 outputs the target audio Audio-0 through the audio output path 15.
[0145] (3) At the same time, DPS12 copies the audio stream of the output target audio Audio-0 to obtain a copy of the target audio Audio-0, and performs gain adjustment on the copy to 0 dB to obtain the first audio Audio-2.
[0146] (4) DPS12 determines whether there is noise in the first audio Audio-2.
[0147] If the judgment result is that there is noise in the first audio Audio-2, it is determined that the speaker 152 outputs the target audio Audio-0 to generate a POP sound. A prompt message for prompting the audio system that the audio software is running abnormally can be output, such as a voice broadcast of the audio software running abnormally or a text prompt of the audio software running abnormally.
[0148] If the judgment result is that there is no noise in the first audio Audio-2, it is determined that the audio software runs normally. At the same time, DSP12 copies a copy of the target audio Audio-0 to obtain the second audio Audio-3 for use in audio hardware detection.
[0149] In the Audio Hardware Detection section:
[0150] (5) The speaker 152 outputs the target sound Sound corresponding to the target audio Audio-0.
[0151] (6) MIC142 collects the target sound Sound, obtains the third audio Audio-1, and transmits the third audio Audio-1 to DSP12.
[0152] (7) DSP12 eliminates the time delay of the third audio Audio-1 relative to the second audio Audio-3.
[0153] Based on the knowledge of physics, it is known that the time Δt required for the target audio Audio-0 to be transmitted from DSP12 to speaker 152, converted into sound waves Sound by speaker 152, transmitted to MIC142, and collected by MIC142 and then converted into audio is 1 Usually longer than the time Δt required for DSP12 to collect the second audio Audio-3 2 That is, the first starting time point t of the second audio Audio-3 is collected 1 and the second starting time point t of the third audio Audio-1 collected 2 There will be a certain time difference (denoted as delay Δt) between them, and t 2 Always earlier than t 1 .
[0154] After the audio system starts working, the audio input path 14 and the audio output path 15 are almost opened synchronously. Therefore, after the entry detection, the audio system starts working, and the starting time point of MIC142 collecting sound from the environment and the starting time point of DSP12 collecting output audio from the audio output path 15 are synchronized. Assume that the target audio Audio-0 starts from t 1 The DSP12 starts to output from t 1 At this moment, the second audio Audio-3 is collected. Accordingly, MIC142 starts collecting the second audio Audio-3 from t 1 At the same time, assuming that MIC142 starts collecting the sound in the environment at t 2 The target sound Sound of the target audio Audio-0 is collected from the environment at the moment. Obviously, in the audio file obtained by MIC142 collecting the sound in the environment, at t 1 Time to t 2 The audio corresponding to the time period of time is invalid for detection, and does not contain the content of the third audio Audio-1, only t 2 The audio collected after this time contains the content of the third audio Audio-1. 1 Time to t 2 The time period at the moment is exactly the time delay Δt. Therefore, it is necessary to store the audio file obtained by MIC142 collecting the sound in the environment at t 1 Time to t 2 The audio corresponding to the time period of time is removed, and only the part of the audio file containing the third audio Audio-1 obtained by MIC142 collecting the sound in the environment is retained. The retained third audio Audio-1 is aligned with the second audio Audio-3 (that is, the third audio Audio-1 is aligned with the second audio Audio-3). 2 The audio signal sampled at the time is the same as the second audio signal Audio-3 1 The audio signals sampled at the instant are aligned, and the audio signals corresponding to the subsequent sampling points are aligned in sequence, so as to facilitate the subsequent comparison of the third audio Audio-1 and the second audio Audio-3).
[0155] (8) DSP12 analyzes the quality of the third audio Audio-1 in combination with the second audio Audio-3.
[0156] (9) DSP12 determines whether there is noise in the third audio Audio-1 based on the quality analysis result.
[0157] If the judgment result is that the third audio Audio-1 has noise, it is determined that the speaker 152 outputs the target audio Audio-0 to generate a POP sound. A prompt message for prompting the audio system that the audio hardware is operating abnormally can be output, such as a voice broadcast of the audio hardware operating abnormality or a text prompt of the audio hardware operating abnormality.
[0158] If the judgment result is that there is no noise in the third audio Audio-1, it is determined that the speaker 152 outputs the third audio Audio-1 without generating a POP sound, that is, it is determined that the audio hardware is also operating normally. A prompt message for prompting that the audio system is operating normally can be output, such as a voice broadcast that the audio system is operating normally or a text prompt that the audio system is operating normally.
[0159] Below Fig.12 The Audio Software Detection section and the Audio Hardware Detection section are further described.
[0160] like Fig.13 As shown, Fig.13 yes Fig.12 The flowchart of the audio software detection part in the audio system detection method shown in FIG. Fig.13 , in the Audio Software Detection section:
[0161] (1.1) The sound source software plays the target audio Audio-0. The CPU 11 transmits the target audio Audio-0 to the DSP 12.
[0162] (1.2) After receiving the target audio Audio-0 sent by CPU11, DSP12 copies the target audio Audio-0 (outputs it to the outside through the audio output channel 15 at the same time), and DPS12 copies the audio stream of the output target audio Audio-0 to obtain a copy of the target audio Audio-0, and adjusts the gain of the copy to 0dB to obtain the first audio Audio-2.
[0163] (1.3) DSP12 analyzes the signal strength difference between adjacent sampling points in the first audio Audio-2.
[0164] If the analysis result shows that the signal strength difference between adjacent sampling points in the first audio Audio-2 is greater than or equal to the preset second threshold, it is determined that the speaker 152 outputs the target audio Audio-0 to generate a POP sound, that is, it is determined that the audio software of the audio system is running abnormally. A prompt message for prompting that the audio software of the audio system is running abnormally can be output.
[0165] If the analysis result shows that there is no signal strength difference between adjacent sampling points in the first audio Audio-2 that is greater than or equal to the preset second threshold, execute (1.4).
[0166] (1.4) DSP12 performs FFT operation on the first audio Audio-2.
[0167] (1.5) DSP12 analyzes the energy proportion of each frequency band in the first audio Audio-2.
[0168] If the analysis result shows that the energy proportion of the first frequency band preset in the first audio Audio-2 is greater than or equal to the preset first threshold, it is determined that the speaker 152 outputs the target audio Audio-0 to generate a POP sound, that is, it is determined that the audio software of the audio system is running abnormally. A prompt message for prompting the audio software of the audio system to run abnormally can be output.
[0169] If the analysis result shows that the energy proportion of the first frequency band preset in the first audio Audio-2 is less than the preset first threshold, it is determined that the speaker 152 outputs the target audio Audio-0 without generating POP sound, i.e., it is determined that the audio software of the audio system runs normally. DSP12 synchronously copies an audio stream of the target audio Audio-0 as the second audio Audio-3, and enters the audio hardware detection phase.
[0170] like Fig.14 As shown, Fig.14 yes Fig.12 The flowchart of the audio hardware detection part in the audio system detection method shown in FIG. Fig.14 , in the Audio Hardware Detection section:
[0171] (2.1), (the speaker 152 outputs the target sound Sound corresponding to the target audio Audio-0), the MIC142 collects the target sound Sound, obtains the third audio Audio-1, and transmits the third audio Audio-1 to the DSP12.
[0172] (2.2) After receiving the third audio Audio-1, DSP12 eliminates the time delay of the third audio Audio-1 relative to the second audio Audio-3.
[0173] (2.3), DSP12 analyzes the similarity between the third audio Audio-1 and the second audio Audio-3 in the time domain.
[0174] If the analysis result shows that the similarity between the third audio Audio-1 and the second audio Audio-3 in the time domain is less than the preset fifth threshold, it is determined that the output of the target audio Audio-0 by the speaker 152 generates a POP sound, that is, it is determined that the audio hardware of the audio system is operating abnormally. A prompt message for prompting the audio hardware of the audio system to operate abnormally can be output.
[0175] If the analysis result shows that the similarity between the third audio Audio-1 and the second audio Audio-3 in the time domain is greater than or equal to the preset fifth threshold, execute (2.4).
[0176] (2.4), DSP12 performs FFT operation on the third audio Audio-1 and the second audio Audio-3.
[0177] (2.5) DSP12 analyzes the energy proportion of each frequency band in the third audio Audio-1.
[0178] If the analysis result shows that the energy proportion of the preset second frequency band in the third audio Audio-1 is greater than or equal to the preset third threshold, it is determined that the speaker 152 outputs the target audio Audio-0 to generate a POP sound, that is, it is determined that the audio hardware of the audio system is operating abnormally. A prompt message for prompting the audio hardware of the audio system to operate abnormally can be output.
[0179] If the analysis result shows that the energy proportion of the preset second frequency band in the third audio Audio-1 is less than the preset third threshold, execute (2.6).
[0180] (2.6) DSP12 analyzes the overlap between the third audio Audio-1 and the second audio Audio-3 in the frequency domain.
[0181] If the analysis result shows that the overlap between the third audio Audio-1 and the second audio Audio-3 in the frequency domain is less than the preset fourth threshold, it is determined that the speaker 152 outputs the target audio Audio-0 and generates a POP sound, that is, it is determined that the audio hardware of the audio system is operating abnormally. A prompt message for prompting that the audio hardware of the audio system is operating abnormally can be output.
[0182] If the analysis result shows that the overlap between the third audio Audio-1 and the second audio Audio-3 in the frequency domain is greater than or equal to the preset fourth threshold, it is determined that the speaker 152 outputs the third audio Audio-1 without generating a POP sound, that is, it is determined that the audio hardware is also operating normally. A prompt message may be output to indicate that the audio system is operating normally.
[0183] exist Figure 12 to Figure 14 For the detailed description of each step in the corresponding embodiment, please refer to the previous text. To avoid redundancy, it will not be repeated here.
[0184] The audio system detection method provided in the embodiment of the present application can be executed by a detection device of the audio system. In the embodiment of the present application, the method of executing the detection of the audio system by the detection device of the audio system is taken as an example to illustrate the detection device of the audio system provided in the embodiment of the present application.
[0185] like Fig.15 FIG. 1 is a schematic diagram showing a structure of a detection device for an audio system provided in an embodiment of the present application. Fig.15 , the detection device 20 of the audio system comprises:
[0186] A first acquisition module 201 is used to acquire a first audio; the first audio is an audio obtained by performing gain adjustment on a second audio, and the second audio is an audio copied from an audio output path of the audio system during a process in which a target audio is output by the audio system;
[0187] A first analysis module 22, configured to perform quality analysis on the first audio, and determine the running state of the audio software in the audio system according to the obtained first analysis result;
[0188] The second acquisition module 23 is used to acquire a third audio when it is determined that the running state of the audio software is running normally; the third audio is the audio obtained by the audio system collecting the target sound, and the target sound is the sound generated by the audio system outputting the target audio;
[0189] The second analysis module 24 is used to analyze the quality of the third audio and determine the operating state of the audio hardware in the audio system according to the obtained second analysis result.
[0190] In some optional implementations, the first analysis module 22 includes:
[0191] A first analysis submodule, configured to perform quality analysis on the first audio according to at least one of a preset first analysis dimension and a preset second analysis dimension to obtain a first analysis result; the first analysis dimension is to analyze the energy proportion of each frequency band in the first audio, and the second analysis dimension is to analyze the signal strength difference of adjacent sampling points in the first audio;
[0192] The second determining submodule is used to determine the running status of the audio software in the audio system according to the first analysis result.
[0193] In some optional implementations, the second determining submodule includes:
[0194] A first determination unit is used to determine that the running status of the audio software is abnormal when the first audio is analyzed only according to the first analysis dimension and the first analysis result obtained meets a preset first condition; the first condition is that the energy proportion of a preset first frequency band in the first audio is greater than or equal to a preset first threshold.
[0195] In some optional implementations, the second determining submodule further includes:
[0196] The second determination unit is used to determine that the running status of the audio software is normal when the first audio is analyzed only according to the first analysis dimension and the first analysis result obtained does not meet the first condition.
[0197] In some optional implementations, the second determining submodule includes:
[0198] A third determination unit is used to determine that the running state of the audio software is abnormal when the first audio is analyzed only according to the second analysis dimension and the first analysis result obtained meets a preset second condition; the second condition is that the signal strength difference between adjacent sampling points in the first audio is greater than or equal to a preset second threshold.
[0199] In some optional implementations, the second determining submodule further includes:
[0200] The fourth determination unit is used to determine that the running status of the audio software is normal when the first audio is analyzed only according to the second analysis dimension and the first analysis result obtained does not meet the second condition.
[0201] In some optional implementations, the second determining submodule includes:
[0202] A fifth determination unit is used to determine that the running status of the audio software is abnormal when the first audio is analyzed according to the first analysis dimension and the second analysis dimension and the first analysis result obtained satisfies at least one of a preset first condition and a preset second condition; the first condition is that the energy proportion of a preset first frequency band in the first audio is greater than or equal to a preset first threshold, and the second condition is that the signal strength difference between adjacent sampling points in the first audio is greater than or equal to a preset second threshold.
[0203] In some optional implementations, the second determining submodule further includes:
[0204] A sixth determination unit is used to determine that the running status of the audio software is normal when the first analysis result obtained by analyzing the first audio according to the first analysis dimension and the second analysis dimension satisfies neither the first condition nor the second condition.
[0205] In some optional implementations, the second analysis module 24 includes:
[0206] A second analysis submodule is configured to perform quality analysis on the third audio according to at least one of a preset third analysis dimension, a preset fourth analysis dimension, and a preset fifth analysis dimension to obtain a second analysis result; the third analysis dimension is to analyze the energy proportion of each frequency band in the third audio, the fourth analysis dimension is to analyze the overlap between the third audio and the second audio in the frequency domain, and the fifth analysis dimension is to analyze the similarity between the third audio and the second audio in the time domain;
[0207] The third determining submodule is used to determine the operating status of the audio hardware in the audio system according to the second analysis result.
[0208] In some optional implementations, the third determining submodule includes:
[0209] The seventh determination unit is used to determine that the operating status of the audio hardware in the audio system is abnormal when the third audio is analyzed only according to the third analysis dimension and the second analysis result obtained meets a preset third condition; the third condition is that the energy proportion of the preset second frequency band in the third audio is greater than or equal to a preset third threshold.
[0210] In some optional implementations, the third determining submodule further includes:
[0211] An eighth determination unit is used to determine whether the operating status of the audio hardware in the audio system is normal when the third audio is analyzed only according to the third analysis dimension and the second analysis result obtained does not meet the third condition.
[0212] In some optional implementations, the third determining submodule includes:
[0213] A ninth determination unit is used to determine that the operating state of the audio hardware in the audio system is abnormal operation when the third audio is analyzed only according to the fourth analysis dimension and the second analysis result obtains a preset fourth condition; the fourth condition is that the overlap between the third audio and the second audio in the frequency domain is less than a preset fourth threshold.
[0214] In some optional implementations, the third determining submodule further includes:
[0215] A tenth determining unit is used to determine that the operating status of the audio hardware in the audio system is normal when the third audio is analyzed only according to the fourth analysis dimension and the second analysis result obtained does not meet the fourth condition.
[0216] In some optional implementations, the third determining submodule includes:
[0217] An eleventh determination unit is used to determine that the operating state of the audio hardware in the audio system is abnormal operation when the third audio is analyzed only according to the fifth analysis dimension and the second analysis result obtains a preset fifth condition; the fifth condition is that the similarity between the third audio and the second audio in the time domain is less than a preset fifth threshold.
[0218] In some optional implementations, the third determining submodule further includes:
[0219] The twelfth determining unit is used to determine that the operating status of the audio hardware in the audio system is normal when the third audio is analyzed only according to the fifth analysis dimension and the second analysis result obtained does not meet the fifth condition.
[0220] In some optional implementations, the third determining submodule includes:
[0221] A thirteenth determination unit is used to determine that the operating state of the audio hardware in the audio system is abnormal operation when the third audio is analyzed only according to the third analysis dimension and the fourth analysis dimension and the second analysis result obtains a second analysis result that satisfies at least one of a preset third condition and a preset fourth condition; the third condition is that the energy proportion of a preset second frequency band in the third audio is greater than or equal to a preset third threshold, and the fourth condition is that the overlap between the third audio and the second audio in the frequency domain is less than a preset fourth threshold.
[0222] In some optional implementations, the third determining submodule further includes:
[0223] A fourteenth determination unit is used to determine that the operating status of the audio hardware in the audio system is normal when the third audio is analyzed only according to the third analysis dimension and the fourth analysis dimension and the second analysis result obtained neither satisfies the third condition nor the fourth condition.
[0224] In some optional implementations, the third determining submodule includes:
[0225] The fifteenth determination unit is used to determine that the operating status of the audio hardware in the audio system is abnormal operation when the third audio is analyzed only according to the third analysis dimension and the fifth analysis dimension and the second analysis result obtains that satisfies at least one of a preset third condition and a preset fifth condition; the third condition is that the energy proportion of a preset second frequency band in the third audio is greater than or equal to a preset third threshold, and the fifth condition is that the similarity between the third audio and the second audio in the time domain is less than a preset fifth threshold.
[0226] In some optional implementations, the third determining submodule further includes:
[0227] The sixteenth determination unit is used to determine that the operating status of the audio hardware in the audio system is normal when the third audio is analyzed only according to the third analysis dimension and the fifth analysis dimension and the second analysis result obtained neither satisfies the third condition nor the fifth condition.
[0228] In some optional implementations, the third determining submodule includes:
[0229] The seventeenth determination unit is used to determine that the operating state of the audio hardware in the audio system is abnormal operation when the third audio is analyzed only according to the fourth analysis dimension and the fifth analysis dimension and the second analysis result meets at least one of a preset fourth condition and a preset fifth condition; the fourth condition is that the overlap between the third audio and the second audio in the frequency domain is less than a preset fourth threshold, and the fifth condition is that the similarity between the third audio and the second audio in the time domain is less than a preset fifth threshold.
[0230] In some optional implementations, the third determining submodule further includes:
[0231] An eighteenth determination unit is used to determine that the operating status of the audio hardware in the audio system is normal when the third audio is analyzed only according to the fourth analysis dimension and the fifth analysis dimension and a second analysis result obtained satisfies neither the fourth condition nor the fifth condition.
[0232] In some optional implementations, the third determining submodule includes:
[0233] The nineteenth determination unit is used to determine that the operating state of the audio hardware in the audio system is abnormal operation when the third audio is analyzed according to the third analysis dimension, the fourth analysis dimension and the fifth analysis dimension and the second analysis result obtained satisfies at least one of a preset third condition, a preset fourth condition and a preset fifth condition; the third condition is that the energy proportion of a preset second frequency band in the third audio is greater than or equal to a preset third threshold, the fourth condition is that the overlap between the third audio and the second audio in the frequency domain is less than a preset fourth threshold, and the fifth condition is that the similarity between the third audio and the second audio in the time domain is less than a preset fifth threshold.
[0234] In some optional implementations, the third determining submodule further includes:
[0235] The twentieth determination unit is used to determine that the operating status of the audio hardware in the audio system is normal when the third audio is analyzed according to the third analysis dimension, the fourth analysis dimension and the fifth analysis dimension and the second analysis result obtained does not meet all the conditions among the third condition, the fourth condition and the fifth condition.
[0236] In some optional implementations, the audio system detection device 20 further includes:
[0237] The first output module is used to output prompt information for prompting that the audio system is operating abnormally when it is determined that the operating status of at least one of the audio software and the audio hardware in the audio system is operating abnormally.
[0238] The detection device 20 of the audio system in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a palmtop computer, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.
[0239] The detection device 20 of the audio system in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0240] The detection device 20 of the audio system provided in the embodiment of the present application can achieve Figures 1 to 14 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0241] In some optional embodiments, such as Fig.16As shown, an embodiment of the present application further provides an electronic device 130, including a first processor 131, a CPU 132 and a memory 133, wherein the memory 133 stores programs or instructions that can be executed on at least one of the first processor 131 and the CPU 132, and the programs or instructions stored in the memory 133 contain various steps of the embodiment of the detection method of the above-mentioned audio system when the program or instructions are executed by the first processor, and can achieve the same technical effect, which will not be described again here to avoid repetition.
[0242] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0243] Fig.17 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0244] The electronic device 170 includes, but is not limited to, components such as a radio frequency unit 171, a network module 172, an audio output unit 143, an input unit 144, a sensor 145, a display unit 146, a user input unit 147, an interface unit 148, a memory 149, and a processor 1410. Those skilled in the art will appreciate that the electronic device 140 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1410 through a power management system, so as to implement functions such as managing charging, discharging, and power consumption management through the power management system. Fig.17 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0245] The processor 1410 is configured to:
[0246] Acquire a first audio; the first audio is audio obtained by gain-adjusting a second audio, and the second audio is audio copied from an audio output path of the audio system during a process in which a target audio is output by the audio system;
[0247] Performing a quality analysis on the first audio, and determining a running state of the audio software in the audio system according to the obtained first analysis result;
[0248] When it is determined that the running state of the audio software is normal, obtaining a third audio; the third audio is the audio obtained by the audio system collecting the target sound, and the target sound is the sound generated by the audio system outputting the target audio;
[0249] The quality of the third audio is analyzed, and the operating state of the audio hardware in the audio system is determined according to the obtained second analysis result.
[0250] It should be understood that in the embodiment of the present application, the input unit 144 may include a graphics processor (Graphics Processing Unit, GPU) 1441 and a microphone 1442, and the graphics processor 1441 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 146 may include a display panel 1461, and the display panel 1461 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 147 includes a touch panel 1471 and at least one of other input devices 1472. The touch panel 1471 is also called a touch screen. The touch panel 1471 may include two parts: a touch detection device and a touch controller. Other input devices 1472 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0251] The memory 149 can be used to store software programs and various data. The memory 149 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 149 may include a volatile memory or a non-volatile memory, or the memory 149 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 149 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0252] The processor 1410 may include one or more processing units; optionally, the processor 1410 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1410.
[0253] In some optional embodiments, such as Fig.18As shown, the embodiment of the present application also provides a vehicle 160, including a first processor 161, a CPU 162 and a memory 163, the memory 163 stores programs or instructions that can be executed on at least one of the first processor 161 and the CPU 162, and the programs or instructions stored in the memory 163 contain various steps of the embodiment of the detection method of the above-mentioned audio system when the program or instructions are executed by the first processor, and can achieve the same technical effect. To avoid repetition, they are not repeated here.
[0254] Any of the above-mentioned product embodiments can implement the various processes of the above-mentioned method embodiment for measuring vibration test parameters through its own processor operation, and can achieve the same technical effect. In order to avoid repetition, they will not be described one by one.
[0255] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned audio system detection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the processor is the processor in the electronic device or electronic system described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a disk or an optical disk, etc.
[0256] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned audio system detection method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0257] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0258] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned audio system detection method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0259] In the implementation methods provided in the embodiments of the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device implementation methods 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 system, 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0260] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0261] In addition, each functional unit in each implementation of the embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0262] 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 computer-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, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each implementation method of the embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0263] The above description is only an implementation method of the embodiment of the present application, and does not limit the patent scope of the embodiment of the present application. The above specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can make many forms of equivalent structures or equivalent process changes made by using the description and drawings of the embodiment of the present application, or directly or indirectly apply them in other related technical fields without departing from the scope of protection of the purpose of the present application and the claims, which are also included in the patent protection scope of the embodiment of the present application.
Claims
1. A method for detecting an audio system, characterized in that: The method comprises: Acquire a first audio; the first audio is audio obtained by gain-adjusting a second audio, and the second audio is audio copied from an audio output path of the audio system during a process in which a target audio is output by the audio system; Performing a quality analysis on the first audio, and determining a running state of the audio software in the audio system according to the obtained first analysis result; When it is determined that the running state of the audio software is normal, obtaining a third audio; the third audio is an audio obtained by the audio system collecting a target sound, and the target sound is a sound generated by the audio system outputting the target audio; The quality of the third audio is analyzed, and the operating state of the audio hardware in the audio system is determined according to the obtained second analysis result.
2. The method according to claim 1, characterized in that The performing quality analysis on the first audio and determining the running state of the audio software in the audio system according to the obtained first analysis result includes: Performing quality analysis on the first audio according to at least one of a preset first analysis dimension and a preset second analysis dimension to obtain a first analysis result; the first analysis dimension is to analyze the energy proportion of each frequency band in the first audio, and the second analysis dimension is to analyze the signal strength difference of adjacent sampling points in the first audio; The running status of the audio software in the audio system is determined according to the first analysis result.
3. The method according to claim 2, characterized in that Determining the running state of the audio software in the audio system according to the first analysis result includes: When the first audio is analyzed only according to the first analysis dimension and the first analysis result obtained satisfies a preset first condition, determining that the running state of the audio software is abnormal; the first condition is that the energy proportion of a preset first frequency band in the first audio is greater than or equal to a preset first threshold; When the first audio is analyzed only according to the first analysis dimension and the first analysis result obtained does not meet the first condition, determining that the running state of the audio software is running normally; or, When the first audio is analyzed only according to the second analysis dimension and the first analysis result obtained satisfies a preset second condition, determining that the running state of the audio software is abnormal; the second condition is that the signal strength difference between adjacent sampling points in the first audio is greater than or equal to a preset second threshold; When the first audio is analyzed only according to the second analysis dimension and the obtained first analysis result does not meet the second condition, it is determined that the running status of the audio software is normal.
4. The method according to claim 2, characterized in that: Determining the running state of the audio software in the audio system according to the first analysis result includes: When the first audio is analyzed according to the first analysis dimension and the second analysis dimension and the first analysis result obtained satisfies at least one of a preset first condition and a preset second condition, determining that the running state of the audio software is abnormal; the first condition is that the energy proportion of a preset first frequency band in the first audio is greater than or equal to a preset first threshold, and the second condition is that the signal strength difference between adjacent sampling points in the first audio is greater than or equal to a preset second threshold; When the first audio is analyzed according to the first analysis dimension and the second analysis dimension and a first analysis result obtained satisfies neither the first condition nor the second condition, it is determined that the running status of the audio software is running normally.
5. The method according to claim 1, characterized in that The analyzing the quality of the third audio and determining the operating state of the audio hardware in the audio system according to the obtained second analysis result includes: Performing a quality analysis on the third audio according to at least one of a preset third analysis dimension, a preset fourth analysis dimension, and a preset fifth analysis dimension to obtain a second analysis result; the third analysis dimension analyzes the energy proportion of each frequency band in the third audio, the fourth analysis dimension analyzes the overlap between the third audio and the second audio in the frequency domain, and the fifth analysis dimension analyzes the similarity between the third audio and the second audio in the time domain; The operating status of the audio hardware in the audio system is determined according to the second analysis result.
6. The method according to claim 5, characterized in that Determining the operating state of the audio hardware in the audio system according to the second analysis result includes: When the third audio is analyzed only according to the third analysis dimension and the second analysis result obtained satisfies a preset third condition, determining that the operating state of the audio hardware in the audio system is abnormal operation; the third condition is that the energy proportion of the preset second frequency band in the third audio is greater than or equal to a preset third threshold; When the third audio is analyzed only according to the third analysis dimension and the second analysis result obtained does not meet the third condition, determining that the operating state of the audio hardware in the audio system is operating normally; or, When the third audio is analyzed only according to the fourth analysis dimension and the second analysis result obtained satisfies a preset fourth condition, determining that the operation state of the audio hardware in the audio system is abnormal operation; the fourth condition is that the overlap between the third audio and the second audio in the frequency domain is less than a preset fourth threshold; When the third audio is analyzed only according to the fourth analysis dimension and the second analysis result obtained does not meet the fourth condition, determining that the operating state of the audio hardware in the audio system is normal; or, When the third audio is analyzed only according to the fifth analysis dimension and the second analysis result obtained satisfies a preset fifth condition, determining that the operating state of the audio hardware in the audio system is abnormal operation; the fifth condition is that the similarity between the third audio and the second audio in the time domain is less than a preset fifth threshold; When the third audio is analyzed only according to the fifth analysis dimension and the obtained second analysis result does not meet the fifth condition, it is determined that the operating status of the audio hardware in the audio system is normal.
7. The method according to claim 5, characterized in that Determining the operating state of the audio hardware in the audio system according to the second analysis result includes: In a case where the third audio is analyzed only according to the third analysis dimension and the fourth analysis dimension and the obtained second analysis result satisfies at least one of a preset third condition and a preset fourth condition, determining that the operating state of the audio hardware in the audio system is abnormal operation; the third condition is that the energy proportion of the preset second frequency band in the third audio is greater than or equal to a preset third threshold, and the fourth condition is that the overlap between the third audio and the second audio in the frequency domain is less than a preset fourth threshold; When the third audio is analyzed only according to the third analysis dimension and the fourth analysis dimension and the second analysis result obtained satisfies neither the third condition nor the fourth condition, determining that the operating state of the audio hardware in the audio system is operating normally; or, In a case where the third audio is analyzed only according to the third analysis dimension and the fifth analysis dimension and the obtained second analysis result satisfies at least one of a preset third condition and a preset fifth condition, determining that the operating state of the audio hardware in the audio system is abnormal operation; the third condition is that the energy proportion of the preset second frequency band in the third audio is greater than or equal to a preset third threshold, and the fifth condition is that the similarity between the third audio and the second audio in the time domain is less than a preset fifth threshold; When the third audio is analyzed only according to the third analysis dimension and the fifth analysis dimension and the second analysis result obtained satisfies neither the third condition nor the fifth condition, determining that the operating state of the audio hardware in the audio system is operating normally; or, In a case where the third audio is analyzed only according to the fourth analysis dimension and the fifth analysis dimension and the obtained second analysis result satisfies at least one of a preset fourth condition and a preset fifth condition, determining that the operating state of the audio hardware in the audio system is abnormal operation; the fourth condition is that the overlap between the third audio and the second audio in the frequency domain is less than a preset fourth threshold, and the fifth condition is that the similarity between the third audio and the second audio in the time domain is less than a preset fifth threshold; When the third audio is analyzed only according to the fourth analysis dimension and the fifth analysis dimension and the second analysis result obtained satisfies neither the fourth condition nor the fifth condition, determining that the operating state of the audio hardware in the audio system is operating normally; or, In a case where the third audio is analyzed according to the third analysis dimension, the fourth analysis dimension, and the fifth analysis dimension and the second analysis result obtained satisfies at least one of a preset third condition, a preset fourth condition, and a preset fifth condition, it is determined that the operating state of the audio hardware in the audio system is abnormal operation; the third condition is that the energy proportion of the preset second frequency band in the third audio is greater than or equal to a preset third threshold, the fourth condition is that the overlap between the third audio and the second audio in the frequency domain is less than a preset fourth threshold, and the fifth condition is that the similarity between the third audio and the second audio in the time domain is less than a preset fifth threshold; When the third audio is analyzed according to the third analysis dimension, the fourth analysis dimension and the fifth analysis dimension and the second analysis result obtained does not meet all of the third condition, the fourth condition and the fifth condition, it is determined that the operating status of the audio hardware in the audio system is normal.
8. A detection device for an audio system, characterized in that: The device comprises: A first acquisition module is used to acquire a first audio; the first audio is audio obtained by performing gain adjustment on a second audio, and the second audio is audio copied from an audio output path of the audio system during a process in which a target audio is output by the audio system; a first analysis module, configured to perform quality analysis on the first audio and determine a running state of the audio software in the audio system according to a first analysis result; A second acquisition module is used to acquire a third audio when it is determined that the running state of the audio software is running normally; the third audio is the audio obtained by the audio system collecting the target sound, and the target sound is the sound generated by the audio system outputting the target audio; The second analysis module is used to analyze the quality of the third audio and determine the operating state of the audio hardware in the audio system according to the obtained second analysis result.
9. An electronic device, characterized in that: The electronic device comprises: a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the audio system detection method according to any one of claims 1 to 7 are implemented.
10. A readable storage medium / computer program product, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the detection method of the audio system according to any one of claims 1 to 7 are implemented; The computer program product comprises a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the detection method of the audio system according to any one of claims 1 to 7 are implemented.