CN114268893A - Method and device for detecting abnormal playing of Bluetooth audio device and readable storage medium - Google Patents

Method and device for detecting abnormal playing of Bluetooth audio device and readable storage medium Download PDF

Info

Publication number
CN114268893A
CN114268893A CN202111564824.8A CN202111564824A CN114268893A CN 114268893 A CN114268893 A CN 114268893A CN 202111564824 A CN202111564824 A CN 202111564824A CN 114268893 A CN114268893 A CN 114268893A
Authority
CN
China
Prior art keywords
value
audio signal
background noise
peak value
bluetooth audio
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.)
Granted
Application number
CN202111564824.8A
Other languages
Chinese (zh)
Other versions
CN114268893B (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

Images

Landscapes

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

Abstract

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

Description

Method and device for detecting abnormal playing of Bluetooth audio device 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 equipment on the market are more and more, and the functions are more and more abundant; in order to strictly control the quality of the 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 is not abnormally jammed during the playing process.
There are two common methods of listening tests: the first is to perform listening tests manually, which is only suitable for the conditions of few test times and short duration requirement, once the product needs to perform pressure tests, testers cannot ensure the accuracy of listening tests under multiple and long-time tests, and the manual tests have limited time and cannot perform continuous tests for a long time, so that the manual tests cannot meet the listening requirements of pressure testing Bluetooth audio equipment. The second is to record the specific audio played by the Bluetooth audio device in a sound insulation room, and then analyze the recorded audio file to judge whether an abnormal blocking condition occurs. The second method is a main method for audio analysis of current audio products, which can ensure the test quality and the test duration, and has the disadvantages of high cost for environment construction and maintenance, and generally records and analyzes the audio for a long time, so that the problem is difficult to be immediately processed when the problem occurs, but the system version is updated quickly in the research and development process, and the method cannot ensure the timeliness of problem processing.
Disclosure of Invention
The invention provides a method and a device for detecting abnormal playing of a Bluetooth audio device and a readable storage medium, and aims to solve the technical problem that the accuracy and the persistence cannot be ensured in the listening test process of the Bluetooth audio device.
In order to achieve the above object, the present invention provides a method for detecting abnormal playing of a bluetooth audio device, comprising the following steps:
acquiring a background noise value of the Bluetooth audio equipment;
controlling the Bluetooth audio equipment to play a preset test audio and collecting an audio signal of the preset test audio;
and comparing the acquired audio signal with the background noise value, and determining whether the Bluetooth audio equipment has abnormal playing according to a comparison result.
Optionally, all audio signal peaks in the audio signal are obtained;
and comparing the audio signal peak value with the background noise value to determine whether the Bluetooth audio equipment has abnormal playing.
Optionally, 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, continuously judging whether the audio signal peak value is smaller than or equal to the background noise value and continuously exceeds a preset sensing time length;
and determining whether the Bluetooth audio equipment has abnormal playing according to whether the audio signal peak value is less than or equal to the background noise value and continuously exceeds a preset sensing time length.
Optionally, if the audio signal peak value is less than or equal to the background noise value and continuously exceeds a preset sensing time length, it is determined that the bluetooth audio device is stuck;
and if the audio signal peak value is less than or equal to the background noise value and does not continuously exceed the preset sensing time length, judging that the Bluetooth audio equipment is not blocked.
Optionally, if it is detected that an audio signal peak value is smaller than or equal to the background noise value, recording a sequence number of the audio signal peak value as an initial sequence number;
continuously comparing the subsequent audio signal peak value with the background noise value, and recording the serial number of the audio signal peak value of which the next audio signal peak value is greater than the background noise value as an ending serial number;
and judging whether the peak value of the audio signal is less than or equal to the background noise value and continuously exceeds a preset sensing time length or not according to the difference value between the ending sequence number and the initial signal and the sampling frequency.
Optionally, when it is detected that the audio signal peak value is greater than the noise floor value, the step of sequentially detecting whether the audio signal peak value is less than or equal to the noise floor value is performed.
Optionally, acquiring a background noise signal of the Bluetooth audio equipment in real time;
setting the maximum value of the bottom noise signal in the first preset time length as a bottom noise peak value;
and calculating a bottom noise value according to the bottom noise peak value.
Optionally, the background noise peak value is multiplied 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 abnormal playing of a bluetooth audio device includes a memory, a processor, and a program for detecting abnormal playing of the bluetooth audio device, which is stored in the memory and can be run on the processor, and when the program for detecting abnormal playing of the bluetooth audio device is executed by the processor, the method for detecting abnormal playing of the bluetooth audio device is implemented.
In order to achieve the above object, the present application further provides a readable storage medium, where a control program for detecting abnormal playing of a bluetooth audio device is stored on the readable storage medium, and when the control program for detecting abnormal playing of the bluetooth audio device is executed by a processor, the method for detecting abnormal playing of the bluetooth audio device is implemented.
In the technical scheme, a bottom noise value of the Bluetooth audio equipment is obtained, the Bluetooth audio equipment is controlled to play a preset test audio, and an audio signal of the preset test audio is collected; and then comparing the acquired audio signal with the background noise value, and determining whether the Bluetooth audio equipment has abnormal playing according to the comparison result. Through this application, the user can be based on whether there is the anomaly in the comparison analysis bluetooth audio equipment to audio signal and end noise value, with artifical listening test among the prior art and in the soundproof room listening test compare, this application technical scheme can pass through simple and easy equipment and lower cost, audio signal to bluetooth audio equipment carries out automatic acquisition and analysis, judge through long-time listening of people's ear whether the audio product broadcast appears the card and pause and can't guarantee the persistence, the problem of accuracy, promote the accuracy and the persistence of listening test.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a schematic block diagram illustrating a method for detecting abnormal playback 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 abnormal playback of 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 merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of a control device for detecting abnormal playing of a bluetooth audio device according to various embodiments of the present invention. The control device for detecting the 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 those shown, or combine certain components, or a different arrangement of components. The processor 03 is connected to the memory 02 and the execution module 01, respectively, a detection control program for detecting abnormal playing of the bluetooth audio device is stored in the memory 02, and the detection control program for detecting abnormal playing of the bluetooth audio device is executed by the processor 03 at the same time.
The execution module 01 can control the bluetooth audio equipment to play a preset test audio and collect an audio signal of the preset test audio; and comparing the acquired audio signal with a background noise value, determining whether the Bluetooth audio device has abnormal playing according to a comparison result, and feeding back the information to the processor 03.
The memory 02 may be used to store 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, or the like. Further, the 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, connects various parts of the whole internet of things terminal by using various interfaces and lines, and executes various functions and processes data of the internet of things terminal by running or executing software programs and/or modules stored in the memory 02 and calling data stored in the memory 02, thereby integrally monitoring the detection control device for abnormal playing of the bluetooth audio device. Processor 03 may include one or more processing units; preferably, the processor 03 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 03.
Those skilled in the art will appreciate that the configuration of the control device for detecting playback anomalies in a bluetooth audio device shown in fig. 1 does not constitute a limitation of the device, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
Various embodiments of the method of the present invention are presented in terms of the above-described hardware architecture.
At present, the types of Bluetooth audio equipment on the market are more and more, and the functions are more and more abundant; in order to strictly control the quality of the 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 is not abnormally jammed during the playing process.
In the prior art, there are two common listening test methods: the first is to perform listening tests manually, which is only suitable for the conditions of few test times and short duration requirement, once the product needs to perform pressure tests, testers cannot ensure the accuracy of listening tests under multiple and long-time tests, and the manual tests have limited time and cannot perform continuous tests for a long time, so that the manual tests cannot meet the listening requirements of pressure testing Bluetooth audio equipment. The second is to record the specific audio played by the Bluetooth audio device in a sound insulation room, and then analyze the recorded audio file to judge whether an abnormal blocking condition occurs. The second method is a main method for audio analysis of current audio products, which can ensure the test quality and the test duration, and has the disadvantages of high cost for environment construction and maintenance, and generally records and analyzes the audio for a long time, so that the problem is difficult to be immediately processed when the problem occurs, but the system version is updated quickly in the research and development process, and the method cannot ensure the timeliness of problem processing.
In order to solve the above problem, the present application provides a method for detecting abnormal playing of a bluetooth audio device, and referring to fig. 2, in a first embodiment of the method for detecting abnormal playing of a bluetooth audio device according to the present invention, the method for detecting abnormal playing of a bluetooth audio device includes:
step S100, acquiring a background noise value of the Bluetooth audio equipment;
before testing the bluetooth audio device, a test environment needs to be established, and in some embodiments, as shown in fig. 3, the test environment includes the bluetooth audio device to be tested, a test mobile phone, a test computer, a sound card, and a serial port board; the test mobile phone is connected with the test computer, the sound card is connected with the test computer, the test mobile phone of the Bluetooth audio device is connected with Bluetooth, the Bluetooth audio device is connected with the test computer through the serial port plate, 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 that a loudspeaker of the Bluetooth audio device is detached and a lead of the Bluetooth audio device is connected with an IN port of the sound card. Under the connection mode, the testing computer can control the testing mobile phone and the Bluetooth audio equipment according to the sending instruction of the test case; and the sound card can collect the test signal of the Bluetooth audio device under the condition of minimum noise.
The above connection mode and test environment are only used for providing support for testing the bluetooth audio device, and are not limited to specific limitations herein.
In this embodiment, after the connection is performed in the above manner, the background noise value of the bluetooth audio device is first obtained. The bottom noise value is a value calculated by a person skilled in the art according to the tested bottom noise. Specifically, since only the bottom noise exists in the bluetooth audio device when the test computer does not control the bluetooth audio device to play any audio, the bottom noise generally includes both the sound device noise and the noise of the external environment.
Step S200, controlling the Bluetooth audio equipment to play a preset test audio and collecting an audio signal of the preset test audio;
in the embodiment, after the background noise value of the bluetooth audio device is obtained, the bluetooth audio device is controlled to play the preset test audio, and the played audio signal is collected; when the Bluetooth audio equipment plays the preset test audio, the Bluetooth audio equipment still has bottom noise, but compared with the preset test audio for test, the loudness of the bottom noise is very small, namely the waveform amplitude is also very low, 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 whether the Bluetooth audio equipment has abnormal playing is judged according to the judgment result. The preset test audio is sine wave audio which is set in advance by a person skilled in the art and used for testing the Bluetooth audio equipment.
And step S300, comparing the acquired audio signal with the background noise value, and determining whether the Bluetooth audio equipment has abnormal playing according to the comparison result.
In this embodiment, after the noise floor value of the bluetooth audio device and the audio signal of the preset test audio are acquired and obtained, the audio signal and the noise floor value are compared, and whether the bluetooth audio device is abnormal in 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 human ear can hear the smooth preset test audio; correspondingly, if the audio signal waveform lasts for 30ms and is lower than the background noise value in the playing process of the preset test audio, the human ear can obviously perceive the abnormal playing conditions of the Bluetooth audio equipment, such as jamming, and the like, so that the Bluetooth audio equipment is judged to have abnormal playing.
Through above-mentioned technical scheme, can carry out automated acquisition and analysis to bluetooth audio equipment's audio signal through simple and easy equipment and lower cost to solve and judge through the long-time listening of people's ear whether the audio product broadcast appears the card and pause can't guarantee the problem of persistence, accuracy.
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 equipment has abnormal playing.
In this embodiment, after obtaining the background noise value of the bluetooth audio device and acquiring the audio signals of the preset test audio, the audio signal peak values in the audio signals are obtained, and the audio signal peak values are compared with the background noise value to determine whether the bluetooth audio device has abnormal playing. Specifically, the preset test audio is sine wave audio, so that a wave peak exists in the waveform of the preset test audio, the amplitude of the preset test audio wave peak is an audio signal peak value, and after the audio signal peak value is obtained, the audio signal peak value is compared with a background noise value to determine whether the Bluetooth audio device is abnormal.
In an embodiment, as in the process of obtaining the noise floor value, the process of obtaining the audio signal is also to obtain an audio output stream of the audio product by using a sound card based on a python pyaudio library, and the configuration parameters are also the same, that is, the serial number of the sound card is MAYA44, the format is pyaudio. paint16, the sound channel is monaural, the baud rate is 44100, and the specified buffer frame number is 3072. In this embodiment, in order to prevent the data in the buffer from overflowing, the data in the buffer is added to the queue in an array form during the process of acquiring the audio signal. Specifically, it is necessary to traverse the available sound card of the test computer, find the MAYA44 sound card, obtain the audio signal of the bluetooth audio device in real time through the MAYA44 sound card and temporarily store the audio signal in the buffer, and convert the data stream of the buffer into short arrays whenever the data in the buffer is full, and store the short arrays in the Queue, so that the short arrays in the Queue are used in the subsequent process to compare with the background noise value to determine whether the bluetooth audio device has an abnormal playing.
In one embodiment, the step of comparing the audio signal peak value with the noise floor value to determine whether the bluetooth audio device has a playback anomaly comprises:
sequentially detecting whether the audio signal peak value is smaller than or equal to the background noise value or not;
if the audio signal peak value is detected to be smaller than or equal to the background noise value, continuously judging whether the audio signal peak value is smaller than or equal to the background noise value and continuously exceeds a preset sensing time length;
and determining whether the Bluetooth audio equipment has abnormal playing according to whether the audio signal peak value is less than or equal to the background noise value and continuously exceeds a preset sensing time length.
In this embodiment, since the acquired audio signals are stored in the queue in the form of an array, 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 peak values in the array, sequentially judging whether the audio signal peak values are smaller than or equal to a bottom noise value, if the audio signal peak values smaller than or equal to the bottom noise value do not exist in the array, judging that the audio signals corresponding to the array are abnormal, recording the bottom noise data index values in the array, and then continuously analyzing other arrays; if the audio signal peak value smaller than or equal to the bottom noise value exists in the array, whether the audio signal peak value starts or not needs to be judged, and all the audio signal peak values are smaller than or equal to the bottom noise value in the later preset sensing time length, and whether the Bluetooth audio equipment has abnormal playing is judged according to the judgment. The preset sensing time length is a time length set by a person skilled in the art according to the time length in which the user can sense the stuck state. The preset sensing duration may be thirty milliseconds.
In one embodiment, the step of determining whether the bluetooth audio device has a playback abnormality according to whether the audio signal peak value is less than or equal to the noise floor value for more than a preset sensing duration includes:
if the audio signal peak value is less than or equal to the background noise value and continuously exceeds a preset sensing time length, judging that the Bluetooth audio equipment is blocked;
and if the audio signal peak value is less than or equal to the background noise value and does not continuously exceed the preset sensing time length, judging that the Bluetooth audio equipment is not blocked.
In this embodiment, if the peak value of the audio signal is less than or equal to the background noise value only once or several times, it cannot be determined that the bluetooth audio device is stuck, because it can be determined that the bluetooth audio device is stuck only when the peak value of the audio signal in at least the continuous preset sensing duration is lower than the background noise value, because it can be recognized by the human ear only when the abnormality of the audio signal exceeds the preset sensing duration, and because it cannot be recognized by the human ear when the abnormality of the audio signal is lower than the preset sensing duration, it is determined that the bluetooth audio device is not stuck.
In an embodiment, the step of continuously determining whether the audio signal peak value is less than or equal to the background noise value for more than a preset sensing duration if it is detected that the audio signal peak value is less than or equal to the background noise value 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;
continuously comparing the subsequent audio signal peak value with the background noise value, and recording the serial number of the audio signal peak value of which the next audio signal peak value is greater than the background noise value as an ending serial number;
and judging whether the peak value of the audio signal is less than or equal to the background noise value and continuously exceeds a preset sensing time length or not according to the difference value between the ending 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 determined whether the audio signal peak value is smaller than or equal to the background noise value and 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; continuously comparing the subsequent audio signal peak value with the background noise value, and recording the serial number of the audio signal peak value of which the next audio signal peak value is greater than the background noise value as an ending serial number; and solving 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, if the first quotient is less than the preset sensing time length, judging that the Bluetooth audio equipment is not blocked, and if the first quotient is greater than or equal to the preset sensing time length, judging that the Bluetooth audio equipment is blocked. In an embodiment, the baud rate is 44100, that is, the sampling frequency is 44100, the time interval between the sampling points is 1/44100 seconds, the detected initial sequence number is a, and the detected end sequence number is b, therefore, when a first quotient obtained by dividing a difference value between b and a by 44100 is smaller than a preset sensing duration, it is determined that the bluetooth audio device is not stuck, and if the first quotient is greater than or equal to the preset sensing duration, it is determined that the bluetooth audio device is stuck.
In one embodiment, the step of sequentially detecting whether the audio signal peak value is smaller than or equal to the noise floor value comprises:
and when the audio signal peak value is detected to be larger than the background noise value for the first time, executing the step of sequentially detecting whether the audio signal peak value is smaller than or equal to the background noise value.
In this embodiment, after the arrays are sequentially extracted from the queue, the arrays are traversed, the peak values in the arrays are searched, whether the searched peak values exceed the background noise value is sequentially determined, and when it is first detected that the audio signal peak value is greater than the background noise value, whether the audio signal peak value is smaller than or equal to the background noise value is sequentially detected. Specifically, when the test handset plays a signal through a bluetooth audio device connected to the bluetooth audio device, there is a time delay, and when viewed from the audio signal, there is a small section of background noise first, and then a normal sine-like waveform is obtained, so that the background noise needs to be filtered when the peak value of the audio signal is analyzed. By the method, the accuracy of judging whether the Bluetooth audio equipment is abnormal or not is guaranteed.
In one embodiment, the step of obtaining the noise floor value of the bluetooth audio device includes:
acquiring a background noise signal of the Bluetooth audio equipment in real time;
setting the maximum value of the bottom noise signal in the first preset time length as a bottom noise peak value;
and calculating a bottom noise value according to the bottom noise peak value.
In this embodiment, the first preset duration is set in advance by a person skilled in the art, and is used to obtain a duration of the background noise value of the bluetooth audio device, where the first preset duration may be 3 seconds or 5 seconds, and specifically may be adjusted according to an actual situation. In the process of obtaining the background noise value of the bluetooth audio device, firstly, the maximum value of the background noise signal in a first preset time duration, namely a background noise peak value, is obtained, and the background noise value is calculated according to the background noise peak value.
In one embodiment, a pyaudio library based on python obtains an audio output stream of an audio product using a sound card in a state where no audio is played by a bluetooth audio device. That is, an open method in the 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 serial number is set to be MAYA44, the format is pyaudio. paInt16, the sound channel is single channel, the baud rate is 44100, and the designated buffer frame number is 3072. Therefore, in this embodiment, it is necessary to traverse the available sound card of the testing computer, find the MAYA44 sound card, obtain the bottom noise signal of the bluetooth audio device in real time through the MAYA44 sound card, and temporarily store the bottom noise signal in the buffer, convert the data stream of the buffer into short arrays in the bottom noise signal whenever the data in the buffer is full, store the short arrays separately, traverse the short arrays after all the short arrays are obtained, find the maximum value in the short arrays, the maximum value of the bottom noise signal in the first preset duration is the bottom noise peak value, and after the bottom noise peak value is obtained, calculate the bottom noise value according to the bottom noise peak value.
In one embodiment, the step of calculating a bottom noise value according to the bottom 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 base noise peak value is only the maximum value of the base noise waveform in the first preset duration, and cannot represent the true maximum value of the base noise waveform, so that in order to prevent the maximum value of the base noise waveform of the bluetooth audio device from floating up and down in the subsequent playing process, the base noise peak value is multiplied by a preset multiple to obtain the base 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 detection control program of abnormal playing of the Bluetooth audio equipment, wherein the detection control program of abnormal playing of the Bluetooth audio equipment is stored on the memory and can run on the processor, and the detection control program of abnormal playing of the Bluetooth audio equipment is used for executing the method in each embodiment of the invention.
The invention also provides a readable storage medium on which a control program for detecting abnormal playing of the Bluetooth audio device is stored. The readable storage medium includes a computer-readable storage medium, which may be the Memory in fig. 1, and may also 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 enable 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) having a processor to execute the method according to the embodiments of the present invention.
In the present invention, the terms "first", "second", "third", "fourth" and "fifth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, and those skilled in the art can understand the specific meanings of the above terms in the present invention according to specific situations.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean 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 invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer 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, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although the embodiment of the present invention has been shown and described, the scope of the present invention is not limited thereto, it should be understood that the above embodiment is illustrative and not to be construed as limiting the present invention, and that those skilled in the art can make changes, modifications and substitutions to the above embodiment within the scope of the present invention, and that these changes, modifications and substitutions should be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for detecting abnormal playing of a Bluetooth audio device is characterized by comprising the following steps:
acquiring a background noise value of the Bluetooth audio equipment;
controlling the Bluetooth audio equipment to play a preset test audio and collecting an audio signal of the preset test audio;
and comparing the acquired audio signal with the background noise value, and determining whether the Bluetooth audio equipment has abnormal playing according to a comparison result.
2. The method for detecting abnormal playing of a bluetooth audio device as claimed in claim 1, wherein the step of comparing the collected audio signal with the noise floor value and determining whether the bluetooth audio device has abnormal playing according to the comparison result comprises:
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 equipment has abnormal playing.
3. The method of claim 2, wherein the step of comparing the audio signal peak value with the noise floor value to determine whether the playback abnormality of the bluetooth audio device exists comprises:
sequentially detecting whether the audio signal peak value is smaller than or equal to the background noise value or not;
if the audio signal peak value is detected to be smaller than or equal to the background noise value, continuously judging whether the audio signal peak value is smaller than or equal to the background noise value and continuously exceeds a preset sensing time length;
and determining whether the Bluetooth audio equipment has abnormal playing according to whether the audio signal peak value is less than or equal to the background noise value and continuously exceeds a preset sensing time length.
4. The method for detecting abnormal playing of a bluetooth audio device as claimed in claim 3, wherein the step of determining whether the bluetooth audio device has abnormal playing according to whether the peak value of the audio signal is less than or equal to the background noise value for more than a preset sensing duration comprises:
if the audio signal peak value is less than or equal to the background noise value and continuously exceeds a preset sensing time length, judging that the Bluetooth audio equipment is blocked;
and if the audio signal peak value is less than or equal to the background noise value and does not continuously exceed the preset sensing time length, judging that the Bluetooth audio equipment is not blocked.
5. The method as claimed in claim 3, wherein 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 if it is detected that the audio signal peak value is less than or equal to the background noise value comprises:
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;
continuously comparing the subsequent audio signal peak value with the background noise value, and recording the serial number of the audio signal peak value of which the next audio signal peak value is greater than the background noise value as an ending serial number;
and judging whether the peak value of the audio signal is less than or equal to the background noise value and continuously exceeds a preset sensing time length or not according to the difference value between the ending sequence number and the initial signal and the sampling frequency.
6. The method for detecting abnormal playing of Bluetooth audio equipment as claimed in claim 3, wherein said step of sequentially detecting whether there is an audio signal peak value less than or equal to said noise floor value comprises:
and when the audio signal peak value is detected to be larger than the background noise value, executing the step of sequentially detecting whether the audio signal peak value is smaller than or equal to the background noise value.
7. The method for detecting abnormal playing of a bluetooth audio device as claimed in claim 1, wherein the step of obtaining the noise floor value of the bluetooth audio device comprises:
acquiring a background noise signal of the Bluetooth audio equipment in real time;
setting the maximum value of the bottom noise signal in the first preset time length as a bottom noise peak value;
and calculating a bottom noise value according to the bottom noise peak value.
8. The method for detecting playback anomalies in a bluetooth audio device as claimed in claim 7, wherein the step of calculating a floor noise value based on the floor noise peak values includes:
and multiplying the background noise peak value by a preset multiple to obtain a background noise value.
9. A device for detecting and controlling abnormal playback of a bluetooth audio device, comprising a memory, a processor, and a program for detecting abnormal playback of a bluetooth audio device, stored in the memory and executable on the processor, wherein the program for detecting abnormal playback of a bluetooth audio device when executed by the processor implements the steps of the method for detecting abnormal playback of a bluetooth audio device as claimed in any one of claims 1 to 8.
10. A readable storage medium, wherein a bluetooth audio device playback abnormality detection control program is stored on the readable storage medium, and when executed by a processor, the bluetooth audio device playback abnormality detection control program implements the steps of the bluetooth audio device playback abnormality detection method according to any one of claims 1 to 8.
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 true CN114268893A (en) 2022-04-01
CN114268893B 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
CN114268893B (en) 2024-05-31

