Broadcasting system, audio transmission method, and storage medium

By combining the audio signal module for network transmission and local line transmission in the broadcast system, and using heartbeat packets to detect network status, the problem of playback interruption caused by network failures is solved, and stable transmission of audio signals and continuity of broadcasting are achieved.

CN118631372APending Publication Date: 2024-09-10GUANGZHOU BAOLUN ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410884570.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In existing broadcasting systems, the way audio signals are transmitted over the network is highly dependent on the network environment, which can easily cause playback interruptions due to network failures, affecting the audio playback effect.

Method used

Design a broadcast system that combines two audio signal modules, network transmission and local line transmission. The control module uses heartbeat packets to detect the network status. If abnormal, it switches to the local line transmission module to ensure stable transmission of audio signals.

Benefits of technology

It improves the stability of audio signal transmission, reduces lags and content loss during playback, and ensures the continuity and quality of radio broadcasts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631372A
    Figure CN118631372A
Patent Text Reader

Abstract

The invention provides a broadcasting system, an audio transmission method and a storage medium, and relates to the technical field of broadcasting. An audio playing terminal of the broadcasting system is respectively connected with a first audio transmission module and a second audio transmission module through a control module; the first audio transmission module and the second audio transmission module are used for synchronously transmitting the same audio signal; the control module is used for detecting the state of the first audio transmission module through the heartbeat packet, if the state is determined to be abnormal, the audio playing terminal is controlled to be connected with the second audio transmission module, and the heartbeat interval of the heartbeat packet is determined based on the network state. According to the embodiment of the invention, the object connected with the audio playing terminal is switched by using the heartbeat packet to detect the state of the first audio transmission module, so that the state abnormity problem can be quickly found, the switching process is natural and smooth, the lagging and content missing in the audio playing process are effectively reduced, and the audio playing effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of broadcasting technology, and in particular, to a broadcasting system, an audio transmission method and a storage medium. Background Art

[0002] In some important broadcasting occasions, such as exam listening broadcasting, campus regular broadcasting or campus specific scene broadcasting, the broadcasting cannot be interrupted at will. In the current broadcasting system, the broadcasting audio comes from the network broadcasting audio, which uses the network transmission method to transmit the audio signal to the audio playback terminal, and the audio corresponding to the audio signal is played through the audio playback terminal. However, this method is highly dependent on the network environment. Once a network failure (such as network disconnection, server crash, etc.) occurs, it may cause playback interruption and affect the audio playback effect. Summary of the invention

[0003] The embodiments of the present application provide a broadcasting system, an audio transmission method and a storage medium, which can solve the problem that the existing network transmission audio signal method is highly dependent on the network environment, and is prone to playback interruption due to network failure, affecting the audio playback effect. To achieve this purpose, the embodiments of the present application provide the following solutions.

[0004] According to one aspect of an embodiment of the present application, a broadcasting system is provided, comprising: a first audio transmission module for transmitting an audio signal through a network, a second audio transmission module for transmitting an audio signal through a local line, a control module, and at least one audio playback terminal, wherein the audio playback terminal is respectively connected to the first audio transmission module and the second audio transmission module through the control module;

[0005] The first audio transmission module and the second audio transmission module are used to synchronously transmit the same audio signal;

[0006] The control module is used to detect the state of the first audio transmission module through a heartbeat packet. If the state is determined to be abnormal, the audio playback terminal is controlled to connect with the second audio transmission module. The heartbeat interval of the heartbeat packet is determined based on the network state.

[0007] In a possible implementation, the control module includes a control unit and a switching unit, including:

[0008] The switching unit is respectively connected to the output end of the first audio transmission module, the output end of the second audio transmission module and the audio playback terminal;

[0009] The control unit is connected to the first audio transmission module, sends a heartbeat packet to the first audio transmission module, and controls the switching unit to switch the audio transmission object connected to the audio playback terminal according to feedback from the first audio transmission module.

