WO2024104183A1 - Device linkage real-time broadcast method and apparatus, and storage medium and computer device - Google Patents

Device linkage real-time broadcast method and apparatus, and storage medium and computer device Download PDF

Info

Publication number
WO2024104183A1
WO2024104183A1 PCT/CN2023/129270 CN2023129270W WO2024104183A1 WO 2024104183 A1 WO2024104183 A1 WO 2024104183A1 CN 2023129270 W CN2023129270 W CN 2023129270W WO 2024104183 A1 WO2024104183 A1 WO 2024104183A1
Authority
WO
WIPO (PCT)
Prior art keywords
broadcast
real
client
devices
time
Prior art date
Application number
PCT/CN2023/129270
Other languages
French (fr)
Chinese (zh)
Inventor
张宏山
Original Assignee
天翼数字生活科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 天翼数字生活科技有限公司 filed Critical 天翼数字生活科技有限公司
Publication of WO2024104183A1 publication Critical patent/WO2024104183A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H20/00Arrangements for broadcast or for distribution combined with broadcast
    • H04H20/38Arrangements for distribution where lower stations, e.g. receivers, interact with the broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H20/00Arrangements for broadcast or for distribution combined with broadcast
    • H04H20/53Arrangements specially adapted for specific applications, e.g. for traffic information or for mobile receivers
    • H04H20/61Arrangements specially adapted for specific applications, e.g. for traffic information or for mobile receivers for local area broadcast, e.g. instore broadcast

Definitions

  • the present application relates to the field of emerging information technology, and in particular to a method, device, storage medium, and computer equipment for real-time broadcasting of device linkage.
  • Broadcasting refers to a news dissemination tool that transmits sound through radio waves or wires. Programs transmitted through radio waves are called wireless broadcasting, and programs transmitted through wires are called wired broadcasting. With the development trend of rural modernization, broadcasting is still widely used in villages or grassroots units due to its practicality, economy and convenience. Its advantages are wide coverage, rapid dissemination, diverse functions and strong appeal.
  • Radio meets the needs of rural village committees or grassroots units for timely dissemination of information such as epidemic prevention and control, party building politicians, and natural disaster notifications.
  • existing radio technologies cannot accurately broadcast information according to actual demand scenarios and cannot replay the content of the broadcast after listening to the radio, thus failing to ensure accurate delivery of notifications.
  • the purpose of the present application is to solve at least one of the above-mentioned technical defects, especially the technical defects in the prior art that broadcasting cannot accurately broadcast to the broadcasting group according to the actual demand scenario, and the broadcast content cannot be played back after the broadcast is finished, thereby failing to ensure the accurate delivery of notifications.
  • the present application provides a device linkage real-time broadcast method, the method comprising:
  • a list of devices to be broadcast and assembly parameters corresponding to the list of devices to be broadcast are obtained, wherein the list of devices to be broadcast includes a plurality of broadcast devices;
  • a real-time transmission channel is established between the client and each broadcasting device
  • the audio data is stored.
  • obtaining a list of devices to be broadcast and assembly parameters corresponding to the list of devices to be broadcast includes:
  • the using the service platform to perform data analysis on the real-time broadcast request to determine a list of devices to be broadcast includes:
  • the idle broadcasting devices are screened out from the initial device list to form a list of devices to be broadcasted.
  • establishing a real-time transmission channel between the client and each broadcasting device based on the assembly parameter includes:
  • a real-time transmission channel between the client and each of the broadcasting devices is established using the voice gateway based on the session ID.
  • storing the audio data when receiving the end broadcast instruction initiated by the client, storing the audio data includes:
  • the audio data is uploaded to a resource pool for storage.
  • the method further comprises:
  • the voice gateway After receiving the end broadcast instruction initiated by the client to the voice gateway, obtaining current broadcast data and reporting the current broadcast data to the service platform, the current broadcast data including the current broadcast status of each device, broadcast details and storage information of the resource pool;
  • the current broadcast data is recorded using the service platform.
  • the present application also provides a device linkage real-time broadcasting device, comprising:
  • a data acquisition module configured to obtain a list of devices to be broadcast and assembly parameters corresponding to the list of devices to be broadcast in response to a real-time broadcast request initiated by a client, wherein the list of devices to be broadcast includes a plurality of broadcast devices;
  • a transmission channel establishment module used to establish a real-time transmission channel between the client and each broadcasting device based on the assembly parameters
  • a real-time transmission module used to receive audio data inputted by the user in real time on the client, and transmit the audio data to each of the broadcasting devices in real time by using the real-time transmission channel;
  • the data updating module is used to store the audio data when receiving the end broadcast instruction initiated by the client.
  • the data acquisition module includes:
  • the data analysis submodule is used to use the business platform to perform data analysis on the real-time broadcast request initiated by the client and determine the list of devices to be broadcasted;
  • a connection information acquisition submodule used to obtain voice gateway connection information and session ID from the voice gateway management service according to the list of devices to be broadcasted;
  • An assembly parameter construction module is used to construct assembly parameters corresponding to the list of devices to be broadcast based on the voice gateway connection information and the session ID.
  • the present application also provides a storage medium, in which computer-readable instructions are stored.
  • the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the device linkage real-time broadcast method as described in any one of claims 1 to 6.
  • the present application also provides a computer device, comprising: one or more processors, and a memory;
  • the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the device linkage real-time broadcast method as described in any one of claims 1 to 6 are performed.
  • the device linkage real-time broadcast method, device, storage medium, and computer device use platform services to realize one-to-many real-time broadcasts between a user's client and a device.
  • the platform includes a business platform, a signaling service, a voice network management service, and a voice gateway.
  • the business platform can be used to respond to a real-time broadcast request initiated by a client, and a list of devices to be broadcast constructed by multiple broadcast devices to be broadcast can be obtained.
  • the assembly parameters corresponding to the list of devices to be broadcast are obtained from the voice network management service, and then the signaling service is used to send the assembly parameters to each broadcast device in the list of devices to be broadcast.
  • a real-time transmission channel is established between the client and each broadcast device using a voice gateway, so that the broadcast group can be subdivided according to the actual demand scenario, and the device that needs to be broadcast can be selected for shouting, so as to realize intelligent distribution and accurate home delivery.
  • the application can broadcast the audio data to each broadcast device in real time through a real-time transmission channel, obtain the current broadcast details, and store the audio data when receiving the end broadcast instruction initiated by the client, and record the current broadcast details, so that the user can view the audio data content and broadcast details at any time, thereby ensuring the accurate transmission of the notification.
  • FIG1 is a schematic diagram of a flow chart of a device linkage real-time broadcast method provided in an embodiment of the present application
  • FIG2 is a schematic diagram of the overall architecture of a device linkage real-time broadcast method provided in an embodiment of the present application
  • FIG3 is a schematic diagram of a business process of a device linkage real-time broadcast method provided in an embodiment of the present application
  • FIG4 is a schematic diagram of the structure of a device linkage real-time broadcasting apparatus provided in an embodiment of the present application.
  • FIG5 is a schematic diagram of the internal structure of a computer device provided in an embodiment of the present application.
  • the purpose of this application is to solve the technical problems in the prior art that the broadcast cannot accurately broadcast according to the actual demand scenario and the broadcast group cannot be subdivided, and the broadcast content cannot be played back after the broadcast is finished, thereby failing to ensure the accurate transmission of the notification, and the following technical solutions are proposed:
  • FIG. 1 is a flow chart of a device linkage real-time broadcast method provided in an embodiment of the present application; the present application provides a device linkage real-time broadcast method, which specifically includes the following:
  • the platform service receives the real-time broadcast request initiated by the client, it obtains the list of devices to be broadcast carried by the real-time broadcast request and the assembly parameters corresponding to the list of devices to be broadcast.
  • the platform service can include four modules, namely business platform, signaling service, voice gateway management service and voice gateway, which are used for data interaction between the client and the broadcast device and to establish a real-time transmission channel.
  • the list of devices to be broadcast includes multiple broadcast devices.
  • the broadcast device subdivides the broadcast group for users according to actual demand scenarios, and uses the client to select the device to be broadcast, thereby realizing intelligent distribution and precise household distribution.
  • Figure 2 is a schematic diagram of the overall architecture of a device linkage real-time broadcast method provided in an embodiment of the present application; as can be seen from Figure 2, the present application uses the client as the user entrance to receive data information input by the customer, and then uses the middleware to interact with the data between the client and the device on the platform service, thereby establishing a one-to-many real-time transmission channel between the client and the device, so that the sound emitted by the user on the client is broadcast in real time on the device side or the external sound column side, wherein the middleware for processing interactive data includes multiple processing modules, such as MySQL, Codis, Cassandra, RocketMQ, K8S, etc., where the client can include PC, Android, IOS and other terminals that can be used to receive and transmit data information, and the device can adopt a combination of a camera and an external sound column, and adopt the real-time broadcast function of the camera to broadcast the content broadcast by the user on the client in real time on the device side or the external
  • the platform service can perform data analysis on the real-time broadcast request, obtain the information carried by the real-time broadcast request, thereby determining the list of devices to be broadcasted, and obtaining the assembly parameters corresponding to the list of devices to be broadcasted.
  • the assembly parameters include the voice gateway connection information and session ID obtained from the voice gateway management service.
  • a one-to-many real-time transmission channel can be established between the client and each broadcasting device according to the assembly parameters.
  • the signaling service can be used to send the assembly parameters to each broadcasting device in the broadcasting device list.
  • the client and each broadcasting device After the client and each broadcasting device have received the assembly parameters, they can connect to the voice gateway management service according to the assembly parameters.
  • the voice gateway management service then confirms the consistency of the assembly parameter information carried by the client and each broadcasting device, and establishes a real-time transmission channel between the client and each broadcasting device.
  • a one-to-many real-time transmission channel is directly established between the client and each broadcasting device. If the assembly parameter information carried by the broadcasting device and the client is inconsistent, the broadcasting device with inconsistent information is first eliminated and then a one-to-many real-time transmission channel is established.
  • S130 receiving audio data inputted by the user in real time at the client, and transmitting the audio data to each broadcasting device in real time by using a real-time transmission channel.
  • step S120 after the real-time transmission channel is established through step S120, the user can transmit the notification content to be broadcast to the client in real time in the form of audio data.
  • the client receives the audio data input by the user, it can synchronously transmit the audio data to each broadcasting device through real-time transmission for real-time dissemination.
  • the audio data here refers to a series of continuous or discontinuous audio data input by the user on the client.
  • the acquisition of audio data can be the real-time transmission of the user's speech on the client, or it can be pre-stored recording data, and there is no limitation here.
  • the platform service after the platform service establishes a real-time transmission channel between the client and each broadcasting device, it can return confirmation broadcast information to the user so that the user can input audio data on the client for real-time broadcasting.
  • the audio data in order to further improve the transmission synchronization rate, the audio data can be segmented. The amount of audio data after segmentation is smaller, and the synchronization rate of client audio data input and device audio data output can be achieved, thereby realizing the effect of real-time transmission of device linkage.
  • step S130 after the audio data is obtained in step S130, it can be permanently stored when the user issues an end broadcast instruction after the notification broadcast is over, so that the user can replay the broadcast content and confirm the notification information at any time.
  • the user can use the client to initiate an end-broadcast request to the voice gateway.
  • the voice gateway can then respond to the end-broadcast request, disconnect the real-time transmission channel between the client and each broadcast device, and simultaneously obtain the broadcast detail records of each broadcast device, and permanently store the audio data and broadcast detail records of the broadcast content, so that the user can review and replay the broadcast content at any time.
  • the platform service is used to realize one-to-many real-time broadcasting between the user's client and the device.
  • the platform reading includes a business platform, a signaling service, a voice network management service, and a voice gateway.
  • the business platform can be used to respond to the real-time broadcast request initiated by the client, and a list of devices to be broadcasted constructed by multiple broadcasting devices to be broadcasted can be obtained, and the assembly parameters corresponding to the list of devices to be broadcasted are obtained from the voice network management service, and then the signaling service is used to send the assembly parameters to each broadcasting device in the list of devices to be broadcasted.
  • a real-time transmission channel is established between the client and each broadcasting device using the voice gateway, so as to subdivide the broadcasting group according to the actual demand scenario, select the device to be broadcasted for shouting, and realize intelligent distribution and accurate home delivery.
  • the present application can broadcast the audio data to each broadcasting device in real time through the real-time transmission channel, and obtain the current broadcast details, and when receiving the end broadcast instruction initiated by the client, the audio data is stored, and the current broadcast details are recorded, so that the user can view the audio data content and the broadcast details at any time, thereby ensuring the accurate transmission of the notification.
  • obtaining the list of devices to be broadcast and the assembly parameters corresponding to the list of devices to be broadcast in step S110 may include:
  • S111 Utilize the service platform to perform data analysis on the real-time broadcast request initiated by the client, and determine a list of devices to be broadcasted.
  • S112 According to the list of devices to be broadcasted, obtain voice gateway connection information and session ID from the voice gateway management service.
  • S113 Based on the voice gateway connection information and the session ID, construct assembly parameters corresponding to the list of devices to be broadcasted.
  • the service platform can analyze the data carried by the real-time broadcast request to determine the list of devices to be broadcasted. Then, the service platform can obtain the voice gateway connection information and the voice gateway management service based on the list of devices to be broadcasted. Session ID, and construct the voice gateway connection information and session ID into the assembly parameters corresponding to the list to be broadcast.
  • the voice gateway connection information here is the idle and available voice gateway connection information in the voice gateway management service, which serves as the basis for judging whether the client and the broadcasting device are connected to the voice gateway management service.
  • the session ID is synchronously assigned to the business platform by the voice gateway management service when the business platform obtains the voice gateway connection information from the voice gateway management service.
  • the business platform can initiate a request to obtain the voice gateway connection information to the voice gateway management service.
  • the voice gateway management service queries all the voice gateway connection information, filters out the available voice gateway connection information and randomly returns one of them and the assigned session ID to the business platform.
  • the session ID is unique to avoid data confusion caused by duplicate session IDs.
  • the business platform receives the voice gateway connection information and session ID returned by the voice gateway management service, it constructs the assembly parameters.
  • step S111 using the service platform to perform data analysis on the real-time broadcast request to determine a list of devices to be broadcasted may include:
  • S1111 Utilize the service platform to perform data analysis on the real-time broadcast request initiated by the client to determine an initial device list.
  • S1112 Filter out idle broadcast devices from the initial device list to form a list of devices to be broadcasted.
  • the business platform can be used to analyze the data carried by the real-time broadcast request to determine the initial device list, and then filter the broadcast devices included in the initial device list, eliminate the broadcast devices that are already broadcasting, obtain the broadcast devices that are in an idle state, and form a list of devices to be broadcast.
  • the present application can simultaneously carry out multiple real-time broadcasts in the same time period, and broadcast different notification information to different broadcasting devices respectively. For example, there are two real-time broadcasts in the same time period, and their respective notifications need to be broadcast to their respective corresponding broadcasting devices. If there is overlap between the broadcasting devices, the initial device list corresponding to the client that sends the real-time broadcast request more slowly will remove the broadcasting device that is already broadcasting.
  • step S120 establishing a real-time transmission channel between the client and each broadcasting device based on the assembly parameters may include:
  • S121 Send the assembly parameters and the list of devices to be broadcasted to a signaling service, so that the signaling service sends the assembly parameters to each broadcasting device in the list of devices to be broadcasted.
  • S122 Based on the voice gateway connection information included in the assembly parameters, trigger each of the broadcasting devices to connect to the voice gateway.
  • the assembly parameters can be returned to the client so that the client can connect to the voice gateway according to the voice gateway connection information.
  • the assembly parameters and the list of devices to be broadcast are sent to the signaling service.
  • the signaling service After receiving the assembly parameters, the signaling service sends them to each broadcasting device in the list of devices to be broadcast, so that each broadcasting device can connect to the voice gateway according to the voice gateway connection information in the assembly parameters.
  • a real-time transmission channel is established between the client and each of the broadcasting devices according to the session ID.
  • the client can initiate a connection request to the business platform.
  • the business platform then connects to the corresponding voice gateway service based on the voice gateway connection information carried by the client.
  • each broadcasting device receives the assembly parameters sent by the signaling service, it also connects to the corresponding voice gateway service in the voice gateway based on the voice gateway connection information contained in the assembly parameters.
  • the voice gateway service establishes an audio data transmission channel for the client and multiple devices based on the session ID carried by the client and each broadcasting device, and performs real-time transmission of audio data, thereby achieving the function of real-time broadcast of device linkage.
  • TCP Transmission Control Protocol
  • TCP is a connection-oriented, reliable, byte stream-based transport layer communication protocol. It is a transmission protocol specially designed to provide reliable end-to-end byte streams on unreliable Internet networks, and is adapted to support the layered protocol hierarchy of multi-network applications.
  • Other ways to achieve the connection with the Vietnam gateway service in this application can all be used as the preferred solution of this application, and are not limited here.
  • storing the audio data may include:
  • the voice gateway upon receiving the end broadcast instruction initiated by the client to the voice gateway, the voice gateway is used to obtain the upload address from the service platform.
  • the client when the user confirms the end of the real-time broadcast, the client can initiate an end broadcast instruction to the voice gateway.
  • the voice gateway responds to the end broadcast instruction and obtains the upload address from the business platform to upload the audio data of the real-time broadcast to the resource pool.
  • the client initiates an end broadcast instruction to the voice gateway and reports the end broadcast status to the business platform.
  • the voice gateway can initiate a data upload request to the business platform.
  • the business platform responds to the request and filters out the free address in the resource pool and returns it to the business platform so that the business platform can return the address to the voice gateway for uploading the voice data in this real-time broadcast.
  • the method may further include:
  • S150 After receiving the end broadcast instruction initiated by the client to the voice gateway, obtain current broadcast data, and report the current broadcast data to the service platform.
  • the voice gateway receives the end broadcast instruction initiated by the client, obtains the current broadcast data and reports it to the business platform.
  • the business platform can then record the current broadcast data so that the user can later view the details of the historical real-time broadcast.
  • the current broadcast data here includes the current broadcast status, broadcast details and storage information of the resource pool of each broadcast device, and the current broadcast status of each broadcast device can be specifically manifested as recording file generation, broadcast failure, broadcast success, the broadcast details can be broadcast volume, broadcast duration, etc., the storage information of the resource pool can be the upload address corresponding to the audio data of the broadcast and occupied resources, etc.
  • the current broadcast data records various detailed information of the equipment and resource pool in the real-time broadcast, and is not limited here.
  • FIG. 3 is a business process diagram of a device linkage real-time broadcast provided by the present application.
  • the user after the user selects the broadcast device on the client to form a broadcast device list, the user initiates a real-time broadcast request to the business platform.
  • the business platform can obtain the available voice gateway from the voice gateway management service.
  • the voice gateway management service obtains the available voice gateway information through query, it constructs the available voice gateway information and the assigned session ID into assembly parameters and returns them to the business platform.
  • the business platform sends the assembly parameters to the signaling service, it can remove the devices that are already broadcasting in the device list, and then send the assembly parameters to the client and each device in the device list so that the client and each device can connect to the voice gateway.
  • the voice The gateway can establish a real-time transmission channel between the client and the broadcasting device, which is used by the client to transmit audio data to the broadcasting device.
  • the client finishes the broadcast it sends an end broadcast command to the voice gateway.
  • the voice gateway responds to the request and disconnects the real-time transmission channel.
  • the following is a description of a device linkage real-time broadcast apparatus provided in an embodiment of the present application.
  • the device linkage real-time broadcast apparatus described below and the device linkage real-time broadcast method described above can be referenced to each other.
  • FIG. 4 is a schematic diagram of the structure of a device linkage real-time broadcast device provided in an embodiment of the present application; the present application also provides a device linkage real-time broadcast device, including a data acquisition module 210, a transmission channel establishment module 220, a real-time transmission module 230, and a data update module 240, which specifically include the following:
  • the data acquisition module 210 is used to obtain a list of devices to be broadcast and assembly parameters corresponding to the list of devices to be broadcast in response to a real-time broadcast request initiated by the client, wherein the list of devices to be broadcast includes multiple broadcast devices.
  • the transmission channel establishing module 220 is used to establish a real-time transmission channel between the client and each broadcasting device based on the assembly parameters.
  • the real-time transmission module 230 is used to receive the audio data input by the user in real time on the client, and transmit the audio data to each of the broadcasting devices in real time by using the real-time transmission channel.
  • the data updating module 240 is used to store the audio data when receiving the end broadcast instruction initiated by the client.
  • the platform service is used to realize one-to-many real-time broadcast between the client and the device.
  • the platform reading includes a business platform, a signaling service, a voice network management service, and a voice gateway.
  • the business platform can be used to respond to the real-time broadcast request initiated by the client, and a list of devices to be broadcast constructed by multiple broadcast devices to be broadcast can be obtained, and the assembly parameters corresponding to the list of devices to be broadcast are obtained from the voice network management service.
  • the signaling service is used to send the assembly parameters to each broadcast device in the list of devices to be broadcast.
  • a real-time transmission channel is established between the client and each broadcast device using the voice gateway, so that according to the actual demand scenario, the broadcast group can be subdivided, and the device to be broadcast can be selected for shouting, so as to realize intelligent distribution and accurate home delivery.
  • the present application can broadcast the audio data to each broadcast device in real time through the real-time transmission channel, obtain the current broadcast details, and store the audio data when receiving the end broadcast instruction initiated by the client, and record the current broadcast details, so that the user can view the audio data content and the broadcast details at any time, thereby ensuring the accurate transmission of the notification.
  • the data acquisition module 210 may include:
  • the data analysis submodule is used to use the business platform to perform data analysis on the real-time broadcast request initiated by the client and determine the list of devices to be broadcast.
  • the connection information acquisition submodule is used to obtain the voice gateway connection information and session ID from the voice gateway management service according to the list of devices to be broadcast.
  • the assembly parameter construction submodule is used to construct the assembly parameters corresponding to the list of devices to be broadcast based on the voice gateway connection information and the session ID.
  • the data analysis submodule may include:
  • the data analysis unit is used to use the service platform to perform data analysis on the real-time broadcast request initiated by the client and determine the initial device list.
  • the data screening unit is used to screen out idle broadcasting devices from the initial device list to form a list of devices to be broadcasted.
  • the transmission channel establishing module 220 may include:
  • the data sending submodule is used to send the assembly parameters and the list of devices to be broadcasted to the signaling service, so that the signaling service sends the assembly parameters to each broadcasting device in the list of devices to be broadcasted.
  • the device connection submodule is used to trigger each of the broadcasting devices to connect to the voice gateway based on the voice gateway connection information contained in the assembly parameters.
  • the client connection submodule is used to return the assembly parameters to the client so that the client can connect to the voice gateway according to the voice gateway connection information.
  • the transmission channel establishment submodule is used to establish a real-time transmission channel between the client and each of the broadcasting devices using the voice gateway based on the session ID after the client and each of the broadcasting devices are connected to the voice gateway.
  • the data updating module 240 may include:
  • the upload address acquisition submodule is used to obtain the upload address from the service platform using the voice gateway when receiving the end broadcast instruction initiated by the client to the voice gateway;
  • the resource uploading submodule is used to upload the audio data to a resource pool based on the upload address.
  • the device may further include:
  • a broadcast data acquisition module used to obtain current broadcast data after receiving the end broadcast instruction initiated by the client to the voice gateway, and report the current broadcast data to the service platform, wherein the current broadcast data includes the current broadcast status of each device, broadcast details and storage information of the resource pool;
  • the broadcast data updating module is used to record the current broadcast data using the service platform.
  • the present application also provides a storage medium, which stores computer-readable instructions.
  • the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the device linkage real-time broadcast method as described in any of the above embodiments.
  • the present application also provides a computer device, in which computer-readable instructions are stored.
  • the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the device linkage real-time broadcast method as described in any of the above embodiments.
  • FIG. 5 is a schematic diagram of the internal structure of a computer device provided in an embodiment of the present application, and the computer device 300 can be provided as a server.
  • the computer device 300 includes a processing component 302, which further includes one or more processors, and a memory resource represented by a memory 301 for storing instructions that can be executed by the processing component 302, such as an application.
  • the application stored in the memory 301 may include one or more modules, each of which corresponds to a set of instructions.
  • the processing component 302 is configured to execute instructions to execute the device linkage real-time broadcast method of any of the above embodiments.
  • the computer device 300 may also include a power supply component 303 configured to perform power management of the computer device 300, a wired or wireless network interface 304 configured to connect the computer device 300 to a network, and an input/output (I/O) interface 305.
  • the computer device 300 may operate based on an operating system stored in the memory 301, such as Windows Server TM, Mac OS XTM, Unix TM, Linux TM, Free BSDTM, or the like.
  • FIG. 5 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
  • the specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present application provides a device linkage real-time broadcast method and apparatus, and a storage medium and a computer device. A service platform is used to respond to a real-time broadcast request initiated by a client, so as to obtain a list of devices waiting for broadcasting that is formed by a plurality of broadcast devices, and acquire from a voice gateway management service an assembly parameter corresponding to said list; then, a signaling service is used to issue the assembly parameter to each broadcast device in said list; on the basis of the assembly parameter, a voice gateway is used to establish a real-time transmission channel between the client and each broadcast device, so that the device is called, thereby realizing intelligent distribution and accurate delivery; and audio data that is input by a user at the client can be then broadcasted in real time to each broadcast device by means of the real-time transmission channel, and the audio data is stored when a broadcast termination instruction initiated by the client has been received, so that the user plays back the content of the audio data at any time, thereby ensuring the accurate conveying of a notification.

Description

设备联动实时播报方法、装置、存储介质、计算机设备Device linkage real-time broadcast method, device, storage medium, and computer equipment 技术领域Technical Field
本申请涉及新兴信息技术领域,尤其涉及一种设备联动实时播报方法、装置、存储介质、计算机设备。The present application relates to the field of emerging information technology, and in particular to a method, device, storage medium, and computer equipment for real-time broadcasting of device linkage.
背景技术Background technique
广播是指通过无线电波或导线传送声音的新闻传播工具,通过无线电波传送节目的称无线广播,通过导线传送节目的称有线广播。随着农村现代化发展趋势,广播仍以它的实用性、经济性、便捷性在乡村或基层单位被广泛应用,它的优势在于对象广泛,传播迅速,功能多样,感染力强。Broadcasting refers to a news dissemination tool that transmits sound through radio waves or wires. Programs transmitted through radio waves are called wireless broadcasting, and programs transmitted through wires are called wired broadcasting. With the development trend of rural modernization, broadcasting is still widely used in villages or grassroots units due to its practicality, economy and convenience. Its advantages are wide coverage, rapid dissemination, diverse functions and strong appeal.
广播满足了农村村委或基层单位对疫情防控、党建宣传、自然灾害通知等信息及时传播的需求。然而,在现有技术广播无法按照实际需求场景,细分广播群体精准播报,且广播收听结束后无法对播报内容进行回放,从而无法保证通知准确传达。Radio meets the needs of rural village committees or grassroots units for timely dissemination of information such as epidemic prevention and control, party building propaganda, and natural disaster notifications. However, existing radio technologies cannot accurately broadcast information according to actual demand scenarios and cannot replay the content of the broadcast after listening to the radio, thus failing to ensure accurate delivery of notifications.
发明内容Summary of the invention
本申请的目的旨在至少能解决上述的技术缺陷之一,特别是现有技术中广播无法按照实际需求场景,细分广播群体精准播报,且广播收听结束后无法对播报内容进行回放,从而无法保证通知准确传达的技术缺陷。The purpose of the present application is to solve at least one of the above-mentioned technical defects, especially the technical defects in the prior art that broadcasting cannot accurately broadcast to the broadcasting group according to the actual demand scenario, and the broadcast content cannot be played back after the broadcast is finished, thereby failing to ensure the accurate delivery of notifications.
本申请提供了一种设备联动实时播报方法,所述方法包括:The present application provides a device linkage real-time broadcast method, the method comprising:
响应于客户端发起的实时播报请求,获取待播报设备列表以及与待播报设备列表对应的组装参数,所述待播报设备列表包括多个播报设备;In response to a real-time broadcast request initiated by a client, a list of devices to be broadcast and assembly parameters corresponding to the list of devices to be broadcast are obtained, wherein the list of devices to be broadcast includes a plurality of broadcast devices;
基于所述组装参数,建立所述客户端与各个播报设备之间的实时传输通道;Based on the assembly parameters, a real-time transmission channel is established between the client and each broadcasting device;
接收用户在所述客户端实时输入的音频数据,利用所述实时传输通道将所述音频数据实时传播至每个所述播报设备;Receiving audio data inputted by the user in real time on the client, and transmitting the audio data to each of the broadcasting devices in real time by using the real-time transmission channel;
在接收到所述客户端发起的结束播报指令时,对所述音频数据进行存储。When receiving the end broadcast instruction initiated by the client, the audio data is stored.
可选地,所述响应于客户端发起的实时播报请求,获取待播报设备列表以及与待播报设备列表对应的组装参数,包括:Optionally, in response to the real-time broadcast request initiated by the client, obtaining a list of devices to be broadcast and assembly parameters corresponding to the list of devices to be broadcast, includes:
利用业务平台对客户端发起的实时播报请求进行数据分析,确定待播报设备列表; Use the business platform to perform data analysis on the real-time broadcast requests initiated by the client and determine the list of devices to be broadcasted;
根据所述待播报设备列表,向语音网关管理服务获取语音网关连接信息以及会话ID;According to the list of devices to be broadcasted, obtain voice gateway connection information and session ID from the voice gateway management service;
基于所述语音网关连接信息和所述会话ID,构建所述待播报设备列表对应的组装参数。Based on the voice gateway connection information and the session ID, assembly parameters corresponding to the list of devices to be broadcast are constructed.
可选地,所述利用业务平台对所述实时播报请求进行数据分析,确定待播报设备列表,包括:Optionally, the using the service platform to perform data analysis on the real-time broadcast request to determine a list of devices to be broadcast includes:
利用业务平台对客户端发起的实时播报请求进行数据分析,确定初始设备列表;Use the business platform to perform data analysis on the real-time broadcast request initiated by the client and determine the initial device list;
从所述初始设备列表中筛选出处于空闲状态的播报设备,形成待播报设备列表。The idle broadcasting devices are screened out from the initial device list to form a list of devices to be broadcasted.
可选地,所述基于所述组装参数,建立所述客户端与各个播报设备之间的实时传输通道,包括:Optionally, establishing a real-time transmission channel between the client and each broadcasting device based on the assembly parameter includes:
将所述组装参数和所述待播报设备列表下发至信令服务,以便所述信令服务将所述组装参数下发给所述待播报设备列表中的每个播报设备;Sending the assembly parameters and the list of devices to be broadcasted to a signaling service, so that the signaling service sends the assembly parameters to each broadcasting device in the list of devices to be broadcasted;
基于所述组装参数包含的语音网关连接信息,触发每个所述播报设备与语音网关进行连接;Based on the voice gateway connection information included in the assembly parameters, trigger each of the broadcasting devices to connect to the voice gateway;
将所述组装参数返回给所述客户端,以使所述客户端根据所述语音网关连接信息与语音网关进行连接;Returning the assembly parameters to the client, so that the client connects to the voice gateway according to the voice gateway connection information;
当所述客户端以及每个所述播报设备与所述语音网关进行连接后,基于所述会话ID,利用所述语音网关建立所述客户端与各个所述播报设备之间的实时传输通道。After the client and each of the broadcasting devices are connected to the voice gateway, a real-time transmission channel between the client and each of the broadcasting devices is established using the voice gateway based on the session ID.
可选地,所述在接收到所述客户端发起的结束播报指令时,对所述音频数据进行存储,包括:Optionally, when receiving the end broadcast instruction initiated by the client, storing the audio data includes:
接收到所述客户端向语音网关发起的结束播报指令时,利用所述语音网关向所述业务平台获取上传地址;When receiving the end broadcast instruction initiated by the client to the voice gateway, using the voice gateway to obtain the upload address from the service platform;
基于所述上传地址,将所述音频数据上传至资源池进行存储。Based on the upload address, the audio data is uploaded to a resource pool for storage.
可选地,所述方法还包括:Optionally, the method further comprises:
在接收所述客户端向所述语音网关发起的结束播报指令后,获取当前播报数据,并将所述当前播报数据上报至所述业务平台,所述当前播报数据包括各个所述设备的当前播报状态、播报详情以及资源池的存储信息;After receiving the end broadcast instruction initiated by the client to the voice gateway, obtaining current broadcast data and reporting the current broadcast data to the service platform, the current broadcast data including the current broadcast status of each device, broadcast details and storage information of the resource pool;
利用所述业务平台对所述当前播报数据进行记录。 The current broadcast data is recorded using the service platform.
本申请还提供一种设备联动实时播报装置,包括:The present application also provides a device linkage real-time broadcasting device, comprising:
数据获取模块,用于响应于客户端发起的实时播报请求,获取待播报设备列表以及与待播报设备列表对应的组装参数,所述待播报设备列表包括多个播报设备;A data acquisition module, configured to obtain a list of devices to be broadcast and assembly parameters corresponding to the list of devices to be broadcast in response to a real-time broadcast request initiated by a client, wherein the list of devices to be broadcast includes a plurality of broadcast devices;
传输通道建立模块,用于基于所述组装参数,建立所述客户端与各个播报设备之间的实时传输通道;A transmission channel establishment module, used to establish a real-time transmission channel between the client and each broadcasting device based on the assembly parameters;
实时传输模块,用于接收用户在所述客户端实时输入的音频数据,利用所述实时传输通道将所述音频数据实时传播至每个所述播报设备;A real-time transmission module, used to receive audio data inputted by the user in real time on the client, and transmit the audio data to each of the broadcasting devices in real time by using the real-time transmission channel;
数据更新模块,用于在接收到所述客户端发起的结束播报指令时,对所述音频数据进行存储。The data updating module is used to store the audio data when receiving the end broadcast instruction initiated by the client.
可选地,所述数据获取模块,包括:Optionally, the data acquisition module includes:
数据分析子模块,用于利用业务平台对客户端发起的实时播报请求进行数据分析,确定待播报设备列表;The data analysis submodule is used to use the business platform to perform data analysis on the real-time broadcast request initiated by the client and determine the list of devices to be broadcasted;
连接信息获取子模块,用于根据所述待播报设备列表,向语音网关管理服务获取语音网关连接信息以及会话ID;A connection information acquisition submodule, used to obtain voice gateway connection information and session ID from the voice gateway management service according to the list of devices to be broadcasted;
组装参数构建模块,用于基于所述语音网关连接信息和所述会话ID,构建所述待播报设备列表对应的组装参数。An assembly parameter construction module is used to construct assembly parameters corresponding to the list of devices to be broadcast based on the voice gateway connection information and the session ID.
本申请还提供了一种存储介质,所述存储介质中存储有计算机可读指令,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行如权利要求1至6中任一项所述设备联动实时播报方法的步骤。The present application also provides a storage medium, in which computer-readable instructions are stored. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the device linkage real-time broadcast method as described in any one of claims 1 to 6.
本申请还提供了一种计算机设备,包括:一个或多个处理器,以及存储器;The present application also provides a computer device, comprising: one or more processors, and a memory;
所述存储器中存储有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,执行如权利要求1至6中任一项所述设备联动实时播报方法的步骤。The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the device linkage real-time broadcast method as described in any one of claims 1 to 6 are performed.
从以上技术方案可以看出,本申请实施例具有以下优点:It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
本申请提供的设备联动实时播报方法、装置、存储介质、计算机设备,利用平台服务实现用户在客户端与设备之间一对多的实时播报,该平台读物包括业务平台,信令服务,语音网管管理服务,语音网关,可以利用业务平台对客户端发起的实时播报请求进行响应,可以得到多个待播报的播报设备构建成的待播报设备列表,并向语音网管管理服务获取与待播报设备列表对应的组装参数,接着利用信令服务将该组装参数下发给待播报设备列表中的每一个播报设 备,基于该组装参数,利用语音网关建立客户端与各个播报设备之间的实时传输通道,以便根据实际需求场景,细分广播群体,选择需要播报的设备进行喊话,实现智能分发,精准到户。本申请在接收到用户在客户端输入的音频数据后,可以通过实时传输通道将该音频数据对每个播报设备进行实时播报,并获取当前播报详情,并在接收到所述客户端发起的结束播报指令时,对该音频数据进行存储,并记录所述当前播报详情,以便让用户随时音频数据内容以及查看播报详情,进而保证了通知的准确传达。The device linkage real-time broadcast method, device, storage medium, and computer device provided in the present application use platform services to realize one-to-many real-time broadcasts between a user's client and a device. The platform includes a business platform, a signaling service, a voice network management service, and a voice gateway. The business platform can be used to respond to a real-time broadcast request initiated by a client, and a list of devices to be broadcast constructed by multiple broadcast devices to be broadcast can be obtained. The assembly parameters corresponding to the list of devices to be broadcast are obtained from the voice network management service, and then the signaling service is used to send the assembly parameters to each broadcast device in the list of devices to be broadcast. Based on the assembly parameters, a real-time transmission channel is established between the client and each broadcast device using a voice gateway, so that the broadcast group can be subdivided according to the actual demand scenario, and the device that needs to be broadcast can be selected for shouting, so as to realize intelligent distribution and accurate home delivery. After receiving the audio data input by the user on the client, the application can broadcast the audio data to each broadcast device in real time through a real-time transmission channel, obtain the current broadcast details, and store the audio data when receiving the end broadcast instruction initiated by the client, and record the current broadcast details, so that the user can view the audio data content and broadcast details at any time, thereby ensuring the accurate transmission of the notification.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
图1为本申请实施例提供的一种设备联动实时播报方法的流程示意图;FIG1 is a schematic diagram of a flow chart of a device linkage real-time broadcast method provided in an embodiment of the present application;
图2为本申请实施例提供的一种设备联动实时播报方法的总体架构示意图;FIG2 is a schematic diagram of the overall architecture of a device linkage real-time broadcast method provided in an embodiment of the present application;
图3为本申请实施例提供的一种设备联动实时播报方法的业务流程示意图;FIG3 is a schematic diagram of a business process of a device linkage real-time broadcast method provided in an embodiment of the present application;
图4为本申请实施例提供的一种设备联动实时播报装置的结构示意图;FIG4 is a schematic diagram of the structure of a device linkage real-time broadcasting apparatus provided in an embodiment of the present application;
图5为本申请实施例提供的一种计算机设备的内部结构示意图。FIG5 is a schematic diagram of the internal structure of a computer device provided in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
随着农村现代化发展趋势,广播以它的实用性、经济性、便捷性在乡村或基层单位被广泛应用,它的优势在于对象广泛,传播迅速,功能多样,感染力强,满足了农村村委或基层单位对疫情防控、党建宣传、自然灾害通知等信息及时传播的需求。然而,在现有技术广播无法按照实际需求场景,细分广播群体精准播报,且广播收听结束后无法对播报内容进行回放,从而无法保证通知准确传达。 With the development trend of rural modernization, radio has been widely used in villages or grassroots units due to its practicality, economy and convenience. Its advantages are wide coverage, rapid dissemination, diverse functions and strong appeal, which meet the needs of rural village committees or grassroots units for timely dissemination of information such as epidemic prevention and control, party building propaganda, and natural disaster notifications. However, the existing broadcasting technology cannot accurately broadcast according to the actual demand scenarios and the broadcasting groups, and the broadcasting content cannot be replayed after the broadcasting ends, so it cannot ensure the accurate transmission of the notification.
因此,本申请的目的是解决现有技术中广播无法按照实际需求场景,细分广播群体精准播报,且广播收听结束后无法对播报内容进行回放,从而无法保证通知准确传达的技术问题,并提出如下技术方案:Therefore, the purpose of this application is to solve the technical problems in the prior art that the broadcast cannot accurately broadcast according to the actual demand scenario and the broadcast group cannot be subdivided, and the broadcast content cannot be played back after the broadcast is finished, thereby failing to ensure the accurate transmission of the notification, and the following technical solutions are proposed:
在一个实施例中,如图1所示,图1为本申请实施例提供的一种设备联动实时播报方法的流程示意图;本申请提供了一种设备联动实时播报方法,具体包括如下:In one embodiment, as shown in FIG. 1 , FIG. 1 is a flow chart of a device linkage real-time broadcast method provided in an embodiment of the present application; the present application provides a device linkage real-time broadcast method, which specifically includes the following:
S110:响应于客户端发起的实时播报请求,获取待播报设备列表以及与待播报设备列表对应的组装参数。S110: In response to the real-time broadcast request initiated by the client, a list of devices to be broadcast and assembly parameters corresponding to the list of devices to be broadcast are obtained.
本步骤中,当用户需要对播报设备进行实时播报时,可以使用客户端,选择想要播报的设备,形成带播报设备列表并发出实时播报请求,平台服务接收到客户端发起的实时播报请求后,得到实时播报请求携带的待播报设备列表以及与待播报设备列表对应的组装参数。In this step, when the user needs to broadcast the broadcast device in real time, he can use the client to select the device he wants to broadcast, form a list of broadcast devices and issue a real-time broadcast request. After the platform service receives the real-time broadcast request initiated by the client, it obtains the list of devices to be broadcast carried by the real-time broadcast request and the assembly parameters corresponding to the list of devices to be broadcast.
需要说明的是,平台服务可以包括四个模块,分别为业务平台、信令服务、语音网关管理服务和语音网关,以用于客户端与播报设备之间的数据交互以及建立实时传输通道,而待播报设备列表包括多个播报设备,该播报设备为用户根据实际需求场景,细分广播群体,使用客户端选择需要播报的设备,从而实现智能分发,精准到户。It should be noted that the platform service can include four modules, namely business platform, signaling service, voice gateway management service and voice gateway, which are used for data interaction between the client and the broadcast device and to establish a real-time transmission channel. The list of devices to be broadcast includes multiple broadcast devices. The broadcast device subdivides the broadcast group for users according to actual demand scenarios, and uses the client to select the device to be broadcast, thereby realizing intelligent distribution and precise household distribution.
示意性地,如图2所示,图2为本申请实施例提供的一种设备联动实时播报方法的总体架构示意图;由图2可知,本申请以客户端为用户入口,用于接收客户输入的数据信息,接着利用中间件在平台服务上对客户端与设备之间的数据进行交互,从而在客户端与设备之间建立一个一对多的实时传输通道,实现用户在客户端发出的声音在设备侧或外置音柱侧实时播报出来,其中,用于处理交互数据的中间件包含的多个处理模块,例如MySQL、Codis、Cassandra、RocketMQ、K8S等,这里的客户端可以包括PC、Android和IOS等可以用来接收以及传递数据信息的终端,而设备可以采用摄像头和外接音柱的组合方式,采用摄像头的实时播报功能,将用户在客户端播报的内容在设备侧或外置音柱里进行实时的播报。Schematically, as shown in Figure 2, Figure 2 is a schematic diagram of the overall architecture of a device linkage real-time broadcast method provided in an embodiment of the present application; as can be seen from Figure 2, the present application uses the client as the user entrance to receive data information input by the customer, and then uses the middleware to interact with the data between the client and the device on the platform service, thereby establishing a one-to-many real-time transmission channel between the client and the device, so that the sound emitted by the user on the client is broadcast in real time on the device side or the external sound column side, wherein the middleware for processing interactive data includes multiple processing modules, such as MySQL, Codis, Cassandra, RocketMQ, K8S, etc., where the client can include PC, Android, IOS and other terminals that can be used to receive and transmit data information, and the device can adopt a combination of a camera and an external sound column, and adopt the real-time broadcast function of the camera to broadcast the content broadcast by the user on the client in real time on the device side or the external sound column.
进一步地,平台服务接收到客户端发起的实时播报请求后,可以对实时播报请求进行数据解析,取得实时播报请求携带的信息,从而确定待播报设备列表,并获取与待播报设备列表对应的组装参数。其中,组装参数中包含从语音网关管理服务中获取的语音网关连接信息和会话ID。 Furthermore, after receiving the real-time broadcast request initiated by the client, the platform service can perform data analysis on the real-time broadcast request, obtain the information carried by the real-time broadcast request, thereby determining the list of devices to be broadcasted, and obtaining the assembly parameters corresponding to the list of devices to be broadcasted. The assembly parameters include the voice gateway connection information and session ID obtained from the voice gateway management service.
S120:基于所述组装参数,建立客户端与各个播报设备之间的实时传输通道。S120: Based on the assembly parameters, a real-time transmission channel is established between the client and each broadcasting device.
本步骤中,通过步骤S110获取待播报设备列表以及与待播报设备列表对应的组装参数后,根据该组装参数,可以在客户端与各个播报设备之间建立一个一对多的实时传输通道。In this step, after obtaining the list of devices to be broadcasted and the assembly parameters corresponding to the list of devices to be broadcasted in step S110, a one-to-many real-time transmission channel can be established between the client and each broadcasting device according to the assembly parameters.
具体地,在得到组装参数后,可以利用信令服务将组装参数下发给带播报设备列表中的各个播报设备,客户端与各个播报设备都接收到组装参数后,可以根据组装参数向语音网关管理服务进行连接,接着语音网关管理服务确认客户端与各个播报设备携带的组装参数信息一致性,并建立客户端与各个播报设备之间的实时传输通道。Specifically, after obtaining the assembly parameters, the signaling service can be used to send the assembly parameters to each broadcasting device in the broadcasting device list. After the client and each broadcasting device have received the assembly parameters, they can connect to the voice gateway management service according to the assembly parameters. The voice gateway management service then confirms the consistency of the assembly parameter information carried by the client and each broadcasting device, and establishes a real-time transmission channel between the client and each broadcasting device.
进一步地,若客户端与各个播报设备携带的组装参数信息一致,则直接在客户端与各个播报设备之间建立一个一对多的实时传输通道,若存在播报设备与客户端携带地组装参数信息不一致,则先剔除信息不一致的播报设备后再建立一个一对多的实时传输通道。Furthermore, if the assembly parameter information carried by the client and each broadcasting device is consistent, a one-to-many real-time transmission channel is directly established between the client and each broadcasting device. If the assembly parameter information carried by the broadcasting device and the client is inconsistent, the broadcasting device with inconsistent information is first eliminated and then a one-to-many real-time transmission channel is established.
S130:接收用户在所述客户端实时输入的音频数据,利用实时传输通道将音频数据实时传播至每个播报设备。S130: receiving audio data inputted by the user in real time at the client, and transmitting the audio data to each broadcasting device in real time by using a real-time transmission channel.
本步骤中,通过步骤S120建立实时传输通道后,用户可以将需要播报的通知内容以音频数据的形式实时传输至客户端中,当客户端接收到用户输入的音频数据后,即可同步将该音频数据通过实时传输通向每个播报设备进行实时传播。In this step, after the real-time transmission channel is established through step S120, the user can transmit the notification content to be broadcast to the client in real time in the form of audio data. When the client receives the audio data input by the user, it can synchronously transmit the audio data to each broadcasting device through real-time transmission for real-time dissemination.
可以理解的是,这里的音频数据指的是用户在客户端输入的一系列连续或非连续的音频数据,对于音频数据的获取,可以是用户在客户端实时讲话进行传输,也可以是提前存储的录音数据,在此不做限制。It is understandable that the audio data here refers to a series of continuous or discontinuous audio data input by the user on the client. The acquisition of audio data can be the real-time transmission of the user's speech on the client, or it can be pre-stored recording data, and there is no limitation here.
具体地,当平台服务在客户端与各个播报设备之间建立实时传输通道后,可以将确认播报信息返回给用户,以便用户在客户端输入音频数据进行实时播报,在对音频数据传输的过程中,为了进一步提高传输的同步率,可以对该音频数据进行分段处理,分段处理后的音频数据的数据量较小,可以实现客户端音频数据输入以及设备音频数据输出的同步率,从而实现设备联动实时传播的效果。Specifically, after the platform service establishes a real-time transmission channel between the client and each broadcasting device, it can return confirmation broadcast information to the user so that the user can input audio data on the client for real-time broadcasting. In the process of audio data transmission, in order to further improve the transmission synchronization rate, the audio data can be segmented. The amount of audio data after segmentation is smaller, and the synchronization rate of client audio data input and device audio data output can be achieved, thereby realizing the effect of real-time transmission of device linkage.
S140:在接收到客户端发起的结束播报指令时,对音频数据进行存储。 S140: upon receiving the end broadcast instruction initiated by the client, the audio data is stored.
本步骤中,通过步骤S130获得音频数据后,可以在用户通知播报结束后发出结束播报指令时进行永久存储,以便用户可以随时对该次播报内容进行回放和通知信息确认。In this step, after the audio data is obtained in step S130, it can be permanently stored when the user issues an end broadcast instruction after the notification broadcast is over, so that the user can replay the broadcast content and confirm the notification information at any time.
具体地,用户在通知播报结束后,可以使用客户端向语音网关发起结束播报请求,接着语音网关可以响应该结束播报请求,断开客户端与各个播报设备之间的实时传输通道,同时获取各个播报设备的播报详情记录,并将该次播报内容的音频数据与播报详情记录进行永久存储,以便用户可以随时对该次播报内容进行查阅和回放。Specifically, after the notification broadcast ends, the user can use the client to initiate an end-broadcast request to the voice gateway. The voice gateway can then respond to the end-broadcast request, disconnect the real-time transmission channel between the client and each broadcast device, and simultaneously obtain the broadcast detail records of each broadcast device, and permanently store the audio data and broadcast detail records of the broadcast content, so that the user can review and replay the broadcast content at any time.
上述实施例中,利用平台服务实现用户在客户端与设备之间一对多的实时播报,该平台读物包括业务平台,信令服务,语音网管管理服务,语音网关,可以利用业务平台对客户端发起的实时播报请求进行响应,可以得到多个待播报的播报设备构建成的待播报设备列表,并向语音网管管理服务获取与待播报设备列表对应的组装参数,接着利用信令服务将该组装参数下发给待播报设备列表中的每一个播报设备,基于该组装参数,利用语音网关建立客户端与各个播报设备之间的实时传输通道,以便根据实际需求场景,细分广播群体,选择需要播报的设备进行喊话,实现智能分发,精准到户。本申请在接收到用户在客户端输入的音频数据后,可以通过实时传输通道将该音频数据对每个播报设备进行实时播报,并获取当前播报详情,并在接收到所述客户端发起的结束播报指令时,对该音频数据进行存储,并记录所述当前播报详情,以便让用户随时音频数据内容以及查看播报详情,进而保证了通知的准确传达。In the above embodiment, the platform service is used to realize one-to-many real-time broadcasting between the user's client and the device. The platform reading includes a business platform, a signaling service, a voice network management service, and a voice gateway. The business platform can be used to respond to the real-time broadcast request initiated by the client, and a list of devices to be broadcasted constructed by multiple broadcasting devices to be broadcasted can be obtained, and the assembly parameters corresponding to the list of devices to be broadcasted are obtained from the voice network management service, and then the signaling service is used to send the assembly parameters to each broadcasting device in the list of devices to be broadcasted. Based on the assembly parameters, a real-time transmission channel is established between the client and each broadcasting device using the voice gateway, so as to subdivide the broadcasting group according to the actual demand scenario, select the device to be broadcasted for shouting, and realize intelligent distribution and accurate home delivery. After receiving the audio data input by the user at the client, the present application can broadcast the audio data to each broadcasting device in real time through the real-time transmission channel, and obtain the current broadcast details, and when receiving the end broadcast instruction initiated by the client, the audio data is stored, and the current broadcast details are recorded, so that the user can view the audio data content and the broadcast details at any time, thereby ensuring the accurate transmission of the notification.
在一个实施例中,步骤S110中响应于客户端发起的实时播报请求,获取待播报设备列表以及与待播报设备列表对应的组装参数,可以包括:In one embodiment, in response to the real-time broadcast request initiated by the client, obtaining the list of devices to be broadcast and the assembly parameters corresponding to the list of devices to be broadcast in step S110 may include:
S111:利用业务平台对客户端发起的实时播报请求进行数据分析,确定待播报设备列表。S111: Utilize the service platform to perform data analysis on the real-time broadcast request initiated by the client, and determine a list of devices to be broadcasted.
S112:根据所述待播报设备列表,向语音网关管理服务获取语音网关连接信息以及会话ID。S112: According to the list of devices to be broadcasted, obtain voice gateway connection information and session ID from the voice gateway management service.
S113:基于所述语音网关连接信息和所述会话ID,构建所述待播报设备列表对应的组装参数。S113: Based on the voice gateway connection information and the session ID, construct assembly parameters corresponding to the list of devices to be broadcasted.
本实施例中,在接收到客户端发起的实时播报请求后,可以利用业务平台对实时播报请求携带的数据进行分析,以确定待播报设备列表,接着业务平台可以依据该待播报设备列表,向语音网关管理服务获取语音网关连接信息以及 会话ID,并将该语音网关连接信息和会话ID构建成为该待播报列表对应的组装参数。In this embodiment, after receiving the real-time broadcast request initiated by the client, the service platform can analyze the data carried by the real-time broadcast request to determine the list of devices to be broadcasted. Then, the service platform can obtain the voice gateway connection information and the voice gateway management service based on the list of devices to be broadcasted. Session ID, and construct the voice gateway connection information and session ID into the assembly parameters corresponding to the list to be broadcast.
可以理解的是,这里的语音网关连接信息为语音网关管理服务中处于空闲可用的语音网关连接信息,作为客户端和播报设备与语音网关管理服务进行连接的判断依据,而会话ID是在业务平台向语音网关管理服务获取语音网关连接信息时,语音网关管理服务同步分配给业务平台的。It can be understood that the voice gateway connection information here is the idle and available voice gateway connection information in the voice gateway management service, which serves as the basis for judging whether the client and the broadcasting device are connected to the voice gateway management service. The session ID is synchronously assigned to the business platform by the voice gateway management service when the business platform obtains the voice gateway connection information from the voice gateway management service.
具体地,在业务平台确认待播报设备列表后,可以向语音网关管理服务发起语音网关连接信息获取请求,语音网关管理服务接收到请求后,对所有语音网关连接信息进行查询,筛选出可用的语音网关连接信息并随机将其中一条以及分配的会话ID返回给业务平台,该会话ID具有唯一性,避免会话ID重复导致数据混乱,业务平台接收到语音网关管理服务返回的语音网关连接信息和会话ID后,构建成组装参数。Specifically, after the business platform confirms the list of devices to be broadcast, it can initiate a request to obtain the voice gateway connection information to the voice gateway management service. After receiving the request, the voice gateway management service queries all the voice gateway connection information, filters out the available voice gateway connection information and randomly returns one of them and the assigned session ID to the business platform. The session ID is unique to avoid data confusion caused by duplicate session IDs. After the business platform receives the voice gateway connection information and session ID returned by the voice gateway management service, it constructs the assembly parameters.
在一个实施例中,步骤S111中利用业务平台对所述实时播报请求进行数据分析,确定待播报设备列表,可以包括:In one embodiment, in step S111, using the service platform to perform data analysis on the real-time broadcast request to determine a list of devices to be broadcasted may include:
S1111:利用业务平台对客户端发起的实时播报请求进行数据分析,确定初始设备列表。S1111: Utilize the service platform to perform data analysis on the real-time broadcast request initiated by the client to determine an initial device list.
S1112:从所述初始设备列表中筛选出处于空闲状态的播报设备,形成待播报设备列表。S1112: Filter out idle broadcast devices from the initial device list to form a list of devices to be broadcasted.
本实施例中,在接收到客户端发起的实时播报请求后,可以利用业务平台对实时播报请求携带的数据进行分析,以确定初始设备列表,接着对初始设备列表包含的播报设备进行筛选,剔除已在广播的播报设备,得到处于空闲状态的播报设备,并形成待播报设备列表。In this embodiment, after receiving the real-time broadcast request initiated by the client, the business platform can be used to analyze the data carried by the real-time broadcast request to determine the initial device list, and then filter the broadcast devices included in the initial device list, eliminate the broadcast devices that are already broadcasting, obtain the broadcast devices that are in an idle state, and form a list of devices to be broadcast.
可以理解的是,本申请在设备联动实时播报过程中,在同一时间段可以同步进行多个实时播报,分别对不同播报设备进行不同通知信息的播报,举例来说,在同一个时间段有两个实时播报,需要将各自的通知播报到各自对应的播报设备上,若其中有播报设备发生重叠,则较慢发出实时播报请求的客户端对应的初始设备列表中剔除已在广播的播报设备。It can be understood that in the process of device linkage real-time broadcasting, the present application can simultaneously carry out multiple real-time broadcasts in the same time period, and broadcast different notification information to different broadcasting devices respectively. For example, there are two real-time broadcasts in the same time period, and their respective notifications need to be broadcast to their respective corresponding broadcasting devices. If there is overlap between the broadcasting devices, the initial device list corresponding to the client that sends the real-time broadcast request more slowly will remove the broadcasting device that is already broadcasting.
在一个实施例中,步骤S120中基于所述组装参数,建立客户端与各个播报设备之间的实时传输通道,可以包括:In one embodiment, in step S120, establishing a real-time transmission channel between the client and each broadcasting device based on the assembly parameters may include:
S121:将所述组装参数和所述待播报设备列表下发至信令服务,以便所述信令服务将所述组装参数下发给所述待播报设备列表中的每个播报设备。 S121: Send the assembly parameters and the list of devices to be broadcasted to a signaling service, so that the signaling service sends the assembly parameters to each broadcasting device in the list of devices to be broadcasted.
S122:基于所述组装参数包含的语音网关连接信息,触发每个所述播报设备与语音网关进行连接。S122: Based on the voice gateway connection information included in the assembly parameters, trigger each of the broadcasting devices to connect to the voice gateway.
S123:将所述组装参数返回给所述客户端,以使所述客户端根据所述语音网关连接信息与所述语音网关进行连接。S123: Return the assembly parameters to the client, so that the client connects to the voice gateway according to the voice gateway connection information.
S124:当所述客户端以及每个所述播报设备与所述语音网关进行连接后,基于所述会话ID,利用所述语音网关建立所述客户端与各个所述播报设备之间的实时传输通道。S124: After the client and each of the broadcasting devices are connected to the voice gateway, based on the session ID, a real-time transmission channel is established between the client and each of the broadcasting devices using the voice gateway.
本实施例中,在获取组装参数后,可以将该组装参数返回给客户端,以便客户端根据语音网关连接信息与语音网关进行连接,同时将组装参数和待播报设备列表下发至信令服务,信令服务在接收到该组装参数后下发给所述待播报设备列表中的每个播报设备,以便各个播报设备依据该组装参数中的语音网关连接信息,与语音网关进行连接,待客户端与每个播报设备皆与语音网关进行连接后,根据会话ID建立所述客户端与各个所述播报设备之间的实时传输通道。In this embodiment, after obtaining the assembly parameters, the assembly parameters can be returned to the client so that the client can connect to the voice gateway according to the voice gateway connection information. At the same time, the assembly parameters and the list of devices to be broadcast are sent to the signaling service. After receiving the assembly parameters, the signaling service sends them to each broadcasting device in the list of devices to be broadcast, so that each broadcasting device can connect to the voice gateway according to the voice gateway connection information in the assembly parameters. After the client and each broadcasting device are connected to the voice gateway, a real-time transmission channel is established between the client and each of the broadcasting devices according to the session ID.
具体地,在客户端接收到组装参数后,可以向业务平台发起连接请求,接着业务平台根据客户端携带的语音网关连接信息,连接对应的语音网关服务,同时,各个播报设备接收到信令服务下发的组装参数后,也根据组装参数中包含的语音网关连接信息连接语音网关中对应的语音网关服务,最后语音网关服务根据客户端以及各个播报设备携带的会话ID建立客户端及多设备的音频数据传输通道,进行音频数据的实时传输,从而达到设备联动实时播报的功能。Specifically, after the client receives the assembly parameters, it can initiate a connection request to the business platform. The business platform then connects to the corresponding voice gateway service based on the voice gateway connection information carried by the client. At the same time, after each broadcasting device receives the assembly parameters sent by the signaling service, it also connects to the corresponding voice gateway service in the voice gateway based on the voice gateway connection information contained in the assembly parameters. Finally, the voice gateway service establishes an audio data transmission channel for the client and multiple devices based on the session ID carried by the client and each broadcasting device, and performs real-time transmission of audio data, thereby achieving the function of real-time broadcast of device linkage.
其中,本申请中客户端以及各个播报设备连接语音网关服务皆采用TCP(Transmission Control Protocol,传输控制协议)的方式进行连接,这里的TCP为一种面向连接的、可靠的、基于字节流的传输层通信协议,是为了在不可靠的互联网络上提供可靠的端到端字节流而专门设计的一个传输协议,适应支持多网络应用的分层协议层次结构。其他可以实现本申请中连接与越南网关服务的方式,均可以作为本申请优选的方案,在此不做限制。Among them, the client and each broadcasting device in this application are connected to the voice gateway service using TCP (Transmission Control Protocol). TCP here is a connection-oriented, reliable, byte stream-based transport layer communication protocol. It is a transmission protocol specially designed to provide reliable end-to-end byte streams on unreliable Internet networks, and is adapted to support the layered protocol hierarchy of multi-network applications. Other ways to achieve the connection with the Vietnam gateway service in this application can all be used as the preferred solution of this application, and are not limited here.
在一个实施例中,步骤S140中在接收到所述客户端发起的结束播报指令时,对所述音频数据进行存储,可以包括:In one embodiment, when receiving the end broadcast instruction initiated by the client in step S140, storing the audio data may include:
S141:接收到所述客户端向语音网关发起的结束播报指令时,利用所述语音网关向所述业务平台获取上传地址。S141: upon receiving the end broadcast instruction initiated by the client to the voice gateway, the voice gateway is used to obtain the upload address from the service platform.
S142:基于所述上传地址,将所述音频数据上传至资源池进行存储。 S142: Based on the upload address, upload the audio data to a resource pool for storage.
本实施例中,当用户确认结束实时播报后,客户端可以向语音网关发起结束播报指令,语音网关对该结束播报指令进行响应,向业务平台获取上传地址,以便将该次实时播报的音频数据上传至资源池。In this embodiment, when the user confirms the end of the real-time broadcast, the client can initiate an end broadcast instruction to the voice gateway. The voice gateway responds to the end broadcast instruction and obtains the upload address from the business platform to upload the audio data of the real-time broadcast to the resource pool.
例如,用户通过客户端将重要通知一键广播至所有播报设备后,点击结束实时播报,客户端则向语音网关发起结束播报指令,并把结束广播的状态上报业务平台,语音网关收到结束播报指令后,可以向业务平台发起数据上传请求,业务平台响应该请求并在资源池中筛选出空闲地址后返回给业务平台,以便业务平台将该地址返回给语音网关,用于该次实时播报中语音数据的上传。For example, after the user broadcasts an important notification to all broadcast devices with one click through the client, and clicks to end the real-time broadcast, the client initiates an end broadcast instruction to the voice gateway and reports the end broadcast status to the business platform. After receiving the end broadcast instruction, the voice gateway can initiate a data upload request to the business platform. The business platform responds to the request and filters out the free address in the resource pool and returns it to the business platform so that the business platform can return the address to the voice gateway for uploading the voice data in this real-time broadcast.
在一个实施例中,所述方法还可以包括:In one embodiment, the method may further include:
S150:在接收所述客户端向语音网关发起的结束播报指令后,获取当前播报数据,以并将所述当前播报数据上报至所述业务平台。S150: After receiving the end broadcast instruction initiated by the client to the voice gateway, obtain current broadcast data, and report the current broadcast data to the service platform.
S160:利用所述业务平台对所述当前播报数据进行记录。S160: Record the current broadcast data using the service platform.
本实施例中,当用户确认结束实时播报后,语音网关接收到客户端发起的结束播报指令后,获取当前播报数据并上报给业务平台,接着可以利用业务平台对当前播报数据进行记录,以便用户后续可以查看历史实时播报的详情。In this embodiment, when the user confirms the end of the real-time broadcast, the voice gateway receives the end broadcast instruction initiated by the client, obtains the current broadcast data and reports it to the business platform. The business platform can then record the current broadcast data so that the user can later view the details of the historical real-time broadcast.
可以理解的是,这里的当前播报数据包括各个播报设备的当前播报状态、播报详情以及资源池的存储信息,而各个播报设备的当前播报状态具体可以表现为录音文件生成中、播报失败、播报成功,播报详情可以为播报音量、播报时长等,资源池的存储信息可以是该次播报的音频数据对应的上传地址以及占用资源等,当前播报数据记录该次实时播报中设备以及资源池的各种详情信息,在此不做限制。It can be understood that the current broadcast data here includes the current broadcast status, broadcast details and storage information of the resource pool of each broadcast device, and the current broadcast status of each broadcast device can be specifically manifested as recording file generation, broadcast failure, broadcast success, the broadcast details can be broadcast volume, broadcast duration, etc., the storage information of the resource pool can be the upload address corresponding to the audio data of the broadcast and occupied resources, etc. The current broadcast data records various detailed information of the equipment and resource pool in the real-time broadcast, and is not limited here.
为了更好地对本申请的设备联动实时播报方法进行解释,下面将通过图3来进一步说明,示意性地,如图3所示,图3为本申请提供地一种设备联动实时播报地业务流程示意图。In order to better explain the device linkage real-time broadcast method of the present application, it will be further illustrated by FIG. 3 . Schematically, as shown in FIG. 3 , FIG. 3 is a business process diagram of a device linkage real-time broadcast provided by the present application.
图3中,用户在客户端选中播报设备形成播报设备列表后,向业务平台发起实时播报请求,业务平台接收到请求后,可以向语音网关管理服务获取可用的语音网关,语音网关管理服务通过查询获取到可用的语音网关信息后,将可用的语音网关信息以及分配的会话ID构建成组装参数,并返回给业务平台,在业务平台将组装参数下发给信令服务前,可以将设备列表中已在广播的设备进行剔除,接着将组装参数发送给客户端以及设备列表中的各个设备,以便客户端以及各个设备与语音网关进行连接,在客户端以及各个设备接连结束后,语音 网关可以建立客户端与播报设备之间的实时传输通道,用于客户端对播报设备进行音频数据传输,当客户端结束播报后,向语音网关发起结束播报指令,语音网关接收到指令后对请求进行响应并断开实时传输通道。In Figure 3, after the user selects the broadcast device on the client to form a broadcast device list, the user initiates a real-time broadcast request to the business platform. After receiving the request, the business platform can obtain the available voice gateway from the voice gateway management service. After the voice gateway management service obtains the available voice gateway information through query, it constructs the available voice gateway information and the assigned session ID into assembly parameters and returns them to the business platform. Before the business platform sends the assembly parameters to the signaling service, it can remove the devices that are already broadcasting in the device list, and then send the assembly parameters to the client and each device in the device list so that the client and each device can connect to the voice gateway. After the client and each device are connected, the voice The gateway can establish a real-time transmission channel between the client and the broadcasting device, which is used by the client to transmit audio data to the broadcasting device. When the client finishes the broadcast, it sends an end broadcast command to the voice gateway. After receiving the command, the voice gateway responds to the request and disconnects the real-time transmission channel.
下面对本申请实施例提供的设备联动实时播报装置进行描述,下文描述的设备联动实时播报装置与上文描述的设备联动实时播报方法可相互对应参照。The following is a description of a device linkage real-time broadcast apparatus provided in an embodiment of the present application. The device linkage real-time broadcast apparatus described below and the device linkage real-time broadcast method described above can be referenced to each other.
在一个实施例中,如图4所示,图4为本申请实施例提供的一种设备联动实时播报装置的结构示意图;本申请还提供了一种设备联动实时播报装置,包括数据获取模块210、传输通道建立模块220、实时传输模块230、数据更新模块240,具体包括如下:In one embodiment, as shown in FIG. 4 , FIG. 4 is a schematic diagram of the structure of a device linkage real-time broadcast device provided in an embodiment of the present application; the present application also provides a device linkage real-time broadcast device, including a data acquisition module 210, a transmission channel establishment module 220, a real-time transmission module 230, and a data update module 240, which specifically include the following:
数据获取模块210,用于响应于客户端发起的实时播报请求,获取待播报设备列表以及与待播报设备列表对应的组装参数,所述待播报设备列表包括多个播报设备。The data acquisition module 210 is used to obtain a list of devices to be broadcast and assembly parameters corresponding to the list of devices to be broadcast in response to a real-time broadcast request initiated by the client, wherein the list of devices to be broadcast includes multiple broadcast devices.
传输通道建立模块220,用于基于所述组装参数,建立所述客户端与各个播报设备之间的实时传输通道。The transmission channel establishing module 220 is used to establish a real-time transmission channel between the client and each broadcasting device based on the assembly parameters.
实时传输模块230,用于接收用户在所述客户端实时输入的音频数据,利用所述实时传输通道将所述音频数据实时传播至每个所述播报设备。The real-time transmission module 230 is used to receive the audio data input by the user in real time on the client, and transmit the audio data to each of the broadcasting devices in real time by using the real-time transmission channel.
数据更新模块240,用于在接收到所述客户端发起的结束播报指令时,对所述音频数据进行存储。The data updating module 240 is used to store the audio data when receiving the end broadcast instruction initiated by the client.
上述实施例中,利用平台服务实现用户在客户端与设备之间一对多的实时播报,该平台读物包括业务平台,信令服务,语音网管管理服务,语音网关,可以利用业务平台对客户端发起的实时播报请求进行响应,可以得到多个待播报的播报设备构建成的待播报设备列表,并向语音网管管理服务获取与待播报设备列表对应的组装参数,接着利用信令服务将该组装参数下发给待播报设备列表中的每一个播报设备,基于该组装参数,利用语音网关建立客户端与各个播报设备之间的实时传输通道,以便根据实际需求场景,细分广播群体,选择需要播报的设备进行喊话,实现智能分发,精准到户。本申请在接收到用户在客户端输入的音频数据后,可以通过实时传输通道将该音频数据对每个播报设备进行实时播报,并获取当前播报详情,并在接收到所述客户端发起的结束播报指令时,对该音频数据进行存储,并记录所述当前播报详情,以便让用户随时音频数据内容以及查看播报详情,进而保证了通知的准确传达。In the above embodiment, the platform service is used to realize one-to-many real-time broadcast between the client and the device. The platform reading includes a business platform, a signaling service, a voice network management service, and a voice gateway. The business platform can be used to respond to the real-time broadcast request initiated by the client, and a list of devices to be broadcast constructed by multiple broadcast devices to be broadcast can be obtained, and the assembly parameters corresponding to the list of devices to be broadcast are obtained from the voice network management service. Then, the signaling service is used to send the assembly parameters to each broadcast device in the list of devices to be broadcast. Based on the assembly parameters, a real-time transmission channel is established between the client and each broadcast device using the voice gateway, so that according to the actual demand scenario, the broadcast group can be subdivided, and the device to be broadcast can be selected for shouting, so as to realize intelligent distribution and accurate home delivery. After receiving the audio data input by the user at the client, the present application can broadcast the audio data to each broadcast device in real time through the real-time transmission channel, obtain the current broadcast details, and store the audio data when receiving the end broadcast instruction initiated by the client, and record the current broadcast details, so that the user can view the audio data content and the broadcast details at any time, thereby ensuring the accurate transmission of the notification.
在一个实施例中,所述数据获取模块210可以包括: In one embodiment, the data acquisition module 210 may include:
数据分析子模块,用于利用业务平台对客户端发起的实时播报请求进行数据分析,确定待播报设备列表。The data analysis submodule is used to use the business platform to perform data analysis on the real-time broadcast request initiated by the client and determine the list of devices to be broadcast.
连接信息获取子模块,用于根据所述待播报设备列表,向语音网关管理服务获取语音网关连接信息以及会话ID。The connection information acquisition submodule is used to obtain the voice gateway connection information and session ID from the voice gateway management service according to the list of devices to be broadcast.
组装参数构建子模块,用于基于所述语音网关连接信息和所述会话ID,构建所述待播报设备列表对应的组装参数。The assembly parameter construction submodule is used to construct the assembly parameters corresponding to the list of devices to be broadcast based on the voice gateway connection information and the session ID.
在一个实施例中,所述数据分析子模块可以包括:In one embodiment, the data analysis submodule may include:
数据分析单元,用于利用业务平台对客户端发起的实时播报请求进行数据分析,确定初始设备列表。The data analysis unit is used to use the service platform to perform data analysis on the real-time broadcast request initiated by the client and determine the initial device list.
数据筛选单元,用于从所述初始设备列表中筛选出处于空闲状态的播报设备,形成待播报设备列表。The data screening unit is used to screen out idle broadcasting devices from the initial device list to form a list of devices to be broadcasted.
在一个实施例中,所述传输通道建立模块220可以包括:In one embodiment, the transmission channel establishing module 220 may include:
数据下发子模块,用于将所述组装参数和所述待播报设备列表下发至信令服务,以便所述信令服务将所述组装参数下发给所述待播报设备列表中的每个播报设备。The data sending submodule is used to send the assembly parameters and the list of devices to be broadcasted to the signaling service, so that the signaling service sends the assembly parameters to each broadcasting device in the list of devices to be broadcasted.
设备连接子模块,用于基于所述组装参数包含的语音网关连接信息,触发每个所述播报设备与语音网关进行连接。The device connection submodule is used to trigger each of the broadcasting devices to connect to the voice gateway based on the voice gateway connection information contained in the assembly parameters.
客户端连接子模块,用于将所述组装参数返回给所述客户端,以使所述客户端根据所述语音网关连接信息与所述语音网关进行连接。The client connection submodule is used to return the assembly parameters to the client so that the client can connect to the voice gateway according to the voice gateway connection information.
传输通道建立子模块,用于当所述客户端以及每个所述播报设备与所述语音网关进行连接后,基于所述会话ID,利用所述语音网关建立所述客户端与各个所述播报设备之间的实时传输通道。The transmission channel establishment submodule is used to establish a real-time transmission channel between the client and each of the broadcasting devices using the voice gateway based on the session ID after the client and each of the broadcasting devices are connected to the voice gateway.
在一个实施例中,所述数据更新模块240可以包括:In one embodiment, the data updating module 240 may include:
上传地址获取子模块,用于接收到所述客户端向语音网关发起的结束播报指令时,利用所述语音网关向所述业务平台获取上传地址;The upload address acquisition submodule is used to obtain the upload address from the service platform using the voice gateway when receiving the end broadcast instruction initiated by the client to the voice gateway;
资源上传子模块,用于基于所述上传地址,将所述音频数据上传至资源池。The resource uploading submodule is used to upload the audio data to a resource pool based on the upload address.
在一个实施例中,所述装置还可以包括:In one embodiment, the device may further include:
播报数据获取模块,用于在接收所述客户端向语音网关发起的结束播报指令后,获取当前播报数据,并将所述当前播报数据上报至所述业务平台,所述当前播报数据包括各个所述设备的当前播报状态、播报详情以及资源池的存储信息; A broadcast data acquisition module, used to obtain current broadcast data after receiving the end broadcast instruction initiated by the client to the voice gateway, and report the current broadcast data to the service platform, wherein the current broadcast data includes the current broadcast status of each device, broadcast details and storage information of the resource pool;
播报数据更新模块,用于利用所述业务平台对所述当前播报数据进行记录。The broadcast data updating module is used to record the current broadcast data using the service platform.
在一个实施例中,本申请还提供了一种存储介质,所述存储介质中存储有计算机可读指令,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行如上述实施例中任一项所述设备联动实时播报方法的步骤。In one embodiment, the present application also provides a storage medium, which stores computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the device linkage real-time broadcast method as described in any of the above embodiments.
在一个实施例中,本申请还提供了一种计算机设备,所述计算机设备中存储有计算机可读指令,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行如上述实施例中任一项所述设备联动实时播报方法的步骤。In one embodiment, the present application also provides a computer device, in which computer-readable instructions are stored. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the device linkage real-time broadcast method as described in any of the above embodiments.
示意性地,如图5所示,图5为本申请实施例提供的一种计算机设备的内部结构示意图,该计算机设备300可以被提供为一服务器。参照图5,计算机设备300包括处理组件302,其进一步包括一个或多个处理器,以及由存储器301所代表的存储器资源,用于存储可由处理组件302的执行的指令,例如应用程序。存储器301中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件302被配置为执行指令,以执行上述任意实施例的设备联动实时播报方法。Schematically, as shown in FIG. 5 , FIG. 5 is a schematic diagram of the internal structure of a computer device provided in an embodiment of the present application, and the computer device 300 can be provided as a server. Referring to FIG. 5 , the computer device 300 includes a processing component 302, which further includes one or more processors, and a memory resource represented by a memory 301 for storing instructions that can be executed by the processing component 302, such as an application. The application stored in the memory 301 may include one or more modules, each of which corresponds to a set of instructions. In addition, the processing component 302 is configured to execute instructions to execute the device linkage real-time broadcast method of any of the above embodiments.
计算机设备300还可以包括一个电源组件303被配置为执行计算机设备300的电源管理,一个有线或无线网络接口304被配置为将计算机设备300连接到网络,和一个输入输出(I/O)接口305。计算机设备300可以操作基于存储在存储器301的操作系统,例如Windows Server TM、Mac OS XTM、Unix TM、Linux TM、Free BSDTM或类似。The computer device 300 may also include a power supply component 303 configured to perform power management of the computer device 300, a wired or wireless network interface 304 configured to connect the computer device 300 to a network, and an input/output (I/O) interface 305. The computer device 300 may operate based on an operating system stored in the memory 301, such as Windows Server TM, Mac OS XTM, Unix TM, Linux TM, Free BSDTM, or the like.
本领域技术人员可以理解,图5中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art will understand that the structure shown in FIG. 5 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的 要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements that are inherent to such process, method, article or device. Elements. In the absence of more limitations, an element defined by the phrase "comprising a ..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间可以根据需要进行组合,且相同相似部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。 The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

  1. 一种设备联动实时播报方法,其特征在于,所述方法包括:A device linkage real-time broadcast method, characterized in that the method comprises:
    响应于客户端发起的实时播报请求,获取待播报设备列表以及与待播报设备列表对应的组装参数,所述待播报设备列表包括多个播报设备;In response to a real-time broadcast request initiated by a client, a list of devices to be broadcast and assembly parameters corresponding to the list of devices to be broadcast are obtained, wherein the list of devices to be broadcast includes a plurality of broadcast devices;
    基于所述组装参数,建立所述客户端与各个播报设备之间的实时传输通道;Based on the assembly parameters, a real-time transmission channel is established between the client and each broadcasting device;
    接收用户在所述客户端实时输入的音频数据,利用所述实时传输通道将所述音频数据实时传播至每个所述播报设备;Receiving audio data inputted by the user in real time on the client, and transmitting the audio data to each of the broadcasting devices in real time by using the real-time transmission channel;
    在接收到所述客户端发起的结束播报指令时,对所述音频数据进行存储。When receiving the end broadcast instruction initiated by the client, the audio data is stored.
  2. 根据权利要求1所述的设备联动实时播报方法,其特征在于,所述响应于客户端发起的实时播报请求,获取待播报设备列表以及与待播报设备列表对应的组装参数,包括:The device linkage real-time broadcast method according to claim 1 is characterized in that, in response to the real-time broadcast request initiated by the client, obtaining the list of devices to be broadcast and the assembly parameters corresponding to the list of devices to be broadcast, comprises:
    利用业务平台对客户端发起的实时播报请求进行数据分析,确定待播报设备列表;Use the business platform to perform data analysis on the real-time broadcast requests initiated by the client and determine the list of devices to be broadcasted;
    根据所述待播报设备列表,向语音网关管理服务获取语音网关连接信息以及会话ID;According to the list of devices to be broadcasted, obtain voice gateway connection information and session ID from the voice gateway management service;
    基于所述语音网关连接信息和所述会话ID,构建所述待播报设备列表对应的组装参数。Based on the voice gateway connection information and the session ID, assembly parameters corresponding to the list of devices to be broadcast are constructed.
  3. 根据权利要求2所述的设备联动实时播报方法,其特征在于,所述利用业务平台对所述实时播报请求进行数据分析,确定待播报设备列表,包括:The device linkage real-time broadcast method according to claim 2 is characterized in that the use of the service platform to perform data analysis on the real-time broadcast request to determine the list of devices to be broadcast includes:
    利用业务平台对客户端发起的实时播报请求进行数据分析,确定初始设备列表;Use the business platform to perform data analysis on the real-time broadcast request initiated by the client and determine the initial device list;
    从所述初始设备列表中筛选出处于空闲状态的播报设备,形成待播报设备列表。The idle broadcasting devices are screened out from the initial device list to form a list of devices to be broadcasted.
  4. 根据权利要求2所述的设备联动实时播报方法,其特征在于,所述基于所述组装参数,建立所述客户端与各个播报设备之间的实时传输通道,包括:The device linkage real-time broadcast method according to claim 2 is characterized in that the real-time transmission channel between the client and each broadcast device is established based on the assembly parameters, comprising:
    将所述组装参数和所述待播报设备列表下发至信令服务,以便所述信令服务将所述组装参数下发给所述待播报设备列表中的每个播报设备;Sending the assembly parameters and the list of devices to be broadcasted to a signaling service, so that the signaling service sends the assembly parameters to each broadcasting device in the list of devices to be broadcasted;
    基于所述组装参数包含的语音网关连接信息,触发每个所述播报设备与语音网关进行连接;Based on the voice gateway connection information included in the assembly parameters, trigger each of the broadcasting devices to connect to the voice gateway;
    将所述组装参数返回给所述客户端,以使所述客户端根据所述语音网关连 接信息与所述语音网关进行连接;The assembly parameters are returned to the client so that the client can connect to the voice gateway according to the Connecting information to the voice gateway;
    当所述客户端以及每个所述播报设备与所述语音网关进行连接后,基于所述客户端以及每个所述播报设备携带的会话ID,利用所述语音网关建立所述客户端与各个所述播报设备之间的实时传输通道。After the client and each of the broadcasting devices are connected to the voice gateway, based on the session ID carried by the client and each of the broadcasting devices, the voice gateway is used to establish a real-time transmission channel between the client and each of the broadcasting devices.
  5. 根据权利要求1所述的设备联动实时播报方法,其特征在于,所述在接收到所述客户端发起的结束播报指令时,对所述音频数据进行存储,包括:The device linkage real-time broadcast method according to claim 1 is characterized in that when receiving the end broadcast instruction initiated by the client, the audio data is stored, comprising:
    接收到所述客户端向语音网关发起的结束播报指令时,利用所述语音网关向业务平台获取上传地址;When receiving the end broadcast instruction initiated by the client to the voice gateway, using the voice gateway to obtain the upload address from the service platform;
    基于所述上传地址,将所述音频数据上传至资源池进行存储。Based on the upload address, the audio data is uploaded to a resource pool for storage.
  6. 根据权利要求1所述的设备联动实时播报方法,其特征在于,所述方法还包括:The device linkage real-time broadcast method according to claim 1, characterized in that the method further comprises:
    在接收所述客户端向所述语音网关发起的结束播报指令后,获取当前播报数据,并将所述当前播报数据上报至所述业务平台,所述当前播报数据包括各个所述设备的当前播报状态、播报详情以及资源池的存储信息;After receiving the end broadcast instruction initiated by the client to the voice gateway, obtaining current broadcast data and reporting the current broadcast data to the service platform, the current broadcast data including the current broadcast status of each device, broadcast details and storage information of the resource pool;
    利用所述业务平台对所述当前播报数据进行记录。The current broadcast data is recorded using the service platform.
  7. 一种设备联动实时播报装置,其特征在于,包括:A device linkage real-time broadcasting device, characterized by comprising:
    数据获取模块,用于响应于客户端发起的实时播报请求,获取待播报设备列表以及与待播报设备列表对应的组装参数,所述待播报设备列表包括多个播报设备;A data acquisition module, configured to obtain a list of devices to be broadcast and assembly parameters corresponding to the list of devices to be broadcast in response to a real-time broadcast request initiated by a client, wherein the list of devices to be broadcast includes a plurality of broadcast devices;
    传输通道建立模块,用于基于所述组装参数,建立所述客户端与各个播报设备之间的实时传输通道;A transmission channel establishment module, used to establish a real-time transmission channel between the client and each broadcasting device based on the assembly parameters;
    实时传输模块,接收用户在所述客户端实时输入的音频数据,利用所述实时传输通道将所述音频数据实时传播至每个所述播报设备;A real-time transmission module receives audio data inputted by the user in real time on the client, and transmits the audio data to each of the broadcasting devices in real time by using the real-time transmission channel;
    数据更新模块,用于在接收到所述客户端发起的结束播报指令时,对所述音频数据进行存储。The data updating module is used to store the audio data when receiving the end broadcast instruction initiated by the client.
  8. 根据权利要求7所述的设备联动实时播报装置,其特征在于,所述数据获取模块,包括:The device linkage real-time broadcasting apparatus according to claim 7, characterized in that the data acquisition module comprises:
    数据分析子模块,用于利用业务平台对客户端发起的实时播报请求进行数据分析,确定待播报设备列表;The data analysis submodule is used to use the business platform to perform data analysis on the real-time broadcast request initiated by the client and determine the list of devices to be broadcasted;
    连接信息获取子模块,用于根据所述待播报设备列表,向语音网关管理服务获取语音网关连接信息以及会话ID; A connection information acquisition submodule, used to obtain voice gateway connection information and session ID from the voice gateway management service according to the list of devices to be broadcasted;
    组装参数构建模块,用于基于所述语音网关连接信息和所述会话ID,构建所述待播报设备列表对应的组装参数。An assembly parameter construction module is used to construct assembly parameters corresponding to the list of devices to be broadcast based on the voice gateway connection information and the session ID.
  9. 一种存储介质,其特征在于:所述存储介质中存储有计算机可读指令,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行如权利要求1至6中任一项所述设备联动实时播报方法的步骤。A storage medium, characterized in that: the storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the device linkage real-time broadcast method as described in any one of claims 1 to 6.
  10. 一种计算机设备,其特征在于,包括:一个或多个处理器,以及存储器;A computer device, comprising: one or more processors, and a memory;
    所述存储器中存储有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,执行如权利要求1至6中任一项所述设备联动实时播报方法的步骤。 The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the device linkage real-time broadcast method as described in any one of claims 1 to 6 are performed.
PCT/CN2023/129270 2022-11-14 2023-11-02 Device linkage real-time broadcast method and apparatus, and storage medium and computer device WO2024104183A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211422298.6 2022-11-14
CN202211422298.6A CN115720121A (en) 2022-11-14 2022-11-14 Equipment linkage real-time broadcasting method and device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
WO2024104183A1 true WO2024104183A1 (en) 2024-05-23

Family

ID=85255134

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/129270 WO2024104183A1 (en) 2022-11-14 2023-11-02 Device linkage real-time broadcast method and apparatus, and storage medium and computer device

Country Status (2)

Country Link
CN (1) CN115720121A (en)
WO (1) WO2024104183A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115720121A (en) * 2022-11-14 2023-02-28 天翼数字生活科技有限公司 Equipment linkage real-time broadcasting method and device, storage medium and computer equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533194A (en) * 2013-09-27 2014-01-22 邵丹殊 Emergency broadcasting method and mobile fixed line telephone device
CN104144162A (en) * 2014-07-16 2014-11-12 国家电网公司 Intelligent voice linkage speaking implementation method and system
CN206743261U (en) * 2017-06-08 2017-12-12 成都西亿达电子科技有限公司 Emergent broadcast message adapter
CN108418819A (en) * 2018-02-27 2018-08-17 湖南农业大学 A kind of rural area emergent broadcast stream media live broadcasting method and application
US20190124399A1 (en) * 2017-10-25 2019-04-25 Line Corporation Method, system, and non-transitory computer readable medium for audio feedback during live broadcast
CN111104088A (en) * 2018-10-25 2020-05-05 阿里巴巴集团控股有限公司 Method and system for broadcasting information through voice equipment
CN114257323A (en) * 2021-12-20 2022-03-29 湖南康通电子股份有限公司 Method, system and medium for triggering broadcast based on peripheral signals
CN115134340A (en) * 2022-06-30 2022-09-30 杭州视洞科技有限公司 Low-delay intelligent cloud broadcasting method based on camera
CN115720121A (en) * 2022-11-14 2023-02-28 天翼数字生活科技有限公司 Equipment linkage real-time broadcasting method and device, storage medium and computer equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533194A (en) * 2013-09-27 2014-01-22 邵丹殊 Emergency broadcasting method and mobile fixed line telephone device
CN104144162A (en) * 2014-07-16 2014-11-12 国家电网公司 Intelligent voice linkage speaking implementation method and system
CN206743261U (en) * 2017-06-08 2017-12-12 成都西亿达电子科技有限公司 Emergent broadcast message adapter
US20190124399A1 (en) * 2017-10-25 2019-04-25 Line Corporation Method, system, and non-transitory computer readable medium for audio feedback during live broadcast
CN108418819A (en) * 2018-02-27 2018-08-17 湖南农业大学 A kind of rural area emergent broadcast stream media live broadcasting method and application
CN111104088A (en) * 2018-10-25 2020-05-05 阿里巴巴集团控股有限公司 Method and system for broadcasting information through voice equipment
CN114257323A (en) * 2021-12-20 2022-03-29 湖南康通电子股份有限公司 Method, system and medium for triggering broadcast based on peripheral signals
CN115134340A (en) * 2022-06-30 2022-09-30 杭州视洞科技有限公司 Low-delay intelligent cloud broadcasting method based on camera
CN115720121A (en) * 2022-11-14 2023-02-28 天翼数字生活科技有限公司 Equipment linkage real-time broadcasting method and device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN115720121A (en) 2023-02-28

Similar Documents

Publication Publication Date Title
WO2024104183A1 (en) Device linkage real-time broadcast method and apparatus, and storage medium and computer device
US7453488B2 (en) Sharing of prerecorded motion video over an Internet work
CN101123527B (en) A stream media system, signaling forward device and stream media transmission method
CN104253814B (en) A kind of Streaming Media processing method, server and browser
US20140286180A1 (en) System and method for managing multimedia communciations across convergent networks
CN102263988B (en) Message service realization method of internet protocol television (IPTV) and system thereof
CN101018318A (en) A stream media system, signaling forward device and stream media transmission method
US20080317238A1 (en) DISTRIBUTED MEDIA RESOURCES IN VoIP NETWORKS FOR PROVIDING SERVICES
US20070226310A1 (en) Automatically providing announcements for a push-to-talk communication session
WO2013185655A1 (en) Method and device for distributing mobile attendant call
JP2012090250A (en) Multi-layer stack platform for cloud communications
CN104683734A (en) Video surveillance content adaptation method, system, central server and device
CN113014847A (en) Method and system for realizing audio and video communication based on hybrid cloud architecture
CN103618967A (en) Method and device for interaction of mobile terminal and television end
CN115664989A (en) Monitoring system and method of cloud desktop
CN103648056A (en) Point-to-point transmission method and apparatus for smart television
KR20070024515A (en) Access system and access method
CN109587433B (en) Point adjusting method and point adjusting device
CN109842590B (en) Processing method and device for survey task and computer readable storage medium
CN107846609B (en) Real-time transmission method, device and system for control room data
CN111818171A (en) Information interaction method, device, server and platform supporting multi-party cooperative work
CN102387138B (en) Screen-saving based data transmission method and device
WO2007137500A1 (en) Public video system and implementation method
CN115379279A (en) Multi-screen linkage interaction method, device and system, storage medium and electronic equipment
US8339953B2 (en) Apparatus and method for monitoring data transmitter