CN114125024B - Audio transmission method, electronic device and readable storage medium - Google Patents

Audio transmission method, electronic device and readable storage medium Download PDF

Info

Publication number
CN114125024B
CN114125024B CN202111354336.4A CN202111354336A CN114125024B CN 114125024 B CN114125024 B CN 114125024B CN 202111354336 A CN202111354336 A CN 202111354336A CN 114125024 B CN114125024 B CN 114125024B
Authority
CN
China
Prior art keywords
audio
channel
address
connection
receiving end
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.)
Active
Application number
CN202111354336.4A
Other languages
Chinese (zh)
Other versions
CN114125024A (en
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.)
Lanzhou Lezhi Education Technology Co ltd
Original Assignee
Lanzhou Lezhi Education 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 Lanzhou Lezhi Education Technology Co ltd filed Critical Lanzhou Lezhi Education Technology Co ltd
Priority to CN202111354336.4A priority Critical patent/CN114125024B/en
Publication of CN114125024A publication Critical patent/CN114125024A/en
Application granted granted Critical
Publication of CN114125024B publication Critical patent/CN114125024B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application relates to a data transmission technology, and discloses an audio transmission method, which comprises the following steps: the calling client sends a calling request to the audio sending end; the audio sending end receives a call request and sends the call request to a signaling server; the signaling server performs channel screening in a preset channel set by using the call request to obtain a target channel, and sends a connection establishment request to the audio receiving end by using the target channel; the audio receiving end receives a connection establishment request sent by the signaling server, acquires a communication address of the audio sending end, and constructs a data transmission channel with the audio sending end by utilizing the communication address; the audio sending end obtains the audio data collected by the calling client and sends the audio data to the audio receiving end by utilizing the data transmission channel. The application also provides an audio transmission device, equipment and a medium. The application can improve the convenience of audio transmission.

Description

