Device, system and method for testing loudspeaker

Through the methods of decoding and feature classification, the speaker equipment is quickly tested, and the problems of wasted time and low efficiency caused by playing multi-channel film sources one by one in the prior art are solved, and fast and simplified speaker detection is achieved.

CN115022792BActive Publication Date: 2025-09-02SHENZHEN SEN5 TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210853582.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-11
Publication Date
2025-09-02
Estimated Expiration
2042-07-11

AI Technical Summary

Technical Problem

When testing multi-speaker equipment, the multi-channel film source needs to be played one by one to verify whether a single speaker is working properly, resulting in waste of time and low testing efficiency, and the difficulty of obtaining film source.

Method used

The audio data is obtained by decoding the chip source, and the feature classification is classified. The channel configuration table is used to reassign the classified audio data to the corresponding channel, and the empty data is filled with the unconnected speaker channel to achieve rapid testing.

Benefits of technology

It realizes rapid detection of speakers to be tested, without the need for complete playback of the sound source, simplifies the process, and improves detection speed and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115022792B_ABST
    Figure CN115022792B_ABST
Patent Text Reader

Abstract

The present invention provides a device, system, and method for testing loudspeakers, including: decoding a source audio source to obtain audio data; performing feature classification on the audio data to obtain classified audio data; and inputting the classified audio data into corresponding channels to test the loudspeaker under test. When testing using the method of the present invention, only the loudspeaker under test is required to produce sound, while other loudspeakers receive no signal input. This eliminates the need for manual individual speaker quality assessment, resulting in a simple process and rapid testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of audio detection, and in particular to a device, system and method for testing a loudspeaker. Background Art

[0002] To provide richer sound effects, audio and video products often incorporate speakers in multiple locations. For example, the Sound Bar 5.1.2 features five speakers in different locations, two external speakers, and a subwoofer. This way, when audio is played, the sound surrounds the user from all directions, creating an immersive experience.

[0003] However, during the production process, such multi-speaker devices encounter some testing challenges. For example, verifying the proper functioning of a single speaker in the assembled equipment becomes a major challenge on the production line. The existing approach involves playing a multi-channel source, in which each speaker plays sound one by one, allowing production line personnel to determine whether the equipment is functioning properly. However, simply testing a specific speaker requires playing the source from beginning to end, which wastes a significant amount of time. Furthermore, this approach places high demands on the source material, requiring multi-channel support. This sometimes necessitates finding a multi-channel version of the source material, which is difficult to obtain and impacts testing efficiency.

[0004] A simple method for testing loudspeakers needs to be developed urgently. Summary of the Invention

[0005] In order to overcome the deficiencies of the prior art, the present invention provides a device, system, and method for testing a loudspeaker, which are used to solve at least one of the aforementioned technical problems.

[0006] Specifically, the technical solution is as follows:

[0007] A method for testing a loudspeaker, comprising:

[0008] Decode the video source to obtain audio data;

[0009] Performing feature classification on the audio data to obtain classified audio data;

[0010] The classified audio data is input into the corresponding channel to test the speaker to be tested.

[0011] The “decoding of the film source” includes:

[0012] Decode and split the video source through the Demux module to obtain an audio stream;

[0013] The audio stream is converted through PCM encoding to obtain the audio data.

[0014] The “characteristic classification of the audio data” includes:

[0015] Obtaining left and right original audio data according to the storage characteristics of the audio data;

[0016] Based on the original audio data, channel data modeling is performed:

[0017] The buffer data in the original audio data is extracted according to the frequency characteristics to obtain the classified audio data.

[0018] The step of “inputting the classified audio data into a corresponding channel and testing the speaker corresponding to the channel” includes:

[0019] Determine the channel configuration table according to the sound channel corresponding to the test speaker;

[0020] reallocating the classified audio data using the channel configuration table according to the classified audio data to obtain allocated audio data;

[0021] The allocated audio data is input into the channel corresponding to the speaker to be tested, and other channels not connected to the speaker are filled with empty data to test the speaker to be tested.

[0022] A system for testing a loudspeaker, comprising:

[0023] A decoding module is used to decode the video source to generate audio data;

[0024] a processing module, exchanging data with the test speaker, and used to classify the audio data so as to assign the audio data to corresponding channels;

