A method, device, playback device and medium for detecting audio link signal
By determining the audio link node in the audio link detection method and using the audio signal of the preset frequency for detection, the problem of special hardware and software for audio link signal detection in the prior art is solved, and a detection solution with higher flexibility and lower cost is realized.
Patent Information
- Application Number
- CN202411944663.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-04-01
AI Technical Summary
The existing audio link signal detection methods require dedicated hardware and software support, which are low in flexibility and difficult to adapt to a variety of different audio link configurations.
By determining the link nodes in the audio link according to the circuit structure of the audio playback circuit, an audio signal of a preset frequency is generated, the transmission status of the signal in the audio link is monitored, and the node voltage of each link node is collected, and the node voltage is compared with the standard voltage to determine the detection result.
The detection of audio links does not require relying on dedicated audio parsing hardware or software, which can better adapt to a variety of different audio link configurations, simplify system configuration and design, and reduce hardware and development costs.
Smart Images

Figure CN119743720A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of audio signal processing, and in particular to an audio link signal detection method, device, playback device and medium. Background Art
[0002] The audio link refers to the path of a series of devices, connections and processing steps that the audio signal passes through from generation to final playback. The conventional audio link system architecture mainly includes: audio input, preprocessing, digital signal processing and communication interface transmission.
[0003] Existing audio link signal detection methods mainly rely on DSP for signal analysis, which is costly and complex. These methods require specialized hardware and software support, have low flexibility, and are difficult to adapt to a variety of different audio link configurations. Summary of the invention
[0004] The present application provides an audio link signal detection method, apparatus, playback device and medium, which are used to solve the technical problem that the existing audio link signal detection requires special hardware and software support and has low flexibility.
[0005] In order to solve the above technical problems, the first aspect of the present application provides an audio link detection method, comprising:
[0006] Determine a link node in the audio link according to the circuit structure of the audio playback circuit;
[0007] In response to the signal detection instruction, generating an audio signal of a preset frequency;
[0008] Monitoring the transmission state of the audio signal in the audio link, and collecting the node voltage of each link node when processing the audio signal;
[0009] The detection result of the audio link is determined according to the comparison result of the node voltage and the node standard voltage.
[0010] Preferably, after determining the link node in the audio link, the method further includes:
[0011] Generate a plurality of standard audio signals of preset frequencies, monitor the transmission status of the standard audio signals in the audio link, and collect and record the node voltage of each link node when processing the standard audio signals as the node standard voltage.
[0012] Preferably, determining the detection result of the audio link according to the comparison result of the node voltage and the node standard voltage includes:
[0013] According to the comparison result between the node voltage and the node standard voltage, when the difference between the node voltage of any link node and the node standard voltage exceeds a preset error threshold, the link node is determined to be an abnormal node.
[0014] Preferably, the preset frequency ranges from 50 Hz to 10 kHz.
[0015] Preferably, the preset frequency is at least one of 50 Hz, 100 Hz, 200 Hz, 500 Hz, 1 kHz, 2 kHz, 5 kHz and 10 kHz.
[0016] At the same time, the second aspect of the present application provides an audio link detection device, including:
[0017] A link structure acquisition unit, used to determine a link node in the audio link according to the circuit structure of the audio playback circuit;
[0018] A signal detection response unit, used to generate an audio signal of a preset frequency in response to a signal detection instruction;
[0019] A node voltage collection unit, used to monitor the transmission state of the audio signal in the audio link, and collect the node voltage of each link node when processing the audio signal;
[0020] The detection result determination unit is used to determine the detection result of the audio link according to the comparison result between the node voltage and the node standard voltage.
[0021] Preferably, it also includes:
[0022] The standard voltage determination unit is used to generate a plurality of standard audio signals of preset frequencies, monitor the transmission status of the standard audio signals in the audio link, and collect and record the node voltage of each link node when processing the standard audio signal as the node standard voltage.
[0023] Preferably, the detection result determination unit is specifically used for:
[0024] According to the comparison result between the node voltage and the node standard voltage, when the difference between the node voltage of any link node and the node standard voltage exceeds a preset error threshold, the link node is determined to be an abnormal node.
[0025] A third aspect of the present application provides an audio playback device, comprising: an audio link to be tested and an audio link detection circuit;
[0026] The audio link detection circuit is electrically connected to the link node of the audio link under test;
[0027] The audio link detection circuit includes: a memory, an analog-to-digital converter and a processor;
[0028] The memory is used to store program codes, and the program codes are used to implement an audio link detection method provided in the first aspect of the present application;
[0029] The processor is used for reading and executing the program code.
[0030] A fourth aspect of the present application provides a computer-readable storage medium, in which a program code is stored. The program code is used to be read and executed by a processor to implement an audio link detection method as provided in the first aspect of the present application.
[0031] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0032] The solution provided in the present application is first based on the circuit structure of the audio playback device and determines the link nodes in the audio link. Then, by generating an audio signal of a preset frequency, the transmission status of the audio signal in the audio link is monitored, and the node voltage of each link node when processing an audio signal of a specific frequency is collected and compared with the pre-recorded standard voltage value. The detection result of the audio link can be determined based on the comparison result. It does not need to rely on dedicated audio analysis hardware or software such as DSP, and can better adapt to a variety of different audio link configurations. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] 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 will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0034] Figure 1 A schematic diagram of the structure of an audio playback device embodiment provided in this application.
[0035] Figure 2 A schematic diagram of a flow chart of an embodiment of an audio link signal detection method provided in the present application.
[0036] Figure 3 A schematic diagram of the structure of an embodiment of an audio link signal detection device provided in the present application. DETAILED DESCRIPTION
[0037] The conventional audio link system architecture mainly includes: audio input, preprocessing, digital signal processing and communication interface transmission, among which, audio input: audio signals enter the system through microphones or other audio input devices; preprocessing: audio signals pass through preprocessing modules, such as amplification, filtering, etc., to ensure signal quality; digital signal processor (DSP): digital signals are sent to DSP for processing. DSP is responsible for executing various signal processing algorithms, such as filtering, spectrum analysis, feature extraction, etc.; storage: processed data can be stored in memory for subsequent analysis or transmission; communication interface: DSP sends the processing results to other devices or systems through communication interfaces (such as UART, SPI, I2C, etc.).
[0038] Based on the above existing audio link architecture, the corresponding existing audio link signal detection mainly relies on DSP for signal analysis, but DSP usually requires special hardware support, such as dedicated DSP chips, memory, etc. The selection and configuration of these hardware components requires professional knowledge, which increases the complexity and cost of the system. In addition, the architecture of the DSP system is usually fixed and difficult to flexibly adjust according to different application scenarios. For example, if a new signal processing algorithm needs to be added, the hardware may need to be replaced or upgraded.
[0039] In view of this, the embodiments of the present application provide an audio link signal detection method, apparatus, playback device and medium, which are used to solve the technical problem that the existing audio link signal detection requires special hardware and software support and has low flexibility.
[0040] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0041] First, an embodiment of an audio playback device provided by the present application that can implement the above-mentioned audio link signal detection method is described as follows:
[0042] First, if Figure 1 As shown, an embodiment of an audio playback device provided by the present application includes: an audio link to be tested and an audio link detection circuit;
[0043] The audio link detection circuit is electrically connected to a link node of the audio link under test;
[0044] The audio link detection circuit includes: a memory (not shown), an analog-to-digital converter ADC and a processor. It can be understood that the analog-to-digital converter is used to convert the collected voltage signal into a digital signal to facilitate processing by the processor;
[0045] The memory is used to store program codes, and the program codes are used to implement an audio link detection method provided in the present application;
[0046] The processor is used to read and execute program codes and can be implemented using an MCU.
[0047] It should be noted that the audio link detection circuit mentioned in this embodiment is an executive body for implementing an audio link detection method provided in this application. The circuit can be integrated in an audio playback device and electrically connected to each link node of the audio link under test in the device so as to collect voltage data of these link nodes, so as to facilitate the implementation of the audio link signal detection method of this application.
[0048] by Figure 1 As shown in the figure, taking the audio link topology as an example, the hardware configuration modules included in the figure include the following items:
[0049] 1. MCU: A microcontroller with an ADC interface is the execution subject and core control unit of this detection method. If the MCU model used does not have an integrated ADC interface, an external ADC module can be used instead.
[0050] 2. SOC: An audio processing chip with an I2S or TDM interface, which is the starting node of the audio link provided in this example.
[0051] 3.DSP: Digital signal processor with I2S or TDM interface.
[0052] 4.AMP: Audio amplifier with analog output.
[0053] 5. Speaker: Audio output device, the end node of the audio link provided in this example.
[0054] For the sampling configuration of the MCU unit, please refer to the following example. Assuming 16-bit digital audio, the value of the digital signal of a 0dB 1kHz sine wave at each sampling point will change according to the waveform of the sine wave. For example, when the sampling rate is 44.1kHz, there are 44.1 sampling points in each cycle, and the value of each sampling point can be expressed as Sample(n) = 32767 × sin(2π × 1000 × n / 44100), where n represents the index of the sampling point. Specifically, n is an integer representing the nth sampling point on the time axis. Assuming that the reference voltage of the ADC is 3.3V, the output range of the 12-bit ADC is 0 to 4095, and the peak-to-peak voltage of the sine wave is 2V (i.e., from -1V to 1V), then ADCvalue(n) = (1V × sin(2π × 1000 × n / 44100) + 1.65V) × 4095, where 1.65V is the midpoint voltage of the ADC (3.3V / 2). When each node in the audio link is processing audio of a fixed frequency, the voltage it displays changes regularly, which can be used as a basis for determining the problem point.
[0055] Next is a detailed description of an embodiment of an audio link signal detection method provided by the present application, which is as follows:
[0056] See also Figure 2 In a first aspect, the present application provides an audio link detection method, comprising:
[0057] Step 101: Determine a link node in an audio link according to a circuit structure of an audio playback circuit;
[0058] Step 102: generating an audio signal of a preset frequency in response to a signal detection instruction;
[0059] Step 103: monitoring the transmission status of the audio signal in the audio link, and collecting the node voltage of each link node when processing the audio signal;
[0060] Step 104: Determine the detection result of the audio link according to the comparison result between the node voltage and the node standard voltage.
[0061] It should be noted that, first, according to the circuit structure of the audio playback circuit, the link node in the audio link is determined, and then, after the audio link detection circuit receives the signal detection instruction for triggering the detection task, an audio signal of a preset frequency is generated;
[0062] Among them, the triggering method of the signal detection instruction can be manually triggered by the user's manual operation, or it can be automatically triggered by a script based on a preset condition trigger (such as a timing trigger, etc.); and the audio signal generated by the response instruction will be processed by each node of the audio link, and finally played by the speaker device at the end of the link. During this process, the MCU monitors the transmission status of the audio signal in the audio link and collects the node voltage of each link node when processing the audio signal.
[0063] Then, the actually collected node voltage is compared with the determined node standard voltage, and the audio link detection result is determined based on the comparison result. For example, when the node voltage value of a certain node is significantly different from the standard value, it is judged that the audio node is abnormal.
[0064] More specifically, after step 101, the following steps may also be included:
[0065] Step 1020: Generate several standard audio signals of preset frequencies, monitor the transmission status of the standard audio signals in the audio link, and collect and record the node voltage of each link node when processing the standard audio signal as the node standard voltage.
[0066] It should be noted that step 1020 of this embodiment is a step for determining the node standard voltage corresponding to each link node. This step generates a series of standard audio signals of preset frequencies for playback, and in the process from audio signal generation to actual broadcasting, the transmission status of the standard audio signal in the audio link is monitored by the MCU, and the node voltage of each link node when processing the standard audio signal is collected and recorded as the node standard voltage.
[0067] Among them, the preset frequency of the standard audio signal generally ranges from 50Hz to 10kHz, and specifically, any several or all of 50Hz, 100Hz, 200Hz, 500Hz, 1kHz, 2kHz, 5kHz, and 10kHz can be selected as values. Correspondingly, in the actual detection link, the audio signal of the preset frequency is generated by triggering the signal detection instruction, and its signal frequency needs to be included in the preset frequency selected for the standard audio signal. For example, in the link of determining the standard voltage of the node, only four frequency values of 50Hz, 100Hz, 200Hz, and 500Hz are selected to generate the standard audio signal. In the actual detection link, the frequency of the generated audio signal should be at least one of 50Hz, 100Hz, 200Hz, and 500Hz.
[0068] The above is a detailed description of an embodiment of an audio link detection method provided by the present application. The technical solution of the present application only requires the use of MCU and ADC for signal detection, combined with an efficient signal processing algorithm, to realize the status detection of each node in the audio link. It does not need to rely on dedicated audio analysis hardware or software such as DSP, and can better adapt to a variety of different audio link configurations. It simplifies the configuration and design of the system and reduces hardware and development costs.
[0069] The following is a detailed description of an embodiment of an audio link signal detection device provided by the present application, specifically as follows:
[0070] See also Figure 3 , the present application provides an audio link detection device, comprising:
[0071] The link structure acquisition unit 201 is used to determine the link nodes in the audio link according to the circuit structure of the audio playback circuit;
[0072] The signal detection response unit 202 is used to generate an audio signal of a preset frequency in response to a signal detection instruction;
[0073] The node voltage collection unit 203 is used to monitor the transmission status of the audio signal in the audio link and collect the node voltage of each link node when processing the audio signal;
[0074] The detection result determination unit 204 is used to determine the detection result of the audio link according to the comparison result between the node voltage and the node standard voltage.
[0075] Furthermore, it also includes:
[0076] The standard voltage determination unit 2020 is used to generate a plurality of standard audio signals of preset frequencies, monitor the transmission status of the standard audio signals in the audio link, and collect and record the node voltage of each link node when processing the standard audio signal as the node standard voltage.
[0077] Furthermore, the detection result determination unit 204 is specifically configured to:
[0078] According to the comparison result between the node voltage and the node standard voltage, when the difference between the node voltage of any link node and the node standard voltage exceeds a preset error threshold, the link node is determined to be an abnormal node.
[0079] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the terminals, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0080] In the several embodiments provided in the present application, it should be understood that the disclosed terminals, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0081] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0082] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0083] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0084] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0085] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0086] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. An audio link detection method, characterized in that: include: Determine a link node in the audio link according to the circuit structure of the audio playback circuit; In response to the signal detection instruction, generating an audio signal of a preset frequency; Monitoring the transmission state of the audio signal in the audio link, and collecting the node voltage of each link node when processing the audio signal; The detection result of the audio link is determined according to the comparison result of the node voltage and the node standard voltage.
2. The audio link detection method according to claim 1, characterized in that: After determining the link node in the audio link, the method further includes: Generate a plurality of standard audio signals of preset frequencies, monitor the transmission status of the standard audio signals in the audio link, and collect and record the node voltage of each link node when processing the standard audio signals as the node standard voltage.
3. The audio link detection method according to claim 1, characterized in that: Determining the detection result of the audio link according to the comparison result of the node voltage and the node standard voltage includes: According to the comparison result between the node voltage and the node standard voltage, when the difference between the node voltage of any link node and the node standard voltage exceeds a preset error threshold, the link node is determined to be an abnormal node.
4. The audio link detection method according to claim 1, characterized in that: The preset frequency ranges from 50 Hz to 10 kHz.
5. The audio link detection method according to claim 4, characterized in that: The preset frequency may be selected from at least one of 50 Hz, 100 Hz, 200 Hz, 500 Hz, 1 kHz, 2 kHz, 5 kHz and 10 kHz.
6. An audio link detection device, characterized in that: include: A link structure acquisition unit, used to determine a link node in the audio link according to the circuit structure of the audio playback circuit; A signal detection response unit, used to generate an audio signal of a preset frequency in response to a signal detection instruction; A node voltage collection unit, used to monitor the transmission state of the audio signal in the audio link, and collect the node voltage of each link node when processing the audio signal; The detection result determination unit is used to determine the detection result of the audio link according to the comparison result between the node voltage and the node standard voltage.
7. The audio link detection device according to claim 6, characterized in that: Also includes: The standard voltage determination unit is used to generate a plurality of standard audio signals of preset frequencies, monitor the transmission status of the standard audio signals in the audio link, and collect and record the node voltage of each link node when processing the standard audio signal as the node standard voltage.
8. The audio link detection device according to claim 6, characterized in that: The detection result determination unit is specifically used for: According to the comparison result between the node voltage and the node standard voltage, when the difference between the node voltage of any link node and the node standard voltage exceeds a preset error threshold, the link node is determined to be an abnormal node.
9. An audio playback device, characterized in that: include: An audio link under test and an audio link detection circuit; The audio link detection circuit is electrically connected to the link node of the audio link under test; The audio link detection circuit includes: a memory, an analog-to-digital converter and a processor; The memory is used to store program codes, and the program codes are used to implement an audio link detection method according to any one of claims 1 to 5; The processor is used for reading and executing the program code.
10. A computer-readable storage medium, characterized in that: The computer storage medium stores program code, and the program code is used to be read and executed by a processor to implement an audio link detection method as described in any one of claims 1 to 5.