CN115022792B - Device, system and method for testing loudspeaker - Google Patents
Device, system and method for testing loudspeakerInfo
- Publication number
- CN115022792B CN115022792B CN202210853582.2A CN202210853582A CN115022792B CN 115022792 B CN115022792 B CN 115022792B CN 202210853582 A CN202210853582 A CN 202210853582A CN 115022792 B CN115022792 B CN 115022792B
- Authority
- CN
- China
- Prior art keywords
- audio data
- loudspeaker
- testing
- data
- tested
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R29/00—Monitoring arrangements; Testing arrangements
- H04R29/001—Monitoring arrangements; Testing arrangements for loudspeakers
- H04R29/002—Loudspeaker arrays
Landscapes
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Otolaryngology (AREA)
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Stereophonic System (AREA)
Abstract
The invention provides a device, a system and a method for testing a loudspeaker, which comprise the steps of decoding a slice source to obtain audio data; and inputting the classified audio data into a corresponding sound channel to test the loudspeaker to be tested. When the method is used for testing, only the loudspeaker to be tested is required to make sound, other loudspeakers have no signal input, and the quality of the loudspeakers is not required to be judged one by manpower, so that the method has the advantages of simple flow and high detection speed.
Description
Technical Field
The invention relates to the field of audio detection, in particular to a device, a system and a method for testing a loudspeaker.
Background
In audio and video products, in order to provide a richer sound effect, a plurality of directional speakers are often provided in the sound equipment. For example, sound Bar 5.1.2 products, which are provided with 5 loudspeakers in different directions, are externally provided with 2 external Sound boxes and a bass loudspeaker. Thus, when the audio is played, the sound can surround the user from all directions, and the user can feel the feeling of being personally on the scene.
However, in the production process of the multi-horn product equipment, some testing problems are encountered, such as how to verify whether a single horn works normally or not by the assembled equipment, which is a difficult problem on the production line, the existing method is to play multi-channel sources, make each horn sound one by one, and achieve the purpose of distinguishing whether the equipment works normally or not by personnel on the production line, but only whether a certain horn works normally or not needs to be tested, a great deal of time is wasted by playing the sources all the time, and meanwhile, the method has high requirements on the sources, needs to support multi-channel sources, sometimes needs to search multi-channel versions of the sources, and has high acquisition difficulty and influences on testing efficiency.
A simple method for testing a loudspeaker is desired.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a device, a system and a method for testing a loudspeaker, which are used for solving at least one of the technical problems.
Specifically, the technical scheme is as follows:
A method of testing a horn, comprising:
decoding the slice source to obtain audio data;
performing feature classification on the audio data to obtain classified audio data;
And inputting the classified audio data into a corresponding sound channel, and testing the loudspeaker to be tested.
The "slice source decodes", including:
decoding and splitting the slice source through a Demux module to obtain an audio stream;
And converting the audio stream through PCM code to obtain the audio data.
The "classifying the audio data" includes:
obtaining left and right paths of original audio data according to the storage characteristics of the audio data;
and carrying out channel data modeling according to the original audio data:
and extracting buffer data in the original audio data according to the frequency characteristics to obtain the classified audio data.
The "inputting the classified audio data into the corresponding channel, testing the speaker corresponding to the channel", includes:
determining the channel configuration table according to the sound channel corresponding to the test loudspeaker;
According to the classified audio data, the classified audio data are redistributed by utilizing the channel configuration table, and distributed audio data are obtained;
And inputting the allocated audio data into a sound channel corresponding to the loudspeaker to be tested, filling blank data into the sound channels of other loudspeakers which are not connected, and testing the loudspeaker to be tested.
A system for testing a horn, comprising:
the decoding module is used for decoding the slice source to form audio data;
The processing module is used for carrying out data exchange with the test loudspeaker and classifying the audio data so as to distribute the audio data to corresponding sound channels;
The audio output module is connected with an external horn to be tested and is used for testing the horn to be tested after receiving the audio data output by the processing module.
An electronic device for testing a loudspeaker, comprising:
A storage medium storing a computer program;
And the processing unit is used for carrying out data exchange with the storage medium and executing the computer program through the processing unit when the loudspeaker is tested, so as to carry out the steps of the method for testing the loudspeaker.
A computer-readable storage medium, comprising:
the computer readable storage medium has a computer program stored therein;
The computer program, when run, performs the steps of the method of testing a loudspeaker as described above.
A multi-horn combined acoustic testing apparatus comprising:
at least 2 horns to be tested;
the system is electrically connected with the horn to be tested at the same time and is used for enabling the horn to be tested to work at the same time and acquiring acoustic data.
A maintenance device comprising:
A system as described above;
And the device to be maintained is connected with the system and is used for testing whether the horn on the device to be maintained is normal or not.
The invention has at least the following beneficial effects:
The device acquires audio data by decoding the sheet source, then performs feature classification on the audio data to acquire classified audio data, inputs the classified audio data into the corresponding sound channel to test the loudspeaker to be tested, and only the loudspeaker to be tested is required to sound when the method is used for testing, other loudspeakers are not required to input data, and the device does not need to judge one by one manually.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of the method of the present invention;
FIG. 2 is a schematic diagram of decoding according to the present invention;
FIG. 3 is a block diagram of a system for testing a loudspeaker according to the present invention;
FIG. 4 is a schematic diagram of a system according to the present invention;
The device comprises a decoding module 100, a processing module 200 and an audio output module 300.
Detailed Description
Those skilled in the art will appreciate that modules in an apparatus in an implementation scenario may be distributed in an apparatus in an implementation scenario according to an implementation scenario description, or that corresponding changes may be located in one or more apparatuses different from the implementation scenario. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The present invention provides an embodiment:
1-2, a method for testing a loudspeaker comprises the steps of decoding a slice source to obtain audio data, classifying the audio data to obtain classified audio data, inputting the classified audio data into a corresponding sound channel, and testing the loudspeaker to be tested.
The method comprises the steps of decoding and splitting a slice source through a Demux module to obtain an audio stream, and converting the audio stream through PCM coding to obtain audio data, wherein the audio data is specifically obtained by firstly disassembling an audio-video file into video data and audio data through the Demux module after the slice source is taken out, and then converting the audio data through PCM coding to obtain the audio data, and the specific PCM coding is to convert continuously-changed analog signals into digital codes through three steps of sampling, quantizing and coding.
The step of carrying out feature classification on the audio data comprises the steps of obtaining left and right paths of original audio data according to storage features of the audio data, carrying out channel data modeling according to the original audio data, and extracting buffer data in the original audio data according to frequency features to obtain the classified audio data.
Specifically, the audio data storage format in the application is PCM16LE, because sampling values of a left channel and a right channel in PCM16LE double-channel data are stored at intervals, the sampling frequency of sound samples is 44100Hz uniformly, the sampling format is 16LE uniformly, the number of sampling bits is 16 bits, one sampling value of one channel occupies 2Byte because 1 Byte=8 bits, the LE represents LITTLE ENDIAN, the storage mode of representing the 2Byte sampling value is that the high-order high address exists, and the PCM data are firstly disassembled into two data of the left channel and the right channel through specific Byte emission characteristics.
After the left and right original audio data streams are taken, channel data modeling of 5.1.2 can be carried out according to basic data, the left and right channels can directly use the original audio data, the left and right channels are used for extracting buffer data from the original data audio data according to certain characteristics, the buffer data are extracted and filled into each sound data channel according to the frequency characteristics in the original sound data buffer, when the buffer data are extracted, for example, the surrounding audio generally plays more background sound, the surrounding channel only passes through frequencies between 100Hz (bass) and 7kHz (low segment of high tone), and the data of the bass channel refer to sound in the low segment of the audio, which is generally lower than 500Hz.
The method comprises the steps of inputting classified audio data into corresponding sound channels and testing speakers corresponding to the sound channels, determining a channel configuration table according to the sound channels corresponding to the tested speakers, reassigning the classified audio data by utilizing the channel configuration table according to the classified audio data to obtain assigned audio data, inputting the assigned audio data into the sound channels corresponding to the speakers to be tested, filling empty data into the sound channels of other speakers not connected with the speakers, and testing the speakers to be tested.
Specifically, taking playing a two-channel video, and taking a left channel and a right channel as examples;
When playing the film source, the sound part of the video will be decoded to split the video picture frame and the audio data, only the audio related data is needed to be processed, the video picture frame will not be processed additionally, then the decoded audio data is transmitted into the algorithm library for processing.
The algorithm library classifies the audio data according to the characteristics of the current audio data, if the bass part in the audio data is extracted as the data of the subwoofer, the background sound is enhanced, the gain effect of the foreground is weakened, the processed part of the data can be used as sound data of left and right surrounding sound boxes, the data of other channels are extracted according to the characteristics, finally, the film sources of the left and right channels are converted into 8-channel data for playing, the scheme of channel control can be used for processing at the position of extracting the 8-channel audio data, in the embodiment, a channel control interface can be provided for the outside, an upper layer developer can set a channel to be output through the interface, and the specific programming is as follows:
Sei_ SDXChID _ FrontLeft =1 < <0,// left channel
Sei_ SDXChID _ FrontRight =1 < <1,// right channel
Sei_ SDXChID _ FrontCenter =1 < <2,// center channel
SEI_ SDXChID _LFE=1 < <3,// bass gun channel
Sei_ SDXChID _ SurroundLeft =1 < <4,// left surround channel
Sei_ SDXChID _ SurroundRight =1 < <5,// right surround channel
Sei_ SDXChID _ TopLeft =1 < <6,// left ceiling channel
Sei_ SDXChID _ TopRight =1 < <7,// right ceiling channel
Sei_ SDXChID _all=// All channels
SEI_SDXChID_FrontLeft|SEI_SDXChID_FrontRight|
SEI_SDXChID_FrontCenter|SEI_SDXChID_LFE|
SEI_SDXChID_SurroundLeft|SEI_SDXChID_SurroundRight|
SEI_SDXChID_TopLeft|SEI_SDXChID_TopRight
If only the left channel and the subwoofer are required to make a sound, channel information to be made a sound can be set through an interface, NCHANNELID =sei_ SDXChID _ FrontLeft |sei_ SDXChID _lfe; when analyzing and extracting multi-channel audio data, carrying out corresponding processing according to the current channel configuration, and filling blank data with channel data which do not need to be sounded;
through the technical means, the loudspeaker to be tested can be detected rapidly, a complete playing source is not needed, and time is saved greatly.
The present invention provides yet another embodiment:
Referring to fig. 3, a system for testing a loudspeaker comprises a decoding module 100, a processing module 200 and an audio output module 300, wherein the decoding module 100 is used for decoding a sheet source to form audio data, the processing module 200 is used for carrying out data exchange with the test loudspeaker and classifying the audio data to distribute the audio data to a corresponding sound channel, and the audio output module 300 is connected with an external loudspeaker to be tested and is used for testing the loudspeaker to be tested after receiving the audio data output by the processing module 200;
the invention also provides an embodiment:
An electronic device for testing a loudspeaker comprises a storage medium and a processing unit, wherein the storage medium is used for storing a computer program, and the processing unit is used for carrying out data exchange with the storage medium and executing the computer program through the processing unit when the loudspeaker is tested, so that the method for testing the loudspeaker is carried out.
In the above electronic device, the storage medium is preferably a storage device such as a mobile hard disk, a solid state hard disk, or a usb disk, and the processing unit is preferably a CPU, and performs data exchange with the storage medium, so that when the loudspeaker is tested, the processing unit executes the computer program to perform the steps of the method for testing the loudspeaker.
The CPU described above can execute various appropriate actions and processes according to programs stored in a storage medium. The electronic device further comprises peripherals including input portions for a keyboard, a mouse, etc., and output portions such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and speakers, etc., and in particular, the process as described in any of fig. 1 may be implemented as a computer software program in accordance with the disclosed embodiments of the invention.
The invention also provides an embodiment:
a computer readable storage medium having a computer program stored therein, which, when run, performs the steps of the method of testing a loudspeaker as described above.
In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
The invention also provides an embodiment:
The multi-horn combined acoustic testing device comprises at least 2 horns to be tested and the system for testing the horns, wherein the system is electrically connected with the horns to be tested at the same time and is used for enabling the horns to be tested to work at the same time and acquiring acoustic data.
In acoustic testing, the system for testing the loudspeaker is applied, and the method for testing the loudspeaker is used for checking acoustic data of a plurality of loudspeakers after combination, such as the combination of a left Front Loudspeaker (FL) and a subwoofer (Subwoofer), checking data of voiceprint curves, consumed power and the like, so that fine adjustment is achieved.
The invention also provides an embodiment:
the maintenance device comprises the system for testing the horn and the device to be maintained, wherein the horn in the device to be maintained is connected with the system when in use, and the horn to be detected can be detected by the method shown in the figure 1 according to the position of the horn to be detected, so that the aim of rapid detection is fulfilled. The foregoing disclosure is merely illustrative of some embodiments of the invention, and the invention is not limited thereto, as modifications may be made by those skilled in the art without departing from the scope of the invention. The above-mentioned inventive sequence numbers are merely for description and do not represent advantages or disadvantages of the implementation scenario.
Claims (8)
1. A method of testing a loudspeaker, comprising:
decoding the slice source into video data and an audio stream, and converting the audio stream through PCM coding to obtain audio data;
Obtaining left and right paths of original audio data according to the storage characteristics of the audio data, wherein the storage format of the audio data is PCM16LE;
and carrying out channel data modeling according to the original audio data:
Extracting buffer data in the original audio data according to frequency characteristics to obtain classified audio data;
According to the classified audio data, the classified audio data are redistributed by utilizing the channel configuration table, and distributed audio data are obtained;
And inputting the allocated audio data into a sound channel corresponding to the loudspeaker to be tested, filling blank data into the sound channels of other loudspeakers which are not connected, and testing the loudspeaker to be tested.
2. A method of testing a loudspeaker in accordance with claim 1, wherein said decoding the tile source comprises:
And decoding and splitting the slice source through a Demux module to obtain an audio stream.
3. A method of testing a loudspeaker according to claim 1 or 2, wherein the method of testing a loudspeaker is used for multi-loudspeaker combined acoustic testing.
4. A system for testing a horn, comprising:
the decoding module is used for decoding the film source into video data and an audio stream, and converting the audio stream through PCM coding to obtain audio data, wherein the storage format of the audio data is PCM16LE;
The processing module is used for carrying out data exchange with the loudspeaker to be tested, obtaining left and right paths of original audio data according to the storage characteristics of the audio data, and carrying out channel data modeling according to the original audio data; the processing module is also used for extracting buffer data in the original audio data according to frequency characteristics to obtain classified audio data, determining a channel configuration table according to a channel corresponding to a loudspeaker to be tested, and reallocating the classified audio data by utilizing the channel configuration table according to the classified audio data to obtain allocated audio data;
The audio output module is connected with an external loudspeaker to be tested and is used for testing the loudspeaker to be tested after receiving the audio data output by the processing module.
5. An electronic device for testing a loudspeaker, comprising:
A storage medium storing a computer program;
a processing unit, in data exchange with the storage medium, for executing the computer program by the processing unit when testing a loudspeaker, to perform the steps of the method for testing a loudspeaker according to any one of claims 1-2.
6. A computer-readable storage medium, characterized by:
the computer readable storage medium has a computer program stored therein;
the computer program, when run, performs the steps of the method of testing a loudspeaker according to any one of claims 1-2.
7. A multi-horn combined acoustic testing device, comprising:
at least 2 horns to be tested;
The system of claim 4, electrically connected to the horn to be tested simultaneously, for enabling the horn to be tested to operate simultaneously and obtain acoustic data.
8. A maintenance device, comprising:
the system of claim 4;
And the device to be maintained is connected with the system and is used for testing whether the horn on the device to be maintained is normal or not.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210853582.2A CN115022792B (en) | 2022-07-11 | 2022-07-11 | Device, system and method for testing loudspeaker |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210853582.2A CN115022792B (en) | 2022-07-11 | 2022-07-11 | Device, system and method for testing loudspeaker |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115022792A CN115022792A (en) | 2022-09-06 |
| CN115022792B true CN115022792B (en) | 2025-09-02 |
Family
ID=83080767
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210853582.2A Active CN115022792B (en) | 2022-07-11 | 2022-07-11 | Device, system and method for testing loudspeaker |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115022792B (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20060043992A (en) * | 2004-11-11 | 2006-05-16 | 주식회사 대우일렉트로닉스 | Apparatus and method for automatically selecting speaker channels in home theater system |
| JP2012119728A (en) * | 2010-11-29 | 2012-06-21 | Yamaha Corp | Audio channel extension device |
| CN108566612A (en) * | 2018-06-29 | 2018-09-21 | 青岛海信电器股份有限公司 | A kind of loud speaker detection method, terminal device and computer storage media |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100677632B1 (en) * | 2006-01-26 | 2007-02-02 | 삼성전자주식회사 | Multichannel Setting Device and Method |
| KR101112215B1 (en) * | 2010-02-26 | 2012-03-13 | 서경대학교 산학협력단 | Method and system for blocking contents including harmful sound |
| WO2015083653A1 (en) * | 2013-12-06 | 2015-06-11 | シャープ株式会社 | Audio wireless transmission system, speaker device, and source device |
| CN106211014B (en) * | 2016-08-09 | 2019-06-21 | 广州视源电子科技股份有限公司 | Loudspeaker detection method and device |
| US11153043B2 (en) * | 2019-10-24 | 2021-10-19 | Roku, Inc. | Measuring and evaluating a test signal generated by a device under test (DUT) |
-
2022
- 2022-07-11 CN CN202210853582.2A patent/CN115022792B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20060043992A (en) * | 2004-11-11 | 2006-05-16 | 주식회사 대우일렉트로닉스 | Apparatus and method for automatically selecting speaker channels in home theater system |
| JP2012119728A (en) * | 2010-11-29 | 2012-06-21 | Yamaha Corp | Audio channel extension device |
| CN108566612A (en) * | 2018-06-29 | 2018-09-21 | 青岛海信电器股份有限公司 | A kind of loud speaker detection method, terminal device and computer storage media |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115022792A (en) | 2022-09-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12406674B2 (en) | Text processing method and apparatus, electronic device, and medium | |
| CN108831437B (en) | Singing voice generation method, singing voice generation device, terminal and storage medium | |
| WO2020098115A1 (en) | Subtitle adding method, apparatus, electronic device, and computer readable storage medium | |
| CN113038343B (en) | Audio output device and control method thereof | |
| CN114554238A (en) | Live voice simultaneous interpretation method, device, medium and electronic equipment | |
| US20230091272A1 (en) | Audio content recognition method and apparatus, and device and computer-readable medium | |
| CN112786032A (en) | Display content control method, device, computer device and readable storage medium | |
| WO2020228383A1 (en) | Mouth shape generation method and apparatus, and electronic device | |
| CN111369968A (en) | Sound reproduction method, device, readable medium and electronic equipment | |
| CN101192182A (en) | Audio playback test device and method | |
| CN116798433A (en) | Voice recognition testing method, device, system and storage medium | |
| CN110503979B (en) | Audio output effect monitoring methods, devices, media and electronic equipment | |
| US20250217671A1 (en) | Bayesian graph-based retrieval-augmented generation with synthetic feedback loop (bg-rag-sfl) | |
| US12289593B1 (en) | Method for converting vehicle audio into surround sound and vehicle sound system | |
| CN115022792B (en) | Device, system and method for testing loudspeaker | |
| US20230306979A1 (en) | Voice processing method and apparatus, electronic device, and computer readable medium | |
| CN113077771B (en) | Asynchronous chorus sound mixing method and device, storage medium and electronic equipment | |
| CN117896666A (en) | Method for playback of audio data, electronic device and storage medium | |
| CN113160782B (en) | Audio processing method and device, electronic equipment and readable storage medium | |
| CN109495786B (en) | Pre-configuration method and device of video processing parameter information and electronic equipment | |
| CN114661923A (en) | Video and audio playing optimization method and device, electronic equipment and readable storage medium | |
| CN114999454A (en) | Performance test method, device and equipment of voice interaction equipment and readable medium | |
| CN111028848A (en) | Compressed voice processing method and device and electronic equipment | |
| CN113674739B (en) | Time determination method, device, equipment and storage medium | |
| CN118714491B (en) | Audio processing method, device, equipment, medium and product |
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 |