A test method for detecting I2S-TDM recording channel offset

By extracting multiple segments of audio signals from the recorded audio signals as test signals, and judging whether the I2S recording channel has shifted to the TDM mode according to its data format, the problem of low test efficiency in the existing technology is solved and more efficient mode judgment is achieved.

CN117612573BActive Publication Date: 2024-09-27SHENZHEN BLUEWHALE INTEL-CONNECTIVITY S&T CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311567328.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-22
Publication Date
2024-09-27
Estimated Expiration
2043-11-22

AI Technical Summary

Technical Problem

When the existing technology detects whether the I2S recording channel has shifted to the TDM mode, it is necessary to test the entire recording audio signal, resulting in low test efficiency.

Method used

By randomly extracting multiple audio signals of preset length from the recorded audio signal as the test audio signal, and judging whether the recording channel has shifted from the I2S standard mode to the TDM mode according to its data format.

Benefits of technology

It reduces the amount of test data, improves test efficiency, and can quickly determine the mode changes of the recording channel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117612573B
    Figure CN117612573B
Patent Text Reader

Abstract

The present invention relates to the field of audio technology, and in particular to a test method for detecting an offset of an I2S-TDM recording channel, comprising: obtaining a recording audio file corresponding to a recording channel in an audio device; obtaining a recording audio signal corresponding to the recording audio file based on the recording audio file; randomly extracting multiple audio signals of preset lengths from the recording audio signal as test audio signals; obtaining a data format of the test audio signal, and judging whether a current recording channel has offset from an I2S standard mode to a TDM mode according to the data format of the test audio signal; the present invention reduces the amount of test data and improves test efficiency by extracting multiple audio signals of preset lengths from the recording audio signal as test audio signals and judging whether the current recording channel has offset from an I2S standard mode to a TDM mode according to the data format of the test audio signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of audio technology, and in particular to a test method for detecting an I2S-TDM recording channel offset. Background Art

[0002] The I2S bus, also known as the integrated circuit built-in audio bus, is a bus standard developed for audio data transmission between digital audio devices. The I2S bus has three main signals: serial data signal (Serial Data for short SD), field select signal (WordSelect for short WS) and serial clock signal (Serial Clock for short SCK). By separating the data and clock signals and using WS to distinguish the left and right channels, with the development of technology, under the unified I2S interface, a variety of different data formats have emerged. According to the different positions of SDATA data relative to LRCK and SCLK, it is divided into left-aligned format, I2S format, right-aligned format, DSP format and TDM format.

[0003] At present, with the development of technology, audio devices have a variety of different data formats under the unified I2S interface. According to the different positions of SDATA data relative to LRCK and SCLK, they are divided into left-aligned format, I2S format, right-aligned format, DSP format and TDM format. During the use of audio devices, the recording channel may shift from the I2S standard mode to the TDM mode. Therefore, it is necessary to test the recording channel. The existing test method is to test the entire recorded audio signal to determine whether the recording channel has shifted from the I2S standard mode to the TDM mode.

[0004] However, the above method requires the entire recorded audio signal to be tested as a whole, resulting in low test efficiency. Summary of the invention

[0005] The purpose of the present invention is to provide a test method for detecting the offset of an I2S-TDM recording channel. By extracting multiple audio signals of preset lengths from a recorded audio signal as test audio signals, it is determined whether the current recording channel has offset from an I2S standard mode to a TDM mode according to the data format of the test audio signal, thereby reducing the amount of test data and improving test efficiency.

[0006] To achieve the above object, the present invention provides a test method for detecting an I2S-TDM recording channel offset, comprising:

[0007] Get the recorded audio file corresponding to the recording channel in the audio device;

[0008] Obtaining a recorded audio signal corresponding to the recorded audio file based on the recorded audio file;

[0009] Randomly extracting a plurality of audio signals of preset length from the recorded audio signal as test audio signals;

[0010] The data format of the test audio signal is obtained, and it is determined whether the current recording channel is shifted from the I2S standard mode to the TDM mode according to the data format of the test audio signal.

[0011] The specific steps of randomly extracting a plurality of audio signals of preset length from the recorded audio signal as the test audio signals include:

