CN106911487B - Method and device for voice chat - Google Patents

Method and device for voice chat Download PDF

Info

Publication number
CN106911487B
CN106911487B CN201710297390.7A CN201710297390A CN106911487B CN 106911487 B CN106911487 B CN 106911487B CN 201710297390 A CN201710297390 A CN 201710297390A CN 106911487 B CN106911487 B CN 106911487B
Authority
CN
China
Prior art keywords
chat
chat room
target
determining
target user
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
CN201710297390.7A
Other languages
Chinese (zh)
Other versions
CN106911487A (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.)
Guangzhou Netstar Information Technology Co., Ltd.
Original Assignee
Guangzhou Netstar Information 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 Guangzhou Netstar Information Technology Co Ltd filed Critical Guangzhou Netstar Information Technology Co Ltd
Priority to CN201710297390.7A priority Critical patent/CN106911487B/en
Publication of CN106911487A publication Critical patent/CN106911487A/en
Application granted granted Critical
Publication of CN106911487B publication Critical patent/CN106911487B/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
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • H04L12/1822Conducting the conference, e.g. admission, detection, selection or grouping of participants, correlating users to one or more conference sessions, prioritising transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/535Tracking the activity of the user

Abstract

The invention discloses a method and a device for voice chat, and belongs to the technical field of computers. The method comprises the following steps: receiving a voice chat request sent by a terminal, wherein the voice chat request carries an identifier of a target user corresponding to the terminal; determining a first chat room set according to pre-stored liveness corresponding to the identification of the target user and a preset room allocation strategy; determining a target chat room in the first chat room set; and adding the identification of the target user into the user list corresponding to the target chat room so as to enable the target user to establish voice communication connection with other users in the target chat room. By adopting the invention, the efficiency of voice chat can be improved.

Description