[0010] In a possible implementation, controlling the switching unit to switch the audio transmission object connected to the audio playback terminal according to feedback from the first audio transmission module includes:

[0011] Get the heartbeat interval corresponding to the current network status, where the heartbeat interval is the time interval between the current heartbeat packet and the next heartbeat packet;

[0012] If it is determined that the feedback signal sent by the first audio transmission module in response to the current heartbeat packet is not received within the heartbeat interval or the feedback signal of the first audio transmission module is not received for a preset number of consecutive times, it is determined that the state of the first audio transmission module is abnormal, and the audio playback terminal is switched to connect with the second audio transmission module through the switching unit.

[0013] In a possible implementation, the switching unit includes: a relay provided with a switching switch and a switching circuit, the control unit is connected to the output end of the first audio transmission module, the fixed end of the switching switch is connected to the audio playback terminal, and the movable end of the switching switch is connected to the output end of the first audio transmission module or the audio signal output end of the control unit;

[0014] The switching circuit is connected to the control signal output terminal of the control unit and the ground terminal of the relay, and the switching circuit is used to control the action of the switching switch in the relay according to the control signal.

[0015] In a possible implementation, the switching circuit includes: a first resistor, a second resistor, a first diode, a first transistor, a third resistor, a second transistor, a fourth resistor, and a third transistor, wherein the cathode of the first diode is connected to the control signal output end of the control unit, the anode of the first diode is connected to the first end of the first resistor and the first end of the second resistor, the second end of the first resistor is connected to the first reference voltage source and the emitter of the first transistor, the second end of the second resistor is connected to the base of the first transistor, the collector of the first transistor is connected to the first end of the third resistor and the base of the second transistor, the second end of the third resistor is grounded and connected to the emitter of the second transistor and the emitter of the third transistor, the collector of the second transistor is connected to the first end of the fourth resistor and the base of the third transistor, the second end of the fourth resistor is connected to the second reference voltage source, and the collector of the third transistor is connected to the ground end of the relay.

[0016] In a possible implementation, the broadcasting system further includes an audio signal generating device and an audio synchronization terminal, wherein the audio synchronization terminal is respectively connected to the audio signal generating device, an input end of the first audio transmission module, and an input end of the second audio transmission module;

[0017] The audio signal generating device is used to decode the audio file to generate an audio signal, and transmit the audio signal to the audio synchronization terminal;

[0018] The audio synchronization terminal is used to synchronously transmit the audio signal to the first audio transmission module and the second audio transmission module.

[0019] Based on the same inventive concept, an embodiment of the present application further proposes an audio transmission method, which is used in the broadcasting system as described above. The audio transmission method includes:

[0020] The control module is connected to the first audio transmission module, and sends a heartbeat packet to the first audio transmission module, wherein the heartbeat interval of the heartbeat packet is determined based on the network status;

[0021] The state of the first audio transmission module is obtained, and if it is determined that the state is abnormal, the audio playback terminal is controlled to connect with the second audio transmission module.

[0022] In a possible implementation, the sending a heartbeat packet to the first audio transmission module includes:

[0023] Transmitting the audio signal sent by the first audio transmission module to the audio playback terminal;

[0024] If it is determined that the communication connection state with the first audio transmission module is an idle state, the heartbeat packet is sent to the first audio transmission module.

[0025] In a possible implementation, the method further includes:

[0026] If it is determined that the state is normal, the connection between the audio playback terminal and the first audio transmission module is maintained, and the audio signal sent by the first audio transmission module is transmitted to the audio playback terminal.

[0027] According to another aspect of the embodiments of the present application, a computer storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described above are implemented.

[0028] According to another aspect of the embodiments of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps of the method described above are implemented.

[0029] The beneficial effects of the technical solution provided by the embodiment of the present application are:

[0030] The broadcasting system provided by the present application is provided with a first audio transmission module for transmitting audio signals through a network and a second audio transmission module for transmitting audio signals through a local line. The same audio signal is transmitted synchronously through the first audio transmission module and the second audio transmission module. The control module sends a heartbeat packet according to the network status, and uses the heartbeat packet to detect the status of the first audio transmission module. If it is determined that the status is abnormal, the audio playback terminal is controlled to be connected to the second audio transmission module. The embodiment of the present application will use the second audio transmission module of the local line as a backup channel for audio signal transmission, improve the stability of audio signal transmission, and switch the object to which the audio playback terminal is connected by detecting the status of the first audio transmission module using the heartbeat packet, so as to facilitate the rapid discovery of abnormal status problems. The switching process is natural and smooth, effectively reducing the jamming and content loss during audio playback, and improving the audio playback effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following is a brief introduction to the drawings required for use in describing the embodiments of the present application.

[0032] Figure 1 A structural diagram of an embodiment of a broadcast system provided in an embodiment of the present application;

[0033] Figure 2 A schematic diagram of an embodiment of signal transmission of a broadcasting system provided in an embodiment of the present application;

[0034] Figure 3 A structural diagram of an embodiment of a control module in a broadcasting system provided in an embodiment of the present application;

[0035] Figure 4 A flowchart of an embodiment of an audio transmission method provided in an embodiment of the present application;

[0036] Figure 5 This is a workflow diagram of an embodiment of an audio transmission method provided in an embodiment of the present application.

[0037] Description of the drawings: R1, first resistor; R2, second resistor; D1, first diode; Q1, first transistor; R3, third resistor; Q2, second transistor; R4, fourth resistor; Q3, third transistor; R5, fifth resistor. DETAILED DESCRIPTION

[0038] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.

[0039] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation of other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the present technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the one element may be directly connected or coupled to the other element, or it may refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein indicates at least one of the items defined by the term, for example, "A and / or B" indicates that it is implemented as "A", or is implemented as "A", or is implemented as "A and B".

[0040] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0041] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present invention and the technical effects produced by the technical solutions of the present invention. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.

[0042] The broadcasting system, audio transmission method and storage medium provided in the present application are intended to solve at least one technical problem existing in the prior art.

[0043] The present application provides a broadcast system, such as Figure 1-Figure 3As shown, the broadcasting system includes: a first audio transmission module for transmitting audio signals through a network, a second audio transmission module for transmitting audio signals through a local line, a control module and at least one audio playback terminal, the audio playback terminal is respectively connected to the first audio transmission module and the second audio transmission module through the control module; the first audio transmission module and the second audio transmission module are used to synchronously transmit the same audio signal; the control module is used to detect the state of the first audio transmission module through a heartbeat packet, and if it is determined that the state is abnormal, the audio playback terminal is controlled to be connected to the second audio transmission module, and the heartbeat interval of the heartbeat packet is determined based on the network state.

[0044] Optionally, after the broadcasting system is started, the control module controls the first audio transmission module to connect with the audio playback terminal, and transmits the audio signal to the audio playback terminal through the first audio transmission module. After determining that the state of the first audio transmission module is abnormal, the audio playback terminal is connected to the second audio transmission terminal, and the audio signal is transmitted to the audio playback terminal through the second audio transmission terminal.

[0045] Optionally, a corresponding control module can be set for each audio playback terminal, and the control module detects the communication state between the first audio transmission module and its corresponding audio playback terminal through a heartbeat packet, and connects the audio playback terminal to the second audio transmission module when determining that the state is abnormal. Wherein, the control module can be set inside the audio playback terminal.

[0046] Optionally, to reduce power consumption of the broadcasting system, the control module may start the second audio transmission module after determining that the first audio transmission module is in an abnormal state, and connect the audio playback terminal to the second audio transmission module after the second audio transmission module is started.