[0025] The audio output module is connected to the external speaker to be tested and is used to test the speaker to be tested after receiving the audio data output by the processing module.

[0026] An electronic device for testing a speaker, comprising:

[0027] Storage medium for storing computer programs;

[0028] The processing unit exchanges data with the storage medium, and is used to execute the computer program through the processing unit to perform the steps of the method for testing the speaker as described above when testing the speaker.

[0029] A computer-readable storage medium comprising:

[0030] The computer readable storage medium stores a computer program;

[0031] When the computer program is running, the steps of the method for testing a loudspeaker as described above are executed.

[0032] A multi-speaker combination acoustic testing device, comprising:

[0033] At least 2 speakers to be tested;

[0034] The system as described above is electrically connected to the speakers to be tested at the same time, and is used to make the speakers to be tested work at the same time to obtain acoustic data.

[0035] A maintenance device, comprising:

[0036] A system as described above;

[0037] The device to be repaired is connected to the system to test whether the speaker on the device to be repaired is normal.

[0038] The present invention has at least the following beneficial effects:

[0039] The device described in the present invention obtains audio data by decoding the film source; then performs feature classification on the audio data to obtain classified audio data; inputs the classified audio data into the corresponding sound channel to test the speaker to be tested; when using the method described in the present invention to perform the test, only the speaker to be tested needs to make a sound, and no data is input to other speakers, and there is no need for manual judgment one by one, which has the advantages of simple process and fast detection speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.

[0041] Figure 1 A flow chart of the method of the present invention;

[0042] Figure 2 This is a schematic diagram of the decoding principle of the present invention;

[0043] Figure 3 A block diagram of a system for testing a loudspeaker according to the present invention;

[0044] Figure 4 is a schematic diagram of the system of the present invention;

[0045] Among them, 100. Decoding module; 200. Processing module; 300. Audio output module. DETAILED DESCRIPTION

[0046] Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the implementation scenario description, or can be modified accordingly and located in one or more devices different from the implementation scenario. The modules in the above implementation scenario can be combined into one module or further split into multiple submodules.

[0047] The present invention provides an embodiment:

[0048] like Figure 1-2 A method for testing a speaker includes: decoding a source to obtain audio data; performing feature classification on the audio data to obtain classified audio data; inputting the classified audio data into a corresponding channel to test the speaker to be tested.

[0049] The "decoding of the film source" includes: decoding and splitting the film source through the Demux module to obtain an audio stream; converting the audio stream through PCM encoding to obtain the audio data. Specifically, after obtaining the film source, the audio and video file is first split into video data and audio data through the Demux module, and then the audio data is converted through PCM encoding to obtain audio data. Specifically, PCM encoding converts a continuously changing analog signal into a digital code through three steps: sampling, quantization, and encoding.

[0050] The steps of "feature classification of audio data" are: obtaining the original audio data of the left and right channels according to the storage characteristics of the audio data; performing channel data modeling based on the original audio data; extracting the buffer data in the original audio data according to the frequency characteristics to obtain the classified audio data.

[0051] Specifically, the audio data storage format in this application is PCM16LE; since the sampling values ​​of the left channel and the right channel in the PCM16LE dual-channel data are stored at intervals; the sampling frequency of the sound sample value is always 44100Hz, and the sampling format is always 16LE; "16" represents that the number of sampling bits is 16bit; since 1Byte=8bit, a sampling value of a channel occupies 2Byte; "LE" stands for Little Endian, which means that the storage method of the 2-Byte sampling value is that the high bit is stored in the high address; through the specific byte arrangement characteristics, the PCM data is first disassembled into two types of left and right channel data.

[0052] After obtaining the left and right original audio data streams, 5.1.2 channel data modeling can be performed based on the basic data; the left and right channels can directly use the original audio data, while the left surround and right surround are extracted from the original audio data buffer according to certain characteristics; according to the frequency characteristics of the original sound data buffer, it is extracted and filled into each sound data channel; when extracting buffer data, for example: surround audio generally plays more background sound, and the surround channel only passes frequencies between 100Hz (bass) and 7kHz (low end of treble); and the bass channel data refers to the sound in the low end of the audio, usually below 500Hz.

