CN108540500B - Data transmission method, device, equipment and storage medium for multi-person conversation - Google Patents

Data transmission method, device, equipment and storage medium for multi-person conversation Download PDF

Info

Publication number
CN108540500B
CN108540500B CN201810759745.4A CN201810759745A CN108540500B CN 108540500 B CN108540500 B CN 108540500B CN 201810759745 A CN201810759745 A CN 201810759745A CN 108540500 B CN108540500 B CN 108540500B
Authority
CN
China
Prior art keywords
data channel
data
terminal
main data
voice
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
CN201810759745.4A
Other languages
Chinese (zh)
Other versions
CN108540500A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810759745.4A priority Critical patent/CN108540500B/en
Publication of CN108540500A publication Critical patent/CN108540500A/en
Application granted granted Critical
Publication of CN108540500B publication Critical patent/CN108540500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/40Support for services or applications
    • H04L65/403Arrangements for multi-party communication, e.g. for conferences
    • 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/1066Session management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the application provides a data transmission method, a device, equipment and a storage medium for multi-person communication, wherein the method comprises the following steps: establishing a multi-person conversation; counting the data volume of the voice data uploaded by each data channel in the n data channels in the first period; determining one data channel with the largest data quantity as a main data channel; and allowing the terminal corresponding to the main data channel to upload voice data, and forbidding terminals corresponding to other data channels except the main data channel to upload voice data. In the embodiment of the application, after the multi-person call is established, the server determines the data volume of the voice data uploaded in a certain time period as the main data channel, and only the terminal corresponding to the main data channel is allowed to upload the voice data to the server, so that the situation that a user cannot distinguish voice due to the fact that the server forwards the voice data uploaded by a plurality of terminals at the same time is avoided, the multi-person call can be carried out in order, and the call quality of the multi-person call is improved.

Description

