Interactive method, device, electronic device and storage medium based on virtual characters
By responding to touch operations in MMORPG and other games to display interactive options and directly obtain and send interactive messages, the problem of cumbersome operation links is solved, and efficient human-computer interaction and immersive experience are achieved.
Patent Information
- Application Number
- CN202111626817.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-11-22
- Filing Date
- 2021-12-28
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2041-12-28
AI Technical Summary
In games such as MMORPG, when users interact with virtual characters of interest, the existing technology has cumbersome operation links, low human-computer interaction efficiency, and is difficult to meet the needs of instant interaction.
By displaying interactive options in response to a first touch operation in a virtual environment and obtaining and sending interactive messages after selecting an operation, the interactive process is simplified, including direct selection and sending of text and voice interactive options.
It shortens the operation link of instant interaction, improves the efficiency of human-computer interaction, provides a simple and efficient interaction method, and enhances the user's immersive experience.
Smart Images

Figure CN114272618B_ABST
Abstract
Description
[0001] This application claims priority to Chinese patent application No. 202111385772.8 filed on November 22, 2021, entitled “Virtual Character-Based Interactive Method, Device, Electronic Device and Storage Medium,” all contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computer technology, and in particular to a virtual character-based interaction method, device, electronic device, and storage medium. Background Art
[0003] With the advancement of computer technology and the diversification of terminal functions, the types of games available on terminals are increasing. Among them, MMORPGs (Massive Multiplayer Online Role-Playing Games) are a popular type of game. MMORPGs provide a virtual environment that persists when the user leaves the game. Users must assume the role of a virtual character within the virtual environment and control their actions.
[0004] In current MMORPGs, when users are attracted by the level, equipment, skins, and actions of other users' virtual characters, they have a strong desire for real-time interaction. Typically, users can click on the 3D model of a nearby virtual character of interest to pop up a list of nearby virtual characters on the terminal screen. After finding the corresponding list item in the virtual character list, the user clicks on it, which further pops up a pop-up window with the virtual character's details. The pop-up window provides a private chat option, which then allows users to initiate interaction with the virtual character. In this interactive method, the user's operation chain for initiating interaction with the virtual character of interest is long, and the human-computer interaction efficiency is low. Summary of the Invention
[0005] The embodiments of the present application provide a method, device, electronic device, and storage medium for interacting with virtual characters, which can shorten the operational link for initiating interactions with interested virtual characters and improve the efficiency of human-computer interaction. The technical solution is as follows:
[0006] In one aspect, a virtual character-based interaction method is provided, the method comprising:
[0007] In response to a first touch operation on any virtual character in the virtual environment, displaying an interaction option within a target range of the virtual character, the interaction option being used to initiate interaction with the virtual character;
[0008] In response to a selection operation on the interactive option, obtaining an input interactive message;
[0009] The interactive message is sent to a terminal corresponding to the virtual character.
[0010] In one aspect, a virtual character-based interaction method is provided, the method comprising:
[0011] receiving a voice interaction message associated with a target virtual character in the virtual environment;
[0012] When the instant play permission is enabled in the virtual environment, playing the voice interactive message;
[0013] In the virtual environment, playback prompt information for the voice interaction message is displayed, and the playback prompt information is used to prompt the target virtual character who initiated the voice interaction message.
[0014] In one aspect, a virtual character-based interactive device is provided, comprising:
[0015] a display module, configured to display, in response to a first touch operation on any virtual character in the virtual environment, interaction options within a target range of the virtual character, the interaction options being used to initiate interaction with the virtual character;
[0016] an acquisition module, configured to acquire an input interactive message in response to a selection operation on the interactive option;
[0017] The sending module is used to send the interactive message to the terminal corresponding to the virtual character.
[0018] In one possible implementation, the display module is used to:
[0019] At least one of a text interaction option or a voice interaction option is displayed within the target range of the virtual character, the text interaction option is used to send a text interaction message to the virtual character, and the voice interaction option is used to send a voice interaction message to the virtual character.
[0020] In one possible implementation, the acquisition module includes:
[0021] an acquisition unit, configured to display a conversation interface with the virtual character in response to a selection operation on the text interaction option, and acquire a text interaction message input based on the conversation interface; or
[0022] A recording unit is used to record the input voice interaction message in response to a selection operation on the voice interaction option when the voice interaction option is in a selected state.
[0023] In one possible implementation, the recording unit is further configured to:
[0024] When the voice interaction option switches from the selected state to the unselected state, stop recording the voice interaction message; or
[0025] In response to a sliding operation from the voice interaction option to a target position, the recorded voice interaction message is deleted, and the target position is any position that is greater than a distance threshold from the voice interaction option.
[0026] In a possible implementation manner, the first touch operation is a pressing operation with a pressing duration greater than a target duration;
[0027] The display module is used for:
[0028] When the virtual character is in a pressed state, displaying the interactive option; or,
[0029] When the virtual character switches from the pressed state to the unpressed state, the interactive option is canceled.
[0030] In a possible implementation manner, the first touch operation is a pressing operation with a pressing duration greater than a target duration;
[0031] The acquisition module is used to:
[0032] When the virtual character is in a pressed state, the input interactive message is acquired in response to a sliding operation from the pressing point of the pressing operation to the interactive option.
[0033] In one possible implementation, the display module is further configured to:
[0034] In response to a selection operation of the interactive option, displaying a first prompt effect based on the virtual character, wherein the first prompt effect is used to prompt that an interactive message initiated to the virtual character is being obtained;
[0035] When the interactive message is completely acquired, the first prompt effect is canceled.
[0036] In one possible implementation, the display module is further configured to:
[0037] In response to a second touch operation on the virtual character, displaying a virtual character list, wherein the virtual character list displays one or more list items, each list item corresponding to a virtual character that is in the virtual environment and supports interaction;
[0038] Based on the target list item corresponding to the virtual character in the virtual character list, an interactive control for initiating interaction with the virtual character is displayed.
[0039] In a possible implementation, the target list item and other list items in the virtual character list are displayed in different ways, and the other list items refer to list items other than the target list item.
[0040] In one possible implementation, the interactive control is a recording control, and the device further includes:
[0041] A recording module, configured to record an input voice interaction message in response to a pressing operation on the recording control;
[0042] The sending module is further configured to send the voice interaction message to the terminal corresponding to the virtual character when the recording control switches from a pressed state to a non-pressed state.
[0043] In a possible implementation manner, the second touch operation is a pressing operation with a pressing duration less than or equal to a target duration.
[0044] In one aspect, a virtual character-based interactive device is provided, comprising:
[0045] A receiving module, configured to receive a voice interaction message associated with a target virtual character in a virtual environment;
[0046] A playback module, configured to play the voice interaction message when the instant playback permission is enabled in the virtual environment;
[0047] The display module is used to display the playback prompt information of the voice interaction message in the virtual environment, and the playback prompt information is used to prompt the target virtual character who initiated the voice interaction message.
[0048] In one possible implementation, the device further includes:
[0049] A storage module is used to store the voice interaction message when the instant playback permission is closed in the virtual environment; wherein the display module is also used to display the playback option of the voice interaction message in the conversation interface when an opening operation of the conversation interface with the target virtual character is detected.
[0050] In one possible implementation, the display module is further configured to:
[0051] When playing the voice interaction message, displaying a second prompt effect based on the target virtual character, wherein the second prompt effect is used to prompt the target virtual character that initiated the voice interaction message;
[0052] When the voice interaction message is finished playing, the second prompt effect is canceled.
[0053] On the one hand, an electronic device is provided, which includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the at least one computer program is loaded and executed by the one or more processors to implement a virtual character-based interaction method as any possible implementation method described above.
[0054] On the one hand, a storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the virtual character-based interaction method according to any possible implementation manner described above.
[0055] In one aspect, a computer program product or computer program is provided, comprising one or more program codes stored in a computer-readable storage medium. One or more processors of an electronic device can read the one or more program codes from the computer-readable storage medium, and the one or more processors can execute the one or more program codes, so that the electronic device can perform any of the possible implementations of the virtual character-based interaction method described above.
[0056] The beneficial effects of the technical solutions provided in the embodiments of the present application include at least:
[0057] By popping up an interactive option when the first touch operation on the virtual character is detected, and obtaining and sending the input interactive message when the selection operation on the interactive option is detected, when there is a need to interact with the virtual character, there is no need to go through the tedious and lengthy operation chain of clicking on the virtual character, clicking on the list item, selecting the corresponding avatar, and selecting the private chat function option in the personal details panel. Instead, interaction can be initiated directly based on the virtual character and the pop-up interactive option in the virtual environment, providing a simple, efficient and smooth interactive operation method, shortening the operation chain of instant interaction, improving the efficiency of human-computer interaction, and conducive to providing an immersive user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0059] Figure 1 This is a schematic diagram of an implementation environment of a virtual character-based interactive method provided in an embodiment of the present application;
[0060] Figure 2This is a flowchart of a virtual character-based interaction method provided in an embodiment of the present application;
[0061] Figure 3 This is a flowchart of a virtual character-based interaction method provided in an embodiment of the present application;
[0062] Figure 4 This is a schematic diagram of an interface for displaying interactive options in a virtual environment provided by an embodiment of the present application;
[0063] Figure 5 This is a schematic diagram of an interface for displaying a first prompt special effect in a virtual environment provided by an embodiment of the present application;
[0064] Figure 6 This is a flowchart of a virtual character-based interaction method provided in an embodiment of the present application;
[0065] Figure 7 This is a schematic diagram of an interface for displaying a list of virtual characters in a virtual environment, provided by an embodiment of the present application;
[0066] Figure 8 This is a flow chart of an interactive method based on a virtual character provided in an embodiment of the present application;
[0067] Figure 9 This is a schematic diagram of an interface for displaying a second prompt effect in a virtual environment provided by an embodiment of the present application;
[0068] Figure 10 This is a principle flow chart of a voice intercom initiator terminal provided in an embodiment of the present application;
[0069] Figure 11 This is a principle flow chart of a voice intercom receiving terminal provided in an embodiment of the present application;
[0070] Figure 12 1 is a schematic structural diagram of an interactive device based on a virtual character provided in an embodiment of the present application;
[0071] Figure 13 1 is a schematic structural diagram of an interactive device based on a virtual character provided in an embodiment of the present application;
[0072] Figure 14 This is a schematic diagram of the structure of a terminal provided in an embodiment of the present application;
[0073] Figure 15 This is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0074] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0075] In this application, the terms "first", "second", etc. are used to distinguish identical or similar items with substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there any limitation on the quantity and execution order.
[0076] In the present application, the term "at least one" means one or more, and the term "plurality" means two or more. For example, a plurality of first positions means two or more first positions.
[0077] The following explains the terms used in this application.
[0078] Virtual environment: is a virtual environment displayed (or provided) when an application is running on a terminal. The virtual environment can be a simulation of the real world, a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual environment can be any of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, or a three-dimensional virtual environment. The embodiment of the present application does not limit the dimensions of the virtual environment. For example, the virtual environment may include the sky, land, ocean, etc., and the land may include environmental elements such as deserts and cities. The user can control the virtual character to move in the virtual environment. Optionally, the virtual environment can also be used for virtual environment interaction between at least two virtual characters, and there are virtual resources in the virtual environment that can be used by at least two virtual characters.
[0079] A virtual character refers to an active object in a virtual environment. This active object can be a virtual person, virtual animal, virtual sprite, anime character, etc., such as a person, animal, plant, oil drum, wall, stone, etc. displayed in the virtual environment. This virtual character can be a virtual image that represents the user in the virtual environment. A virtual environment can include multiple virtual characters, each with its own shape and volume within the virtual environment, occupying a portion of the space within the virtual environment. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual character can be a three-dimensional model, which can be a three-dimensional character constructed based on three-dimensional human skeleton technology. The same virtual character can display different appearances by wearing different skins, costumes, accessories, equipment, etc. In some embodiments, the virtual character can also be implemented using a 2.5D or 2D model, which is not limited in this embodiment of the present application. Optionally, the virtual character is a player character controlled by the user through operations on the client, or a non-player character (NPC) set in the virtual environment.
[0080] MMORPG (Massive Multiplayer Online Role-Playing Game): An MMORPG is both an online game and a role-playing game. In all role-playing games, users need to play a virtual character and control many activities of the virtual character, including but not limited to: running, jumping, crawling, bending forward on land, etc., flying, free falling, gliding, or riding flying props to explore the virtual environment in the sky, etc., and swimming, floating, diving, and surfacing in the ocean. The embodiments of this application do not specifically limit the activities that virtual characters in MMORPGs can perform.
[0081] It should be noted that the difference between MMORPG and stand-alone games and other small-scale multi-player role-playing games is that the virtual environment provided by MMORPG is a persistent virtual world. That is, the persistence is reflected in the fact that this virtual world will not disappear because the user leaves the game. Here, "disappear" means that although the user closes the game client and the virtual environment is no longer displayed and rendered, the virtual world based on the virtual environment will not cease to exist. The virtual world will continue to exist and evolve in the host server provided by the online game operator.
[0082] For example, while shooting games provide a virtual environment for virtual characters to interact with, this virtual environment is specific to a single match (often serving as an interactive scene map that can be reused in the next match). Once the user closes the game client, the virtual environment ceases to exist, and the server does not need to maintain or evolve it. However, MMORPGs are different. The virtual environment they provide is the carrier of a virtual world. This virtual world is constructed based on the MMORPG's game setting (such as the world view, character concept, plot line, or storyline), and it evolves continuously with version updates (usually with expansion pack releases, plot updates, and new map unlocks). The virtual characters that users play are created within the virtual world and conform to the character concept. Even if the user goes offline, the evolution of the virtual world continues. In MMORPGs, the user's virtual character's data (such as level, appearance, class, equipment, etc.) is stored on the game server, allowing the user to inherit the progress of their virtual character development from their last offline session each time they log online.
[0083] In MMORPGs, virtual characters typically possess different virtual skills based on the user's chosen profession (or sect, faction, etc.). For example, the virtual skills may include attack skills, defense skills, healing skills, auxiliary skills, and killing skills. In some embodiments, the virtual character can only unlock the virtual skills corresponding to the current level when the level reaches a certain limit.
[0084] The virtual character-based interaction method involved in the embodiments of the present application can be applied to various MMORPG games or other games with strong real-time interaction requirements, and can also be applied to some virtual social scenarios. After the user starts the game client, the various virtual characters available for interaction in the current perspective are displayed in the virtual environment rendered by the game client (more virtual characters can be seen by adjusting the perspective). If the user wants to interact with a virtual character in the current perspective, there is no need to go through the tedious and lengthy operation chain of clicking on the virtual character, clicking on the list item, selecting the corresponding avatar, and selecting the private chat function option in the personal details panel. Instead, after performing the first touch operation on the virtual character, an interaction option will pop up around the virtual character. Only by selecting the interaction option can the interaction be initiated to form a game team or make friends, etc., thereby providing a simple and efficient interactive operation method, shortening the real-time interaction operation chain, and being able to meet the real-time interaction needs while eliminating the need for the user to interrupt the activities (such as tasks) that the virtual character is currently carrying out in the current virtual environment, which is conducive to providing an immersive gaming experience.
[0085] The following is an introduction to the system architecture involved in this application.
[0086] Figure 1 This is a schematic diagram of an implementation environment of an interactive method based on a virtual character provided in an embodiment of the present application. Figure 1 The implementation environment includes: a first terminal 120, a server 140 and a second terminal 160.
[0087] The first terminal 120 has an application installed and running that supports a virtual environment. The application can be any one of an MMORPG, a MOBA (Multiplayer Online Battle Arena) game, a first-person shooter (FPS), a third-person shooter, a virtual reality application, a three-dimensional map program, or a multiplayer machine-based survival game. The first terminal 120 can be a terminal used by a first user, who uses the first terminal 120 to operate a first virtual character in a virtual environment to perform activities, including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, flying, climbing, and releasing virtual skills. Illustratively, the first virtual character is a first virtual person, such as a simulated person or an anime person.
[0088] Server 140 may include at least one of a single server, multiple servers, a cloud computing platform, or a virtualization center. Server 140 provides backend services for applications that support virtual environments. Optionally, server 140 may perform primary computing tasks, while first terminal 120 and second terminal 160 may perform secondary computing tasks. Alternatively, server 140 may perform secondary computing tasks, while first terminal 120 and second terminal 160 may perform primary computing tasks. Alternatively, server 140, first terminal 120, and second terminal 160 may collaborate on computing tasks using a distributed computing architecture.
[0089] Second terminal 160 has an application installed and running that supports a virtual environment. This application can be any of a MMORPG, MOBA, FPS, third-person shooter, virtual reality application, 3D map program, or multiplayer survival game. Second terminal 160 can be used by a second user, who uses second terminal 160 to control a second virtual character in the virtual environment to perform activities, including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, flying, climbing, and performing virtual skills. Illustratively, the second virtual character is a second avatar, such as a simulated or animated character.
[0090] The first terminal 120 and the second terminal 160 may be directly or indirectly connected to the server 140 via wired or wireless communication, and the embodiment of the present application does not limit the connection method.
[0091] In some embodiments, the first virtual character controlled by the first terminal 120 and the second virtual character controlled by the second terminal 160 are in the same virtual environment, and the first virtual character can interact with the second virtual character in the virtual environment. The first virtual character and the second virtual character can be in a hostile relationship. For example, the first virtual character and the second virtual character can belong to different teams and camps. The virtual characters in the hostile relationship can interact by releasing virtual skills to each other, for example, the first virtual character releases an attack skill to the second virtual character. In other embodiments, the first virtual character and the second virtual character can also be teammates. For example, the first virtual character and the second virtual character can belong to the same team, the same organization, have a friend relationship, or have temporary communication permissions. In this case, the first virtual character can release auxiliary skills to the second virtual character.
[0092] The above-mentioned server 140 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0093] The above-mentioned first terminal 120 or second terminal 160 can be a smart phone, a smart handheld game console, a portable game device, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a car terminal, a car game device, an MP3 (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) player, an e-book reader, etc., but is not limited to these.
[0094] It should be noted that the applications installed on the first terminal 120 and the second terminal 160 can be the same, or the applications installed on the two terminals can be the same type of applications on different operating system platforms. The first terminal 120 can generally refer to one of multiple terminals, and the second terminal 160 can generally refer to one of multiple terminals. This embodiment only uses the first terminal 120 and the second terminal 160 as an example. The device types of the first terminal 120 and the second terminal 160 can be the same or different. Those skilled in the art will appreciate that the number of the above-mentioned terminals can be more or less. For example, the above-mentioned terminal can be only one, or the above-mentioned terminals can be dozens, hundreds, or even more. The embodiments of this application do not limit the number and device types of terminals.
[0095] Figure 2 This is a flowchart of a virtual character-based interactive method provided by an embodiment of the present application. Figure 2 This embodiment is executed by an electronic device and is described by taking the electronic device as a target terminal. The target terminal may be the first terminal 120 or the second terminal 160 shown in the above implementation environment. This embodiment includes the following steps:
[0096] 201. In response to a first touch operation on any virtual character in a virtual environment, a target terminal displays an interaction option within a target range of the virtual character, where the interaction option is used to initiate interaction with the virtual character.
[0097] The target terminal refers to an electronic device used by the target user, such as, but not limited to, a smartphone, a handheld game console, a portable gaming device, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smartwatch, etc. An application supporting a virtual environment is installed and running on the target terminal. Schematically, the application refers to a game application or a game client, such as an MMORPG game client. This embodiment of the present application does not specifically limit this.
[0098] In some embodiments, the target user starts the game client on the target terminal and logs in the target user's game account in the game client. Then, the game client loads the virtual environment to display the virtual environment in the game client. In the embodiments of the present application, the MMORPG game client will be used as an example for illustration, but this should not constitute a limitation on the game type corresponding to the game client.
[0099] In some embodiments, the virtual character played by the target user in the game client is referred to as the target virtual character. The target virtual character is a virtual character created based on the character view within the MMORPG virtual world constructed using the virtual environment as a carrier. Furthermore, based on the worldview setting of the MMORPG virtual world, different virtual characters may belong to different factions, forces, professions, or sects. For example, a magic virtual world may provide professions such as elves, magicians, priests, and knights. Another example is a martial arts virtual world may provide professions such as swordsmen, swordsmen, assassins, and physicians. The present embodiment of the application does not specifically limit the game background setting of the MMORPG. Optionally, the target user can control the target virtual character to engage in various game modes within the virtual environment, such as participating in main quests, participating in side quests, challenging dungeons, engaging in player-to-player PK (Player Killing, which refers to exchanges, duels, fights, and group confrontations between players), chatting and socializing, and managing a home.
[0100] In some embodiments, MMORPGs typically set up a persistent virtual world, in which there may be a large number of map scenes. Therefore, the server typically caches the target scene map where the target user's game account was located when it last went offline. On this basis, when loading the virtual environment, the game client does not need to load all scene maps in the virtual world at once, but only needs to obtain the map ID (Identification) of the target scene map cached for the game account from the server, and then load the portion of the virtual environment corresponding to the map ID. Subsequently, if the target user controls the target virtual character to switch to other scene maps, the corresponding portion of the virtual environment can be loaded again when switching, wherein the other scene map refers to all scene maps in the virtual world except the target scene map.
[0101] It should be noted that the above-mentioned method of loading only the portion of the virtual environment corresponding to the target scene map when the game was last offline at startup is to speed up the startup speed of the game client and avoid users waiting for a long time. Optionally, at startup, only the portion of the virtual environment corresponding to the pre-set scene map (for example, a main city map set under the MMORPG world view) can be loaded. In this way, there is no need to access the map ID of the target scene map from the server, which can save the communication overhead of the target terminal. Optionally, it also supports loading all virtual environments corresponding to all scene maps at one time at startup, thereby avoiding the need to reload a new portion of the virtual environment from the server every time the target user switches the scene map, which can save the communication overhead of the target terminal.
[0102] In some embodiments, since MMORPG is an online network game, when displaying the virtual environment, it is also necessary to display in the virtual environment one or more virtual characters and NPCs that are currently in the virtual environment and within the field of view of the target virtual character. Therefore, when loading the virtual environment, it is also necessary to load the corresponding one or more virtual characters and NPCs. In other words, when pulling the multimedia resources of the virtual environment from the server, it is also necessary to pull the multimedia resources of the one or more virtual characters and NPCs. Then, the virtual environment, the one or more virtual characters and the NPC's respective multimedia resources are rendered using the rendering engine. Finally, the virtual environment can be displayed in the game client, and the one or more virtual characters and NPCs are displayed in the virtual environment. It should be noted that if there is no NPC within the field of view of the target virtual character, then there is no need to display the NPC.
[0103] In some embodiments, when the target terminal displays a virtual environment and one or more virtual characters are displayed in the virtual environment, if the target user has an interactive demand for any of the one or more virtual characters, the target user can trigger the display of interactive options by performing a first touch operation on any of the virtual characters, wherein the interactive demand includes but is not limited to: adding friends, forming a game team, real-time voice intercom, sending private messages, etc., and the embodiments of the present disclosure do not specifically limit this.
[0104] Optionally, the operation type of the first touch operation includes but is not limited to: a click operation, a double-click operation, a press operation, a sliding operation based on a virtual character in a specified direction (such as sliding left, sliding right, sliding up, sliding down, etc.), etc. The embodiment of the present application does not specifically limit the operation type of the first touch operation. Schematically, the first touch operation is a pressing operation with a pressing duration greater than a target duration, wherein the target duration is any value greater than 0, for example, the target duration is 0.4s (seconds), and can also be set to 0.5s, 1s, etc.
[0105] In an exemplary scenario, taking the first touch operation as a pressing operation with a pressing duration greater than the target duration as an example, the target terminal senses the pressure signal applied by the target user to the terminal screen through a pressure sensor, and determines the screen coordinates of the pressure point of the pressure signal. If the screen coordinates of the pressure point are located in the display area corresponding to the character model of any virtual character on the terminal screen, it is determined that the target user has performed a pressing operation on any of the virtual characters. Then, the pressing duration of the pressing operation (that is, the duration of the pressure signal) is obtained through the pressure sensor. When the pressing duration exceeds the target duration, an interactive option is displayed within the target range of the pressed virtual character. The interactive option includes at least one of a text interactive option or a voice interactive option, so that the target user can directly initiate an interaction with the pressed virtual character through the pop-up interactive option.
[0106] Optionally, the target range refers to a range in which the distance from the character model of the virtual character is less than a first distance, and the first distance is a value greater than or equal to 0; or, the target range refers to a range extending in a specified direction of the character model of the virtual character to a maximum of a second distance, and the second distance is a value greater than or equal to 0; or, if it is a three-dimensional character model, the target range refers to the collision detection range of the three-dimensional character model of the virtual character. The embodiment of the present application does not specifically limit the target range.
[0107] In some embodiments, the target terminal determines the target range of the virtual character being touched, then loads the multimedia resources of the interactive option, renders the multimedia resources of the interactive option using a rendering engine, and then displays the interactive option within the target range. Schematically, the interactive option is displayed at a specified distance above the head of the virtual character, where the specified distance is a value greater than or equal to 0. It should be noted that since the game client generally supports multiple ways of interacting with the virtual character, the number of interactive options triggered for display may be one or more. The embodiment of the present application does not specifically limit the number of interactive options triggered for display. For example, one text interactive option and one voice interactive option may be displayed within the target range, or only a text interactive option may be displayed, or only a voice interactive option may be displayed, etc. The embodiment of the present application does not specifically limit this.
[0108] 202. The target terminal obtains an input interactive message in response to a selection operation on the interactive option.
[0109] In some embodiments, after an interactive option pops up within the target range of the virtual character, the target user can trigger the process of obtaining the interactive message by selecting the interactive option. Optionally, the interactive message is input by the target user into the target terminal, or the target terminal provides the target user with one or more preset interactive messages. For example, the target user can trigger the display of one or more preset interactive messages by clicking on the menu bar of the interactive option, and then select a preset interactive message as the interactive message for this time. This can save the target user the time of inputting the interactive message.
[0110] Optionally, the operation type of the selection operation includes but is not limited to: a click operation, a double-click operation, a press operation, a sliding operation in a specified direction based on the interactive option (such as swiping left, swiping right, swiping up, swiping down, etc.), etc. The embodiment of the present application does not specifically limit the operation type of the selection operation. Schematically, the selection operation is a sliding operation from the virtual character to the interactive option.
[0111] In an exemplary scenario, the selection operation is a sliding operation from a virtual character to an interactive option. The target terminal senses the pressure signal applied by the target user to the terminal screen through a pressure sensor, and determines the screen coordinates of the pressure point of the pressure signal. If the pressure point of the pressure signal changes dynamically, then a change trajectory of the pressure point (i.e., the sliding trajectory of the sliding operation) can be determined on the terminal screen. Then, the starting screen coordinates and the end screen coordinates of the change trajectory are obtained. If the starting screen coordinates are located in the corresponding display area of the character model of the virtual character on the terminal screen, and at the same time, the end screen coordinates are located in the corresponding display area of the interactive option on the terminal screen, then it is determined that the sliding operation of the target user from the virtual character to the interactive option is detected. Then, the target user can input an interactive message of corresponding form to the target terminal according to the selected interactive option (for example, input a text interactive message when selecting a text interactive option, and input a voice interactive message when selecting a voice interactive option), and the target terminal obtains the interactive message input by the target user.
[0112] 203. The target terminal sends the interactive message to the terminal corresponding to the virtual character.
[0113] In some embodiments, after the target terminal obtains the interactive message, it uses the transmission control protocol supported by the game server to encapsulate the interactive message and the character ID of the pressed virtual character, and sends the encapsulated message to the game server. After the game server receives the encapsulated message, it parses the character ID carried in the message and forwards the encapsulated message to the terminal bound to the character ID, or only forwards the interactive message in the message. The embodiments of the present application do not specifically limit this.
[0114] Optionally, before the interactive message and the role ID are encapsulated, a compression algorithm can be used to compress the interactive message. Optionally, before the interactive message and the role ID are encapsulated, an encryption algorithm can be used to encrypt the interactive message. The encryption algorithm includes a symmetric encryption algorithm or an asymmetric encryption algorithm. The embodiments of the present disclosure do not specifically limit which compression algorithm or encryption algorithm is used.
[0115] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.
[0116] The method provided in the embodiment of the present application, by popping up an interaction option when a first touch operation on a virtual character is detected, and obtaining and sending an input interaction message when a selection operation on the interaction option is detected, so that when there is a need to interact with the virtual character, there is no need to go through the tedious and lengthy operation chain of clicking on the virtual character, clicking on the list item, selecting the corresponding avatar, and selecting the private chat function option in the personal details panel. Instead, interaction can be initiated directly based on the virtual character and the pop-up interaction option in the virtual environment, providing a simple, efficient and smooth interactive operation method, shortening the operation chain of instant interaction, improving the efficiency of human-computer interaction, and facilitating an immersive user experience.
[0117] In the above embodiment, the interaction process based on the virtual character is briefly introduced. In the embodiment of the present application, the pressing operation will trigger the display of text interaction options and voice interaction options as an example to introduce the overall interaction process in detail, which will be explained below.
[0118] Figure 3 This is a flowchart of a virtual character-based interactive method provided by an embodiment of the present application. Figure 3 This embodiment is executed by an electronic device and is described by taking the electronic device as a target terminal. The target terminal may be the first terminal 120 or the second terminal 160 shown in the above implementation environment. This embodiment includes the following steps:
[0119] 301. A target terminal displays a virtual environment, wherein one or more virtual characters are displayed in the virtual environment.
[0120] The target terminal refers to the electronic device used by the target user, and the virtual character played by the target user in the virtual environment is called the target virtual character.
[0121] In some embodiments, the target user enables a client (such as a game client) that supports a virtual environment on the target terminal, pulls the multimedia resources of the virtual environment from the server, and pulls the multimedia resources of one or more virtual characters that are currently in the virtual environment and within the field of view of the target virtual character. If there are one or more NPCs within the field of view, then it is also necessary to pull the multimedia resources of the one or more NPCs from the server. Then, the virtual environment, the one or more virtual characters, and the multimedia resources of the one or more NPCs are rendered using a rendering engine, so that the virtual environment can be displayed in the client, and the one or more virtual characters and one or more NPCs are displayed in the virtual environment. It should be noted that if there is no NPC within the field of view of the target virtual character, then there is no need to display the NPC. Among them, the one or more virtual characters refer to virtual characters played by other users, and other users refer to users other than the target user.
[0122] 302. In response to a first touch operation on any virtual character in the virtual environment, the target terminal displays text interaction options and voice interaction options within a target range of the virtual character.
[0123] Among them, the text interaction option is used to send text interaction messages to the virtual character, and the voice interaction option is used to send voice interaction messages to the virtual character.
[0124] Optionally, the operation type of the first touch operation includes but is not limited to: a click operation, a double-click operation, a press operation, a sliding operation based on a virtual character in a specified direction (such as swiping left, swiping right, swiping up, swiping down, etc.), etc. The embodiment of the present application does not specifically limit the operation type of the first touch operation. Schematically, the first touch operation is a pressing operation with a pressing duration greater than a target duration, wherein the target duration is any value greater than 0, for example, the target duration is 0.4s, and can also be set to 0.5s, 1s, etc.
[0125] In an exemplary scenario, the first touch operation is a pressing operation in which the pressing duration is greater than the target duration. The target terminal senses the pressure signal applied by the target user to the terminal screen through a pressure sensor, and determines the screen coordinates of the pressure point of the pressure signal. If the screen coordinates of the pressure point are located in the display area corresponding to the character model of any virtual character on the terminal screen, it is determined that the target user has performed a pressing operation on any of the virtual characters. Then, the pressing duration of the pressing operation (that is, the duration of the pressure signal) is obtained through the pressure sensor. When the pressing duration exceeds the target duration, at least one of the text interaction option or the voice interaction option is displayed within the target range of the pressed virtual character. The embodiment of the present application is illustrated by taking the simultaneous display of text interaction options and voice interaction options as an example. It is also possible to display only text interaction options or only voice interaction options. The embodiment of the present application does not specifically limit this.
[0126] Optionally, the target range refers to a range in which the distance from the character model of the virtual character is less than a first distance, and the first distance is a value greater than or equal to 0; or, the target range refers to a range extending in a specified direction of the character model of the virtual character to a maximum of a second distance, and the second distance is a value greater than or equal to 0; or, if it is a three-dimensional character model, the target range refers to the collision detection range of the three-dimensional character model of the virtual character. The embodiment of the present application does not specifically limit the target range.
[0127] In some embodiments, the target terminal determines a target range of the virtual character being touched, then loads the multimedia resources of the text interaction option and the voice interaction option, renders the multimedia resources of the text interaction option and the voice interaction option using a rendering engine, and then displays the text interaction option and the voice interaction option within the target range. Schematically, the text interaction option and the voice interaction option are displayed at a specified distance above the head of the virtual character, where the specified distance is a value greater than or equal to 0.
[0128] In an exemplary scenario, the first touch operation is a pressing operation in which the pressing duration is greater than the target duration. Since the pressure point applied by the target user when pressing the virtual character is usually not static, for example, there is a tendency to slide in a certain direction (as long as the pressure point of the pressing operation does not exceed the display area of the virtual character, it complies with the detection logic of the pressing operation of the virtual character). At this time, based on the changing trajectory of the pressure point, the corresponding target range can be determined in the direction extending along the end of the changing trajectory. In one example, the changing trajectory of the pressure point is a curve, but the entire changing trajectory is located in the display area of the virtual character. Therefore, it complies with the detection logic of the pressing operation of the virtual character. When the pressing duration is equal to the target duration, the target range is determined as: extending in the tangential direction of the end of the changing trajectory to the range within the second distance at most.
[0129] In an exemplary scenario, taking the first touch operation as an example of a sliding operation based on a virtual character in any direction, when the target terminal detects that the target user performs a sliding operation in any direction starting from the virtual character, the target terminal can determine the target range in the sliding direction based on the sliding direction of the sliding operation performed by the target user. For example, the target range can be determined as: a range extending in the sliding direction to a maximum of a second distance.
[0130] Optionally, both the text interaction option and the voice interaction option can be touched by the target user. For the sake of simplicity, the text interaction option and the voice interaction option are collectively referred to as interaction options, and the interaction option is used to initiate interaction with the virtual character. The shape of the interaction option includes but is not limited to: rectangle, circle, sector, arc, irregular shape, etc. The embodiment of the present application does not specifically limit the shape of the interaction option. Schematically, the shape of the text interaction option and the voice interaction option are both arc-shaped, and the curvature of the text interaction option and the voice interaction option match. Here, the curvature matching means that the corresponding circles of the two have the same center and the same radius.
[0131] Since in the above step 302, taking the interactive options including text interactive options and voice interactive options as an example, a possible implementation method for displaying the interactive options within the target range of the virtual character is provided, that is, when the target user performs a first touch operation on the virtual character, the interactive options will pop up around the virtual character (that is, within the target range), but because the interactive options themselves may cause a certain degree of occlusion to the virtual environment, when the first touch operation is a pressing operation with a pressing duration greater than the target duration, the interactive option can be displayed only when the virtual character is in a pressed state. In addition, when the virtual character switches from the pressed state to the unpressed state, the interactive option is canceled.
[0132] In the above process, since the interactive options are only displayed when the target user presses the virtual character, once the target user lets go (that is, the finger leaves the virtual character and no longer presses), the interactive options will be cancelled. This is equivalent to the target user long pressing the virtual character to trigger the display of the interactive options, and then needs to continue pressing to continue to display the interactive options. After the target user lets go, it means that there is no strong interactive or social demand for the virtual character, so the interactive options are cancelled to avoid the interactive options blocking the virtual environment.
[0133] In some embodiments, when the target user long presses the virtual character for a target time, the interactive options that pop up around the virtual character will not be cancelled because the target user lets go. In other words, once the interactive option is triggered and displayed, the target user can let go, that is, there is no need to keep pressing the virtual character. However, in this interactive mode, in order to prevent the interactive option from blocking the virtual environment for a long time, once the target user clicks any position in the virtual environment other than the virtual character, the interactive option can be cancelled. This is equivalent to the target user not having to keep pressing the interactive option to view the interactive option, and can let go at any time after the interactive option is triggered. After letting go, if you do not want to see the interactive option or the previous pressing operation was caused by an accidental touch, you can cancel the display of the interactive option by clicking any position other than the virtual character. Optionally, if the target terminal does not detect the target user's selection operation on the interactive option within a preset time after displaying the interactive option, that is, the target user does not perform any interaction with the interactive option within the preset time after the interactive option is displayed, the target terminal automatically cancels the display of the interactive option, thereby providing multiple ways to cancel the display of the interactive option, where the preset time refers to any value greater than 0, such as 5s.
[0134] Figure 4 This is a schematic diagram of an interface for displaying interactive options in a virtual environment provided by an embodiment of the present application. Figure 4As shown, the target terminal displays a virtual environment 400 in the client, and a target virtual character 401 controlled by the target terminal and a virtual character 402 controlled by other terminals are displayed in the virtual environment 400. Taking the first touch operation as an example in which the pressing duration is longer than the target duration, if the target user wants to interact or socialize with the user corresponding to the virtual character 402, the target user can perform a pressing operation on the virtual character 402. When the pressing duration of the pressing operation exceeds the target duration (such as 0.4s), a text interaction option 411 and a voice interaction option 412 will pop up above the head of the virtual character 402. Here, the text interaction option 411 and the voice interaction option 412 are both arc-shaped as an example, but this should not constitute a limitation on the shape of the interaction options. For example, a sliding operation from a virtual character to an interactive option is used as an example to select an interactive option. The target user can slide from virtual character 402 to text interactive option 411, proceeding to step 303 below to enter a text interactive message. Alternatively, the target user can slide from virtual character 402 to voice interactive option 412, proceeding to step 304 below to enter a voice interactive message. Since the curvatures of text interactive option 411 and voice interactive option 412 match, a display effect similar to a "sector wheel" is presented.
[0135] 303. In response to the selection operation of the text interaction option, the target terminal displays a conversation interface with the virtual character and obtains a text interaction message input based on the conversation interface.
[0136] Optionally, the operation type of the selection operation includes but is not limited to: a click operation, a double-click operation, a press operation, a sliding operation in a specified direction based on a text interaction option (such as swiping left, swiping right, swiping up, swiping down, etc.), etc. The embodiment of the present application does not specifically limit the operation type of the selection operation. Schematically, the selection operation is a sliding operation from a virtual character to a text interaction option.
[0137] In some embodiments, after a text interaction option pops up within the target range of the virtual character, the target user can trigger the process of obtaining the text interaction message by performing a selection operation on the text interaction option, for example, the selection operation is a sliding operation from the virtual character to the text interaction option.
[0138] In an exemplary scenario, the selection operation is taken as an example of a sliding operation from a virtual character to a text interaction option. The target terminal senses the pressure signal applied by the target user to the terminal screen through a pressure sensor, and determines the screen coordinates of the pressure point of the pressure signal. If the pressure point of the pressure signal changes dynamically, then a change trajectory of the pressure point (i.e., the sliding trajectory of the sliding operation) can be determined on the terminal screen. Then, the starting screen coordinates and the end screen coordinates of the changing trajectory are obtained. If the starting screen coordinates are located in the display area corresponding to the character model of the virtual character on the terminal screen, and at the same time, the end screen coordinates are located in the display area corresponding to the text interaction option on the terminal screen, then it is determined that the sliding operation of the target user sliding from the virtual character to the text interaction option is detected.
[0139] Optionally, in response to the sliding operation, the target terminal pops up a conversation interface with the virtual character. Optionally, the conversation interface is displayed in the virtual environment in the form of a pop-up window, or the conversation interface is suspended above the head of the virtual character in the form of a floating layer. Optionally, the conversation interface is displayed in full screen in the client (for example, switching from the virtual environment to the chat interface and automatically selecting a private chat channel with the virtual character). The embodiment of the present application does not specifically limit the display method of the conversation interface.
[0140] Optionally, at least a message input box is displayed in the conversation interface, and the target user can enter a text interaction message in the message input box, so that the target terminal obtains the text interaction message entered by the target user. For example, the target user directly enters the text interaction message, or the target user enters voice and automatically converts the voice into a text interaction message. The embodiment of the present application does not specifically limit the input method of the text interaction message.
[0141] Optionally, the conversation interface may also provide a function option for inputting voice interaction messages, so that if the target user wants to send a voice interaction message after entering the conversation interface, there is no need to exit the conversation interface to re-trigger the display of the voice interaction option and perform the corresponding selection operation. Instead, only the function option needs to be pressed to record the voice interaction message, and the voice interaction message can be triggered to be sent after releasing it.
[0142] 304. In response to the selection operation of the voice interaction option, the target terminal records the input voice interaction message when the voice interaction option is in a selected state.
[0143] Optionally, the operation type of the selection operation includes but is not limited to: a click operation, a double-click operation, a press operation, a sliding operation in a specified direction based on a voice interaction option (such as swiping left, swiping right, swiping up, swiping down, etc.), etc. The embodiment of the present application does not specifically limit the operation type of the selection operation. Schematically, the selection operation is a sliding operation from a virtual character to a voice interaction option.
[0144] In some embodiments, after a voice interaction option pops up within the target range of the virtual character, the target user can trigger the process of obtaining the voice interaction message by performing a selection operation on the voice interaction option, for example, the selection operation is a sliding operation from the virtual character to the voice interaction option.
[0145] In an exemplary scenario, the selection operation is taken as an example of a sliding operation from a virtual character to a voice interaction option. The target terminal senses the pressure signal applied by the target user to the terminal screen through a pressure sensor, and determines the screen coordinates of the pressure point of the pressure signal. If the pressure point of the pressure signal changes dynamically, then a change trajectory of the pressure point (i.e., the sliding trajectory of the sliding operation) can be determined on the terminal screen. Then, the starting screen coordinates and the end screen coordinates of the changing trajectory are obtained. If the starting screen coordinates are located in the display area corresponding to the character model of the virtual character on the terminal screen, and at the same time, the end screen coordinates are located in the display area corresponding to the voice interaction option on the terminal screen, then it is determined that the sliding operation of the target user sliding from the virtual character to the voice interaction option is detected.
[0146] Optionally, since the pressure point of the pressure signal finally applied falls on the voice interaction option when the target user performs the sliding operation from the virtual character to the voice interaction option, the target user only needs to continue to apply the pressure signal to the voice interaction option, that is, after performing the sliding operation from the virtual character to the voice interaction option, keep pressing the voice interaction option. At this time, the target terminal detects that the voice interaction option is in the selected state, prompts the target user to enter a voice interaction message, and calls the recording interface to record the voice interaction message entered by the target user.
[0147] In some embodiments, when the voice interaction option is in a selected state, the target terminal continues to record the voice interaction message, and when the voice interaction option switches from the selected state to the unselected state, the target terminal stops recording the voice interaction message. That is, when the user continues to press the voice interaction option, the target terminal continues to record the voice interaction message, and when the user lets go, the target terminal stops recording the voice interaction message. Optionally, if the maximum duration of the voice interaction message is configured in the client, the target terminal can automatically stop recording the voice interaction message when it detects that the recording duration of the recorded voice interaction message reaches the maximum duration. In other words, when the voice interaction option is in a selected state, the target terminal continues to record the voice interaction message, and when the voice interaction option switches from the selected state to the unselected state, or when the recording duration of the recorded voice interaction message reaches the maximum duration, the target terminal stops recording the voice interaction message. The maximum duration is a value greater than 0, for example, the maximum duration is 15s, or 30s, 60s, etc. The embodiment of the present application does not specifically limit the maximum duration.
[0148] In some embodiments, since there may be a need to re-record when the target user inputs a voice interaction message, when the target user keeps pressing the voice interaction option to continuously record the voice interaction message, if he wants to re-record, he only needs to use the pressure point of the voice interaction option as the starting point and perform a sliding operation from the voice interaction option to the target position, so that the target terminal deletes the recorded voice interaction message in response to the sliding operation from the voice interaction option to the target position, wherein the target position is any position that is greater than a distance threshold from the voice interaction option, and the distance threshold is any value greater than 0, for example, 1 cm.
[0149] In other embodiments, when recording a voice interaction message, a cancel recording option pops up around the voice interaction option. When the target user keeps pressing the voice interaction option to continue recording the voice interaction message, if he wants to re-record it, he only needs to use the pressure point of the voice interaction option as the starting point and perform a sliding operation from the voice interaction option to the cancel recording option, so that the target terminal deletes the recorded voice interaction message.
[0150] In some embodiments, a method of recording a voice interaction message without holding down is provided. For example, when the target user clicks on the voice interaction message for the first time, the voice interaction message starts to be recorded. When the target user clicks on the voice interaction message again or the recording time reaches the maximum time, the voice interaction message stops recording. Optionally, after the recording is completed, a play option, a send option, and a re-recording option for the voice interaction message pop up. The target user clicks on the play option to trigger the playback of the voice interaction message recorded this time. Clicking on the send option can trigger the sending of the voice interaction message recorded this time. Clicking on the re-recording option can record a new voice interaction message again. The embodiment of the present application does not specifically limit the operation methods of recording, canceling recording, and re-recording voice interaction messages.
[0151] In the above steps 303-304, taking the interactive options including text interactive options and voice interactive options as an example, a possible implementation method for obtaining the input interactive message in response to the selection operation of the interactive option is provided, so that the target user can perform a selection operation on the corresponding interactive option according to his or her own social needs, and then input the corresponding type of interactive message, and the target terminal obtains the input interactive message.
[0152] In some embodiments, when the first touch operation is a pressing operation with a pressing duration greater than the target duration, after the target user long presses the virtual character to reach the target duration, the interactive option is triggered to be displayed, and then the target user can keep pressing and slide from the virtual character to the interactive option (equivalent to performing a sliding operation from the virtual character to the interactive option), triggering the acquisition of the input interactive message. It can be seen that the above-mentioned pressing operation and sliding operation are a coherent and smooth operation, that is, when the virtual character is in a pressed state, that is, the target user keeps pressing the virtual character, if the target terminal detects a sliding operation from the pressing point of the pressing operation (located on the virtual character) to the interactive option, then in response to the sliding operation from the pressing point of the pressing operation to the interactive option, the input interactive message is acquired. In the above process, a coherent and smooth virtual character-based interaction method is provided, which can perform press and slide operations on the virtual character of interest in the virtual environment, and quickly initiate one-to-one instant interaction with the virtual character (such as voice intercom or sending private messages). Without switching to other scenes, the effect of "meet and chat" in the virtual environment can be achieved, which enhances the realism and immersion of the game and is conducive to optimizing the user's gaming experience.
[0153] In some embodiments, regardless of whether the target user performs a selection operation on the text interaction option through the above step 303 or performs a selection operation on the voice interaction option through the above step 304, the target terminal can display the selected interaction option and the unselected interaction option in different display methods. For example, for the above step 303, in response to the selection operation on the text interaction option, the background color of the text interaction option is highlighted. For the above step 304, in response to the selection operation on the voice interaction option, the background color of the voice interaction option is highlighted. Of course, when highlighting the selected interaction option, in addition to changing the background color, it can also be enlarged and the selected special effects can be played. The embodiments of the present application do not specifically limit this.
[0154] 305. In response to any selection operation in the above steps 303 or 304, the target terminal displays a first prompt effect based on the virtual character, where the first prompt effect is used to prompt that a text interaction message or a voice interaction message initiated to the virtual character is being obtained.
[0155] In some embodiments, whether the selection operation of the text interaction option is performed in the above step 303 to obtain a text interaction message, or the selection operation of the voice interaction option is performed in the above step 304 to obtain a voice interaction message, it represents that the target user has an instant interaction demand for the virtual character. Therefore, a first prompt effect can be displayed based on the virtual character to emphasize the virtual character to which the text interaction message being input or the voice interaction message is directed, thereby highlighting the virtual character that has an instant interaction demand and achieving a more realistic and immersive gaming experience.
[0156] In some embodiments, in response to the selection operation of the interactive option, in addition to obtaining the input interactive message, the first prompt special effect is also displayed. The first prompt special effect is used to prompt that the interactive message initiated to the virtual character is being obtained. For example, the first prompt special effect is an aperture special effect under the feet of the virtual character. For another example, the first prompt special effect is to outline or highlight the virtual character. For another example, the first prompt special effect is a special effect pendant displayed above the head of the virtual character. The embodiment of the present application does not specifically limit the display method of the first prompt special effect.
[0157] Optionally, the multimedia resource for the first prompt special effect can be loaded locally when the client is started. When a selection operation is detected for the interactive option, the multimedia resource for the first prompt special effect is rendered using a rendering engine, thereby displaying the first prompt special effect. Optionally, when a selection operation is detected for the interactive option, the multimedia resource for the first prompt special effect is loaded from a server, and then the multimedia resource for the first prompt special effect is rendered using a rendering engine, thereby displaying the first prompt special effect. This embodiment of the application does not specifically limit when the multimedia resource for the first prompt special effect is loaded.
[0158] Figure 5 This is a schematic diagram of an interface for displaying a first prompt effect in a virtual environment provided by an embodiment of the present application, such as Figure 5 As shown, the target terminal displays a virtual environment 400 in the client, in which a target virtual character 401 controlled by the target terminal and a virtual character 402 controlled by other terminals are displayed. Taking the first touch operation as an example in which the pressing duration is longer than the target duration, if the target user wants to interact or socialize with the user corresponding to the virtual character 402, the target user can perform a pressing operation on the virtual character 402. When the pressing duration of the pressing operation exceeds the target duration (e.g., 0.4s), a text interaction option 411 and a voice interaction option 412 will pop up above the head of the virtual character 402. Taking the selection operation of the interactive option as an example, assuming that the target user wants to have a real-time voice conversation with the user corresponding to the virtual character 402, the target user can perform a sliding operation from the virtual character 402 to the voice interaction option 412, and continue to press the voice interaction option 412 after sliding to the voice interaction option 412. When the target user presses the voice interaction option 412, the target terminal will record the input voice interaction message through the recording interface. At the same time, the border of the voice interaction option 412 is bolded (indicating that the voice interaction option 412 is selected), that is, the voice interaction option 412 in the selected state and the voice interaction option 412 in the unselected state have different display modes. In addition, while recording the voice message, the first prompt effect 510 is displayed based on the virtual character 402. Here, the first prompt effect 510 is an aperture effect under the feet of the virtual character 402 as an example for explanation, which is used to prompt the target user that the voice interaction message between the target user and the virtual character 402 is being recorded.
[0159] 306. When the text interaction message or voice interaction message is completely acquired, the target terminal cancels displaying the first prompt effect.
[0160] In some embodiments, when the text interaction message or voice interaction message (collectively referred to as interaction message) is acquired, the target terminal cancels the display of the first prompt effect, indicating that the interaction message has been acquired, thereby avoiding the first prompt effect from blocking the virtual environment for a long time.
[0161] 307. The target terminal sends the text interaction message or voice interaction message to the terminal corresponding to the virtual character.
[0162] In some embodiments, after the target terminal obtains the text interaction message or voice interaction message, it uses the transmission control protocol supported by the game server to encapsulate the text interaction message or voice interaction message and the character ID of the pressed virtual character, and sends the encapsulated message to the game server. After the game server receives the encapsulated message, it parses the character ID carried in the message and forwards the encapsulated message to the terminal bound to the character ID, or only forwards the text interaction message or voice interaction message in the message. The embodiments of the present application do not specifically limit this.
[0163] Optionally, before encapsulating the text interaction message or voice interaction message and the character ID, a compression algorithm can be used to compress the text interaction message or voice interaction message. Optionally, before encapsulating the text interaction message or voice interaction message and the character ID, an encryption algorithm can be used to encrypt the text interaction message or voice interaction message. The encryption algorithm includes a symmetric encryption algorithm or an asymmetric encryption algorithm. The embodiments of the present disclosure do not specifically limit which compression algorithm or encryption algorithm is used.
[0164] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.
[0165] The method provided in the embodiment of the present application, by popping up an interaction option when a first touch operation on a virtual character is detected, and obtaining and sending an input interaction message when a selection operation on the interaction option is detected, so that when there is a need to interact with the virtual character, there is no need to go through the tedious and lengthy operation chain of clicking on the virtual character, clicking on the list item, selecting the corresponding avatar, and selecting the private chat function option in the personal details panel. Instead, interaction can be initiated directly based on the virtual character and the pop-up interaction option in the virtual environment, providing a simple, efficient and smooth interactive operation method, shortening the operation chain of instant interaction, improving the efficiency of human-computer interaction, and facilitating an immersive user experience.
[0166] In the above embodiment, it is introduced that after the target user performs a first touch operation on the virtual character, an interactive option pops up. For example, the first touch operation is a pressing operation with a pressing duration greater than the target duration. After the target user presses the virtual character, if the pressing duration exceeds the target duration, an interactive option will pop up, which is equivalent to providing an interactive roulette for quick input and sending interactive messages. In the embodiment of the present application, it will be introduced that if the target user performs a second touch operation on the virtual character, an operation method for quick input and sending interactive messages will also be provided. Schematically, the second touch operation is a pressing operation with a pressing duration less than or equal to the target duration, which is explained below.
[0167] Figure 6 This is a flowchart of a virtual character-based interactive method provided by an embodiment of the present application. Figure 6 This embodiment is executed by an electronic device and is described by taking the electronic device as a target terminal. The target terminal may be the first terminal 120 or the second terminal 160 shown in the above implementation environment. This embodiment includes the following steps:
[0168] 601. A target terminal displays a virtual environment, wherein one or more virtual characters are displayed in the virtual environment.
[0169] The above step 601 is similar to the above step 301 and will not be described in detail here.
[0170] 602. In response to a second touch operation on any virtual character in the virtual environment, the target terminal displays a virtual character list, where the virtual character list displays one or more list items, each list item corresponding to a virtual character in the virtual environment that supports interaction.
[0171] Optionally, the operation type of the second touch operation includes, but is not limited to: a click operation, a double-click operation, a press operation, a sliding operation based on a virtual character in a specified direction (such as sliding left, sliding right, sliding up, sliding down, etc.), etc. The embodiment of the present application does not specifically limit the operation type of the second touch operation. It should be noted that the second touch operation is different from the first touch operation. Schematically, the second touch operation is a press operation with a press duration less than or equal to a target duration, wherein the target duration is any value greater than 0, for example, the target duration is 0.4s, and can also be set to 0.5s, 1s, etc.
[0172] The method of detecting the second touch operation in the above step 602 is similar to the method of detecting the first touch operation in the above step 302, and will not be described in detail here.
[0173] In some embodiments, when it is detected that the target user performs a second touch operation on the virtual character, the target terminal no longer directly pops up the interaction option, but instead pops up a virtual character list (similar to the "nearby virtual characters" list). Each list item in the virtual character list corresponds to a virtual character that is in the virtual environment and supports interaction. Optionally, since there may be NPCs in the virtual environment, but NPCs usually do not support interaction, list items of NPCs located in the virtual environment are not displayed in the virtual character list. In other words, the list items displayed in the virtual character list all correspond to virtual characters controlled by other users in the same virtual environment.
[0174] In some embodiments, since there may be many virtual characters that are located in the same virtual environment and support interaction, in order to save the processing resources of the target terminal, only the list items corresponding to each third virtual character may be displayed in the virtual character list, where the third virtual character refers to a virtual character that is located in the same virtual environment as the target virtual character, is within the field of view of the target virtual character, and supports interaction.
[0175] In some embodiments, for each item in the virtual character list, at least one of the corresponding virtual character's nickname, avatar, or faction tag is displayed, thereby achieving a concise and clear display effect. Optionally, it is possible that the virtual characters corresponding to some items in the virtual character list are friends with the target character. In this case, a "friend" tag can be added to the list items of the virtual characters with whom the target character has a friendship, thereby achieving a rich and diverse display effect.
[0176] 603. The target terminal displays a recording control for initiating interaction with the virtual character based on the target list item corresponding to the pressed virtual character in the virtual character list.
[0177] In some embodiments, in the virtual character list, the target list item and other list items are displayed in different ways, wherein the other list items refer to the list items other than the target list item. That is, the target list item is highlighted in the virtual character list to indicate that the target list item corresponds to the pressed virtual character. Optionally, the border of the target list item is displayed in bold, or the border of the target list item is highlighted, or, while the edges of the other list items are kept aligned, the edge of the target list item is misaligned with the edges of the other list items, for example, the target list item is shifted to the left or right to present a selected display effect.
[0178] In the above step 603, taking the interactive control as a recording control as an example, a possible implementation method is provided in which the target terminal displays a recording control for initiating interaction with the virtual character based on the target list item corresponding to the touched virtual character in the virtual character list. Optionally, the interactive control is a private message control, or the recording control and the private message control are displayed at the same time. The embodiment of the present application does not specifically limit the type and number of interactive controls.
[0179] In some embodiments, the target terminal displays the recording control on the left side of the target list item, or the target terminal displays the recording control on the right side of the target list item, or the target terminal displays the recording control in a floating manner on the target list item, or the target list item itself is a recording control, and the target user can start recording by pressing the target list item. The embodiments of the present application do not specifically limit the display method of the recording control.
[0180] 604. In response to the pressing operation of the recording control, the target terminal records the input voice interaction message.
[0181] The method of recording the voice interaction message in the above step 604 is similar to the method of obtaining the voice interaction message in the above step 304, and will not be repeated here.
[0182] 605. When the recording control switches from a pressed state to a non-pressed state, the target terminal sends the voice interaction message to the terminal corresponding to the virtual character.
[0183] The above-mentioned detection of whether the recording control switches from a pressed state to a non-pressed state can be performed by a pressure sensor, that is, if the pressure sensor no longer receives the pressure signal applied by the target user on the recording control, it means that the target user has released the control, and at this time it is determined that the recording control is detected to switch from a pressed state to a non-pressed state.
[0184] The method of sending the voice interaction message in the above step 605 is similar to the method of sending the voice interaction message in the above step 307, and will not be repeated here.
[0185] Figure 7 This is a schematic diagram of an interface for displaying a list of virtual characters in a virtual environment, as provided in an embodiment of the present application. Figure 7As shown, the target terminal displays a virtual environment 400 in the client, and a target virtual character 401 controlled by the target terminal and a virtual character 402 controlled by other terminals are displayed in the virtual environment 400. Taking the second touch operation as an example of a press operation with a press duration less than or equal to the target duration, if the target user wants to interact or socialize with the user corresponding to the virtual character 402, the target user can perform a press operation on the virtual character 402. When the press duration of the press operation is less than or equal to the target duration (such as 0.4s), a virtual character list 710 will pop up in the virtual environment 400. Multiple list items are displayed in the virtual character list 710, and a target list item 711 corresponding to the virtual character 402 is highlighted among the multiple list items. Here, a check box is added to the edge of the target list item 711 as an example. At the same time, a recording control 712 for one-click quick recording appears on the left side of the target list item 711. The target user can record a voice interaction message by pressing the recording control 712, and the recorded voice interaction message can be sent by simply releasing the control.
[0186] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.
[0187] The method provided in the embodiment of the present application, by popping up a virtual character list when detecting that a second touch operation is performed on a virtual character, and highlighting the target list item corresponding to the touched virtual character in the virtual character list, can facilitate the target user to quickly locate the virtual character he wants to interact with, and automatically pop up a recording control around the target list item. Only by pressing and holding the recording control can voice intercom or send a voice message, that is, collect and send voice interaction messages, thereby eliminating the need to go through a series of tedious and lengthy operation links, and being able to initiate interaction directly based on the virtual character in a virtual environment, providing a simple, efficient and smooth interactive operation method, shortening the operation link of instant interaction, improving the efficiency of human-computer interaction, and conducive to providing an immersive user experience.
[0188] In the two embodiments described above, two different operational flows for the client, acting as the initiator of an interactive message, are described. One is that upon detecting a first touch operation on a virtual character, an interactive option is directly displayed, and interaction is initiated based on the interactive option. The other is that upon detecting a second touch operation on a virtual character, a list of virtual characters near the target virtual character is directly displayed, and the target list item corresponding to the pressed virtual character is highlighted in the virtual character list. At the same time, an interactive control is displayed based on the target list item to facilitate initiating interaction based on the interactive control. For example, a first touch operation is a press operation with a duration greater than the target duration, and a second touch operation is a press operation with a duration less than or equal to the target duration. These are equivalent to performing a press operation on the virtual character, but the press operation is divided into a first touch operation and a second touch operation based on the duration of the press operation, thereby providing two completely different interactive modes for the user. Both operational flows of the aforementioned interactive modes enable efficient interactive communication within a virtual environment, providing gamers with a more fluid, immersive, and realistic gaming and social experience. Furthermore, when sending interactive messages, there is no need to exit the current virtual environment, thus avoiding interrupting the original immersive experience within the virtual environment.
[0189] In the embodiment of the present application, the relevant interactive process of the client as the recipient of the interactive message will be described, taking the case where the target terminal sends a voice interactive message to the terminal as an example. Figure 8 This is a flowchart of an interactive method based on a virtual character provided in an embodiment of the present application. Figure 8 This embodiment is executed by an electronic device. The electronic device is described as a terminal. The terminal may be the first terminal 120 or the second terminal 160 shown in the above implementation environment. This embodiment includes the following steps:
[0190] 801. A terminal receives a voice interaction message associated with a target virtual character in a virtual environment.
[0191] Optionally, the terminal receives the voice interaction message sent by the target terminal through the server, wherein the target terminal refers to a terminal device that controls the target virtual character.
[0192] In some embodiments, the terminal receives a message forwarded by the server that encapsulates the voice interaction message and parses the message to obtain the voice interaction message. Optionally, if the received message is encrypted using an encryption algorithm, the terminal needs to decrypt it using a decryption algorithm corresponding to the encryption algorithm. Optionally, if the received message is compressed using a compression algorithm, the terminal needs to decompress it using a decompression algorithm corresponding to the compression algorithm to ultimately obtain the voice interaction message.
[0193] 802. When the terminal enables instant play permission in the virtual environment, it plays the voice interactive message.
[0194] In some embodiments, the user can set whether to enable instant playback permission in the client's settings interface. The instant playback permission refers to whether to play the received voice interaction message in real time. If the instant playback permission is enabled, the terminal will directly play the voice interaction message when it receives the voice interaction message associated with the target virtual character, achieving an effect similar to real-time voice intercom. Optionally, the terminal inputs the voice interaction message into the audio codec, outputs the decoded voice signal, and then calls the audio playback control to play the decoded voice signal.
[0195] 803. The terminal displays, in the virtual environment, a playback prompt message for the voice interaction message. The playback prompt message is used to prompt the target virtual character that initiated the voice interaction message.
[0196] In some embodiments, during the process of playing the voice interaction message, playback prompt information of the voice interaction message can also be displayed to prompt which target virtual character sent the voice interaction message. For example, the playback prompt information is a text prompt "Game player XX is talking to you". The playback prompt information is displayed in a floating layer in the virtual environment, thereby enriching the playback effect of the voice interaction message.
[0197] In the above steps 802-803, the situation of automatically playing the voice interaction message when the instant playback permission is turned on is shown. In some embodiments, when the instant playback permission is turned off in the virtual environment, the terminal stores the voice interaction message, and when the opening operation of the conversation interface with the target virtual character is detected, the playback option of the voice interaction message is displayed in the conversation interface. That is to say, if the user turns off the instant playback permission, it means that the user does not want the voice interaction message sent by the target user to disturb his or her immersive experience in the virtual environment, or does not want to hear the voice interaction message in real time. Therefore, the terminal can store the voice interaction message and display a message prompt of the newly received voice private message. The user can view the voice interaction message at any time when he or she wants to view the voice interaction message by opening the conversation interface with the target virtual character, and click the play option to manually play the voice interaction message. Optionally, the newly received voice interaction message can be automatically played when the user enters the conversation interface with the target virtual character. If multiple voice interaction messages are received, they can be automatically played in ascending order of timestamps. The embodiment of the present application does not specifically limit whether the voice interaction message is automatically played when the conversation interface is opened.
[0198] In some embodiments, when the instant play permission is turned off in the virtual environment, an inquiry window pops up, which includes an inquiry prompt, a confirmation option, and a cancel option. The inquiry prompt is used to inquire whether to convert the voice interaction message into a text interaction message and display the converted text interaction message. For example, the inquiry prompt is "Game player XX is talking to you, do you want to convert it to text?" The confirmation option is used to confirm the conversion of the voice interaction message into a text interaction message and display the converted text interaction message. The cancel option is used to convert the voice interaction message into background storage. Schematically, after the inquiry window pops up, if the user clicks the confirmation option, the terminal performs voice recognition on the voice interaction message, obtains a text interaction message corresponding to the semantics of the voice interaction message, and displays the converted text interaction message in the virtual environment. Optionally, when displaying the converted text interaction message, it can be displayed in a bullet screen manner at the top of the virtual environment for scrolling playback, or displayed in a bubble dialog box around the target virtual character who sent the message. Furthermore, if the user is interested in a text interaction message obtained by a conversion, he or she can directly click on the text interaction message displayed in the virtual environment to quickly trigger a message reply to the target virtual character. Alternatively, the user can rotate the viewing angle to find the target virtual character carrying the second prompt special effect, and based on a method similar to the above embodiment, perform the first touch operation or the second touch operation on the target virtual character to reply to the target virtual character. The embodiments of the present application do not specifically limit this.
[0199] In some embodiments, when receiving a voice interaction message sent by a target terminal to a terminal, the server may determine whether the terminal has enabled instant playback permission. If the terminal has enabled instant playback permission, the server will immediately forward the voice interaction message to the terminal so that the terminal can receive and play the voice interaction message in real time, achieving the effect of real-time intercom. If the terminal has turned off the instant playback permission, the server does not need to immediately forward the voice interaction message to the terminal. Instead, the server may store the voice interaction message until the user opens a conversation interface with the target virtual character on the terminal. The terminal will then actively pull the various interaction messages sent by the target virtual character from the server, and the server will send all interaction messages including the voice interaction message to the terminal. The terminal will receive and display the various interaction messages. For text interaction messages, the content of the text interaction message will be directly displayed, and for the voice interaction message, the playback option of the voice interaction message will be displayed.
[0200] 804. When playing the voice interaction message, the terminal displays a second prompt effect based on the target virtual character, where the second prompt effect is used to prompt the target virtual character that initiated the voice interaction message.
[0201] In some embodiments, the second prompt special effect is an aperture special effect under the feet of the target virtual character. For another example, the second prompt special effect is to outline or highlight the target virtual character. For another example, the second prompt special effect is a special effect pendant displayed above the head of the target virtual character (such as displaying a bubble dialog box, and displaying the text content obtained by voice recognition of the voice interaction message in the bubble dialog box). The embodiment of the present application does not specifically limit the display method of the second prompt special effect. It should be noted that the first prompt special effect and the second prompt special effect can be the same or different.
[0202] Optionally, the multimedia resources of the second prompt special effect can be loaded locally when the client is started. When the voice interaction message of the target virtual character is played, the multimedia resources of the second prompt special effect are rendered by the rendering engine, thereby displaying the second prompt special effect. Optionally, when the voice interaction message of the target virtual character is played, the multimedia resources of the second prompt special effect are loaded from the server, and then the multimedia resources of the second prompt special effect are rendered by the rendering engine, thereby displaying the second prompt special effect. The embodiment of the present application does not specifically limit when the multimedia resources of the second prompt special effect are loaded.
[0203] Figure 9 This is a schematic diagram of an interface for displaying a second prompt effect in a virtual environment provided by an embodiment of the present application, such as Figure 9 As shown, the target terminal is used as the receiving terminal for illustration. The target terminal displays a virtual environment 400 in the client. The virtual environment 400 displays a target virtual character 401 controlled by the target terminal and virtual characters 402 controlled by other terminals. At a certain moment, the target terminal receives a voice interaction message from the terminal corresponding to the virtual character 402 (for example, after sending a voice interaction message to the virtual character 402, a reply voice interaction message is received, or the virtual character 402 actively initiates a voice interaction message). If the target terminal has enabled the instant play permission, the target terminal will automatically play the received voice interaction message. At the same time, during the playback of the voice interaction message, a playback prompt 910 of the voice interaction message "Virtual character nickname is talking to you" is displayed in the virtual environment 400, and a second prompt effect 920 is displayed based on the virtual character 402 that initiates the conversation. Here, the second prompt effect 920 is illustrated as an aperture effect under the feet of the virtual character 402, which is used to prompt the target user to play the voice interaction message sent by the user corresponding to the virtual character 402.
[0204] 805. When the voice interaction message is finished playing, the terminal cancels display of the second prompt effect and the play prompt information.
[0205] In some embodiments, when the voice interaction message is finished playing, the terminal cancels the display of the second prompt effect and the playback prompt information, indicating that the voice interaction message has been finished playing, thereby avoiding the second prompt effect and the playback prompt information from blocking the virtual environment for a long time.
[0206] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.
[0207] The method provided in the embodiment of the present application automatically plays the received voice interaction message and displays the corresponding playback prompt information and second prompt special effect when detecting that the instant playback permission is turned on. When the user views the playback prompt information, even if the target virtual character that sends the voice interaction message is not within the current field of view, the user on the listening side can find and lock onto the nearby target virtual character with the second prompt special effect through the nickname prompt of the target virtual character in the playback prompt information, or rotate the viewing angle to change the field of view, so as to quickly determine the target virtual character who initiated the voice intercom, thereby creating an immersive real-time voice listening experience in which the user searches around to determine the source of the sound after hearing someone shouting in a real environment. Of course, when it is detected that the instant playback permission is turned off, the user can still receive and play the voice interaction message through the conversation interface, so as to avoid missing or omitting the voice interaction message, thereby improving the efficiency of human-computer interaction.
[0208] It should be noted that if the user on the listening side needs to reply to the voice interactive message, he or she may execute the operation process indicated by the target user of the initiator in the above two embodiments and send a reply voice message to the target user, or may also send a friend adding request to the target terminal to establish a friend relationship between the virtual character and the target virtual character.
[0209] In the above-mentioned embodiments, the operation procedures of the interactive method based on virtual characters are introduced from the initiator terminal (target terminal) and the recipient terminal respectively. In the embodiment of the present application, the interactive message is a voice interactive message, the first touch operation is a pressing operation with a pressing duration greater than the target duration, the second touch operation is a pressing operation with a pressing duration less than or equal to the target duration, and the selection operation of the interactive option is a sliding operation from the virtual character to the interactive option as an example to introduce the relevant processes of the initiator terminal and the recipient terminal.
[0210] Figure 10This is a principle flow chart of a voice intercom initiator terminal provided by an embodiment of the present application. As shown in 1000, the initiator user presses the virtual character to which the voice interaction message is to be sent in the virtual environment, that is, after selecting the intercom target, the initiator terminal can send a permission query request to the server, so that the server determines whether the receiving terminal has opened the instant playback permission and determines the permission query result. The permission query result is used to decide whether the subsequent voice interaction message starts the real-time intercom mode or the voice message mode. Among them, in the real-time intercom mode, the server will forward the voice interaction message sent by the initiator terminal to the receiving terminal in real time to achieve a real-time intercom effect. In the voice message mode, the server can cache the voice interaction message. When the receiving terminal enters the conversation interface, it will send the cached interaction messages including the voice interaction message based on the message pull request of the receiving terminal.
[0211] After the initiator user presses the character model of the selected virtual character, the initiator terminal determines whether the pressing duration is greater than the target duration (such as 0.4s). If the pressing duration is greater than the target duration, it means that the first touch operation is detected, and an interactive wheel including voice interaction options and text interaction options is displayed. Then, if the initiator user performs a sliding operation from the virtual character to the voice interaction option in the interactive wheel, the voice interaction message sent by the initiator user is continuously recorded. If the initiator user slides out of the voice interaction option to exceed the distance threshold, the recorded voice interaction message is deleted and the intercom is canceled. If the pressing duration is less than or equal to the target duration, it means that the second touch operation is detected, and a list of nearby virtual characters is popped up, and the target list item corresponding to the pressed virtual character is displayed differently. For example, the target list item is selected by default, and a recording control for intercom (also called an intercom button) floats around the target list item. The initiator user presses the recording control to continuously record the voice interaction message sent by the initiator user.
[0212] During the process of recording the voice interaction message, a first prompt special effect is displayed to the role model of the virtual character that the initiating user wants to interact with, for example, an aperture special effect is displayed under the feet of the role model of the virtual character.
[0213] During the process of the initiating user pressing the recording control or voice interaction option to input a voice interaction message, if the recording duration of the recorded voice interaction message is less than the pre-set maximum duration (such as 15s), the recording will be stopped and the intercom will be ended when it is detected that the initiating user has released the control, and the recorded voice interaction message will be sent; if the recording duration of the recorded voice interaction message is equal to the pre-set maximum duration (such as 15s), the recording will be automatically stopped and the intercom will be ended upon timeout, and the recorded voice interaction message will be sent.
[0214] After the voice interaction message is recorded, the first prompt special effect is canceled on the initiator's terminal, for example, the aperture special effect under the feet of the character model of the virtual character disappears.
[0215] Figure 11 This is a principle flow chart of a voice intercom receiving terminal provided by an embodiment of the present application. As shown in 1100, after the receiving terminal receives the voice interaction message from the initiator terminal, a reception reminder of the voice interaction message pops up. The receiving terminal determines whether the instant playback permission is enabled. If the instant playback permission is enabled, the voice interaction message is automatically played in real time, and the playback prompt information is displayed at the same time. If the instant playback permission is disabled, the real-time voice interaction message is converted into a voice private message (i.e., a voice interaction message displayed in the conversation interface). Regardless of whether it is a real-time voice interaction message or a voice interaction message clicked to play in the conversation interface, during the playback of the voice interaction message, a second prompt effect will be displayed based on the character model of the target virtual character corresponding to the initiator terminal, such as an aperture effect at the feet of the character model of the target virtual character. The receiving user can find the target virtual character by the virtual character nickname prompted in the playback prompt information, or by rotating the perspective to find the target virtual character with the second prompt effect within the field of view, so as to lock the target virtual character controlled by the initiator user of the voice intercom.
[0216] Figure 12 This is a schematic diagram of the structure of an interactive device based on a virtual character provided in an embodiment of the present application. Figure 12 , the device comprises:
[0217] Display module 1201, for displaying, in response to a first touch operation on any virtual character in the virtual environment, an interaction option within a target range of the virtual character, the interaction option being used to initiate interaction with the virtual character;
[0218] An acquisition module 1202 is configured to acquire an input interactive message in response to a selection operation on the interactive option;
[0219] The sending module 1203 is configured to send the interactive message to the terminal corresponding to the virtual character.
[0220] The device provided in the embodiment of the present application pops up an interactive option when a first touch operation on a virtual character is detected, and obtains and sends an input interactive message when a selection operation on the interactive option is detected. Therefore, when there is a need to interact with the virtual character, there is no need to go through the tedious and lengthy operation chain of clicking on the virtual character, clicking on the list item, selecting the corresponding avatar, and selecting the private chat function option in the personal details panel. Instead, interaction can be initiated directly based on the virtual character and the pop-up interactive option in the virtual environment, providing a simple, efficient and smooth interactive operation method, shortening the operation chain of instant interaction, improving the efficiency of human-computer interaction, and facilitating an immersive user experience.
[0221] In one possible implementation, the display module 1201 is used to:
[0222] At least one of a text interaction option and a voice interaction option is displayed within the target range of the virtual character, the text interaction option is used to send a text interaction message to the virtual character, and the voice interaction option is used to send a voice interaction message to the virtual character.
[0223] In one possible implementation, based on Figure 12 The acquisition module 1202 includes:
[0224] an acquisition unit, configured to display a conversation interface with the virtual character in response to a selection operation on the text interaction option, and acquire a text interaction message input based on the conversation interface; or
[0225] The recording unit is used to record the input voice interaction message in response to the selection operation of the voice interaction option when the voice interaction option is in the selected state.
[0226] In one possible implementation, the recording unit is further configured to:
[0227] When the voice interaction option switches from the selected state to the unselected state, stop recording the voice interaction message; or,
[0228] In response to a sliding operation from the voice interaction option to a target position, the recorded voice interaction message is deleted, where the target position is any position that is greater than a distance threshold from the voice interaction option.
[0229] In a possible implementation manner, the first touch operation is a pressing operation with a pressing duration greater than a target duration;
[0230] The display module 1201 is used for:
[0231] When the virtual character is in a pressed state, displaying the interactive option; or,
[0232] When the virtual character switches from the pressed state to the unpressed state, the interactive option is canceled.
[0233] In a possible implementation manner, the first touch operation is a pressing operation with a pressing duration greater than a target duration;
[0234] The acquisition module 1202 is used to:
[0235] When the virtual character is in a pressed state, in response to a sliding operation from the pressing point of the pressing operation to the interactive option, the input interactive message is acquired.
[0236] In one possible implementation, the display module 1201 is further configured to:
[0237] In response to a selection operation on the interactive option, displaying a first prompt effect based on the virtual character, the first prompt effect being used to prompt that an interactive message initiated to the virtual character is being obtained;
[0238] When the interactive message is obtained, the first prompt effect is canceled.
[0239] In one possible implementation, the display module 1201 is further configured to:
[0240] In response to a second touch operation on the virtual character, displaying a virtual character list, wherein the virtual character list displays one or more list items, each list item corresponding to a virtual character that is in the virtual environment and supports interaction;
[0241] Based on the target list item corresponding to the virtual character in the virtual character list, an interactive control for initiating interaction with the virtual character is displayed.
[0242] In a possible implementation, the target list item and other list items are displayed in different ways in the virtual character list, and the other list items refer to list items other than the target list item.
[0243] In one possible implementation, the interactive control is a recording control, based on Figure 12 The device is composed of:
[0244] A recording module, configured to record an input voice interaction message in response to a pressing operation on the recording control;
[0245] The sending module 1203 is further configured to send the voice interaction message to the terminal corresponding to the virtual character when the recording control switches from a pressed state to a non-pressed state.
[0246] In a possible implementation manner, the second touch operation is a pressing operation with a pressing duration less than or equal to a target duration.
[0247] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.
[0248] It should be noted that the virtual character-based interactive device provided in the above embodiment is only used as an example to illustrate the division of the above functional modules when performing virtual character-based interaction. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the electronic device can be divided into different functional modules to complete all or part of the functions described above. In addition, the virtual character-based interactive device provided in the above embodiment and the virtual character-based interactive method embodiment are based on the same concept. The specific implementation process is detailed in the virtual character-based interactive method embodiment and will not be repeated here.
[0249] Figure 13 This is a schematic diagram of the structure of an interactive device based on a virtual character provided in an embodiment of the present application. Figure 13 , the device comprises:
[0250] Receiving module 1301, for receiving a voice interaction message associated with a target virtual character in a virtual environment;
[0251] Playing module 1302, configured to play the voice interactive message when the instant play permission is enabled in the virtual environment;
[0252] The display module 1303 is used to display the playback prompt information of the voice interaction message in the virtual environment, and the playback prompt information is used to prompt the target virtual character who initiated the voice interaction message.
[0253] The device provided in the embodiment of the present application automatically plays the received voice interaction message and displays the corresponding playback prompt information when detecting that the instant playback permission is enabled. When the user views the playback prompt information, even if the target virtual character that sent the voice interaction message is not within the current field of view, the user on the listening side can quickly find and lock onto the target virtual character that initiated the voice intercom through the nickname prompt of the target virtual character in the playback prompt information, thereby creating an immersive real-time voice listening experience in which the user searches around to determine the source of the sound after hearing someone shouting in a real environment, thereby improving the efficiency of human-computer interaction.
[0254] In one possible implementation, based on Figure 13 The device is composed of:
[0255] The storage module is used to store the voice interaction message when the instant playback permission is closed in the virtual environment; wherein, the display module 1303 is also used to display the playback option of the voice interaction message in the conversation interface when the opening operation of the conversation interface with the target virtual character is detected.
[0256] In one possible implementation, the display module 1303 is further configured to:
[0257] When playing the voice interaction message, a second prompt effect is displayed based on the target virtual character, and the second prompt effect is used to prompt the target virtual character who initiated the voice interaction message;
[0258] When the voice interaction message is finished playing, the second prompt effect is canceled.
[0259] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.
[0260] It should be noted that the virtual character-based interactive device provided in the above embodiment is only used as an example to illustrate the division of the above functional modules when performing virtual character-based interaction. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the electronic device can be divided into different functional modules to complete all or part of the functions described above. In addition, the virtual character-based interactive device provided in the above embodiment and the virtual character-based interactive method embodiment are based on the same concept. The specific implementation process is detailed in the virtual character-based interactive method embodiment and will not be repeated here.
[0261] Figure 14 This is a schematic diagram of the structure of a terminal provided in an embodiment of the present application. Figure 14 As shown, terminal 1400 is an exemplary embodiment of an electronic device. Optionally, terminal 1400 may be a smartphone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer, or a desktop computer. Terminal 1400 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal, or other similar names.
[0262] Typically, the terminal 1400 includes a processor 1401 and a memory 1402 .
[0263] Optionally, the processor 1401 includes one or more processing cores, such as a 4-core processor, an 8-core processor, etc. Optionally, the processor 1401 is implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). In some embodiments, the processor 1401 includes a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1401 is integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1401 also includes an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0264] In some embodiments, the memory 1402 includes one or more computer-readable storage media, optionally, the computer-readable storage medium is non-transitory. Optionally, the memory 1402 also includes a high-speed random access memory and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1402 is used to store at least one program code, which is executed by the processor 1401 to implement the virtual character-based interaction method provided in each embodiment of the present application.
[0265] In some embodiments, terminal 1400 may optionally include a peripheral device interface 1403 and at least one peripheral device. Processor 1401, memory 1402, and peripheral device interface 1403 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral device interface 1403 via a bus, signal lines, or circuit boards. Specifically, the peripheral device may include at least one of a radio frequency circuit 1404, a display screen 1405, a camera assembly 1406, an audio circuit 1407, and a power supply 1408.
[0266] The peripheral device interface 1403 can be used to connect at least one I / O (Input / Output)-related peripheral device to the processor 1401 and the memory 1402. In some embodiments, the processor 1401, the memory 1402, and the peripheral device interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1401, the memory 1402, and the peripheral device interface 1403 are implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0267] RF circuit 1404 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. RF circuit 1404 communicates with communication networks and other communication devices via electromagnetic signals. RF circuit 1404 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. RF circuit 1404 optionally includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. RF circuit 1404 optionally communicates with other terminals via at least one wireless communication protocol. Such wireless communication protocols include, but are not limited to, metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, RF circuit 1404 also includes circuitry related to NFC (Near Field Communication), which is not limited in this application.
[0268] The display screen 1405 is used to display a UI (User Interface). Optionally, the UI includes graphics, text, icons, videos, and any combination thereof. When the display screen 1405 is a touch screen display, the display screen 1405 also has the ability to collect touch signals on the surface or above the surface of the display screen 1405. The touch signal can be input as a control signal to the processor 1401 for processing. Optionally, the display screen 1405 is also used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, there is one display screen 1405, which is set on the front panel of the terminal 1400; in other embodiments, there are at least two display screens 1405, which are respectively set on different surfaces of the terminal 1400 or in a folding design; in still other embodiments, the display screen 1405 is a flexible display screen, which is set on the curved surface or folding surface of the terminal 1400. Even optionally, the display screen 1405 is set into a non-rectangular irregular shape, that is, a special-shaped screen. Optionally, the display screen 1405 is made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0269] The camera assembly 1406 is used to capture images or videos. Optionally, the camera assembly 1406 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1406 also includes a flash. Optionally, the flash is a monochrome temperature flash, or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which is used for light compensation at different color temperatures.
[0270] In some embodiments, the audio circuit 1407 includes a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1401 for processing, or input them into the radio frequency circuit 1404 to achieve voice communication. For the purpose of stereo sound collection or noise reduction, there are multiple microphones, which are respectively arranged in different parts of the terminal 1400. Optionally, the microphone is an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signals from the processor 1401 or the radio frequency circuit 1404 into sound waves. Optionally, the speaker is a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1407 also includes a headphone jack.
[0271] Power supply 1408 is used to power various components in terminal 1400. Optionally, power supply 1408 is AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 1408 includes a rechargeable battery, the rechargeable battery supports wired charging or wireless charging. The rechargeable battery is also configured to support fast charging technology.
[0272] In some embodiments, the terminal 1400 further includes one or more sensors 1410 , including but not limited to: an acceleration sensor 1411 , a gyroscope sensor 1412 , a pressure sensor 1413 , an optical sensor 1414 , and a proximity sensor 1415 .
[0273] In some embodiments, the accelerometer 1411 detects the magnitude of acceleration along the three coordinate axes of the coordinate system established by the terminal 1400. For example, the accelerometer 1411 is used to detect the components of gravity acceleration along the three coordinate axes. Optionally, the processor 1401 controls the display screen 1405 to display the user interface in a landscape or portrait view based on the gravity acceleration signal collected by the accelerometer 1411. The accelerometer 1411 is also used to collect game or user motion data.
[0274] In some embodiments, the gyroscope sensor 1412 detects the orientation and rotation angle of the terminal 1400. The gyroscope sensor 1412 and the accelerometer sensor 1411 work together to collect the user's 3D movements on the terminal 1400. The processor 1401 implements the following functions based on the data collected by the gyroscope sensor 1412: motion sensing (for example, changing the UI based on the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0275] Optionally, the pressure sensor 1413 is provided on the side frame of the terminal 1400 and / or the lower layer of the display screen 1405. When the pressure sensor 1413 is provided on the side frame of the terminal 1400, it can detect the user's grip signal of the terminal 1400, and the processor 1401 performs left and right hand recognition or shortcut operations based on the grip signal collected by the pressure sensor 1413. When the pressure sensor 1413 is provided on the lower layer of the display screen 1405, the processor 1401 controls the operable controls on the UI interface based on the user's pressure operation on the display screen 1405. The operable controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0276] Optical sensor 1414 is used to detect ambient light intensity. In one embodiment, processor 1401 controls the display brightness of display screen 1405 based on the ambient light intensity detected by optical sensor 1414. Specifically, when the ambient light intensity is high, the display brightness of display screen 1405 is increased; when the ambient light intensity is low, the display brightness of display screen 1405 is decreased. In another embodiment, processor 1401 also dynamically adjusts the capture parameters of camera assembly 1406 based on the ambient light intensity detected by optical sensor 1414.
[0277] Proximity sensor 1415, also known as a distance sensor, is typically located on the front panel of terminal 1400. Proximity sensor 1415 is used to detect the distance between the user and the front of terminal 1400. In one embodiment, when proximity sensor 1415 detects that the distance between the user and the front of terminal 1400 is gradually decreasing, processor 1401 controls display screen 1405 to switch from the screen-on state to the screen-off state. When proximity sensor 1415 detects that the distance between the user and the front of terminal 1400 is gradually increasing, processor 1401 controls display screen 1405 to switch from the screen-off state to the screen-on state.
[0278] Those skilled in the art will understand that Figure 14 The structure shown in the figure does not constitute a limitation on the terminal 1400, and the terminal 1400 can include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0279] Figure 15This is a structural diagram of an electronic device provided in an embodiment of the present application. The electronic device 1500 may have relatively large differences due to different configurations or performances. The electronic device 1500 includes one or more processors (Central Processing Units, CPU) 1501 and one or more memories 1502, wherein the memory 1502 stores at least one computer program, and the at least one computer program is loaded and executed by the one or more processors 1501 to implement the virtual character-based interaction method provided in the above-mentioned embodiments. Optionally, the electronic device 1500 also has components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The electronic device 1500 also includes other components for realizing device functions, which are not described here.
[0280] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including at least one computer program. The at least one computer program can be executed by a processor in a terminal to implement the virtual character-based interaction method described in each of the above embodiments. For example, the computer-readable storage medium includes ROM (Read-Only Memory), RAM (Random-Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, and optical data storage device.
[0281] In an exemplary embodiment, a computer program product or computer program is also provided, including one or more program codes stored in a computer-readable storage medium. One or more processors of an electronic device can read the one or more program codes from the computer-readable storage medium, and the one or more processors can execute the one or more program codes, so that the electronic device can perform the virtual character-based interaction method of the above-mentioned embodiment.
[0282] Those skilled in the art will understand that all or part of the steps to implement the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program. Optionally, the program is stored in a computer-readable storage medium. Optionally, the above-mentioned storage medium is a read-only memory, a disk or an optical disk, etc.
[0283] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A virtual character-based interactive method, characterized in that: The method comprises: In response to a pressing operation on any virtual character in the virtual environment, displaying interaction options within a target range of the virtual character, the interaction options being used to initiate interaction with the virtual character, the interaction options including a voice interaction option; When the virtual character is in a pressed state, in response to a sliding operation from a pressing point of the pressing operation to the voice interaction option, determining that the voice interaction option is in a selected state, and prompting a target user to input a voice interaction message; When the voice interaction option is selected, continuously recording the input voice interaction message, and simultaneously displaying a first prompt effect based on the virtual character, the first prompt effect being used to indicate that an interaction message initiated to the virtual character is being obtained; When the voice interaction message is acquired, canceling the display of the first prompt effect; The voice interaction message is sent to the terminal corresponding to the virtual character. The terminal corresponding to the virtual character is used to play the received voice interaction message in real time when the instant playback permission is enabled in the virtual environment. During the playback of the voice interaction message, playback prompt information of the voice interaction message is displayed. Moreover, when playing the voice interaction message, a second prompt effect is displayed based on the target virtual character. The playback prompt information is used to prompt the target virtual character who initiated the voice interaction message, and the second prompt effect is used to prompt the target virtual character who initiated the voice interaction message.
2. The method according to claim 1, characterized in that The displaying of interactive options within the target range of the virtual character further comprises: A text interaction option is displayed within the target range of the virtual character, where the text interaction option is used to send a text interaction message to the virtual character.
3. The method according to claim 2, characterized in that The method further comprises: In response to a selection operation on the text interaction option, a conversation interface with the virtual character is displayed, and a text interaction message input based on the conversation interface is obtained.
4. The method according to claim 3, characterized in that The method further comprises: When the voice interaction option switches from the selected state to the unselected state, stop recording the voice interaction message; or In response to a sliding operation from the voice interaction option to a target position, the recorded voice interaction message is deleted, and the target position is any position that is greater than a distance threshold from the voice interaction option.
5. The method according to claim 1, wherein The pressing duration of the pressing operation is greater than the target duration; The displaying of interactive options within the target range of the virtual character includes: When the virtual character is in a pressed state, displaying the interactive option; or, When the virtual character switches from the pressed state to the unpressed state, the interactive option is canceled.
6. The method according to claim 1, characterized in that The method further comprises: In response to a second touch operation on the virtual character, displaying a virtual character list, wherein the virtual character list displays one or more list items, each list item corresponding to a virtual character that is in the virtual environment and supports interaction; Based on the target list item corresponding to the virtual character in the virtual character list, an interactive control for initiating interaction with the virtual character is displayed.
7. The method according to claim 6, characterized in that The target list item and other list items are displayed in different ways in the virtual character list, and the other list items refer to list items other than the target list item.
8. The method according to claim 6, characterized in that The interactive control is a recording control, and the method further includes: In response to a pressing operation on the recording control, recording the input voice interaction message; When the recording control switches from a pressed state to a non-pressed state, the voice interaction message is sent to a terminal corresponding to the virtual character.
9. The method according to claim 6, characterized in that The second touch operation is a pressing operation with a pressing duration less than or equal to a target duration.
10. A virtual character-based interactive method, characterized in that: The method comprises: receiving a voice interaction message associated with a target virtual character in the virtual environment; When the instant play permission is enabled in the virtual environment, the received voice interaction message is played in real time; During the playback of the voice interaction message, in the virtual environment, displaying playback prompt information for the voice interaction message, the playback prompt information being used to prompt the target virtual character that initiated the voice interaction message; and, while playing the voice interaction message, displaying a second prompt special effect based on the target virtual character, the second prompt special effect being used to prompt the target virtual character that initiated the voice interaction message; The process of the terminal corresponding to the target virtual character sending the voice interaction message includes: In response to a pressing operation on any virtual character in the virtual environment, displaying an interaction option within a target range of the virtual character, the interaction option being used to initiate interaction with the virtual character, the interaction option including a voice interaction option; When the virtual character is in a pressed state, in response to a sliding operation from a pressing point of the pressing operation to the voice interaction option, determining that the voice interaction option is in a selected state, and prompting a target user to input a voice interaction message; When the voice interaction option is selected, continuously recording the input voice interaction message, and simultaneously displaying a first prompt effect based on the virtual character, the first prompt effect being used to indicate that an interaction message initiated to the virtual character is being obtained; When the voice interaction message is acquired, canceling the display of the first prompt effect; The voice interaction message is sent to a terminal corresponding to the virtual character.
11. The method according to claim 10, characterized in that The method further comprises: When the instant playback permission is closed in the virtual environment, the voice interaction message is stored; wherein, when an opening operation of the conversation interface with the target virtual character is detected, a playback option of the voice interaction message is displayed in the conversation interface.
12. The method according to claim 10, characterized in that The method further comprises: When the voice interaction message is finished playing, the second prompt effect is canceled.
13. An interactive device based on a virtual character, characterized in that: The device comprises: A display module, configured to display, in response to a pressing operation on any virtual character in the virtual environment, interaction options within a target range of the virtual character, the interaction options being used to initiate interaction with the virtual character, the interaction options including voice interaction options; The acquisition module includes a recording unit; The recording unit is configured to, when the virtual character is in a pressed state, determine that the voice interaction option is in a selected state in response to a sliding operation from a pressing point of the pressing operation to the voice interaction option; and continuously record the input voice interaction message when the voice interaction option is in the selected state; A module for performing the following steps: when the voice interaction option is in a selected state, prompting the target user to input a voice interaction message; The display module is further configured to display a first prompt effect based on the virtual character when the voice interaction option is selected, the first prompt effect being used to indicate that an interactive message initiated to the virtual character is being obtained; and cancel the display of the first prompt effect when the voice interaction message is completely obtained; A sending module is used to send the voice interaction message to the terminal corresponding to the virtual character. The terminal corresponding to the virtual character is used to play the received voice interaction message in real time when the instant playback permission is enabled in the virtual environment. During the playback of the voice interaction message, playback prompt information for the voice interaction message is displayed. Moreover, when playing the voice interaction message, a second prompt effect is displayed based on the target virtual character. The playback prompt information is used to prompt the target virtual character who initiated the voice interaction message, and the second prompt effect is used to prompt the target virtual character who initiated the voice interaction message.
14. An interactive device based on a virtual character, characterized in that: The device comprises: A receiving module, configured to receive a voice interaction message associated with a target virtual character in a virtual environment; A playback module, configured to play the received voice interaction message in real time when the instant playback permission is enabled in the virtual environment; A display module is configured to display, in the virtual environment, during the process of playing the voice interaction message, playback prompt information of the voice interaction message, wherein the playback prompt information is used to prompt the target virtual character that initiated the voice interaction message; and, when playing the voice interaction message, display a second prompt special effect based on the target virtual character, wherein the second prompt special effect is used to prompt the target virtual character that initiated the voice interaction message; The process of the terminal corresponding to the target virtual character sending the voice interaction message includes: In response to a pressing operation on any virtual character in the virtual environment, displaying an interaction option within a target range of the virtual character, the interaction option being used to initiate interaction with the virtual character, the interaction option including a voice interaction option; When the virtual character is in a pressed state, in response to a sliding operation from a pressing point of the pressing operation to the voice interaction option, determining that the voice interaction option is in a selected state, and prompting a target user to input a voice interaction message; When the voice interaction option is selected, continuously recording the input voice interaction message, and simultaneously displaying a first prompt effect based on the virtual character, the first prompt effect being used to indicate that an interaction message initiated to the virtual character is being obtained; When the voice interaction message is acquired, canceling the display of the first prompt effect; The voice interaction message is sent to a terminal corresponding to the virtual character.
15. An electronic device, characterized in that: The electronic device includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the at least one computer program is loaded and executed by the one or more processors to implement the virtual character-based interaction method as described in any one of claims 1 to 9 or claims 10 to 12.
16. A storage medium, characterized in that At least one computer program is stored in the storage medium, and the at least one computer program is loaded and executed by the processor to implement the virtual character-based interaction method according to any one of claims 1 to 9 or claims 10 to 12.
17. A computer program product, characterized in that The computer program product includes at least one computer program, which is loaded and executed by a processor to implement the virtual character-based interaction method according to any one of claims 1 to 9 or claims 10 to 12.