Method and device for voice chat
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for performing voice chat.
Background
With the development of mobile terminal technology, the application of mobile terminals is more and more extensive, and the functions are more and more powerful. Among them, performing voice chat with a plurality of users in a chat room is one of the functions commonly used by users.
When a user wishes to perform voice chat, the user can open a terminal for voice chat on the mobile terminal, and the terminal displays a room selection interface, wherein the room selection interface comprises information such as names of a plurality of chat rooms. The user can select a chat room which the user wants to enter from a room selection interface, the terminal can send the identifier of the chat room and the account identifier of the local login account to the server, and the server can add the account identifier to an account list corresponding to the chat room, so that the user can perform voice chat with other users in the chat room.
In carrying out the present disclosure, the inventors found that at least the following problems exist:
when a user conducts voice chat, the user needs to browse information such as names of a plurality of chat rooms, select one chat room and conduct voice chat with other users in the chat room, operation of the user is complex, and voice chat efficiency is low.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for performing voice chat. The technical scheme is as follows:
in a first aspect, a method for conducting voice chat is provided, the method comprising:
receiving a voice chat request sent by a terminal, wherein the voice chat request carries an identifier of a target user corresponding to the terminal;
determining a first chat room set according to pre-stored liveness corresponding to the identification of the target user and a preset room allocation strategy;
determining a target chat room in the first chat room set;
and adding the identification of the target user into the user list corresponding to the target chat room so as to enable the target user to establish voice communication connection with other users in the target chat room.
Optionally, the determining a first chat room set according to the pre-stored liveness corresponding to the identifier of the target user and a preset room allocation policy includes:
if the activity degree corresponding to the identification of the target user is smaller than a preset first number threshold value, determining chat rooms containing experience users of which the number is larger than a preset second number threshold value to obtain a first chat room set, wherein the experience users are users of which the activity degree is larger than the first number threshold value;
and if the activity corresponding to the identification of the target user is greater than the first number threshold, determining the chat rooms containing experience users of which the number is less than a preset third number threshold, and obtaining a first chat room set.
Optionally, the determining a target chat room in the first chat room set includes:
acquiring the duration of each chat room in the first chat room set;
in the first chat room set, determining chat rooms with corresponding duration time meeting preset time conditions to obtain a second chat room set;
in the second set of chat rooms, a target chat room is determined.
Optionally, in the first chat room set, determining a chat room whose duration meets a preset duration condition to obtain a second chat room set, where the determining includes:
if the activity degree corresponding to the identification of the target user is smaller than the first number threshold, determining the corresponding chat room with the duration longer than a preset duration threshold in the first chat room set to obtain a second chat room set;
and if the activity degree corresponding to the identification of the target user is greater than the first number threshold, determining the corresponding chat rooms with the duration less than the preset duration threshold in the first chat room set to obtain a second chat room set.
Optionally, the determining a target chat room in the second chat room set includes:
in the second chat room set, determining chat rooms with the number of users smaller than a preset fourth number threshold value to obtain a third chat room set;
in the third set of chat rooms, a target chat room is determined.
Optionally, the determining, by using the pre-stored liveness corresponding to the identifier of the target user and a preset room allocation policy, a first chat room set includes:
determining a chat room corresponding to the identifier of the target chat topic according to the corresponding relation between the identifier of the prestored chat topic and the chat room;
and determining a first chat room set in the chat rooms corresponding to the identifiers of the target chat topics according to the pre-stored liveness corresponding to the identifiers of the target users and a preset room allocation strategy.
Optionally, the method further includes:
and if the activity of the target user meets a preset activity condition, replacing the owner of the target chat room with the target user when the preset owner replacement condition is met.
Optionally, the chat interaction information at least includes request homeowner operation information, chat duration information, and homeowner duration information, and the method further includes:
acquiring the operation information of the requesting homeowner, the chat duration information and the duration information of the homeowner corresponding to the target user;
and determining the activity of the target user according to the operation information of the requesting homeowner, the chat duration information and the duration information of the homeowner.
Optionally, the method further includes:
acquiring identity information corresponding to the target user;
and if the identity information of the target user meets the preset identity condition, replacing the owner of the target chat room with the target user when the preset owner replacement condition is met.
In a second aspect, an apparatus for conducting voice chat is provided, the apparatus comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a voice chat request sent by a terminal, and the voice chat request carries an identifier of a target user corresponding to the terminal;
the first determining module is used for determining a first chat room set according to the pre-stored liveness corresponding to the identification of the target user and a preset room allocation strategy;
a second determining module, configured to determine a target chat room in the first chat room set;
and the adding module is used for adding the identification of the target user into the user list corresponding to the target chat room so as to enable the target user to establish voice communication connection with other users in the target chat room.
Optionally, the first determining module is configured to:
if the activity degree corresponding to the identification of the target user is smaller than a preset first number threshold value, determining chat rooms containing experience users of which the number is larger than a preset second number threshold value to obtain a first chat room set, wherein the experience users are users of which the activity degree is larger than the first number threshold value;
and if the activity corresponding to the identification of the target user is greater than the first number threshold, determining the chat rooms containing experience users of which the number is less than a preset third number threshold, and obtaining a first chat room set.
Optionally, the second determining module includes:
a first obtaining sub-module, configured to obtain the duration of each chat room in the first chat room set;
the first determining submodule is used for determining the chat rooms with the corresponding existence duration satisfying the preset duration condition in the first chat room set to obtain a second chat room set;
and the second determining submodule is used for determining a target chat room in the second chat room set.
Optionally, the first determining sub-module is further configured to:
if the activity degree corresponding to the identification of the target user is smaller than the first number threshold, determining the corresponding chat room with the duration longer than a preset duration threshold in the first chat room set to obtain a second chat room set;
and if the activity degree corresponding to the identification of the target user is greater than the first number threshold, determining the corresponding chat rooms with the duration less than the preset duration threshold in the first chat room set to obtain a second chat room set.
Optionally, the second determining sub-module is further configured to:
in the second chat room set, determining chat rooms with the number of users smaller than a preset fourth number threshold value to obtain a third chat room set;
in the third set of chat rooms, a target chat room is determined.
Optionally, the voice chat request further carries an identifier of the target chat topic input by the target user, and the first determining module includes:
the third determining submodule is used for determining a chat room corresponding to the identifier of the target chat topic according to the corresponding relation between the identifier of the prestored chat topic and the chat room;
and the fourth determining submodule is used for determining a first chat room set in the chat rooms corresponding to the identifiers of the target chat topics according to the pre-stored liveness corresponding to the identifiers of the target users and a preset room allocation strategy.
Optionally, the apparatus further comprises:
and the first processing module is used for replacing the homeowner of the target chat room with the target user when the preset homeowner replacement condition is reached if the liveness of the target user meets the preset liveness condition.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring the operation information of the requesting homeowner, the chat duration information and the duration information of the homeowner corresponding to the target user;
and the third determining module is used for determining the activity of the target user according to the operation information of the requesting homeowner, the chat duration information and the duration information of the homeowner.
Optionally, the apparatus further comprises:
the third acquisition module is used for acquiring the identity information corresponding to the target user;
and the second processing module is used for replacing the owner of the target chat room with the target user when the preset owner replacement condition is met if the identity information of the target user meets the preset identity condition.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, a voice chat request sent by a terminal is received, the voice chat request carries an identifier of a target user corresponding to the terminal, a first chat room set is determined according to the activity corresponding to the pre-stored identifier of the target user and a preset room allocation strategy, the target chat room is determined in the first chat room set, and the identifier of the target user is added into a user list corresponding to the target chat room, so that the target user and other users in the target chat room establish voice communication connection, therefore, the users can be automatically allocated to a certain chat room without manual operation of the users, and the efficiency of voice chat is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for conducting voice chat according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an interface display provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of an interface display provided by an embodiment of the present invention;
FIG. 4 is a schematic diagram of an interface display provided by an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for conducting voice chat according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for conducting voice chat according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus for conducting voice chat according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus for conducting voice chat according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an apparatus for conducting voice chat according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an apparatus for conducting voice chat according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention provides a method for carrying out voice chat. The method can be applied to a server or other devices. The server may be a background server of a certain voice chat client. The server may include a processor, a memory, and a transceiver. The processor, which may be a Central Processing Unit (CPU), may be configured to determine a first chat room set according to the activity corresponding to the identifier of the target user stored in the memory and a preset room allocation policy, then determine the target chat room in the first chat room set, and add the identifier of the target user to a user list corresponding to the target chat room, so that the target user performs voice chat with other users in the target chat room; a Memory, which may be a RAM (Random Access Memory), a Flash Memory, or the like, and may be configured to store received data, data required by a processing procedure, data generated in the processing procedure, or the like, such as an activity of each user, a room allocation policy, and a user list corresponding to each chat room; and the transceiver can be used for receiving the voice chat request sent by the terminal. In addition, the server may also include components such as a communication interface and a power supply.
As shown in fig. 1, the processing flow of the method may include the following steps:
step 101, receiving a voice chat request sent by a terminal, wherein the voice chat request carries an identifier of a target user corresponding to the terminal.
In implementation, a user (i.e., a target user) may install an application having a voice chat function in a terminal, when the target user wishes to perform voice chat, the target user may open the application in the terminal, then select a chat option in a chat interface of the application, the terminal may receive a corresponding chat instruction, and then may obtain a pre-stored identifier of the user, where the identifier may be an identifier of a currently logged-in account (e.g., an account name), information such as a name input by the user, or an identifier of the terminal (e.g., a mobile phone number). After acquiring the identifier of the target user, the terminal may send a voice chat request to the server, where the voice chat request carries the identifier of the target user. After receiving the voice chat request, the server can analyze the voice chat request to obtain the identification of the target user so as to carry out subsequent processing.
Optionally, the user may also select a chat topic that the user wants to participate in, and correspondingly, the voice chat request also carries an identifier of the target chat topic input by the user.
In an implementation, a plurality of preset chat topics may also be displayed in the chat interface of the application, and as shown in fig. 2, the names of the chat topics and the number of users currently participating in each chat topic may be displayed in the chat interface. The user can select a chat topic (namely, a target chat topic) which the user wants to participate in according to the interest of the user, and the terminal can receive a selection instruction corresponding to the target chat topic and then acquire the identifier of the target chat topic. Alternatively, a chat topic input box may be displayed in the chat interface of the application program, the user may input a name of a target chat topic to participate in the input box, and the terminal may acquire the name of the target chat topic (i.e., an identifier of the target chat topic) input by the user. After acquiring the identifier of the target chat topic, the terminal can send a voice chat request to the server, wherein the voice chat request carries the identifier of the target user and the identifier of the target chat topic. After receiving the voice chat request, the server can analyze the voice chat request to obtain the identifier of the target user and the identifier of the target chat topic so as to perform subsequent processing. In addition, after the terminal transmits the voice chat request, a waiting interface for entering the chat room may be displayed, and as shown in fig. 3, information such as the name of the target chat topic selected by the user, the total number of currently participating users of the target chat topic, and the male and female ratios of the participating users may be displayed in the waiting interface.
And 102, determining a first chat room set according to the pre-stored liveness corresponding to the identification of the target user and a preset room allocation strategy.
In implementation, for any user, the server may store the activity of the user, where the activity may reflect the positive level and proficiency of the user in chatting, and may be one or more of the number of times of access to a room in chatting, the chat duration of the user, and the speaking frequency of the user, or the activity may be calculated by the server, and the specific process will be described in detail later. For example, the activity is the number of access times to a chat room, and each time a user accesses a chat room, the server may add 1 to the number of access times to the chat room corresponding to the user's identifier. The server may preset a plurality of chat rooms, and when the server receives a voice chat request carrying an identifier of a target user, the server may search for an activity corresponding to the identifier of the target user in the correspondence, and then may determine at least one chat room satisfying a condition according to the searched activity and a preset room allocation policy, to obtain a first chat room set. The preset room allocation policy may be various, for example, the server may allocate the user to a chat room with a small number of chat people, so as to balance the number of people in each chat room.
Optionally, a threshold value of the number of liveness (i.e. a first number threshold value) may be stored in the server in advance, for example, the liveness is the number of access times of the chat room, and the first number threshold value may be an integer greater than or equal to zero. If the corresponding activity is less than or equal to the first number threshold, indicating that the user has not entered the chat room or has entered the chat room infrequently, the user may be referred to as a novice user; if the corresponding activity level is greater than the first number threshold, indicating that the user frequently enters the chat room, the user may be referred to as an experienced user. The server can also count the total number of users in each chat room in real time, and the number of experienced users and the number of novice users in each chat room. The server can allocate novice users to chat rooms with more experienced users at present to optimize the chat experience of novice users, and can allocate experienced users to chat rooms with more experienced users at present to enable experienced users to drive the chat atmosphere of the chat rooms, and the corresponding processing procedures can be as follows: if the liveness corresponding to the identification of the target user is smaller than a preset first number threshold, determining chat rooms containing experience users of which the number is larger than a preset second number threshold to obtain a first chat room set, wherein the experience users are users of which the liveness is larger than the first number threshold; and if the liveness corresponding to the identification of the target user is greater than the first number threshold, determining the chat rooms containing the novice users of which the number is greater than a preset third number threshold to obtain a first chat room set, wherein the novice users are users of which the liveness is less than the first number threshold.
In implementation, after the server obtains the activity degree corresponding to the target user, it may be determined whether the activity degree is less than or equal to a first number threshold, and if so, it indicates that the target user is a novice user, and the server may determine, in a preset chat room, chat rooms in which the number of experienced users is greater than a preset second number threshold, to obtain a first chat room set. Wherein the second number threshold may be a specific value that may be determined based on an upper limit of the number of users of the set of chat rooms. For example, if the upper limit of the number of users in the chat room is 8, the server may determine the chat room containing the number of experienced users greater than 4, or the second number threshold may be a ratio of the number of experienced users in the chat room to the current total number of users in the chat room. The server may determine, in each chat room, a chat room whose corresponding ratio is greater than the second number threshold, to obtain the first chat room set. For example, the server may determine that the corresponding ratio is greater than 50% of the chat rooms.
If the activity corresponding to the identifier of the target user is greater than the first number threshold, it indicates that the target user is an experienced user, and the server may determine, in a preset chat room, chat rooms in which the number of experienced users is less than a preset third number threshold, to obtain a first chat room set. Wherein the third number threshold may be a specific value that may be determined based on an upper limit of the number of users of the set of chat rooms. For example, if the upper limit of the number of users in the chat room is 8, the server may determine the chat room containing the number of experienced users smaller than 4, or the third threshold may be a ratio of the number of experienced users in the chat room to the total number of the current users in the chat room. For any chat room, the server can determine a ratio of the number of experienced users currently in the chat room to the total number of users currently in the chat room. The server may determine, in each chat room, a chat room whose corresponding ratio is smaller than the third number threshold, to obtain the first chat room set. For example, the server may determine that the corresponding ratio is less than 50% of the chat rooms. The second number threshold and the third number threshold may be the same or different.
Optionally, the server may calculate the activity of the target user according to the activity, and the corresponding processing procedure may be as follows: acquiring request homeowner operation information, chat duration information and homeowner duration information corresponding to a target user; and determining the activity of the target user according to the operation information of the requesting homeowner, the chat duration information and the duration information of the homeowner.
In an implementation, the server may store chat interaction information for each user, which may include one or more parameters, such as requesting homeowner operation information, chat duration information, and homeowner duration information. The requested homeowner operation information may include the number of times that the user requests the homeowner and the number of times that the user's homeowner request is successful; the chatting duration information is the accumulated duration of the chatting of the user; the homeowner duration information is the cumulative duration that the user has the identity of the homeowner. In addition, the chat interaction information may further include the number of times that the user accesses the chat room within a preset time period, such as the number of times that the user accessed the chat room in the previous day.
The server may pre-store the weight values corresponding to the parameters included in the chat interaction information. For any user, the server can obtain the chat interactive information of the user, and further multiply the parameter value of each parameter in the chat interactive information by the corresponding weight to obtain the product corresponding to each parameter, and then calculate the sum of each product to obtain the activity of the user. In addition, the server can also set the upper limit of the product corresponding to a certain parameter. For example, the weight setting of each parameter of the chat interaction information can be as shown in table one:
for example, the target user has 1 room visit time, 5 room request times, 2 successful room request times, 3 hours chat duration information, 1 hour duration information, and 1 activity of 1 × 1+5 + 2+3 × 60 × 1/30+1 × 60 + 1.5/30 ═ 19.
Step 103, in the first chat room set, determining a target chat room.
In implementations, the manner in which the server determines the target chat room can be varied, e.g., the server can randomly select the target chat room in the first set of chat rooms; alternatively, the server may determine the target chat room in the first chat room set based on a preset selection policy.
Optionally, the server may determine the target chat room according to the duration of each chat room, and accordingly, the processing procedure of step 103 may be as follows: acquiring the duration of each chat room in a first chat room set; in the first chat room set, determining chat rooms with corresponding duration time meeting preset time conditions to obtain a second chat room set; in the second set of chat rooms, a target chat room is determined.
Wherein the duration of the chat room may be the duration of the chat room from the creation time point to the current time point.
In implementation, after the server creates a chat room, timing can be started to obtain the duration of the chat room. The server can record the duration of each chat room, correspondingly store the duration of each chat room and the identifier of the chat room, and establish the corresponding relation between the duration and the chat room. After the server determines the first chat room set, the server may determine the duration corresponding to each chat room included in the first chat set according to the corresponding relationship, and then may determine, in the first chat room set, chat rooms whose duration satisfies a preset duration condition, to obtain a second chat room set. For example, the server may determine chat rooms with a duration of greater than 3 hours, or may determine chat rooms with a duration in the range of 1 hour to 4 hours. After the server determines the second set of chat rooms, a target chat room can be randomly selected from the second chat rooms.
Optionally, the server may determine the second chat room set according to the activity of the target user, and the corresponding processing procedure may be as follows: if the activity degree corresponding to the identification of the target user is smaller than a first number threshold, determining a chat room with the corresponding duration longer than a preset duration threshold in the first chat room set to obtain a second chat room set; and if the activity degree corresponding to the identification of the target user is greater than the first number threshold, determining the corresponding chat rooms with the duration less than the preset duration threshold in the first chat room set to obtain a second chat room set.
In implementation, if the server determines that the activity of the target user is less than or equal to the first number threshold, after determining the first chat room set, the server may obtain the duration corresponding to each chat room included in the first chat set, and then may determine chat rooms whose corresponding duration is greater than the preset duration threshold, to obtain the second chat room set. The preset duration threshold may be determined based on an average value of the duration of each chat room, for example, the average value may be used as the preset duration threshold, or the preset duration threshold may be calculated according to the average value and a preset adjustment coefficient, for example, if the average value is 1 hour, the adjustment coefficient is 1.5, and the 0 preset duration threshold is 1.5 hours. Therefore, novice users can be distributed to chat rooms with long duration, because the chat atmosphere of the chat rooms with long duration is usually good and the chat content is also usually interesting, the novice users can better experience the interest of chatting in the rooms, and the user viscosity is improved.
If the server judges that the activity of the target user is greater than the first number threshold, after the server determines the first chat room set, the server can obtain the duration corresponding to each chat room contained in the first chat set, and then can determine the chat rooms with the corresponding duration less than the preset duration threshold to obtain a second chat room set. Therefore, the experienced users can be distributed to the chat rooms with short duration, and the atmosphere in the chat rooms can be activated due to the fact that the experienced users have rich chat experiences, so that the popularity of the chat rooms can be improved.
Optionally, the server may also preferentially allocate the users to chat rooms with a small number of people, and the corresponding processing procedure may be as follows: in the second chat room set, determining chat rooms with the number of users smaller than a preset fourth number threshold value to obtain a third chat room set; in the third set of chat rooms, a target chat room is determined.
In implementation, as described above, the server may count the number of users in each chat room in real time, and after determining the second chat room set, the server may obtain the current number of users in each chat room in the second chat room set, and then may determine chat rooms with the number of users greater than a preset fourth number threshold, so as to obtain a third chat room set. The fourth number threshold may be set according to an upper limit of the number of users in the chat room, for example, the upper limit of the number of users in the chat room is 8, and the fourth number threshold may be 3. After the server determines the third set of chat rooms, a target chat room can be randomly selected from the third set of chat rooms.
Alternatively, the user may select a chat topic, and the server may assign the user to a chat room belonging to the chat topic, and the corresponding processing procedure may be as follows: determining a chat room corresponding to the identifier of the target chat topic according to the corresponding relation between the identifier of the prestored chat topic and the chat room; and determining a first chat room set in the chat rooms corresponding to the identifiers of the target chat topics according to the pre-stored liveness corresponding to the identifiers of the target users and a preset room allocation strategy.
In an implementation, the server may preset a plurality of chat topics, such as "chat people after 60 and 70", "emotional life after 80 and 90", and the like. For any chat topic, a corresponding one or more chat rooms may be provided. The server may store a correspondence between the chat topic and the chat room in advance. After receiving the voice chat request, the server can search a corresponding chat room in the corresponding relation according to the identifier of the target chat topic carried in the voice chat request, and further can determine a first chat room set in the chat room corresponding to the identifier of the target chat topic. The process of determining the first set of chat rooms can be as described above.
And 104, adding the identification of the target user into the user list corresponding to the target chat room so that the target user establishes voice communication connection with other users in the target chat room.
In implementation, after the server determines the target chat room corresponding to the target user, the identifier of the target user may be added to the user list corresponding to the target chat room, and when the subsequent server receives the voice information of the target user, the subsequent server may send the voice information of the target user to the terminals of other users in the target chat room in real time, and may send the voice information of other users to the terminals of the target user in real time, so that the target user and the other users in the target chat room perform voice chat. In addition, after the server adds the identifier of the target user to the user list corresponding to the target chat room, a success response message may be sent to the terminal of the target user, where the success response message may carry the identifier of the target chat room and user information (such as name, avatar, and gender) of other users in the target chat room. In order to improve the interest of the user in chatting, the server may further set a temporary name corresponding to each user, and the successful response message may also carry the temporary name corresponding to each user. After receiving the successful response message, the terminal may display a display interface corresponding to the target chat room, as shown in fig. 4, where the display interface may include information such as a temporary name, an avatar, and a gender of each user in the target chat room. After the terminal displays the display interface of the target chat room, the voice playing part and the microphone can be automatically started so as to detect the voice of the target user and output the voice information of other users in the target chat room. In addition, a room switching option may also be set in the display interface, after the target user selects the room switching option, the terminal may send a room switching request to the server, where the room switching request may carry an identifier of the target user, and after receiving the room switching request, the server may repeatedly perform the processing procedures of steps 102 to 103 to reselect a chat room for the target user, or the server may randomly select one chat room for the target user in other chat rooms.
Optionally, the server may set a homeowner in the chat room according to the activity of the user, and the corresponding processing procedure may be as follows: and if the activity of the target user meets the preset activity condition, replacing the owner of the target chat room with the target user when the preset owner replacement condition is met.
In implementation, the server may also be provided with a homeowner in each chat room. For example, the user with the homeowner identity may delete a certain user in the chat room to which the user with the homeowner identity belongs, and the server may delete the identifier of the user in the user list corresponding to the chat room, so that the user can kick out of the chat room.
For any chat room, the server can set the first user entering the chat room as the homeowner, and when the preset homeowner replacement condition is met, the homeowner of the chat room can be replaced, for example, the homeowner can be replaced when the current homeowner quits the chat room, or the homeowner can be replaced when the current homeowner actively gives way to the homeowner. When the preset house owner replacing condition is met, the terminal can display the house owner robbing option, the user selects the house owner robbing option, the terminal can send a house owner request message to the server, and the house owner request message can carry the identification of the user and the identification of the chat room to which the user belongs currently. The server may determine the homeowner among the users (which may be referred to as candidate users for convenience of description) requesting the homeowner. If the server does not receive the owner request message corresponding to the chat room when the preset owner replacement condition is reached, the owner can be determined among all users of the chat room.
When determining the homeowner, if the server determines that the liveness of the target user meets the preset liveness condition, the target user can be set as the homeowner of the target chat room, otherwise, the target user cannot be the homeowner. The preset activity conditions can be various, for example, the server can respectively calculate the activity of all users in the target chat room, further judge whether the activity of the target user is the maximum, and if so, set the target user as the homeowner of the target chat room; or, the server may sort the activity degrees of all the users from large to small, and if the activity degree sorting result of the target user is the preset number, the target user may be set as the homeowner.
Optionally, the server may further set a homeowner in the chat room according to the identity information of the user, and the corresponding processing procedure may be as follows: acquiring identity information corresponding to a target user; and if the identity information of the target user meets the preset identity condition, replacing the owner of the target chat room with the target user when the preset owner replacement condition is reached.
In an implementation, the server may also store the identity information of the target user, such as the member level of the target user, whether it is a subscriber, and the like. If the member level of the target user meets the preset level condition or the target user is a signed user, the owner of the target chat room can be replaced by the target user when the preset owner replacement condition is met. The subscribers may be set by technicians, or the server may set, as the subscribers, the subscribers whose activity continues to be in the previous preset number within a preset time period (for example, if the rank is 100 before 3 consecutive days, the operator may contact the subscriber and set the subscriber as the subscriber).
In the embodiment of the invention, a voice chat request sent by a terminal is received, the voice chat request carries an identifier of a target user corresponding to the terminal, a first chat room set is determined according to the activity corresponding to the pre-stored identifier of the target user and a preset room allocation strategy, the target chat room is determined in the first chat room set, and the identifier of the target user is added into a user list corresponding to the target chat room, so that the target user and other users in the target chat room establish voice communication connection, therefore, the users can be automatically allocated to a certain chat room without manual operation of the users, and the efficiency of voice chat is improved.
Based on the same technical concept, an embodiment of the present invention further provides a device for performing voice chat, as shown in fig. 5, the device includes:
a receiving module 510, configured to receive a voice chat request sent by a terminal, where the voice chat request carries an identifier of a target user corresponding to the terminal;
a first determining module 520, configured to determine a first chat room set according to a pre-stored liveness corresponding to the identifier of the target user and a preset room allocation policy;
a second determining module 530, configured to determine a target chat room in the first set of chat rooms;
an adding module 540, configured to add the identifier of the target user to the user list corresponding to the target chat room, so that the target user establishes a voice communication connection with other users in the target chat room.
Optionally, the first determining module 520 is configured to:
if the activity degree corresponding to the identification of the target user is smaller than a preset first number threshold value, determining chat rooms containing experience users of which the number is larger than a preset second number threshold value to obtain a first chat room set, wherein the experience users are users of which the activity degree is larger than the first number threshold value;
and if the activity corresponding to the identification of the target user is greater than the first number threshold, determining the chat rooms containing experience users of which the number is less than a preset third number threshold, and obtaining a first chat room set.
Optionally, as shown in fig. 6, the second determining module 530 includes:
a first obtaining submodule 531, configured to obtain a duration of each chat room in the first chat room set;
a first determining submodule 532, configured to determine, in the first chat room set, a chat room whose existence duration meets a preset duration condition, so as to obtain a second chat room set;
the second determining submodule 533 is configured to determine a target chat room in the second chat room set.
Optionally, the first determining sub-module 532 is further configured to:
if the activity degree corresponding to the identification of the target user is smaller than the first number threshold, determining the corresponding chat room with the duration longer than a preset duration threshold in the first chat room set to obtain a second chat room set;
and if the activity degree corresponding to the identification of the target user is greater than the first number threshold, determining the corresponding chat rooms with the duration less than the preset duration threshold in the first chat room set to obtain a second chat room set.
Optionally, the second determining submodule 533 is further configured to:
in the second chat room set, determining chat rooms with the number of users smaller than a preset fourth number threshold value to obtain a third chat room set;
in the third set of chat rooms, a target chat room is determined.
Optionally, the voice chat request further carries an identifier of the target chat topic input by the target user, as shown in fig. 7, the first determining module 520 includes:
a third determining submodule 521, configured to determine, according to a correspondence between an identifier of a pre-stored chat topic and a chat room, a chat room corresponding to the identifier of the target chat topic;
a fourth determining sub-module 522, configured to determine, according to the pre-stored liveness corresponding to the identifier of the target user and a preset room allocation policy, a first chat room set in the chat room corresponding to the identifier of the target chat topic.
Optionally, as shown in fig. 8, the apparatus further includes:
a first processing module 550, configured to, if the activity of the target user meets a preset activity condition, replace the owner of the target chat room with the target user when a preset owner replacement condition is reached.
Optionally, as shown in fig. 9, the apparatus further includes:
a second obtaining module 560, configured to obtain the owner operation request information, the chat duration information, and the owner duration information corresponding to the target user;
a third determining module 570, configured to determine the activity of the target user according to the operation information of the requesting homeowner, the chat duration information, and the duration information of the homeowner.
Optionally, as shown in fig. 10, the apparatus further includes:
a third obtaining module 580, configured to obtain identity information corresponding to the target user;
a second processing module 590, configured to, if the identity information of the target user meets a preset identity condition, replace the owner of the target chat room with the target user when a preset owner replacement condition is met.
In the embodiment of the invention, a voice chat request sent by a terminal is received, the voice chat request carries an identifier of a target user corresponding to the terminal, a first chat room set is determined according to the activity corresponding to the pre-stored identifier of the target user and a preset room allocation strategy, the target chat room is determined in the first chat room set, and the identifier of the target user is added into a user list corresponding to the target chat room, so that the target user and other users in the target chat room establish voice communication connection, therefore, the users can be automatically allocated to a certain chat room without manual operation of the users, and the efficiency of voice chat is improved.
It should be noted that: in the apparatus for performing voice chat according to the above embodiment, when performing voice chat, only the division of the above functional modules is illustrated, and in practical applications, the above functions may be distributed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. In addition, the apparatus for performing voice chat and the method for performing voice chat provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and will not be described herein again.
Fig. 11 is a schematic structural diagram of a server according to an embodiment of the present invention. The server 600 may vary significantly due to configuration or performance, and may include one or more Central Processing Units (CPUs) 622 (e.g., one or more processors) and memory 632, one or more storage media 630 (e.g., one or more mass storage devices) storing applications 642 or data 644. Memory 632 and storage medium 630 may be, among other things, transient or persistent storage. The program stored in the storage medium 630 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 622 may be configured to communicate with the storage medium 630 and execute a series of instruction operations in the storage medium 630 on the server 600.
The server 600 may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input-output interfaces 658, one or more keyboards 656, and/or one or more operating systems 641, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
Server 600 may include memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for conducting voice chat as described above.
In the embodiment of the invention, a voice chat request sent by a terminal is received, the voice chat request carries an identifier of a target user corresponding to the terminal, a first chat room set is determined according to the activity corresponding to the pre-stored identifier of the target user and a preset room allocation strategy, the target chat room is determined in the first chat room set, and the identifier of the target user is added into a user list corresponding to the target chat room, so that the target user and other users in the target chat room establish voice communication connection, therefore, the users can be automatically allocated to a certain chat room without manual operation of the users, and the efficiency of voice chat is improved.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (16)