Data transmission method, device, equipment and storage medium for multi-person conversation
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to a data transmission method, a device, equipment and a storage medium for multi-person communication.
Background
Currently, a terminal is provided with a multi-person call function. That is, the user can communicate with two or more users in real time through the terminal.
In the related art, when a plurality of terminals are in the same multi-person conversation scene, each terminal in the plurality of terminals may upload acquired voice data to a server, and the server forwards the uploaded voice data to other terminals in the multi-person conversation scene.
Disclosure of Invention
The embodiment of the application provides a data transmission method, a device, equipment and a storage medium for multi-person communication. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a data transmission method for a multi-person call, where the method includes:
establishing a multi-person call, wherein the multi-person call comprises a real-time call participated by n terminals, each terminal in the n terminals is provided with a data channel for uploading call data to a server, and n is an integer greater than 1;
counting the data volume of the voice data uploaded by each data channel in the n data channels in a first period;
determining one data channel with the largest data quantity as a main data channel;
and allowing the terminal corresponding to the main data channel to upload voice data, and forbidding terminals corresponding to other data channels except the main data channel to upload voice data.
On the other hand, an embodiment of the present application provides a data transmission device for a multi-person call, where the device includes:
the system comprises a call establishing module, a data processing module and a data processing module, wherein the call establishing module is used for establishing a multi-person call, the multi-person call refers to a real-time call involving n terminals, each terminal in the n terminals is provided with a data channel for uploading call data to a server, and n is an integer greater than 1;
the data volume counting module is used for counting the data volume of the voice data uploaded by each data channel in the n data channels in a first period;
the channel determining module is used for determining one data channel with the largest data quantity as a main data channel;
and the uploading control module is used for allowing the terminal corresponding to the main data channel to upload voice data and forbidding the terminals corresponding to other data channels except the main data channel to upload voice data.
In another aspect, an embodiment of the present application provides a computer device, where the computer device includes a processor and a memory, where the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the data transmission method for multi-person conversation in the foregoing aspect.
In still another aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to implement the data transmission method for multi-person conversation described in the above aspect.
The technical scheme provided by the embodiment of the application can bring the following beneficial effects:
after the multi-person conversation is established, the server determines the main data channel according to the data volume of the uploaded voice data in a certain time period, and only allows the terminal corresponding to the main data channel to upload the voice data to the server, so that the server controls the uploaded voice data of each terminal participating in the multi-person conversation without human intervention, thereby preventing the server from simultaneously forwarding the voice data uploaded by a plurality of terminals, causing the situation that a user cannot distinguish voice, enabling the multi-person conversation to be orderly carried out, and improving the conversation quality of the multi-person conversation.
Drawings
FIG. 1 is a schematic illustration of an implementation environment shown in one embodiment of the present application;
fig. 2 is a flowchart illustrating a data transmission method for a multi-person call according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating an interface displaying a first prompting message, according to an embodiment of the application;
FIG. 4 is a diagram illustrating an interface displaying a second prompting message, according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an interface for switching a main data channel according to an embodiment of the present application;
FIG. 6 is a flow chart of switching a primary data channel according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an interface for switching a primary data channel according to another embodiment of the present application;
fig. 8 is a block diagram of a data transmission apparatus for multi-person conversation according to an embodiment of the present application;
FIG. 9 is a schematic diagram of a computer device shown in one embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, a schematic diagram of an implementation environment provided by an embodiment of the present application is shown. The implementation environment includes: at least two terminals 11, a server 12. In this embodiment, only three terminals 11 will be described as an example.
The terminal 11 has a data transmission/reception function. Alternatively, the terminal 11 is installed with an application program, and the data transmission and reception function is realized by the application program. The application program may be a voice application program, a social application program, a shopping application program, a game application program, or the like, which is capable of communicating with one or more users, and this is not limited in this embodiment of the present application. Optionally, the terminal 11 further has a voice data acquisition function and an image acquisition function. The terminal 11 may be an electronic device such as a mobile phone, a Personal Computer (PC), a tablet Computer, an electronic book reader, a multimedia player, and a wearable device.
The server 12 also has a data transceiving function. In the embodiment of the present application, the server 12 is configured to forward call data uploaded by a certain terminal participating in a multi-person call to other terminals. The server 12 may be a background server corresponding to an application installed in the terminal 11 and capable of communicating with one or more users. The server 12 may be a server, a server cluster, or a cloud service computing center, which is not limited in this embodiment of the present application.
Each terminal 11 of the at least two terminals 11 establishes a communication connection with the server 12. The communication connection may be established based on a wired network or a wireless network.
According to the technical scheme, after the multi-person call is established, the server determines the main data channel according to the data volume of the voice data uploaded within a certain time period, and only the terminal corresponding to the main data channel is allowed to upload the voice data to the server, so that the server controls the uploaded voice data of each terminal participating in the multi-person call under the condition of no need of human intervention, the situation that the voice data uploaded by a plurality of terminals are forwarded by the server at the same time is avoided, a user cannot distinguish sound, the multi-person call can be carried out orderly, and the call quality of the multi-person call is improved.
Please refer to fig. 2, which illustrates a flowchart of a data transmission method for a multi-person call according to an embodiment of the present application. The method is applied to the server of the implementation environment shown in fig. 1, and may include the following steps.
Step 201, establishing a multi-person call.
The multi-person call refers to a real-time call involving n terminals, wherein n is an integer greater than 1. The real-time call may include a voice call and may also include a video call.
Optionally, the n terminals are all installed with the same application program, and each terminal realizes a multi-user call function based on the application program. The application program may be a voice call application program, a social contact application program, a shopping application program, a game application program, and the like, which is not limited in this embodiment of the present application. Furthermore, the user accounts corresponding to each of the n terminals belong to the same group.
Each of the n terminals has a data channel for uploading call data to the server. The call data may include voice data, image data, and the like. In the embodiment of the application, the server is used for forwarding the call data to other terminals.
Optionally, the flow of establishing the multi-person call is as follows: and the target terminal in the n terminals sends a call establishment request to the server. The call establishment request carries the identification of other terminals and is used for requesting the establishment of multi-person call with the other terminals. The call setup request may be triggered by the user to send. Optionally, the target terminal displays a message interface, where the message interface includes a call establishment entry, and when the user triggers the call establishment entry, the terminal sends a call establishment request to the server. The server sends a call invitation to other terminals after receiving the call establishment request, and establishes the multi-person call after the other terminals return confirmation responses corresponding to the call invitation to the server.
Step 202, counting the data volume of the voice data uploaded by each data channel of the n data channels in the first period.
The first time period may be a time period from the establishment of the multi-person call, or may be a time period from the first time period when the voice data is received, which is not limited in the embodiment of the present application. In addition, the duration of the first period may be set by a server in a customized manner, which is not limited in this embodiment of the application. Illustratively, the first time period is a time period starting from the time period when the voice data is received for the first time and having a duration of 2 seconds. The data amount of the voice data is used to measure the amount of the voice data.
Step 203, determining the data channel with the largest data amount as the main data channel.
The main data channel refers to a data channel that is allowed to upload voice data. It should be noted that the server is in idle state before the primary data channel is determined. When the server is in idle state, each terminal participating in multi-person conversation can upload voice data to the server through a corresponding data channel. Therefore, the server can determine the main data channel according to the data volume of the voice data uploaded by each data channel. In the embodiment of the application, the server determines the data channel with the largest data volume of the uploaded voice data in the first time period as the main data channel.
In other possible implementations, the main data channel may also be actually determined according to the content of the voice data uploaded by each data channel. Illustratively, the server receives voice data uploaded by at least one data channel of the n data channels; and determining a data channel comprising preset keywords in the uploaded voice data as a main data channel. The preset keywords may be set by a server or a terminal in a user-defined manner, or may be set by a user, which is not limited in the embodiment of the present application. Illustratively, the preset keywords may be "i begin first", "i come", and so on. In addition, when a plurality of data channels including preset keywords exist in the uploaded voice data, the server can optionally select one data channel, or the server can send an inquiry message to each terminal, wherein the inquiry message is used for inquiring which data channel corresponding to the terminal is set as the main data channel, the server counts response messages corresponding to the inquiry messages returned by each terminal, and the data channel corresponding to the terminal with the highest ticket obtaining quantity is determined as the main data channel.
In other possible implementation manners, the server may further determine a data channel corresponding to the terminal that sends the call establishment request as the primary data channel, and may also determine a data channel corresponding to the first received voice data as the primary data channel, which is not limited in this embodiment of the present application.
And step 204, allowing the terminal corresponding to the main data channel to upload the voice data, and forbidding terminals corresponding to other data channels except the main data channel to upload the voice data.
In the embodiment of the application, only the terminal corresponding to the main data channel is allowed to upload the voice data to the server, and the terminals corresponding to the other data channels except the main data channel are forbidden to upload the voice data to the server.
Optionally, step 204 is specifically implemented as: and setting the voice uploading authority of the main data channel to be in an open state, and setting the voice uploading authorities of other data channels except the main data channel to be in a closed state.
The voice uploading authority is the authority to upload voice data to the server. When the voice uploading authority of a certain data channel is in an open state, the terminal corresponding to the data channel can upload voice data to the server, so that the server can complete subsequent forwarding work. At this time, the user of each terminal participating in the multi-person call can hear the voice of the user of the terminal corresponding to the data channel. When the voice uploading authority of a certain data channel is in a closed state, the terminal corresponding to the data channel cannot upload voice data to the server, and the server cannot complete subsequent forwarding work. At this time, the user of each terminal participating in the multi-person call cannot hear the voice of the user of the terminal corresponding to the data channel.
In addition, when the voice uploading authority of the data channel is in the closed state, the data channel may also upload other forms of call data, such as text, images, and the like, and may also upload data that is not forwarded by the server. In addition, when the server determines the main data channel and controls each terminal participating in the multi-person conversation to upload voice data, the server is in the cached state.
Optionally, after step 204, the server may send a speech notification to the terminal corresponding to the main data channel, where the speech notification is used to remind that the terminal corresponding to the main data channel has the voice upload permission, and the terminal corresponding to the main data channel may generate a first prompt message according to the speech notification, where the first prompt message is used to prompt the user to speak. The first prompting message may be in a voice form, a vibration form, or a text form, which is not limited in this embodiment of the application. Referring to fig. 3 in combination, an interface diagram of a first prompting message provided by an embodiment of the present application is shown. The terminal 31 is configured to display a multi-user call interface 32 of the user a, where a data channel corresponding to the terminal 31 is a main data channel, and at this time, the terminal 31 displays a first prompt message 33 on the multi-user call interface 32 of the user a.
Optionally, after step 204, the server sends a barring notification to the terminals corresponding to the other data channels except the main data channel, where the barring notification is used to notify the terminals to bar uploading of the voice data to the server. The terminal may generate a second prompt message according to the speech forbidding notification, where the second prompt message is used to prompt the user not to speak. The second prompting message may be in a voice form, a vibration form, or a text form, which is not limited in this embodiment of the application. Referring to fig. 4 in combination, an interface diagram of a first prompting message provided by an embodiment of the present application is shown. The terminal 41 is configured to display a multi-user call interface 42 of the user B, where a data channel corresponding to the terminal 41 is a main data channel, and at this time, the terminal 41 displays a second prompt message 43 on the multi-user call interface 42 of the user B.
In addition, when each terminal displays the multi-person communication interface, the terminal corresponding to the main data channel with the voice uploading authority can be distinguished from the terminal corresponding to the other data channel without the voice uploading authority. Illustratively, each terminal displays the speaking identification on the periphery of the identification of the terminal corresponding to the main data channel, and displays the forbidden identification on the periphery of the terminals corresponding to other data channels except the main data channel.
To sum up, according to the technical scheme provided by the embodiment of the application, after the multi-person call is established, the server determines the main data channel according to the data volume of the voice data uploaded within a certain time period, and only the terminal corresponding to the main data channel is allowed to upload the voice data to the server, so that the server controls the uploaded voice data of each terminal participating in the multi-person call under the condition of no need of human intervention, thereby preventing the server from simultaneously forwarding the voice data uploaded by a plurality of terminals, causing the condition that a user cannot distinguish sound, enabling the multi-person call to be orderly carried out, and improving the call quality of the multi-person call.
The main data channel can be switched back and forth among the data channels corresponding to the n terminals participating in the multi-person conversation, so that each user participating in the multi-person conversation is guaranteed to have an opportunity to speak. The switching of the main data channel may be initiated by a terminal corresponding to the non-main data channel, or may be initiated by a terminal corresponding to the main data channel, or may be initiated by a server. These three cases will be explained separately below.
1. And initiating the switching of the main data channel by the terminal corresponding to the non-main data channel.
In the embodiment of the application, the terminal corresponding to the non-main data channel initiates the switching of the main data channel.
The non-main data channel refers to other data channels except the main data channel in the data channels corresponding to the n terminals. The method may comprise the following two steps:
step 301 receives an origination request transmitted by a first terminal of the n terminals.
The data channel corresponding to the first terminal is not a main data channel. The speaking request is used for requesting speaking in a multi-person conversation, namely for requesting to switch the voice uploading authority from the closed state to the open state. The speaking request carries the identifier of the first terminal.
Optionally, a speaking request control is displayed in a multi-person conversation interface displayed by the first terminal, and the first terminal sends a speaking request to the server when receiving a first operation signal corresponding to the speaking request control. The first operation signal may be any one of a single-click operation signal, a double-click operation signal, a sliding operation signal, and a long-press operation signal, which is not limited in this embodiment of the application. In the embodiment of the present application, only the case where the first operation signal is the one-click signal will be explained.
Step 302, switching the data channel corresponding to the first terminal to the main data channel according to the speaking request.
The server may switch the data channel corresponding to the first terminal to the main data channel according to the speaking request of the first terminal. Alternatively, step 302 may be implemented in two ways.
In a first possible implementation, step 302 includes the following three substeps:
step 302a, according to the speaking request, sending a first switching request to the terminal corresponding to the main data channel.
Correspondingly, the terminal corresponding to the main data channel receives the first switching request.
Step 302b, receiving a switching confirmation response returned by the terminal corresponding to the main data channel;
and step 302c, switching the data channel corresponding to the first terminal into the main data channel according to the switching confirmation response.
The first switching request is for requesting switching of the primary data channel. The first handover request carries an identity of the first terminal. And after receiving the first switching request, the terminal corresponding to the main data channel displays inquiry information, wherein the inquiry information is used for inquiring whether the user of the first terminal is allowed to speak.
In addition, the terminal corresponding to the main data channel also displays an agreement control after receiving the first switching request. And when the terminal corresponding to the main data channel receives a second operation signal corresponding to the agreement control, sending a switching confirmation response to the server. The second operation signal may be any one of a single-click operation signal, a double-click operation signal, a sliding operation signal, and a long-press operation signal, which is not limited in this embodiment of the application. In the embodiment of the present application, only the case where the second operation signal is the one-click signal will be explained.
And when the terminal corresponding to the main data channel does not receive a second operation signal corresponding to the agreement control within the preset time length after the agreement control is displayed, the terminal corresponding to the main data channel returns a refund switching response, and the refund switching response is used for indicating the server not to execute the step of switching the data channel corresponding to the first terminal into the main data channel. Optionally, the terminal corresponding to the main data channel further displays a disagreeable control. And when the terminal corresponding to the main data channel receives a third operation signal corresponding to the unapproved control, sending a switching confirmation response to the server. The third operation signal may be any one of a single-click operation signal, a double-click operation signal, a sliding operation signal, and a long-press operation signal, which is not limited in this embodiment of the application. In the embodiment of the present application, only the case where the third operation signal is the one-click signal will be explained.
Optionally, after the switching of the main data channel is completed, the server sends a speech notification to the first terminal, where the speech notification is used to remind the first terminal that the voice upload permission is provided, and the first terminal may generate a first prompt message according to the speech notification.
With reference to fig. 5, an interface diagram for switching a main data channel according to an embodiment of the present application is shown. The data channel corresponding to the first terminal 51 is not the main data channel, the multi-user call interface 52 of the user B displayed by the first terminal 51 includes a request-to-speak control 53, when the user B clicks on the request-to-speak control 53, the first terminal 52 receives a first operation signal corresponding to the request-to-speak control 53, and sends a talk request to the server, which sends a first switch request to the terminal 54 corresponding to the main data channel, which terminal 54 displays an inquiry message 55, an approval control 56 and a disapproval control 57, when the user a clicks the agreement control 56, the terminal 54 corresponding to the main data channel sends a switching confirmation response to the server, the server 54 switches the data channel corresponding to the first terminal 51 to the main data channel, and sends a speech notification to first terminal 51, and first terminal 51 generates first prompt message 31 to remind user B to speak.
In a second possible implementation, step 302 includes the following two substeps:
step 302d, counting the data volume of the voice data uploaded by the main data channel in the second time interval;
step 302e, when the data amount of the voice data uploaded by the main data channel in the second time period is smaller than the preset data amount, switching the data channel corresponding to the first terminal to the main data channel.
The second period may be a period starting from when the server receives the talk request. The duration of the second period may be set by the server in a user-defined manner, which is not limited in this embodiment of the application. The preset data volume can be set according to actual requirements, and the embodiment of the application is not limited to this.
In addition, it should be noted that, in order to avoid an excessively long interaction time between the server and the terminal corresponding to the main data channel, the server may temporarily allow the first terminal to upload the voice data, so as to avoid an excessively long waiting time for the user. Optionally, after step 301, the following steps are further included: and setting the temporary uploading authority of the data channel corresponding to the first terminal to be in an open state, wherein the temporary uploading authority is the authority for uploading the voice data to the server in a third time period. In addition, when the first terminal sends a speaking request to the server and the server sets the temporary uploading authority of the data channel corresponding to the first terminal to be in an open state, the server is in a transferring state.
In a specific example, reference is made to fig. 6 in combination, which shows a flowchart of switching a main voice channel according to an embodiment of the present application. When a multi-person conversation is established, the server is in an idle state firstly, then the data channel Ta with the largest data volume of voice data uploaded by the server in a first period is selected as an exclusive channel (namely a main data channel), the non-exclusive channel is forbidden, the server is switched to an encrypted state, then the data channel Tb sends a speaking request to the server, the server enters a transferring state, the data channels except Ta and Tb are forbidden, and then the data channel Ta is switched to the exclusive channel.
The third period may be a period starting from when the server receives the talk request. The duration of the third period may be set by the server in a user-defined manner, which is not limited in this embodiment of the application. Optionally, the third time period is a time period starting from the reception of the talk request from the server and ending when the server receives the confirm or reject switch response.
To sum up, according to the technical scheme provided by the embodiment of the application, the terminal corresponding to the non-main data channel initiates the switching of the main data channel, so that the speech of the user of the terminal corresponding to the other data channels except the main data channel can be heard by each user in the multi-user call, and the call quality is improved.
In addition, the temporary uploading authority of the data channel corresponding to the terminal which sends the speaking request is in an open state, and the first terminal is allowed to upload the voice data temporarily, so that the situation that the waiting time of the user is too long when the interaction time between the server and the terminal corresponding to the main data channel is too long can be avoided.
2. And initiating the switching of the main data channel by the terminal corresponding to the main data channel.
In the embodiment of the application, the terminal corresponding to the non-main data channel initiates the switching of the main data channel. The method may comprise the following two steps:
step 401, receiving a second switching request sent by a terminal corresponding to the main data channel.
Step 402, according to the second switching request, switching the data channel corresponding to the second terminal into the main data channel.
The second switching request is used for requesting to switch the data channel corresponding to the second terminal in the n terminals into the main data channel. The second switching request carries the identifier of the second terminal. The data channel corresponding to the second terminal is not the main data channel. The second terminal is selected by a user of the terminal corresponding to the primary data channel.
Optionally, the multi-user call interface displayed by the terminal corresponding to the main data channel includes a switching control, the switching control is used for triggering switching of the main data channel, when the terminal corresponding to the main data channel receives a fourth operation signal corresponding to the switching control, a third prompt message is displayed, the third prompt message is used for prompting selection of the second terminal, and when a fifth operation signal corresponding to any one of the n terminals except the terminal corresponding to the main data channel is received, a second switching request is sent to the server.
The fourth operation signal may be any one of a single-click operation signal, a double-click operation signal, a sliding operation signal, and a long-press operation signal, which is not limited in this embodiment of the application. In the embodiment of the present application, only the fourth operation signal is a single-click signal as an example for explanation. The fifth operation signal may be any one of a single-click operation signal, a double-click operation signal, a sliding operation signal, and a long-press operation signal, which is not limited in this embodiment of the application. In the embodiment of the present application, only the fifth operation signal is a single-click signal as an example for explanation.
Optionally, after the switching of the main data channel is completed, the server sends a speech notification to the second terminal, where the speech notification is used to remind the second terminal that the second terminal has the voice upload permission, and the second terminal may generate the first prompt message according to the speech notification.
Referring to fig. 7 in combination, an interface diagram for switching a main data channel according to an embodiment of the present application is shown. The terminal 71 corresponding to the main data channel displays a switching control 72, when the user clicks the switching control 72, the terminal 71 corresponding to the main data channel displays a third prompt message 73, the user selects a second terminal 74 according to the third prompt message 73, then the terminal 71 corresponding to the main data channel sends a second switching request to the server, the server switches the second terminal 74 into the main data channel and sends a speech notification to the second terminal 74, and the second terminal 74 generates a first prompt message 31 to remind the user B of speech.
To sum up, according to the technical scheme provided by the embodiment of the application, the terminal corresponding to the main data channel initiates the switching of the main data channel, so that the speech of the user of the terminal corresponding to the other data channels except the main data channel can be heard by each user in the multi-user call, and the call quality is improved.
3. The switching of the primary data channel is initiated by the server.
In the embodiment of the application, the server initiates the switching of the main data channel. In addition, when the server determines that the main data channel is to be switched, the server re-enters the idle state.
The method may include the following two implementations.
In a first possible implementation manner, if the voice data uploaded by the main data channel is not received in the fourth time period, the server starts to execute the step of determining one data channel of the n data channels as the main data channel.
The fourth period may be from when the main data channel is determined, or may be from when the server transmits the origination notification to the terminal corresponding to the main data channel, which is not limited in this embodiment of the present application. The duration of the fourth period may be set empirically, and is not limited in the embodiments of the present application.
And when the server monitors that the user of the terminal corresponding to the main data channel does not speak for a long time, the server selects to switch the main data channel. The server needs to re-determine the main data channel in other data channels except the main data channel, and the determination method may refer to step 202, which is not described herein again.
In a second possible implementation manner, the terminal corresponding to the main data channel exits the multi-user call, and the server starts to execute the step of determining one data channel of the n data channels as the main data channel.
The multi-person call interface displayed by the terminal corresponding to the main data channel comprises a hang-up control, and the hang-up control is used for triggering the quitting of the multi-person call. When the terminal corresponding to the main data channel receives the sixth operation signal corresponding to the hang-up control, a quit notification is sent to the server, where the quit notification is used to notify the server that the terminal corresponding to the main data channel quits the multi-person call, and at this time, the server needs to re-determine the main data channel in other data channels except the main data channel, and the determination manner may refer to step 202, which is not described herein again.
To sum up, according to the technical scheme provided by the embodiment of the application, the server determines the main data channel again when the terminal corresponding to the main data channel does not upload voice data for a long time or quits the multi-person call, so that the speech of the user of the terminal corresponding to the other data channels except the main data channel can be heard by each user in the multi-person call, and the call quality is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 8, a block diagram of a data transmission apparatus for multi-person conversation according to an embodiment of the present application is shown. The device has the functions of realizing the method examples, and the functions can be realized by hardware or by hardware executing corresponding software. The apparatus may include: a call establishing module 801, a data amount counting module 802, a channel determining module 803 and an uploading control module 804.
The call establishing module 801 is configured to establish a multi-person call, where the multi-person call includes a real-time call in which n terminals participate, each terminal in the n terminals has a data channel for uploading call data to a server, and n is an integer greater than 1.
A data amount counting module 802, configured to count a data amount of the voice data uploaded by each data channel of the n data channels in a first period.
A channel determining module 803, configured to determine a data channel with the largest data amount as the primary data channel.
An upload control module 804, configured to allow the terminal corresponding to the main data channel to upload voice data, and prohibit terminals corresponding to other data channels except the main data channel from uploading voice data.
To sum up, according to the technical scheme provided by the embodiment of the application, after the multi-person call is established, the server determines the main data channel according to the data volume of the voice data uploaded within a certain time period, and only the terminal corresponding to the main data channel is allowed to upload the voice data to the server, so that the server controls the uploaded voice data of each terminal participating in the multi-person call under the condition of no need of human intervention, thereby preventing the server from simultaneously forwarding the voice data uploaded by a plurality of terminals, causing the condition that a user cannot distinguish sound, enabling the multi-person call to be orderly carried out, and improving the call quality of the multi-person call.
In an optional embodiment provided based on the embodiment shown in fig. 8, the upload control module 803 is configured to set the voice upload permission of the main data channel to be in an open state, and set the voice upload permission of the other data channels except the main data channel to be in a closed state; the voice uploading authority is the authority for uploading voice data to the server.
In another alternative embodiment provided based on the embodiment shown in fig. 8, the apparatus further comprises: a request receiving module and a channel switching module (not shown in the figure).
A request receiving module, configured to receive a speech request sent by a first terminal of the n terminals, where a data channel corresponding to the first terminal is not the main data channel.
And a channel switching module, configured to switch the data channel corresponding to the first terminal to the main data channel according to the speaking request.
Optionally, the channel switching module is configured to:
sending a first switching request to a terminal corresponding to the main data channel according to the speaking request, wherein the first switching request is used for requesting to switch the main data channel;
receiving a switching confirmation response returned by the terminal corresponding to the main data channel;
and switching the data channel corresponding to the first terminal into the main data channel according to the switching confirmation response.
Optionally, the channel switching module is configured to:
counting the data volume of the voice data uploaded by the main data channel in a second time period;
and when the data volume of the voice data uploaded by the main data channel in a second time period is less than a preset data volume, switching the data channel corresponding to the first terminal into the main data channel.
Optionally, the apparatus further comprises: a rights setting module (not shown).
And the permission setting module is used for setting the temporary uploading permission of the data channel corresponding to the first terminal to be in an open state, and the temporary uploading permission is the permission for uploading the voice data to the server in a third time period.
In another alternative embodiment provided based on the embodiment shown in figure 8,
the request receiving module is configured to receive a second switching request sent by a terminal corresponding to the main data channel, where the second switching request is used to request to switch a data channel corresponding to a second terminal of the n terminals to the main data channel.
And the channel switching module is used for switching the data channel corresponding to the second terminal into the main data channel according to the second switching request.
In another alternative embodiment provided based on the embodiment shown in fig. 8, the apparatus further comprises: a notification sending module (not shown in the figure).
And the notification sending module is used for sending a language forbidden notification to terminals corresponding to other data channels except the main data channel, wherein the language forbidden notification is used for notifying the terminals to forbid uploading of voice data to the server.
In another optional embodiment provided based on the embodiment shown in fig. 8, the channel determining module 802 is further configured to, if the voice data uploaded by the main data channel is not received in a fourth time period, or the terminal corresponding to the main data channel exits from the multi-person call, start execution from the step of determining one data channel of the n data channels as the main data channel.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Referring to fig. 9, a schematic structural diagram of a computer device according to an embodiment of the present application is shown. The computer device is used for implementing the data transmission method for multi-person conversation provided in the above embodiment. Specifically, the method comprises the following steps:
the computer device 900 includes a Central Processing Unit (CPU)901, a system memory 904 including a Random Access Memory (RAM)902 and a Read Only Memory (ROM)903, and a system bus 905 connecting the system memory 904 and the central processing unit 901. The computer device 900 also includes a basic input/output system (I/O system) 906 for facilitating the transfer of information between devices within the computer, and a mass storage device 907 for storing an operating system 913, application programs 914, and other program modules 915.
The basic input/output system 906 includes a display 908 for displaying information and an input device 909 such as a mouse, keyboard, etc. for user input of information. Wherein a display 908 and an input device 909 are connected to the central processing unit 901 through an input-output controller 910 connected to the system bus 905. The basic input/output system 906 may also include an input/output controller 910 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 910 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 907 is connected to the central processing unit 901 through a mass storage controller (not shown) connected to the system bus 905. The mass storage device 907 and its associated computer-readable media provide non-volatile storage for the computer device 900. That is, mass storage device 907 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM drive.
Without loss of generality, computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media is not limited to the foregoing. The system memory 904 and mass storage device 907 described above may be collectively referred to as memory.
According to various embodiments of the present application, the computer device 900 may also operate as a remote computer connected to a network via a network, such as the Internet. That is, the computer device 900 may be connected to the network 912 through the network interface unit 911 on the system bus 905, or may be connected to another type of network or remote computer system (not shown) using the network interface unit 911.
The memory also includes a program stored in the memory and configured to be executed by the processor. The program includes instructions for executing the data transmission method for a multi-person call.
In an exemplary embodiment, a computer readable storage medium is also provided, in which a computer program is stored, which is loaded and executed by a processor of a server to implement the respective steps in the above-described method embodiments.
Alternatively, the computer-readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided for implementing the functions of the individual steps in the above-described method embodiments when the computer program product is executed.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (11)

