CN114640939B - Method, device and system for detecting audio playing device and storage medium - Google Patents

Method, device and system for detecting audio playing device and storage medium Download PDF

Info

Publication number
CN114640939B
CN114640939B CN202011489453.7A CN202011489453A CN114640939B CN 114640939 B CN114640939 B CN 114640939B CN 202011489453 A CN202011489453 A CN 202011489453A CN 114640939 B CN114640939 B CN 114640939B
Authority
CN
China
Prior art keywords
audio
playing device
preset
data
sound data
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
CN202011489453.7A
Other languages
Chinese (zh)
Other versions
CN114640939A (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.)
Huizhou BYD Electronic Co Ltd
Original Assignee
Huizhou BYD Electronic 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 Huizhou BYD Electronic Co Ltd filed Critical Huizhou BYD Electronic Co Ltd
Priority to CN202011489453.7A priority Critical patent/CN114640939B/en
Publication of CN114640939A publication Critical patent/CN114640939A/en
Application granted granted Critical
Publication of CN114640939B publication Critical patent/CN114640939B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/03Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
    • G10L25/60Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination for measuring the quality of voice signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Acoustics & Sound (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Computational Linguistics (AREA)
  • Multimedia (AREA)
  • Quality & Reliability (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention provides a detection method, a device, a system and a storage medium of an audio playing device, wherein the method comprises the following steps: controlling the audio playing device to play preset sound data; recording the sound data played by the audio playing device to obtain recording data; judging whether the difference value between the first audio feature of the recording data and the second audio feature of the preset sound data is within a preset range or not; and if the first audio feature and the second audio feature are within the preset range, determining that the audio playing device is abnormally installed. According to the invention, the detection of the audio playing device can be completed rapidly, the manual splitting step is omitted, a great amount of time and labor cost are saved, the detection process is simplified greatly, the detection efficiency is improved, and the normal use of the audio playing device and the external configuration thereof is not influenced.

Description

Method, device and system for detecting audio playing device and storage medium
Technical Field
The present invention relates to the field of audio playback devices, and more particularly, to a method, device, system, and storage medium for detecting an audio playback device.
Background
In the assembly process of the audio playing device, the situation that the anode and the cathode of the audio playing device are connected reversely may occur due to manual errors and the like. Once such a situation occurs, it is difficult for a non-professional to find an abnormality and the quality problem of the audio playback apparatus being easily damaged is caused. At present, the audio playing device is usually required to be disassembled for testing, so that great inconvenience is brought to users, and other devices can be damaged. Particularly, for a vehicle-mounted audio playing device, such as a vehicle-mounted loudspeaker, the vehicle-mounted loudspeaker also needs to disassemble the vehicle interior, and then the vehicle interior is judged in an auxiliary way by means of hardware testing equipment, or the color of the wire harness is observed manually, and the like, so that the detection method is complex, the operation is inconvenient, and the damage to the vehicle interior or other parts is possibly caused.
Disclosure of Invention
The embodiment of the invention provides a detection method of an audio playing device, which is used for at least solving one of the problems that the detection method of the audio playing device is complex and other devices are damaged.
According to a first aspect of the present invention, there is provided a method for detecting an audio playback apparatus, including:
controlling the audio playing device to play preset sound data;
recording the sound data played by the audio playing device to obtain recording data;
judging whether the difference value between the first audio feature of the recording data and the second audio feature of the preset sound data is within a preset range or not;
and if the first audio feature and the second audio feature are within the preset range, determining that the audio playing device is abnormally installed.
Optionally, the method further comprises: filtering the recording data to obtain filtered data;
the first audio characteristic of the recording data comprises a first audio characteristic of the filter data.
Optionally, filtering the recording data to obtain filtered data, including:
and inputting the recording data into a preset FIR band-pass filter for filtering processing, and outputting the filtering data.
Optionally, the center frequency of the preset FIR band-pass filter includes a dominant frequency of the preset sound data.
Optionally, the method further comprises:
performing amplitude-frequency characteristic analysis on the recording data to obtain a first audio characteristic of the recording data; wherein the first audio feature comprises a phase characteristic of the recording data corresponding to a dominant frequency of the preset sound data, and the second audio feature comprises a phase characteristic of the dominant frequency of the preset sound data.
Optionally, the method further comprises:
and acquiring the second audio feature of the preset sound data, or performing amplitude-frequency characteristic analysis on the preset sound data to acquire the second audio feature.
Optionally, the method further comprises:
judging whether the difference value meets an error requirement or not;
and if the difference meets the error requirement, displaying the detection result to a user.
According to a second aspect of the present invention, there is provided a detection apparatus for an audio playback apparatus,
the device comprises:
the control module is used for controlling the audio playing device to play preset sound data;
the recording module is used for recording the sound data played by the audio playing device to obtain recording data;
wherein, the control module is further for:
judging whether the difference value between the first audio feature of the recording data and the second audio feature of the preset sound data is within a preset range or not;
and if the first audio feature and the second audio feature are within the preset range, determining that the audio playing device is abnormally installed.
According to a third aspect of the present invention there is provided a detection system for an audio playback device comprising a memory, a processor and a computer program stored on the memory and running on the processor, the processor implementing the steps of the method of the first aspect when executing the computer program.
According to a fourth aspect of the present invention there is provided a computer storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of the first aspect.
According to the detection method, the detection device, the detection system and the storage medium of the audio playing device, through recording preset audio data played by the audio playing device, comparing recorded data with the preset audio data, and judging whether the audio playing device is abnormally installed or not according to a comparison result. The detection of the audio playing device can be completed quickly without disassembling the audio playing device or the external configuration of the audio playing device, so that the manual disassembling step is omitted, a great amount of time and labor cost are saved, the detection process is greatly simplified, the detection efficiency is improved, and the normal use of the audio playing device and the external configuration thereof is not influenced.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent from the following more particular description of embodiments of the present invention, as illustrated in the accompanying drawings. The accompanying drawings are included to provide a further understanding of embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, and not constitute a limitation to the invention. In the drawings, like reference numerals generally refer to like parts or steps.
Fig. 1 is a schematic flow chart of a detection method of an audio playback apparatus according to an embodiment of the present invention;
fig. 2 is an example of a detection method of an audio playback apparatus according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of a detection device of an audio playback device according to an embodiment of the present application;
fig. 4 is a schematic block diagram of a detection system of an audio playback device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. It should be apparent that the described embodiments are only some embodiments of the present invention and not all embodiments of the present invention, and it should be understood that the present invention is not limited by the example embodiments described herein. Based on the embodiments of the invention described in the present application, all other embodiments that a person skilled in the art would have without inventive effort shall fall within the scope of the invention.
According to an embodiment of the present invention, a method for detecting an audio playback apparatus is provided. Referring to fig. 1, fig. 1 shows a schematic flowchart of a detection method of an audio playback apparatus according to an embodiment of the present invention. As shown in fig. 1, the detection 100 of the audio playback apparatus may include:
step S110, controlling the audio playing device to play preset sound data;
step S120, recording the sound data played by the audio playing device to obtain recording data;
step S130, judging whether the difference value between the first audio feature of the recording data and the second audio feature of the preset sound data is within a preset range;
step S140, if the first audio feature and the second audio feature are within the preset range, determining that the audio playing device is abnormally installed.
The method comprises the steps of controlling an audio playing device to play preset sound data, recording data played by the audio playing device, comparing original preset sound data with recorded data obtained by recording, and if the audio characteristics between the original preset sound data and the recorded data are within a preset range, indicating that the installation of the audio playing device is possibly abnormal. Compared with the traditional detection method, the method provided by the embodiment of the invention has the advantages that the audio playing device or the external configuration of the audio playing device is not required to be disassembled, the detection of the audio playing device is rapidly completed on the premise that the audio playing device and the external configuration of the audio playing device are unchanged, the manual disassembly step is omitted, the detection process is greatly simplified, the detection efficiency is improved, and meanwhile, the normal use of the audio playing device and the external configuration of the audio playing device is not influenced. The method is suitable for being widely applied to any occasion for detecting the audio playing device.
Optionally, the audio playing device includes: and a speaker. Further, it may be a vehicle speaker.
Optionally, in step S110, the controlling the audio playing device to play the preset sound data may be: and the mobile terminal sends the preset sound data to the audio playing device for playing through wired connection or wireless connection. Further, the audio playing device may be controlled by a specific APP in the mobile terminal to play the preset sound data.
In some embodiments, the wired connection may be a connection such as an audio input interface (AUX) or a USB interface, and a data transmission line, and the connection is directly established between the mobile terminal and the audio playing device, and the mobile terminal sends the preset sound data to the audio playing device, and the audio playing device receives and plays the preset sound data.
In some embodiments, the wireless connection may be that the mobile terminal establishes a connection with the audio playing device through bluetooth or WiFi, and sends the preset sound data to the audio playing device for playing.
In some embodiments, the preset sound data may be sound data having preset audio properties. For example, it may have at least one of the following properties: fixed frequency (100 HZ or other mid-low frequency range audible to the ear), a unimodal square wave, voice data at a sampling rate of 44.1KHZ, or a voice size of 80dB.
Optionally, in step S120, recording the sound data played by the audio playing device to obtain recording data may include:
and collecting sound data played by the audio playing device through recording equipment within the preset recording range of the audio playing device to obtain the recording data.
The recording device for recording may be a mobile terminal or a specific APP of the mobile terminal for controlling the audio playing device to play preset sound data, or may be other recording devices. Specifically, a sound collection module (such as a microphone) of the recording device collects sound played by the audio playing device, and generates the recording data.
In some embodiments, the preset recording range may be set according to the configuration or requirement of the detected target audio playing device, which is not limited herein. For example, within 2 cm from the target audio playback device.
In some embodiments, when recording is performed by using a mobile terminal that controls the audio playing device to play preset sound data, the method may include:
when the mobile terminal sends preset sound data to the audio playing device, starting recording; or,
when the mobile terminal sends preset sound data to the audio playing device, starting recording after a first preset time period; or,
when the mobile terminal sends an instruction for playing preset sound data to the audio playing device, starting recording; or,
and after the mobile terminal sends an instruction of playing the preset sound data to the audio playing device and then the second preset time period is set, starting recording.
Therefore, the same mobile terminal is used for controlling the audio playing device to play the preset sound data, the sound played by the audio playing device is recorded to obtain the recording data, and the original preset sound data or the recording data is directly compared and analyzed without moving to the same equipment, so that the detection efficiency is further improved, and the detection process is simplified.
It should be appreciated that the first preset time period and the second preset time period may be set as required, and may be the same or different, which is not limited herein.
In some embodiments, when the device for controlling the audio playing device to play the preset sound data is not the same as the device for recording, the preset sound data may be imported into the recording device for analysis, the recording device may be imported into the device for controlling the audio playing device to play the preset sound data for analysis, and the preset sound data and the recording data may be imported into other suitable computing devices for analysis, which is not limited herein.
In some embodiments, before or during step S120, the method may further comprise: and closing other audio playing devices. Therefore, when the target audio playing device is detected, other audio playing devices can be turned off or set to be mute, so that the detection of the target audio playing device by the other audio playing devices is prevented from being interfered, and the detection accuracy is influenced.
Further, in some embodiments, the turning off of other audio playback devices may be controlled by the mobile terminal or a specific APP in the mobile terminal. For example, in a mobile terminal a particular APP sets other audio playback devices to mute or shut down.
Optionally, before step S130, the method may further include: and filtering the recording data to obtain filtered data.
In some embodiments, filtering the recording data to obtain filtered data includes: and inputting the recording data into a preset FIR (Finite Impulse Response ) band-pass filter for filtering processing, and outputting the filtering data.
Therefore, the recording data is filtered by the FIR band-pass filter, so that the same delay of each frequency is ensured, namely, the phase relative relation among the frequencies is unchanged, so that the original phase frequency characteristic is not distorted, the interference of noise in similar frequency bands in a background environment is eliminated, and the detection accuracy is further improved.
In some embodiments, the center frequency of the preset FIR band-pass filter includes a dominant frequency of the preset sound data. The dominant frequency refers to a frequency with the largest frequency spectrum energy ratio in preset sound data.
Further, in some embodiments, the method further comprises: and acquiring the dominant frequency of the preset sound data, or performing amplitude-frequency characteristic analysis on the preset sound data to obtain the dominant frequency.
When the dominant frequency of the preset sound data is known, the dominant frequency of the preset sound data can be directly obtained, so that amplitude-frequency characteristic analysis of the preset sound data is omitted, the detection process is further simplified, and the detection efficiency is improved.
In some embodiments, the method may further comprise:
when the same preset sound data are adopted for the plurality of audio playing devices respectively and sequentially, amplitude-frequency characteristic analysis can be carried out on the preset sound data only in the process of detecting the first audio playing device, so that dominant frequency of the preset sound data can be obtained; the dominant frequency is stored and is directly used in the subsequent detection process of other audio playing devices, so that the whole detection time is greatly reduced, and the detection efficiency is further improved.
Optionally, before step S130, the method may further include:
and carrying out amplitude-frequency characteristic analysis on the recording data or the filtering data to obtain a first audio characteristic of the recording data.
Specifically, amplitude-frequency characteristic analysis is performed on the recording data or the filtering data to obtain spectrum energy of the recording data or the filtering data, a part of the spectrum energy which is lower than threshold energy is removed, and a first audio characteristic is determined according to the rest part.
In some embodiments, the first audio characteristic may include a phase characteristic of the recording data or the filtering data corresponding to the dominant frequency. Further, the first audio characteristic may comprise a highest phase of the recording data or the filtering data corresponding to the dominant frequency.
In some embodiments, prior to step S130, the method may further comprise:
and acquiring the phase characteristic (namely the second audio characteristic) of the dominant frequency of the preset sound data, or performing amplitude-frequency characteristic analysis on the preset sound data to acquire the phase characteristic (namely the second audio characteristic) of the dominant frequency.
Also, as described above, various attributes of the preset sound data may be known, and when the phase characteristics of the dominant frequency thereof are known, the phase characteristics of the dominant frequency thereof may be directly obtained, thereby omitting the analysis of the amplitude-frequency characteristics of the preset sound data, further simplifying the detection process and improving the detection efficiency.
In some embodiments, the method may further comprise:
when the same preset sound data are adopted for the plurality of audio playing devices in sequence respectively, amplitude-frequency characteristic analysis can be carried out on the preset sound data only in the process of detecting the first audio playing device, so that the phase characteristic of the dominant frequency of the preset sound data can be obtained; and the phase characteristic of the dominant frequency is stored, and is directly used in the subsequent detection process of other audio playing devices, so that the whole detection time is greatly reduced, and the detection efficiency is further improved.
In some embodiments, the second audio feature may comprise a phase characteristic of the dominant frequency in the original preset sound data. Further, the second audio feature may comprise a highest phase of the dominant frequency in the original preset sound data.
In some embodiments, the amplitude-frequency characteristic analysis may include an FFT (Fast Fourier Transform ).
Optionally, in step S130, determining whether the difference between the first audio feature of the recording data and the second audio feature of the preset sound data is within a preset range may include:
calculating a difference between the first audio feature and the second audio feature;
comparing the difference value with the preset range to judge whether the difference value is in the preset range.
In some embodiments, the preset range includes: a phase range centered on pi. For example, [ pi-a, pi+b ], wherein a and b may be the same or different, may be set as required, and are not limited thereto.
Further, the preset range may be pi. That is, when the difference is pi or close to pi, it is indicated that the phase of the original preset sound data is exactly 180 ° different (or close to pi) from the phase of the recording data, that is, the phase is opposite, so that it is known that the polarity of the sound playing device is opposite. When the difference is 0 or near 0, it indicates that the phase of the original preset sound data is the same (or substantially the same) as the phase of the recording data, and at this time, the polarity of the sound playing device is normal.
Optionally, in step S140, determining that the audio playing device is abnormally installed may include: the polarity of the audio playing device is installed wrongly. For example, the positive and negative poles are reversed.
Optionally, the method may further include:
and if the difference value between the first audio feature and the second audio feature is not within the preset range, determining that the audio playing device is normally installed.
In some embodiments, if the difference between the first audio feature and the second audio feature is within a preset error range, it is determined that the positive and negative poles of the audio playing device are installed normally.
Optionally, the method may further include:
judging whether the difference value meets an error requirement or not;
and if the difference meets the error requirement, displaying the detection result to a user.
It should be appreciated that the above determination of whether the difference meets the error requirement may be omitted if the accuracy requirement is not high, which is not limited herein. That is, in some embodiments, after it is determined in step S140 that the audio playing device is installed abnormally or normally, the detection result is directly displayed to the user, without further determining whether the error requirement is met.
In some embodiments, the detection result includes: the audio playing device is abnormally installed or normally installed.
Further, in some embodiments, the display of the detection result to the user may be that the detection result is displayed in an interface of the mobile terminal, and may be supplemented with a sound, a color, or the like.
In some embodiments, the method may further comprise: and if the difference value does not meet the error requirement, detecting the audio playing device again.
In some embodiments, the method may further comprise:
detecting the audio playing device for a plurality of times to obtain a plurality of detection difference values;
calculating a weighted average of the plurality of detected differences;
judging whether the weighted average meets the error requirement;
and if the weighted average meets the error requirement, displaying the detection result to a user.
The weight of each detection error may be set as required when calculating the weighted average of the plurality of detection errors, which is not limited herein. For example, when the weight of each detection error is the same, the weighted average may be an average.
In some embodiments, the method may further comprise: and if the weighted average value does not meet the error requirement, detecting the audio playing device again.
In some embodiments, the error requirement includes: within a permissible preset error range. It should be appreciated that the preset error range may be set as desired, and is not limited herein. Further, the preset error range includes (5% -10%). Pi.
In some embodiments, referring to fig. 2, fig. 2 illustrates an example of a detection method of an audio playback apparatus according to an embodiment of the present invention. As shown in fig. 2, taking an audio playing device as an example of a vehicle-mounted speaker, the method 200 for detecting an audio playing device includes:
s201: opening a specific application in the intelligent terminal (such as a smart phone or intelligent wearable equipment or other handheld terminals), loading preset audio data or data stream (such as one or more of fixed frequency of 100HZ or middle-low frequency range which can be heard by other ears, one section of waveform of single-peak square wave, sampling rate of 44.1KHZ and sound size of 80 dB) for detecting the vehicle-mounted loudspeaker, and broadcasting the preset audio data from the vehicle-mounted loudspeaker. The broadcasting method may include Aux (audio in vehicle), bluetooth connection, or directly broadcasting the preset audio data in the multimedia terminal in vehicle, etc.
S202: and analyzing the amplitude frequency characteristic and the phase frequency characteristic of the original preset audio data to obtain the phase characteristic of the dominant frequency (the frequency spectrum energy of the dominant frequency is the largest) of the original preset audio data, so that the original preset audio data is convenient to serve as a parameter of subsequent comparison analysis.
S203: designing a FIR (Finite Impulse Response ) bandpass filter centered on the dominant frequency; the FIR band-pass filter is a linear phase filter, and can ensure that all frequencies have the same delay, namely the phase relative relation among all frequencies is unchanged, so that signal undistorted is realized, the original phase frequency characteristic is maintained, and further, the interference of noise in similar frequency bands in a background environment is eliminated.
S204: all the speakers except the tested vehicle-mounted speaker in the vehicle-mounted setting can be muted, interference caused by other vehicle-mounted speakers is avoided, and the accuracy of data for subsequent comparison is increased. It should be appreciated that all speakers except the vehicle speaker under test may not be turned off to mute when the accuracy of the test meets the requirements, and no limitation is made herein. The mute of other speakers can be realized by a method of setting a sound field of the vehicle-mounted multimedia terminal and the like.
S205: recording equipment (such as a microphone of an intelligent terminal or other recording equipment) is close to a tested vehicle-mounted loudspeaker to record, if the intelligent terminal is used for recording, the intelligent terminal can be provided with original preset sound data and recording data at the same time, and comparison analysis can be directly carried out without moving the original preset sound data or recording data to the same equipment, so that the detection efficiency is further improved, and the detection process is simplified. The distance difference between the intelligent terminal and the audio data playing device is preferably kept within 2 cm during recording. It should be understood that other recording devices may be used to record the sound of the tested vehicle-mounted speaker, and then the obtained recording data is sent to the terminal device for comparative analysis.
S206: after filtering the recorded data obtained by recording with the bandpass filter designed in S203, FFT (fast fourier transform) is performed to obtain a phase of the recorded data corresponding to the dominant frequency of the original preset sound data. If so, spectrum energy is obtained according to amplitude-frequency characteristics, low-energy data are eliminated, and a proper data set is obtained.
S207: and calculating a difference value between the highest phase in the original preset sound data and the phase corresponding to the dominant frequency in the recording data, if the difference value is very close to pi (namely reverse), indicating that the positive pole and the negative pole of the tested vehicle-mounted loudspeaker are connected reversely, otherwise, normal.
S208: if the difference in step S207 is very close to pi, it is indicated that the positive and negative poles of the tested vehicle-mounted loudspeaker are connected reversely.
S209: if the difference value in the step S207 is not close to pi, the positive and negative poles of the tested vehicle-mounted loudspeaker are normally connected.
S210: and judging whether the error precision of the difference value meets the error requirement. The error of the recording data mainly comprises a system error and a measurement error. Systematic errors, i.e., systematic response delays and delays introduced by the FIR band-pass filter, are fixed, small errors resulting from these factors; the measurement errors are mainly the frequency response performance of the vehicle-mounted loudspeaker, the microphone sound quality of the receiving end and quantization errors existing in the ADC (analog-to-digital signal converter) process. Wherein the measurement error is the dominant error. Accordingly, an error threshold value can be set for the judgment of the difference value in step S207. Due to the different configurations of different intelligent terminals and the reference value pi, the error ratio (for example, 5% -10%) can be set properly. If the error range ratio is too large, the steps S204-S707 can be repeated for a plurality of times, and then the weighted average value determination is carried out.
S211: and displaying the detection result of the detection process on the specific application of the intelligent terminal, if other speakers need to be tested, repeating the flow for the other speakers needing to be tested, and carrying out corresponding configuration change, such as eliminating the mute setting of the speakers needing to be tested, setting mute of the speakers needing not to be tested, and the like.
It can be seen that according to the detection method of the audio playing device of the embodiment of the invention, by recording the preset audio data played by the audio playing device, comparing the recorded data with the preset audio data, and judging whether the audio playing device is abnormally installed according to the comparison result. The detection of the audio playing device can be completed quickly without disassembling the audio playing device or the external configuration of the audio playing device, so that the manual disassembling step is omitted, a great amount of time and labor cost are saved, the detection process is greatly simplified, the detection efficiency is improved, and the normal use of the audio playing device and the external configuration thereof is not influenced.
Referring to fig. 3, fig. 3 shows a schematic block diagram of a detection device of an audio playback device according to an embodiment of the present application. As shown in fig. 3, the detecting device 300 of the audio playing device includes a control module 310 and a recording module 320, wherein,
a control module 310, configured to control the audio playing device to play preset sound data;
the recording module 320 is configured to record the sound data played by the audio playing device, so as to obtain recording data;
wherein, the control module 310 is further configured to:
judging whether the difference value between the first audio feature of the recording data and the second audio feature of the preset sound data is within a preset range or not;
and if the first audio feature and the second audio feature are within the preset range, determining that the audio playing device is abnormally installed.
It should be appreciated that the detection device of the audio playing device performs the respective steps/functions of the detection method of the audio playing device described above in connection with fig. 1 and 2, respectively, and details already described above are omitted.
It is to be understood that fig. 3 is only one illustration of a detection device of an audio playing device according to an embodiment of the present application, and the detection device of the audio playing device according to the embodiment of the present application may include more or fewer functional modules, for example, may further have a communication module, which is not limited in this application.
The embodiment of the application further provides a detection system of an audio playing device, which comprises a memory and a processor, as shown in fig. 4, wherein the memory stores a computer program for being executed by the processor, and when the computer program is executed by the processor, at least part or all of the steps of the method described in any of the foregoing fig. 1 to 2 can be implemented.
The memory and the processor may be connected by a bus, and the detection system of the audio playing device may also have other components and structures as needed, for example as described in connection with fig. 3.
The processor may be, among other things, a Central Processing Unit (CPU), an image processing unit (GPU), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA), or other form of processing unit having data processing and/or instruction execution capabilities, and may control other components in the system to perform desired functions. The processor is configured to perform the respective steps of the method for detecting an audio playback apparatus according to an embodiment of the present application. For example, the processor may include one or more embedded processors, processor cores, microprocessors, logic circuits, hardware finite state machines (Finite State Machine, FSMs), digital signal processors (Digital Signal Processing, DSPs), or combinations thereof.
The memory is used to store various types of data to support the operation of the detection method of the audio playback apparatus. For example, may comprise one or more computer program products, which may include various forms of computer-readable storage media. The memory may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (Double Data Rate SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DR RAM).
Furthermore, according to an embodiment of the present application, there is also provided a storage medium on which program instructions are stored, which when executed by a computer or a processor, are configured to perform the respective steps of the method for detecting an audio playback apparatus according to an embodiment of the present application, as shown in any one of fig. 1 to 2. The storage medium may include, for example, a memory card of a smart phone, a memory component of a tablet computer, a hard disk of a personal computer, read-only memory (ROM), erasable programmable read-only memory (EPROM), portable compact disc read-only memory (CD-ROM), USB memory, or any combination of the foregoing storage media. The computer-readable storage medium may be any combination of one or more computer-readable storage media.
In an embodiment, the program instructions, when executed by a computer or a processor, may implement respective functional modules in a detection apparatus of an audio playing apparatus as shown in fig. 3 according to an embodiment of the present application, and/or may perform a detection method of an audio playing apparatus as shown in any one of fig. 1 to 2 according to an embodiment of the present application, including: controlling the audio playing device to play preset sound data; recording the sound data played by the audio playing device to obtain recording data; judging whether the difference value between the first audio feature of the recording data and the second audio feature of the preset sound data is within a preset range or not; and if the first audio feature and the second audio feature are within the preset range, determining that the audio playing device is abnormally installed.
In addition, the embodiment of the application further provides a computer program code, which can be executed by a processor and can be realized when the code is executed by the processor: controlling the audio playing device to play preset sound data; recording the sound data played by the audio playing device to obtain recording data; judging whether the difference value between the first audio feature of the recording data and the second audio feature of the preset sound data is within a preset range or not; and if the first audio feature and the second audio feature are within the preset range, determining that the audio playing device is abnormally installed.
In summary, according to the method, the device, the system and the storage medium for detecting the audio playing device provided by the embodiment of the invention, the audio playing device is used for recording the preset audio data played by the audio playing device, comparing the recorded data with the preset audio data, and judging whether the audio playing device is abnormally installed or not according to the comparison result. The detection of the audio playing device can be completed quickly without disassembling the audio playing device or the external configuration of the audio playing device, so that the manual disassembling step is omitted, a great amount of time and labor cost are saved, the detection process is greatly simplified, the detection efficiency is improved, and the normal use of the audio playing device and the external configuration thereof is not influenced.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, e.g., the division of the elements is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another device, or some features may be omitted or not performed.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in order to streamline the invention and aid in understanding one or more of the various inventive aspects, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof in the description of exemplary embodiments of the invention. However, the method of the present invention should not be construed as reflecting the following intent: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
It will be understood by those skilled in the art that all of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be combined in any combination, except combinations where the features are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
The foregoing description is merely illustrative of specific embodiments of the present invention and the scope of the present invention is not limited thereto, and any person skilled in the art can easily think about variations or substitutions within the scope of the present invention. The protection scope of the invention is subject to the protection scope of the claims.

Claims (9)

1. A method for detecting an audio playback device, the method comprising:
controlling the audio playing device to play preset sound data;
recording sound data played by the audio playing device on the specific application of the intelligent terminal to obtain recording data; the intelligent terminal is provided with the preset sound data at the same time;
judging whether the difference value between the first audio feature of the recording data and the second audio feature of the preset sound data is within a preset range or not; wherein, the preset range includes: a phase range [ pi-a, pi+b ] centered around pi;
if the first audio feature and the second audio feature are within the preset range, determining that the audio playing device is abnormally installed;
judging whether the error precision of the difference value meets an error requirement, wherein the error requirement comprises the following steps: within a permissible preset error range;
if the difference value does not meet the error requirement, detecting the audio playing device again;
and if the difference meets the error requirement, displaying a detection result to a user on the intelligent terminal.
2. The method according to claim 1, wherein the method further comprises: filtering the recording data to obtain filtered data;
the first audio characteristic of the recording data comprises a first audio characteristic of the filter data.
3. The method of claim 2, wherein filtering the recording data to obtain filtered data comprises:
and inputting the recording data into a preset FIR band-pass filter for filtering processing, and outputting the filtering data.
4. A method according to claim 3, wherein the center frequency of the preset FIR band-pass filter comprises the dominant frequency of the preset sound data.
5. The method according to claim 1, wherein the method further comprises:
performing amplitude-frequency characteristic analysis on the recording data to obtain a first audio characteristic of the recording data; wherein the first audio feature comprises a phase characteristic of the recording data corresponding to a dominant frequency of the preset sound data, and the second audio feature comprises a phase characteristic of the dominant frequency of the preset sound data.
6. The method of claim 5, wherein the method further comprises:
and acquiring the second audio feature of the preset sound data, or performing amplitude-frequency characteristic analysis on the preset sound data to acquire the second audio feature.
7. A detection apparatus for an audio playback apparatus, the apparatus comprising:
the control module is used for controlling the audio playing device to play preset sound data;
the recording module is used for recording the sound data played by the audio playing device to obtain recording data; the recording module is a specific application of the intelligent terminal, and the intelligent terminal is provided with the preset sound data at the same time;
wherein, the control module is further for:
judging whether a difference value between a first audio feature of the recording data and a second audio feature of the preset sound data is within a preset range or not, wherein the preset range comprises: a phase range [ pi-a, pi+b ] centered around pi;
if the first audio feature and the second audio feature are within the preset range, determining that the audio playing device is abnormally installed;
judging whether the error precision of the difference value meets an error requirement, wherein the error requirement comprises the following steps: within a permissible preset error range; if the difference value does not meet the error requirement, detecting the audio playing device again; and if the difference meets the error requirement, displaying a detection result to a user on the intelligent terminal.
8. A detection system for an audio playback device comprising a memory, a processor and a computer program stored on the memory and running on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 6 when the computer program is executed by the processor.
9. A computer storage medium having stored thereon a computer program, which when executed by a processor realizes the steps of the method according to any of claims 1 to 6.
CN202011489453.7A 2020-12-16 2020-12-16 Method, device and system for detecting audio playing device and storage medium Active CN114640939B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011489453.7A CN114640939B (en) 2020-12-16 2020-12-16 Method, device and system for detecting audio playing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011489453.7A CN114640939B (en) 2020-12-16 2020-12-16 Method, device and system for detecting audio playing device and storage medium

Publications (2)

Publication Number Publication Date
CN114640939A CN114640939A (en) 2022-06-17
CN114640939B true CN114640939B (en) 2024-03-19

Family

ID=81944372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011489453.7A Active CN114640939B (en) 2020-12-16 2020-12-16 Method, device and system for detecting audio playing device and storage medium

Country Status (1)

Country Link
CN (1) CN114640939B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120059973A (en) * 2010-12-01 2012-06-11 현대모비스 주식회사 Method Detecting sound output of AV/Audio Using Unified Diagnostic Services protocol
CN109410907A (en) * 2017-08-18 2019-03-01 比亚迪股份有限公司 Noise processing method, device, equipment and the storage medium of cloud rail
CN110572764A (en) * 2019-09-19 2019-12-13 吉旗物联科技(上海)有限公司 Remote fault diagnosis method and device for vehicle-mounted audio equipment
CN110719461A (en) * 2019-10-24 2020-01-21 深圳创维-Rgb电子有限公司 Audio and video equipment testing method and device and computer readable storage medium
CN111276160A (en) * 2020-01-20 2020-06-12 宏泰机电科技(漳州)有限公司 Audio detection method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013190632A1 (en) * 2012-06-19 2013-12-27 Toa株式会社 Speaker device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120059973A (en) * 2010-12-01 2012-06-11 현대모비스 주식회사 Method Detecting sound output of AV/Audio Using Unified Diagnostic Services protocol
CN109410907A (en) * 2017-08-18 2019-03-01 比亚迪股份有限公司 Noise processing method, device, equipment and the storage medium of cloud rail
CN110572764A (en) * 2019-09-19 2019-12-13 吉旗物联科技(上海)有限公司 Remote fault diagnosis method and device for vehicle-mounted audio equipment
CN110719461A (en) * 2019-10-24 2020-01-21 深圳创维-Rgb电子有限公司 Audio and video equipment testing method and device and computer readable storage medium
CN111276160A (en) * 2020-01-20 2020-06-12 宏泰机电科技(漳州)有限公司 Audio detection method and device

Also Published As

Publication number Publication date
CN114640939A (en) 2022-06-17

Similar Documents

Publication Publication Date Title
CN106878866B (en) Audio signal processing method and device and terminal
US11631402B2 (en) Detection of replay attack
CN104640054B (en) Mobile terminal receiver/loudspeaker method of testing and system
US8073146B2 (en) Audio test apparatus and test method thereof
CN108305637B (en) Earphone voice processing method, terminal equipment and storage medium
CN104661169B (en) A kind of audio testing method and device
CN112017693B (en) Audio quality assessment method and device
CN113259832B (en) Microphone array detection method and device, electronic equipment and storage medium
CN105657110B (en) Echo cancellation method and device for voice communication
CN111866690A (en) Microphone testing method and device
CN110636432A (en) Microphone testing method and related equipment
CN107358964A (en) Method for detecting the restricted speed signal in the environment of change
CN105188008B (en) A kind of method and device of testing audio output unit
US9332366B2 (en) Loudspeaker noise inspection method, loudspeaker noise inspection device and recording medium for recording a loudspeaker noise inspection program
EP3605535A1 (en) Audio device and computer readable program
CN112135235B (en) Quality detection method, system and computer readable storage medium
US20210126748A1 (en) Measuring and evaluating a test signal generated by a device under test (dut)
CN114640939B (en) Method, device and system for detecting audio playing device and storage medium
WO2020073564A1 (en) Method and apparatus for detecting loudness of audio signal
CN107750038B (en) Volume adjusting method, device, equipment and storage medium
EP4354898A1 (en) Ear-mounted device and reproduction method
CN112995882B (en) Intelligent equipment audio open loop test method
CN115243183A (en) Audio detection method, device and storage medium
CN110022514B (en) Method, device and system for reducing noise of audio signal and computer storage medium
CN113517000A (en) Echo cancellation test method, terminal and storage device

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