1. A method for conducting voice chat, the method comprising:
receiving a voice chat request sent by a terminal, wherein the voice chat request carries an identifier of a target user corresponding to the terminal;
determining a first chat room set according to pre-stored liveness corresponding to the identification of the target user and a preset room allocation strategy;
determining a target chat room in the first chat room set;
adding the identification of the target user into a user list corresponding to the target chat room so as to enable the target user to establish voice communication connection with other users in the target chat room;
the determining a target chat room in the first set of chat rooms comprises:
acquiring the duration of each chat room in the first chat room set;
in the first chat room set, determining chat rooms with corresponding duration time meeting preset time conditions to obtain a second chat room set;
in the second set of chat rooms, a target chat room is determined.
2. The method of claim 1, wherein determining the first chat room set according to the pre-stored activity corresponding to the identifier of the target user and a preset room allocation policy comprises:
if the activity degree corresponding to the identification of the target user is smaller than a preset first number threshold value, determining chat rooms containing experience users of which the number is larger than a preset second number threshold value to obtain a first chat room set, wherein the experience users are users of which the activity degree is larger than the first number threshold value;
and if the activity corresponding to the identification of the target user is greater than the first number threshold, determining the chat rooms containing experience users of which the number is less than a preset third number threshold, and obtaining a first chat room set.
3. The method of claim 1, wherein determining, in the first chat room set, chat rooms whose duration satisfies a preset duration condition to obtain a second chat room set comprises:
if the activity degree corresponding to the identification of the target user is smaller than a first number threshold, determining a chat room with the corresponding duration longer than a preset duration threshold in the first chat room set to obtain a second chat room set;
and if the activity degree corresponding to the identification of the target user is greater than the first number threshold, determining the corresponding chat rooms with the duration less than the preset duration threshold in the first chat room set to obtain a second chat room set.
4. The method of claim 1, wherein determining a target chat room in the second set of chat rooms comprises:
in the second chat room set, determining chat rooms with the number of users smaller than a preset fourth number threshold value to obtain a third chat room set;
in the third set of chat rooms, a target chat room is determined.
5. The method of claim 1, wherein the voice chat request further carries an identifier of a target chat topic input by the target user, and the determining a first chat room set according to a pre-stored activity corresponding to the identifier of the target user and a preset room allocation policy comprises:
determining a chat room corresponding to the identifier of the target chat topic according to the corresponding relation between the identifier of the prestored chat topic and the chat room;
and determining a first chat room set in the chat rooms corresponding to the identifiers of the target chat topics according to the pre-stored liveness corresponding to the identifiers of the target users and a preset room allocation strategy.
6. The method of claim 1, further comprising:
and if the activity of the target user meets a preset activity condition, replacing the owner of the target chat room with the target user when the preset owner replacement condition is met.
7. The method of claim 1, further comprising:
acquiring the operation information of the requesting homeowner, the chat duration information and the duration information of the homeowner corresponding to the target user;
and determining the activity of the target user according to the operation information of the requesting homeowner, the chat duration information and the duration information of the homeowner.
8. The method of claim 1, further comprising:
acquiring identity information corresponding to the target user;
and if the identity information of the target user meets the preset identity condition, replacing the owner of the target chat room with the target user when the preset owner replacement condition is met.
9. An apparatus for conducting voice chat, the apparatus comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a voice chat request sent by a terminal, and the voice chat request carries an identifier of a target user corresponding to the terminal;
the first determining module is used for determining a first chat room set according to the pre-stored liveness corresponding to the identification of the target user and a preset room allocation strategy;
a second determining module, configured to determine a target chat room in the first chat room set;
the adding module is used for adding the identification of the target user into the user list corresponding to the target chat room so as to enable the target user to establish voice communication connection with other users in the target chat room;
the second determining module includes:
a first obtaining sub-module, configured to obtain the duration of each chat room in the first chat room set;
the first determining submodule is used for determining the chat rooms with the corresponding existence duration satisfying the preset duration condition in the first chat room set to obtain a second chat room set;
and the second determining submodule is used for determining a target chat room in the second chat room set.
10. The apparatus of claim 9, wherein the first determining module is configured to:
if the activity degree corresponding to the identification of the target user is smaller than a preset first number threshold value, determining chat rooms containing experience users of which the number is larger than a preset second number threshold value to obtain a first chat room set, wherein the experience users are users of which the activity degree is larger than the first number threshold value;
and if the activity corresponding to the identification of the target user is greater than the first number threshold, determining the chat rooms containing experience users of which the number is less than a preset third number threshold, and obtaining a first chat room set.
11. The apparatus of claim 9, wherein the first determining submodule is further configured to:
if the activity degree corresponding to the identification of the target user is smaller than a first number threshold, determining a chat room with the corresponding duration longer than a preset duration threshold in the first chat room set to obtain a second chat room set;
and if the activity degree corresponding to the identification of the target user is greater than the first number threshold, determining the corresponding chat rooms with the duration less than the preset duration threshold in the first chat room set to obtain a second chat room set.
12. The apparatus of claim 9, wherein the second determining submodule is further configured to:
in the second chat room set, determining chat rooms with the number of users smaller than a preset fourth number threshold value to obtain a third chat room set;
in the third set of chat rooms, a target chat room is determined.
13. The apparatus as claimed in claim 9, wherein the voice chat request further carries an identification of a target chat topic entered by the target user, and the first determining module comprises:
the third determining submodule is used for determining a chat room corresponding to the identifier of the target chat topic according to the corresponding relation between the identifier of the prestored chat topic and the chat room;
and the fourth determining submodule is used for determining a first chat room set in the chat rooms corresponding to the identifiers of the target chat topics according to the pre-stored liveness corresponding to the identifiers of the target users and a preset room allocation strategy.
14. The apparatus of claim 9, further comprising:
and the first processing module is used for replacing the homeowner of the target chat room with the target user when the preset homeowner replacement condition is reached if the liveness of the target user meets the preset liveness condition.
15. The apparatus of claim 14, further comprising:
the second acquisition module is used for acquiring the operation information of the requesting homeowner, the chat duration information and the duration information of the homeowner corresponding to the target user;
and the third determining module is used for determining the activity of the target user according to the operation information of the requesting homeowner, the chat duration information and the duration information of the homeowner.
16. The apparatus of claim 9, further comprising:
the third acquisition module is used for acquiring the identity information corresponding to the target user;
and the second processing module is used for replacing the owner of the target chat room with the target user when the preset owner replacement condition is met if the identity information of the target user meets the preset identity condition.
CN201710297390.7A 2017-04-28 2017-04-28 Method and device for voice chat Active CN106911487B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710297390.7A CN106911487B (en) 2017-04-28 2017-04-28 Method and device for voice chat

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710297390.7A CN106911487B (en) 2017-04-28 2017-04-28 Method and device for voice chat