[0047] Optionally, to further improve the smoothness of audio switching, the control module can also store the audio signal transmitted by the second audio transmission module in real time (such as storing the audio signal of a preset time length between the current and previous time points), and compare the audio signal with the audio signal of the first audio transmission module, and identify the time point when the audio signal transmitted by the first audio transmission module is interrupted when the state of the first audio transmission module is abnormal according to the comparison result. The audio signal after this time point is transmitted to the audio playback terminal according to the stored audio signal.

[0048] In one embodiment, the audio playback terminal may be a listening terminal in a classroom, and the first audio transmission module may include an IP broadcast host. The IP broadcast host receives an audio signal and transmits the audio signal to the listening terminal via a wide area network or a local area network. The second audio transmission module may include an integrated broadcast host and a constant voltage power amplifier device, the integrated broadcast host is connected to the constant voltage power amplifier device, and the constant voltage power amplifier device transmits the signal to the listening terminal via a physical link. Among them, the constant voltage power amplifier can output a 100V audio voltage to the listening terminal, and the listening terminal plays the corresponding audio after receiving the 100V audio voltage.

[0049] Optionally, the control module includes a control unit and a switching unit, including: the switching unit is respectively connected to the output end of the first audio transmission module, the output end of the second audio transmission module and the audio playback terminal; the control unit is connected to the first audio transmission module, sends a heartbeat packet to the first audio transmission module, and controls the switching unit to switch the audio transmission object connected to the audio playback terminal according to the feedback of the first audio transmission module.

[0050] Optionally, the control unit sends a heartbeat packet to a server or IP broadcast host in the first audio transmission module for controlling the transmission of an audio signal based on a heartbeat algorithm. In addition, in order to avoid interference with the transmission of the audio signal, the size of the heartbeat packet and the heartbeat interval of the heartbeat packet can be determined according to the network transmission state between the first audio transmission module and the control unit. Specifically, the heartbeat packet can contain only the minimum information required to maintain the heartbeat interval (such as an empty packet containing only a header) to reduce the burden of data transmission.

[0051] Optionally, the heartbeat packet stores a parameter for adjusting the time interval for sending the next heartbeat (ie, the heartbeat interval), and the first audio transmission module determines the time of feedback information according to the parameter.

[0052] In one embodiment, the heartbeat interval of the heartbeat packet can be adjusted according to the real-time network status to optimize the balance between network traffic and maintaining connection activity. Specifically, the heartbeat interval can be extended when the first audio transmission module sends an audio signal, and shortened when it does not transmit an audio signal. The heartbeat interval can also be extended after the network speed is lower than a preset value.

[0053] Optionally, the control unit may be a single chip microcomputer (MCU), which may be connected to the first audio transmission module and the audio playback terminal respectively, and the first audio transmission module transmits the audio signal to the audio playback terminal through the audio playback terminal.

[0054] Optionally, the audio transmission object connected to the audio playback terminal is switched according to the feedback control switching unit of the first audio transmission module, including: obtaining the heartbeat interval corresponding to the current network status, the heartbeat interval being the time interval between the current heartbeat packet and the next heartbeat packet; if it is determined that the feedback signal sent by the first audio transmission module in response to the current heartbeat packet is not received within the heartbeat interval or the feedback signal of the first audio transmission module is not received for a preset number of consecutive times, it is determined that the state of the first audio transmission module is abnormal, and the audio playback terminal is switched to be connected to the second audio transmission module through the switching unit.

[0055] Optionally, in order to reduce misjudgment caused by network delay and avoid interference with the transmission of audio signals, the idle time of the first audio transmission module (i.e., the time when the audio signal is not transmitted) can be obtained after sending the heartbeat packet, and the next heartbeat packet can be sent after the length of the idle time reaches the time interval between the current heartbeat packet and the next heartbeat packet. Correspondingly, if no feedback in response to the current heartbeat packet is received before sending the next heartbeat packet, it can be determined that the state of the first audio transmission module is abnormal.

[0056] Optionally, a heartbeat packet may be continuously sent to the first audio transmission module. If it is determined that the number of times that the first audio transmission module does not respond to the heartbeat packet reaches a preset number, it is determined that the state of the first audio transmission module is abnormal.

