CN115150373A - Audio transmission method, terminal device and computer-readable storage medium - Google Patents

Audio transmission method, terminal device and computer-readable storage medium Download PDF

Info

Publication number
CN115150373A
CN115150373A CN202210610833.4A CN202210610833A CN115150373A CN 115150373 A CN115150373 A CN 115150373A CN 202210610833 A CN202210610833 A CN 202210610833A CN 115150373 A CN115150373 A CN 115150373A
Authority
CN
China
Prior art keywords
terminal
audio
audio data
data
data transmission
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.)
Pending
Application number
CN202210610833.4A
Other languages
Chinese (zh)
Inventor
季海交
陈渝文
孟宪富
李韦翰
肖贻恩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tendzone Intelligent Technology Co ltd
Original Assignee
Shenzhen Tendzone Intelligent Technology Co ltd
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 Shenzhen Tendzone Intelligent Technology Co ltd filed Critical Shenzhen Tendzone Intelligent Technology Co ltd
Priority to CN202210610833.4A priority Critical patent/CN115150373A/en
Publication of CN115150373A publication Critical patent/CN115150373A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses an audio transmission method, terminal equipment and a computer readable storage medium, which are applied to a first terminal, wherein the first terminal is provided with at least two data transmission channels, and the method comprises the following steps: determining a second terminal for sending the first audio data; and respectively sending the first audio data to the second terminal through at least two data transmission channels, so that when the second terminal receives the first audio data, the target audio data is determined according to the first audio data, and the target audio data is output. The method of the invention respectively sends the first audio data to the second terminal through the at least two data transmission channels so as to send the same at least two first audio data to the second terminal through different data transmission channels, thereby avoiding that the second terminal can not receive the first audio data for output in time due to abnormal transmission when the first audio data is transmitted only through one data transmission channel, and improving the reliability of data transmission.

Description

Audio transmission method, terminal device and computer-readable storage medium
Technical Field
The present invention relates to the field of audio transmission technologies, and in particular, to an audio transmission method, a terminal device, and a computer-readable storage medium.
Background
In the fields of emergency command, conference rooms, intelligent fire fighting and the like, high reliability is required for audio data transmission, however, at present, audio data are often transmitted through a single network link, and if the network is abnormal in the process of transmitting the audio data, such as channel congestion or unstable network interference, the audio data cannot be transmitted, and the reliability of audio data transmission is low.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an audio transmission method, terminal equipment and a computer readable storage medium, and aims to solve the problems that the network is abnormal, audio data cannot be transmitted, and the reliability of audio data transmission is low.
In order to achieve the above object, the present invention provides an audio transmission method, where the audio transmission method is applied to a first terminal, and the first terminal is provided with at least two data transmission channels, and the audio transmission method includes:
determining a second terminal for sending the first audio data;
and respectively sending the first audio data to the second terminal through at least two data transmission channels, so that when the second terminal receives the first audio data, target audio data are determined according to the first audio data, and the target audio data are output.
Optionally, the step of sending the first audio data to the second terminal through at least two data transmission channels respectively includes:
and respectively sending the first audio data to a server through at least two data transmission channels, so that when the server receives the first audio data, the first audio data is respectively sent to the second terminal through at least two data transmission channels.
Optionally, the audio transmission method further comprises:
receiving second audio data through at least two data transmission channels respectively;
and determining target audio data from the received second audio data, and outputting the target audio data.
Optionally, the manner in which the first terminal is provided with at least two data transmission channels includes that the first terminal is provided with at least two network ports, the at least two network ports are respectively accessed to local area networks of different switches, and the local area networks of the different switches are mutually independent networks.
Optionally, after the step of sending the first audio data to the second terminal through at least two data transmission channels, the method further includes:
and when channel information fed back by a second terminal is received, the first audio data is sent to the second terminal through a target data transmission channel corresponding to the channel information, wherein at least two data transmission channels comprise the target data transmission channel.
In order to achieve the above object, the present invention further provides an audio transmission method, where the audio transmission method is applied to a second terminal, and the second terminal is provided with at least two data transmission channels, and the audio transmission method includes:
receiving first audio data through at least two data transmission channels respectively;
determining target audio data from the received first audio data, and outputting the target audio data.
Optionally, the manner in which the second terminal is provided with at least two data transmission channels includes that the second terminal is provided with at least two network ports, the at least two network ports are local area networks of different switches, and the local area networks of different switches are mutually independent networks.
Optionally, after the step of receiving the first audio data through at least two of the data transmission channels respectively, the method further includes:
determining network state information of at least two data transmission channels;
and determining a target data transmission channel with a good network state according to the network state information, and sending channel information corresponding to the target data transmission channel to the first terminal, so that the first terminal sends the first audio data according to the channel information and the target data transmission channel.
In addition, to achieve the above object, the present invention also provides a terminal device, including: a memory, a processor, and an audio transmission program stored in the memory and executable on the processor, the audio transmission program when executed by the processor implementing the steps of the audio transmission method as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon an audio transmission program which, when executed by the processor, implements the respective steps of the audio transmission method as described above.
Compared with the audio transmission method, the terminal device and the computer readable storage medium which only send the first audio data to the second terminal through one data transmission channel, the first terminal respectively sends the first audio data to the second terminal through at least two data transmission channels so as to send the same at least two first audio data to the second terminal through different data transmission channels, and therefore the problem that when the first audio data is only transmitted through one data transmission channel, the first audio data cannot be sent to the second terminal or the first audio data sent to the second terminal is abnormal due to abnormal transmission, the second terminal cannot receive the first audio data in time for outputting is avoided, and reliability of data transmission is improved.
Drawings
Fig. 1 is a schematic structural diagram of a terminal device according to various embodiments of an audio transmission method of the present invention;
fig. 2 is a flowchart illustrating an audio transmission method applied to a first terminal according to the present invention;
FIG. 3 is a flowchart illustrating an audio transmission method according to the present invention for transmitting first audio data;
FIG. 4 is a data transmission topology diagram of the audio transmission method of the present invention;
FIG. 5 is a flowchart illustrating a method for receiving second audio data according to the present invention;
fig. 6 is a flowchart illustrating an audio transmission method applied to a second terminal according to the present invention;
fig. 7 is a flowchart illustrating an audio transmission method according to the present invention receiving first audio data.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides an audio transmission method, which is applied to a first terminal and comprises the following steps:
determining a second terminal for sending the first audio data;
and respectively sending the first audio data to the second terminal through at least two data transmission channels, so as to determine target audio data according to the first audio data and output the target audio data when the second terminal receives the first audio data.
Compared with the audio transmission method that the first audio data is sent to the second terminal through only one data transmission channel, the first terminal sends the first audio data to the second terminal through at least two data transmission channels respectively so as to send the same at least two first audio data to the second terminal through different data transmission channels, and therefore the problem that when the first audio data is transmitted through only one data transmission channel, the first audio data cannot be sent to the second terminal or the first audio data sent to the second terminal is abnormal due to abnormal transmission, the second terminal cannot receive the first audio data in time for output is avoided, and reliability of data transmission is improved.
In the following description, suffixes such as "module", "part", or "unit" used to indicate elements are used only for facilitating the description of the present invention, and have no particular meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a terminal device according to various embodiments of an audio transmission method of the present invention. The terminal device related to the audio transmission method of the present invention is provided with an audio interface, and the terminal device described in the present invention may include terminal devices such as an audio interface machine, a mobile phone, a tablet computer, a notebook computer, a palm computer, and a Personal Digital Assistant (PDA).
Optionally, the terminal device has an audio transmission function and an audio reception function.
As shown in fig. 1, the terminal device may include: a memory 101 and a processor 102. Those skilled in the art will appreciate that the block diagram of the terminal shown in fig. 1 does not constitute a limitation of the terminal, and that the terminal may include more or less components than those shown, or may combine certain components, or a different arrangement of components. The memory 101 stores therein an operating system and an audio transmission program. The processor 102 is a control center of the terminal device, and the processor 102 executes the audio transmission program stored in the memory 101 to implement the steps of the embodiments of the audio transmission method of the present invention.
Optionally, the terminal device may further include a Display unit 103, where the Display unit 103 includes a Display panel, and the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like, and is used for outputting an interface for displaying browsing of a user.
Optionally, the terminal device may further include a communication unit 104, and the communication unit 104 establishes data communication (the data communication may be IP communication or bluetooth channel) with other terminal devices, such as a computer, through a network protocol, so as to implement data transmission with the other terminal devices.
It should be noted that, when the terminal device is a first terminal, the first terminal is provided with at least two data transmission channels, and when the processor 102 executes the audio transmission program in the memory 101 of the first terminal, the following steps are implemented:
determining a second terminal for sending the first audio data;
and respectively sending the first audio data to the second terminal through at least two data transmission channels, so as to determine target audio data according to the first audio data and output the target audio data when the second terminal receives the first audio data.
Alternatively, the first terminal may be a transmitting end of the first audio data, and may also be a receiving end of the second audio data.
Optionally, when the first terminal is a receiving end of the second audio data, the audio transmission program in the memory 101 of the first terminal is executed by the processor 102 to further implement the following steps:
receiving second audio data through at least two data transmission channels respectively;
and determining target audio data from the received second audio data, and outputting the target audio data.
Optionally, the mode that the first terminal sets up at least two data transmission channels includes that the first terminal is provided with at least two network ports, at least two network ports access to the local area networks of different switches respectively, and the local area networks of different switches are mutually independent networks, so that when the first terminal accesses to different switches through at least two network ports and has a switch fault or works abnormally, the switch that is not faulty in different switches can be used to send the first audio data to the second terminal, and when at least two network ports of the first terminal access to the same switch, the first audio data cannot be sent to the second terminal due to the switch fault or work abnormality, and then the second terminal cannot receive the first audio data in time to output.
Correspondingly, when the terminal device is a second terminal, the second terminal is provided with at least two data transmission channels, and the audio transmission program in the memory 101 of the second terminal is executed by the processor 102 to implement the following steps:
receiving first audio data through at least two data transmission channels respectively;
determining target audio data from the received first audio data, and outputting the target audio data.
Alternatively, the first terminal may be a receiving end of the first audio data, and may also be a transmitting end of the second audio data.
Optionally, when the first terminal is the sending end of the second audio data, the audio transmission program in the memory 101 of the second terminal is executed by the processor 102 to implement the following steps:
determining a first terminal for sending second audio data;
and respectively sending the second audio data to the first terminal through at least two data transmission channels, so as to determine target audio data according to the second audio data and output the target audio data when the first terminal receives the second audio data.
Optionally, at least two data transmission channels are set corresponding to the first terminal, the second terminal is provided with at least two data transmission channels, similarly, the mode that the first terminal is provided with at least two data transmission channels includes that the second terminal is provided with at least two network ports, the at least two network ports are respectively accessed to local area networks of different switches, and the local area networks of the different switches are mutually independent networks.
It should be noted that at least two data transmission channels are set corresponding to the first terminal, and at least two data transmission channels identical to the first terminal exist in the at least two data transmission channels set by the second terminal. Illustratively, the first terminal sets at least two network ports including a first network port and a second network port, the first network port is accessed to a first local area network of the first switch, the second network port is accessed to a second local area network of the second switch, the second terminal sets at least two network ports including a third network port and a fourth network port, the third network port is accessed to the first local area network of the first switch, and the fourth network port is accessed to the second local area network of the second switch, wherein the first local area network and the second local area network are mutually independent networks, so that when the first audio data is sent to the second terminal in the first terminal, the first audio data is respectively sent to the second terminal through the first network port and the second network port, under the condition that the networks of the first local area network and the second local area network are both normally unblocked, the second terminal can receive two identical first audio data, and further determine the target audio data to be played from the two first audio data to be played to be output, and when the first audio data is normally transmitted through the first local area network, the second local area network can only be transmitted normally, and the problem that the audio data cannot be played normally is avoided.
It should be noted that the audio transmission method of the present invention includes, but is not limited to, application fields or application scenarios such as emergency command, intelligent transportation, intelligent education, and intelligent fire fighting, wherein the application scenarios include application scenarios such as fire, earthquake, heavy rainstorm, and terrorist attack.
Based on the structural block diagram of the terminal device, various embodiments of the audio transmission method of the present invention are proposed. In an embodiment, the present invention provides an audio transmission method, which is applied to a first terminal, please refer to fig. 2, and fig. 2 is a flowchart illustrating the application of the audio transmission method to the first terminal. In this embodiment, the audio transmission method includes the steps of:
step S10, determining a second terminal for sending the first audio data;
step S20, the first audio data are respectively sent to the second terminal through at least two data transmission channels, so that when the second terminal receives the first audio data, target audio data are determined according to the first audio data, and the target audio data are output.
The first audio data refers to digitized sound data to be transmitted. The second terminal is a receiving end of the first audio data. And determining the second terminal for sending the first audio data according to the destination address by acquiring the destination address of the audio data in the data packet corresponding to the first audio data.
The first audio data are respectively sent to the second terminal through at least two data transmission channels, namely, on the premise that the first terminal and the second terminal establish communication connection corresponding to the at least two data transmission channels respectively, multiple copies of the same first audio data are respectively sent to the second terminal through the at least two data transmission channels, so that the possibility that the second terminal can timely receive the first audio data for playing and outputting is improved, the reliability of data transmission is improved, when the second terminal receives the at least two copies of the first audio data, the target audio data to be played and output can be determined from the at least two copies of the first audio data, and the target audio data can be played and output.
Optionally, before step S20, the method includes: determining a target transmission channel of a communication connection corresponding to a data transmission channel successfully established by the first terminal and the second terminal, acquiring the channel number of the target transmission channel, determining the target number of copying or copying the first audio data based on the channel number, and executing step S20 after copying or copying the first audio data according to the target number.
Compared with the case that the first audio data is sent to the second terminal only through one data transmission channel, in this embodiment, the first terminal sends the first audio data to the second terminal through at least two data transmission channels respectively, so as to send the same at least two first audio data to the second terminal through different data transmission channels, thereby avoiding that the second terminal cannot receive the first audio data for output due to the fact that the first audio data cannot be sent to the second terminal or the first audio data sent to the second terminal is abnormal because of abnormal transmission when the first audio data is sent through only one data transmission channel, and improving reliability of data transmission.
It should be further noted that when the first audio data is transmitted through only one data transmission channel and data transmission is abnormal due to damage of the network link, a professional maintainer is required to maintain the network link so that the network link normally transmits data, and the data transmission reliability is poor.
In addition, compared with the method that the first audio data is sent to the second terminal through only one data transmission channel, and when the acknowledgement that the response information is received is not received within the preset time period, the first audio data is sent to the second terminal again, that is, the first audio data is sent to the second terminal repeatedly based on a retransmission mechanism, so as to improve the reliability of data transmission, in this embodiment, the first terminal sends the first audio data to the second terminal through at least two data transmission channels respectively, so as to send the same at least two first audio data to the second terminal through different data transmission channels, so as to avoid that when the first audio data is transmitted through only one data transmission channel, the first audio data cannot be sent to the second terminal due to abnormal transmission, or the first audio data sent to the second terminal is abnormal, while the second terminal can omit the first audio data successfully realize the waiting time period of retransmission, and improve the success rate of the first audio data being successfully sent to the second terminal, so that the second terminal can receive the first audio data in time for outputting, so as to be suitable for various emergency applications, such as commanding of a fire, a heavy terrorism, and a fire.
As an alternative implementation, please refer to fig. 3, where fig. 3 is a schematic flow chart illustrating that the audio transmission method of the present invention sends the first audio data, and step S20 includes:
step S21, the first audio data are respectively sent to a server through at least two data transmission channels, and when the server receives the first audio data, the first audio data are respectively sent to the second terminal through at least two data transmission channels.
In the practical application process, the first terminal sends the first audio data to the second terminal through at least two data transmission channels respectively, and the first audio data can be matched with the server for use. Alternatively, referring to fig. 4 exemplarily, fig. 4 is a data transmission topology diagram of the audio transmission method of the present invention. Suppose the first terminal and the second terminal adopt audio interface machines, each audio interface machine has a sending function and a receiving function of audio data, wherein each audio interface machine can be provided with at least two network ports, exemplarily, when the audio interface machine is provided with two network ports, the network port 1 of each audio interface machine is accessed into the local area network 1, and the network port 2 is accessed into the local area network 2, wherein the local area network 1 and the local area network 2 are independent networks, and the network segments where the local area network 1 and the local area network 2 are respectively located are different.
Alternatively, the first audio data transmitted by the audio interface machine may be in multiple copies.
Optionally, the first audio data sent by the audio interface machines may be duplicated, the first audio data is sent from the internet access 1 and the internet access 2, respectively, and the destination address and the IP of the audio packet corresponding to the sent first audio data may be configured to any one or more audio interface machines.
Illustratively, in this embodiment, when the audio interface machine 1 (i.e., the first terminal) sends the first audio data to the audio interface machine 2 (i.e., the second terminal), the audio interface machine 1 sends the first audio data to the server through at least two data transmission channels, for example, when the audio interface machine 1 sends the first audio data to the server from the internet access 1 and the internet access 2, correspondingly, when the server receives the first audio data, the server sends the first audio data to the audio interface machine 2 through the internet access 1 and the internet access 2.
It should be noted that, for the server, when at least two data transmission channels are successfully established between the first terminal and the server, after the first terminal sends the first audio data to the server through the at least two data transmission channels, the server may determine a target data transmission channel with a good network status according to network conditions respectively corresponding to the at least two data transmission channels, and then feed the target data transmission channel back to the first terminal, so that the first terminal sends the first audio data to the server through the target data transmission channel. For example, when the first audio data is not received by the portal 1, it may be indicated that the network of the local area network 1 accessed by the portal 1 is abnormal, such as the first audio data is lost or the network is disconnected, and the server may feed back the information of the network abnormality of the local area network 1 accessed by the portal 1 to the first terminal, so that the first terminal sends the first audio data to the server through the portal 2, and the reliability of data transmission is improved.
Optionally, a target data transmission channel with a good network status is selected to transmit the first audio data according to the network status corresponding to the at least two data transmission channels, and after the first audio data is transmitted to the server through the at least two data transmission channels based on the first terminal, the server determines the target data transmission channel with a good network status according to the received information of the received first audio data. Wherein the reception information includes whether the first audio data is received. Optionally, when it is determined that the received first audio data has no packet loss, it may be determined that the network link quality of the data transmission channel corresponding to the received first audio data is excellent, and the data transmission channel with the excellent network link quality may be determined as the target data transmission channel with the excellent network state.
Alternatively, the target data transmission channel may be one or at least two.
Optionally, a target data transmission channel with a good network state is selected to transmit first audio data according to network conditions corresponding to the at least two data transmission channels, when the number of the target data transmission channels is at least two, an optimal data transmission channel can be selected from the at least two target data transmission channels to transmit the first audio data, so that the first audio data can be timely, reliably and quickly transmitted from the first terminal to the server, and when the server receives the first audio data, the first audio data is respectively transmitted to the second terminal through the at least two data transmission channels.
Optionally, the receiving information further includes whether a packet of the received first audio data is lost and a data transmission channel corresponding to the received first audio data, an optimal data transmission channel is selected from the at least two target data transmission channels to transmit the first audio data, and the optimal data transmission channel may be selected from the at least two target data transmission channels according to whether the packet of the received first audio data is lost in the receiving information, where the target data transmission channel corresponding to the packet of the received first audio data that is not lost is used as the optimal data transmission channel, and the optimal data transmission channel indicates that a network of the data transmission channel is more smooth, and a data transmission rate is higher.
As an alternative embodiment, please refer to fig. 5, wherein fig. 5 is a schematic flowchart illustrating a process of receiving second audio data by the audio transmission method of the present invention, and the audio transmission method further includes:
step S30, respectively receiving second audio data through at least two data transmission channels;
and step S40, determining target audio data from the received second audio data, and outputting the target audio data.
The second audio data refers to digitized sound data transmitted to the first terminal by other terminals such as the second terminal. It should be noted that, in this embodiment, the first terminal may be a receiving end of the audio data, that is, the first terminal may also perform implementation steps of the second terminal related to the various embodiments of the audio data transmission method. Similarly, the second terminal may also be a sending end of the audio data, that is, the second terminal may also perform the implementation steps of the first terminal regarding the various embodiments of the audio data transmission method.
And determining the target audio data from the received second audio data, and outputting the target audio data, wherein the target audio data can be determined according to whether the packet of the received second audio data is lost, and the second audio data without the packet loss can be determined as the target audio data.
Alternatively, step S30 and step S40 may be executed before step S10, step S30 and step S40 may be executed after step S20, or step S30 and step S40 may be executed between step S10 and step S20.
Correspondingly, the present invention further provides an audio transmission method, where the audio transmission method is applied to a second terminal, please refer to fig. 6, and fig. 6 is a schematic flow diagram of the audio transmission method applied to the second terminal. In this embodiment, the audio transmission method includes the steps of:
step S50, respectively receiving first audio data through at least two data transmission channels;
step S60, determining target audio data from the received first audio data, and outputting the target audio data.
Specific implementation of step S50 and step S60 can be found in step S30 and step S40, and will not be described in detail here.
Optionally, step S50 includes receiving the first audio data sent by the first terminal or the server through at least two data transmission channels, respectively.
As an alternative embodiment, please refer to fig. 7, fig. 7 is a schematic flowchart illustrating a process of receiving first audio data by the audio transmission method of the present invention, and step S50 includes:
step S51, respectively receiving the first audio data sent by the server through the at least two data transmission channels, and using the server as a "forwarding station" of the first audio data, after the first audio data sent by the first terminal through the at least two data transmission channels is sent to the server, respectively sending the first audio data to the second terminal through the at least two data transmission channels by the server, so that the second terminal respectively receives the first audio data sent by the server through the at least two data transmission channels.
Optionally, after step S50, the method includes:
determining network state information of at least two data transmission channels;
and determining a target data transmission channel with a good network state according to the network state information, and sending channel information corresponding to the target data transmission channel to the first terminal or the server, so that the first terminal or the server sends the first audio data according to the channel information and the target data transmission channel.
It should be noted that, taking sending the channel information corresponding to the target data transmission channel to the first terminal as an example to determine the network status information of at least two data transmission channels, the second terminal determines the network status information of the data transmission channels according to the received information of the received first audio data after the first audio data is sent to the second terminal through at least two data transmission channels by the first terminal, and then determines the target data transmission channel with a good network status according to the network status information. Wherein the reception information includes whether the first audio data is received. When the first audio data is determined to be received through the receiving information, it is indicated that the network state information of the data transmission channel corresponding to the received first audio data is in a good network state, and the data transmission channel corresponding to the received first audio data is a target data transmission channel. For example, when the first audio data is not received by the port 1, it may be indicated that the network of the local area network 1 accessed by the port 1 is abnormal, such as the first audio data is lost or the network is disconnected, and the information about the network abnormality of the local area network 1 accessed by the port 1 may be fed back to the first terminal through the second terminal, so that the first terminal sends the first audio data to the second terminal through the port 2, and the reliability of data transmission is improved. Similarly, the sending of the channel information corresponding to the target data transmission channel to the server is to send the channel information corresponding to the target data transmission channel to the first terminal, which is not described herein again.
Alternatively, the target data transmission channel may be one or at least two.
Optionally, a target data transmission channel with a good network state is selected to transmit the first audio data according to the network state information respectively corresponding to the at least two data transmission channels, and when the number of the target data transmission channels is at least two, an optimal data transmission channel can be selected from the at least two target data transmission channels to transmit the first audio data, so that the first audio data can be timely, reliably and quickly transmitted from the first terminal to the second terminal, and the reliability of data transmission and the transmission efficiency are improved.
Optionally, the receiving information further includes whether a packet of the received first audio data is lost and a data transmission channel corresponding to the received first audio data, an optimal data transmission channel is selected from the at least two target data transmission channels to transmit the first audio data, and the optimal data transmission channel may be selected from the at least two target data transmission channels according to whether the packet of the received first audio data is lost in the receiving information, where the target data transmission channel corresponding to the packet of the received first audio data that is not lost is used as the optimal data transmission channel, and the optimal data transmission channel indicates that a network of the data transmission channel is more smooth, and a data transmission rate is higher.
And finally, the second terminal sends the channel information corresponding to the target data transmission channel to the first terminal or the server, so that the first terminal or the server sends the first audio data according to the channel information and the target data transmission channel, wherein the channel information can be used for uniquely determining the data transmission channel, and comprises an interface number corresponding to a network port of the data transmission channel. Correspondingly, when receiving channel information fed back by a second terminal, a first terminal sends first audio data to the second terminal through a target data transmission channel corresponding to the channel information, so that the first terminal can select a smooth network and send the first audio data to the second terminal through the data transmission channel with high data transmission rate, and the reliability of data transmission is improved, wherein at least two data transmission channels comprise the target data transmission channel.
In this embodiment, the first audio data is respectively sent to the second terminal through the at least two data transmission channels corresponding to the first terminal, or the first audio data is respectively sent to the server through the at least two data transmission channels corresponding to the first terminal, the first audio data is indirectly received by the server and then sent to the second terminal through the at least two data transmission channels, the second terminal respectively receives the same at least two first audio data through the at least two data transmission channels, the target audio data is determined from the received first audio data, and the target audio data is output, so that the reliability of data transmission is improved, and it is avoided that when the first audio data is transmitted only through one data transmission channel, the second terminal cannot receive the first audio data due to abnormal transmission or the first audio data received by the second terminal is abnormal, and further the second terminal cannot receive the first audio data in time and output the first audio data.
Correspondingly, the invention also provides an audio transmission method, which is applied to a server, wherein the server is provided with at least two data transmission channels, and the audio transmission method comprises the following steps: receiving first audio data respectively sent by a first terminal through at least two data transmission channels; and respectively sending the first audio data to a second terminal through at least two data transmission channels, so as to determine target audio data according to the first audio data and output the target audio data when the second terminal receives the first audio data. The specific implementation can be referred to the above description, and detailed description is omitted here.
The present invention further provides a terminal device, where the terminal device is a first terminal or a second terminal, and the terminal device includes: the terminal device comprises a memory, a processor and an audio transmission program which is stored in the memory and can run on the processor, when the terminal device is a first terminal, the audio transmission program is executed by the processor of the first terminal to realize the steps of the audio transmission method applied to the first terminal in any embodiment, and when the terminal device is a second terminal, the audio transmission program is executed by the processor of the second terminal to realize the steps of the audio transmission method applied to the second terminal in any embodiment.
The present invention also proposes a computer-readable storage medium having stored thereon an audio transmission program which, when executed by a processor, implements the steps of the audio transmission method according to any of the above embodiments.
In the embodiments of the terminal device and the computer-readable storage medium provided by the present invention, all technical features of the embodiments of the audio transmission method are included, and the expanding and explaining contents of the specification are basically the same as those of the embodiments of the audio transmission method, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An audio transmission method, wherein the audio transmission method is applied to a first terminal, and the first terminal is provided with at least two data transmission channels, and the audio transmission method comprises:
determining a second terminal for sending the first audio data;
and respectively sending the first audio data to the second terminal through at least two data transmission channels, so as to determine target audio data according to the first audio data and output the target audio data when the second terminal receives the first audio data.
2. The audio transmission method according to claim 1, wherein the step of transmitting the first audio data to the second terminal through at least two of the data transmission channels, respectively, comprises:
and respectively sending the first audio data to a server through at least two data transmission channels, so that when the server receives the first audio data, the first audio data is respectively sent to the second terminal through at least two data transmission channels.
3. The audio transmission method of claim 1, further comprising:
receiving second audio data through at least two data transmission channels respectively;
and determining target audio data from the received second audio data, and outputting the target audio data.
4. The audio transmission method according to claim 1, wherein the manner in which the first terminal is provided with at least two data transmission channels includes that the first terminal is provided with at least two ports, at least two ports are respectively connected to local area networks of different switches, and the local area networks of different switches are mutually independent networks.
5. The audio transmission method according to claim 1, wherein after the step of transmitting the first audio data to the second terminal through at least two of the data transmission channels, respectively, further comprising:
and when channel information fed back by a second terminal is received, the first audio data is sent to the second terminal through a target data transmission channel corresponding to the channel information, wherein at least two data transmission channels comprise the target data transmission channel.
6. An audio transmission method is applied to a second terminal, the second terminal is provided with at least two data transmission channels, and the audio transmission method comprises the following steps:
receiving first audio data through at least two data transmission channels respectively;
determining target audio data from the received first audio data, and outputting the target audio data.
7. The audio transmission method according to claim 6, wherein the manner that the second terminal is provided with at least two data transmission channels includes that the second terminal is provided with at least two network ports, at least two of the network ports are respectively connected to local area networks of different switches, and the local area networks of different switches are mutually independent networks.
8. The audio transmission method of claim 6, wherein said step of receiving first audio data via at least two of said data transmission channels, respectively, further comprises:
determining network state information of at least two data transmission channels;
and determining a target data transmission channel with a good network state according to the network state information, and sending channel information corresponding to the target data transmission channel to the first terminal, so that the first terminal sends the first audio data according to the channel information and the target data transmission channel.
9. A terminal device, wherein the terminal device is a first terminal or a second terminal, and the terminal device comprises: a memory, a processor and an audio transmission program stored in the memory and executable on the processor, the audio transmission program when executed by the processor implementing the steps of the audio transmission method according to any one of claims 1 to 5 when the terminal device is a first terminal, the audio transmission program when executed by the processor implementing the steps of the audio transmission method according to any one of claims 6 to 8 when the terminal device is a second terminal.
10. A computer-readable storage medium, having stored thereon an audio transmission program which, when executed by a processor, implements the steps of the audio transmission method according to any one of claims 1-8.
CN202210610833.4A 2022-05-31 2022-05-31 Audio transmission method, terminal device and computer-readable storage medium Pending CN115150373A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210610833.4A CN115150373A (en) 2022-05-31 2022-05-31 Audio transmission method, terminal device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210610833.4A CN115150373A (en) 2022-05-31 2022-05-31 Audio transmission method, terminal device and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN115150373A true CN115150373A (en) 2022-10-04

Family

ID=83406720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210610833.4A Pending CN115150373A (en) 2022-05-31 2022-05-31 Audio transmission method, terminal device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN115150373A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108738007A (en) * 2018-06-06 2018-11-02 科大讯飞股份有限公司 A kind of audio frequency transmission method, equipment and system
WO2019100475A1 (en) * 2017-11-21 2019-05-31 广州视源电子科技股份有限公司 Data transmission method, apparatus and device, and storage medium
CN112335328A (en) * 2018-06-29 2021-02-05 华为技术有限公司 Method and system for transmitting audio data and wireless audio system
CN112703689A (en) * 2021-01-30 2021-04-23 华为技术有限公司 Data transmission method and device, electronic equipment and storage medium
CN113784388A (en) * 2021-09-09 2021-12-10 中国联合网络通信集团有限公司 Data transmission method, device, equipment and storage medium
CN114333864A (en) * 2021-12-17 2022-04-12 浙江大华技术股份有限公司 Audio data mixing method, terminal and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019100475A1 (en) * 2017-11-21 2019-05-31 广州视源电子科技股份有限公司 Data transmission method, apparatus and device, and storage medium
CN108738007A (en) * 2018-06-06 2018-11-02 科大讯飞股份有限公司 A kind of audio frequency transmission method, equipment and system
CN112335328A (en) * 2018-06-29 2021-02-05 华为技术有限公司 Method and system for transmitting audio data and wireless audio system
CN112703689A (en) * 2021-01-30 2021-04-23 华为技术有限公司 Data transmission method and device, electronic equipment and storage medium
CN113784388A (en) * 2021-09-09 2021-12-10 中国联合网络通信集团有限公司 Data transmission method, device, equipment and storage medium
CN114333864A (en) * 2021-12-17 2022-04-12 浙江大华技术股份有限公司 Audio data mixing method, terminal and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
曾宪锋: ""中央广播电视总台4K超高清演播室音频备份系统详解"", 《现代电视技术》, no. 6, 15 June 2020 (2020-06-15) *
朱彤: ""基于DSP与FPGA的多通道音频信号同步采集系统的设计"", 《中国优秀硕士学位论文全文数据库(信息科技I辑)》, 15 May 2021 (2021-05-15) *

Similar Documents

Publication Publication Date Title
KR20070026682A (en) A method for data transmission between network apparatus
EP2136535B1 (en) Communication network and method for operating a communication network
EP3029917B1 (en) Method for telecommunication device monitoring
JP2002064562A (en) Method for establishing communication connection
JP4387937B2 (en) Telephone system and switching system
CN115150373A (en) Audio transmission method, terminal device and computer-readable storage medium
CN103685017A (en) Message forwarding method in stacking system, stacking equipment and stacking system
US7949119B2 (en) Telephone exchange system
CN108337162B (en) System and method for supporting dual-homing protection
US20150156164A1 (en) Communication system, communication control method, communication relay system, and communication relay control method
CN105991629B (en) TCP connection method for building up and device
JP4053977B2 (en) Telephone exchange device and network telephone exchange system
JP2003283567A (en) Data communication system and method, server device, client device, repeater, and program
US20080025232A1 (en) Method and system for network connection
JP4665063B2 (en) COMMUNICATION SYSTEM, TERMINAL REGISTRATION METHOD, AND SERVER
US20200236022A1 (en) Method, Apparatus and System for Method for Start-Up of Monitoring of Monitor Objects in a Computer-Integrated Telecommunications Environment
KR100756855B1 (en) Remote object management duplexing method using mobile communication network and system thereof
KR100350890B1 (en) System for mobile communication-based matching service for plural users
JP3948612B2 (en) Center device
JP2804876B2 (en) Communication method for network system including multiplex system
CN116346256A (en) Control method, device, equipment and medium for transferring and separating BFD information transmission
CN117460097A (en) Electronic device, communication control method, and communication control system
JP2015082742A (en) Transfer device, control device and transfer method
JPH04150355A (en) Transmission procedure management equipment for file transfer
JP2007214746A (en) Duplex communication system

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