Audio transmission method, electronic device and readable storage medium
Technical Field
The present application relates to data transmission technologies, and in particular, to an audio transmission method, an electronic device, and a readable storage medium.
Background
Along with the wider and wider application of video monitoring equipment, the application scenes of video monitoring are diversified, and in many scenes (such as voice broadcasting to cameras, voice intercom between a client and the cameras), audio needs to be transmitted from the client to the cameras;
however, in the current audio transmission method, the client and the camera are required to be located in the same local area network when transmitting audio from the client to the camera, and when the client and the camera are located in different local area networks, audio transmission cannot be performed, so that the convenience of audio transmission is poor.
Disclosure of Invention
The application provides an audio transmission method, an audio transmission device, electronic equipment and a computer readable storage medium, and mainly aims to improve the accuracy of audio transmission.
In order to achieve the above object, the present application provides an audio transmission method, including:
the calling client sends a calling request to the audio sending end;
the audio sending end receives the call request and sends the call request to a signaling server;
the signaling server receives the call request, performs channel screening in a preset channel set by utilizing the call request to obtain a target channel, and extracts a communication address of the audio sending end in the call request to construct a connection establishment request;
the signaling server sends the connection establishment request to the audio receiving end by utilizing the target channel;
the audio receiving end receives a connection establishment request sent by the signaling server, extracts a communication address of the audio sending end in the connection establishment request, and constructs a data transmission channel with the audio sending end by utilizing the communication address;
the audio sending end obtains the audio data collected by the calling client and sends the audio data to the audio receiving end by utilizing the data transmission channel.
In order to achieve the above object, the present application provides an audio transmission method, which is applied to an audio transmitting end, and includes:
acquiring a call request of a call client;
the call request is sent to a signaling server, so that a data transmission channel between the call request and an audio receiving end is established according to the call request;
and acquiring the audio data acquired by the calling client, and transmitting the audio data to the audio receiving end by utilizing the data transmission channel.
In order to achieve the above object, the present application provides an audio transmission method, which is applied to a signaling server, and includes:
receiving a call request sent by an audio sending end;
extracting a receiving equipment ID in the call request;
channel screening is carried out in a preset channel set according to the ID of the receiving equipment, so that a target channel is obtained;
and extracting the communication address of the audio sending end in the call request, constructing a connection establishment request according to the communication address, and sending the connection establishment request to the audio receiving end by utilizing the target channel.
Optionally, the performing channel screening in a preset channel set according to the receiving device ID to obtain a target channel includes:
acquiring a channel connection equipment ID corresponding to each channel in the channel set;
and screening the channel connection equipment ID which is the same as the receiving equipment ID from the channel set, and taking a channel corresponding to the channel connection equipment ID obtained by screening as a target channel.
In order to achieve the above object, the present application provides an audio transmission method, which is applied to an audio receiving end, and includes:
receiving a connection establishment request sent by a signaling server side;
extracting a communication address of an audio sending end in the connection establishment request, and constructing a data transmission channel by using the communication address;
and receiving the audio data transmitted by the audio transmitting end through the data transmission channel.
Optionally, the constructing a data transmission channel by using the communication address includes:
and replacing corresponding communication address parameters in a preset transmission protocol by using the communication address to obtain the data transmission channel.
In order to solve the above problems, the present application further provides an audio transmission system, which includes a call client, an audio transmitting end, a signaling server, and an audio receiving end, wherein:
the calling client is used for sending a calling request to the audio sending end;
the audio sending end is used for receiving the call request and sending the call request to the signaling server;
the signaling server is used for receiving the call request, carrying out channel screening in a preset channel set by utilizing the call request to obtain a target channel, and extracting a communication address of the audio sending end in the call request to construct a connection establishment request; transmitting the connection establishment request to the audio receiving end by utilizing the target channel;
the audio receiving end is used for receiving a connection establishment request sent by the signaling server, extracting a communication address of the audio sending end in the connection establishment request, and constructing a data transmission channel with the audio sending end by utilizing the communication address;
the audio sending end is further used for obtaining the audio data collected by the calling client and sending the audio data to the audio receiving end by utilizing the data transmission channel.
In order to solve the above-mentioned problems, the present application also provides an electronic apparatus including:
a memory storing at least one computer program; a kind of electronic device with high-pressure air-conditioning system
And a processor executing the computer program stored in the memory to implement the audio transmission method.
In order to solve the above-described problems, the present application also provides a computer-readable storage medium having stored therein at least one computer program that is executed by a processor in an electronic device to implement the above-described audio transmission method.
According to the method, the electronic equipment and the readable storage medium, the audio receiving end receives the connection establishment request sent by the signaling server, the communication address of the audio sending end is obtained, the communication address is utilized to construct a data transmission channel with the audio sending end, request information transfer is carried out through the signaling server, so that the audio receiving end obtains a request that the audio sending end needs to send audio data, the data transmission channel is actively constructed with the audio sending end, the audio collected by the calling client is sent to the audio receiving end through the data transmission channel, audio transmission among devices of different local area networks is achieved, and convenience of audio transmission is improved.
Drawings
Fig. 1 is a schematic diagram of data interaction of an audio transmission method according to an embodiment of the present application;
fig. 2 is a flowchart of an audio transmission method applied to an audio transmitting end according to an embodiment of the present application;
fig. 3 is a flowchart of an audio transmission method applied to a signaling server according to an embodiment of the present application;
fig. 4 is a flowchart of an audio transmission method applied to an audio receiving end according to an embodiment of the present application;
fig. 5 is a schematic diagram of an internal structure of an electronic device for implementing an audio transmission method according to an embodiment of the present application;
the achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The embodiment of the application provides an audio transmission method. The main execution body of the audio transmission method includes, but is not limited to, at least one of a server, a terminal and the like, which can be configured to execute the method provided by the embodiment of the application. In other words, the audio transmission method may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The service end includes but is not limited to: the server can be an independent server, or can be a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDNs), basic cloud computing services such as big data and artificial intelligent platforms, and the like.
An embodiment of the present application provides an audio transmission method, as shown in fig. 1, where the audio transmission method is applied to an audio transmission system including a call client, an audio transmitting end, a signaling server, and an audio receiving end. In the embodiment of the present application, the data interaction process of the call client, the audio sending end, the signaling server and the audio receiving end when executing the audio transmission method includes:
the calling client sends a calling request to the audio sending end;
the audio sending end receives the call request and sends the call request to the signaling server;
the signaling server receives the call request, performs channel screening in a preset channel set by utilizing the call request to obtain a target channel, and extracts a communication address of the audio sending end in the call request to construct a connection establishment request;
the signaling server sends the connection establishment request to the audio receiving end by utilizing the target channel;
the audio receiving end receives a connection establishment request sent by the signaling server, extracts a communication address of the audio sending end in the connection establishment request, and constructs a data transmission channel with the audio sending end by utilizing the communication address;
the audio sending end obtains the audio data collected by the calling client and sends the audio data to the audio receiving end by utilizing the data transmission channel.
Specifically, referring to a flowchart of an audio transmission method applied to the audio transmitting end according to an embodiment of the present application shown in fig. 2, in an embodiment of the present application, the audio transmission method applied to the audio transmitting end includes:
s11, acquiring a call request of a call client;
in detail, in the embodiment of the present application, the call client is an intelligent terminal device capable of collecting and sending audio, and the call client includes, but is not limited to: cell phones, computers, tablets, etc. The call request is a request for audio transmission to the audio receiving end, and the call request contains the receiving equipment ID of the audio receiving end, so that the corresponding audio receiving end can be conveniently positioned.
Further, in the embodiment of the present application, in order to ensure that the audio sending end and the call client can normally connect and communicate, the call client is located in a local area network that can access the internet.
S12, sending the call request to a signaling server to establish a data transmission channel with an audio receiving end according to the call request;
in detail, the signaling server in the embodiment of the application is a server for performing signaling information exchange by using two devices which cannot directly perform information exchange. The signaling server is mainly used for signaling information transmission, and the channel resources occupy less, so that a fixed channel exists between the signaling server and equipment needing signaling information exchange, a channel for signaling information transmission exists between the signaling server and an audio receiving end, the signaling server receives a call request by sending the call request to the signaling server,
because the audio receiving end has no public network address and cannot be directly connected in the public network, the data transmission channel can only be established by connecting the audio receiving end with the audio transmitting end, and the audio data can be transmitted to the audio receiving end only by establishing the data transmission channel with the audio receiving end, so that the information of the audio transmitting end contained in the call request is transmitted to the audio receiving end through a channel between the signaling server and the audio receiving end, the audio transmitting end is informed of the need of transmitting the audio data, and the audio receiving end actively constructs the data transmission channel with the audio transmitting end according to the received information.
S13, acquiring the audio data acquired by the calling client, and transmitting the audio data to the audio receiving end by utilizing the data transmission channel.
In the embodiment of the application, the audio receiving end is a camera with an audio receiving function.
Optionally, in the embodiment of the present application, the audio receiving end is located in a local area network that can access the internet, so that the audio receiving end has no public network address and cannot be directly connected in the public network.
Further, in the embodiment of the present application, the audio data collected by the calling client is obtained, and the audio data is sent to the audio receiving end by using the data transmission channel. In the embodiment of the application, the audio receiving end is positioned in a local area network which can access the Internet, and the audio receiving end and the calling client are not positioned in the same local area network.
Further, referring to fig. 3, a flowchart of an audio transmission method applied to a signaling server according to an embodiment of the present application is provided, where in the embodiment of the present application, the audio transmission method applied to the signaling server includes:
s21, receiving a call request sent by an audio sending end;
in the embodiment of the application, the audio transmitting end is a server capable of transmitting audio data, optionally, the audio transmitting end is a voice call server used for forwarding call audio data in a video monitoring system, and the audio transmitting end is located in a public network and has a fixed IP address, so that the audio transmitting end can be directly accessed and connected.
Further, in the embodiment of the application, the signaling information exchange between the audio sending end and the audio receiving end is realized through the signaling server, so that the establishment of the data transmission channel between the audio sending end and the audio receiving end is realized.
S22, extracting a receiving equipment ID in the call request;
optionally, in the embodiment of the present application, a value corresponding to a preset field in the call request is extracted to obtain the receiving device ID. Optionally, the preset field is an IP address.
S23, carrying out channel screening in a preset channel set according to the ID of the receiving equipment to obtain a target channel;
in detail, in the embodiment of the present application, the channel set is a set of channels constructed by different audio receiving ends and a signaling server.
In the embodiment of the application, because the signaling server is in the public network and has a fixed IP address, the connection can be directly accessed, and therefore, different audio receiving ends can be connected with the signaling server according to the IP address of the signaling server to construct channels, so as to obtain the channel set, wherein each channel in the channel set corresponds to a unique audio receiving end, and each channel is marked with a corresponding channel connection equipment ID for distinguishing the audio receiving end corresponding to each channel. The channel connection device ID is the device ID of the audio receiving end corresponding to the channel.
Specifically, in the embodiment of the present application, channel screening is performed in a preset channel set according to the receiving device ID to obtain a target channel, which includes:
acquiring a channel connection equipment ID corresponding to each channel in the channel set;
in the embodiment of the application, the channel set is a set of channels connected with different audio receiving devices by the signaling server, and the channel connection device ID is a device ID corresponding to the different audio receiving devices connected with the signaling server.
For example: the channel set has two channels, namely a channel A and a channel B, wherein the channel A is a channel for connecting a signaling server with the device A, the device ID of the device A is 123, the channel B is a channel for connecting a signaling server with the device B, the device ID of the device B is 456, and then the channel connection device ID corresponding to the channel A is 123 and the channel connection device ID corresponding to the channel B is 456.
And screening the channels with the channel connection equipment ID as the receiving equipment ID in the channel set to obtain the target channel.
For example: the channel set has two channels, namely a channel A and a channel B, wherein the channel A is a channel for connecting a signaling server with the device A, the channel B is a channel for connecting the signaling server with the device B, the channel corresponding to the channel A is connected with the device ID of '123', the channel corresponding to the channel B is connected with the device ID of '456', and the receiving device ID is '123', so that the channel connected with the signaling server and the device A, namely the channel A, is a target channel, and the channel of an audio receiving device and the signaling server which need to receive audio data is positioned through the receiving device ID.
S24, extracting the communication address of the audio sending end in the call request, constructing a connection establishment request according to the communication address, and sending the connection establishment request to the audio receiving end by utilizing the target channel.
In the embodiment of the application, the connection establishment request is a request for enabling the audio receiving end to establish connection with the audio sending end.
Further, in the embodiment of the present application, in order to enable the audio receiving end to accurately connect to the audio transmitting end, a communication address of the audio transmitting end in the call request is extracted, and a connection establishment request is constructed according to the communication address.
Specifically, in the embodiment of the present application, the communication address is combined with a preset request function to obtain the connection establishment request.
Optionally, the communication address may be an IP address of the audio transmitting end or identification information of the IP address.
Further, referring to fig. 4, a flowchart of an audio transmission method applied to an audio receiving end according to an embodiment of the present application is shown, where in the embodiment of the present application, the audio transmission method applied to the audio receiving end includes:
s31, receiving a connection establishment request sent by a signaling server side;
s32, extracting a communication address of an audio sending end in the connection establishment request, and constructing a data transmission channel by using the communication address;
in the embodiment of the application, the communication address is the IP address of the audio sending end.
Further, in an embodiment of the present application, constructing a data transmission channel by using the communication address includes:
and replacing corresponding communication address parameters in a preset transmission protocol by the communication address to obtain the data transmission channel, wherein the transmission protocol is SCTP (Stream Control Transmission Protocol ), and further, when the data transmission terminal is a browser, the transmission protocol can be a data transmission protocol of a WebRTC interface in the browser.
In the embodiment of the application, the data transmission channel is used for audio data transmission, so that the resource occupation is larger, the data transmission channel is not fixedly existing, the data transmission channel needs to be established as required, and only the connection establishment request sent by the signaling server side is received, the operation of establishing the data transmission channel is executed.
In another embodiment of the present application, the communication address is an IP address identifier of the audio transmitting end, a connection address identifier of each connection address in a preset connection address set is obtained, the connection address identifier identical to the communication address is screened from the preset connection address set, and a connection address corresponding to the connection address identifier obtained by screening is used as a target connection address; and replacing corresponding communication address parameters in a preset transmission protocol by the target connection address to obtain the data transmission channel.
S33, receiving the audio data transmitted by the audio transmitting end through the data transmission channel.
In detail, in the embodiment of the application, the audio receiving end acquires the audio data acquired by the calling client, and the data transmission channel is utilized to send the audio data to the audio receiving end, so that the audio data transmission between the calling client and the audio receiving end in different intranet environments is realized.
Fig. 5 is a schematic structural diagram of an electronic device for implementing the audio transmission method according to the present application.
In the embodiment of the present application, the electronic device may be a call client, an audio sending end, a signaling server or an audio receiving end in fig. 1. The electronic device may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13. Further, an audio transmission device is installed in the electronic equipment, and is used for implementing the audio transmission method. Wherein the audio transmission means may comprise a plurality of functional modules, depending on the implemented functions, which, when executed by the processor 10, are capable of performing the above-described audio transmission method. The functional module according to the present application may also be referred to as a unit, and refers to a series of computer program segments capable of being executed by the processor of the electronic device and performing a fixed function, which are stored in the memory 11 of the electronic device. The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, such as a mobile hard disk of the electronic device. The memory 11 may in other embodiments also be an external storage device of the electronic device, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only for storing application software installed in an electronic device, various data, and the like, but also for temporarily storing data that has been output or is to be output.
The processor 10 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the entire electronic device using various interfaces and lines, and executes various functions of the electronic device and processes data by running or executing programs or modules stored in the memory 11 and calling data stored in the memory 11.
The communication bus 12 may be a peripheral component interconnect standard (perIPheral component interconnect, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The communication bus 12 is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
Fig. 5 shows only an electronic device with components, and it will be understood by those skilled in the art that the structure shown in fig. 5 is not limiting of the electronic device and may include fewer or more components than shown, or may combine certain components, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power source (such as a battery) for supplying power to the respective components, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure classification circuit, power converter or inverter, power status indicator, etc. The electronic device may further include various sensors, bluetooth modules, wi-Fi modules, etc., which are not described herein.
Optionally, the communication interface 13 may comprise a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), typically used to establish a communication connection between the electronic device and other electronic devices.
Optionally, the communication interface 13 may further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
A plurality of computer program segments stored in the memory 11 in the electronic device, when run in the processor 10, may implement:
the calling client sends a calling request to the audio sending end;
the audio sending end receives the call request and sends the call request to a signaling server;
the signaling server receives the call request, performs channel screening in a preset channel set by utilizing the call request to obtain a target channel, and extracts a communication address of the audio sending end in the call request to construct a connection establishment request;
the signaling server sends the connection establishment request to the audio receiving end by utilizing the target channel;
the audio receiving end receives a connection establishment request sent by the signaling server, extracts a communication address of the audio sending end in the connection establishment request, and constructs a data transmission channel with the audio sending end by utilizing the communication address;
the audio sending end obtains the audio data collected by the calling client and sends the audio data to the audio receiving end by utilizing the data transmission channel.
Optionally, when the electronic device is an audio sending end, the audio transmission method includes:
acquiring a call request of a call client;
the call request is sent to a signaling server, so that a data transmission channel between the call request and an audio receiving end is established according to the call request;
and acquiring the audio data acquired by the calling client, and transmitting the audio data to the audio receiving end by utilizing the data transmission channel.
Optionally, when the electronic device is a signaling server, the audio transmission method includes:
receiving a call request sent by an audio sending end;
extracting a receiving equipment ID in the call request;
channel screening is carried out in a preset channel set according to the ID of the receiving equipment, so that a target channel is obtained;
and extracting the communication address of the audio sending end in the call request, constructing a connection establishment request according to the communication address, and sending the connection establishment request to the audio receiving end by utilizing the target channel.
Optionally, when the electronic device is an audio receiving end, the audio transmission method includes:
receiving a connection establishment request sent by a signaling server side;
extracting a communication address of an audio sending end in the connection establishment request, and constructing a data transmission channel by using the communication address;
and receiving the audio data transmitted by the audio transmitting end through the data transmission channel.
In particular, the specific implementation method of the processor 10 on the computer program may refer to the description of the relevant steps in the corresponding embodiment of the drawings, which is not repeated herein.
Further, the electronic device integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. The computer readable medium may be non-volatile or volatile. The computer readable medium may include: any entity or device capable of carrying the 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).
Embodiments of the present application may also provide a computer readable storage medium storing a computer program which, when executed by a processor of an electronic device, may implement:
the calling client sends a calling request to the audio sending end;
the audio sending end receives the call request and sends the call request to a signaling server;
the signaling server receives the call request, performs channel screening in a preset channel set by utilizing the call request to obtain a target channel, and extracts a communication address of the audio sending end in the call request to construct a connection establishment request;
the signaling server sends the connection establishment request to the audio receiving end by utilizing the target channel;
the audio receiving end receives a connection establishment request sent by the signaling server, extracts a communication address of the audio sending end in the connection establishment request, and constructs a data transmission channel with the audio sending end by utilizing the communication address;
the audio sending end obtains the audio data collected by the calling client and sends the audio data to the audio receiving end by utilizing the data transmission channel.
Optionally, when the electronic device is an audio sending end, the audio transmission method includes:
acquiring a call request of a call client;
the call request is sent to a signaling server, so that a data transmission channel between the call request and an audio receiving end is established according to the call request;
and acquiring the audio data acquired by the calling client, and transmitting the audio data to the audio receiving end by utilizing the data transmission channel.
Optionally, when the electronic device is a signaling server, the audio transmission method includes:
receiving a call request sent by an audio sending end;
extracting a receiving equipment ID in the call request;
channel screening is carried out in a preset channel set according to the ID of the receiving equipment, so that a target channel is obtained;
and extracting the communication address of the audio sending end in the call request, constructing a connection establishment request according to the communication address, and sending the connection establishment request to the audio receiving end by utilizing the target channel.
Optionally, when the electronic device is an audio receiving end, the audio transmission method includes:
receiving a connection establishment request sent by a signaling server side;
extracting a communication address of an audio sending end in the connection establishment request, and constructing a data transmission channel by using the communication address;
and receiving the audio data transmitted by the audio transmitting end through the data transmission channel.
Further, the computer-usable storage medium 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 from the use of blockchain nodes, and the like.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules 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.
The embodiment of the application can acquire and process the related data based on the artificial intelligence technology. Among these, artificial intelligence (Artificial Intelligence, AI) is the theory, method, technique and application system that uses a digital computer or a digital computer-controlled machine to simulate, extend and extend human intelligence, sense the environment, acquire knowledge and use knowledge to obtain optimal results.
In addition, each functional module in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present application and not for limiting the same, and although the present application has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present application without departing from the spirit and scope of the technical solution of the present application.