1. A data transmission method for multi-person conversation, the method comprising:
establishing a multi-person call, wherein the multi-person call comprises a real-time call participated by n terminals, each terminal in the n terminals is provided with a data channel for uploading call data to a server, and n is an integer greater than 1;
counting the data volume of the voice data uploaded by each data channel in the n data channels in a first period;
determining a data channel with the largest data volume of voice data as a main data channel;
receiving a speaking request sent by a first terminal of the n terminals, wherein a data channel corresponding to the first terminal is not the main data channel;
switching a data channel corresponding to the first terminal into the main data channel according to the speaking request;
and allowing the terminal corresponding to the main data channel to upload voice data, and forbidding terminals corresponding to other data channels except the main data channel to upload voice data.
2. The method according to claim 1, wherein the allowing of the terminal corresponding to the main data channel to upload the voice data and the prohibiting of the terminals corresponding to the other data channels except the main data channel from uploading the voice data comprises:
setting the voice uploading authority of the main data channel to be in an open state, and setting the voice uploading authorities of other data channels except the main data channel to be in a closed state; the voice uploading authority is the authority for uploading voice data to the server.
3. The method of claim 1, wherein the switching the data channel corresponding to the first terminal to the main data channel according to the speaking request comprises:
sending a first switching request to a terminal corresponding to the main data channel according to the speaking request, wherein the first switching request is used for requesting to switch the main data channel;
receiving a switching confirmation response returned by the terminal corresponding to the main data channel;
and switching the data channel corresponding to the first terminal into the main data channel according to the switching confirmation response.
4. The method of claim 1, wherein the switching the data channel corresponding to the first terminal to the main data channel according to the speaking request comprises:
counting the data volume of the voice data uploaded by the main data channel in a second time period;
and when the data volume of the voice data uploaded by the main data channel in a second time period is less than a preset data volume, switching the data channel corresponding to the first terminal into the main data channel.
5. The method of claim 1, wherein after receiving the talk burst request sent by the first terminal of the n terminals, the method further comprises:
and setting a temporary uploading authority of a data channel corresponding to the first terminal to be in an open state, wherein the temporary uploading authority is the authority for uploading voice data to the server in a third time period.
6. The method of claim 1, wherein after determining the data channel with the largest data amount of the voice data as the primary data channel, the method further comprises:
receiving a second switching request sent by a terminal corresponding to the main data channel, where the second switching request is used to request to switch a data channel corresponding to a second terminal in the n terminals to the main data channel;
and switching the data channel corresponding to the second terminal into the main data channel according to the second switching request.
7. The method according to claim 1, wherein after the terminal corresponding to the data channel other than the main data channel is prohibited from uploading the voice data, the method further comprises:
and sending a language forbidden notice to terminals corresponding to other data channels except the main data channel, wherein the language forbidden notice is used for informing the terminals to forbid uploading of voice data to the server.
8. The method according to claim 1, wherein after the terminal corresponding to the data channel other than the main data channel is prohibited from uploading the voice data, the method further comprises:
and if the voice data uploaded by the main data channel is not received in a fourth time period, or the terminal corresponding to the main data channel exits the multi-person call, starting to execute the step of determining one data channel of the n data channels as the main data channel.
9. A data transmission apparatus for a multi-person call, the apparatus comprising:
the system comprises a call establishing module, a data processing module and a data processing module, wherein the call establishing module is used for establishing a multi-person call, the multi-person call refers to a real-time call involving n terminals, each terminal in the n terminals is provided with a data channel for uploading call data to a server, and n is an integer greater than 1;
the data volume counting module is used for counting the data volume of the voice data uploaded by each data channel in the n data channels in a first period;
the channel determining module is used for determining one data channel with the largest data volume of the voice data as a main data channel;
a request receiving module, configured to receive a speech request sent by a first terminal of the n terminals, where a data channel corresponding to the first terminal is not the main data channel;
a channel switching module, configured to switch a data channel corresponding to the first terminal to the main data channel according to the speaking request;
and the uploading control module is used for allowing the terminal corresponding to the main data channel to upload voice data and forbidding the terminals corresponding to other data channels except the main data channel to upload voice data.
10. A computer device characterized in that it comprises a processor and a memory, said memory storing a computer program which is loaded and executed by said processor to implement the data transmission method for a multi-person conversation according to any one of claims 1 to 8.
11. A computer-readable storage medium, in which a computer program is stored, which is loaded and executed by a processor to implement the data transmission method for a multi-person call according to any one of claims 1 to 8.
CN201810759745.4A 2018-07-11 2018-07-11 Data transmission method, device, equipment and storage medium for multi-person conversation Active CN108540500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810759745.4A CN108540500B (en) 2018-07-11 2018-07-11 Data transmission method, device, equipment and storage medium for multi-person conversation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810759745.4A CN108540500B (en) 2018-07-11 2018-07-11 Data transmission method, device, equipment and storage medium for multi-person conversation