[0012] Splitting the recorded audio signal into multiple segments of the same length to obtain multiple single-segment audio signals;

[0013] Randomly select half of the single-segment audio signals from the multiple single-segment audio signals as test audio signals.

[0014] The specific steps of obtaining the data format of the test audio signal and determining whether the current recording channel is offset from the I2S audio interface to the TDM audio interface according to the data format of the test audio signal include:

[0015] Acquire the data format of the test audio signal;

[0016] According to the data format of the test audio signal, determine the audio mode to which the data format belongs, wherein the audio modes include I2S standard mode, left-aligned standard mode, right-aligned standard mode, DSP mode and TDM mode;

[0017] According to the audio mode to which the data format of the test audio signal belongs, it is determined whether the current recording channel has shifted from the I2S standard mode to the TDM mode.

[0018] The specific steps of determining whether the current recording channel is shifted from the I2S standard mode to the TDM mode according to the audio mode to which the data format of the test audio signal belongs include:

[0019] When the audio mode to which the data format of the test audio signal belongs is the I2S standard mode, determining that the current recording channel has not shifted from the I2S standard mode to the TDM mode;

[0020] When the audio mode to which the data format of the test audio signal belongs is the TDM mode, it is determined that the current recording channel is shifted from the I2S standard mode to the TDM mode.

[0021] Wherein, when the audio mode to which the data format of the test audio signal belongs is the TDM mode, after determining that the current recording channel is offset from the I2S standard mode to the TDM mode, the method further includes:

[0022] When the audio mode to which the data format of the test audio signal belongs is the left-aligned standard mode, it is determined that the current recording channel has not shifted from the I2S standard mode to the TDM mode.

[0023] Wherein, when the audio mode to which the data format of the test audio signal belongs is the left-aligned standard mode, after determining that the current recording channel has not shifted from the I2S standard mode to the TDM mode, the method further includes:

[0024] When the audio mode to which the data format of the test audio signal belongs is the right-aligned standard mode, it is determined that the current recording channel has not shifted from the I2S standard mode to the TDM mode.

[0025] Wherein, when the audio mode to which the data format of the test audio signal belongs is the right-aligned standard mode, after determining that the current recording channel has not shifted from the I2S standard mode to the TDM mode, the method further includes:

[0026] When the audio mode to which the data format of the test audio signal belongs is the DSP mode, it is determined that the current recording channel has not shifted from the I2S standard mode to the DSP mode.

[0027] A test method for detecting an offset of an I2S-TDM recording channel of the present invention comprises the following steps: firstly obtaining a recording audio file corresponding to a recording channel in an audio device; obtaining a recording audio signal corresponding to the recording audio file based on the recording audio file; randomly extracting a plurality of audio signals of a preset length from the recording audio signal as test audio signals; obtaining a data format of the test audio signal, and judging whether the current recording channel has offset from an I2S standard mode to a TDM mode according to the data format of the test audio signal; the present invention reduces the amount of test data and improves test efficiency by extracting a plurality of audio signals of a preset length from the recording audio signal as test audio signals and judging whether the current recording channel has offset from an I2S standard mode to a TDM mode according to the data format of the test audio signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0029] Figure 1 It is an overall flow chart of the first embodiment of the present invention.

[0030] Figure 2 This is a flowchart of the first embodiment of the present invention for randomly extracting multiple audio signals of preset length from the recorded audio signal as test audio signals.

[0031] Figure 3 This is a flowchart of obtaining the data format of the test audio signal according to the first embodiment of the present invention, and determining whether the current recording channel is offset from the I2S audio interface to the TDM audio interface according to the data format of the test audio signal.

[0032] Figure 4 This is a flowchart of the first embodiment of the present invention for determining whether the current recording channel has shifted from the I2S standard mode to the TDM mode according to the audio mode to which the data format of the test audio signal belongs.

[0033] Figure 5 It is an overall flow chart of the second embodiment of the present invention. DETAILED DESCRIPTION

[0034] The first embodiment of the present application is:

[0035] See also Figure 1-Figure 4 ,in, Figure 1 It is an overall flow chart of the first embodiment of the present invention.