Publications (2)

Publication Number Publication Date
CN106911487A CN106911487A (en) 2017-06-30
CN106911487B true CN106911487B (en) 2019-12-24

Family

ID=59210086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710297390.7A Active CN106911487B (en) 2017-04-28 2017-04-28 Method and device for voice chat

Country Status (1)

Country Link
CN (1) CN106911487B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107743251B (en) * 2017-10-10 2020-06-16 武汉斗鱼网络科技有限公司 Video friend-making duration adapting method, storage medium, electronic device and system
CN108495074B (en) * 2018-03-28 2021-02-02 武汉斗鱼网络科技有限公司 Video chat method and device
CN110808844A (en) * 2019-10-31 2020-02-18 广州心娱网络科技有限公司 Broadcasting communication method, device and system of voice social platform
CN111343079B (en) * 2020-02-24 2022-05-17 北京字节跳动网络技术有限公司 Method and device for carrying out voice call
CN112565057B (en) * 2020-11-13 2022-09-23 广州市百果园网络科技有限公司 Voice chat room service method and device capable of expanding business
CN114095481B (en) * 2021-11-23 2024-03-12 百果园技术(新加坡)有限公司 Chat room delivery method, device, equipment and storage medium
CN116418777A (en) * 2023-04-10 2023-07-11 深圳市逗娱科技有限公司 Intelligent online chat room pushing system based on data analysis

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105022761A (en) * 2014-04-30 2015-11-04 腾讯科技(深圳)有限公司 Group search method and apparatus
CN105653833A (en) * 2014-11-12 2016-06-08 腾讯科技(深圳)有限公司 Method and device for recommending game community
CN106161127A (en) * 2015-04-08 2016-11-23 深圳市腾讯计算机系统有限公司 Class of subscriber detection method and device
CN106506475A (en) * 2016-10-24 2017-03-15 广州酷狗计算机科技有限公司 Group management and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100114684A1 (en) * 2008-09-25 2010-05-06 Ronel Neged Chat rooms search engine queryer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105022761A (en) * 2014-04-30 2015-11-04 腾讯科技(深圳)有限公司 Group search method and apparatus
CN105653833A (en) * 2014-11-12 2016-06-08 腾讯科技(深圳)有限公司 Method and device for recommending game community
CN106161127A (en) * 2015-04-08 2016-11-23 深圳市腾讯计算机系统有限公司 Class of subscriber detection method and device
CN106506475A (en) * 2016-10-24 2017-03-15 广州酷狗计算机科技有限公司 Group management and device