Publications (2)

Publication Number Publication Date
CN108540500A CN108540500A (en) 2018-09-14
CN108540500B true CN108540500B (en) 2021-06-11

Family

ID=63488178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810759745.4A Active CN108540500B (en) 2018-07-11 2018-07-11 Data transmission method, device, equipment and storage medium for multi-person conversation

Country Status (1)

Country Link
CN (1) CN108540500B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109104535B (en) * 2018-09-30 2020-10-27 联想(北京)有限公司 Information processing method, electronic equipment and system
CN111447223A (en) * 2020-03-26 2020-07-24 维沃移动通信有限公司 Call processing method and electronic equipment
CN111432160A (en) * 2020-04-01 2020-07-17 广州市百果园信息技术有限公司 Method, device, server and storage medium for realizing multi-person call
CN111628992B (en) * 2020-05-26 2021-04-13 腾讯科技(深圳)有限公司 Multi-person call control method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101779442A (en) * 2007-08-09 2010-07-14 欧力天工股份有限公司 Audio conference system
CN102118523A (en) * 2009-12-30 2011-07-06 北京大唐高鸿数据网络技术有限公司 Mixing control method for centralized teleconference
CN106603254A (en) * 2016-11-11 2017-04-26 乐视控股(北京)有限公司 Control method, system and electronic equipment for group chat
CN107147667A (en) * 2017-06-07 2017-09-08 太仓鸿策腾达网络科技有限公司 A kind of control method for being used to manage participant's speech
CN108159702A (en) * 2017-12-06 2018-06-15 广东欧珀移动通信有限公司 Based on multi-person speech game processing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2542327B (en) * 2015-05-18 2021-09-29 Nowhere Digital Ltd A method and system for controlling communications for video/audio-conferencing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101779442A (en) * 2007-08-09 2010-07-14 欧力天工股份有限公司 Audio conference system
CN102118523A (en) * 2009-12-30 2011-07-06 北京大唐高鸿数据网络技术有限公司 Mixing control method for centralized teleconference
CN106603254A (en) * 2016-11-11 2017-04-26 乐视控股(北京)有限公司 Control method, system and electronic equipment for group chat
CN107147667A (en) * 2017-06-07 2017-09-08 太仓鸿策腾达网络科技有限公司 A kind of control method for being used to manage participant's speech
CN108159702A (en) * 2017-12-06 2018-06-15 广东欧珀移动通信有限公司 Based on multi-person speech game processing method and device