[0036] Figure 2 This is a flowchart of the first embodiment of the present invention for randomly extracting multiple audio signals of preset length from the recorded audio signal as test audio signals. Figure 3 This is a flowchart of obtaining the data format of the test audio signal according to the first embodiment of the present invention, and determining whether the current recording channel is offset from the I2S audio interface to the TDM audio interface according to the data format of the test audio signal. Figure 4 This is a flowchart of the first embodiment of the present invention for determining whether the current recording channel has shifted from the I2S standard mode to the TDM mode according to the audio mode to which the data format of the test audio signal belongs.

[0037] The present invention provides a test method for detecting an I2S-TDM recording channel offset, comprising:

[0038] S1 obtains the recording audio file corresponding to the recording channel in the audio device;

[0039] S2 obtains a recorded audio signal corresponding to the recorded audio file based on the recorded audio file;

[0040] S3 randomly extracts a plurality of audio signals of preset length from the recorded audio signal as test audio signals;

[0041] The specific steps include:

[0042] S31 splits the recorded audio signal into multiple segments of the same length to obtain multiple single-segment audio signals;

[0043] The number of segments into which the recorded audio signal is split can be set by oneself, wherein the length of each single segment of the audio signal must remain consistent. In order to improve the accuracy of the test, the length can be set longer when setting the number of segments.

[0044] S32 randomly selects half of the single-segment audio signals from the multiple single-segment audio signals as test audio signals.

[0045] S4 obtains the data format of the test audio signal, and determines whether the current recording channel is shifted from the I2S standard mode to the TDM mode according to the data format of the test audio signal.

[0046] The specific steps include:

[0047] S41 obtains the data format of the test audio signal;

[0048] According to the data format of the test audio signal, determine the audio mode to which the data format belongs, wherein the audio modes include I2S standard mode, left-aligned standard mode, right-aligned standard mode, DSP mode and TDM mode;

[0049] S42 determines whether the current recording channel is shifted from the I2S standard mode to the TDM mode according to the audio mode to which the data format of the test audio signal belongs;

[0050] The specific steps include:

[0051] S421: when the audio mode to which the data format of the test audio signal belongs is the I2S standard mode, determining that the current recording channel has not shifted from the I2S standard mode to the TDM mode;

[0052] S422: when the audio mode to which the data format of the test audio signal belongs is the TDM mode, determining that the current recording channel is shifted from the I2S standard mode to the TDM mode;

[0053] The difference between TDM and I2S lies in the position of the data relative to the frame clock (FSYNC / WS), the polarity of the clock and the length of the frame. Compared with I2S, TDM is more flexible in application. Through time division multiplexing (TDM, Time Division Q Multiplexing), TDM supports the simultaneous transmission of up to N (N>8) channels of data, reducing the number of pins. TDM does not have a unified standard like I2S. Different IC manufacturers may have slight differences in the application of TDM. These differences are reflected in the polarity of the clock, the trigger conditions of the channel configuration, and the processing of idle channels. Therefore, by judging the audio mode to which the data format belongs, it can be known whether the recording channel has shifted from the I2S standard mode to the TDM mode.

[0054] S423: when the audio mode to which the data format of the test audio signal belongs is the left-aligned standard mode, determining that the current recording channel has not shifted from the I2S standard mode to the TDM mode;

[0055] S424: when the audio mode to which the data format of the test audio signal belongs is the right-aligned standard mode, determining that the current recording channel has not shifted from the I2S standard mode to the TDM mode;

[0056] S425: when the audio mode to which the data format of the test audio signal belongs is the DSP mode, determining that the current recording channel has not shifted from the I2S standard mode to the DSP mode;

[0057] The test method for detecting the offset of an I2S-TDM recording channel described in this embodiment extracts multiple audio signals of preset length from the recorded audio signal as test audio signals, and determines whether the current recording channel has offset from the I2S standard mode to the TDM mode according to the data format of the test audio signal, thereby reducing the amount of test data and improving test efficiency.

[0058] The second embodiment of the present application is:

[0059] Based on the first embodiment, please refer to Figure 5 ,in, Figure 5 It is an overall flow chart of the second embodiment of the present invention.