[0057] Optionally, the switching unit includes: a relay with a switching switch and a switching circuit, the control unit is connected to the output end of the first audio transmission module, the fixed end of the switching switch is connected to the audio playback terminal, and the movable end of the switching switch is connected to the output end of the first audio transmission module or the audio signal output end of the control unit; the switching circuit is connected to the control signal output end of the control unit and the ground end of the relay, and the switching circuit is used to control the action of the switching switch in the relay according to the control signal. A real-time loop circuit is formed by the control unit and the relay and the switching resistor in the switching unit, and the state of the first audio transmission module is detected and the rapid switching of the audio path is realized by using network detection and hardware detection.

[0058] In one embodiment, a switching circuit includes: a first resistor R1, a second resistor R2, a first diode D1, a first transistor Q1, a third resistor R3, a second transistor Q2, a fourth resistor R4, and a third transistor Q3, wherein a cathode of the first diode D1 is connected to a control signal output terminal of a control unit, an anode of the first diode D1 is connected to a first end of the first resistor R1 and a first end of the second resistor R2, a second end of the first resistor R1 is connected to a first reference voltage source and an emitter of the first transistor Q1, a second end of the second resistor R2 is connected to a base of the first transistor Q1, a collector of the first transistor Q1 is connected to a first end of the third resistor R3 and a base of the second transistor Q2, a second end of the third resistor R3 is grounded and connected to an emitter of the second transistor Q2 and an emitter of the third transistor Q3, a collector of the second transistor Q2 is connected to a first end of the fourth resistor R4 and a base of the third transistor Q3, a second end of the fourth resistor R4 is connected to a second reference voltage source, and a collector of the third transistor Q3 is connected to a ground terminal of a relay. The switching circuit may further include a fifth resistor R5 , a first end of the fifth resistor R5 is connected to the collector of the first transistor Q1 , and a second end of the fifth resistor R5 is connected to the base of the second transistor Q2 .

[0059] Specifically, the control unit is a single-chip microcomputer, which monitors the communication status between it and the server in the first audio transmission module in real time. When the single-chip microcomputer fails to continuously receive the server's confirmation response to the heartbeat packet, the single-chip microcomputer triggers the first transistor Q1 to turn on by outputting a low-level signal, and then the third transistor Q3 is turned on, and the collector of the second transistor Q2 is grounded, causing the third transistor Q3 to not work due to the low base level, thereby stopping the relay from moving. The relay controls the audio playback terminal to connect to the second audio transmission module, ensuring that it can immediately switch to the audio channel where the second audio transmission module, which is a backup channel, is located in the event of a network failure or power outage.

[0060] On the contrary, when the communication between the single-chip microcomputer and the server in the first audio transmission module returns to normal, the single-chip microcomputer outputs a high level, the first transistor Q1 is cut off, the second transistor Q2 is also cut off, and the base of the third transistor Q3 obtains a high level through the second reference voltage source, the third transistor Q3 is turned on, the relay is closed and switches to the network playback channel formed by the first audio transmission module.

[0061] Optionally, the broadcasting system also includes an audio signal generating device and an audio synchronization terminal, the audio synchronization terminal is respectively connected to the audio signal generating device, the input end of the first audio transmission module and the input end of the second audio transmission module; the audio signal generating device is used to decode the audio file to generate an audio signal, and transmit the audio signal to the audio synchronization terminal; the audio synchronization terminal is used to synchronously transmit the audio signal to the first audio transmission module and the second audio transmission module.

[0062] In one embodiment, the audio file may be an auditory file, the audio signal generating device may be a CD player, the auditory file is decoded to generate an audio signal, and the audio synchronization terminal synchronously transmits the audio signal to the first audio transmission module and the second audio transmission module corresponding to each audio playback terminal.

[0063] Optionally, the audio signal generating device may further set a backup audio file outside the main audio file, and when a failure occurs in the main audio file, quickly call the backup audio file to generate an audio signal.

[0064] Optionally, the audio signal generating device may improve the quality of the audio signal by using at least one audio processing method or tool such as noise elimination, sound enhancement, sound synthesis, audio compression, echo suppression, spectrum analysis, audio equalizer, audio time domain processing, etc. Moreover, the first audio transmission module and the second audio transmission module may also adopt corresponding audio transmission methods according to the quality requirements of the audio signal to reduce sound quality distortion and playback delay.

[0065] The broadcasting system of the present application includes a first audio transmission module as a main audio transmission channel and a second audio transmission module as a backup audio transmission channel. The two audio transmission modules can play audio synchronously in real time. Once a problem occurs in the main audio transmission channel, the backup audio transmission channel can take over immediately and continue to play the audio, ensuring the smooth progress of the broadcast. In addition, the control module of the present application can monitor the network connection status and the working status of the first audio transmission module in real time through a heartbeat algorithm, thereby obtaining the status of the main audio transmission channel. Once a problem is found, it can switch to the backup audio transmission channel with zero delay or very short delay, thereby improving the switching speed and the smoothness of the audio channel switching.

[0066] Based on the same inventive concept, the present application also proposes an audio transmission method, which is used in the broadcasting system as described above. Figure 4-Figure 5 As shown, the audio transmission method includes:

[0067] S101: The control module is connected to the first audio transmission module and sends a heartbeat packet to the first audio transmission module.

[0068] S102: Acquire the state of the first audio transmission module, and if it is determined that the state is abnormal, control the audio playback terminal to connect to the second audio transmission module.

[0069] Optionally, the heartbeat interval of the heartbeat packet is determined based on a network status.

[0070] Optionally, sending a heartbeat packet to the first audio transmission module includes: transmitting the audio signal sent by the first audio transmission module to the audio playback terminal; if it is determined that the communication connection state with the first audio transmission module is an idle state, sending a heartbeat packet to the first audio transmission module.

[0071] Optionally, the audio transmission method further includes: if it is determined that the state is normal, maintaining the connection between the audio playback terminal and the first audio transmission module, and transmitting the audio signal sent by the first audio transmission module to the audio playback terminal.

[0072] In one embodiment, the control module receives a connection establishment request from the first audio transmission module, and establishes a long connection with the first audio transmission module according to the connection establishment request. The control module performs a message receiving and sending operation with the first audio transmission module, and forwards the audio signal transmitted by the first audio transmission module to the audio playback module. When it is determined that the communication state of the first audio transmission module is an idle state (such as currently being in the interval of audio signal transmission or not currently in a network congestion state), a heartbeat packet is sent to detect whether a heartbeat response of the first audio transmission module is received. If it is determined that a heartbeat response is received, then after continuously sniffing that the connection is available (i.e., the state of the first audio transmission module is normal), the message receiving and sending operation is continued. If it is determined that the heartbeat response is not received for N consecutive times (i.e., a preset number of times), it is determined that there is a network failure, and the backup audio transmission channel where the first audio transmission module is located is switched to.

[0073] An embodiment of the present application provides a computer storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.

[0074] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.

[0075] The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of this 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 numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that shown or described in the drawings.

[0076] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.

[0077] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.

Claims

1. A broadcasting system, characterized in that: include: A first audio transmission module that transmits audio signals through a network, a second audio transmission module that transmits audio signals through a local line, a control module, and at least one audio playback terminal, wherein the audio playback terminal is connected to the first audio transmission module and the second audio transmission module respectively through the control module; The first audio transmission module and the second audio transmission module are used to synchronously transmit the same audio signal; The control module is used to detect the state of the first audio transmission module through a heartbeat packet. If the state is determined to be abnormal, the audio playback terminal is controlled to connect with the second audio transmission module. The heartbeat interval of the heartbeat packet is determined based on the network state.