Similar Documents

Publication Publication Date Title
CN110719461B (en) Audio and video equipment testing method and device and computer readable storage medium
CN109547910B (en) Electronic equipment acoustic assembly performance testing method, device, equipment and storage medium
CA2537200A1 (en) Audio based methods and apparatus for detecting a channel change event
US20110060432A1 (en) Method for testing audio function of computer
CN205812392U (en) Sound boxes detecting device
CN112017693B (en) Audio quality assessment method and device
CN113259832B (en) Microphone array detection method and device, electronic equipment and storage medium
CN111918196B (en) Method, device and equipment for diagnosing recording abnormity of audio collector and storage medium
CN115604621A (en) Earphone testing method, device, equipment and computer readable storage medium
CN106771453B (en) Testing method and device for oscilloscope
CN102811386B (en) Recording device, media server, recording method and system
CN110430519A (en) A kind of acoustics of intelligent sound box is tested automatically and analysis system and method
CN111491248A (en) Audio detection system and audio detection method of electronic product
CN111182434A (en) Conference system microphone anomaly detection method, conference system and test system
CN112135235B (en) Quality detection method, system and computer readable storage medium
CN114268893B (en) Bluetooth audio equipment play abnormity detection method, equipment and readable storage medium
CN113225659A (en) Equipment test method and electronic equipment
CN113593536B (en) Device and system for detecting voice recognition accuracy
CN109525916A (en) A kind of intelligence microphone control method and device
CN111148005B (en) Method and device for detecting mic sequence
CN113543005B (en) Audio device detection method and system
CN112750458B (en) Touch screen sound detection method and device
CN109391875B (en) Audio debugging method and device, storage medium and processor
JPH06261391A (en) Howling controller
CN116089867A (en) Terminal pickup function evaluation method and device and electronic equipment

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