[0053] The "inputting the classified audio data into the corresponding channel and testing the speaker corresponding to the channel" includes: determining the channel configuration table according to the channel corresponding to the test speaker; reallocating the classified audio data using the channel configuration table according to the classified audio data to obtain allocated audio data; inputting the allocated audio data into the channel corresponding to the speaker to be tested, filling other channels not connected to the speaker with empty data, and testing the speaker to be tested.

[0054] Specifically, take playing a two-channel video, left and right channels as an example;

[0055] When playing the video source, the sound part of the video will be decoded and split into video frames and audio data; only audio-related data needs to be processed, and no additional processing is performed on the video frames; then the decoded audio data will be passed to the algorithm library for processing.

[0056] The algorithm library will classify the current audio data according to the characteristics of the current audio data; for example, if the bass part of the audio data is extracted as the subwoofer data, the background sound will be enhanced and the gain effect of the foreground will be weakened. The processed data can be used as the sound data of the left and right surround speakers; the data of other channels are also extracted according to their characteristics; finally, the left and right channel sources are converted into 8-channel data for playback; the channel control scheme can be processed at the location where the 8-channel audio data is extracted; in this embodiment, a channel control interface can be provided to the outside, and the upper-level developer can set the channel to be output through the interface; the specific programming is as follows:

[0057] SEI_SDXChID_FrontLeft = 1<<0, / / left channel

[0058] SEI_SDXChID_FrontRight = 1<<1, / / right channel

[0059] SEI_SDXChID_FrontCenter = 1<<2, / / center channel

[0060] SEI_SDXChID_LFE = 1<<3, / / subwoofer channel

[0061] SEI_SDXChID_SurroundLeft = 1<<4, / / left surround channel

[0062] SEI_SDXChID_SurroundRight = 1<<5, / / right surround channel

[0063] SEI_SDXChID_TopLeft = 1<<6, / / Left ceiling channel

[0064] SEI_SDXChID_TopRight = 1<<7, / / right ceiling channel

[0065] SEI_SDXChID_All = / / All channels

[0066] SEI_SDXChID_FrontLeft|SEI_SDXChID_FrontRight|

[0067] SEI_SDXChID_FrontCenter|SEI_SDXChID_LFE|

[0068] SEI_SDXChID_SurroundLeft|SEI_SDXChID_SurroundRight|

[0069] SEI_SDXChID_TopLeft|SEI_SDXChID_TopRight

[0070] If you only need the left channel and subwoofer to sound, you can set the channel information to be sounded through the interface, nChannelID = SEI_SDXChID_FrontLeft | SEI_SDXChID_LFE; when analyzing and extracting multi-channel audio data, it will perform corresponding processing according to the current channel configuration and fill the channel data that does not need to be sounded with empty data;

[0071] Through the above technical means, the speaker to be tested can be quickly detected without playing the entire sound source, which greatly saves time.

[0072] The present invention provides another embodiment:

[0073] like Figure 3A system for testing a speaker includes: a decoding module 100, a processing module 200, and an audio output module 300; wherein the decoding module 100 is used to decode a video source to generate audio data; the processing module 200 exchanges data with the test speaker and is used to classify the audio data to assign the audio data to corresponding channels; the audio output module 300 is connected to an external speaker to be tested and is used to receive the audio data output by the processing module 200 and then test the speaker to be tested;

[0074] The present invention also provides an embodiment:

[0075] An electronic device for testing a speaker comprises: a storage medium and a processing unit; the storage medium is used to store a computer program; the processing unit exchanges data with the storage medium, and is used to execute the computer program through the processing unit when testing the speaker to perform the steps of the method for testing the speaker as described above.

[0076] In the above-mentioned electronic device, the storage medium is preferably a storage device such as a mobile hard disk, a solid-state hard disk, or a USB flash drive; the processing unit, preferably a CPU, exchanges data with the storage medium, and is used to execute the computer program through the processing unit when testing the speaker to perform the steps of the method for testing the speaker as described above.

[0077] The CPU can execute various appropriate actions and processes according to the program stored in the storage medium. The electronic device also includes the following peripherals, including input parts such as a keyboard and a mouse, and may also include output parts such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; in particular, according to the embodiments disclosed in the present invention, Figure 1 Any of the processes described in can be implemented as a computer software program.

[0078] The present invention also provides an embodiment:

[0079] A computer-readable storage medium: the computer-readable storage medium stores a computer program; when the computer program is run, the computer program executes the steps of the method for testing a loudspeaker as described above.

