CN114268893B - Bluetooth audio equipment play abnormity detection method, equipment and readable storage medium - Google Patents

Bluetooth audio equipment play abnormity detection method, equipment and readable storage medium Download PDF

Info

Publication number
CN114268893B
CN114268893B CN202111564824.8A CN202111564824A CN114268893B CN 114268893 B CN114268893 B CN 114268893B CN 202111564824 A CN202111564824 A CN 202111564824A CN 114268893 B CN114268893 B CN 114268893B
Authority
CN
China
Prior art keywords
background noise
value
audio
audio signal
peak value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111564824.8A
Other languages
Chinese (zh)
Other versions
CN114268893A (en
Inventor
张佳佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202111564824.8A priority Critical patent/CN114268893B/en
Publication of CN114268893A publication Critical patent/CN114268893A/en
Application granted granted Critical
Publication of CN114268893B publication Critical patent/CN114268893B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Circuit For Audible Band Transducer (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)

Abstract

The invention discloses a method, equipment and readable storage medium for detecting abnormal playing of Bluetooth audio equipment, wherein the method comprises the following steps: acquiring a background noise value of Bluetooth audio equipment; controlling Bluetooth audio equipment to play preset test audio, and collecting audio signals of the preset test audio; comparing the collected audio signals with the background noise value, and determining whether the Bluetooth audio equipment has abnormal playing according to the comparison result. The accuracy and the durability of the listening test are improved through the invention.

Description

Bluetooth audio equipment play abnormity detection method, equipment and readable storage medium
Technical Field
The invention belongs to the technical field of Bluetooth audio equipment, and particularly relates to a method and equipment for detecting abnormal playing of Bluetooth audio equipment and a readable storage medium.
Background
At present, the types of Bluetooth audio devices on the market are more and more, and the functions are more and more abundant; while the basic function of the bluetooth audio device is still audio playing, in order to strictly control the quality of bluetooth audio, a long-time listening test must be performed on the system version of each bluetooth audio device to ensure that the audio product will not get abnormally stuck during the playing process.
There are two common methods of listening testing: the first is to perform the listening test manually, the method is only suitable for the conditions of small test times and short time length requirement, once the product needs to be subjected to the pressure test, a tester cannot guarantee the accuracy of the listening test under the test for a plurality of times and a long time, and the manual test is performed for a limited time and cannot be continuously performed for a long time, so that the manual test cannot meet the listening requirement of the pressure test Bluetooth audio equipment. And secondly, recording specific audio played by the Bluetooth audio equipment in a sound insulation room, and then analyzing the recorded audio file to judge whether abnormal jamming condition occurs. The second method is a main method for audio analysis of the current audio product, and the method can ensure the test quality and the test duration, and has the defects of high environmental construction and maintenance cost, and generally records long-time audio and analyzes the audio, so that when a problem is difficult to occur, the problem is immediately processed, but the system version is updated quickly in the research and development process, and the method cannot ensure the timeliness of the problem processing.
Disclosure of Invention
The invention provides a method, equipment and a readable storage medium for detecting abnormal playing of Bluetooth audio equipment, and aims to solve the technical problem that accuracy and durability cannot be ensured in the process of listening test of the Bluetooth audio equipment.
In order to achieve the above object, the present invention provides a method for detecting abnormal play of a bluetooth audio device, which includes the following steps:
acquiring a background noise value of Bluetooth audio equipment;
Controlling the Bluetooth audio equipment to play preset test audio and collecting audio signals of the preset test audio;
Comparing the collected audio signals with the background noise value, and determining whether the Bluetooth audio equipment has abnormal playing according to the comparison result.
Optionally, acquiring all audio signal peaks in the audio signal;
and comparing the audio signal peak value with the background noise value to determine whether the Bluetooth audio device has abnormal playing.
Optionally, sequentially detecting whether an audio signal peak value is less than or equal to the background noise value;
If the audio signal peak value is detected to be smaller than or equal to the background noise value, continuing to judge whether the audio signal peak value is smaller than or equal to the background noise value continuously exceeds a preset perception duration;
and determining whether the Bluetooth audio equipment has abnormal playing according to whether the audio signal peak value is smaller than or equal to the background noise value and continuously exceeds a preset perception duration.
Optionally, if the audio signal peak value is smaller than or equal to the background noise value and continuously exceeds a preset sensing duration, judging that the bluetooth audio device is stuck;
And if the audio signal peak value is smaller than or equal to the background noise value and does not continuously exceed the preset sensing duration, judging that the Bluetooth audio equipment does not have the clamping.
Optionally, if the audio signal peak value is detected to be smaller than or equal to the background noise value, recording the serial number of the audio signal peak value as an initial serial number;
Continuing to compare the subsequent audio signal peak value with the background noise value, and recording the sequence number of the audio signal peak value with the next audio signal peak value larger than the background noise value as an ending sequence number;
And judging whether the audio signal peak value is smaller than or equal to the background noise value or not continuously exceeds a preset sensing duration according to the difference value between the end sequence number and the initial signal and the sampling frequency.
Optionally, when detecting that the audio signal peak value is greater than the background noise value, the step of sequentially detecting whether the audio signal peak value is less than or equal to the background noise value is performed.
Optionally, acquiring a background noise signal of the Bluetooth audio device in real time;
setting the maximum value of the bottom noise signal in the first preset time period as a bottom noise peak value;
And calculating the bottom noise value according to the bottom noise peak value.
Optionally, multiplying the background noise peak value by a preset multiple to obtain a background noise value.
In order to achieve the above object, the present application further provides a device for detecting and controlling abnormal playing of a bluetooth audio device, where the device for detecting and controlling abnormal playing of a bluetooth audio device includes a memory, a processor, and a program for detecting and controlling abnormal playing of a bluetooth audio device stored in the memory and capable of running on the processor, where the program for detecting abnormal playing of a bluetooth audio device is executed by the processor to implement the method for detecting abnormal playing of a bluetooth audio device.
In order to achieve the above object, the present application further provides a readable storage medium, where a control program for detecting a play abnormality of a bluetooth audio device is stored on the readable storage medium, and when the control program for detecting a play abnormality of a bluetooth audio device is executed by a processor, a method for detecting a play abnormality of the bluetooth audio device is implemented.
According to the technical scheme, the method comprises the steps of obtaining a background noise value of Bluetooth audio equipment, controlling the Bluetooth audio equipment to play preset test audio, and collecting an audio signal of the preset test audio; and comparing the collected audio signal with the background noise value, and determining whether the Bluetooth audio equipment has abnormal playing according to a comparison result. According to the application, a user can analyze whether the Bluetooth audio equipment is abnormal or not based on the comparison of the audio signal and the background noise value, compared with the manual listening test and the listening test in a sound isolation room in the prior art, the technical scheme of the application can automatically collect and analyze the audio signal of the Bluetooth audio equipment through simple equipment and lower cost, so that the problem that whether the audio product playing is stuck or not can not be ensured by long-time listening of the human ear is solved, and the accuracy and the durability of the listening test are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the structures shown in these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic block diagram of a method for detecting abnormal play of a bluetooth audio device according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for detecting abnormal playback of a bluetooth audio device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a method for detecting playback anomalies in a bluetooth audio device according to an embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic hardware structure diagram of a detection control device for detecting playback anomalies of a bluetooth audio device according to various embodiments of the present invention. The detection control device for abnormal playing of the Bluetooth audio device comprises an execution module 01, a memory 02, a processor 03, a battery system and the like. Those skilled in the art will appreciate that the apparatus shown in fig. 1 may also include more or fewer components than shown, or may combine certain components, or may be arranged in different components. The processor 03 is respectively connected with the memory 02 and the execution module 01, a detection control program of abnormal playing of the bluetooth audio device is stored in the memory 02, and the detection control program of abnormal playing of the bluetooth audio device is executed by the processor 03.
The execution module 01 can control the Bluetooth audio equipment to play preset test audio and collect audio signals of the preset test audio; comparing the collected audio signal with a background noise value, determining whether the Bluetooth audio equipment has abnormal playing according to the comparison result, and simultaneously feeding back the information and sending the information to the processor 03.
The memory 02 is used for storing software programs and various data. The memory 02 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data or information created according to the use of the internet of things terminal, and the like. In addition, memory 02 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 03 is a control center of the processing platform, and utilizes various interfaces and lines to connect various parts of the whole internet of things terminal, and executes various functions of the internet of things terminal and processes data by running or executing software programs and/or modules stored in the memory 02 and calling data stored in the memory 02, so that the detection control device for abnormal playing of the Bluetooth audio device is monitored integrally. The processor 03 may include one or more processing units; preferably, the processor 03 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 03.
It will be appreciated by those skilled in the art that the configuration of the Bluetooth audio device shown in FIG. 1 is not limiting as to the device, and may include more or fewer components than shown, or may be a combination of certain components, or a different arrangement of components.
According to the above hardware structure, various embodiments of the method of the present invention are presented.
At present, the types of Bluetooth audio devices on the market are more and more, and the functions are more and more abundant; while the basic function of the bluetooth audio device is still audio playing, in order to strictly control the quality of bluetooth audio, a long-time listening test must be performed on the system version of each bluetooth audio device to ensure that the audio product will not get abnormally stuck during the playing process.
In the prior art, two methods for listening test are commonly used: the first is to perform the listening test manually, the method is only suitable for the conditions of small test times and short time length requirement, once the product needs to be subjected to the pressure test, a tester cannot guarantee the accuracy of the listening test under the test for a plurality of times and a long time, and the manual test is performed for a limited time and cannot be continuously performed for a long time, so that the manual test cannot meet the listening requirement of the pressure test Bluetooth audio equipment. And secondly, recording specific audio played by the Bluetooth audio equipment in a sound insulation room, and then analyzing the recorded audio file to judge whether abnormal jamming condition occurs. The second method is a main method for audio analysis of the current audio product, and the method can ensure the test quality and the test duration, and has the defects of high environmental construction and maintenance cost, and generally records long-time audio and analyzes the audio, so that when a problem is difficult to occur, the problem is immediately processed, but the system version is updated quickly in the research and development process, and the method cannot ensure the timeliness of the problem processing.
In order to solve the above-mentioned problems, the present application proposes a method for detecting abnormal playback of a bluetooth audio device, referring to fig. 2, in a first embodiment of the method for detecting abnormal playback of a bluetooth audio device of the present application, the method for detecting abnormal playback of a bluetooth audio device includes:
step S100, obtaining a background noise value of Bluetooth audio equipment;
Before testing the bluetooth audio device, a test environment needs to be built first, and in some embodiments, as shown in fig. 3, the test environment includes a bluetooth audio device to be tested, a test mobile phone, a test computer, a sound card and a serial port board; the Bluetooth audio device is connected with the test computer, the sound card is connected with the test computer, the Bluetooth audio device is connected with the Bluetooth, the Bluetooth audio device is connected with the test computer through a serial port board, the Bluetooth audio device is connected with the sound card, and the specific connection mode of the Bluetooth audio device and the sound card is to dismantle a loudspeaker of the Bluetooth audio device and connect a lead wire of the Bluetooth audio device with an IN port of the sound card. In the connection mode, the test computer can send instructions according to the test cases to control the test mobile phone and the Bluetooth audio equipment; and the sound card can collect test signals of the Bluetooth audio equipment under the condition of minimum noise.
The above connection and test environment are only used to provide support for testing of bluetooth audio devices, and are not limited in this regard.
In this embodiment, after connection is performed in the above manner, the background noise value of the bluetooth audio device is first obtained. The floor noise value is a value calculated by a person skilled in the art from the tested floor noise. In particular, since only bottom noise is present in the bluetooth audio device when the test computer is not controlling the bluetooth audio device to play any audio, the bottom noise typically includes both acoustic device noise and noise of the external environment.
Step 200, controlling the Bluetooth audio device to play a preset test audio, and collecting an audio signal of the preset test audio;
in this embodiment, after obtaining the background noise value of the bluetooth audio device, the bluetooth audio device is controlled to play a preset test audio, and a played audio signal is collected; while the Bluetooth audio device plays the preset test audio, bottom noise still exists in the Bluetooth audio device, but the loudness of the bottom noise is very small, namely the waveform amplitude is very low, compared with the preset test audio for test, and the loudness of the preset test audio is relatively large, namely the waveform amplitude is relatively high; the scheme is to distinguish the bottom noise from the preset test audio by the amplitude of the waveform. And judging whether the Bluetooth audio equipment has abnormal playing according to the method. The preset test audio is sine wave audio used for testing the Bluetooth audio equipment and is set in advance by a person skilled in the art.
And step S300, comparing the collected audio signals with the background noise value, and determining whether the Bluetooth audio equipment has abnormal playing according to a comparison result.
In this embodiment, after the background noise value of the bluetooth audio device and the audio signal of the preset test audio are acquired respectively, the audio signal and the background noise value are compared, and whether the bluetooth audio device has abnormal playing is determined according to the comparison result. Specifically, if the bluetooth audio device has no abnormal playing, the loudness of the preset test audio is far greater than the bottom noise, so that the peak value of the audio signal waveform is far greater than the bottom noise value, and the smooth preset test audio can be heard by the human ear; correspondingly, if the situation that the waveform of the audio signal is continuously lower than the background noise value for 30ms occurs in the playing process of the preset test audio, the situation that the Bluetooth audio equipment has playing anomalies such as clamping and the like can be obviously perceived by the human ear, so that the Bluetooth audio equipment is judged to have the playing anomalies.
Through above-mentioned technical scheme, can carry out automated collection and analysis to bluetooth audio equipment's audio signal through simple and easy equipment and lower cost to judge whether audio product broadcast appears blocking and can't guarantee the problem of persistence, accuracy through the long-time listening of people's ear.
In an embodiment, the step of comparing the collected audio signal with the background noise value and determining whether the bluetooth audio device has abnormal playing according to the comparison result includes:
Acquiring an audio signal peak value in the audio signal;
and comparing the audio signal peak value with the background noise value to determine whether the Bluetooth audio device has abnormal playing.
In this embodiment, after the background noise value of the bluetooth audio device is obtained and the audio signals of the preset test audio are collected, the audio signal peak value in the audio signals is obtained, and the audio signal peak value and the background noise value are compared to determine whether the bluetooth audio device has abnormal playing. Specifically, since the preset test audio is sine wave audio, the waveform of the preset test audio has a peak, the amplitude of the preset test audio peak is an audio signal peak, and after the audio signal peak is obtained, the audio signal peak and the background noise value are compared to determine whether the Bluetooth audio equipment has abnormality.
In an embodiment, the process of obtaining the audio signal is based on python pyaudio library to obtain the audio output stream of the audio product by using the sound card, and the configuration parameters are the same, that is, the sound card number is the number of the MAYA44, the format is pyaudio.paint16, the channel is mono, the baud rate is 44100, and the designated buffer frame number is 3072. In this embodiment, in order to prevent buffer data from overflowing, data in the buffer is added to the queue in the form of an array during the process of collecting the audio signal. Specifically, the available sound card of the test computer needs to be traversed firstly, the MAYA44 sound card is found, the audio signal of the Bluetooth audio device is obtained in real time through the MAYA44 sound card and is temporarily stored in the buffer area, the data stream of the buffer area is converted into short arrays each time the data of the buffer area is full, and the short arrays are stored in the Queue of the Queue, so that the short arrays in the Queue of the Queue are used in the subsequent process to compare with the background noise value so as to judge whether the Bluetooth audio device has abnormal playing.
In one embodiment, the step of comparing the audio signal peak value with the background noise value to determine whether the bluetooth audio device has a playback anomaly comprises:
sequentially detecting whether an audio signal peak value is smaller than or equal to the background noise value;
If the audio signal peak value is detected to be smaller than or equal to the background noise value, continuing to judge whether the audio signal peak value is smaller than or equal to the background noise value continuously exceeds a preset perception duration;
and determining whether the Bluetooth audio equipment has abnormal playing according to whether the audio signal peak value is smaller than or equal to the background noise value and continuously exceeds a preset perception duration.
In this embodiment, because the collected audio signals are stored in the form of an array in the queue, the array is sequentially taken out from the queue for analysis; specifically, after an array is taken out, traversing the array, searching all audio signal peaks in the array, sequentially judging whether the audio signal peaks are smaller than or equal to a background noise value, if not, judging that the audio signal corresponding to the array is abnormal, recording the background noise data index value in the array, and then continuously analyzing other arrays; if the audio signal peak value less than or equal to the background noise value exists in the array, whether the audio signal peak value starts or not is judged, and whether the Bluetooth audio equipment has abnormal playing is judged according to the fact that all the audio signal peak values are less than or equal to the background noise value in the preset sensing time period. The preset sensing duration is a time duration set by a person skilled in the art according to a duration that a user can sense the click. The preset sensing duration may be thirty milliseconds.
In an embodiment, the step of determining whether the bluetooth audio device has a play abnormality according to whether the audio signal peak value is less than or equal to the background noise value continuously exceeds a preset sensing duration includes:
If the audio signal peak value is smaller than or equal to the background noise value and continuously exceeds a preset perception duration, judging that the Bluetooth audio equipment is blocked;
And if the audio signal peak value is smaller than or equal to the background noise value and does not continuously exceed the preset sensing duration, judging that the Bluetooth audio equipment does not have the clamping.
In this embodiment, if the peak value of the audio signal is smaller than or equal to the background noise value only once or several times, it cannot be judged that the bluetooth audio device is stuck according to the peak value, because the bluetooth audio device is judged to be stuck only when the peak value of the audio signal is lower than the background noise value in at least the continuous preset sensing time period, the bluetooth audio device is not stuck because the bluetooth audio device can be identified by the human ear only when the abnormality of the audio signal exceeds the preset sensing time period, and if the abnormality of the audio signal is lower than the preset sensing time period, the human ear cannot be identified, so that the bluetooth audio device is judged to be not stuck.
In an embodiment, if it is detected that the audio signal peak value is less than or equal to the background noise value, the step of continuously determining whether the audio signal peak value is less than or equal to the background noise value continuously exceeds a preset sensing duration includes:
If the audio signal peak value is detected to be smaller than or equal to the background noise value, recording the serial number of the audio signal peak value as an initial serial number;
Continuing to compare the subsequent audio signal peak value with the background noise value, and recording the sequence number of the audio signal peak value with the next audio signal peak value larger than the background noise value as an ending sequence number;
And judging whether the audio signal peak value is smaller than or equal to the background noise value or not continuously exceeds a preset sensing duration according to the difference value between the end sequence number and the initial signal and the sampling frequency.
In this embodiment, if it is detected that the audio signal peak value is smaller than or equal to the background noise value, it is further necessary to determine whether the audio signal peak value is smaller than or equal to the background noise value continuously exceeds a preset sensing duration; specifically, if the audio signal peak value is detected to be smaller than or equal to the background noise value, recording the serial number of the audio signal peak value as an initial serial number; continuing to compare the subsequent audio signal peak value with the background noise value, and recording the sequence number of the audio signal peak value with the next audio signal peak value larger than the background noise value as an ending sequence number; and obtaining a difference value between the ending sequence number and the initial sequence number, dividing the difference value by the sampling frequency to obtain a first quotient value, judging that the Bluetooth audio equipment does not have the clamping and the blocking if the first quotient value is smaller than the preset sensing duration, and judging that the Bluetooth audio equipment has the clamping and the blocking if the first quotient value is larger than or equal to the preset sensing duration. In an embodiment, the baud rate is 44100, that is, the sampling frequency is 44100, the time interval between sampling points is 1/44100 seconds, the detected initial sequence number is a, and the detected end sequence number is b, so when the difference between b and a divided by 44100 is smaller than the preset sensing duration, it is determined that the bluetooth audio device does not have any jamming, and if the first quotient is greater than or equal to the preset sensing duration, it is determined that the bluetooth audio device has jamming.
In an embodiment, the step of sequentially detecting whether there is an audio signal peak value less than or equal to the background noise value includes:
And when the audio signal peak value is detected to be larger than the background noise value for the first time, executing the steps of sequentially detecting whether the audio signal peak value is smaller than or equal to the background noise value.
In this embodiment, after sequentially extracting an array from a queue, traversing the array, searching for a peak value in the array, sequentially determining whether the found peak value exceeds a background noise value, and when detecting that the audio signal peak value is greater than the background noise value for the first time, starting to sequentially detect whether the audio signal peak value is less than or equal to the background noise value. Specifically, when the test mobile phone plays a signal through the bluetooth audio device connected with the bluetooth, a time delay exists for a period of time, and when the test mobile phone is seen from the audio signal, a small section of background noise is first provided, and then the test mobile phone is in a normal positive rotation-like waveform, so that the section of background noise needs to be filtered when the peak value of the audio signal is analyzed. In this way, the accuracy of determining whether the Bluetooth audio device is abnormal is ensured.
In an embodiment, the step of obtaining the background noise value of the bluetooth audio device includes:
Acquiring a background noise signal of Bluetooth audio equipment in real time;
setting the maximum value of the bottom noise signal in the first preset time period as a bottom noise peak value;
And calculating the bottom noise value according to the bottom noise peak value.
In this embodiment, the first preset duration is a duration set by a person skilled in the art in advance and used to obtain the background noise value of the bluetooth audio device, where the first preset duration may be 3 seconds or 5 seconds, and may be specifically adjusted according to the actual situation. In the process of obtaining the background noise value of the Bluetooth audio equipment, firstly, obtaining the maximum value of the background noise signal in the first preset time length, namely a background noise peak value, and calculating the background noise value according to the background noise peak value.
In one embodiment, the python-based pyaudio library uses a sound card to obtain an audio output stream of an audio product in a state where the bluetooth audio device is not playing any audio. Namely, an open method in pyaudio library is called to obtain an audio output stream, and the open method needs to be configured with the following parameters: the sound card number is MAYA44, the format is pyaudio.paInt16, the channel is mono, the baud rate is 44100, and the number of designated buffer frames is 3072. Therefore, in this embodiment, it is necessary to traverse the available sound card of the test computer, find the MAYA44 sound card, obtain the background noise signal of the bluetooth audio device in real time through the MAYA44 sound card and temporarily store the background noise signal in the buffer area, and convert the data stream of the buffer area into short arrays each time the data of the buffer area is full in the background noise signal, and store these short arrays separately, after all the short arrays are obtained, traverse these short arrays, find the maximum value in the short arrays, the maximum value of this first preset duration background noise signal is the background noise peak value, and after obtaining the background noise peak value, calculate the background noise value according to the background noise peak value.
In one embodiment, the step of calculating a base noise value from the base noise peak value comprises:
and multiplying the background noise peak value by a preset multiple to obtain a background noise value.
In this embodiment, the background noise peak value is only the maximum value of the background noise waveform in the first preset time period, and cannot represent the real maximum value of the background noise waveform, so in order to prevent the maximum value of the background noise waveform of the bluetooth audio device from floating up and down in the subsequent playing process, the background noise peak value is multiplied by a preset multiple to obtain the background noise value. Wherein the preset multiple is preset by a person skilled in the art and can be adjusted in real time.
The invention also provides equipment, which comprises a memory, a processor and a Bluetooth audio equipment play abnormality detection control program which is stored in the memory and can run on the processor, wherein the Bluetooth audio equipment play abnormality detection control program is used for executing the method of each embodiment of the invention.
The invention also provides a readable storage medium, on which a detection control program for abnormal playing of the Bluetooth audio device is stored. The readable storage medium includes a computer readable storage medium, which may be a Memory in fig. 1, or may be at least one of a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, and an optical disk, and the computer readable storage medium includes several instructions to cause an internet of things terminal device (which may be a mobile phone, a computer, a server, an internet of things terminal, or a network device) with a processor to perform the method according to the embodiments of the present invention.
In the present invention, the terms "first", "second", "third", "fourth", "fifth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, and the specific meaning of the above terms in the present invention will be understood by those of ordinary skill in the art depending on the specific circumstances.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, the scope of the present invention is not limited thereto, and it should be understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications and substitutions of the above embodiments may be made by those skilled in the art within the scope of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (7)

1. A method for detecting abnormal play of a bluetooth audio device, the method comprising the steps of:
Acquiring a background noise value of Bluetooth audio equipment, wherein the background noise value comprises a noise value of the audio equipment and a noise value of an external environment;
controlling the Bluetooth audio equipment to play preset test audio, and collecting audio signals of the preset test audio, wherein the preset test audio is sine wave audio;
Comparing the collected audio signal with the background noise value, and determining whether the Bluetooth audio equipment has abnormal playing according to a comparison result;
the step of comparing the collected audio signal with the background noise value and determining whether the Bluetooth audio device has abnormal playing according to the comparison result comprises the following steps:
Acquiring all audio signal peaks in the audio signal, wherein the audio signal peaks are amplitudes of peaks of the sine wave audio;
Comparing the audio signal peak value with the background noise value to determine whether the Bluetooth audio device has abnormal playing;
wherein the step of comparing the audio signal peak value with the background noise value to determine whether the bluetooth audio device has a play abnormality comprises:
sequentially detecting whether an audio signal peak value is smaller than or equal to the background noise value;
If the audio signal peak value is detected to be smaller than or equal to the background noise value, continuing to judge whether the audio signal peak value is smaller than or equal to the background noise value continuously exceeds a preset perception duration;
determining whether the Bluetooth audio equipment has abnormal playing according to whether the audio signal peak value is smaller than or equal to the background noise value and continuously exceeds a preset perception duration;
if it is detected that the audio signal peak value is smaller than or equal to the background noise value, the step of continuously judging whether the audio signal peak value is smaller than or equal to the background noise value continuously exceeds a preset sensing duration comprises the following steps:
If the audio signal peak value is detected to be smaller than or equal to the background noise value, recording the serial number of the audio signal peak value as an initial serial number;
Continuing to compare the subsequent audio signal peak value with the background noise value, and recording the sequence number of the audio signal peak value with the next audio signal peak value larger than the background noise value as an ending sequence number;
And judging whether the audio signal peak value is smaller than or equal to the background noise value or not continuously exceeds a preset sensing duration according to the difference value between the ending sequence number and the initial sequence number and the sampling frequency.
2. The method for detecting abnormal playback of a bluetooth audio device according to claim 1, wherein the step of determining whether the bluetooth audio device has abnormal playback according to whether the audio signal peak value is less than or equal to the background noise value continuously exceeds a preset perceived duration comprises:
If the audio signal peak value is smaller than or equal to the background noise value and continuously exceeds a preset perception duration, judging that the Bluetooth audio equipment is blocked;
And if the audio signal peak value is smaller than or equal to the background noise value and does not continuously exceed the preset sensing duration, judging that the Bluetooth audio equipment does not have the clamping.
3. The method for detecting abnormal playback of a bluetooth audio device according to claim 1, wherein the step of sequentially detecting whether the audio signal peak value is less than or equal to the background noise value comprises, before:
And when the detected audio signal peak value is larger than the background noise value, executing the steps of sequentially detecting whether the audio signal peak value is smaller than or equal to the background noise value.
4. The method for detecting playback anomalies in a bluetooth audio device according to claim 1, wherein the step of obtaining a floor noise value for the bluetooth audio device comprises:
Acquiring a background noise signal of Bluetooth audio equipment in real time;
setting the maximum value of the bottom noise signal in the first preset time period as a bottom noise peak value;
And calculating the bottom noise value according to the bottom noise peak value.
5. The method for detecting playback anomalies in a bluetooth audio device according to claim 4, wherein the step of calculating a floor noise value from the floor noise peak value comprises:
and multiplying the background noise peak value by a preset multiple to obtain a background noise value.
6. A bluetooth audio device playback abnormality detection control device comprising a memory, a processor, and a bluetooth audio device playback abnormality detection control program stored on the memory and executable on the processor, the bluetooth audio device playback abnormality detection control program, when executed by the processor, implementing the steps of the bluetooth audio device playback abnormality detection method according to any one of claims 1 to 5.
7. A readable storage medium, wherein a bluetooth audio device playback abnormality detection control program is stored on the readable storage medium, and the bluetooth audio device playback abnormality detection control program, when executed by a processor, implements the steps of the bluetooth audio device playback abnormality detection method as set forth in any one of claims 1 to 5.
CN202111564824.8A 2021-12-20 2021-12-20 Bluetooth audio equipment play abnormity detection method, equipment and readable storage medium Active CN114268893B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111564824.8A CN114268893B (en) 2021-12-20 2021-12-20 Bluetooth audio equipment play abnormity detection method, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111564824.8A CN114268893B (en) 2021-12-20 2021-12-20 Bluetooth audio equipment play abnormity detection method, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114268893A CN114268893A (en) 2022-04-01
CN114268893B true CN114268893B (en) 2024-05-31

Family

ID=80828267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111564824.8A Active CN114268893B (en) 2021-12-20 2021-12-20 Bluetooth audio equipment play abnormity detection method, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114268893B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000043659A (en) * 1998-12-29 2000-07-15 전주범 Device and method for detecting quality of image and sound on vcr videotape
CN104661169A (en) * 2013-11-25 2015-05-27 深圳中电长城信息安全系统有限公司 Audio testing method and device
CN106375591A (en) * 2016-09-29 2017-02-01 维沃移动通信有限公司 Method for detecting audio input device, and mobile terminal
CN107728990A (en) * 2017-09-30 2018-02-23 努比亚技术有限公司 A kind of audio frequency playing method, mobile terminal and computer-readable recording medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20000043659A (en) * 1998-12-29 2000-07-15 전주범 Device and method for detecting quality of image and sound on vcr videotape
CN104661169A (en) * 2013-11-25 2015-05-27 深圳中电长城信息安全系统有限公司 Audio testing method and device
CN106375591A (en) * 2016-09-29 2017-02-01 维沃移动通信有限公司 Method for detecting audio input device, and mobile terminal
CN107728990A (en) * 2017-09-30 2018-02-23 努比亚技术有限公司 A kind of audio frequency playing method, mobile terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN114268893A (en) 2022-04-01

Similar Documents

Publication Publication Date Title
CN110719461B (en) Audio and video equipment testing method and device and computer readable storage medium
CA2537200A1 (en) Audio based methods and apparatus for detecting a channel change event
US20170070305A1 (en) Real-time audience attention measurement and dashboard display
US20110060432A1 (en) Method for testing audio function of computer
CN108124042B (en) Device fault detection method and device and mobile terminal
US9886238B2 (en) Method, system and computer storage medium for detecting an audio input interface
CN113259832B (en) Microphone array detection method and device, electronic equipment and storage medium
CN205812392U (en) Sound boxes detecting device
CN109547910A (en) Electronic equipment acoustic assembly performance test methods, device, equipment and storage medium
CN112017693A (en) Audio quality evaluation method and device
CN106534980A (en) Anomaly detection method for audio processing system and logging method and device
CN111182434A (en) Conference system microphone anomaly detection method, conference system and test system
CN106771453B (en) Testing method and device for oscilloscope
CN115604621A (en) Earphone testing method, device, equipment and computer readable storage medium
CN102811386B (en) Recording device, media server, recording method and system
CN114268893B (en) Bluetooth audio equipment play abnormity detection method, equipment and readable storage medium
CN111491248A (en) Audio detection system and audio detection method of electronic product
CN110430519A (en) A kind of acoustics of intelligent sound box is tested automatically and analysis system and method
CN108848411B (en) System and method for defining program boundaries and advertisement boundaries based on audio signal waveforms
CN112135235B (en) Quality detection method, system and computer readable storage medium
CN111163310B (en) Television audio test method, device, equipment and computer readable storage medium
CN113225659A (en) Equipment test method and electronic equipment
CN111148005B (en) Method and device for detecting mic sequence
CN107920245B (en) A kind of method and apparatus of detection video playing starting time
CN113593536B (en) Device and system for detecting voice recognition accuracy

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant