An automatic partitioned broadcast method, apparatus, device, medium and product
Patent Information
- Application Number
- CN202611093761.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-22
- Publication Date
- 2026-10-16
AI Technical Summary
[0005]本发明提供了一种自动分区广播方法、装置、设备、介质及产品,以解决既有自动控制系统因单一声卡和单线程播放机制的限制,无法在不改动自动控制软件核心逻辑、不新增硬件设备的前提下,实现同一作业类型在不同检修场所的分区定向自动广播的问题
[0011] This invention, through receiving broadcast task codes sent by an automatic control system, parses out the target partition identifier and broadcast content identifier, and queries the preset mapping relationships between partitions and sound columns, as well as the mapping relationships between identifiers and text, to determine the set of sound column terminals corresponding to the target partition and the text content to be broadcast. Then, it sends the target partition identifier and the text content to be broadcast to the digital broadcasting system, which synthesizes speech and directs it to the sound columns of the target partition for broadcasting. Thus, without modifying the core logic of the existing automatic control system, without adding hardware gating circuits, and without equipping each partition with an independent sound card, a lightweight software middleware layer can upgrade the original automatic broadcasting mode, which could only broadcast across the entire area, to a partition-oriented broadcasting mode. This effectively solves the technical problems caused by PlaySound's single-thread limitation, which prevents concurrent broadcasting across multiple partitions, requires re-recording of audio files to modify broadcast content, and prevents different maintenance locations from independently receiving targeted broadcast information.
Smart Images

Figure CN122932870A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of rail transit technology, and in particular to an automatic zoned broadcasting method, apparatus, equipment, medium, and product. Background Technology
[0002] Currently, the automatic voice broadcasts at railway maintenance sites for vehicle entry and exit and overhead contact line power outage operations, whether configured as analog or digital broadcasting systems, are based on the operation signal conditions collected by the automatic control system of the dispatch terminal. The system automatically triggers the associated corresponding voice file (.WAV file) and uses the automatic control software (configuration software) of the dispatch terminal to associate and broadcast the voice file.
[0003] In existing automatic broadcasting technology, the scheduling terminal computer system is configured with only a single sound card. The automatic control software drives the sound card to output audio by calling the operating system's native PlaySound function. Because the PlaySound function uses a single-threaded working mode, it can only process the playback of one audio file at a time. Each broadcast task can only be executed sequentially, meaning that the next broadcast can only be triggered after the previous broadcast has finished playing.
[0004] Under this architectural constraint, to achieve zoned automatic broadcasting in a digital broadcasting system, existing solutions can only set static priorities for different work types (such as vehicle entry / exit operations and power outage operations) in the automatic control software, allowing high-priority broadcasts to preempt sound card resources for priority broadcasting. However, this method cannot address the zoned broadcasting requirements when the same work type is triggered simultaneously in different maintenance locations. For scenarios still using analog broadcasting systems, existing technologies require adding independent broadcast control functions and supporting computer equipment to each client side of the automatic control software. This is achieved through distributed deployment of multiple clients to approximate zoned broadcasting, resulting in a bloated system architecture, high equipment redundancy, and high modification costs. Summary of the Invention
[0005] This invention provides an automatic zone broadcasting method, apparatus, equipment, medium, and product to solve the problem that existing automatic control systems, due to the limitations of a single sound card and single-threaded playback mechanism, cannot achieve zoned and directional automatic broadcasting of the same work type in different maintenance locations without modifying the core logic of the automatic control software or adding new hardware.
[0006] According to one aspect of the present invention, an automatic partitioned broadcasting method is provided, comprising: Receive broadcast task codes sent by the automatic control system; the broadcast task codes are generated by the automatic control system according to preset coding rules when it detects an approaching vehicle operation signal or a power outage operation signal of the overhead contact line. Based on the broadcast task code, determine the target partition identifier and the broadcast content identifier; Based on the target partition identifier, query the preset partition and sound column mapping relationship to determine the set of sound column terminals corresponding to the target partition; The text content to be broadcast is determined based on the broadcast content identifier and the preset identifier-text mapping relationship; The target partition identifier and the text content to be broadcast are sent to the digital broadcasting system. The digital broadcasting system synthesizes the text content to be broadcast into a digital audio stream, and sends the digital audio stream to the set of sound column terminals for broadcasting according to the target partition identifier.
[0007] According to another aspect of the present invention, an automatic zoned broadcasting device is provided, comprising: The encoding receiving module is used to receive the broadcast task code sent by the automatic control system; the broadcast task code is generated by the automatic control system according to the preset encoding rules when it detects that a work signal of approaching vehicle or a work signal of power outage of contact wire is triggered. The encoding parsing module is used to determine the target partition identifier and the broadcast content identifier based on the broadcast task encoding; The partition mapping query module is used to query the preset partition-to-sound column mapping relationship based on the target partition identifier and determine the set of sound column terminals corresponding to the target partition. The text mapping query module is used to determine the text content to be broadcast based on the broadcast content identifier and the preset identifier-text mapping relationship; The broadcast instruction sending module is used to send the target partition identifier and the text content to be broadcast to the digital broadcasting system, and the digital broadcasting system synthesizes the text content to be broadcast into a digital audio stream, and sends the digital audio stream to the set of sound column terminals for broadcasting according to the target partition identifier.
[0008] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the automatic partitioning broadcast method according to any embodiment of the present invention.
[0009] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the automatic partitioning broadcast method according to any embodiment of the present invention.
[0010] According to another aspect of the present invention, a computer program product is provided, comprising a computer program / instructions that, when executed by a processor, implement the automatic partitioned broadcast method as described in any embodiment of the present invention.
[0011] This invention, through receiving broadcast task codes sent by an automatic control system, parses out the target partition identifier and broadcast content identifier, and queries the preset mapping relationships between partitions and sound columns, as well as the mapping relationships between identifiers and text, to determine the set of sound column terminals corresponding to the target partition and the text content to be broadcast. Then, it sends the target partition identifier and the text content to be broadcast to the digital broadcasting system, which synthesizes speech and directs it to the sound columns of the target partition for broadcasting. Thus, without modifying the core logic of the existing automatic control system, without adding hardware gating circuits, and without equipping each partition with an independent sound card, a lightweight software middleware layer can upgrade the original automatic broadcasting mode, which could only broadcast across the entire area, to a partition-oriented broadcasting mode. This effectively solves the technical problems caused by PlaySound's single-thread limitation, which prevents concurrent broadcasting across multiple partitions, requires re-recording of audio files to modify broadcast content, and prevents different maintenance locations from independently receiving targeted broadcast information.
[0012] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 This is a flowchart of an automatic partitioned broadcasting method provided in an embodiment of the present invention; Figure 2 This is a flowchart of an automatic partitioned broadcasting method provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of an automatic zone broadcasting device provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of an electronic device that implements the automatic partitioned broadcasting method of this invention. Detailed Implementation
[0015] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0016] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0017] Figure 1 This is a flowchart of an automatic zone broadcasting method provided by an embodiment of the present invention. This embodiment is applicable to situations in train vehicle maintenance sites such as EMU inspection depots, locomotive maintenance yards, and passenger vehicle maintenance depots, where multiple work areas need to concurrently trigger zone-oriented automatic broadcasting based on their respective independent work signal conditions. This method can be executed by an automatic zone broadcasting device, which can be implemented in hardware and / or software. This device can be configured in electronic devices with corresponding data processing capabilities, such as servers deployed with zone broadcasting software. Figure 1 As shown, the method includes: S110: Receive broadcast task codes sent by the automatic control system.
[0018] The broadcast task code is generated by the automatic control system according to preset coding rules when it detects an incoming vehicle operation signal or a power outage operation signal of the overhead contact line.
[0019] Optionally, the broadcast task code is a segmented numerical code, including a partition identifier field and a content identifier field; the broadcast task code is written into the specified forwarding variable by the automatic control system as a conditional action output value and then sent through the MODBUS TCP protocol.
[0020] During actual operations at railway maintenance sites, the automatic control system continuously collects real-time status signals from various sensors and equipment on-site, including but not limited to track circuit occupancy signals, train arrival signals output by the train number recognition system, and the opening and closing status signals of the overhead contact line disconnecting switches. When the automatic control system detects an approaching train operation signal (such as the track circuit detecting a train entering a certain track) or an overhead contact line power outage operation signal (such as the disconnecting switch performing an opening or closing operation), it generates a corresponding broadcast task code according to pre-configured coding rules and sends it to the receiving end where the zone broadcasting software is located via industrial Ethernet.
[0021] For example, in the daily operations of the high-speed train inspection depot, when the automatic control system detects that the first train arrival signal has been triggered, it generates a broadcast task code "1102" according to the preset coding rules. This code is a segmented numerical code, where the first "1" is the partition identifier field, identifying the broadcast partition number, and the subsequent "102" is the content identifier field, identifying the broadcast content index number. After the automatic control system writes this code as the conditional action output value into its internally designated forwarding variable YY1, it sends the value of the forwarding variable to the pre-configured target IP (Internet Protocol) address and port via the MODBUS TCP protocol. This target IP address and port are the network address and server listening port of the computer where the partition broadcasting software is located.
[0022] Broadcast task codes are not fixed values, but can be flexibly configured and expanded according to actual on-site operational needs and zoning plans. For example, in the same inspection depot, the code "2102" can be triggered when a vehicle approaches in lane 2, and the code "3101" can be triggered when the overhead contact line in lane 3 is de-energized. The zone identifier field and content identifier field of each code can be differentiated according to a unified coding rule to adapt to the broadcasting needs of different work areas and different work types.
[0023] S120. Determine the target partition identifier and broadcast content identifier based on the broadcast task code.
[0024] After receiving the broadcast task code through the TCP server, the partition broadcast software parses the received broadcast task code according to the encoding rules agreed upon with the automatic control system, and extracts the target partition identifier and broadcast content identifier from the encoded value.
[0025] Taking the received code "1102" as an example, the partition broadcasting software extracts the partition identifier field from the broadcast task code by bit-by-bit truncation: the first digit "1" is extracted as the target partition identifier, which is used to indicate which work area the broadcast should be sent to; the subsequent digit "102" is extracted as the broadcast content identifier, which is used to indicate which predefined content the broadcast should broadcast.
[0026] S130. Based on the target partition identifier, query the preset partition and sound column mapping relationship to determine the set of sound column terminals corresponding to the target partition.
[0027] Optionally, in the partition-to-speaker mapping relationship, each broadcast partition corresponds to one or more speaker terminals within the same operating area, and different broadcast partitions correspond to different operating areas; determining the set of speaker terminals corresponding to the target partition includes: querying the partition-to-speaker mapping relationship using the target partition identifier as the key value to obtain the corresponding speaker terminal device address list.
[0028] After extracting the target partition identifier from the broadcast task encoding, the partition-to-speaker mapping relationship in the pre-loaded configuration file is queried using this identifier as the key. In the partition-to-speaker mapping relationship, each broadcast partition corresponds to one or more speaker terminals within the same operating area, and different broadcast partitions correspond to different operating areas. By configuring the partition-to-speaker mapping relationship, logical partitions and physical speakers are decoupled—when it is necessary to adjust the speaker coverage of a certain operating area, only the mapping relationship in the configuration file needs to be modified, without altering any logic in the automatic control software.
[0029] For example, a high-speed train inspection depot is divided into four broadcast zones based on its work areas: Zone 1 is located on the west side (tracks 1-3), Zone 2 is located on the central side (tracks 4-6), Zone 3 is located on the east side (tracks 7-9), and Zone 4 is located in the auxiliary office area. In the corresponding zone-to-speaker mapping relationship, Zone 1 corresponds to speaker terminal device IDs 001 to 006, Zone 2 corresponds to speaker terminal device IDs 007 to 012, Zone 3 corresponds to speaker terminal device IDs 013 to 018, and Zone 4 corresponds to speaker terminal device IDs 019 to 024. When the zone broadcasting software queries this mapping relationship using the target zone identifier "1" as the key value, it obtains the speaker terminal device address list ["001", "002", "003", "004", "005", "006"], thus clarifying the physical broadcast range of the broadcast. For partition 2, partition 3, or other non-target partitions, even if other broadcast tasks exist at the same time, each partition does not interfere with the others and independently completes the determination of the audio column terminal set and subsequent broadcasting.
[0030] S140. Determine the text content to be broadcast based on the broadcast content identifier and the preset identifier-text mapping relationship.
[0031] Optionally, in the identifier-text mapping relationship, different broadcast content identifiers correspond to different predefined text broadcast content, including oncoming vehicle warning text or overhead contact line status notification text; determining the text content to be broadcast includes: querying the identifier-text mapping relationship using the broadcast content identifier as the key value to obtain the corresponding predefined text broadcast content.
[0032] After extracting the broadcast content identifier from the broadcast task encoding, the pre-configured identifier-text mapping relationship is queried using this identifier as the key. In this identifier-text mapping relationship, different broadcast content identifiers correspond to different predefined text broadcast content. By configuring this identifier-text mapping relationship, broadcast triggering and broadcast content are decoupled—when it is necessary to modify the specific broadcast content of a broadcast, only the corresponding text content needs to be modified in the configuration file, without changing any logic in the automatic control software or re-recording the audio file.
[0033] The types of predefined text broadcast content correspond to the actual on-site operational needs, mainly including two categories: train approach warning texts and overhead contact line status notification texts. Among them, train approach warning texts are used to inform workers that a train is about to enter or leave a certain track, reminding them to evacuate to a safe area; overhead contact line status notification texts are used to inform workers that the overhead contact line of a certain track has been de-energized and they can begin climbing the overhead contact line, or that power will be restored soon and climbing the overhead contact line must be stopped immediately.
[0034] For example, in the configuration file, the predefined text corresponding to the broadcast content identifier "102" is "The EMU is about to enter Track 1; please evacuate to the safe area." The predefined text corresponding to the broadcast content identifier "101" is "The overhead contact line of Track 1 has been de-energized; access to the top is permitted." When the zone broadcast software uses the broadcast content identifier "102" as the key to query the mapping relationship between the identifier and the text, it obtains the corresponding text content to be broadcast: "The EMU is about to enter Track 1; please evacuate to the safe area." This text content will be used as the content to be broadcast to the digital broadcasting system.
[0035] It should be noted that the specific encoding values, number of partitions, speaker IDs, and text content involved in the above examples are only illustrative for the purpose of understanding this solution. In actual deployment, they can be flexibly configured according to the division of on-site work areas, the placement of speaker columns, and the requirements of broadcast content.
[0036] S150. Send the target partition identifier and the text content to be broadcast to the digital broadcasting system. The digital broadcasting system synthesizes the text content to be broadcast into a digital audio stream and sends the digital audio stream to the set of sound column terminals for broadcasting according to the target partition identifier.
[0037] After determining the target zone identifier and the text content to be broadcast, the zone broadcasting software sends these two pieces of information to the digital broadcasting system, which then completes the final voice output. The zone broadcasting software and the digital broadcasting system are interconnected via industrial Ethernet, and their communication follows the standard data interface specifications provided by the digital broadcasting system. The zone broadcasting software encapsulates the target zone identifier and the text content to be broadcast into a compliant data format according to this interface specification before sending it to the digital broadcasting system over the network.
[0038] After receiving the target zone identifier and the text to be broadcast, the digital broadcasting system internally converts the text to speech, synthesizing the text into a digital audio stream. Simultaneously, based on the received target zone identifier, the system determines the corresponding audio terminal device for that zone and sends the synthesized digital audio stream only to the audio terminals within that zone. Audio terminals outside the target zone do not receive audio data and remain silent. This completes one full automatic zone broadcasting process.
[0039] This invention, through receiving broadcast task codes sent by an automatic control system, parses out the target partition identifier and broadcast content identifier, and queries the preset mapping relationships between partitions and sound columns, as well as the mapping relationships between identifiers and text, to determine the set of sound column terminals corresponding to the target partition and the text content to be broadcast. Then, it sends the target partition identifier and the text content to be broadcast to the digital broadcasting system, which synthesizes speech and directs it to the sound columns of the target partition for broadcasting. Thus, without modifying the core logic of the existing automatic control system, without adding hardware gating circuits, and without equipping each partition with an independent sound card, a lightweight software middleware layer can upgrade the original automatic broadcasting mode, which could only broadcast across the entire area, to a partition-oriented broadcasting mode. This effectively solves the technical problems caused by PlaySound's single-thread limitation, which prevents concurrent broadcasting across multiple partitions, requires re-recording of audio files to modify broadcast content, and prevents different maintenance locations from independently receiving targeted broadcast information.
[0040] Figure 2 This is a flowchart of an automatic partitioned broadcasting method provided by an embodiment of the present invention. This embodiment is an optimization and improvement based on the above embodiment. Figure 2 As shown, the method includes: S210, Receive broadcast task codes sent by the automatic control system.
[0041] The broadcast task code is generated by the automatic control system according to preset coding rules when it detects an incoming vehicle operation signal or a power outage operation signal of the overhead contact line.
[0042] S220. Determine the target partition identifier and broadcast content identifier based on the broadcast task code.
[0043] S230. Based on the target partition identifier, query the preset partition and sound column mapping relationship to determine the set of sound column terminals corresponding to the target partition.
[0044] S240. Determine the text content to be broadcast based on the broadcast content identifier and the preset identifier-text mapping relationship.
[0045] S250: Read the preset access parameters of the digital broadcasting system and establish a communication connection with the digital broadcasting system according to the access parameters.
[0046] The access parameters include the IP address, service port, login username, and password of the digital broadcasting system.
[0047] The configuration file of the zone broadcasting software pre-stores access parameters for the digital broadcasting system. These parameters include at least the IP address of the server hosting the digital broadcasting system, the port number providing the external interface service, the login username with interface call permissions, and the corresponding login password. The zone broadcasting software loads these parameters upon startup and establishes a network communication connection with the digital broadcasting system based on these parameters when broadcast transmission is required.
[0048] For example, the access parameters for a digital broadcasting system are: IP address "192.168.1.100", service port "8080", login username "admin", and login password "123456". After determining the target partition identifier and the text content to be broadcast, the partition broadcasting software reads these parameters and initiates a connection request via TCP / IP protocol to the server with IP address 192.168.1.100 and port number 8080. The connection request includes the username "admin" and password "123456" for authentication. Upon successful authentication, a reliable communication connection is established between the partition broadcasting software and the digital broadcasting system for the transmission of subsequent broadcast commands.
[0049] S260. According to the data interface specifications provided by the digital broadcasting system, the target partition identifier and the text content to be broadcast are encapsulated into a broadcast instruction that includes a partition field and a text field.
[0050] Different digital broadcasting system vendors may provide different interface specifications, including differences in data format, field definitions, and transmission protocols. The zone broadcasting software needs to organize the identified target zone identifier and the text content to be broadcast into a data structure that the interface can recognize, and encapsulate it into a complete broadcast command, according to the specific interface specifications of the digital broadcasting system it is interfacing with.
[0051] S270. The broadcast command is sent to the digital broadcasting system through the communication connection. The digital broadcasting system synthesizes the text content to be broadcast into a digital audio stream and sends the digital audio stream to the set of sound column terminals for broadcasting according to the target partition identifier.
[0052] The token verification mechanism on the digital broadcasting system side is configured to be disabled to eliminate authentication barriers for API calls.
[0053] Optionally, the text content to be broadcast is synthesized into a digital audio stream through a digital broadcasting system, including: using the text-to-speech engine built into the operating system of the server where the digital broadcasting system resides to synthesize the text content to be broadcast into a digital audio stream. Optionally, before synthesizing the digital audio stream, the digital broadcasting system configures the silence duration before the start of playback to a preset value. The zone broadcasting software sends the encapsulated broadcast command to the digital broadcasting system through the established communication connection. Upon receiving the broadcast command, the digital broadcasting system parses the zone and text fields, extracting the target zone identifier and the text content to be broadcast. The digital broadcasting system then uses the text-to-speech engine built into its server's operating system to synthesize the text content into a digital audio stream in real time, and sends this digital audio stream to the corresponding zone's audio terminal for broadcast, based on the target zone identifier.
[0054] To ensure that calls from the partition broadcast software to the digital broadcast system interface are successfully received and executed, the token verification mechanism of the digital broadcast system is pre-configured to be disabled. In a conventional deployment, token verification is used to prevent broadcast requests from being preempted or interrupted by unauthorized sources. However, in the automatically triggered scenario of this solution, all broadcast requests are initiated by the partition broadcast software according to a unified data interface specification, eliminating the need for token-level dynamic permission verification. Disabling token verification avoids interface call failures due to token expiration, updates, or concurrency conflicts, ensuring that in unattended, automatically triggered scenarios, every broadcast request can be received and executed by the digital broadcast system without obstacles.
[0055] Meanwhile, before synthesizing the digital audio stream, the digital broadcasting system configures the silence duration before playback starts to a preset value to eliminate pops or noise that may occur during channel switching and ensure broadcast quality.
[0056] Taking the actual operation of a high-speed train inspection depot as an example, after completing the aforementioned mapping, the zone broadcasting software encapsulates the target zone identifier "1" and the text content to be broadcast, "The high-speed train is about to enter track 1. Please evacuate to the safe area," into a data structure containing zone and text fields according to the requirements of the digital broadcasting system application interface. This data structure is then sent to the service port of the digital broadcasting system via the HTTP protocol. Upon receiving this data, the digital broadcasting system parses the zone and text fields to obtain the target zone identifier and the text content to be broadcast.
[0057] After obtaining the text content to be broadcast, the digital broadcasting system calls the text-to-speech engine built into the operating system of its own server to synthesize the text content into a digital audio stream in real time. This text-to-speech engine can convert any predefined text content into natural and fluent speech output without the need for pre-recording audio files. Therefore, modifications to the broadcast content can be completed simply by adjusting the text in the configuration file, without involving cumbersome processes such as recording, editing, and format conversion.
[0058] During or after speech synthesis, the digital broadcasting system queries its locally stored mapping relationship between broadcast zones and audio terminals based on the parsed target zone identifier. This mapping relationship is consistent with that on the broadcast zone software side and records a list of audio terminal device addresses for each broadcast zone. After finding the corresponding device address list based on the target zone identifier, the digital broadcasting system sends the synthesized digital audio stream only to the audio terminals in that device address list. These audio terminals receive the audio stream and play it immediately, completing the speech broadcast within that zone. For audio terminals outside the target zone, the digital broadcasting system does not send any audio data and remains silent.
[0059] Before speech synthesis begins, the digital broadcasting system sets a preset silence duration to avoid popping sounds or noise interference that may occur during channel switching, thus improving the broadcast quality.
[0060] From triggering on-site operation signals to encoding and transmission, and then to partition mapping, text mapping, interface calls, speech synthesis and partition-oriented broadcasting, the entire process is executed automatically without human intervention.
[0061] This invention reads preset access parameters of a digital broadcasting system (including IP address, service port, login username, and password), establishes a communication connection with the digital broadcasting system based on these parameters, and encapsulates the target partition identifier and the text content to be broadcast into a broadcast command including partition fields and text fields according to the data interface specifications provided by the digital broadcasting system. This broadcast command is then sent to the digital broadcasting system through the established communication connection, whereby the digital broadcasting system performs speech synthesis and partition-oriented broadcasting. Simultaneously, the token verification mechanism on the digital broadcasting system side is pre-configured to be disabled, thus establishing a standardized interface call channel between the partition broadcasting software and the digital broadcasting system. This allows the partition broadcasting software to drive digital broadcasting systems from different vendors to perform partition broadcasting in a universal and standardized manner, avoiding the complex work of adapting underlying hardware for different broadcasting systems, further reducing the difficulty and cost of system integration. Furthermore, disabling token verification eliminates authentication barriers in automatically triggered scenarios, ensuring that every broadcast request can be reliably received and executed in unattended environments, improving the system's automation and reliability.
[0062] Figure 3 This is a schematic diagram of the structure of an automatic zone broadcasting device provided in an embodiment of the present invention. Figure 3 As shown, the device includes: The encoding receiving module 310 is used to receive the broadcast task code sent by the automatic control system; the broadcast task code is generated by the automatic control system according to the preset encoding rules when it detects that a vehicle approaching operation signal or a power outage operation signal of the overhead contact line is triggered. The encoding parsing module 320 is used to determine the target partition identifier and the broadcast content identifier based on the broadcast task encoding; The partition mapping query module 330 is used to query the preset partition-to-sound column mapping relationship based on the target partition identifier and determine the set of sound column terminals corresponding to the target partition. The text mapping query module 340 is used to determine the text content to be broadcast based on the broadcast content identifier and the preset identifier-text mapping relationship; The broadcast instruction sending module 350 is used to send the target partition identifier and the text content to be broadcast to the digital broadcasting system, and the digital broadcasting system synthesizes the text content to be broadcast into a digital audio stream, and sends the digital audio stream to the sound column terminal set for broadcasting according to the target partition identifier.
[0063] The automatic partitioned broadcasting device provided in the embodiments of the present invention can execute the automatic partitioned broadcasting method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method.
[0064] Optionally, the broadcast instruction sending module includes: A communication connection establishment unit is used to read preset access parameters of the digital broadcasting system, including the IP address, service port, login username, and password of the digital broadcasting system; and to establish a communication connection with the digital broadcasting system according to the access parameters. The broadcast instruction generation unit is used to encapsulate the target partition identifier and the text content to be broadcast into a broadcast instruction including a partition field and a text field, according to the data interface specifications provided by the digital broadcast system. A broadcast instruction sending unit is used to send the broadcast instruction to the digital broadcasting system through the communication connection; wherein the token verification mechanism on the digital broadcasting system side is configured to be disabled to eliminate authentication barriers for interface calls.
[0065] Optionally, the broadcast task code is a segmented numerical code, including a partition identifier field and a content identifier field; the broadcast task code is written into the specified forwarding variable by the automatic control system as a conditional action output value and then sent through the MODBUS TCP protocol.
[0066] Optionally, in the partition-to-speaker mapping relationship, each broadcast partition corresponds to one or more speaker terminals within the same operating area, and different broadcast partitions correspond to different operating areas; the partition mapping query module is specifically used to query the partition-to-speaker mapping relationship using the target partition identifier as the key value to obtain the corresponding speaker terminal device address list.
[0067] Optional, the broadcast command sending module includes: The text-to-speech conversion unit is used to call the text-to-speech engine built into the operating system of the server where the digital broadcasting system is located to synthesize the text content to be broadcast into a digital audio stream.
[0068] Optionally, in the identifier-text mapping relationship, different broadcast content identifiers correspond to different predefined text broadcast contents, and the predefined text broadcast contents include oncoming vehicle warning text or overhead contact line status notification text; the text mapping query module is specifically used to query the identifier-text mapping relationship with the broadcast content identifier as the key value to obtain the corresponding predefined text broadcast contents.
[0069] The automatic zone broadcasting device further illustrates that it can also execute the automatic zone broadcasting method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method.
[0070] According to embodiments of the present invention, the present invention also provides an electronic device, a readable storage medium, and a computer program product.
[0071] Figure 4 A schematic diagram of an electronic device 40 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0072] like Figure 4As shown, the electronic device 40 includes at least one processor 41 and a memory, such as a read-only memory 42 or a random access memory 43, communicatively connected to the at least one processor 41. The memory stores computer programs executable by the at least one processor. The processor 41 can perform various appropriate actions and processes based on the computer program stored in the read-only memory 42 or loaded from storage unit 48 into the random access memory 43. The random access memory 43 may also store various programs and data required for the operation of the electronic device 40. The processor 41, read-only memory 42, and random access memory 43 are interconnected via a bus 44. An input / output interface 45 is also connected to the bus 44.
[0073] Multiple components in electronic device 40 are connected to input / output interface 45, including: input unit 46, such as keyboard, mouse, etc.; output unit 47, such as various types of monitors, speakers, etc.; storage unit 48, such as disk, optical disk, etc.; and communication unit 49, such as network card, modem, wireless transceiver, etc. Communication unit 49 allows electronic device 40 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0074] Processor 41 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 41 include, but are not limited to, central processing units, graphics processing units, various special-purpose artificial intelligence computing chips, various processors running machine learning model algorithms, digital signal processors, and any suitable processor, controller, microcontroller, etc. Processor 41 performs the various methods and processes described above, such as the automatic partitioning broadcast method.
[0075] In some embodiments, the automatic partition broadcasting method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 48. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 40 via read-only memory 42 and / or communication unit 49. When the computer program is loaded into random access memory 43 and executed by processor 41, one or more steps of the automatic partition broadcasting method described above may be performed. Alternatively, in other embodiments, processor 41 may be configured to perform the automatic partition broadcasting method by any other suitable means (e.g., by means of firmware).
[0076] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays, application-specific integrated circuits (ASICs), application-specific standard products (ASICs), systems-on-a-chip (SoCs), payload programmable logic devices, computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0077] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0078] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory, read-only memory, erasable programmable read-only memory, optical fibers, portable compact disk read-only memory, optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0079] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a cathode ray tube, liquid crystal display, or monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0080] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0081] A computing system can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product within the cloud computing service system to address the shortcomings of traditional physical hosts and virtual private servers, such as high management difficulty and weak business scalability.
[0082] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0083] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. An automatic zone broadcasting method, characterized in that, The method includes: Receive broadcast task codes sent by the automatic control system; the broadcast task codes are generated by the automatic control system according to preset coding rules when it detects an approaching vehicle operation signal or a power outage operation signal of the overhead contact line. Based on the broadcast task code, determine the target partition identifier and the broadcast content identifier; Based on the target partition identifier, query the preset partition and sound column mapping relationship to determine the set of sound column terminals corresponding to the target partition; The text content to be broadcast is determined based on the broadcast content identifier and the preset identifier-text mapping relationship; The target partition identifier and the text content to be broadcast are sent to the digital broadcasting system. The digital broadcasting system synthesizes the text content to be broadcast into a digital audio stream, and sends the digital audio stream to the set of sound column terminals for broadcasting according to the target partition identifier.
2. The method according to claim 1, characterized in that, Sending the target partition identifier and the text content to be broadcast to the digital broadcasting system includes: Read the preset access parameters of the digital broadcasting system, which include the IP address, service port, login username and password of the digital broadcasting system; Establish a communication connection with the digital broadcasting system based on the access parameters; According to the data interface specifications provided by the digital broadcasting system, the target partition identifier and the text content to be broadcast are encapsulated into a broadcast instruction that includes a partition field and a text field; The broadcast command is sent to the digital broadcasting system via the communication connection. The token verification mechanism on the digital broadcasting system side is configured to be disabled to eliminate authentication barriers for interface calls.
3. The method according to claim 1, characterized in that, The broadcast task code is a segmented numerical code, including a partition identifier field and a content identifier field; the broadcast task code is written into the specified forwarding variable by the automatic control system as a conditional action output value and then sent through the MODBUS TCP protocol.
4. The method according to claim 1, characterized in that, In the mapping relationship between the broadcast partitions and the sound columns, each broadcast partition corresponds to one or more sound column terminals within the same operating area, and different broadcast partitions correspond to different operating areas; determining the set of sound column terminals corresponding to the target partition includes: Using the target partition identifier as the key, query the mapping relationship between the partition and the sound column to obtain the corresponding sound column terminal device address list.
5. The method according to claim 1, characterized in that, The digital broadcasting system synthesizes the text content to be broadcast into a digital audio stream, including: The digital broadcasting system calls the text-to-speech engine built into the operating system of the server on which the digital broadcasting system resides to synthesize the text content to be broadcast into a digital audio stream.
6. The method according to claim 1, characterized in that, In the mapping relationship between the identifier and the text, different broadcast content identifiers correspond to different predefined text broadcast content, which includes vehicle approach warning text or overhead contact line status notification text. The determination of the text content to be broadcast includes: The corresponding predefined text broadcast content is obtained by querying the mapping relationship between the broadcast content identifier and the text using the broadcast content identifier as the key value.
7. An automatic zoned broadcasting device, characterized in that, The device includes: The encoding receiving module is used to receive the broadcast task code sent by the automatic control system; the broadcast task code is generated by the automatic control system according to the preset encoding rules when it detects that a work signal of approaching vehicle or a work signal of power outage of contact wire is triggered. The encoding parsing module is used to determine the target partition identifier and the broadcast content identifier based on the broadcast task encoding; The partition mapping query module is used to query the preset partition-to-sound column mapping relationship based on the target partition identifier and determine the set of sound column terminals corresponding to the target partition. The text mapping query module is used to determine the text content to be broadcast based on the broadcast content identifier and the preset identifier-text mapping relationship; The broadcast instruction sending module is used to send the target partition identifier and the text content to be broadcast to the digital broadcasting system, and the digital broadcasting system synthesizes the text content to be broadcast into a digital audio stream, and sends the digital audio stream to the set of sound column terminals for broadcasting according to the target partition identifier.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the automatic partition broadcasting method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the automatic partitioned broadcast method according to any one of claims 1-6.
10. A computer program product comprising a computer program that, when executed by a processor, implements the automatic partitioned broadcasting method according to any one of claims 1-6.