Also Published As

Publication number Publication date
CN108540500A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
CN108540500B (en) Data transmission method, device, equipment and storage medium for multi-person conversation
KR101894644B1 (en) Method, device and terminal device for playing game in chatting interface
EP2974206B1 (en) Output management for electronic communications
US8068866B2 (en) Group communication server
KR100566263B1 (en) System and method for providing messenger service changing information of user's status by using schedule
CN106210797B (en) Network live broadcast method and device
JP2013243723A (en) System and method for sharing media in group communication among wireless communication devices
US20130150115A1 (en) System and method for permitting recordation of voice transmissions among group members of a communication group of wireless communication devices
WO2013163951A1 (en) Method, server, user terminal, and system for data presentation in multi-person conversation
CN104918127B (en) A kind of video file sharing method, terminal device and video file shared system
WO2014062927A1 (en) Synchronizing floor control and media sharing in a half-duplex ptt system
CN106919989B (en) Room online booking method and device based on Internet of things open platform
CN113765932B (en) Control method for multiparty call and electronic equipment
EP4054198A1 (en) Live broadcast method and apparatus, electronic device, and storage medium
JP2013517710A (en) Session-triggered pushing of group communication data
CN112565527A (en) Session state control method and device, electronic equipment and storage medium
KR20130129465A (en) System and method for coordinated sharing of media among wireless communication devices
US9277373B2 (en) Output management for press-to-transmit communications
WO2014085443A1 (en) Synchronizing floor control and media sharing in a half-duplex ptt system
CN110913276B (en) Data processing method, device, server, terminal and storage medium
US20140038624A1 (en) Mobile terminal and controlling method thereof
JP2007053487A (en) System and method for controlling right to speak, and program
JP2023046371A (en) Game live stream interaction method, device, electronic equipment and storage medium
JP4787701B2 (en) Call management device, call management system, and program
CN113099307A (en) Data interaction method and 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