Claims (10)

1. A method of audio transmission, the method comprising:
the calling client sends a calling request to the audio sending end;
the audio sending end receives the call request and sends the call request to a signaling server;
the signaling server receives the call request, performs channel screening in a preset channel set by utilizing the call request to obtain a target channel, and extracts a communication address of the audio sending end in the call request to construct a connection establishment request;
the signaling server sends the connection establishment request to the audio receiving end by utilizing the target channel;
the audio receiving end receives a connection establishment request sent by the signaling server, extracts a communication address of the audio sending end in the connection establishment request, and constructs a data transmission channel with the audio sending end by utilizing the communication address; the audio receiving end has no public network address, and the audio receiving end actively constructs a data transmission channel with the audio transmitting end; the audio receiving end is positioned in a local area network which can access the Internet, and the audio receiving end and the calling client are not positioned in the same local area network;
the communication address is an IP address identifier of the audio sending end, a connection address identifier of each connection address in a preset connection address set is obtained, the connection address identifier which is the same as the communication address is screened in the preset connection address set, and a connection address corresponding to the connection address identifier obtained by screening is used as a target connection address; replacing corresponding communication address parameters in a preset transmission protocol by using the target connection address to obtain the data transmission channel;
the audio sending end obtains the audio data collected by the calling client and sends the audio data to the audio receiving end by utilizing the data transmission channel.
2. An audio transmission method, wherein the method is applied to an audio transmitting end and comprises the following steps:
acquiring a call request sent by a call client;
the call request is sent to a signaling server, so that the signaling server receives the call request, channel screening is carried out in a preset channel set by utilizing the call request to obtain a target channel, a communication address of the audio sending end in the call request is extracted to construct a connection establishment request, the connection establishment request is sent to the audio receiving end by utilizing the target channel, the audio receiving end receives the connection establishment request sent by the signaling server, the communication address of the audio sending end in the connection establishment request is extracted, and a data transmission channel with the audio sending end is constructed by utilizing the communication address;
the audio receiving end has no public network address, and the audio receiving end actively constructs a data transmission channel with the audio transmitting end; the audio receiving end is positioned in a local area network which can access the Internet, and the audio receiving end and the calling client are not positioned in the same local area network;
the communication address is an IP address identifier of the audio sending end, a connection address identifier of each connection address in a preset connection address set is obtained, the connection address identifier which is the same as the communication address is screened in the preset connection address set, and a connection address corresponding to the connection address identifier obtained by screening is used as a target connection address; replacing corresponding communication address parameters in a preset transmission protocol by using the target connection address to obtain the data transmission channel;
and acquiring the audio data acquired by the calling client, and transmitting the audio data to the audio receiving end by utilizing the data transmission channel.
3. An audio transmission method, wherein the method is applied to a signaling server side and comprises the following steps:
receiving a call request sent by an audio sending end;
extracting a receiving equipment ID in the call request;
channel screening is carried out in a preset channel set according to the ID of the receiving equipment, so that a target channel is obtained;
extracting a communication address of the audio sending end in the call request, constructing a connection establishment request according to the communication address, and sending the connection establishment request to an audio receiving end by utilizing the target channel;
the audio receiving end receives a connection establishment request sent by the signaling server, extracts a communication address of the audio sending end in the connection establishment request, and constructs a data transmission channel with the audio sending end by utilizing the communication address; the audio receiving end has no public network address, and the audio receiving end actively constructs a data transmission channel with the audio transmitting end; the audio receiving end is positioned in a local area network which can access the Internet, and the audio receiving end and the calling client are not positioned in the same local area network;
the communication address is an IP address identifier of the audio sending end, a connection address identifier of each connection address in a preset connection address set is obtained, the connection address identifier which is the same as the communication address is screened in the preset connection address set, and a connection address corresponding to the connection address identifier obtained by screening is used as a target connection address; and replacing corresponding communication address parameters in a preset transmission protocol by the target connection address to obtain the data transmission channel.
4. The audio transmission method as claimed in claim 3, wherein the performing channel screening in a preset channel set according to the receiving device ID to obtain a target channel includes:
acquiring a channel connection equipment ID corresponding to each channel in the channel set;
and screening the channel connection equipment ID which is the same as the receiving equipment ID from the channel set, and taking a channel corresponding to the channel connection equipment ID obtained by screening as a target channel.
5. An audio transmission method, wherein the method is applied to an audio receiving end, and comprises the following steps:
receiving a connection establishment request sent by a signaling server side by utilizing a target channel, wherein a call client side sends a call request to an audio sending side, the audio sending side receives the call request and sends the call request to the signaling server, the signaling server receives the call request, performs channel screening in a preset channel set by utilizing the call request to obtain the target channel, and extracts a communication address of the audio sending side in the call request to construct the connection establishment request;
extracting a communication address of an audio sending end in the connection establishment request, and constructing a data transmission channel by using the communication address;
the audio receiving end has no public network address, and the audio receiving end actively constructs a data transmission channel with the audio transmitting end; the audio receiving end is positioned in a local area network which can access the Internet, and the audio receiving end and the calling client are not positioned in the same local area network;
the communication address is an IP address identifier of the audio sending end, a connection address identifier of each connection address in a preset connection address set is obtained, the connection address identifier which is the same as the communication address is screened in the preset connection address set, and a connection address corresponding to the connection address identifier obtained by screening is used as a target connection address; replacing corresponding communication address parameters in a preset transmission protocol by using the target connection address to obtain the data transmission channel;
and receiving the audio data transmitted by the audio transmitting end through the data transmission channel, wherein the audio transmitting end acquires the audio data acquired by the calling client.
6. The audio transmission method of claim 5, wherein said constructing a data transmission channel using said communication address comprises:
and replacing corresponding communication address parameters in a preset transmission protocol by using the communication address to obtain the data transmission channel.
7. An audio transmission system, comprising a call client, an audio transmitter, a signaling server and an audio receiver, wherein:
the calling client is used for sending a calling request to the audio sending end;
the audio sending end is used for receiving the call request and sending the call request to the signaling server;
the signaling server is used for receiving the call request, carrying out channel screening in a preset channel set by utilizing the call request to obtain a target channel, and extracting a communication address of the audio sending end in the call request to construct a connection establishment request; transmitting the connection establishment request to the audio receiving end by utilizing the target channel;
the audio receiving end is used for receiving a connection establishment request sent by the signaling server, extracting a communication address of the audio sending end in the connection establishment request, and constructing a data transmission channel with the audio sending end by utilizing the communication address; the audio receiving end has no public network address, and the audio receiving end actively constructs a data transmission channel with the audio transmitting end; the audio receiving end is positioned in a local area network which can access the Internet, and the audio receiving end and the calling client are not positioned in the same local area network;
the communication address is an IP address identifier of the audio sending end, a connection address identifier of each connection address in a preset connection address set is obtained, the connection address identifier which is the same as the communication address is screened in the preset connection address set, and a connection address corresponding to the connection address identifier obtained by screening is used as a target connection address; replacing corresponding communication address parameters in a preset transmission protocol by using the target connection address to obtain the data transmission channel;
the audio sending end is further used for obtaining the audio data collected by the calling client and sending the audio data to the audio receiving end by utilizing the data transmission channel.
8. An audio transmission device comprising functional modules which, when executed by any one of the processors, are capable of performing the audio transmission method according to any one of claims 2 to 6.
9. An electronic device, the electronic device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the audio transmission method according to any one of claims 2 to 6.
10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the audio transmission method according to any one of claims 2 to 6.
CN202111354336.4A 2021-11-12 2021-11-12 Audio transmission method, electronic device and readable storage medium Active CN114125024B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111354336.4A CN114125024B (en) 2021-11-12 2021-11-12 Audio transmission method, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111354336.4A CN114125024B (en) 2021-11-12 2021-11-12 Audio transmission method, electronic device and readable storage medium

Publications (2)

Publication Number Publication Date
CN114125024A CN114125024A (en) 2022-03-01
CN114125024B true CN114125024B (en) 2023-10-17

Family

ID=80395663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111354336.4A Active CN114125024B (en) 2021-11-12 2021-11-12 Audio transmission method, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN114125024B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115278324A (en) * 2022-06-30 2022-11-01 海信视像科技股份有限公司 Display device, bluetooth device and BIS audio transmission method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491071A (en) * 2013-09-06 2014-01-01 乐视致新电子科技(天津)有限公司 Wireless communication system
CN105025273A (en) * 2015-08-11 2015-11-04 周勇 Building visible intercom system connection method, password setting method and system
CN107205026A (en) * 2017-05-22 2017-09-26 厦门市美亚柏科信息股份有限公司 A kind of Point-to-Point Data Transmission method and system
WO2018028442A1 (en) * 2016-08-09 2018-02-15 阿里巴巴集团控股有限公司 File transfer method and apparatus
CN109714559A (en) * 2019-01-25 2019-05-03 武汉瑞莱保能源技术有限公司 A kind of scene work compound service support method and system
CN112217862A (en) * 2020-09-03 2021-01-12 视联动力信息技术股份有限公司 Data communication method, device, terminal equipment and storage medium
CN112291514A (en) * 2020-10-13 2021-01-29 中移(杭州)信息技术有限公司 Remote audio and video call method and device and OTT platform
CN112634885A (en) * 2020-05-18 2021-04-09 北京如影智能科技有限公司 Voice wake-up method and device for cross-local area network
CN113612957A (en) * 2018-12-28 2021-11-05 华为技术有限公司 Call method and related equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491071A (en) * 2013-09-06 2014-01-01 乐视致新电子科技(天津)有限公司 Wireless communication system
CN105025273A (en) * 2015-08-11 2015-11-04 周勇 Building visible intercom system connection method, password setting method and system
WO2018028442A1 (en) * 2016-08-09 2018-02-15 阿里巴巴集团控股有限公司 File transfer method and apparatus
CN107205026A (en) * 2017-05-22 2017-09-26 厦门市美亚柏科信息股份有限公司 A kind of Point-to-Point Data Transmission method and system
CN113612957A (en) * 2018-12-28 2021-11-05 华为技术有限公司 Call method and related equipment
CN109714559A (en) * 2019-01-25 2019-05-03 武汉瑞莱保能源技术有限公司 A kind of scene work compound service support method and system
CN112634885A (en) * 2020-05-18 2021-04-09 北京如影智能科技有限公司 Voice wake-up method and device for cross-local area network
CN112217862A (en) * 2020-09-03 2021-01-12 视联动力信息技术股份有限公司 Data communication method, device, terminal equipment and storage medium
CN112291514A (en) * 2020-10-13 2021-01-29 中移(杭州)信息技术有限公司 Remote audio and video call method and device and OTT platform

Also Published As

Publication number Publication date
CN114125024A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
CN110311983B (en) Service request processing method, device and system, electronic equipment and storage medium
CN103069755B (en) Use the method and system that the instant message of multiple client instance transmits
CN111212264B (en) Image processing method and device based on edge calculation and storage medium
CN111294235A (en) Data processing method, device, gateway and readable storage medium
CN114827161B (en) Service call request sending method and device, electronic equipment and readable storage medium
CN114125024B (en) Audio transmission method, electronic device and readable storage medium
CN110222280A (en) Data processing method and device for sharing
CN107181825B (en) Online processing method of terminal equipment data
CN111880948A (en) Data refreshing method and device, electronic equipment and computer readable storage medium
CN109788251B (en) Video processing method, device and storage medium
CN117176802B (en) Full-link monitoring method and device for service request, electronic equipment and medium
CN112637887B (en) IPRAN equipment inspection method, device, equipment, medium and product
CN115022397B (en) Interface parameter simplifying method and device, electronic equipment and storage medium
CN104639379A (en) Proxy testing method and device
CN115002011B (en) Flow bidirectional test method and device, electronic equipment and storage medium
CN103634348A (en) Terminal device and method for releasing information
CN113114755A (en) Method and device for smooth switching between devices, electronic device and storage medium
CN106713441A (en) Method and device for uploading terminal application data
CN112383904A (en) Pair-free quick peripheral calling method and device
CN113612972B (en) Communication method and device of terminal monitoring equipment, electronic equipment and storage medium
CN115174691B (en) Big data loading method, device, equipment and medium based on page request
CN111078477A (en) Interface test method and device, storage medium and electronic equipment
CN113452703B (en) Combined communication request response method and device, electronic equipment and readable storage medium
CN112311833B (en) Data updating method and device
CN114915605B (en) Event progress tracking method, device, electronic equipment and storage medium

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