CN116825129A - Method, equipment and medium for accurately distributing audio stream - Google Patents
Method, equipment and medium for accurately distributing audio stream Download PDFInfo
- Publication number
- CN116825129A CN116825129A CN202310522227.1A CN202310522227A CN116825129A CN 116825129 A CN116825129 A CN 116825129A CN 202310522227 A CN202310522227 A CN 202310522227A CN 116825129 A CN116825129 A CN 116825129A
- Authority
- CN
- China
- Prior art keywords
- audio stream
- power amplifier
- audio
- playing
- tag
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000013507 mapping Methods 0.000 claims abstract description 59
- 238000009826 distribution Methods 0.000 claims abstract description 15
- 238000003860 storage Methods 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 12
- 238000001514 detection method Methods 0.000 claims description 9
- 238000006243 chemical reaction Methods 0.000 claims description 6
- 230000001172 regenerating effect Effects 0.000 claims description 3
- 238000012795 verification Methods 0.000 claims description 3
- 239000012634 fragment Substances 0.000 claims description 2
- 230000005540 biological transmission Effects 0.000 description 15
- 230000003993 interaction Effects 0.000 description 14
- 230000003321 amplification Effects 0.000 description 7
- 238000003199 nucleic acid amplification method Methods 0.000 description 7
- 230000000977 initiatory effect Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000012790 confirmation Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 101100384355 Mus musculus Ctnnbip1 gene Proteins 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000032683 aging Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/03—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters
- G10L25/18—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters the extracted parameters being spectral information of each sub-band
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/27—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the analysis technique
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/48—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0861—Generation of secret information including derivation or calculation of cryptographic keys or passwords
- H04L9/0863—Generation of secret information including derivation or calculation of cryptographic keys or passwords involving passwords or one-time passwords
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/30—Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3247—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3263—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving certificates, e.g. public key certificate [PKC] or attribute certificate [AC]; Public key infrastructure [PKI] arrangements
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The invention relates to the field of audio stream forwarding, and particularly discloses a method, equipment and medium for accurately distributing audio streams, wherein the method comprises the steps that a service server acquires a playing instruction in real time; obtaining audio data according to the audio content, converting the audio data into an audio stream, generating an audio stream tag, and attaching the audio stream tag before each segment of the audio stream; the logic server establishes a mapping relation between the audio stream tag and a plurality of power amplifier loudspeakers in the name list according to the playing instruction; the logic server detects whether a plurality of power amplifier loudspeakers corresponding to the mapping relation work normally or not; if not, feeding back error information of the power amplifier loudspeaker, and ending the audio stream playing; if so, according to the mapping relation and the audio stream labels, transmitting the audio stream to a plurality of power amplifier loudspeakers; a plurality of power amplifier horns play the received audio stream. The invention realizes accurate distribution of the digital audio stream with convenient operation, digital software assistance and high utilization rate by automatically generating the audio stream label and establishing the mapping.
Description
Technical Field
The present invention relates to the field of audio stream forwarding, and in particular, to a method, apparatus, and medium for accurately distributing an audio stream.
Background
With the development of modern digital technology, traditional analog audio signal transmission is gradually replaced by digital audio signal transmission with better transmission accuracy and anti-interference capability. However, in the common scenes such as school broadcasting, market broadcasting, and hall sounding, one-to-one wiring from a main room to each speaker and audio stream transmission are often used, so that one-to-many forwarding cannot be performed, and the voice coverage is narrow.
In a common audio distribution and transmission scheme, specific hardware support such as a sound card, a power amplification chip and the like is needed in the transmission process, and the transmission process is more limited by the hardware. The distribution operation is complicated, the coupling performance is not high, and the probability of error or problem is high; the production and maintenance costs are high.
Secondly, the existing audio stream forwarding, transmitting and playing products are limited in application field to the past analog circuits, and the products are limited due to the limitation of the analog circuits.
Disclosure of Invention
In order to overcome the problems described above, the present invention provides a method, apparatus, and medium for accurate distribution of audio streams.
The invention provides a method for accurately distributing audio streams, which comprises the following steps: the service server acquires a playing instruction in real time; the playing instruction comprises a name list for designating a plurality of power amplifier speakers to be played and audio content to be played;
the service server obtains audio data according to the audio content, converts the audio data into an audio stream, generates an audio stream tag, and attaches the audio stream tag before each segment of the audio stream;
the logic server establishes a mapping relation between the audio stream tag and a plurality of power amplifier loudspeakers in the name list according to the playing instruction;
the logic server detects whether a plurality of power amplifier speakers corresponding to the mapping relation work normally or not;
if not, feeding back the error information of the power amplifier loudspeaker, and ending the audio stream playing;
if so, sending the audio stream to a plurality of power amplifier loudspeakers according to the mapping relation and the audio stream labels;
and the plurality of power amplifier loudspeakers play the received audio stream.
Preferably, the sending the audio stream to the plurality of power amplifier speakers according to the mapping relationship and the audio stream tag specifically includes:
analyzing the audio stream labels of the audio streams, and confirming a plurality of power amplifier speakers required to be played by the audio streams according to the mapping relation;
and sending the audio stream to a plurality of power amplifier loudspeakers through a data link.
Preferably, the playing instruction further comprises playing time;
the logic server confirms whether to play the received audio stream at the playing time according to the mapping relation and the audio stream label;
if yes, the logic server sends the audio stream to the power amplifier loudspeaker at the playing time;
otherwise, the error information is fed back.
Preferably, the playing instruction further comprises a broadcasting priority;
when a plurality of audio streams are mapped to the same power amplifier loudspeaker at the same time, the logic server only sends the audio stream with the highest broadcasting priority to the power amplifier loudspeaker.
Preferably, the establishing a mapping relationship between the audio stream tag and the plurality of power amplifier speakers in the name list specifically includes:
the logic server analyzes a plurality of power amplifier speakers corresponding to a name list in the playing instruction;
inquiring MAC addresses corresponding to a plurality of power amplifier loudspeakers;
and establishing mapping relation between the queried MAC addresses and the audio stream labels.
Preferably, the method further comprises the steps of:
the service server generates a pair of public key and private key, digital signature is carried out on the audio stream through the private key, and a digital certificate is generated through the public key;
the service server sends the audio stream with the audio stream tag attached and simultaneously sends out a digital certificate;
and the logic server verifies whether the digital signature of the audio stream is correct or not through the digital certificate, if so, the digital signature is sent to a plurality of power amplifier loudspeakers, otherwise, verification failure information is fed back, and the audio stream playing is finished.
Preferably, the generating an audio stream tag specifically includes:
generating a first audio stream tag through a random algorithm;
retrieving whether a repetition exists between the first audio stream tag and an existing audio stream tag;
if so, regenerating the first audio stream tag;
otherwise, outputting the first audio stream tag.
The invention also provides a device for accurately distributing the audio stream, which comprises: the device comprises an instruction module, a conversion module, a mapping module, a detection module, a sending module and a playing module;
the instruction module is used for acquiring a playing instruction in real time through the service server; the playing instruction comprises a name list for designating a plurality of power amplifier speakers to be played and audio content to be played;
the conversion module is used for obtaining audio data according to the audio content through the service server, converting the audio data into an audio stream, generating an audio stream tag, and attaching the audio stream tag to the front of each fragment of the audio stream;
the mapping module is used for establishing mapping relations between the audio stream tag and a plurality of power amplifier loudspeakers in the name list according to the playing instruction through the logic server;
the detection module is used for detecting whether a plurality of power amplifier speakers corresponding to the mapping relation work normally or not through the logic server, if not, feeding back error information of the power amplifier speakers, and ending audio stream playing;
the sending module is used for sending the audio stream to the power amplifier loudspeakers according to the mapping relation and the audio stream label when the detection module detects that the power amplifier loudspeakers work normally;
the playing module is used for playing the received audio stream through a plurality of power amplifier loudspeakers.
The invention provides a terminal device, which comprises a processor and a storage device, wherein the storage device is used for storing one or more programs; the processor implements the above-described method of accurate distribution of audio streams when the one or more programs are executed by the processor.
The invention provides a computer readable storage medium, which comprises a stored computer program, wherein the computer program is used for controlling equipment where the computer readable storage medium is located to execute the method for accurately distributing the audio stream.
The beneficial effects of the invention are as follows:
(1) By automatically generating the audio stream labels and establishing the mapping relation, the digital audio stream forwarding with convenient operation, digital software assistance and high utilization rate is realized.
(2) The audio stream is forwarded through the mapping of the digital software acting loudspeaker and the audio stream label, so that the hardware dependence is reduced, and the implementation cost is low; the full digital architecture is adopted, so that the safety and the reliability are high; the transmission efficiency is high, the simultaneous transmission of multiple paths of audios can be realized, and the multiple power amplifier loudspeakers cooperatively play.
Preferably, by adding different audio stream labels, different delay playing effects can be realized for a plurality of power amplifier speakers, and more complex audio stream distribution can be performed.
Preferably, the digital signature and the digital certificate are used for signing and verifying the audio stream content, so that the correctness of the transmission of the audio stream data packet can be ensured, and the playing content is prevented from being tampered.
Drawings
The invention will be further described with reference to the accompanying drawings, in which:
FIG. 1 is a flow chart of a method according to one embodiment of the present invention;
FIG. 2 is a diagram of a device connection relationship according to another embodiment of the present invention;
fig. 3 is a logic flow diagram of yet another embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The audio stream is a common transmission scheme in the existing audio pushing technology center, the digital signals of the audio are obtained by using hardware such as a sound card, and after the digital signals are converted into the audio stream, the audio is forwarded to the power amplifier loudspeaker through the hardware, which is a common technical scheme in the field.
Referring to fig. 1, as one implementation of the present invention, a plurality of power amplifier speakers are respectively installed in an area where voice needs to be broadcasted, the power amplifier speakers are connected with digital server software through network cables or wireless network data, and the digital server software is in communication connection with a man-machine interaction interface. The method for accurately distributing the audio stream in the embodiment is used for sending the audio stream data to a plurality of power amplifier loudspeakers through the logic server after the service server receives the playing instruction, and the implementation steps are as follows:
s1, a service server acquires a playing instruction in real time; the playing instruction comprises a name list for designating a plurality of power amplifier loudspeakers to be played and audio content to be played;
s2, the service server obtains audio data according to the audio content, converts the audio data into an audio stream, generates an audio stream tag, and attaches the audio stream tag to each segment of the audio stream;
s3, the logic server establishes a mapping relation between the audio stream tag and a plurality of power amplifier loudspeakers in the name list according to the playing instruction;
s4, the logic server detects whether a plurality of power amplifier speakers corresponding to the mapping relation work normally or not;
s51, if not, feeding back error information of the power amplifier loudspeaker, and ending audio stream playing;
s52, if so, sending an audio stream to a plurality of power amplifier loudspeakers according to the mapping relation and the audio stream labels;
s6, a plurality of power amplifier loudspeakers play the received audio stream.
Preferably, in step S52, the audio stream with the audio stream tag is transmitted, which specifically includes the following steps:
s51, analyzing an audio stream label of the audio stream, and confirming a plurality of power amplifier speakers required to be played by the audio stream according to the mapping relation;
s52, sending audio streams to a plurality of power amplifier loudspeakers through data links.
According to the embodiment, the digital audio stream forwarding with convenient operation, digital software assistance and high utilization rate is realized by automatically generating the audio stream labels and establishing the mapping relation. The audio stream is forwarded through the mapping of the digital software acting loudspeaker and the audio stream label, the dependence on hardware is less, and the realization cost is low; the full digital architecture is adopted, so that the safety and the reliability are high; the transmission efficiency is high, the simultaneous transmission of multiple paths of audios can be realized, and the multiple power amplifier loudspeakers cooperatively play.
Preferably, the playing instruction further comprises playing time;
the logic server confirms whether to play the received audio stream at the playing time according to the mapping relation and the audio stream label;
if yes, the logic server sends an audio stream to the power amplifier loudspeaker at the playing time;
otherwise, the error information is fed back.
By adding the playing time, the power amplifier horns can play again in the required time, the function of timing playing can be realized, the audio streams are sent to the logic server or the power amplifier horns before certain contents are required to be broadcast, and the playing time of each power amplifier horn can be finely adjusted by setting different playing times for different power amplifier horns, so that the tuning effect is achieved, and the listening effect of a listening area is better. Similarly, fine tuning parameters of audio playing data such as tone quality, loudness and the like can be added in the playing instruction, and tuning is further carried out on the power amplifier loudspeaker.
By adding different audio stream labels, different tuning, configuration and time-delay playing effects can be realized for a plurality of power amplifier loudspeakers, and more complex audio stream distribution is realized.
In order to more accurately realize the tuning effect, the storage, analysis and judgment programs of parameters such as playing time and the like can be executed by a logic circuit at the loudspeaker end of the power amplifier, the parameters such as the playing time and the like are reduced from being interfered by network stability, and the execution is accurate.
Preferably, the step S3 is implemented as follows:
s31, the logic server analyzes a plurality of power amplifier speakers corresponding to the name list in the playing instruction;
s32, inquiring MAC addresses corresponding to the power amplifier loudspeakers;
s33, establishing mapping relation between the queried MAC addresses and the audio stream labels.
The embodiment also provides a device for accurately distributing audio streams, which comprises: the device comprises an instruction module, a conversion module, a mapping module, a detection module, a sending module and a playing module;
the instruction module is used for acquiring a playing instruction in real time through the service server; the playing instruction comprises a name list for designating a plurality of power amplifier loudspeakers to be played and audio content to be played;
the conversion module is used for obtaining audio data according to the audio content through the service server, converting the audio data into an audio stream, generating an audio stream tag, and attaching the audio stream tag to the front of each segment of the audio stream;
the mapping module is used for establishing a mapping relation between the audio stream tag and a plurality of power amplifier loudspeakers in the name list according to the playing instruction through the logic server;
the detection module is used for detecting whether a plurality of power amplifier speakers corresponding to the mapping relation work normally or not through the logic server, if not, feeding back error information of the power amplifier speakers, and ending audio stream playing;
the sending module is used for sending the audio stream to the power amplifier loudspeakers according to the mapping relation and the audio stream label when the detection module detects that the power amplifier loudspeakers work normally;
the playing module is used for playing the received audio stream through a plurality of power amplifier loudspeakers.
Referring to fig. 2 and fig. 3, as another embodiment of the present solution, the present invention is applied to a broadcasting system of a station, and a plurality of power amplifier speakers are connected to perform voice broadcasting through a service server and a logic server. The specific equipment and software adopted in this embodiment are described as follows:
human-computer interaction interface: the method is used for visualizing, editing, launching and the like of the playing area of the power amplifier loudspeaker;
service server: the information exchange between the upper layer (man-machine interaction interface) and the bottom layer (logic server) is carried out, the audio is decoded, and the loudspeaker information is forwarded to be displayed on the man-machine interaction interface;
the logic server: managing the power amplifier horn, performing audio stream mapping, preempting tasks, determining whether to forward the audio stream according to the priority, and forwarding information of the power amplifier horn to a service server;
the power amplifier horn is provided with a network module and an IP and MAC address, and plays a role only, and in other embodiments, the power amplifier horn end can also integrate a logic circuit simultaneously for analyzing the mapping relation of the audio stream labels and verifying the digital signature, so that the logic server can group audio stream data without carrying out selective transmission of the audio stream point to point, and the power amplifier horn can determine whether to play or not according to the mapping relation and the audio stream labels. The mapping relation is applied to the scheme, and the mapping relation is substantially equivalent to the logic server, and further comprises a logic circuit integrated by each power amplifier loudspeaker, so that all functions of the logic server are uniformly completed.
The logic server is linked with the power amplifier loudspeaker by adopting a UDP network cable, wireless communication or wireless network and the like;
the man-machine interaction interface, the service server and the logic server adopt websocket link.
The service server and the logic server of the embodiment may be collectively referred to as a digital software server, and the servers are not limited to two/more server devices or different control programs of the same server, and may also exist on the hardware leased by the internet in the form of a cloud server.
The specific implementation steps of this embodiment are as follows:
a1, an operator selects a corresponding power amplifier loudspeaker on a man-machine interaction interface, combines information of the power amplifier loudspeaker into a voice initiating instruction (playing instruction) and sends the voice initiating instruction to a service server;
a2, after receiving the instruction of the man-machine interaction interface, the service server randomly generates an audio stream tag, and combines the audio stream tag with the power amplifier horn information and sends the combined audio stream tag and the power amplifier horn information to the logic server;
a3, after the logic receives the information, mapping the audio stream and the power amplifier loudspeaker, determining whether the power amplifier loudspeaker has a problem or not, and returning an instruction to the service server if the power amplifier loudspeaker has the problem;
a4, after receiving the instruction, the service server sends an audio stream with an audio tag to the logic server;
and A5, the logic server receives the audio stream, analyzes the audio tag of the logic server, and forwards the audio stream to the power amplifier loudspeaker mapped with the audio tag according to the mapping between the previous audio tag and the power amplifier loudspeaker.
When the voice of a certain area needs to be broadcasted, an operator only needs to click the power amplifier loudspeaker through a human-computer interaction interface, initiates a playing instruction to send the playing instruction to the service server, after the service server is combined into relevant logic, the playing instruction is sent to the logic server for managing the power amplifier loudspeaker, the logic server does mapping of an audio stream label and the power amplifier loudspeaker, after the logic server determines that the power amplifier loudspeaker has no problem, the playing instruction is sent back to the service server, the service server starts to start audio stream to the logic server, and after the logic server judges the audio stream of the audio stream label, the playing instruction is sent to the corresponding power amplifier loudspeaker.
Only one audio tag can be generated for a task corresponding to a play instruction, and all audio data packets associated with the task can be the same and cannot be regenerated. The task is a stage from the initiation of a play instruction by the human-computer interaction interface to the beginning of the sound emission of the loudspeaker to the end of the sound emission of the loudspeaker.
Referring to fig. 3, as a further embodiment of the present invention; the playing instruction also comprises a broadcasting priority; when a plurality of audio streams are mapped to the same power amplifier loudspeaker at the same time, the power amplifier loudspeaker only plays the audio stream with the highest broadcasting priority. The specific task initiation flow is as follows:
(1) Selecting a corresponding power amplifier loudspeaker at a manual interaction interface, and selecting a priority for a user, wherein the priority range is 1-100, and the smaller the number is, the larger the priority is; combining the power amplifier horn and the priority information into a playing instruction and sending the playing instruction to a service server;
(2) After receiving the instruction of the manual interaction interface, the service server randomly generates an audio tag by using a UUID algorithm, and then combines the audio tag with the power amplifier horn information and sends the combined audio tag and the power amplifier horn information to the logic server; the audio tag of this embodiment employs a 32-bit tag, an example of which is XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX, wherein X must be a lowercase letter or number;
(3) After the logic receives the information, mapping the audio stream and the MAC address of the power amplifier horn, storing the broadcast priority, determining the state of the power amplifier horn, returning a success instruction to the service server when the state is normal, and returning a failure instruction when the state is abnormal;
(4) If the service server receives a success instruction, the software decodes the MP3/wav file to obtain an audio stream, and adds an audio tag at the head of the audio stream to send to the logic server; and returning a successful broadcasting instruction to the man-machine interaction interface; the MP3/wav file can be a plurality of files; all audio streams of the broadcast adopt audio tags generated by a service server at the beginning, namely one broadcast is opposite to one audio tag until the broadcast is finished; if the service server receives the failure instruction, the current broadcast related resource information is cleared, and a broadcast failure instruction for a human-machine interface is returned;
(5) The logic server receives the audio stream and analyzes the audio tag of the logic server, and forwards the audio stream to the power amplifier horn mapped with the audio tag according to the mapping between the previous audio tag and the power amplifier horn MAC.
In this embodiment, an audio stream tag is generated, and it is required to ensure that the audio stream tag is not repeated; the method comprises the following steps:
a21, generating a first audio stream tag through a random algorithm;
a22, searching whether the first audio stream label and the existing audio stream label are repeated;
a23, if so, regenerating a first audio stream tag;
and A24, outputting the first audio stream label if not.
The task details of this embodiment are specifically implemented as follows:
b1, a manual interaction interface initiates a play instruction which is provided with a selected power amplifier horn MAC address, and the specific program is as follows:
{
"AMP": power amplification Horn A MAC, power amplification Horn B MAC, power amplification Horn C MAC ";
“Priority”:N(1<=N<=100)
}
b2, the service server receives the instruction, generates a random audio tag (HashKey) AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA, combines the power amplifier horn information, and then sends the information to the logic server:
{
"AMP": power amplification Horn A MAC, power amplification Horn B MAC, power amplification Horn C MAC ";
“HashKey”:“AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA”;
“Priority”:N(1<=N<=100)
}
b3, the logic server receives the instruction and maps the audio stream tag and the power amplifier loudspeaker:
map [ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ] [ power amplifier horn A MAC, power amplifier horn B MAC, power amplifier horn C MAC ];
b4, after receiving the logic return confirmation instruction, the service server sends an audio stream to the logic server, wherein the head of the audio stream is provided with an audio stream tag AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA which is randomly generated before; and applies it to the front end of the audio stream, such as: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa once more, once more, where lower case a is a data example of an audio stream;
b5, after receiving the audio stream, the logic server analyzes the audio tag AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA and stores the audio stream; searching an MAC address corresponding to the power amplifier horn equipment A, B, C corresponding to the audio tag AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA in the mapping list; then forwarding the parsed audio stream to a power amplifier speaker device A, B, C;
b6, in the step B1, the power amplifier horn A, B, C may be selected to initiate the broadcast I, assuming that the priority is 2; after this broadcast I initiation; initiating broadcast I I at the selected power amplifier speaker AB, and assuming that the priority is 1; in this time, two paths of broadcast audio streams are transmitted in parallel, and broadcast I and broadcast I I have a common power amplifier loudspeaker AB, but the priority 1 of broadcast I I is higher than the priority 2 of broadcast I, according to the principle that the power amplifier loudspeaker has and only plays one path of audio stream, the logic server forwards the audio stream of broadcast I I to the power amplifier loudspeaker AB according to the priority, and at this time, the power amplifier loudspeaker AB only produces sound of broadcast I I, but not broadcast I; conversely, if the broadcast I I is lower priority than the broadcast I, the power amplifier horn will continue to play the broadcast I sound.
In detail, regarding the audio stream flow, after receiving the logic return confirmation instruction, the service server decodes the audio stream aaaaaaaaaaaaaaaaaaaaa … … according to the existing mp3/wav file, and appends an audio tag AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA to the head of the audio stream, that is:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaaaaaaaaa……
and sending the audio stream to a logic server, and forwarding the audio stream to the relevant power amplifier loudspeaker by the logic server according to the mapping relation which is already done.
When one audio stream corresponds to a plurality of (N) power amplifier loudspeakers, the meaning here is that one audio stream is selected, and according to the selection of a human-computer interaction interface, the audio stream can select the power amplifier loudspeaker A to initiate tasks, can select the power amplifier loudspeaker B to initiate tasks, and can also select the power amplifier loudspeaker A and the power amplifier loudspeaker B to initiate tasks.
Secondly, the multiple paths of audio frequencies in the embodiment may simultaneously correspond to a plurality of same or different power amplifier speakers, that is, the power amplifier speakers corresponding to the multiple paths of audio frequencies may overlap with each other. The preemption problem with the logical server is now involved, where priority needs to be set to the audio stream:
{
"AMP": power amplifier horn A, power amplifier horn B, power amplifier horn C ";
“HashKey”:”AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA”,
“Priority”:1
}
because the power amplifier horn only plays one audio stream at the same time, the lower the number of Priority is, the higher the Priority is. Audio streams with high priority preempt audio stream play tasks with low priority. In this embodiment, the preemptive play task is controlled by a logic server, and the audio stream is forwarded or not is also controlled by the logic server. The audio of the task with the highest priority goes out first, and the audio with the highest priority goes out first.
According to the embodiment, through digital software audio stream forwarding, a mode of mapping audio streams and power amplifier speakers is adopted, so that one audio channel can realize a plurality of power amplifier speakers/multiple audio channels can realize a plurality of power amplifier speakers, and forwarding efficiency is high.
The embodiment is simple in implementation principle through digital software audio stream forwarding, can reduce misoperation such as error connection lines or error selection channels which are easy to occur during hardware forwarding, avoid safety problems such as electric shock and the like, and can also avoid influence on the reliability of a system due to hardware aging and the like.
As another embodiment of the present invention, the rest of the foregoing is a substantial difference in that the logic server includes logic circuits located on each power amplifier speaker terminal and a general control program, that is, the logic circuits of each power amplifier speaker play a role in mapping and distributing audio streams together.
The service server of the embodiment randomly generates a pair of public key and private key when receiving a playing instruction, digitally signs the audio stream through the private key, and generates a digital certificate through the public key;
the service server sends out the digital certificate together while sending the audio stream with the audio stream tag;
the logic server verifies whether the digital signature of the audio stream is correct or not through the digital certificate;
if so, the power amplifier is sent to a plurality of power amplifier loudspeakers,
otherwise, feedback the verification failure information, and ending the audio stream playing.
The embodiment signs and verifies the audio stream content through the digital signature and the digital certificate, so that the accuracy of audio stream data packet transmission can be ensured, and the played content is prevented from being tampered. In some embodiments, the content of the audio stream may also be encrypted by digital signatures, preventing the audio stream from being hacked in advance into its play.
The invention also discloses a terminal device, which comprises a processor and a storage device, wherein the storage device is used for storing one or more programs; the processor implements the method of accurate distribution of audio streams described above when one or more programs are executed by the processor. The processor may be a central processing unit (Central Process ing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Appl icat ion Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, referred to as a control center for the test equipment, that interfaces and lines to various parts of the overall test equipment.
The storage means may be used for storing computer programs and/or modules, and the processor may implement various functions of the terminal device by running or executing the computer programs and/or modules stored in the storage means, and invoking data stored in the storage means. The storage device may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the terminal device, etc. In addition, the storage device may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), at least one disk storage device, a Flash memory device, or other volatile solid-state storage device.
Wherein the integrated modules/units of the device for accurate distribution of audio streams may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the present invention may implement all or part of the flow of the method of the above-described embodiments, or may be implemented by a computer program to instruct related hardware, and the computer program may be stored in at least one computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
It should be noted that the embodiments of the apparatus and device described above are only schematic, where the units described as separate units may or may not be physically separated, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the device embodiment provided by the invention, the connection relation between the modules represents that the modules have communication connection, and can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
Claims (9)
1. A method for accurate distribution of audio streams, the steps of implementing comprising:
the service server acquires a playing instruction in real time; the playing instruction comprises a name list for designating a plurality of power amplifier speakers to be played and audio content to be played;
the service server obtains audio data according to the audio content, converts the audio data into an audio stream, generates an audio stream tag, and attaches the audio stream tag before each segment of the audio stream;
the logic server establishes a mapping relation between the audio stream tag and a plurality of power amplifier loudspeakers in the name list according to the playing instruction;
the logic server detects whether a plurality of power amplifier speakers corresponding to the mapping relation work normally or not;
if not, feeding back the error information of the power amplifier loudspeaker, and ending the audio stream playing;
if so, sending the audio stream to a plurality of power amplifier loudspeakers according to the mapping relation and the audio stream labels;
and the plurality of power amplifier loudspeakers play the received audio stream.
2. The method for precisely distributing audio streams according to claim 1, wherein the sending the audio streams to the plurality of power amplifier speakers according to the mapping relation and the audio stream labels is specifically as follows:
analyzing the audio stream labels of the audio streams, and confirming a plurality of power amplifier speakers required to be played by the audio streams according to the mapping relation;
and sending the audio stream to a plurality of power amplifier loudspeakers through a data link.
3. The method for precisely distributing audio streams according to claim 1, wherein the playing instruction further includes a playing time;
the logic server confirms whether to play the received audio stream at the playing time according to the mapping relation and the audio stream label;
if yes, the logic server sends the audio stream to the power amplifier loudspeaker at the playing time;
otherwise, the error information is fed back.
4. The method for accurate distribution of audio streams according to claim 1, characterized in that said play instruction further comprises a broadcast priority;
when a plurality of audio streams are mapped to the same power amplifier loudspeaker at the same time, the logic server only sends the audio stream with the highest broadcasting priority to the power amplifier loudspeaker.
5. The method for precisely distributing audio streams according to claim 1, wherein the mapping relationship between the audio stream tag and the plurality of power amplifier speakers in the name list is established specifically as follows:
the logic server analyzes a plurality of power amplifier speakers corresponding to a name list in the playing instruction;
inquiring MAC addresses corresponding to a plurality of power amplifier loudspeakers;
and establishing mapping relation between the queried MAC addresses and the audio stream labels.
6. The method for accurate distribution of an audio stream according to claim 1, further comprising the steps of:
the service server generates a pair of public key and private key, digital signature is carried out on the audio stream through the private key, and a digital certificate is generated through the public key;
the service server sends the audio stream with the audio stream tag attached and simultaneously sends out a digital certificate;
and the logic server verifies whether the digital signature of the audio stream is correct or not through the digital certificate, if so, the digital signature is sent to a plurality of power amplifier loudspeakers, otherwise, verification failure information is fed back, and the audio stream playing is finished.
7. The method for accurate distribution of audio streams according to claim 1, characterized in that said generating audio stream tags is in particular:
generating a first audio stream tag through a random algorithm;
retrieving whether a repetition exists between the first audio stream tag and an existing audio stream tag;
if so, regenerating the first audio stream tag;
otherwise, outputting the first audio stream tag.
8. An apparatus for accurate distribution of an audio stream, comprising: the device comprises an instruction module, a conversion module, a mapping module, a detection module, a sending module and a playing module;
the instruction module is used for acquiring a playing instruction in real time through the service server; the playing instruction comprises a name list for designating a plurality of power amplifier speakers to be played and audio content to be played;
the conversion module is used for obtaining audio data according to the audio content through the service server, converting the audio data into an audio stream, generating an audio stream tag, and attaching the audio stream tag to the front of each fragment of the audio stream;
the mapping module is used for establishing mapping relations between the audio stream tag and a plurality of power amplifier loudspeakers in the name list according to the playing instruction through the logic server;
the detection module is used for detecting whether a plurality of power amplifier speakers corresponding to the mapping relation work normally or not through the logic server, if not, feeding back error information of the power amplifier speakers, and ending audio stream playing;
the sending module is used for sending the audio stream to the power amplifier loudspeakers according to the mapping relation and the audio stream label when the detection module detects that the power amplifier loudspeakers work normally;
the playing module is used for playing the received audio stream through a plurality of power amplifier loudspeakers.
9. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the computer program, when run, controls a device in which the computer readable storage medium is located to perform a method of accurate distribution of an audio stream according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310522227.1A CN116825129B (en) | 2023-05-09 | 2023-05-09 | Method, equipment and medium for accurately distributing audio stream |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310522227.1A CN116825129B (en) | 2023-05-09 | 2023-05-09 | Method, equipment and medium for accurately distributing audio stream |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116825129A true CN116825129A (en) | 2023-09-29 |
CN116825129B CN116825129B (en) | 2024-02-09 |
Family
ID=88123048
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310522227.1A Active CN116825129B (en) | 2023-05-09 | 2023-05-09 | Method, equipment and medium for accurately distributing audio stream |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116825129B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001356779A (en) * | 2000-06-09 | 2001-12-26 | Fujitsu Ten Ltd | Music data distributing method |
US20060106867A1 (en) * | 2004-11-02 | 2006-05-18 | Microsoft Corporation | System and method for speeding up database lookups for multiple synchronized data streams |
US20140095159A1 (en) * | 2012-09-28 | 2014-04-03 | Samsung Electronics Co., Ltd. | Image processing apparatus and control method thereof and image processing system |
CN103944659A (en) * | 2014-04-29 | 2014-07-23 | 天津市黎明时代轨道交通技术有限公司 | Digital amplifier server based on public broadcasting system |
US20200211064A1 (en) * | 2017-12-29 | 2020-07-02 | Alibaba Group Holding Limited | Smart broadcasting device |
US20200314539A1 (en) * | 2019-03-27 | 2020-10-01 | Microsoft Technology Licensing, Llc | Architecture for usb-synchronized array of speakers |
CN112822624A (en) * | 2021-01-14 | 2021-05-18 | 四川湖山电器股份有限公司 | Linear array loudspeaker detection method and system based on FFT |
CN114999446B (en) * | 2022-07-18 | 2022-11-15 | 广州市保伦电子有限公司 | Speech synthesis system for intelligent broadcasting |
-
2023
- 2023-05-09 CN CN202310522227.1A patent/CN116825129B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001356779A (en) * | 2000-06-09 | 2001-12-26 | Fujitsu Ten Ltd | Music data distributing method |
US20060106867A1 (en) * | 2004-11-02 | 2006-05-18 | Microsoft Corporation | System and method for speeding up database lookups for multiple synchronized data streams |
US20140095159A1 (en) * | 2012-09-28 | 2014-04-03 | Samsung Electronics Co., Ltd. | Image processing apparatus and control method thereof and image processing system |
CN103944659A (en) * | 2014-04-29 | 2014-07-23 | 天津市黎明时代轨道交通技术有限公司 | Digital amplifier server based on public broadcasting system |
US20200211064A1 (en) * | 2017-12-29 | 2020-07-02 | Alibaba Group Holding Limited | Smart broadcasting device |
US20200314539A1 (en) * | 2019-03-27 | 2020-10-01 | Microsoft Technology Licensing, Llc | Architecture for usb-synchronized array of speakers |
CN112822624A (en) * | 2021-01-14 | 2021-05-18 | 四川湖山电器股份有限公司 | Linear array loudspeaker detection method and system based on FFT |
CN114999446B (en) * | 2022-07-18 | 2022-11-15 | 广州市保伦电子有限公司 | Speech synthesis system for intelligent broadcasting |
Non-Patent Citations (2)
Title |
---|
TAEJIN LEE,ET AL.: "Personalized Audio Broadcasting System through the Terrestrial- DMB System", 《2007 DIGEST OF TECHNICAL PAPERS INTERNATIONAL CONFERENCE ON CONSUMER ELECTRONICS》 * |
杨源等: "数据广播系统视频播放的设计与实现", 《电子科技大学学报》, no. 1 * |
Also Published As
Publication number | Publication date |
---|---|
CN116825129B (en) | 2024-02-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8886344B2 (en) | Exchange of metadata between a live sound mixing console and a digital audio workstation | |
US20120317243A1 (en) | Audio processing method and device for remote desktop protocol | |
US9203533B2 (en) | System and method for real-time wireless transmission of digital audio at multiple radio frequencies | |
US20140064519A1 (en) | Distributed, self-scaling, network-based architecture for sound reinforcement, mixing, and monitoring | |
JP6582100B2 (en) | Method and apparatus for providing voice service | |
US20170286055A1 (en) | Method and Apparatus for Audio Mixing and Playing | |
US10284494B2 (en) | Device controlling method, client, server and intermediate device | |
WO2019134306A1 (en) | Message processing method, device, terminal apparatus, and readable storage medium | |
US20150146881A1 (en) | Audio output device to dynamically generate audio ports for connecting to source devices | |
CN108901056A (en) | Method and apparatus for interactive information | |
CN112272170B (en) | Voice communication method and device, electronic equipment and storage medium | |
JP7048557B2 (en) | Network connection methods, devices and storage media for voice devices | |
CN111490908B (en) | Network speed measurement method, device, equipment, medium and speed measurement system | |
US20190130913A1 (en) | System and method for real-time transcription of an audio signal into texts | |
TW201301802A (en) | System and method for recognizing broadcast program content | |
US20180374493A1 (en) | System, control method, and control terminal | |
CN110915220A (en) | Audio input and output device with streaming capability | |
CN116825129B (en) | Method, equipment and medium for accurately distributing audio stream | |
CN107231275B (en) | Method for connection configuration of user equipment and household equipment | |
CN108184193B (en) | Play control method of Bluetooth play terminal, Bluetooth device and computer storage medium | |
WO2020044084A1 (en) | Near-field data migration method and apparatus thereof | |
CN114866905A (en) | Audio processing method and device for vehicle-mounted sound equipment | |
US11818433B2 (en) | System for the reproduction of a multimedia content using an alternative network if poor quality in first network | |
JP4760524B2 (en) | Control device, routing verification method, and routing verification program | |
CN109151819B (en) | Connection authentication method and equipment of wireless access point |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |