Left and right channel defect detection method, device, equipment and system
Through automated frequency domain analysis and peak comparison methods, the problem of inaccuracy and low efficiency in manual detection of audio left and right channels is solved, automatic judgment of audio left and right channels is realized, detection efficiency and accuracy are improved, and meet the needs of modern production needs.
Patent Information
- Application Number
- CN202210851897.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-19
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-07-19
AI Technical Summary
In the existing technology, audio left and right channel detection requires manual participation. There are problems such as long-term detection damage to hearing, inaccurate judgment, high labor intensity, low efficiency, high cost and non-traceable results. It cannot meet the requirements of modern production.
By obtaining the audio signal when the playback device plays stereo audio, perform frequency domain conversion and peak comparison, automatically determine the defect status of the left and right channels, use two recording devices to collect the audio signals of the left and right channels respectively, and analyze the amplitude information to determine if the channel position is correct.
It realizes the automatic judgment of left and right channel defects, improves detection efficiency and accuracy, reduces the cost of manual detection, and ensures the reliability and stability of detection results.
Smart Images

Figure CN115278507B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of product detection, and in particular to a left and right channel defect detection method, device, equipment and system. Background Art
[0002] During audio playback, the left and right channels refer to the processing method of compressing all relevant audio signals, dividing the audio into treble and bass tracks and playing them separately with two tracks (left and right channels) to simulate the stereoscopic effect of spatial sound. At present, the left and right channel detection link of audio requires manual control of product production quality. This detection method has many problems. First, long-term manual detection will damage the auditory function of the tester, and it is impossible to clearly distinguish the abnormalities of the left and right channels. Second, due to the different judgment criteria of each person in manual detection, and the sensory judgment of people is easily affected by subjective factors such as personal status and emotions, the detection results are not highly reliable and stable. Third, manual detection can only determine whether there is sound in the left and right channels of the TV, but cannot determine whether the left and right channels of the TV are opposite, that is, the left and right speakers of the TV are installed in reverse. Fourth, the labor intensity of manual labor is high, and long working hours are prone to fatigue, resulting in low detection efficiency and high detection cost. In addition, the detection results cannot be traced, and the detection accuracy cannot be guaranteed. Therefore, the manual detection method can no longer meet the gradually increasing requirements of modern production of enterprises. Summary of the invention
[0003] The left and right channel defect detection method provided by the present invention can realize automatic judgment of left and right channel defects.
[0004] The present invention provides a left and right channel defect detection method, comprising:
[0005] Obtain a first audio to be processed that is collected by a first recording device when a playback device plays stereo audio, and obtain a second audio to be processed that is collected by a second recording device when a playback device plays stereo audio; wherein the stereo audio is synthesized by a first audio with a predetermined amplitude within a first frequency range and a second audio with a predetermined amplitude within a second frequency range; the first frequency range corresponds to the playback frequency of a left channel of the playback device, and the second frequency range corresponds to the playback frequency of a right channel of the playback device; the distance between the first recording device and the left channel is smaller than the distance between the first recording device and the right channel, and the distance between the second recording device and the right channel is smaller than the distance between the first recording device and the left channel;
[0006] Convert the first audio to be processed and the second audio to be processed respectively to obtain a first frequency domain signal and a second frequency domain signal;
[0007] Acquire a first maximum amplitude peak and a second maximum amplitude peak of the first frequency domain signal within a third frequency range and a fourth frequency range, respectively, and acquire a third maximum amplitude peak and a fourth maximum amplitude peak of the second frequency domain signal within the third frequency range and a fourth frequency range, respectively; wherein the first frequency range is within the third frequency range, and the second frequency range is within the fourth frequency range;
[0008] The first maximum amplitude peak value and the second maximum amplitude peak value are compared with the third maximum amplitude peak value and the fourth maximum amplitude peak value, respectively, to determine the defective states of the left and right channels.
[0009] Optionally, the step of comparing the first maximum amplitude peak value with the third maximum amplitude peak value, and comparing the second maximum amplitude peak value with the fourth maximum amplitude peak value, to determine the defective state of the left and right channels comprises:
[0010] Determine whether the first maximum amplitude peak, the second maximum amplitude peak, the third maximum amplitude peak and the fourth maximum amplitude peak are all present;
[0011] When the first maximum amplitude peak, the second maximum amplitude peak, the third maximum amplitude peak, and the fourth maximum amplitude peak do not exist, it is determined that both the current left channel and the current right channel are silent.
[0012] Optionally, the step of comparing the first maximum amplitude peak value with the third maximum amplitude peak value, and comparing the second maximum amplitude peak value with the fourth maximum amplitude peak value, to determine the defective state of the left and right channels, further includes:
[0013] When the second maximum amplitude peak and the fourth maximum amplitude peak do not exist, and the first maximum amplitude peak and the third maximum amplitude peak exist, comparing the amplitudes of the first maximum amplitude peak and the third maximum amplitude peak;
[0014] When the amplitude of the first maximum amplitude peak is less than the amplitude of the third maximum amplitude peak, it is determined that the positions of the left channel and the right channel are correct and the left channel is silent;
[0015] When the amplitude of the first maximum amplitude peak is greater than the amplitude of the third maximum amplitude peak, it is determined that the positions of the left channel and the right channel are wrong and the left channel is silent.
[0016] Optionally, the step of comparing the first maximum amplitude peak value with the third maximum amplitude peak value, and comparing the second maximum amplitude peak value with the fourth maximum amplitude peak value, to determine the defective state of the left and right channels, further includes:
[0017] When the first maximum amplitude peak and the third maximum amplitude peak do not exist, and the second maximum amplitude peak and the fourth maximum amplitude peak exist, comparing the amplitudes of the second maximum amplitude peak and the fourth maximum amplitude peak;
[0018] When the amplitude of the second maximum amplitude peak is greater than the amplitude of the fourth maximum amplitude peak, it is determined that the positions of the left channel and the right channel are correct and the right channel is silent;
[0019] When the magnitude of the second maximum magnitude peak is smaller than the magnitude of the fourth maximum magnitude peak, it is determined that the positions of the left and right channels are wrong and the right channel is silent.
[0020] Optionally, the step of comparing the first maximum amplitude peak value with the third maximum amplitude peak value, and comparing the second maximum amplitude peak value with the fourth maximum amplitude peak value, to determine the defective state of the left and right channels, further includes:
[0021] When the first maximum amplitude peak, the second maximum amplitude peak, the third maximum amplitude peak and the fourth maximum amplitude peak all exist, the amplitudes of the first maximum amplitude peak and the third maximum amplitude peak are compared, and the amplitudes of the second maximum amplitude peak and the fourth maximum amplitude peak are compared;
[0022] When the amplitude of the first maximum amplitude peak is smaller than the amplitude of the third maximum amplitude peak, and the amplitude of the second maximum amplitude peak is larger than the amplitude of the fourth maximum amplitude peak, it is determined that both the left and right channels are in a normal state.
[0023] Optionally, when the amplitude of the first maximum amplitude peak is greater than the amplitude of the third maximum amplitude peak, and the amplitude of the second maximum amplitude peak is less than the amplitude of the fourth maximum amplitude peak, it is determined that both the left and right channels have sound and the positions of the left and right channels are wrong.
[0024] Optionally, the center value of the first frequency range is the same as that of the third frequency range, and the center value of the second frequency range is the same as that of the fourth frequency range.
[0025] In a second aspect, the present invention further provides a left and right channel defect detection device, comprising:
[0026] A data acquisition module, used to acquire first audio to be processed collected by a first recording device when a playback device plays stereo audio, and to acquire second audio to be processed collected by a second recording device when a playback device plays stereo audio; wherein the stereo audio is synthesized by a first audio with a predetermined amplitude within a first frequency range and a second audio with a predetermined amplitude within a second frequency range; the first frequency range corresponds to the playback frequency of a left channel of the playback device, and the second frequency range corresponds to the playback frequency of a right channel of the playback device; the distance between the first recording device and the left channel is smaller than the distance between the first recording device and the right channel, and the distance between the second recording device and the right channel is smaller than the distance between the first recording device and the left channel;
[0027] An audio conversion module, used for converting the first audio to be processed and the second audio to be processed respectively to obtain a first frequency domain signal and a second frequency domain signal;
[0028] A data processing module, used to obtain a first maximum amplitude peak value and a second maximum amplitude peak value of a first frequency domain signal within a third frequency range and a fourth frequency range, respectively, and to obtain a third maximum amplitude peak value and a fourth maximum amplitude peak value of a second frequency domain signal within the third frequency range and a fourth frequency range, respectively; wherein the first frequency range is within the third frequency range, and the second frequency range is within the fourth frequency range;
[0029] The defect judgment module is used to compare the first maximum amplitude peak value with the third maximum amplitude peak value, and compare the second maximum amplitude peak value with the fourth maximum amplitude peak value, so as to determine the defect status of the left and right channels of the playback device.
[0030] In a third aspect, the present invention further provides a left and right channel defect detection device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements any of the above-mentioned left and right channel defect detection methods when executing the computer program.
[0031] In a fourth aspect, the present invention further provides a left and right channel defect detection system, comprising the left and right channel defect detection device as described above, and a first recording device and a second recording device both connected to the left and right channel defect detection device;
[0032] The first recording device is used to collect the first audio to be processed when the playback device plays the stereo audio; the stereo audio is synthesized by the first audio with a predetermined amplitude within a first frequency range and the second audio with a predetermined amplitude within a second frequency range; the first frequency range corresponds to the playback frequency of the left channel of the playback device; the distance between the first recording device and the left channel of the playback device is smaller than the distance between the first recording device and the right channel of the playback device;
[0033] The second recording device is used to collect the second audio to be processed when the playback device plays the stereo audio; the second frequency range corresponds to the playback frequency of the right channel of the playback device; the distance between the second recording device and the right channel is smaller than the distance between the first recording device and the left channel;
[0034] The left and right channel defect detection device obtains the first audio to be processed and the second audio to be processed.
[0035] In the technical solution provided by the present invention, the audio in the first frequency range and the second frequency range are synthesized into stereo audio, so that the stereo audio has a frequency that meets the left and right channel playback requirements, so that it is possible to smoothly detect whether the two channels are defective during the playback process. During the playback process, after recording the two recordings, analysis is performed in the frequency domain, and by comparing the amplitude information, it is possible to effectively determine which position emits the high-frequency audio and which position emits the low-frequency audio, so as to determine whether the installation position of the left and right channels is defective. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 This is a flow chart of a left and right channel defect detection method according to an embodiment of the present invention;
[0037] Figure 2 A flowchart of a left and right channel defect detection method according to another embodiment of the present invention;
[0038] Figure 3 A flowchart of a left and right channel defect detection method according to another embodiment of the present invention;
[0039] Figure 4 A flowchart of a left and right channel defect detection method according to another embodiment of the present invention;
[0040] Figure 5 A flowchart of a left and right channel defect detection method according to another embodiment of the present invention;
[0041] Figure 6 A schematic diagram of a left and right channel defect detection device according to another embodiment of the present invention;
[0042] Figure 7 Schematic diagram of a left and right channel defect detection system according to another embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] The embodiment of the present invention provides a left and right channel defect detection method, such as Figure 1 As shown, including:
[0045] Step 100, obtaining a first audio to be processed collected by a first recording device when a playback device plays stereo audio, and obtaining a second audio to be processed collected by a second recording device when a playback device plays stereo audio; wherein the stereo audio is synthesized by a first audio with a predetermined amplitude within a first frequency range and a second audio with a predetermined amplitude within a second frequency range; the first frequency range corresponds to the playback frequency of a left channel of the playback device, and the second frequency range corresponds to the playback frequency of a right channel of the playback device; the distance between the first recording device and the left channel is smaller than the distance between the first recording device and the right channel, and the distance between the second recording device and the right channel is smaller than the distance between the first recording device and the left channel;
[0046] In some embodiments, the frequencies in the first frequency range are lower than the frequencies in the second frequency range. The predetermined amplitude can be set according to the requirements, for example, the predetermined amplitude can be set to 1. The first frequency range corresponds to the playback frequency of the left channel, and the second frequency range corresponds to the playback frequency of the right channel, which can ensure that after the stereo audio is synthesized, the left and right channels have corresponding frequencies to play during the playback process. The first recording device and the second recording device will record the audio of the left and right channels at the same time, but for the audio of one channel, the audio amplitude recorded by the recording device at a close distance will be higher, and the audio amplitude recorded by the recording device at a far distance will be lower. In the subsequent frequency domain processing process, through the frequency information and amplitude information, it will be possible to effectively distinguish which frequency of sound is emitted by which channel, and the fault of the left and right channels can be effectively determined. As a preferred embodiment, the distance between the first recording device and the target position of the left channel is equal to the distance between the second recording device and the target position of the right channel.
[0047] Step 200, converting the first audio to be processed and the second audio to be processed respectively to obtain a first frequency domain signal and a second frequency domain signal;
[0048] In some embodiments, the frequency domain signal can effectively characterize the frequency characteristics of the audio signal, and the main frequency components of the frequency domain signal can be determined through the amplitude peak of the frequency domain signal. For this embodiment, since the first recording device and the second recording device are used to record the audio of the left channel and the right channel, there will be corresponding peaks in the first frequency domain signal and the second frequency domain signal corresponding to the audio of the left channel and the right channel.
[0049] Step 300, obtaining a first maximum amplitude peak value and a second maximum amplitude peak value of a first frequency domain signal within a third frequency range and a fourth frequency range, respectively, and obtaining a third maximum amplitude peak value and a fourth maximum amplitude peak value of a second frequency domain signal within the third frequency range and a fourth frequency range, respectively; wherein the first frequency range is within the third frequency range, and the second frequency range is within the fourth frequency range;
[0050] In some embodiments, the maximum amplitude peak refers to the peak with the highest amplitude in the frequency domain signal, which represents the main frequency component of the frequency domain signal in the corresponding frequency range. The first maximum amplitude peak obtained in the third frequency range corresponds to the audio of the right channel recorded by the first recording device, and the second maximum amplitude peak obtained in the fourth frequency range will correspond to the audio of the left channel recorded by the first recording device. The third maximum amplitude peak obtained in the third frequency range corresponds to the audio of the right channel recorded by the second recording device, and the second maximum amplitude peak obtained in the fourth frequency range will correspond to the audio of the left channel recorded by the second recording device.
[0051] Step 400 , compare the first maximum amplitude peak value and the second maximum amplitude peak value with the third maximum amplitude peak value and the fourth maximum amplitude peak value respectively to determine the defective state of the left and right channels.
[0052] In some embodiments, the first maximum amplitude peak and the second maximum amplitude peak correspond to the audio recorded by the first recording device, and the first maximum amplitude peak and the second maximum amplitude peak represent the audio information of the left and right channels respectively. Similarly, the third maximum amplitude peak and the fourth maximum amplitude peak correspond to the audio recorded by the second recording device, and the third maximum amplitude peak and the fourth maximum amplitude peak represent the audio recording information of the left and right channels respectively. By comparing the corresponding amplitude information, the position defects of the left and right channels and whether sound is produced can be identified.
[0053] In the technical solution provided by the present invention, the audio in the first frequency range and the second frequency range are synthesized into stereo audio, so that the stereo audio has a frequency that meets the left and right channel playback requirements, so that it is possible to smoothly detect whether the two channels are defective during the playback process. During the playback process, after recording the two recordings, analysis is performed in the frequency domain, and by comparing the amplitude information, it is possible to effectively determine which position emits the high-frequency audio and which position emits the low-frequency audio, so as to determine whether the installation position of the left and right channels is defective.
[0054] As an optional implementation, Figure 2 As shown, in step 400, the step of comparing the first maximum amplitude peak value with the third maximum amplitude peak value, and comparing the second maximum amplitude peak value with the fourth maximum amplitude peak value, to determine the defective state of the left and right channels includes:
[0055] Step 410, determining whether the first maximum amplitude peak value, the second maximum amplitude peak value, the third maximum amplitude peak value and the fourth maximum amplitude peak value are all present;
[0056] In some embodiments, the existence of the maximum amplitude peak is a prerequisite for comparing the maximum amplitude peak, so in this step, firstly, it is detected whether the maximum amplitude peak exists. When the corresponding maximum amplitude peak does not exist, it indicates that there is no main frequency component in the corresponding frequency range, that is, no audio of the corresponding frequency is recorded.
[0057] Step 420: When the first maximum amplitude peak, the second maximum amplitude peak, the third maximum amplitude peak, and the fourth maximum amplitude peak do not exist, it is determined that both the current left channel and the current right channel are silent.
[0058] In some embodiments, since the right channel corresponds to the first maximum amplitude peak and the third maximum amplitude peak, when the first maximum amplitude peak and the third maximum amplitude peak do not exist, it indicates that the current right channel is silent. Similarly, the left channel corresponds to the second maximum amplitude peak and the fourth maximum amplitude peak, when the second maximum amplitude peak and the fourth maximum amplitude peak do not exist, it indicates that the current left channel is silent.
[0059] As an optional implementation, Figure 3 As shown, in step 400, comparing the first maximum amplitude peak value and the second maximum amplitude peak value with the third maximum amplitude peak value and the fourth maximum amplitude peak value, respectively, to determine the defective state of the left and right channels includes:
[0060] Step 430, when the second maximum amplitude peak value and the fourth maximum amplitude peak value do not exist, and the first maximum amplitude peak value and the third maximum amplitude peak value exist, compare the amplitudes of the first maximum amplitude peak value and the third maximum amplitude peak value;
[0061] In some embodiments, when the second maximum amplitude peak and the fourth maximum amplitude peak do not exist, it indicates that the left channel is silent, and when the first maximum amplitude peak and the third maximum amplitude peak exist, it indicates that the right channel is sounded. At this time, in order to further determine whether the position of the right channel is correct, the amplitudes of the first maximum amplitude peak and the third maximum amplitude peak should be further compared.
[0062] Step 431, when the amplitude of the first maximum amplitude peak is less than the amplitude of the third maximum amplitude peak, it is determined that the positions of the left channel and the right channel are correct and the left channel is silent;
[0063] In some embodiments, when the amplitude of the first maximum amplitude peak is less than the amplitude of the third maximum amplitude peak, it indicates that the distance between the first recording device and the right channel is far, while the distance between the second recording device and the right channel is close. When the position of the recording device is set, the distance between the first recording device and the target position of the left channel is greater than the distance between the first recording device and the target position of the right channel, and the distance between the second recording device and the target position of the left channel is less than the distance between the first recording device and the target position of the right channel. Based on this, it can be determined that the right channel is currently installed at the target position of the right channel, that is, the positions of the left channel and the right channel are correct.
[0064] Step 432: When the amplitude of the first maximum amplitude peak is greater than the amplitude of the third maximum amplitude peak, it is determined that the positions of the left channel and the right channel are wrong and the left channel is silent.
[0065] In some embodiments, when the amplitude of the first maximum amplitude peak is greater than the amplitude of the third maximum amplitude peak, it indicates that the first recording device is closer to the right channel, while the second recording device is farther from the right channel. According to the position settings of the first recording device and the second recording device, it can be determined that the current right channel is installed at the target position of the left channel, that is, the positions of the left channel and the right channel are wrong.
[0066] As an optional implementation, Figure 4 As shown, in step 400, the step of comparing the first maximum amplitude peak value with the third maximum amplitude peak value, and comparing the second maximum amplitude peak value with the fourth maximum amplitude peak value to determine the defective state of the left and right channels also includes:
[0067] Step 440, when the first maximum amplitude peak value and the third maximum amplitude peak value do not exist, and the second maximum amplitude peak value and the fourth maximum amplitude peak value exist, compare the amplitudes of the second maximum amplitude peak value and the fourth maximum amplitude peak value;
[0068] In some embodiments, when the first maximum amplitude peak and the third maximum amplitude peak do not exist, it indicates that the right channel is silent, and when the second maximum amplitude peak and the fourth maximum amplitude peak exist, it indicates that the left channel is sounded. At this time, in order to further determine whether the position of the left channel is correct, the amplitudes of the second maximum amplitude peak and the fourth maximum amplitude peak should be further compared.
[0069] Step 441: When the amplitude of the second maximum amplitude peak is greater than the amplitude of the fourth maximum amplitude peak, it is determined that the positions of the left channel and the right channel are correct and the right channel is silent.
[0070] In some embodiments, when the amplitude of the second maximum amplitude peak is greater than the amplitude of the fourth maximum amplitude peak, it indicates that the first recording device is closer to the left channel, while the second recording device is farther from the left channel. According to the position settings of the first recording device and the second recording device, it can be determined that the current left channel is installed at the left channel target position, that is, the positions of the left channel and the right channel are correct.
[0071] Step 442: When the amplitude of the second maximum amplitude peak is smaller than the amplitude of the fourth maximum amplitude peak, it is determined that the positions of the left channel and the right channel are wrong and the right channel is silent.
[0072] In some embodiments, when the amplitude of the second maximum amplitude peak is less than the amplitude of the fourth maximum amplitude peak, it indicates that the first recording device is far away from the left channel, while the second recording device is close to the left channel. According to the position settings of the first recording device and the second recording device, it can be determined that the current left channel is installed at the left channel target position, that is, the positions of the left channel and the right channel are wrong.
[0073] As an optional implementation, Figure 5 As shown, in step 400, the step of comparing the first maximum amplitude peak value with the third maximum amplitude peak value, and comparing the second maximum amplitude peak value with the fourth maximum amplitude peak value to determine the defective state of the left and right channels also includes:
[0074] Step 450, when the first maximum amplitude peak, the second maximum amplitude peak, the third maximum amplitude peak and the fourth maximum amplitude peak all exist, compare the amplitudes of the first maximum amplitude peak and the third maximum amplitude peak, and compare the amplitudes of the second maximum amplitude peak and the fourth maximum amplitude peak;
[0075] In some embodiments, when all four maximum amplitude peaks exist, it indicates that both the left and right channels have sound. In order to further confirm whether the positions of the left and right channels are wrong, it is necessary to further compare the amplitude information.
[0076] Step 451: When the amplitude of the first maximum amplitude peak is smaller than the amplitude of the third maximum amplitude peak, and the amplitude of the second maximum amplitude peak is larger than the amplitude of the fourth maximum amplitude peak, it is determined that both the left and right channels are in a normal state.
[0077] In some embodiments, when the amplitude of the first maximum amplitude peak is less than the amplitude of the third maximum amplitude peak, it indicates that the distance between the first recording device and the right channel is far, while the distance between the second recording device and the right channel is close. Based on the position settings of the first recording device and the second recording device, it can be determined that the current right channel is installed at the right channel target position, that is, the positions of the left channel and the right channel are correct. Similarly, when the amplitude of the second maximum amplitude peak is greater than the amplitude of the fourth maximum amplitude peak, it indicates that the distance between the first recording device and the left channel is close, while the distance between the second recording device and the left channel is far. Based on the position settings of the first recording device and the second recording device, it can also be determined that the current left channel is installed at the left channel target position, that is, the positions of the left channel and the right channel are correct.
[0078] As an optional implementation, continue as Figure 5 As shown, step 400 also includes step 451, when the amplitude of the first maximum amplitude peak is greater than the amplitude of the third maximum amplitude peak, and the amplitude of the second maximum amplitude peak is less than the amplitude of the fourth maximum amplitude peak, it is determined that both the left and right channels have sound and the positions of the left and right channels are wrong.
[0079] In some embodiments, when the amplitude of the first maximum amplitude peak is greater than the amplitude of the third maximum amplitude peak, it indicates that the distance between the first recording device and the right channel is closer, while the distance between the second recording device and the right channel is farther. Based on the position settings of the first recording device and the second recording device, it can be determined that the current right channel is installed at the target position of the left channel, that is, the positions of the left channel and the right channel are wrong. Similarly, when the amplitude of the second maximum amplitude peak is less than the amplitude of the fourth maximum amplitude peak, it indicates that the distance between the first recording device and the left channel is farther, while the distance between the second recording device and the left channel is closer. Based on the position settings of the first recording device and the second recording device, it can also be determined that the current left channel is installed at the target position of the right channel, that is, the positions of the left channel and the right channel are wrong.
[0080] As an optional implementation, converting the first audio to be processed and the second audio to be processed respectively includes: performing Fourier transform on the first audio to be processed and the second audio to be processed respectively. In some embodiments, the first audio to be processed and the second audio to be processed are both recorded time domain signals, and the signal has time as the horizontal axis and amplitude as the vertical axis. After Fourier transform, a first frequency domain signal and a second frequency domain signal are formed, and the frequency domain signal has frequency as the horizontal axis and amplitude as the vertical axis. Fourier transform can be performed according to the following formula:
[0081]
[0082] Among them, x(t) is the time domain audio and X(jω) is the frequency domain audio.
[0083] As an optional implementation manner, after converting the first audio to be processed and the second audio to be processed respectively to obtain the first frequency domain signal and the second frequency domain signal, the method further includes:
[0084] The first frequency domain signal and the second frequency domain signal are discretely sampled to obtain a first edge contour corresponding to the first frequency domain signal and a second edge contour corresponding to the second frequency domain signal.
[0085] In some embodiments, discrete sampling of the frequency domain signal can obtain the edge profile of the frequency domain signal, which is more convenient for searching and comparing the peak value.
[0086] As an optional implementation manner, the center value of the first frequency range is the same as that of the third frequency range, and the center value of the second frequency range is the same as that of the fourth frequency range.
[0087] In some embodiments, the first frequency range is used for playing the right channel, the second frequency range is used for playing the left channel, the third frequency range is used for detecting the right channel, and the fourth frequency range is used for detecting the left channel. Setting the center values of the first frequency range and the third frequency range to be the same, and the center values of the second frequency range and the fourth frequency range to be the same, can more accurately detect the occurrence status of the left and right channels.
[0088] As an optional implementation, the first frequency range is 390 Hz-410 Hz, the second frequency range is 990 Hz-1010 Hz, the third frequency range is 350 Hz-450 Hz, and the fourth frequency range is 950 Hz-1050 Hz.
[0089] In an embodiment of the present invention, a left and right channel defect detection device is also provided. Figure 6 As shown, including:
[0090] A data acquisition module, used to acquire first audio to be processed collected by a first recording device when a playback device plays stereo audio, and to acquire second audio to be processed collected by a second recording device when a playback device plays stereo audio; wherein the stereo audio is synthesized by a first audio with a predetermined amplitude within a first frequency range and a second audio with a predetermined amplitude within a second frequency range; the first frequency range corresponds to the playback frequency of a left channel of the playback device, and the second frequency range corresponds to the playback frequency of a right channel of the playback device; the distance between the first recording device and the left channel is smaller than the distance between the first recording device and the right channel, and the distance between the second recording device and the right channel is smaller than the distance between the first recording device and the left channel;
[0091] An audio conversion module, used for converting the first audio to be processed and the second audio to be processed respectively to obtain a first frequency domain signal and a second frequency domain signal;
[0092] A data processing module, used to obtain a first maximum amplitude peak value and a second maximum amplitude peak value of a first frequency domain signal within a third frequency range and a fourth frequency range, respectively, and to obtain a third maximum amplitude peak value and a fourth maximum amplitude peak value of a second frequency domain signal within the third frequency range and a fourth frequency range, respectively; wherein the first frequency range is within the third frequency range, and the second frequency range is within the fourth frequency range;
[0093] The defect judgment module is used to compare the first maximum amplitude peak value with the third maximum amplitude peak value, and compare the second maximum amplitude peak value with the fourth maximum amplitude peak value, so as to determine the defect status of the left and right channels of the playback device.
[0094] As an optional implementation, the defect judgment module is also used to determine whether the first maximum amplitude peak, the second maximum amplitude peak, the third maximum amplitude peak and the fourth maximum amplitude peak are all present; when the first maximum amplitude peak, the second maximum amplitude peak, the third maximum amplitude peak and the fourth maximum amplitude peak do not exist, it is determined that both the left channel and the right channel are silent.
[0095] As an optional implementation, the defect judgment module is also used to compare the amplitudes of the first maximum amplitude peak and the third maximum amplitude peak when the second maximum amplitude peak and the fourth maximum amplitude peak do not exist but the first maximum amplitude peak and the third maximum amplitude peak exist; when the amplitude of the first maximum amplitude peak is smaller than the amplitude of the third maximum amplitude peak, determine that the positions of the left channel and the right channel are correct and the left channel is silent; when the amplitude of the first maximum amplitude peak is larger than the amplitude of the third maximum amplitude peak, determine that the positions of the left channel and the right channel are incorrect and the left channel is silent.
[0096] As an optional implementation, the defect judgment module is also used to compare the amplitudes of the second maximum amplitude peak and the fourth maximum amplitude peak when the first maximum amplitude peak and the third maximum amplitude peak do not exist but the second maximum amplitude peak and the fourth maximum amplitude peak exist; when the amplitude of the second maximum amplitude peak is greater than the amplitude of the fourth maximum amplitude peak, determine that the positions of the left channel and the right channel are correct and the right channel is silent; when the amplitude of the second maximum amplitude peak is less than the amplitude of the fourth maximum amplitude peak, determine that the positions of the left channel and the right channel are incorrect and the right channel is silent.
[0097] As an optional implementation, the defect judgment module is also used to compare the amplitudes of the first maximum amplitude peak and the third maximum amplitude peak, and to compare the amplitudes of the second maximum amplitude peak and the fourth maximum amplitude peak when the first maximum amplitude peak, the second maximum amplitude peak, the third maximum amplitude peak and the fourth maximum amplitude peak all exist; when the amplitude of the first maximum amplitude peak is smaller than the amplitude of the third maximum amplitude peak, and the amplitude of the second maximum amplitude peak is larger than the amplitude of the fourth maximum amplitude peak, it is determined that both the left and right channels are in a normal state.
[0098] As an optional implementation, the defect judgment module is also used to determine that both left and right channels have sound and the left and right channel positions are wrong when the amplitude of the first maximum amplitude peak is greater than the amplitude of the third maximum amplitude peak, and the amplitude of the second maximum amplitude peak is less than the amplitude of the fourth maximum amplitude peak.
[0099] As an optional implementation manner, the center value of the first frequency range is the same as that of the third frequency range, and the center value of the second frequency range is the same as that of the fourth frequency range.
[0100] In an embodiment of the present invention, a left and right channel defect detection device is also provided, including a memory and a processor, the memory stores a computer program, and the processor implements any of the above-mentioned left and right channel defect detection methods when executing the computer program.
[0101] In an embodiment of the present invention, a left and right channel defect detection system is also provided. Figure 7 As shown, it includes the above-mentioned left and right channel defect detection device and a first recording device and a second recording device both connected to the left and right channel defect detection device;
[0102] The first recording device is used to collect the first audio to be processed when the playback device plays the stereo audio; the stereo audio is synthesized by the first audio with a predetermined amplitude within a first frequency range and the second audio with a predetermined amplitude within a second frequency range; the first frequency range corresponds to the playback frequency of the left channel of the playback device; the distance between the first recording device and the left channel of the playback device is smaller than the distance between the first recording device and the right channel of the playback device;
[0103] The second recording device is used to collect the second audio to be processed when the playback device plays the stereo audio; the second frequency range corresponds to the playback frequency of the right channel of the playback device; the distance between the second recording device and the right channel is smaller than the distance between the first recording device and the left channel;
[0104] The left and right channel defect detection device obtains the first audio to be processed and the second audio to be processed.
[0105] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0106] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0107] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0108] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0109] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A left and right channel defect detection method, characterized in that: include: Obtain a first audio to be processed that is collected by a first recording device when a playback device plays stereo audio, and obtain a second audio to be processed that is collected by a second recording device when the playback device plays the stereo audio; wherein the stereo audio is synthesized by a first audio with a predetermined amplitude within a first frequency range and a second audio with a predetermined amplitude within a second frequency range; the first frequency range corresponds to the playback frequency of a left channel of the playback device, and the second frequency range corresponds to the playback frequency of a right channel of the playback device; the distance between the first recording device and the left channel is smaller than the distance between the first recording device and the right channel, and the distance between the second recording device and the right channel is smaller than the distance between the first recording device and the left channel; Converting the first audio to be processed and the second audio to be processed respectively to obtain a first frequency domain signal and a second frequency domain signal; Acquire a first maximum amplitude peak and a second maximum amplitude peak of the first frequency domain signal within a third frequency range and a fourth frequency range, respectively, and acquire a third maximum amplitude peak and a fourth maximum amplitude peak of the second frequency domain signal within the third frequency range and the fourth frequency range, respectively; wherein the first frequency range is within the third frequency range, and the second frequency range is within the fourth frequency range; The first maximum amplitude peak value is compared with the third maximum amplitude peak value, and the second maximum amplitude peak value is compared with the fourth maximum amplitude peak value to determine the defect status of the left and right channels of the playback device.
2. The method according to claim 1, characterized in that The step of comparing the first maximum amplitude peak value with the third maximum amplitude peak value, and comparing the second maximum amplitude peak value with the fourth maximum amplitude peak value to determine the defective state of the left and right channels comprises: Determine whether the first maximum amplitude peak value, the second maximum amplitude peak value, the third maximum amplitude peak value and the fourth maximum amplitude peak value are all present; When the first maximum amplitude peak, the second maximum amplitude peak, the third maximum amplitude peak, and the fourth maximum amplitude peak do not exist, it is determined that both the left channel and the right channel are silent.
3. The method according to claim 2, characterized in that The step of comparing the first maximum amplitude peak value with the third maximum amplitude peak value, and comparing the second maximum amplitude peak value with the fourth maximum amplitude peak value to determine the defective state of the left and right channels also includes: When the second maximum amplitude peak value and the fourth maximum amplitude peak value do not exist, and the first maximum amplitude peak value and the third maximum amplitude peak value exist, comparing the amplitudes of the first maximum amplitude peak value and the third maximum amplitude peak value; When the amplitude of the first maximum amplitude peak is not equal to the amplitude of the third maximum amplitude peak, it is determined whether the left channel and the right channel are sounded and whether the positions of the left channel and the right channel are correct based on the comparison result of the amplitudes of the first maximum amplitude peak and the third maximum amplitude peak.
4. The method according to claim 2, characterized in that: The step of comparing the first maximum amplitude peak value with the third maximum amplitude peak value, and comparing the second maximum amplitude peak value with the fourth maximum amplitude peak value to determine the defective state of the left and right channels also includes: When the first maximum amplitude peak value and the third maximum amplitude peak value do not exist, and the second maximum amplitude peak value and the fourth maximum amplitude peak value exist, comparing the amplitudes of the second maximum amplitude peak value and the fourth maximum amplitude peak value; When the amplitude of the second maximum amplitude peak is not equal to the amplitude of the fourth maximum amplitude peak, it is determined whether the left channel and the right channel are sounded and whether the positions of the left channel and the right channel are correct based on the comparison result of the amplitude of the second maximum amplitude peak and the fourth maximum amplitude peak.
5. The method according to claim 2, characterized in that: The step of comparing the first maximum amplitude peak value with the third maximum amplitude peak value, and comparing the second maximum amplitude peak value with the fourth maximum amplitude peak value to determine the defective state of the left and right channels also includes: When the first maximum amplitude peak value, the second maximum amplitude peak value, the third maximum amplitude peak value and the fourth maximum amplitude peak value all exist, comparing the amplitudes of the first maximum amplitude peak value and the third maximum amplitude peak value, and comparing the amplitudes of the second maximum amplitude peak value and the fourth maximum amplitude peak value; When the amplitude of the first maximum amplitude peak is not equal to the amplitude of the third maximum amplitude peak and the amplitude of the second maximum amplitude peak is not equal to the amplitude of the fourth maximum amplitude peak; based on the comparison result of the amplitudes of the first maximum amplitude peak and the third maximum amplitude peak and based on the comparison result of the amplitudes of the second maximum amplitude peak and the fourth maximum amplitude peak, determine whether the positions of the left and right channels are correct.
6. The method according to any one of claims 1 to 5, characterized in that: The first frequency range has the same center value as the third frequency range, and the second frequency range has the same center value as the fourth frequency range.
7. A left and right channel defect detection device, characterized in that: include: A data acquisition module, used to acquire first audio to be processed collected by a first recording device when a playback device plays stereo audio, and to acquire second audio to be processed collected by a second recording device when the playback device plays the stereo audio; wherein the stereo audio is synthesized by a first audio with a predetermined amplitude within a first frequency range and a second audio with a predetermined amplitude within a second frequency range; the first frequency range corresponds to the playback frequency of a left channel of the playback device, and the second frequency range corresponds to the playback frequency of a right channel of the playback device; the distance between the first recording device and the left channel is smaller than the distance between the first recording device and the right channel, and the distance between the second recording device and the right channel is smaller than the distance between the first recording device and the left channel; An audio conversion module, used for converting the first audio to be processed and the second audio to be processed respectively to obtain a first frequency domain signal and a second frequency domain signal; A data processing module, used to obtain a first maximum amplitude peak value and a second maximum amplitude peak value of the first frequency domain signal within a third frequency range and a fourth frequency range, respectively, and to obtain a third maximum amplitude peak value and a fourth maximum amplitude peak value of the second frequency domain signal within the third frequency range and the fourth frequency range, respectively; wherein the first frequency range is within the third frequency range, and the second frequency range is within the fourth frequency range; The defect judgment module is used to compare the first maximum amplitude peak value with the third maximum amplitude peak value, and compare the second maximum amplitude peak value with the fourth maximum amplitude peak value, so as to determine the defect status of the left and right channels of the playback device.
8. A left and right channel defect detection device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the left and right channel defect detection method according to any one of claims 1 to 6 is implemented.
9. A left and right channel defect detection system, characterized in that: The device comprises the left and right channel defect detection device according to claim 8 and a first recording device and a second recording device both connected to the left and right channel defect detection device; The first recording device is used to collect the first audio to be processed when the playback device plays the stereo audio; The stereo audio is synthesized by a first audio with a predetermined amplitude within a first frequency range and a second audio with a predetermined amplitude within a second frequency range; the first frequency range corresponds to the playback frequency of the left channel of the playback device; the distance between the first recording device and the left channel of the playback device is smaller than the distance between the first recording device and the right channel of the playback device; The second recording device is used to collect the second audio to be processed when the playback device plays the stereo audio; the second frequency range corresponds to the playback frequency of the right channel of the playback device; the distance between the second recording device and the right channel is smaller than the distance between the first recording device and the left channel; The left and right channel defect detection device obtains the first audio to be processed and the second audio to be processed.
Citation Information
Patent Citations
Audio test device and method
CN101374374A
Electronic equipment testing method and device
CN111726740A
Audio chip test method, storage device and computer equipment
CN112291696A
Sound optimization device and method about combination of personal smart device and earphones
KR101659410B1
System for deriving a center channel signal from an adapted weighted combination of the left and right channels in a stereophonic audio signal
US5426702A