Also Published As

Publication number Publication date
CN106911487A (en) 2017-06-30

Similar Documents

Publication Publication Date Title
CN106911487B (en) Method and device for voice chat
US20140344286A1 (en) Method and apparatus for displaying webcast roomss
WO2014183427A1 (en) Method and apparatus for displaying webcast rooms
US9832144B2 (en) Method and device for implementing instant communication
CN110333947B (en) Method, device, equipment and medium for loading subcontracting resources of game application
WO2014146441A1 (en) Method, server and system for processing task data
WO2022100198A1 (en) Data transmission method and apparatus, storage medium, terminal, and network access point device
WO2014194647A1 (en) Data exchange method, device, and system for group communication
US20140228129A1 (en) Server data update method and system
JP6557361B2 (en) Method and device for querying short-range objects
WO2023116219A1 (en) Cdn node distribution method and apparatus, electronic device, medium and program product
US9894114B2 (en) Adjusting the display of social media updates to varying degrees of richness based on environmental conditions and importance of the update
CN106572131A (en) Media data sharing method and system in Internet of things
CN116431282A (en) Cloud virtual host server management method, device, equipment and storage medium
KR20170018577A (en) System and method for providing virtual communication session for portion of participants connecting to communication session
CN105099727B (en) Add the method and device of group member
CN112187624B (en) Message reply method and device and electronic equipment
CN112169312A (en) Queuing scheduling method, device, equipment and storage medium for cloud game service
US20140362982A1 (en) Data exchange method, device, and system for group communication
CN106375363B (en) Method, system and device for eliminating message reminding in social application client
CN112967145B (en) Group information generation method and device, electronic equipment and storage medium
CN111479137B (en) Method and device for providing line address, server and storage medium
US9280384B2 (en) Method, server and system for processing task data
CN105681262A (en) Interaction message allocating method and system
CN113807912A (en) Method and computer program product for dynamically matching user and broker connections

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20191106

Address after: 510000 X1301-E6803 (Cluster Address) (JM) No. 106 Fengze East Road, Nansha District, Guangzhou, Guangdong Province

Applicant after: Guangzhou Netstar Information Technology Co., Ltd.

Address before: 511442, Guangdong Province, Guangzhou, Panyu District Town, Huambo business district, Wanda Plaza, block B1, 28 floor

Applicant before: All kinds of fruits garden, Guangzhou network technology company limited

GR01 Patent grant
GR01 Patent grant