An audio playback method and device based on primary and standby path switching
By detecting the power state and data content of the audio data sending terminal and automatically switching the audio playback path, the audio playback instability and data loss caused by failures in the existing audio broadcasting system is solved, and the real-time and completeness of the audio data is achieved.
Patent Information
- Application Number
- CN202411331096.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-06-03
- Estimated Expiration
- 2044-09-24
AI Technical Summary
Existing audio broadcasting systems face the risk of single point failure, resulting in unstable audio playback and low troubleshooting efficiency, affecting the real-time and completeness of audio data.
By detecting the power port voltage, real-time reception of data sent by the audio data sending terminal, determining whether it contains heartbeat data and marking signals. If not, switch to the backup path to ensure the continuity and completeness of the audio data.
Real-time and completeness of audio data during broadcasting, avoiding audio playback interruptions and data loss caused by failures, and improving troubleshooting efficiency.
Smart Images

Figure CN119232301B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of audio broadcasting, and particularly to an audio playback method and apparatus for primary and backup path switching. Background Art
[0002] Existing audio broadcasting systems usually face the risk of single-point failure. Especially for audio broadcasting systems relying on network environments, how to implement switching between primary and backup devices or paths of an audio playback terminal is a technical problem that needs to be solved currently.
[0003] Existing systems often rely on manual troubleshooting of the broadcasting system to determine whether to switch the primary and backup paths, and perform manual switching according to the judgment result. This process is likely to cause broadcast interruption, affecting the real-time and continuous nature of audio transmission, and the troubleshooting efficiency is low. Moreover, during the switching process of the primary and backup audio paths, audio data is likely to be lost, affecting the integrity of audio data during playback.
[0004] Therefore, when a failure occurs during broadcasting, how to quickly troubleshoot the failure of the audio playback terminal and implement automatic switching of the primary and backup paths, and improve the real-time and integrity of audio data during broadcasting, is a technical problem that needs to be solved currently. Summary of the Invention
[0005] This application provides an audio playback method and apparatus for primary and backup path switching to solve the technical problem of how to ensure the real-time and integrity of audio data during broadcasting.
[0006] To solve the above technical problem, an embodiment of this application provides an audio playback method for primary and backup path switching, including:
[0007] When a voltage is detected at a first power port, receive first data sent by an audio data sending terminal in real time through a network link;
[0008] According to a preset time frequency, detect whether the first data includes heartbeat data; if not detected, switch to a backup path to play a backup audio signal; otherwise, extract a first audio signal from the first data and process the first audio signal to obtain a first analog signal;
[0009] Judge whether the first analog signal contains a marker signal; if not, switch to the backup path to play the backup audio signal; otherwise, play the first analog signal using the primary path.
[0010] Compared with the prior art, the embodiments of the present application have the following beneficial effects: When the audio playback terminal is normally powered, it usually faces problems such as network fluctuations and failures in the sound card and power amplifier links. These problems will cause unstable audio playback. Through the form of message detection, the network status is monitored in real time. When the network is unstable, it will lead to the inability to receive heartbeat data. At this time, the backup path is enabled to play the backup audio signal to ensure the continuity of the audio. At the same time, when a failure occurs in the sound card or power amplifier link for processing the first audio signal, it will cause some of the marker signals to be lost after being processed by the sound card or power amplifier link. By monitoring whether there are marker signals in the first analog signal used for playback subsequently, it is possible to determine in real time whether data loss occurs after the first audio signal undergoes subsequent processing, thereby improving the integrity of the audio data.
[0011] In some embodiments of the first aspect of the present application, processing the first audio signal to obtain a first analog signal includes:
[0012] Overlaying the first audio signal with the marker signal in real time to obtain a second audio signal;
[0013] Converting the second audio signal into a second analog signal through a sound card and amplifying the second analog signal to obtain the first analog signal.
[0014] Compared with the prior art, the above embodiments have the following beneficial effects: By overlaying the marker signal on the first audio signal to obtain the second audio signal, when the second audio signal is processed by the sound card and power amplifier links, it is possible to accurately determine whether there are faults in the sound card and power amplifier links by detecting whether there are marker signals overlaid before processing in the first analog signal obtained after processing.
[0015] In some embodiments of the first aspect of the present application, determining whether the first analog signal contains a marker signal includes:
[0016] Processing the first analog signal through a buck circuit to obtain a second analog signal;
[0017] Converting the second analog signal into a third audio signal through a sound card and detecting whether the third audio signal is overlaid with the marker signal.
[0018] Compared with the prior art, the above embodiments have the following beneficial effects: Since in order to detect whether the marker signal is overlaid in the first analog signal, it is necessary to digitize the analog signal to generate a high-precision digital signal sampling, thereby improving the accuracy of finally detecting whether the marker signal in the third audio signal is complete.
[0019] In some embodiments of the first aspect of the present application, the first audio signal is obtained by collecting and processing the audio data of the sound source device through the audio data sending terminal.
[0020] Compared with the prior art, the above embodiments have the following beneficial effects: Through the audio data sending terminal, the collected audio data can be further processed to meet various audio transmission and playback requirements of users.
[0021] In some embodiments of the first aspect of the present application, the standby audio signal is connected to the power amplifier terminal device line connected to the sound source device through the constant voltage signal input interface, and is obtained by receiving in real time through the constant voltage signal input interface.
[0022] Compared with the prior art, the above embodiments have the following beneficial effects: By collecting the audio data generated by the same sound source device and realizing data output through different terminals, the timesteps of the data output by the main path and the standby path are the same during the main-backup switching process, further ensuring the real-time performance during audio playback; and through the cooperation of the power amplifier terminal and the constant voltage signal output interface, the amplified audio signal can be directly played, so as to ensure the continuity of audio playback when there are faults such as network fluctuations, device anomalies, and power outages at the audio playback terminal.
[0023] In some embodiments of the first aspect of the present application, when the voltage of the first power supply port is not detected, the standby path is switched to play the standby audio signal.
[0024] Compared with the prior art, the above embodiments have the following beneficial effects: When the voltage of the first power supply port is not detected, it means that there is a power outage fault at the audio playback terminal. At this time, through the standby path, the power supply of the audio playback terminal can be realized while stably outputting the audio signal, ensuring the continuity of audio playback.
[0025] In a second aspect, an embodiment of the present application further provides an audio playback device based on main-backup path switching for an audio playback terminal, including: a data receiving module, a network monitoring module, and an audio link detection module;
[0026] Among them, the data receiving module is used to, when detecting that there is voltage at the first power supply port, receive the first data sent by the audio data sending terminal in real time through the network link;
[0027] The network monitoring module is used to detect whether the first data includes heartbeat data according to a preset time frequency; if not detected, switch to the standby path to play the standby audio signal; otherwise, extract the first audio signal from the first data and process the first audio signal to obtain a first analog signal;
[0028] The audio link detection module is used to determine whether the first analog signal contains a marker signal; if not, switch to the backup path to play the backup audio signal; otherwise, play the first analog signal using the main path.
[0029] In some embodiments of the second aspect of the present application, the processing of the first audio signal to obtain the first analog signal includes:
[0030] Overlay the first audio signal with the marker signal in real time to obtain a second audio signal;
[0031] Convert the second audio signal into a second analog signal through a sound card, and amplify the second analog signal to obtain the first analog signal.
[0032] In some embodiments of the second aspect of the present application, the determination of whether the first analog signal contains a marker signal includes:
[0033] Process the first analog signal through a buck circuit to obtain a second analog signal;
[0034] Convert the second analog signal into a third audio signal through a sound card, and detect whether the marker signal is superimposed on the third audio signal.
[0035] In some embodiments of the second aspect of the present application, when the voltage of the first power supply port cannot be detected, switch to the backup path to play the backup audio signal. Description of the Drawings
[0036] Figure 1 It is a schematic flowchart of an audio playback method based on main and backup path switching provided in some embodiments of the present application;
[0037] Figure 2 It is a structural framework diagram of an audio playback system based on main and backup path switching provided in some embodiments of the present application;
[0038] Figure 3 It is a schematic structural diagram of an audio playback device based on main and backup path switching provided in some embodiments of the present application. Detailed Embodiments
[0039] Existing systems often rely on manual troubleshooting of the broadcast system to determine whether to switch the main and backup paths, and perform manual switching according to the judgment results. This process is prone to broadcast interruption, affecting the real-time and continuity of audio transmission, and the troubleshooting efficiency is low. Moreover, during the switching process of the main and backup audio paths, audio data is easily lost, affecting the integrity of the audio data during playback.
[0040] To solve the above technical problems, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts belong to the scope of protection of the present application.
[0041] Embodiment 1
[0042] Please refer to Figure 1 , which is a method for audio playback based on primary and backup path switching provided by the embodiments of the present application. Figure 2 It is a structural framework diagram of an audio playback system based on primary and backup path switching provided in some embodiments of the present application. The audio playback system includes an audio playback terminal that implements the Figure 1 audio playback method shown. Among them, Figure 1 the audio playback method shown includes S10 to S30, specifically as follows:
[0043] S10: When a voltage is detected at the first power port, receive the first data sent by the audio data sending terminal in real time through the network link.
[0044] Preferably, referring to Figure 2 , in some embodiments of the present application, when there is a voltage at the first power port, it means that the audio playback terminal is in the powered-on state. After the terminal network board is powered on, it will receive the first data sent by the server (i.e., the audio data sending terminal) in real time. When the network is normal, when the server sends audio data (i.e., the first audio signal), it will also send an audio heartbeat packet (i.e., the marking signal) with specific identification information to the audio playback terminal at the same time. At this time, the first data includes the marking signal and the first audio signal. When there is a fault in the network link, the terminal network board of the audio playback terminal will not be able to receive the marking signal within a certain continuous time. At this time, the terminal network board of the audio playback terminal determines whether there is a fault in the network link by counting the marking signals in the first data.
[0045] Further, in some embodiments of the present application, the first audio signal is obtained by collecting and processing the audio data of the sound source device by the audio data sending terminal.
[0046] Preferably, referring to Figure 2 , in some embodiments of the present application, by creating a corresponding collection task in the server, then collecting the audio data from the sound source device through the collector device, and then the server further customizes and processes the collected audio data to generate the first audio signal. The first audio signal is transmitted to the audio playback terminal through the network link.
[0047] Further, in some embodiments of the present application, the backup audio signal is connected to the power amplifier terminal device line connected to the sound source device through a constant voltage signal input interface, and is obtained by real-time reception through the constant voltage signal input interface.
[0048] Further, in some embodiments of the present application, when the voltage of the first power supply port cannot be detected, the backup path is switched to play the backup audio signal.
[0049] Preferably, in some embodiments of the present application, referring to Figure 2 , when there is no voltage at the first power supply port, it means that Figure 2 the audio playback terminal in is powered off, and there is no power supply for the terminal network board, sound card, power amplifier link, and buck circuit. The terminal network board, sound card, power amplifier link, and buck circuit are all part of the main path without power supply. At this time, the selector circuit will automatically switch to the backup path. The selector circuit can be implemented by switching devices such as an automatic switching relay or an electronic switch. The present application does not limit this switch. This type of switch will automatically switch the path when the power is off. When there is voltage at the first power supply port, the terminal network board is powered on at this time. When the terminal network board detects that there is voltage at the first power supply port, it controls the selector circuit to switch from the backup path to the main path.
[0050] Preferably, in some embodiments of the present application, referring to Figure 2 , when there is no voltage at the first power supply port, the selection circuit automatically switches to the backup path at this time. The backup path receives the backup audio signal, and the backup audio signal is input through a constant voltage signal input interface. The constant voltage signal input interface can be set as a 100V analog interface. Through the 100V analog interface, even in the event of a power failure, it is possible to receive the 100V analog audio (i.e., the backup audio signal) output after the power amplifier terminal amplifies the audio data, ensuring that the audio playback terminal can play the audio data continuously. And the power amplifier terminal is connected to the sound source device, so that the audio data of the main path and the backup path come from the same sound source device, ensuring the continuity of audio playback during the main-backup switch.
[0051] It can be seen from the above embodiments that the present application collects the audio data generated by the same sound source device and outputs the data through different terminals, so as to ensure that the data output by the main path and the backup path has the same time step during the main-backup switch, further ensuring the real-time performance during the audio playback process; and through the cooperation of the power amplifier terminal and the constant voltage signal output interface, the amplified audio signal can be directly played, so as to ensure the continuity and integrity of audio playback when there are faults such as network fluctuations, device abnormalities, and power outages in the audio playback terminal.
[0052] S20: Detect whether the first data includes heartbeat data according to a preset time frequency; if not detected, switch to an alternate path to play an alternate audio signal; otherwise, extract a first audio signal from the first data and process the first audio signal to obtain a first analog signal.
[0053] Preferably, refer to Figure 2 , in some embodiments of the present application, when switching from the main path to the alternate path due to a network failure, the terminal network board in the main path will parallelly and real-time detect whether the server sends the first data containing a marking signal. When detected, it will immediately control the selector circuit to switch back from the alternate path to the main path.
[0054] Further, in some embodiments of the present application, the processing the first audio signal to obtain a first analog signal includes:
[0055] Real-time superimpose the first audio signal with the marking signal to obtain a second audio signal;
[0056] Through a sound card, convert the second audio signal into a second analog signal and amplify the second analog signal to obtain the first analog signal.
[0057] By superimposing the marking signal onto the first audio signal to obtain a second audio signal, when the second audio signal is processed through the sound card and the power amplifier link, it is possible to accurately determine whether there is a fault in the sound card and the power amplifier link by detecting whether the marking signal superimposed before processing exists in the obtained first analog signal.
[0058] Preferably, refer to Figure 2 , in some embodiments of the present application, when the terminal network board receives the first audio signal, it will superimpose a high-frequency signal onto the first audio signal as a mark, and then convert the second audio signal in digital signal form into a second analog signal through a sound card, and further amplify the second analog signal through the power amplifier link to obtain the first analog signal.
[0059] Further, in some embodiments of the present application, the determining whether the first analog signal includes a marking signal includes:
[0060] Process the first analog signal through a buck circuit to obtain a second analog signal;
[0061] Through a sound card, convert the second analog signal into a third audio signal and detect whether the third audio signal is superimposed with the marking signal.
[0062] Since it is necessary to digitize the analog signal to generate a high-precision digital signal sampling in order to detect whether a marker signal is superimposed on the first analog signal, the accuracy of finally detecting whether the marker signal in the third audio signal is complete can be improved.
[0063] Preferably, referring to Figure 2 , in some embodiments of the present application, after the power amplifier link outputs the second analog signal, the second analog signal will be transmitted to the selector circuit at the same time so that the speaker plays the corresponding audio. At the same time, the second analog signal will be converted into a third audio signal in digital signal mode after passing through the buck circuit and being collected by the sound card, so that the terminal network board can identify the marker signal from the third audio signal.
[0064] S30: Determine whether the first analog signal contains a marker signal; if not, switch to the standby path to play the standby audio signal; otherwise, play the first analog signal using the main path.
[0065] Preferably, referring to Figure 2 , in some embodiments of the present application, when switching to the standby path due to a sound card or power amplifier link failure, the terminal network board in the main path will detect in parallel and in real time whether a marker signal appears in the first analog signal. When a marker signal appears, the terminal network board will immediately control the selector circuit to switch back to the main path.
[0066] In summary, an audio playback method based on main and standby path switching provided by the embodiments of the present application has the following beneficial effects: When the audio playback terminal is normally powered on, it usually faces problems such as network fluctuations, sound card, and power amplifier link failures, which will cause unstable audio playback. Through the form of packet detection, the network status is monitored in real time. When the network is unstable, it will lead to the inability to receive heartbeat data. At this time, the standby path is enabled to play the standby audio signal to ensure the continuity of the audio. At the same time, when the sound card or power amplifier link for processing the first audio signal fails, it will cause some marker signals to be lost after the marker signal is processed by the sound card or power amplifier link. By monitoring whether there is a marker signal in the subsequent first analog signal used for playback, it can be judged in real time whether data loss occurs after the first audio signal is processed subsequently, thereby improving the integrity of the audio data. And when a power failure occurs in the audio playback terminal, it can automatically switch to the standby path, and through the constant voltage signal input interface, ensure the stable playback of the audio data and improve the continuity of the audio playback during the main and standby switching process.
[0067] Embodiment 2
[0068] Referring to Figure 3 , an audio playback device based on main and standby path switching provided by the embodiments of the present application includes: a data receiving module 11, a network monitoring module 12, and an audio link detection module 13.
[0069] Further, in some embodiments of the present application, the data receiving module 11 is configured to, when detecting a voltage at the first power supply port, receive the first data sent by the audio data sending terminal in real time through a network link; the network monitoring module 12 is configured to detect whether the first data includes heartbeat data according to a preset time frequency; if not detected, switch to an alternate path to play an alternate audio signal; otherwise, extract a first audio signal from the first data and process the first audio signal to obtain a first analog signal; the audio link detection module 13 is configured to determine whether the first analog signal includes a marker signal; if not included, switch to an alternate path to play an alternate audio signal; otherwise, play the first analog signal using the main path.
[0070] Further, in some embodiments of the present application, the processing the first audio signal to obtain a first analog signal includes: superimposing the first audio signal and the marker signal in real time to obtain a second audio signal; converting the second audio signal into a second analog signal through a sound card and amplifying the second analog signal to obtain the first analog signal.
[0071] Further, in some embodiments of the present application, the determining whether the first analog signal includes a marker signal includes: processing the first analog signal through a buck circuit to obtain a second analog signal; converting the second analog signal into a third audio signal through a sound card and detecting whether the third audio signal is superimposed with the marker signal.
[0072] Further, in some embodiments of the present application, the first audio signal is obtained by the audio data sending terminal collecting and processing the audio data of the sound source device.
[0073] Further, in some embodiments of the present application, the alternate audio signal is connected to the power amplifier terminal device line connected to the sound source device through a constant voltage signal input interface and obtained by receiving in real time through the constant voltage signal input interface.
[0074] Further, in some embodiments of the present application, when the voltage of the first power supply port is not detected, switch to the alternate path to play the alternate audio signal.
[0075] It can be understood that the above device item embodiments correspond to the method item embodiments of the present invention. An audio playback device based on main - backup path switching provided by the embodiments of the present invention can implement any one of the method item embodiments of the present invention, that is, the audio playback method based on main - backup path switching provided in Embodiment 1.
[0076] In summary, an audio playback device based on primary and backup path switching provided by an embodiment of the present application has the following beneficial effects: When the audio playback terminal is normally powered, it usually faces problems such as network fluctuations, and failures in the sound card and power amplifier links. These problems will cause unstable audio playback. Through the form of message detection, the network status is monitored in real time. When the network is unstable, it will lead to the inability to receive heartbeat data. At this time, the backup path is enabled to play the backup audio signal to ensure the continuity of the audio. At the same time, when a failure occurs in the sound card or power amplifier link that processes the first audio signal, it will cause some of the marker signals to be lost after being processed by the sound card or power amplifier link. By monitoring whether there are marker signals in the subsequent first analog signal used for playback, it is possible to determine in real time whether data loss occurs after the first audio signal undergoes subsequent processing, thereby improving the integrity of the audio data. And when a power failure occurs in the audio playback terminal, it can automatically switch to the backup path, and through the constant voltage signal input interface, ensure the stable playback of the audio data, and improve the continuity of the audio playback during the primary and backup switching process.
[0077] Embodiment III
[0078] Based on the above embodiment of the audio playback method based on primary and backup path switching, another embodiment of the present application provides an audio playback terminal device based on primary and backup path switching. The audio playback terminal device based on primary and backup path switching includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the audio playback method based on primary and backup path switching according to any embodiment of the present application.
[0079] Exemplarily, in this embodiment, the computer program can be divided into one or more modules. The one or more modules are stored in the memory and executed by the processor to complete the present application. The one or more modules can be a series of computer program instruction segments capable of performing specific functions, and these instruction segments are used to describe the execution process of the computer program in the audio playback device based on primary and backup path switching.
[0080] The audio playback device based on primary and backup path switching can be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The audio playback terminal device based on primary and backup path switching may include, but is not limited to, a processor and a memory.
[0081] The processor may be a Central Processing Unit (CPU), or may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the audio playback device based on primary and backup path switching, and connects various parts of the entire audio playback device based on primary and backup path switching through various interfaces and circuits. The memory can be used to store the computer programs and / or modules. By running or executing the computer programs and / or modules stored in the memory, and calling the data stored in the memory, the processor realizes various functions of the audio playback device based on primary and backup path switching. The memory mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, at least one magnetic disk storage device, flash device, or other volatile solid-state storage devices.
[0082] Embodiment 4
[0083] Based on the above embodiments of the audio playback method based on primary and backup path switching, another embodiment of the present application provides a storage medium, which includes a stored computer program. When the computer program runs, it controls the device where the storage medium is located to execute the audio playback method based on primary and backup path switching in any embodiment of the present application.
[0084] In this embodiment, the above storage medium is a computer-readable storage medium, and the computer program includes computer program code, which may be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content included in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice within the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.
[0085] The specific embodiments described above further elaborate on the purpose, technical solution, and beneficial effects of the present application. It should be understood that the above are only specific embodiments of the present application and are not used to limit the protection scope of the present application. In particular, for those skilled in the art, any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. An audio playback method based on primary and backup path switching, characterized in that: For audio playback terminals, including: When it is detected that there is voltage at the first power port, first data sent by the audio data sending terminal is received in real time through the network link; According to a preset time frequency, detecting whether the first data includes heartbeat data; if not detected, switching to a backup path to play a backup audio signal; otherwise, extracting a first audio signal from the first data, and processing the first audio signal to obtain a first analog signal; Determine whether the first analog signal contains a marking signal; if not, switch to the backup path to play the backup audio signal; otherwise, use the main path to play the first analog signal; wherein the marking signal is used to determine whether the sound card and the power amplifier link are faulty; the sound card and the power amplifier link belong to the main path; The processing of the first audio signal to obtain a first analog signal comprises: superimposing the first audio signal and the marking signal in real time to obtain a second audio signal; The second audio signal is converted into a second analog signal through a sound card, and the second analog signal is amplified to obtain the first analog signal.
2. The audio playback method based on primary and backup path switching according to claim 1, characterized in that: The determining whether the first analog signal includes a marking signal includes: Processing the first analog signal through a step-down circuit to obtain a second analog signal; The second analog signal is converted into a third audio signal through a sound card, and it is detected whether the third audio signal is superimposed with the marking signal.
3. The audio playback method based on primary and backup path switching according to claim 1, characterized in that: The first audio signal is obtained by collecting audio data of a sound source device through the audio data sending terminal and then further processing the audio data of the sound source device through the audio data sending terminal.
4. The audio playback method based on primary and backup path switching according to claim 3, characterized in that: The backup audio signal is connected to the power amplifier terminal device line connected to the sound source device through the constant voltage signal input interface, and is received and acquired in real time through the constant voltage signal input interface.
5. The audio playback method based on primary and backup path switching according to any one of claims 1 to 4, characterized in that: When the voltage of the first power port cannot be detected, the backup path is switched to play the backup audio signal.
6. An audio playback device based on primary and backup path switching, characterized in that: Used for audio playback terminal, including: data receiving module, network monitoring module and audio link detection module; Wherein, the data receiving module is used to receive the first data sent by the audio data sending terminal in real time through the network link when it is detected that there is voltage at the first power port; The network monitoring module is used to detect whether the first data includes heartbeat data according to a preset time frequency; if not detected, switch to a backup path to play a backup audio signal; otherwise, extract a first audio signal from the first data, and process the first audio signal to obtain a first analog signal; The audio link detection module is used to determine whether the first analog signal contains a mark signal; if not, switch to the backup path to play the backup audio signal; otherwise, use the main path to play the first analog signal; wherein the mark signal is used to determine whether the sound card and the power amplifier link are faulty; the sound card and the power amplifier link belong to the main path; The processing of the first audio signal to obtain a first analog signal comprises: superimposing the first audio signal and the marking signal in real time to obtain a second audio signal; The second audio signal is converted into a second analog signal through a sound card, and the second analog signal is amplified to obtain the first analog signal.
7. The audio playback device based on primary and backup path switching according to claim 6, characterized in that: The determining whether the first analog signal includes a marking signal includes: Processing the first analog signal through a step-down circuit to obtain a second analog signal; The second analog signal is converted into a third audio signal through a sound card, and it is detected whether the third audio signal is superimposed with the marking signal.
8. An audio playback device based on primary and backup path switching according to any one of claims 6 to 7, characterized in that: When the voltage of the first power port cannot be detected, the backup path is switched to play the backup audio signal.
Citation Information
Patent Citations
Full-function digital-analog hybrid intelligent broadcast system for trains
CN103684854A
Broadcast controller and train broadcast control system
CN103763053A