CN111385594B - Virtual character interaction method, device and storage medium - Google Patents
Virtual character interaction method, device and storage medium Download PDFInfo
- Publication number
- CN111385594B CN111385594B CN201811640528.XA CN201811640528A CN111385594B CN 111385594 B CN111385594 B CN 111385594B CN 201811640528 A CN201811640528 A CN 201811640528A CN 111385594 B CN111385594 B CN 111385594B
- Authority
- CN
- China
- Prior art keywords
- character
- behavior
- virtual
- account
- target
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
- H04N21/25866—Management of end-user data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44213—Monitoring of end-user related data
- H04N21/44218—Detecting physical presence or behaviour of the user, e.g. using sensors to detect if the user is leaving the room or changes his face expression during a TV program
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/475—End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
- H04N21/4751—End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data for defining user accounts, e.g. accounts for children
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4788—Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Social Psychology (AREA)
- Child & Adolescent Psychology (AREA)
- Human Computer Interaction (AREA)
- Computer Graphics (AREA)
- Computer Networks & Wireless Communication (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a virtual character interaction method, a virtual character interaction device and a storage medium. The embodiment of the invention can screen user accounts of preset categories from the user information base to obtain a candidate user group; screening user accounts interested by the first account from the candidate user group to obtain a second account, and determining a virtual role subordinate to the second account as a second virtual role; determining a virtual role under a first account as a first virtual role, and acquiring attribute information of the first virtual role; determining the target behavior of the first virtual role according to the attribute information of the first virtual role; and executing the interaction behavior between the first virtual character and the second virtual character according to the target behavior. Therefore, the scheme can automatically analyze the anchor account which is interested by the audience account, and interact with the anchor account between virtual roles, so that the diversity of the interaction between the anchor and the audience is enriched, the interaction efficiency is higher than that of a traditional interaction mode, and the live broadcast interactivity is improved.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a virtual character interaction method, a virtual character interaction device and a storage medium.
Background
With the development of network technology, people can communicate and interact through social software or instant messaging software and the like to maintain or expand social relationships. The live webcasting is a new social networking mode, and audiences can watch live webcasting on different communication platforms through a network system at the same time. The user uses the live broadcast software to watch the live broadcast video of the main broadcast, and can interact with the main broadcast in the live broadcast process, such as gift-swiping, public screen chatting, praise and/or wheat-connecting and the like.
In the process of research and practice of the prior art, the inventor of the present invention found that in a room with a hot anchor, because the number of audiences in the room is large, the anchor can only interact with a small number of audiences, so that the existing feeling of most audiences is not strong, and the loss of users is serious. It can be seen that, in the current live broadcast, the interaction between the anchor and the audience is single and the interaction efficiency is low, resulting in poor interactivity.
Disclosure of Invention
The embodiment of the invention provides a virtual character interaction method, aiming at improving the interactivity of audiences and a main broadcast in network live broadcast.
The embodiment of the invention provides a virtual character interaction method, which comprises the following steps:
screening user accounts of a preset category from a user information base to obtain a candidate user group;
screening user accounts interested by the first account from the candidate user group to obtain a second account, and determining the virtual role subordinate to the second account as a second virtual role;
determining that the virtual role under the first account is a first virtual role, and acquiring attribute information of the first virtual role;
determining the target behavior of the first virtual role according to the attribute information of the first virtual role;
and executing the interaction behavior between the first virtual character and the second virtual character according to the target behavior.
In some embodiments, the determining the target behavior of the first virtual character according to the attribute information of the first virtual character includes:
normalizing the attribute values of the multiple characters included in the attribute information, and calculating to obtain the relative probability of each character;
determining a target character according to the relative probability of each character;
and extracting the behavior corresponding to the target character from a preset behavior library to serve as the target behavior of the first virtual role.
In some embodiments, the extracting, from a preset behavior library, a behavior corresponding to the target character as a target behavior of the first virtual character includes:
extracting the role behavior corresponding to the target character from a preset behavior library according to a preset character-role behavior mapping relation;
determining whether the role behaviors corresponding to the target characters have unexecuted preposed behaviors or not;
and if the target character does not exist, determining the role behavior corresponding to the target character as the target behavior of the first virtual role.
In some embodiments, the determining whether there is an unexecuted pre-action in the role action corresponding to the target character further includes:
and if so, reselecting the target character according to the relative probability of each character.
In some embodiments, the determining the target character according to the relative probability of each character further comprises:
according to a preset character-user behavior mapping relation, counting the historical behavior of the first account to obtain the behavior frequency of each character;
and correspondingly modifying the attribute value and/or the relative probability of each character according to the behavior frequency of each character.
In some embodiments, the determining the target character according to the relative probability of each character further comprises:
receiving a character modification instruction input by the first account;
and correspondingly modifying the attribute value and/or the relative probability of the specified character according to the character modification instruction.
In some embodiments, the performing, according to the target behavior, an interactive behavior between the first virtual character and the second virtual character further includes:
receiving a reward and punishment instruction of the interaction behavior input by the first account;
and modifying the attribute value and/or the relative probability of the target character according to the reward and punishment instruction.
In some embodiments, the method further comprises:
and displaying the interactive behavior in the process of executing the interactive behavior.
In some embodiments, the performing the interactive behavior between the first virtual character and the second virtual character further comprises:
determining a result of the interaction behavior and displaying the result.
In some embodiments, the method further comprises:
and creating a virtual role under the first account, and configuring attribute information.
In some embodiments, the configuration attribute information includes:
selecting a leading character from preset character categories;
and acquiring an initial attribute value preset by the leading character, and configuring attribute information of the first account virtual role.
The embodiment of the present invention further provides a virtual character interaction apparatus, including:
the system comprises a determining unit, a judging unit and a processing unit, wherein the determining unit is used for determining that a virtual role under a first account is a first virtual role and acquiring attribute information of the first virtual role;
the behavior unit is used for determining the target behavior of the first virtual role according to the attribute information of the first virtual role;
the preference unit is used for acquiring the user account interested by the first account as a second account and determining that the virtual role subordinate to the second account is a second virtual role;
and the execution unit is used for executing the interaction behavior between the first virtual character and the second virtual character according to the target behavior.
The embodiment of the invention also provides a storage medium, wherein the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in any virtual character interaction method provided by the embodiment of the invention.
The embodiment of the invention obtains the candidate user group by screening the user accounts of the preset category in the user information base; screening user accounts interested by the first account from the candidate user group to obtain a second account, and determining a virtual role subordinate to the second account as a second virtual role; determining a virtual role under a first account as a first virtual role, and acquiring attribute information of the first virtual role; determining the target behavior of the first virtual role according to the attribute information of the first virtual role; and executing the interaction behavior between the first virtual character and the second virtual character according to the target behavior. The scheme provides a virtual role interaction scheme under the user account in the live broadcast platform, can screen out the anchor account in the live broadcast platform to configure a candidate user group, and automatically analyzes the anchor account interested by any audience account in the candidate user group, thereby realizing the interaction between the audience account and the virtual role under the anchor account. Moreover, the interaction between the virtual characters can be automatically carried out, the limited interaction operation of the anchor is not limited, and the interaction efficiency is higher than that of the traditional interaction mode, so that the live broadcast interactivity is improved by the scheme. In addition, the scheme determines the interaction behavior according to the attribute of the virtual role, and then executes the corresponding interaction behavior, so that the diversity and flexibility of interaction are realized. In addition, the scheme automatically performs interaction of virtual roles, does not need audiences or anchor to perform complex interactive operation, saves the computing resources of the live broadcast platform, and ensures the interactivity of the anchor and the audiences in the live broadcast platform.
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. 1a is a schematic view of an interaction scene of a virtual character according to an embodiment of the present invention;
fig. 1b is a schematic flowchart of a virtual character interaction method according to an embodiment of the present invention;
FIG. 1c is a schematic view of a scene displaying interaction behavior of a virtual character according to an embodiment of the present invention;
FIG. 2 is another flowchart illustrating a virtual character interaction method according to an embodiment of the present invention;
fig. 3a is a schematic structural diagram of a terminal for executing a virtual character interaction method according to an embodiment of the present invention;
fig. 3b is a schematic view of a virtual character attribute information page scene provided in an embodiment of the present invention;
fig. 3c is a schematic diagram of a dynamic scene of virtual character interaction provided in the embodiment of the present invention;
FIG. 3d is a schematic view of another scenario for displaying interaction behavior of a virtual character according to an embodiment of the present invention;
fig. 4a is a schematic structural diagram of a virtual character interaction apparatus according to an embodiment of the present invention;
FIG. 4b is a schematic view of another structure of the virtual character interaction apparatus according to the embodiment of the present invention
Fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a virtual character interaction method, a virtual character interaction device and a storage medium.
The virtual character interaction apparatus may be specifically integrated in a network device, such as a terminal or a server, and is exemplified by the virtual character interaction integrated in the server, referring to fig. 1a, which is an application scenario diagram of the virtual character interaction method provided in the embodiment of the present invention.
In this embodiment, for example, a viewer registers a first account and a host registers a second account, and the server configures subordinate virtual roles for the first account and the second account respectively.
The server screens user accounts of preset categories from a user information base to obtain a candidate user group; screening user accounts interested by the first account from the candidate user group to obtain a second account, and determining a virtual role subordinate to the second account as a second virtual role; the server determines that the virtual role under the first account is the first virtual role, and obtains attribute information of the first virtual role; and determining the target behavior of the first virtual role according to the attribute information of the first virtual role. Therefore, the server executes the interaction behavior between the first virtual character and the second virtual character according to the target behavior.
Therefore, the scheme provides a virtual role interaction scheme under each user account in the live broadcast platform, the anchor account in the live broadcast platform can be screened out to configure a candidate user group, and the anchor account interested by any audience account is automatically analyzed in the candidate user group, so that the interaction between the audience account and the virtual role under the anchor account is realized. Moreover, the interaction between the virtual characters can be automatically carried out, the limited interaction operation of the anchor is not limited, and the interaction efficiency is higher than that of the traditional interaction mode, so that the live broadcast interactivity is improved by the scheme. In addition, the scheme determines the interaction behavior according to the attribute of the virtual role, and the diversity and flexibility of interaction are realized. In addition, the scheme automatically performs interaction of virtual roles, does not need audiences or anchor to perform complex interactive operation, saves the computing resources of the live broadcast platform, and ensures the interactivity of the anchor and the audiences in the live broadcast platform.
As shown in fig. 1b, the specific process of the virtual character interaction method may be as follows:
101. and screening user accounts of preset categories in a user information base to obtain a candidate user group.
For example, a user may register a user account with a live platform web page or live software, as a video feed that a viewer watches a anchor, or as an anchor to a viewer. Wherein the user accounts include a viewer account and a cast account.
The user information base records user information in the live broadcast platform, and the user information comprises a user account, virtual roles subordinate to the user account and the like. For example, the virtual character interaction device creates a subordinate virtual character for the user account. The virtual roles are subordinate to the user accounts, each user account may be subordinate to one or more virtual roles, and the example of the embodiment is described by referring to one virtual role subordinate to each user account. The virtual character may be a cartoon character or an electronic pet, and the virtual character is exemplified as the electronic pet in this embodiment.
The preset category of user accounts may be anchor accounts.
And taking the user accounts of the preset category as the anchor accounts for illustration, and screening the anchor accounts by the virtual role interaction device according to the categories of the user accounts in the user information base to configure the anchor accounts into a candidate user group.
102. Screening user accounts interested by the first account from the candidate user group to obtain a second account, and determining the virtual role subordinate to the second account as a second virtual role.
The first account is a viewer account in the user information base. In this embodiment, a preset category is taken as an anchor account, and a user account in the candidate user group is taken as the anchor account for example.
Taking any first account as an example, the user accounts of interest may be primary accounts that are aesthetically or preferentially suited.
For example, the avatar interaction device may use a collaborative filtering algorithm to select a primary account in the primary database that is of interest to the first account as a candidate account, and then select one or more primary accounts in the candidate accounts as user accounts that are of interest to the first user account via a logistic regression algorithm, thereby obtaining the second account.
Specifically, the virtual character interaction device acquires historical behavior data of the first account. The historical behavior data records anchor accounts which the first account pays attention to, watches, approves, shares, comments and/or collects in a preset time period, and the historical behavior data can also comprise the live broadcast duration of watching the anchor accounts and the like. Then, the historical behavior data is quantized, other audience accounts with the same or similar preferences are searched for to serve as similar accounts, and the anchor accounts, which are not concerned or watched by the first account, are screened out from the anchor accounts which are concerned, watched, praised, shared, commented and/or collected by the similar accounts to serve as alternative accounts which are interested by the first account.
Then, the virtual character interaction device calculates probability values of all the alternative accounts through a logistic regression algorithm, and the alternative account with the maximum probability value is used as the user account interested by the first account, namely the second account. Currently, according to the sequence of the probability values from large to small, the preset number of the standby accounts with the top ranking can be selected as the second accounts, and a plurality of second accounts are obtained. In this embodiment, an example that the virtual character interaction apparatus acquires a second account is taken for illustration.
And after the second account is obtained, the virtual character interaction device acquires the virtual character subordinate to the second account and takes the virtual character as the second virtual character. The second virtual role is subordinate to the second account.
103. And acquiring a first virtual role under the first account and attribute information of the first virtual role.
It should be noted that, steps 103 and 104 may be executed simultaneously with steps 101 and 102, or executed after steps 101 and 102, or executed before steps 101 and 102, and may be flexibly configured according to actual needs.
Each virtual role corresponds to attribute information, and various attribute values of the virtual role are recorded in the attribute information, wherein the attribute values comprise basic attribute values and/or character attribute values and the like. Wherein the basic attribute value characterizes the virtual character, such as color value, physical strength, intelligence quotient and/or emotion quotient. The personality attribute values characterize the personality characteristics of the virtual character, such as gentle, brute force, local, sister, harassing, humour, optimistic, and/or lazy, among others. The character attribute value determines the behavior preference of the virtual character, for example, the virtual character with a high value of the sister attribute is better to chat with other virtual characters, and the virtual character with a high value of the brute force attribute is better to disorder or fight with other virtual characters, so that the character richness of the virtual character is ensured.
In some embodiments, step 103 may be preceded by: and creating a virtual role under the first account, and configuring the attribute information.
Specifically, when the virtual character interaction device creates the first account or receives a virtual character creation instruction of the first account, the virtual character interaction device may create a subordinate virtual character for the first account.
For example, the avatar interaction device may provide alternative avatars in a variety of categories for selection by the user, such as providing e-pets in a category of birds, cats, or dogs for selection by the user. Then, the virtual character interaction device receives a selection instruction input by a user, acquires a virtual character selected by the user, and configures the virtual character corresponding to the first account. Of course, the virtual character interaction device may also randomly select a virtual character from the virtual character library and configure the selected virtual character as a virtual character under the first account.
After the virtual character is created, the virtual character interaction device can correspondingly configure the attribute information of the virtual character. For example, the virtual character interaction apparatus may randomly arrange each of the basic attribute value and the character attribute value in the virtual character attribute information.
Alternatively, as an embodiment, the step "configuring the attribute information" may include: selecting a leading character from preset character categories; and acquiring an initial attribute value corresponding to the leading character, and configuring attribute information of the virtual role of the first account.
The preset character types can be multiple, such as lively, inward and/or dull, and the like, and can be flexibly configured according to needs. Each category of character corresponds to a preset initial attribute value, including initial character attribute values, such as gentle, rough, local, younger sister, stuffy, humorous, optimistic, and/or lazy attribute values. As an implementation manner, the initial attribute values corresponding to the various categories of characters may further include initial basic attribute values of the virtual character, for example, attribute values such as a color value, a physical strength value, a strength value, an intelligent quotient value, and/or an emoticon value, and may be flexibly configured according to actual needs.
The virtual character interaction device can select the leading character from the preset character categories according to the preset selection rule. For example, the virtual character interaction device randomly selects one character from the preset character categories as the leading character. Or the virtual character interaction device counts the characters of each virtual character existing in the current live broadcast platform, obtains the proportion of the characters of each category, and configures the character with the lowest proportion or the highest proportion as the leading character. Of course, the dominant character may be selected according to other choices.
Of course, the virtual character interaction device can also display the preset character types for the user to select. And the user selects the character of interest from the displayed character categories and inputs a selection instruction. The virtual character interaction device receives an input selection instruction and acquires the selected character as a leading character.
And after the leading character is obtained, the virtual character interaction device configures and obtains the attribute information of the virtual character of the first account according to the initial character attribute value corresponding to the leading character.
For example, if the initial attribute value corresponding to the leading character includes an initial character attribute value and an initial basic attribute value, the virtual character interaction device obtains the attribute information of the first account virtual character according to each attribute value in the configuration attribute information corresponding to the initial character attribute value and the initial basic attribute value.
For example, if the initial attribute value corresponding to the leading character only includes the initial character attribute value, the virtual character interaction device configures the initial basic attribute value according to a preset configuration, and configures each attribute value in the attribute information according to the initial character attribute value and the initial basic attribute value, thereby obtaining the attribute information of the virtual character of the first account. The presetting can be configuring an initial basic attribute value according to a preset value, or configuring an initial basic attribute value through random assignment, or configuring an initial basic attribute value according to a numerical value input by a user, or configuring an initial basic attribute value according to a virtual role basic template selected by the user, and the like, and can be flexibly configured according to actual needs.
When the audience logs in the live broadcast platform by using the first account or is offline, the virtual character interaction device can acquire the virtual character under the first account as the first virtual character and acquire the attribute information of the first virtual character for interacting with the virtual characters of other anchor broadcasts.
104. And determining the target behavior of the first virtual role according to the attribute information of the first virtual role.
The target behavior can be an interaction behavior of the virtual character with other virtual characters, and a behavior result can be generated.
The behavior library can be preset, various character behaviors of the virtual character are recorded in the behavior library, such as chatting, ceremonies, traveling, appointments, marrying, scrambling and/or the racing car, and the behavior library can be flexibly configured according to actual needs. The mapping relationship between the character and the role behavior can be preconfigured.
In one embodiment, the virtual character interaction device selects a character with the highest attribute value from the attribute information of the first virtual character, and takes a character behavior corresponding to the character as a target behavior of the first virtual character.
In some embodiments, the virtual character interaction apparatus may further obtain current environment information, for example, time, whether the first account is online, whether the first account enters a live broadcast room of the anchor, whether the first account is chatting with other users, and select a target behavior of the first virtual character in a preset behavior library according to the current environment information and the attribute values of the characters.
For example, the virtual character interaction device divides according to a preset time period, obtains a time period to which the current time belongs and one or more character behaviors corresponding to the time period, and selects a character behavior with the largest character attribute value from the character behaviors corresponding to the time period as a target behavior of the first virtual character. For example, if the current time belongs to the afternoon tea time period, the role behaviors such as chatting, gift sending, and a racing car corresponding to the afternoon tea time period are obtained, and the role behavior with the largest corresponding character attribute value is selected from the three role behaviors as the target behavior of the first virtual role.
For example, when the virtual character interaction device detects that the first account currently enters a live broadcast room, one or more character behaviors corresponding to the live broadcast room are acquired, and a character behavior with the largest corresponding character attribute value is selected from the character behaviors corresponding to the live broadcast room and serves as a target behavior of the first virtual character.
Therefore, the virtual character interaction device can select the corresponding target behavior for interaction by considering the environment and the character of the virtual character in combination, and the humanization and the flexibility of the virtual character interaction are improved.
Of course, in some embodiments, the target behavior may also be the self behavior of the virtual character, such as cleaning, and then step 104 may further include: a target behavior is performed on the first virtual character.
In some embodiments, the virtual character interaction apparatus may further obtain historical interaction information of the first virtual character and the second virtual character within a preset time, and determine the target behavior of the first virtual character according to the attribute information and the historical interaction information of the first virtual character.
For example, the candidate behavior is determined to include an appointment and the like according to the attribute information of the first virtual character, and if the historical interaction information describes that the first virtual character and the second virtual character have executed appointment behaviors for more than a preset number of times within a preset time, the target behavior of the first character is determined to be married.
105. And executing the interaction behavior between the first virtual character and the second virtual character according to the target behavior.
After the first virtual character and the target behavior thereof are obtained and the interaction target second virtual character is confirmed, the virtual character interaction device drives the first virtual character and the second virtual character to execute the interaction behavior according to the target behavior.
For example, if the target behavior is chat, the virtual character interaction device executes the chat behavior of the first virtual character and the second virtual character. Specifically, the chat machine models corresponding to the first virtual character and the second virtual character may be configured in advance, and the preset corpus may be used for training. After the virtual character interaction device determines that the behavior is chatting, the chat machine model of the first virtual character is driven to output words to the chat machine model of the second virtual character, and then the chat machine model of the second virtual character is input to the chat machine model of the first virtual character according to the response output by the words, so that automatic conversation among the virtual characters is realized. Of course, the virtual character interaction device can also use a search mode to search the response corresponding to the words or the keywords thereof, so as to realize the automatic conversation between the virtual characters, and the virtual character interaction device can be flexibly configured according to the actual requirements.
Therefore, the embodiment realizes the interaction of the virtual characters.
In some embodiments, the interaction behavior between the virtual characters can be displayed in a preset virtual character interaction interface.
For example, the virtual character interaction device may describe the interaction behavior using a text, and referring to fig. 1c, the interaction behavior is a chat, the first virtual character is a pet a, the second virtual character is a pet B, and in a pet interface displayed on the terminal logging in the first account or the second account, the virtual character interaction device displays information such as chat time and chat content of the pet a and the pet B.
In some embodiments, the interactive behavior may also be displayed using a preset animation. Step 104 may also include: and displaying the interactive behaviors in the process of executing the interactive behaviors.
Specifically, in the process of executing the interactive behavior, the virtual character interaction device may display an animation image of the behavior of the first virtual character and the second virtual character in the communication interface between the first account and the second account. The communication interface comprises a live interface of the second account, a chat interface of the first account and the second account and the like.
For example, if the first account has entered the live room of the second account, the animation effect of the action of the first virtual character and the second virtual character is displayed in the live interface of the second account. The live interface can be a live interface of the second account displayed in the terminal for logging in the first account or the second account. If the interactive behavior is fighting and it is determined that the first account has entered the live broadcast room of the second account, the animation pictures of the first virtual character and the second virtual character fighting can be displayed in the live broadcast interface of the second account.
In some embodiments, the interactive behavior may result in a corresponding behavior result, such as a competitive win-or-loss, and step 105 may further include: and determining the result of the interaction behavior and displaying the result.
And if the target line can generate a behavior result, the virtual character interaction device acquires the behavior result corresponding to the target line and displays the behavior result.
For example, if the target action is delivering a gift and the action result is successfully delivering the gift, the result of the interaction action is successfully delivering the gift, and the first account and/or the second account may be notified in the form of a notification message.
For example, if the target behavior is the behavior of racing nature such as racing car, fighting, etc., the behavior result includes losing or winning. The virtual character interaction device may determine a result of the interaction behavior according to the attribute information of the first virtual character and the second virtual character, and display the result.
Specifically, the virtual character interaction apparatus may extract, from the attribute information of the first virtual character and the second virtual character, a basic attribute value, such as a physical strength value, corresponding to the target behavior. Then, the virtual character with a larger basic attribute value wins, and the virtual character with a smaller basic attribute value loses, so that the behavior result of the interactive behavior is obtained. Of course, the virtual character interaction device may also randomly configure the competition results of the first virtual character and the second virtual character, that is, randomly configure the win-or-lose of the first virtual character and the second virtual character, and obtain the result of the interaction behavior. The virtual character interaction device can also determine the win-or-lose of the interaction according to the historical win-or-lose rate of the interaction behavior of the first virtual character and the second virtual character, and the result of the interaction behavior is obtained.
Therefore, the flexibility and diversity of virtual character interaction are improved.
In some embodiments, if an interaction request of another virtual character is received, the interaction behavior with the other virtual character is executed according to the interaction request, and the result of the interaction behavior and/or the result of the interaction behavior can also be displayed, so that the passive execution of the active execution and the passive execution is realized, and the social attribute of the virtual character is expanded.
As can be seen from the above, in the embodiment of the present invention, user accounts of a preset category are screened from the user information base, so as to obtain a candidate user group; screening user accounts interested by the first account from the candidate user group to obtain a second account, and determining a virtual role subordinate to the second account as a second virtual role; determining a virtual role under a first account as a first virtual role, and acquiring attribute information of the first virtual role; determining the target behavior of the first virtual role according to the attribute information of the first virtual role; and executing the interaction behavior between the first virtual character and the second virtual character according to the target behavior. The scheme provides a virtual role interaction scheme under each user account in a live broadcast platform, can screen out a main broadcast account in the live broadcast platform to configure a candidate user group, and automatically analyzes a main broadcast account interested by any audience account in the candidate user group, so that the interaction between the audience account and the virtual role under the main broadcast account is realized. Moreover, the interaction between the virtual characters can be automatically carried out, the limited interaction operation of the anchor is not limited, and the interaction efficiency is higher than that of the traditional interaction mode, so that the live broadcast interactivity is improved by the scheme. In addition, the scheme determines the interaction behavior according to the attribute of the virtual role, and the diversity and flexibility of interaction are realized. In addition, the scheme automatically performs interaction of virtual roles, does not need audiences or anchor to perform complex interactive operation, saves the computing resources of the live broadcast platform, and ensures the interactivity of the anchor and the audiences in the live broadcast platform.
The method according to the preceding embodiment is illustrated in further detail below by way of example.
For example, referring to fig. 2, in the present embodiment, the virtual character interaction apparatus is integrated in a server for illustration.
201. And screening user accounts of preset categories in a user information base to obtain a candidate user group.
The present embodiment exemplifies the preset category as the anchor account. The candidate user group includes one or more anchor accounts. The detailed implementation manner may refer to the description in step 101 of the virtual character interaction method embodiment described above, and is not described herein again.
202. Screening user accounts interested by the first account from the candidate user group to obtain a second account, and determining the virtual role subordinate to the second account as a second virtual role.
The detailed description of the step 102 in the above embodiment of the virtual character interaction method can be referred to, and is not repeated herein.
203. And determining the virtual role under the first account as the first virtual role, and acquiring the attribute information of the first virtual role.
In this embodiment, the first account is taken as an audience account for example, and the specific implementation manner may refer to the description in step 103 of the virtual character interaction method embodiment described above, which is not described herein again.
204. And carrying out normalization processing on a plurality of character attribute values included in the attribute information, and calculating to obtain the relative probability of each character.
The attribute information includes a plurality of character attribute values, such as a gentle value, a rough value, a local tyrant value, a younger sister value, a smothering value, a humorous value, an optimistic value and/or a lazy value.
The server may normalize the plurality of personality attribute values using a Softmax function (normalized exponential function), compress the plurality of personality attribute values into a range (0,1), highlight the largest of the values and suppress other components that are well below the maximum.
Specifically, the server may configure the plurality of character attribute values as a first vector, input a Softmax function, and compress the first vector to obtain a second vector output by the Softmax function. In this way, the server can select, from the second vector, the relative probabilities that the same-ranked values correspond to the characters, respectively, according to the ranking of the attribute values of the characters in the first vector.
In some embodiments, the character of the virtual character of the user can be correspondingly adjusted according to the historical behavior of the user, so that the synchronization of the character of the virtual character and the character of the user is realized, and the user experience is improved. Specifically, before the step "determining the target character according to the relative probability of each character", the method may further include: according to a preset character-user behavior mapping relation, counting historical behaviors of the first account to obtain behavior frequency of each character; and correspondingly modifying the attribute value and/or the relative probability of each character according to the behavior frequency of each character.
The preset character-user behavior mapping relation records the mapping relation between the user behavior and the character of the virtual role.
For example, the server may obtain the behavior of the first account for a preset period of time as historical behavior. The behavior of the first account includes cursors, chat, and/or reward broadcasters, and the like.
And then, the server determines the character corresponding to each user behavior according to a preset character-user behavior mapping relation. The server can count the behavior frequency corresponding to each character according to the character corresponding to each user behavior, and further calculate the ratio of the behavior corresponding to each character in all historical behaviors respectively to serve as the behavior frequency of each character correspondingly.
And then, the server correspondingly modifies the attribute values and/or the relative probabilities of the characters according to the behavior frequency of the characters. For example, the server may increase the character attribute value and/or the attribute value with the highest frequency of behavior by a preset ratio.
Therefore, the character of the virtual character can be changed according to the character of the user, and the diversity of the virtual character is realized.
In some embodiments, the character of the virtual character can be adjusted according to the preference of the user. Specifically, before the step "determining the target character according to the relative probability of each character", the method may further include: receiving a character modification instruction input by a first account; and correspondingly modifying the attribute value and/or the relative probability of the specified character according to the character modification instruction.
For example, the user inputs a character modification request in the client and sends the character modification request to the server, and the server returns a character modification page to the client according to the character modification request. The character attribute values and/or relative probabilities of the first virtual character are displayed in the character modification page.
Then, the user can input modification information confirmation in the character modification page, and the client generates a character modification instruction according to the modification information and sends the character modification instruction to the server. Wherein, the modification information includes the attribute value and/or relative probability of the designated character, for example, the attribute value of the designated character is modified into a designated numerical value; the modification information may also be an adjustment ratio of the assigned personality attribute values and/or relative probabilities, e.g., the assigned personality relative probability is increased by 10%.
And after receiving the character modification instruction, the server acquires the modification information carried in the character modification instruction, and modifies the attribute value and/or the relative probability of the specified character correspondingly. For example, if the modification information includes the attribute value of the designated character, the server modifies the attribute value of the designated character correspondingly, and updates the relative probability of each character.
Therefore, the user can flexibly modify the character of the virtual character according to personal preference, and the behavior of the virtual character is further influenced.
205. And determining the target character according to the relative probability of each character.
For example, the server may select, as the target character, a character having the highest relative probability value among the characters.
Or, in order to avoid excessive identical behaviors, the server may determine the target rank required to be selected at this time according to a preset polling sequence every time interaction is performed according to the polling sequence. Then, the server sorts the relative probability of each character, and selects the character with the relative probability sorted at the target level as the target character.
206. And extracting the behavior corresponding to the target character from a preset behavior library to serve as the target behavior of the first virtual role.
After the target character is obtained, the server selects the behavior corresponding to the target character from the behavior library to obtain the target behavior which is executed by the first virtual character at this time.
In some embodiments, the behavior of the virtual character may include a pre-behavior, so as to avoid confusion of the interaction behavior of the virtual character, ensure the logic and coherence of the interaction behavior, and therefore, the detection of the pre-behavior is required for the target behavior. Step 206 may include: extracting a role behavior corresponding to the target character from a preset behavior library according to a preset character-role behavior mapping relation; determining whether the role behaviors corresponding to the target characters have unexecuted preposed behaviors or not; and if the target behavior does not exist, determining the role behavior corresponding to the target character as the target behavior of the first virtual role.
The preset character-character behavior mapping relation records the mapping relation between the behavior of the virtual character and the character of the virtual character.
A pre-action is a prerequisite for a subsequent action, which can only be executed after the execution of the pre-action. For example, pre-actions for marrications include pre-actions for appointments, chatting, and/or sending flowers.
For example, after the server selects the role behavior corresponding to the target character from the behavior library according to a preset character-role behavior mapping relationship, it needs to detect whether the role behavior corresponding to the target character has a pre-behavior.
If the role behavior corresponding to the target character does not have the preposed behavior, the server judges that the role behavior corresponding to the target character does not have the unexecuted preposed behavior, and the role behavior corresponding to the target behavior is currently executable, so that the role behavior corresponding to the target behavior is determined as the target behavior of the first virtual role.
If the role behavior corresponding to the target character exists in the preposition behavior, the server needs to detect that the preposition behavior is executed at some time. If the pre-behavior is executed, the server judges that the role behavior corresponding to the target character does not have the unexecuted pre-behavior, and determines the role behavior corresponding to the target behavior as the target behavior of the first virtual role.
In some embodiments, after the step "determining whether there is an unexecuted pre-action in the role action corresponding to the target character", the method further includes: and if so, reselecting the target character according to the relative probability of each character.
If the role behavior corresponding to the target character exists in the prepositive behavior and the prepositive behavior is not executed, the server judges that the role behavior corresponding to the target character exists in the unexecuted prepositive behavior, so that the role behavior corresponding to the target character cannot be executed currently.
And the server reselects the target character according to the relative probability of each character, further reselects the target behavior and detects the preposed behavior. For example, the server may sequentially reselect the target characters in descending order according to the ranking of the relative probabilities of the target characters until the target behavior without the unexecuted pre-behavior is obtained.
207. And executing the interaction behavior between the first virtual character and the second virtual character according to the target behavior.
The detailed description of the step 104 in the above embodiment of the virtual character interaction method can be referred to, and is not repeated herein.
208. And receiving a reward and punishment instruction for the interaction behavior input by the first account.
After the interaction behavior is executed, the user can use the first account to input a reward and punishment instruction on the interaction behavior according to the preference degree of the user on the interaction behavior so as to reward and punishment the first virtual role.
And the server receives and executes the reward and punishment instruction input by the first account, so as to realize reward and punishment on the first virtual role.
For example, if the reward and punishment instruction input by the first account is to award a snack, the server correspondingly issues a snack to the first virtual character.
209. And correspondingly modifying the attribute information of the first virtual role according to the reward and punishment instruction.
Specifically, the server may obtain a target character corresponding to the target behavior, correspondingly modify an attribute value of the target character in the first virtual character attribute information according to the reward and punishment instruction, and update the relative probability of each character according to the modified attribute value of the target character.
For example, if the reward and punishment instruction is an instruction with reward properties, the attribute value of the target character in the first virtual character attribute information is increased by a preset value or a preset proportion, so that the relative probability of the target character is correspondingly increased.
If the reward and punishment instruction is an instruction with punishment property, the attribute value of the target character in the first virtual character attribute information is reduced by a preset numerical value or a preset proportion, and therefore the relative probability of the target character is correspondingly reduced.
Therefore, the embodiment of the invention determines the corresponding behavior based on the character of the virtual character, and can adjust the character of the virtual character along with the behavior of the user, so that the character is more anthropomorphic, and the degree of automation and intelligence of the interaction of the virtual character is improved. In addition, the attribute information of the virtual roles can be modified according to the reward and punishment instruction of the user, so that the virtual roles are more vivid, the character can be closer to the expectation of the user, correspondingly, the interaction behavior between the virtual roles is more accordant with the expectation of the user, and the interaction efficiency between audiences and the anchor is improved.
The method according to the preceding embodiment is illustrated in further detail below by way of example.
For example, referring to fig. 3a, in the present embodiment, a virtual character interaction apparatus is integrated in a terminal for example. The terminal can be a mobile phone, a tablet computer and other devices, and can execute the virtual character interaction method in the above embodiment.
In this embodiment, the first account is taken as an audience account, and the terminal is taken as a terminal for logging in the first account for example. The terminal may include the following modules:
the device comprises a data module.
The data module may be understood as a user information base for storing user information, historical behavior data of the first account, and the like.
And (II) a preference module.
The preference module may screen the anchor account from the user information recorded by the data module as a candidate user group. And then, according to the historical behavior data of the first account, determining an anchor account which is interested by the first virtual role in the candidate user group as a second account, and acquiring the virtual role subordinate to the second account as the second virtual role. The specific implementation manner can be according to the descriptions in steps 101 and 102 in the above virtual character interaction method embodiment, and is not described herein again.
And (III) an attribute module.
The attribute module is used for determining attribute information of the first virtual role.
For example, the attribute module may present a preset character category, receive a character selection instruction input by a user, and determine a selected character as a dominant character.
And then, the attribute module configures and obtains the attribute information of the virtual role of the first account according to the preset attribute values of each character corresponding to the leading character, and stores the attribute information into the data module.
Certainly, the attribute module may also count the historical behavior of the first account according to a preset personality-user behavior mapping relationship to obtain the behavior frequency of each personality; and then, according to the behavior frequency of each character, correspondingly modifying the attribute value and/or the relative probability of each character.
If the user has modification requirements, the attribute module can also receive a character modification instruction input by the first account; and correspondingly modifying the attribute value and/or the relative probability of the specified character according to the character modification instruction.
In addition, the attribute module may modify the character attribute value of the first virtual character attribute information in the data module according to a reward and punishment instruction input by the user, where the reward and punishment instruction is input by the user to an interaction behavior for the first virtual character by using the first account.
For example, in fig. 3b, after the first account logs in the live platform using the client, the relevant information of the first virtual character can be viewed on the "my pet" page provided by the client.
The page comprises a mark view of a first virtual role: a puppy photo, and attribute information of the first virtual character: a base attribute value and a personality attribute value. Base attribute values include strength values, wealth values and/or color values, and the like; the personality attribute values may include a gentle value, a khause value, and/or a younger sister value, among others. In addition, the page can also comprise commodities which are used by the first virtual character and/or given to other virtual characters and shortcut buttons of related commodities.
Of course, the user may also input an information modification instruction on the page to modify the attribute value of the specified character.
And (IV) a behavior library.
Various character behaviors are recorded in the behavior library, such as chatting, gift sending, traveling, dating, marriage, scrambling and/or the drag bike, and the behavior library can be flexibly configured according to actual needs. The mapping relationship between the character and the role behavior can be configured in advance, and each character corresponds to the role behavior.
In some embodiments, the role behaviors may also correspond to pre-positioned behaviors, e.g., where the role interaction is wedding, then its pre-positioned behaviors may include appointments, gifts, and the like.
And (V) a control module.
The control module is used for selecting the target behavior of the first virtual role from the behavior library according to the attribute information of the first virtual role.
Then, the control module executes the interaction behavior of the first virtual character and the second virtual character according to the target behavior.
The target behavior is exemplified as a chat. The control module can drive the chat module to be used as the first virtual character to carry out conversation chat with the second virtual character.
In some embodiments, during the execution of the interactive behavior, the control module may further drive the animation module to display the interactive behavior. After the interactive behavior is finished, the control module can also determine the result of the interactive behavior and drive the animation module to display the result.
For example, FIG. 3c, a user may use a client on a "pet dynamic" page to view various interactive behaviors of the first avatar. For example, the first avatar and the pet of the local user ABC were taken one stand, injured and hospitalized for one day, etc.
And (IV) a chat module.
Because of the automatic chat, the chat module is used to enable the first avatar to converse with the user account or other avatars. The user accounts comprise a first account and other user accounts in the live broadcast platform.
For example, the chat module may be a chat machine model, trained using the corpus in the data module, and driven by the control module to perform a dialogue with the user account or other virtual character, e.g., a dialogue chat with a second virtual character. Of course, the chat module may also use a search formula or keywords to implement the conversation.
And (VI) an animation module.
The animation module is used for displaying an animation picture of the interaction behavior and/or the behavior result under the driving of the control module. The animation picture can be preset, and the animation module determines and displays the corresponding animation picture according to the interaction behavior or the behavior result.
For example, the interactive behavior is fighting, the first virtual character and the second virtual character are cyber pet cats, and referring to fig. 3d, the animation module displays the fighting animation of the first virtual character and the second virtual character in a live broadcast interface of the terminal under the driving of the control module.
And (seventhly) a recording module.
The recording module is used for recording historical interaction behaviors of the virtual character so as to avoid executing the character behaviors which are not executed by the preposed behaviors.
Therefore, the embodiment of the invention can realize the interaction behavior of the audience account and the subordinate virtual roles of the anchor account, so that the audience indirectly feels the interaction with the anchor through the virtual roles under the account, and the interaction is more visual and visible through the animation picture, thereby improving the interaction between the audience and the anchor and reducing the interaction burden of the anchor.
An embodiment of the present invention further provides a virtual character interaction apparatus, for example, as shown in fig. 4a, the virtual character interaction apparatus may include: the candidate unit 401, the preference unit 402, the determination unit 403, the behavior unit 404, and the execution unit 405 are as follows:
(one), a candidate unit 401;
the candidate unit 401 is configured to screen user accounts of preset categories from a user information base to obtain a candidate user group.
For example, a user may register a user account with a live platform web page or live software, as a video feed that a viewer watches a anchor, or as an anchor to a viewer. Wherein the user accounts include a viewer account and a cast account.
The user information base records user information in the live broadcast platform, and the user information comprises a user account, virtual roles subordinate to the user account and the like. The virtual roles are subordinate to the user accounts, each user account may be subordinate to one or more virtual roles, and the example of the embodiment is described by referring to one virtual role subordinate to each user account. The virtual character may be a cartoon character or an electronic pet, and the virtual character is exemplified as the electronic pet in this embodiment.
The preset category of user accounts may be anchor accounts.
For example, the user accounts of a preset category are taken as anchor accounts, and the candidate unit 401 filters the anchor accounts according to the categories of the user accounts in the user information base, and configures the anchor accounts into a candidate user group.
(II), a preference unit 402;
a preference unit 402, configured to filter user accounts in the candidate user group, where the user accounts are interested in the first account, obtain a second account, and determine a virtual role subordinate to the second account as the second virtual role.
The first account is a viewer account in the user information base. In this embodiment, a preset category is taken as an anchor account, and a user account in the candidate user group is taken as the anchor account for example.
Taking any first account as an example, the user accounts of interest may be primary accounts that are aesthetically or preferentially suited.
For example, the preference unit 402 may use a collaborative filtering algorithm to select a primary account in the primary database that is of interest to the first account as an alternative account, and then select one or more primary accounts in the alternative accounts as user accounts that are of interest to the first user account through a logistic regression algorithm, thereby obtaining the second account.
Specifically, the preference unit 402 obtains historical behavior data of the first account. The historical behavior data records anchor accounts which the first account pays attention to, watches, approves, shares, comments and/or collects in a preset time period, and the historical behavior data can also comprise the live broadcast duration of watching the anchor accounts and the like. Then, the historical behavior data is quantized, other audience accounts with the same or similar preferences are searched for to serve as similar accounts, and the anchor accounts, which are not concerned or watched by the first account, are screened out from the anchor accounts which are concerned, watched, praised, shared, commented and/or collected by the similar accounts to serve as alternative accounts which are interested by the first account.
Then, the preference unit 402 calculates probability values of the alternative accounts through a logistic regression algorithm, and takes the alternative account with the highest probability value as the user account interested by the first account, that is, the second account. Currently, according to the sequence of the probability values from large to small, the preset number of the standby accounts with the top ranking can be selected as the second accounts, and a plurality of second accounts are obtained. The embodiment takes the preference unit 402 as an example to acquire a second account, which is illustrated.
After obtaining the second account, the preference unit 402 acquires the virtual role subordinate to the second account as the second virtual role. The second virtual role is subordinate to the second account.
(iii) determination unit 403:
the determining unit 403 is configured to determine that the virtual role under the first account is the first virtual role, and acquire attribute information of the first virtual role.
Each virtual role corresponds to attribute information, and various attribute values of the virtual role are recorded in the attribute information, wherein the attribute values comprise basic attribute values and/or character attribute values and the like. Wherein the basic attribute value characterizes the virtual character, such as color value, physical strength, intelligence quotient and/or emotion quotient. The personality attribute values characterize the personality characteristics of the virtual character, such as gentle, brute force, local, sister, harassing, humour, optimistic, and/or lazy, among others. The character attribute value determines the behavior preference of the virtual character, for example, the virtual character with a high value of the sister attribute is better to chat with other virtual characters, and the virtual character with a high value of the brute force attribute is better to disorder or fight with other virtual characters, so that the character richness of the virtual character is ensured.
When the audience logs in the live broadcast platform or goes offline by using the first account, the determining unit 403 may acquire the virtual character under the first account as the first virtual character, and acquire the attribute information of the first virtual character for interacting with the virtual characters of other anchor broadcasts.
Behavior unit 404:
a behavior unit 404, configured to determine a target behavior of the first virtual character according to the attribute information of the first virtual character.
The target behavior can be an interaction behavior of the virtual character with other virtual characters, and a behavior result can be generated.
The behavior library can be preset, various character behaviors of the virtual character are recorded in the behavior library, such as chatting, ceremonies, traveling, appointments, marrying, scrambling and/or the racing car, and the behavior library can be flexibly configured according to actual needs. The mapping relationship between the character and the role behavior can be preconfigured.
As an implementation manner, the behavior unit 404 selects a character with the highest attribute value from the attribute information of the first virtual character, and takes a character behavior corresponding to the character as a target behavior of the first virtual character.
In some embodiments, the behavior unit 404 may further obtain current environment information, such as time, whether the first account is online, whether the first account enters a live broadcast room of the anchor, whether the first account is chatting with other users, and select the target behavior of the first virtual character from a preset behavior library according to the current environment information and the attribute values of the characters.
For example, the behavior unit 404 device obtains a time period to which the current time belongs and one or more role behaviors corresponding to the time period according to preset time period division, and selects a role behavior with the largest character attribute value from the role behaviors corresponding to the time period as a target behavior of the first virtual role. For example, if the current time belongs to the afternoon tea time period, the role behaviors such as chatting, gift sending, and a racing car corresponding to the afternoon tea time period are obtained, and the role behavior with the largest corresponding character attribute value is selected from the three role behaviors as the target behavior of the first virtual role.
For example, when detecting that the first account currently enters the live broadcast room, the behavior unit 404 obtains one or more role behaviors corresponding to the live broadcast room, and selects a role behavior with the largest corresponding attribute value from the role behaviors corresponding to the live broadcast room as a target behavior of the first virtual role.
Therefore, the behavior unit 404 can select the corresponding target behavior for interaction by considering the environment and the character of the virtual character, thereby improving the humanization and the flexibility of the interaction of the virtual character.
In some embodiments, the behavior unit 404 is specifically configured to: normalizing a plurality of character attribute values included in the attribute information, and calculating to obtain the relative probability of each character; determining a target character according to the relative probability of each character; extracting the behavior corresponding to the target character from a preset behavior library to be used as the target behavior of the first virtual role
The attribute information includes a plurality of character attribute values, such as a gentle value, a rough value, a local tyrant value, a younger sister value, a smothering value, a humorous value, an optimistic value and/or a lazy value.
The behavior unit 404 may normalize the plurality of character attribute values using a Softmax function (normalized exponential function), compress the plurality of character attribute values into a range (0,1), highlight a maximum value thereof and suppress other components far below the maximum value.
Then, the behavior unit 404 may select a character with the highest relative probability value among the characters as a target character. Alternatively, to avoid too many identical behaviors, the behavior unit 404 may determine the target bit number that needs to be selected at this time according to a preset polling sequence every time interaction is performed. Then, the behavior unit 404 ranks the relative probabilities of the characters, and selects the character ranked at the target rank of the relative probability as the target character.
After the target character is obtained, the behavior unit 404 selects a behavior corresponding to the target character from the behavior library to obtain a target behavior that is to be executed by the first virtual character at this time.
In some embodiments, the behavior of the virtual character may include a pre-behavior, so as to avoid confusion of the interaction behavior of the virtual character, ensure the logic and coherence of the interaction behavior, and therefore, the detection of the pre-behavior is required for the target behavior. The behavior unit 404 may specifically be configured to: extracting a role behavior corresponding to the target character from a preset behavior library according to a preset character-role behavior mapping relation; determining whether the role behaviors corresponding to the target characters have unexecuted preposed behaviors or not; and if the target behavior does not exist, determining the role behavior corresponding to the target character as the target behavior of the first virtual role.
The preset character-character behavior mapping relation records the mapping relation between the behavior of the virtual character and the character of the virtual character.
A pre-action is a prerequisite for a subsequent action, which can only be executed after the execution of the pre-action. For example, pre-actions for marrications include pre-actions for appointments, chatting, and/or sending flowers.
For example, the behavior unit 404 needs to detect whether there is a pre-behavior in the role behavior corresponding to the target character after selecting the role behavior corresponding to the target character in the behavior library according to a preset character-role behavior mapping relationship.
If the role behavior corresponding to the target character does not have a pre-action, the behavior unit 404 determines that the role behavior corresponding to the target character is not an unexecuted pre-action, and the role behavior corresponding to the target character is currently executable, so that the role behavior corresponding to the target behavior is determined as the target behavior of the first virtual character.
If the role behavior corresponding to the target character exists in the pre-action, the behavior unit 404 needs to detect that the pre-action is executed at some time. If the pre-action has already been executed, the action unit 404 determines that there is no unexecuted pre-action in the role action corresponding to the target character, and determines the role action corresponding to the target action as the target action of the first virtual role.
In some embodiments, after determining whether there is an unexecuted pre-action for the role action corresponding to the target character, the action unit 404 is further configured to: and if so, reselecting the target character according to the relative probability of each character.
If the role behavior corresponding to the target character has a pre-posed behavior and the pre-posed behavior is not executed, the behavior unit 404 determines that the role behavior corresponding to the target character has the pre-posed behavior which is not executed, and therefore, the role behavior corresponding to the target character cannot be executed currently.
The behavior unit 404 reselects the target character according to the relative probability of each character, and further reselects the target behavior to perform detection of the pre-behavior. For example, the behavior unit 404 may sequentially reselect the target characters in descending order according to the ranking of the relative probabilities of the target characters until the target behavior without the unexecuted pre-behavior is obtained.
In some embodiments, the character of the virtual character of the user can be correspondingly adjusted according to the historical behavior of the user, so that the synchronization of the character of the virtual character and the character of the user is realized, and the user experience is improved. Specifically, the behavior unit 404 may be further configured to: according to a preset character-user behavior mapping relation, counting historical behaviors of the first account to obtain behavior frequency of each character; and correspondingly modifying the attribute value and/or the relative probability of each character according to the behavior frequency of each character.
The preset character-user behavior mapping relation records the mapping relation between the user behavior and the character of the virtual role.
For example, the behavior unit 404 may acquire the behavior of the first account within a preset time period as the historical behavior. The behavior of the first account includes cursors, chat, and/or reward broadcasters, and the like.
Then, the behavior unit 404 determines a corresponding character of each user behavior according to a preset character-user behavior mapping relationship. The behavior unit 404 may count the number of times of the behavior corresponding to each character according to the character corresponding to each user behavior, and further calculate the ratio of the behavior corresponding to each character in all historical behaviors, which is correspondingly used as the behavior frequency of each character.
Then, the behavior unit 404 modifies the attribute values and/or the relative probabilities of the characters according to the behavior frequency of each character. For example, the behavior unit 404 may increase the attribute value of the character and/or the attribute value with the highest frequency of behavior by a preset ratio.
Therefore, the character of the virtual character can be changed according to the character of the user, and the diversity of the virtual character is realized.
In some embodiments, the character of the virtual character can be adjusted according to the preference of the user. Specifically, the behavior unit 404 may be further configured to: receiving a character modification instruction input by a first account; and correspondingly modifying the attribute value and/or the relative probability of the specified character according to the character modification instruction.
For example, the user inputs a character modification request in the client and sends the character modification request to the server, and the server returns a character modification page to the client according to the character modification request. The character attribute values and/or relative probabilities of the first virtual character are displayed in the character modification page.
The user may then enter a confirmation of the modification information in the personality modification page, and the client may generate a personality modification instruction based on the modification information and send the personality modification instruction to the behavior unit 404. Wherein, the modification information includes the attribute value and/or relative probability of the designated character, for example, the attribute value of the designated character is modified into a designated numerical value; the modification information may also be an adjustment ratio of the assigned personality attribute values and/or relative probabilities, e.g., the assigned personality relative probability is increased by 10%.
After receiving the character modification instruction, the behavior unit 404 obtains the modification information carried therein, and modifies the attribute value and/or the relative probability of the specified character correspondingly. For example, if the modification information includes the attribute value of the designated character, the server modifies the attribute value of the designated character correspondingly, and updates the relative probability of each character.
Therefore, the user can flexibly modify the character of the virtual character according to personal preference, and the behavior of the virtual character is further influenced.
(V) execution Unit 405:
the execution unit 405 is configured to execute an interaction behavior between the first virtual character and the second virtual character according to the target behavior.
After obtaining the first virtual character and the target behavior thereof and confirming the interaction target second virtual character, the execution unit 405 drives the first virtual character and the second virtual character to execute the interaction behavior according to the target behavior.
Of course, in some embodiments, the target behavior may also be the self behavior of the virtual character, such as cleaning, and the execution unit 405 may also be configured to: a target behavior is performed on the first virtual character.
Therefore, the scheme provides a device for controlling the interaction of the virtual roles subordinate to each user account in the live broadcast platform, the anchor accounts in the live broadcast platform can be screened out to configure the candidate user groups, the anchor accounts interested by any audience account are automatically analyzed in the candidate user groups, and therefore the interaction between the audience accounts and the virtual roles subordinate to the anchor accounts is achieved. Moreover, the interaction between the virtual characters can be automatically carried out, the limited interaction operation of the anchor is not limited, and the interaction efficiency is higher than that of the traditional interaction mode, so that the live broadcast interactivity is improved by the scheme. In addition, the scheme determines the interaction behavior according to the attribute of the virtual role, and then executes the corresponding interaction behavior, so that the diversity and flexibility of interaction are realized. In addition, the scheme automatically performs interaction of virtual roles, does not need audiences or anchor to perform complex interactive operation, saves the computing resources of the live broadcast platform, and ensures the interactivity of the anchor and the audiences in the live broadcast platform.
In addition, referring to fig. 4b, the virtual character interaction apparatus may further include a reward and punishment unit 406, a display unit 407, and a creation unit 408, as follows:
(five) reward and punishment unit 406:
the reward and punishment unit 406 is used for receiving a reward and punishment instruction for the interaction behavior input by the first account; and correspondingly modifying the attribute information of the first virtual role according to the reward and punishment instruction.
After the interaction behavior is executed, the user can use the first account to input a reward and punishment instruction on the interaction behavior according to the preference degree of the user on the interaction behavior so as to reward and punishment the first virtual role.
And the reward and punishment unit 406 receives the reward and punishment instruction input by the first account and executes the reward and punishment instruction to realize reward and punishment on the first virtual role. For example, if the reward and punishment instruction input by the first account is to award a snack, the reward and punishment unit 406 correspondingly issues a snack to the first virtual character.
In addition, the reward and punishment unit 406 may obtain a target character corresponding to the target behavior, correspondingly modify the attribute value of the target character in the first virtual character attribute information according to the reward and punishment instruction, and update the relative probability of each character according to the modified attribute value of the target character.
For example, if the reward and punishment instruction is an instruction with reward properties, the attribute value of the target character in the first virtual character attribute information is increased by a preset value or a preset proportion, so that the relative probability of the target character is correspondingly increased.
If the reward and punishment instruction is an instruction with punishment property, the attribute value of the target character in the first virtual character attribute information is reduced by a preset numerical value or a preset proportion, and therefore the relative probability of the target character is correspondingly reduced.
Therefore, the character of the virtual character can be gradually trimmed through reward and punishment information input by the user, so that the character is more close to the preference and the demand of the user.
(sixth) display unit 407:
the display unit 407 is configured to display the interactive behavior in the process of executing the interactive behavior; and/or determining the result of the interaction behavior and displaying the result.
For example, the display unit 407 may display the interactive behavior using a preset animation.
Specifically, in the process of executing the interactive behavior, the display unit 407 may display an animation picture of the behavior of the first virtual character and the second virtual character in the communication interface between the first account and the second account. The communication interface comprises a live interface of the second account, a chat interface of the first account and the second account and the like. For example, if the first account has entered the live broadcast room of the second account, the display unit 407 displays an animation effect of the movement behavior of the first virtual character and the second virtual character in the live broadcast interface of the second account. The live interface can be a live interface of the second account displayed in the terminal for logging in the first account or the second account.
In some embodiments, the interactive behavior may result in corresponding behavior results, such as competitive win-or-loss, and the like. The display unit 407 determines the result of the current interaction behavior and displays the result.
For example, if the interactive behavior is the behavior of racing nature such as racing car and fighting, the behavior result includes losing or winning. The display unit 407 may determine a result of the interaction behavior according to the attribute information of the first virtual character and the second virtual character, and display the result.
Therefore, the flexibility and diversity of virtual character interaction are improved.
In some embodiments, if an interaction request of another virtual character is received, the execution unit 405 executes an interaction behavior with the other virtual character according to the interaction request, and the display unit 407 may further display the interaction behavior and/or a result of the interaction behavior, thereby implementing passive execution and active execution, and expanding social attributes of the virtual character.
(seventh) creating unit 408:
the creating unit 408 is configured to create a virtual role under the first account and configure attribute information.
Specifically, the creating unit 408 may create the subordinate virtual role for the first account when the first account is created or when the virtual role creating instruction of the first account is received.
For example, the creation unit 408 may provide alternative avatars in various categories for selection by the user, such as providing cyber pets in categories of birds, cats, or dogs for selection by the user. Then, the creating unit 408 receives a selection instruction input by the user, acquires the virtual role selected by the user, and configures the virtual role corresponding to the first account. Of course, the creating unit 408 may also randomly select a virtual character from the virtual character library, and configure the selected virtual character as a virtual character under the first account.
After creating the virtual character, the creating unit 408 may configure the attribute information of the virtual character. For example, the virtual character interaction apparatus may randomly arrange each of the basic attribute value and the character attribute value in the virtual character attribute information.
In some embodiments, the user may select a character of interest to configure the character of the virtual character, and the creating unit 408 is specifically configured to: selecting a leading character from preset character categories; and acquiring an initial attribute value corresponding to the leading character, and configuring attribute information of the virtual role of the first account.
The preset character types can be multiple, such as lively, inward and/or dull, and the like, and can be flexibly configured according to needs. Each category of character corresponds to a preset initial attribute value, including initial character attribute values, such as gentle, rough, local, younger sister, stuffy, humorous, optimistic, and/or lazy attribute values. As an implementation manner, the initial attribute values corresponding to the various categories of characters may further include initial basic attribute values of the virtual character, for example, attribute values such as a color value, a physical strength value, a strength value, an intelligent quotient value, and/or an emoticon value, and may be flexibly configured according to actual needs.
The creating unit 408 may select a dominant character from the preset character categories according to a preset selection rule. For example, the creating unit 408 randomly selects one character from the preset character categories as the dominant character.
Of course, the creating unit 408 may also display the preset character categories for the user to select. And the user selects the character of interest from the displayed character categories and inputs a selection instruction. The creating unit 408 receives the input selection instruction, and acquires the selected character as the dominant character.
After the leading character is obtained, the creating unit 408 configures and obtains the attribute information of the first account virtual character according to the preset initial attribute value corresponding to the leading character.
Therefore, in the embodiment, the user can determine the character of the virtual character according to the preference, so that the interactive behavior of the virtual character is influenced, the individuation of the interactive behavior is improved, and the user demand is met.
An embodiment of the present invention further provides a server, as shown in fig. 5, which shows a schematic structural diagram of the server according to the embodiment of the present invention, specifically:
the server may include components such as a processor 501 of one or more processing cores, memory 502 of one or more computer-readable storage media, a power supply 503, and an input unit 505. Those skilled in the art will appreciate that the server architecture shown in FIG. 5 is not meant to be limiting, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 501 is a control center of the server, connects various parts of the entire server by various interfaces and lines, and performs various functions of the server and processes data by running or executing software programs and/or modules stored in the memory 502 and calling data stored in the memory 502, thereby performing overall monitoring of the server. Optionally, processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 501.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by operating the software programs and modules stored in the memory 502. The memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a virtual character interaction program, etc.), and the like; the storage data area may store data created according to the use of the server, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
The server further comprises a power supply 503 for supplying power to each component, and preferably, the power supply 503 may be logically connected to the processor 501 through a power management system, so that functions of managing charging, discharging, power consumption, and the like are realized through the power management system. The power supply 503 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The server may further include an input unit 505, and the input unit 505 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the server may further include a display unit and the like, which will not be described in detail herein. Specifically, in this embodiment, the processor 501 in the server loads the executable file corresponding to the process of one or more application programs into the memory 502 according to the following instructions, and the processor 501 runs the virtual character interaction program stored in the memory 502, so as to implement various functions as follows:
screening user accounts of a preset category from a user information base to obtain a candidate user group;
screening user accounts interested by the first account from the candidate user group to obtain a second account, and determining a virtual role subordinate to the second account as a second virtual role;
determining a virtual role under a first account as a first virtual role, and acquiring attribute information of the first virtual role;
determining the target behavior of the first virtual role according to the attribute information of the first virtual role;
and executing the interaction behavior between the first virtual character and the second virtual character according to the target behavior.
The processor 501 may also run a virtual character interaction program stored in the memory 502, and implement the following functions: normalizing a plurality of character attribute values included in the attribute information, and calculating to obtain the relative probability of each character; determining a target character according to the relative probability of each character; and extracting the behavior corresponding to the target character from a preset behavior library to serve as the target behavior of the first virtual role.
The processor 501 may also run a virtual character interaction program stored in the memory 502, and implement the following functions: extracting a role behavior corresponding to the target character from a preset behavior library according to a preset character-role behavior mapping relation; determining whether the role behaviors corresponding to the target characters have unexecuted preposed behaviors or not; and if the target behavior does not exist, determining the role behavior corresponding to the target character as the target behavior of the first virtual role.
The processor 501 may also run a virtual character interaction program stored in the memory 502, and implement the following functions: and if so, reselecting the target character according to the relative probability of each character.
The processor 501 may also run a virtual character interaction program stored in the memory 502, and implement the following functions: according to a preset character-user behavior mapping relation, counting historical behaviors of the first account to obtain behavior frequency of each character; and correspondingly modifying the attribute value and/or the relative probability of each character according to the behavior frequency of each character.
The processor 501 may also run a virtual character interaction program stored in the memory 502, and implement the following functions: receiving a character modification instruction input by a first account; and correspondingly modifying the attribute value and/or the relative probability of the specified character according to the character modification instruction.
The processor 501 may also run a virtual character interaction program stored in the memory 502, and implement the following functions: receiving a reward and punishment instruction for the interaction behavior input by the first account; and modifying the attribute value and/or the relative probability of the target character according to the reward and punishment instruction.
The processor 501 may also run a virtual character interaction program stored in the memory 502, and implement the following functions: and displaying the interactive behaviors in the process of executing the interactive behaviors.
The processor 501 may also run a virtual character interaction program stored in the memory 502, and implement the following functions: and determining the result of the interaction behavior and displaying the result.
The processor 501 may also run a virtual character interaction program stored in the memory 502, and implement the following functions: and creating a virtual role under the first account, and configuring the attribute information.
The processor 501 may also run a virtual character interaction program stored in the memory 502, and implement the following functions: selecting a leading character from preset character categories; and acquiring an initial attribute value preset by the leading character, and configuring attribute information of the virtual role of the first account.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the virtual character interaction methods provided by the embodiments of the present invention. For example, the instructions may perform the steps of:
screening user accounts of a preset category from a user information base to obtain a candidate user group;
screening user accounts interested by the first account from the candidate user group to obtain a second account, and determining a virtual role subordinate to the second account as a second virtual role;
determining a virtual role under a first account as a first virtual role, and acquiring attribute information of the first virtual role;
determining the target behavior of the first virtual role according to the attribute information of the first virtual role;
and executing the interaction behavior between the first virtual character and the second virtual character according to the target behavior.
In some embodiments, the instructions may further perform the steps of: normalizing a plurality of character attribute values included in the attribute information, and calculating to obtain the relative probability of each character; determining a target character according to the relative probability of each character; and extracting the behavior corresponding to the target character from a preset behavior library to serve as the target behavior of the first virtual role.
In some embodiments, the instructions may further perform the steps of: extracting a role behavior corresponding to the target character from a preset behavior library according to a preset character-role behavior mapping relation; determining whether the role behaviors corresponding to the target characters have unexecuted preposed behaviors or not; and if the target behavior does not exist, determining the role behavior corresponding to the target character as the target behavior of the first virtual role.
In some embodiments, the instructions may further perform the steps of: and if so, reselecting the target character according to the relative probability of each character.
In some embodiments, the instructions may further perform the steps of: according to a preset character-user behavior mapping relation, counting historical behaviors of the first account to obtain behavior frequency of each character; and correspondingly modifying the attribute value and/or the relative probability of each character according to the behavior frequency of each character.
In some embodiments, the instructions may further perform the steps of: receiving a character modification instruction input by a first account; and correspondingly modifying the attribute value and/or the relative probability of the specified character according to the character modification instruction.
In some embodiments, the instructions may further perform the steps of: receiving a reward and punishment instruction for the interaction behavior input by the first account; and modifying the attribute value and/or the relative probability of the target character according to the reward and punishment instruction.
In some embodiments, the instructions may further perform the steps of: and displaying the interactive behaviors in the process of executing the interactive behaviors.
In some embodiments, the instructions may further perform the steps of: and determining the result of the interaction behavior and displaying the result.
In some embodiments, the instructions may further perform the steps of: and creating a virtual role under the first account, and configuring the attribute information.
In some embodiments, the instructions may further perform the steps of: selecting a leading character from preset character categories; and acquiring an initial attribute value preset by the leading character, and configuring attribute information of the virtual role of the first account.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any virtual character interaction method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any virtual character interaction method provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The virtual character interaction method, device and storage medium provided by the embodiment of the present invention are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (11)
1. A virtual character interaction method is characterized by comprising the following steps:
screening user accounts of a preset category from a user information base to obtain a candidate user group;
screening user accounts interested by the first account from the candidate user group to obtain a second account, and determining the virtual role subordinate to the second account as a second virtual role;
determining that the virtual role under the first account is a first virtual role, and acquiring attribute information of the first virtual role;
determining the target behavior of the first virtual role according to the attribute information of the first virtual role;
executing an interaction behavior between the first virtual character and the second virtual character according to the target behavior;
wherein the step of determining the target behavior of the first virtual character according to the attribute information of the first virtual character comprises:
normalizing the attribute values of the multiple characters included in the attribute information, and calculating to obtain the relative probability of each character;
determining a target character according to the relative probability of each character;
and extracting the behavior corresponding to the target character from a preset behavior library to serve as the target behavior of the first virtual role.
2. The method as claimed in claim 1, wherein the extracting, in a preset behavior library, the behavior corresponding to the target character as the target behavior of the first virtual character includes:
extracting the role behavior corresponding to the target character from a preset behavior library according to a preset character-role behavior mapping relation;
determining whether the role behaviors corresponding to the target characters have unexecuted preposed behaviors or not;
and if the target character does not exist, determining the role behavior corresponding to the target character as the target behavior of the first virtual role.
3. The method of claim 2, wherein determining whether there is an unexecuted pre-action for the role action corresponding to the target character thereafter further comprises:
and if so, reselecting the target character according to the relative probability of each character.
4. The method of claim 1, wherein said determining a target character based on the relative probabilities of said characters further comprises:
according to a preset character-user behavior mapping relation, counting the historical behavior of the first account to obtain the behavior frequency of each character;
and correspondingly modifying the attribute value and/or the relative probability of each character according to the behavior frequency of each character.
5. The method of claim 1, wherein said determining a target character based on the relative probabilities of said characters further comprises:
receiving a character modification instruction input by the first account;
and correspondingly modifying the attribute value and/or the relative probability of the specified character according to the character modification instruction.
6. The method of claim 1, wherein the performing the interaction between the first virtual character and the second virtual character according to the target behavior further comprises:
receiving a reward and punishment instruction of the interaction behavior input by the first account;
and modifying the attribute value and/or the relative probability of the target character according to the reward and punishment instruction.
7. The method of claim 1, wherein the performing the interactive behavior between the first virtual character and the second virtual character further comprises:
determining a result of the interaction behavior and displaying the result.
8. The method of any one of claims 1-7, further comprising:
and creating a virtual role under the first account, and configuring attribute information.
9. The method of claim 8, wherein configuring the attribute information comprises:
selecting a leading character from preset character categories;
and acquiring an initial attribute value preset by the leading character, and configuring attribute information of the first account virtual role.
10. An avatar interaction apparatus, comprising:
the candidate unit is used for screening user accounts of preset categories from the user information base to obtain a candidate user group;
the preference unit is used for screening user accounts which are interested in the first account from the candidate user group to obtain a second account, and determining the virtual role which is subordinate to the second account as a second virtual role;
the determining unit is used for determining that the virtual role under the first account is a first virtual role and acquiring attribute information of the first virtual role;
the behavior unit is used for carrying out normalization processing on a plurality of character attribute values included in the attribute information and calculating the relative probability of each character; determining a target character according to the relative probability of each character; extracting a behavior corresponding to the target character from a preset behavior library to serve as the target behavior of the first virtual role;
and the execution unit is used for executing the interaction behavior between the first virtual character and the second virtual character according to the target behavior.
11. A storage medium storing instructions adapted to be loaded by a processor to perform the steps of the avatar interaction method of any of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811640528.XA CN111385594B (en) | 2018-12-29 | 2018-12-29 | Virtual character interaction method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811640528.XA CN111385594B (en) | 2018-12-29 | 2018-12-29 | Virtual character interaction method, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111385594A CN111385594A (en) | 2020-07-07 |
CN111385594B true CN111385594B (en) | 2021-10-08 |
Family
ID=71219318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811640528.XA Active CN111385594B (en) | 2018-12-29 | 2018-12-29 | Virtual character interaction method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111385594B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112215062B (en) * | 2020-08-29 | 2024-09-13 | 上海量明科技发展有限公司 | Interaction method, client and system based on virtual intelligent roles |
CN114173173B (en) * | 2020-09-10 | 2024-06-11 | 腾讯数码(天津)有限公司 | Bullet screen information display method and device, storage medium and electronic equipment |
CN113256462B (en) * | 2021-05-20 | 2022-03-18 | 蓝海领航电子竞技(山东)有限公司 | Cloud computing-based electronic contest education system |
CN113327311B (en) * | 2021-05-27 | 2024-03-29 | 百度在线网络技术(北京)有限公司 | Virtual character-based display method, device, equipment and storage medium |
CN113822973A (en) * | 2021-11-24 | 2021-12-21 | 支付宝(杭州)信息技术有限公司 | Method, apparatus, electronic device, medium, and program for operating avatar |
CN114520798A (en) * | 2021-12-23 | 2022-05-20 | 上海尚往网络科技有限公司 | Information processing method and device |
CN115174950A (en) * | 2022-07-01 | 2022-10-11 | 网易(杭州)网络有限公司 | Interaction control method and device in live broadcast, storage medium and electronic equipment |
CN115999156B (en) * | 2023-03-24 | 2023-06-30 | 深圳游禧科技有限公司 | Role control method, device, equipment and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160236096A1 (en) * | 2014-02-14 | 2016-08-18 | Michael Trzecieski | Wellness System For Interacting With A User |
CN106878390B (en) * | 2017-01-09 | 2020-07-28 | 北京奇虎科技有限公司 | Electronic pet interaction control method and device and wearable equipment |
CN108854074B (en) * | 2018-06-15 | 2021-08-24 | 北京奇虎科技有限公司 | Configuration method and device of electronic pet |
CN108888958B (en) * | 2018-06-22 | 2023-03-21 | 深圳市腾讯网络信息技术有限公司 | Virtual object control method, device, equipment and storage medium in virtual scene |
CN109091875A (en) * | 2018-08-06 | 2018-12-28 | 河南蜗跑电子科技有限公司 | A kind of exercise management system based on electronic pet |
-
2018
- 2018-12-29 CN CN201811640528.XA patent/CN111385594B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN111385594A (en) | 2020-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111385594B (en) | Virtual character interaction method, device and storage medium | |
CN106648283B (en) | A kind of barrage information processing method and server | |
CN105119809B (en) | dynamic information display method and device | |
DE202017105871U1 (en) | Actionable suggestions for activities | |
DE202017105550U1 (en) | Unified and intelligent message and quick adjustment system | |
CN104202718A (en) | Method and device for providing information for user | |
CN106202316A (en) | Merchandise news acquisition methods based on video and device | |
WO2015200350A1 (en) | Ranking and selecting images for display from a set of images | |
CN103718166A (en) | Information processing apparatus, information processing method, and computer program product | |
CN113825010B (en) | Live medal display method and device, storage medium and computer equipment | |
DE102011107992A1 (en) | System and method for logging to events based on keywords | |
CN114286156A (en) | Live broadcast interaction method and device, storage medium and computer equipment | |
CN109462769A (en) | Direct broadcasting room pendant display methods, device, terminal and computer-readable medium | |
US20130311556A1 (en) | System and Method for Generating Theme Based Dynamic Groups | |
EP2685695A1 (en) | Method, system and computer storage medium for displaying microblog wall | |
CN109376310A (en) | User's recommended method, device, electronic equipment and computer readable storage medium | |
CN112423143B (en) | Live broadcast message interaction method, device and storage medium | |
CN112422405A (en) | Message interaction method and device and electronic equipment | |
CN113784223A (en) | Live broadcast room transmission method, device, storage medium, computer equipment and system | |
CN111209067A (en) | Multimedia resource processing method and device, storage medium and computing equipment | |
CN113569138A (en) | Intelligent device control method and device, electronic device and storage medium | |
WO2021097721A1 (en) | Information pushing method and apparatus, electronic device, and computer-readable medium | |
CN112286422B (en) | Information display method and device | |
CN114816597A (en) | Content display method and device and computer readable storage medium | |
CN114827701A (en) | Multimedia information 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 | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40025942 Country of ref document: HK |
|
GR01 | Patent grant | ||
GR01 | Patent grant |