[0060] A test method for detecting an I2S-TDM recording channel offset provided by the present invention, after obtaining the data format of the test audio signal in step S4, and determining whether the current recording channel is offset from the I2S standard mode to the TDM mode according to the data format of the test audio signal, further comprises:

[0061] S5 organizes the judgment results into logs and stores them in a database;

[0062] S6 transmits the data in the database to the cloud server.

[0063] The test method for detecting the offset of an I2S-TDM recording channel described in this embodiment, after determining whether the recording channel has deviated from the I2S standard mode to the TDM mode, will organize the determination result into a log and store it in a database, and transmit the data from the database to a cloud server. The user can download the data from the cloud server using a terminal, and can quickly obtain the data.

[0064] What is disclosed above is only one or more preferred embodiments of the present application, and cannot be used to limit the scope of rights of the present application. Ordinary technicians in this field can understand that all or part of the processes of implementing the above embodiments and equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A test method for detecting I2S-TDM recording channel offset, characterized in that: include: Get the recorded audio file corresponding to the recording channel in the audio device; Obtaining a recorded audio signal corresponding to the recorded audio file based on the recorded audio file; Randomly extracting a plurality of audio signals of preset length from the recorded audio signal as test audio signals; Acquire the data format of the test audio signal, and determine whether the current recording channel is shifted from the I2S standard mode to the TDM mode according to the data format of the test audio signal; The specific steps of obtaining the data format of the test audio signal and determining whether the current recording channel is shifted from the I2S audio interface to the TDM audio interface according to the data format of the test audio signal include: Acquire the data format of the test audio signal; According to the data format of the test audio signal, determine the audio mode to which the data format belongs, wherein the audio modes include I2S standard mode, left-aligned standard mode, right-aligned standard mode, DSP mode and TDM mode; According to the audio mode to which the data format of the test audio signal belongs, determining whether the current recording channel has shifted from the I2S standard mode to the TDM mode; The specific steps of judging whether the current recording channel is shifted from the I2S standard mode to the TDM mode according to the audio mode to which the data format of the test audio signal belongs include: When the audio mode to which the data format of the test audio signal belongs is the I2S standard mode, determining that the current recording channel has not shifted from the I2S standard mode to the TDM mode; When the audio mode to which the data format of the test audio signal belongs is the TDM mode, it is determined that the current recording channel is shifted from the I2S standard mode to the TDM mode.

2. A test method for detecting an I2S-TDM recording channel offset as claimed in claim 1, characterized in that: The specific steps of randomly extracting a plurality of audio signals of preset length from the recorded audio signal as test audio signals include: Splitting the recorded audio signal into multiple segments of the same length to obtain multiple single-segment audio signals; Randomly select half of the single-segment audio signals from the multiple single-segment audio signals as test audio signals.

3. A test method for detecting an I2S-TDM recording channel offset as claimed in claim 2, characterized in that: When the audio mode to which the data format of the test audio signal belongs is the TDM mode, after determining that the current recording channel is shifted from the I2S standard mode to the TDM mode, the method further includes: When the audio mode to which the data format of the test audio signal belongs is the left-aligned standard mode, it is determined that the current recording channel has not shifted from the I2S standard mode to the TDM mode.

4. A test method for detecting an I2S-TDM recording channel offset as claimed in claim 3, characterized in that: When the audio mode to which the data format of the test audio signal belongs is the left-aligned standard mode, after determining that the current recording channel has not shifted from the I2S standard mode to the TDM mode, the method further includes: When the audio mode to which the data format of the test audio signal belongs is the right-aligned standard mode, it is determined that the current recording channel has not shifted from the I2S standard mode to the TDM mode.

5. A test method for detecting an I2S-TDM recording channel offset as claimed in claim 4, characterized in that: When the audio mode to which the data format of the test audio signal belongs is the right-aligned standard mode, after determining that the current recording channel has not shifted from the I2S standard mode to the TDM mode, the method further includes: When the audio mode to which the data format of the test audio signal belongs is the DSP mode, it is determined that the current recording channel has not shifted from the I2S standard mode to the DSP mode.