2. The broadcasting system according to claim 1, characterized in that: The control module includes a control unit and a switching unit, including: The switching unit is respectively connected to the output end of the first audio transmission module, the output end of the second audio transmission module and the audio playback terminal; The control unit is connected to the first audio transmission module, sends a heartbeat packet to the first audio transmission module, and controls the switching unit to switch the audio transmission object connected to the audio playback terminal according to feedback from the first audio transmission module.

3. The broadcasting system according to claim 2, characterized in that: The step of controlling the switching unit to switch the audio transmission object connected to the audio playback terminal according to the feedback of the first audio transmission module includes: Get the heartbeat interval corresponding to the current network status, where the heartbeat interval is the time interval between the current heartbeat packet and the next heartbeat packet; If it is determined that the feedback signal sent by the first audio transmission module in response to the current heartbeat packet is not received within the heartbeat interval or the feedback signal of the first audio transmission module is not received for a preset number of consecutive times, it is determined that the state of the first audio transmission module is abnormal, and the audio playback terminal is switched to connect with the second audio transmission module through the switching unit.

4. The broadcasting system according to claim 2, characterized in that: The switching unit includes: a relay provided with a switching switch and a switching circuit, the control unit is connected to the output end of the first audio transmission module, the fixed end of the switching switch is connected to the audio playback terminal, and the movable end of the switching switch is connected to the output end of the first audio transmission module or the audio signal output end of the control unit; The switching circuit is connected to the control signal output terminal of the control unit and the ground terminal of the relay, and the switching circuit is used to control the action of the switching switch in the relay according to the control signal.

5. The broadcasting system according to claim 4, characterized in that: The switching circuit includes: a first resistor, a second resistor, a first diode, a first transistor, a third resistor, a second transistor, a fourth resistor, and a third transistor, wherein the cathode of the first diode is connected to the control signal output end of the control unit, the anode of the first diode is connected to the first end of the first resistor and the first end of the second resistor, the second end of the first resistor is connected to the first reference voltage source and the emitter of the first transistor, the second end of the second resistor is connected to the base of the first transistor, the collector of the first transistor is connected to the first end of the third resistor and the base of the second transistor, the second end of the third resistor is grounded and connected to the emitter of the second transistor and the emitter of the third transistor, the collector of the second transistor is connected to the first end of the fourth resistor and the base of the third transistor, the second end of the fourth resistor is connected to the second reference voltage source, and the collector of the third transistor is connected to the ground end of the relay.

6. The broadcasting system according to claim 1, characterized in that: The broadcasting system further comprises an audio signal generating device and an audio synchronization terminal, wherein the audio synchronization terminal is respectively connected to the audio signal generating device, an input end of the first audio transmission module, and an input end of the second audio transmission module; The audio signal generating device is used to decode the audio file to generate an audio signal, and transmit the audio signal to the audio synchronization terminal; The audio synchronization terminal is used to synchronously transmit the audio signal to the first audio transmission module and the second audio transmission module.

7. An audio transmission method, characterized in that: Used in the broadcasting system according to any one of claims 1 to 6, the audio transmission method comprises: The control module is connected to the first audio transmission module, and sends a heartbeat packet to the first audio transmission module, wherein the heartbeat interval of the heartbeat packet is determined based on the network status; The state of the first audio transmission module is obtained, and if it is determined that the state is abnormal, the audio playback terminal is controlled to connect with the second audio transmission module.

8. The audio transmission method according to claim 7, characterized in that: The sending a heartbeat packet to the first audio transmission module includes: Transmitting the audio signal sent by the first audio transmission module to the audio playback terminal; If it is determined that the communication connection state with the first audio transmission module is an idle state, the heartbeat packet is sent to the first audio transmission module.

9. The audio transmission method according to claim 7, characterized in that: The method further comprises: If it is determined that the state is normal, the connection between the audio playback terminal and the first audio transmission module is maintained, and the audio signal sent by the first audio transmission module is transmitted to the audio playback terminal.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 7 to 9 are implemented.