[0080] In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. Furthermore, in the present invention, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.

[0081] The present invention also provides an embodiment:

[0082] A multi-speaker combination acoustic testing device includes: at least two speakers to be tested and the system for testing the speakers as described above; wherein the system is electrically connected to the speakers to be tested at the same time, and is used to make the speakers to be tested work simultaneously to obtain acoustic data.

[0083] In acoustic testing, the above-mentioned speaker testing system is applied, and the speaker testing method described in this article is used to view the acoustic data of certain speaker combinations, such as the left front speaker (FL) and subwoofer combination, to view its soundprint curve, power consumption and other data, and make subtle adjustments.

[0084] The present invention also provides an embodiment:

[0085] A maintenance device, comprising: a system for testing a speaker as described above and a device to be repaired; when in use, the speaker in the device to be repaired is connected to the system, and can be used according to the position of the speaker to be tested, such as Figure 1 The method described above detects the speaker to be tested, achieving the purpose of rapid detection. The above disclosure only describes several specific implementation scenarios of the present invention; however, the present invention is not limited to these specific implementation scenarios. Any variations conceivable by those skilled in the art are intended to fall within the scope of protection of the present invention. The serial numbers of the present invention are for descriptive purposes only and do not represent the merits or demerits of the implementation scenarios.

Claims

1. A method for testing a loudspeaker, characterized in that: include: Decode the video source into video data and audio stream, convert the audio stream through PCM encoding to obtain audio data; According to the storage characteristics of the audio data, the original audio data of the left and right channels are obtained; the storage format of the audio data is PCM16LE; Based on the original audio data, channel data modeling is performed: Extracting buffer data from the original audio data according to frequency characteristics to obtain classified audio data; determining a channel configuration table according to the sound channel corresponding to the speaker to be tested; reallocating the classified audio data using the channel configuration table according to the classified audio data to obtain allocated audio data; The allocated audio data is input into the channel corresponding to the speaker to be tested, and other channels not connected to the speaker are filled with empty data to test the speaker to be tested.

2. A method for testing a loudspeaker according to claim 1, characterized in that: Decoding the film source includes: The video source is decoded and split by the Demux module to obtain an audio stream.

3. A method for testing a loudspeaker according to claim 1 or 2, characterized in that: The method for testing loudspeakers is used for acoustic testing of a combination of loudspeakers.

4. A system for testing a loudspeaker, characterized in that: include: The decoding module is used to decode the video source into video data and audio stream, and convert the audio stream through PCM encoding to obtain audio data; the storage format of the audio data is PCM16LE; The processing module exchanges data with the speaker to be tested, and is used to obtain the original audio data of the left and right channels according to the storage characteristics of the audio data, and perform channel data modeling based on the original audio data; the processing module is also used to: extract buffer data from the original audio data according to the frequency characteristics to obtain classified audio data, determine a channel configuration table according to the channels corresponding to the speaker to be tested, and redistribute the classified audio data using the channel configuration table according to the classified audio data to obtain distributed audio data; the processing module is also used to: input the distributed audio data into the channels corresponding to the speaker to be tested; The audio output module is connected to the external speaker to be tested and is used to test the speaker to be tested after receiving the audio data output by the processing module.

5. An electronic device for testing a speaker, characterized in that: include: Storage medium for storing computer programs; A processing unit exchanges data with the storage medium, and is configured to execute the computer program through the processing unit when testing the speaker to perform the steps of the method for testing the speaker as claimed in any one of claims 1 to 2.

6. A computer-readable storage medium, characterized in that: The computer readable storage medium stores a computer program; When the computer program is run, it executes the steps of the method for testing a loudspeaker according to any one of claims 1 to 2.

7. A multi-speaker combination acoustic testing device, characterized in that: include: At least 2 speakers to be tested ; The system of claim 4 is electrically connected to the speaker to be tested, and is used to operate the speaker to be tested simultaneously to obtain acoustic data.

8. A maintenance device, characterized in that: include: The system according to claim 4; The device to be repaired is connected to the system to test whether the speaker on the device to be repaired is normal.

Citation Information

Patent Citations

  • Loudspeaker detection method, terminal device and computer memory medium

    CN108566612A

  • Audio channel extension device

    JP2012119728A

  • Apparatus for automatically selecting speaker channelin a home theater system and method thereof

    KR1020060043992A