Audio playing method and device based on main and standby path switching
By detecting the heartbeat and marking signals in the audio data and automatically switching the audio path, the problems of low troubleshooting efficiency and data loss in the network environment in the prior art are solved, and the real-time and completeness of the audio data are achieved.
Patent Information
- Application Number
- CN202411331096.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2044-09-24
AI Technical Summary
Existing audio broadcasting systems are prone to single-point failure in network environments, resulting in broadcast interruption and data loss during the main and backup path switching of the audio playback terminal, affecting the real-time and completeness of audio transmission.
By detecting the power port voltage, receiving audio data in real time and monitoring the network status, using heartbeat data and marking signals to judge the stability of the network and audio links, and automatically switch to the backup path to ensure the continuity and completeness of the audio.
It realizes rapid automatic switching when an audio playback terminal fails, improves the real-time and completeness of audio data, and ensures the stability and continuity of audio playback.
Smart Images

Figure CN119232301A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of audio broadcasting, and in particular to an audio playback method and device for switching between primary and backup paths. Background Art
[0002] Existing audio broadcasting systems usually face the risk of single point failure, especially audio broadcasting systems that rely on network environments. Therefore, how to achieve the main and backup devices or path switching of audio playback terminals is a technical problem that needs to be solved at present.
[0003] Existing systems often rely on manual troubleshooting of broadcast systems to determine whether to switch the primary and backup paths, and perform manual switching based on the judgment results. This process can easily lead to broadcast interruptions, affect the real-time and continuity of audio transmission, and have low troubleshooting efficiency. In addition, during the switching of the primary and backup audio paths, audio data is easily lost, affecting the integrity of audio data during playback.
[0004] Therefore, when a fault occurs during the broadcast process, how to quickly eliminate the fault of the audio playback terminal and realize automatic switching of the primary and backup paths to improve the real-time and completeness of the audio data during the broadcast process is a technical problem that needs to be solved at present. Summary of the invention
[0005] The present application provides an audio playback method and device for switching between primary and backup paths to solve the technical problem of how to ensure the real-time and completeness of audio data during the broadcast process.
[0006] In order to solve the above technical problems, an embodiment of the present application provides an audio playback method for switching between primary and backup paths, including:
[0007] 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;
[0008] 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;
[0009] Determine whether the first analog signal contains a marking signal; if so, switch to the backup path to play the backup audio signal; otherwise, use the main path to play the first analog signal.
[0010] Compared with the prior art, the embodiments of the present application have the following beneficial effects: when the audio playback terminal is powered normally, it usually faces problems such as network fluctuations and failures of the sound card and the power amplifier link, which 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 the sound card or power amplifier link that processes the first audio signal fails, it will cause the mark signal to be lost after being processed by the sound card or the power amplifier link. By monitoring whether there is a mark signal in the first analog signal used for subsequent playback, it can be judged in real time whether there is a data loss problem after the first audio signal is subsequently processed, thereby improving the completeness of the audio data.
[0011] In some embodiments of the first aspect of the present application, the processing the first audio signal to obtain a first analog signal includes:
[0012] Superimposing the first audio signal and the marking signal to obtain a second audio signal;
[0013] 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.
[0014] Compared with the prior art, the above embodiment has the following beneficial effects: by superimposing a marker signal on the first audio signal to obtain a second audio signal, after the second audio signal is processed by 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 there is the marker signal superimposed before processing in the first analog signal obtained after processing.
[0015] In some embodiments of the first aspect of the present application, the determining whether the first analog signal includes a marking signal includes:
[0016] Processing the first analog signal through a step-down circuit to obtain a second analog signal;
[0017] 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.
[0018] Compared with the prior art, the above embodiment has the following beneficial effects: in order to detect whether the marker signal is superimposed on the first analog signal, it is necessary to digitize the analog signal and generate high-precision digital signal sampling, thereby improving the accuracy of the final detection of 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 audio data of a sound source device by the audio data sending terminal.
[0020] Compared with the prior art, the above embodiment has the following beneficial effects: the collected audio data can be further processed through the audio data sending terminal to realize various audio transmission and playback requirements of users.
[0021] In some embodiments of the first aspect of the present application, the backup audio signal is connected to the power amplifier terminal device line connected to the audio source device through a constant voltage signal input interface, and is received in real time through the constant voltage signal input interface.
[0022] Compared with the prior art, the above embodiment has the following beneficial effects: by collecting the audio data generated by the same audio source device and realizing data output with different terminals, it is ensured that during the primary-backup switching process, the data output by the primary path and the backup path have the same time step, further ensuring the real-time performance of 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, thereby ensuring the continuity of audio playback when the audio playback terminal encounters network fluctuations, equipment abnormalities, power outages and other faults.
[0023] In some embodiments of the first aspect of the present application, when the voltage of the first power port cannot be detected, the backup path is switched to play the backup audio signal.
[0024] Compared with the prior art, the above embodiment has the following beneficial effects: when the voltage of the first power port cannot be detected, it means that a power failure has occurred in the audio playback terminal. At this time, through the backup path, the audio signal can be stably output while the audio playback terminal is powered, thereby ensuring the continuity of the audio playback.
[0025] In a second aspect, an embodiment of the present application further provides an audio playback device based on primary and backup path switching, which is used in an audio playback terminal and includes: a data receiving module, a network monitoring module, and an audio link detection module;
[0026] 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;
[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 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;
[0028] The audio link detection module is used to determine whether the first analog signal contains a marking signal; if so, switch to the backup path to play the backup audio signal; otherwise, use the main path to play the first analog signal.
[0029] In some embodiments of the second aspect of the present application, the processing the first audio signal to obtain a first analog signal includes:
[0030] Superimposing the first audio signal and the marking signal to obtain a second audio signal;
[0031] 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.
[0032] In some embodiments of the second aspect of the present application, the determining whether the first analog signal includes a marking signal includes:
[0033] Processing the first analog signal through a step-down circuit to obtain a second analog signal;
[0034] 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.
[0035] In some embodiments of the second aspect of the present application, when the voltage of the first power port cannot be detected, the backup path is switched to play the backup audio signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A flowchart of an audio playback method based on primary and standby path switching provided in some embodiments of the present application;
[0037] Figure 2 A structural framework diagram of an audio playback system based on primary and backup path switching provided in some embodiments of the present application;
[0038] Figure 3 A schematic diagram of the structure of an audio playback device based on primary-backup path switching provided in some embodiments of the present application. DETAILED DESCRIPTION
[0039] Existing systems often rely on manual troubleshooting of broadcast systems to determine whether to switch the primary and backup paths, and perform manual switching based on the judgment results. This process can easily lead to broadcast interruptions, affect the real-time and continuity of audio transmission, and have low troubleshooting efficiency. In addition, during the switching of the primary and backup audio paths, audio data is easily lost, affecting the integrity of audio data during playback.
[0040] In order to solve the above technical problems, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0041] Embodiment 1
[0042] Please refer to Figure 1 , is an audio playback method based on primary and backup path switching provided by an embodiment of the present application, Figure 2 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 implementation Figure 1 The audio playback terminal of the audio playback method shown, wherein: Figure 1 The audio playing method shown includes S10 to S30, specifically:
[0043] S10: 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.
[0044] Preferably, reference Figure 2 In some embodiments of the present application, when there is voltage at the first power port, it means that the audio playback terminal is in a 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, the server sends the audio data (i.e., the first audio signal) and at the same time, it will send an audio heartbeat packet (i.e., a marking signal) with specific identification information to the audio playback terminal. 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 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 signal in the first data.
[0045] Furthermore, in some embodiments of the present application, the first audio signal is obtained by collecting and processing audio data of a sound source device through the audio data sending terminal.
[0046] Preferably, reference Figure 2 In some embodiments of the present application, a corresponding collection task is created in the server, and then the audio data is collected from the sound source device through the collector device, and then the server further customizes the collected audio data to generate a first audio signal. The first audio signal is transmitted to the audio playback terminal via a network link.
[0047] Furthermore, in some embodiments of the present application, the backup audio signal is connected to a power amplifier terminal device line connected to the audio source device via a constant voltage signal input interface, and is received and acquired in real time via the constant voltage signal input interface.
[0048] Furthermore, in some embodiments of the present application, when the voltage of the first power port cannot be detected, the backup path is switched to play the backup audio signal.
[0049] Preferably, in some embodiments of the present application, reference Figure 2 , when there is no voltage at the first power port, it means Figure 2 The audio playback terminal is powered off, and there is no power supply to the terminal network board, sound card, power amplifier link, and step-down circuit. The terminal network board, sound card, power amplifier link, and step-down 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 automatic switching relays or electronic switches. This application does not limit the switch. This type of switch will automatically switch the path when the power is cut off. When there is voltage at the first power port, the terminal network board is powered on. When the terminal network board detects that there is voltage at the first power 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, reference Figure 2 When there is no voltage at the first power port, the selection circuit automatically switches to the backup path, wherein the backup path receives the backup audio signal, which is input through the constant voltage signal input interface, and the constant voltage signal input interface can be set to a 100V analog interface. Through the 100V analog interface, even if a power failure occurs, the 100V analog audio (i.e., the backup audio signal) output by the power amplifier terminal after amplifying the audio data can be received, ensuring that the audio playback terminal can play the audio data uninterruptedly. The power amplifier terminal is connected to the audio source device, so that the audio data of the main path and the backup path come from the same audio source device, ensuring the continuity of audio playback during the main-backup switching process.
[0051] It can be seen from the above embodiments that the present application collects the audio data generated by the same audio source device and realizes data output with different terminals, thereby ensuring that during the primary-backup switching process, the data output by the main path and the backup path have the same time step, further ensuring the real-time performance of 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, thereby ensuring the continuity and completeness of the audio playback when the audio playback terminal encounters network fluctuations, equipment abnormalities, power outages and other faults.
[0052] S20: 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.
[0053] Preferably, reference Figure 2 In some embodiments of the present application, when a network failure causes a switch from a main path to a backup path, the terminal network board in the main path will detect in parallel and in real time whether the server sends the first data containing a marking signal. When detected, the selector circuit will be immediately controlled to switch from the backup path back to the main path.
[0054] Further, in some embodiments of the present application, the processing of the first audio signal to obtain a first analog signal includes:
[0055] Superimposing the first audio signal and the marking signal to obtain a second audio signal;
[0056] 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.
[0057] The second audio signal is obtained by superimposing a marker signal on the first audio signal. After the second audio signal is processed by 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 there is the marker signal superimposed before processing in the first analog signal obtained after processing.
[0058] Preferably, reference 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 on the first audio signal as a mark, and then convert the second audio signal in the form of a digital signal into a second analog signal through the 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] Processing the first analog signal through a step-down circuit to obtain a second analog signal;
[0061] 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.
[0062] In order to detect whether the marker signal is superimposed on the first analog signal, the analog signal needs to be digitized to generate high-precision digital signal sampling, thereby improving the accuracy of ultimately detecting whether the marker signal in the third audio signal is complete.
[0063] Preferably, reference 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 simultaneously transmitted to the selector circuit 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 a digital signal mode after being collected by the step-down circuit and the sound card, so that the terminal network board can identify the marking signal from the third audio signal.
[0064] S30: Determine whether the first analog signal contains a marking signal; if so, switch to the backup path to play the backup audio signal; otherwise, use the main path to play the first analog signal.
[0065] Preferably, reference Figure 2 In some embodiments of the present application, when switching to a backup 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 mark signal appears in the first analog signal. When a mark 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 switching between primary and standby paths provided by an embodiment of the present application has the following beneficial effects: when the audio playback terminal is powered normally, it usually faces problems such as network fluctuations and failures of the sound card and the amplifier link, which will cause the audio playback to be unstable. Through the form of message detection, the network status is monitored in real time. When the network is unstable, it will cause the heartbeat data to be unable to be received. 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 the sound card or amplifier link that processes the first audio signal fails, it will cause the mark signal to be lost after being processed by the sound card or the amplifier link. By monitoring whether there is a mark signal in the first analog signal used for subsequent playback, it can be judged in real time whether the first audio signal has a data loss problem after subsequent processing, thereby improving the completeness of the audio data. And when the audio playback terminal has a power failure, it can automatically switch to the backup path, and through the constant voltage signal input interface, the stable playback of the audio data is guaranteed, and the continuity of the audio playback during the primary and standby switching process is improved.
[0067] Embodiment 2
[0068] refer to Figure 3 , an audio playback device based on primary-backup path switching provided in an embodiment of the present application, includes: a data receiving module 11, a network monitoring module 12 and an audio link detection module 13.
[0069] Furthermore, in some embodiments of the present application, the data receiving module 11 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 12 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 the 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 used to determine whether the first analog signal contains a marking signal; if contained, switch to the backup path to play the backup audio signal; otherwise, use the main path to play the first analog signal.
[0070] Furthermore, in some embodiments of the present application, processing the first audio signal to obtain a first analog signal includes: superimposing the first audio signal with the marking signal 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] Furthermore, in some embodiments of the present application, determining whether the first analog signal contains a marker signal includes: processing the first analog signal through a step-down 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] Furthermore, in some embodiments of the present application, the first audio signal is obtained by collecting and processing audio data of a sound source device through the audio data sending terminal.
[0073] Furthermore, in some embodiments of the present application, the backup audio signal is connected to a power amplifier terminal device line connected to the audio source device via a constant voltage signal input interface, and is received and acquired in real time via the constant voltage signal input interface.
[0074] Furthermore, in some embodiments of the present application, when the voltage of the first power port cannot be detected, the backup path is switched to play the backup audio signal.
[0075] It can be understood that the above-mentioned device item embodiments correspond to the method item embodiments of the present invention. An audio playback device based on primary-backup path switching provided by the embodiment of the present invention can implement any method item embodiment of the present invention, that is, the audio playback method based on primary-backup path switching provided by embodiment one.
[0076] In summary, an audio playback device based on the switching of the main and standby paths provided by the embodiment of the present application has the following beneficial effects: when the audio playback terminal is powered normally, it usually faces problems such as network fluctuations and failures of the sound card and the power amplifier link, which will cause the audio playback to be unstable. Through the form of message detection, the network status is monitored in real time. When the network is unstable, it will cause the heartbeat data to be unable to be received. 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 the sound card or power amplifier link that processes the first audio signal fails, it will cause the mark signal to be lost after being processed by the sound card or the power amplifier link. By monitoring whether there is a mark signal in the first analog signal used for subsequent playback, it can be judged in real time whether the first audio signal has a data loss problem after subsequent processing, thereby improving the completeness of the audio data. And when the audio playback terminal has a power failure, it can automatically switch to the backup path, and through the constant voltage signal input interface, the stable playback of the audio data is guaranteed, and the continuity of the audio playback during the main and standby switching process is improved.
[0077] Embodiment 3
[0078] Based on the above-mentioned embodiment of the audio playback method based on primary-backup path switching, another embodiment of the present application provides an audio playback terminal device based on primary-backup path switching. The audio playback terminal device based on primary-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, the audio playback method based on primary-backup path switching of any embodiment of the present application is implemented.
[0079] Exemplarily, in this embodiment, the computer program may be divided into one or more modules, which are stored in the memory and executed by the processor to complete the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the audio playback device based on primary and standby path switching.
[0080] The audio playback device based on the primary and backup path switching can be a computing device such as a desktop computer, a notebook, a palm computer, a cloud server, etc. The audio playback terminal device based on the primary and backup path switching can include, but is not limited to, a processor and a memory.
[0081] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) 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 the primary and standby path switching, and uses various interfaces and lines to connect the various parts of the audio playback device based on the primary and standby path switching. The memory may be used to store the computer program and / or module, and the processor implements various functions of the audio playback device based on the primary and standby path switching by running or executing the computer program and / or module stored in the memory and calling the data stored in the memory. The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application required for a function, etc.; the data storage area may store data created according to the use of the mobile phone, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMed i aCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0082] Embodiment 4
[0083] Based on the above-mentioned embodiment of the audio playback method based on primary-backup path switching, another embodiment of the present application provides a storage medium, wherein the storage medium includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the audio playback method based on primary-backup path switching of any embodiment of the present application.
[0084] In this embodiment, the storage medium is a computer-readable storage medium, and the computer program includes computer program code, which may be in source code form, object code form, 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 disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0085] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of protection 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 so, switch to the backup path to play the backup audio signal; otherwise, use the main path to play the first analog signal.
2. The audio playback method based on primary and backup path switching according to claim 1, characterized in that: The processing of the first audio signal to obtain a first analog signal comprises: Superimposing the first audio signal and the marking signal 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.
3. 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.
4. 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 and processing the audio data of the audio source device through the audio data sending terminal.
5. The audio playback method based on primary and backup path switching according to claim 4, 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.
6. An audio playback method based on primary and backup path switching according to any one of claims 1 to 5, 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.
7. 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 marking signal; if so, switch to the backup path to play the backup audio signal; otherwise, use the main path to play the first analog signal.
8. The audio playback device based on primary and backup path switching according to claim 7, characterized in that: The processing of the first audio signal to obtain a first analog signal comprises: Superimposing the first audio signal and the marking signal 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.
9. The audio playback device based on primary and backup path switching according to claim 7, 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.
10. An audio playback device based on primary and backup path switching according to any one of claims 7 to 9, 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
Digital train broadcasting system and method for train broadcasting system
CN108900270A
Signal detection circuit, method and equipment
CN115835111A
Multi-level broadcast control method and device
CN117856948A