Method and device for controlling virtual character in game and electronic terminal

By using the graphic user interface and voice control of terminal devices in the game, the non-player virtual characters are automatically controlled, which solves the problem of the pressure of players in controlling multiple characters manually at the same time, achieving higher convenience and control efficiency.

CN119158258APending Publication Date: 2024-12-20NETEASE (SHANGHAI) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411281563.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

In the game, players need to manually control the main character and the auxiliary character at the same time, resulting in high control pressure and uncontrollable behavior of the auxiliary character, affecting the player's convenience.

Method used

By displaying a virtual scene in the graphical user interface of the terminal device, responding to the control operations of the player's virtual character, and receiving voice information when the voice control is in a waiting state, converting it into game instructions, and automatically controlling non-player virtual characters to achieve Voice control assistive role.

Benefits of technology

It reduces the pressure on players to operate multiple virtual characters manually, improves control convenience, and allows for light and quick control of non-player virtual characters through voice, solving the problem of low player control convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119158258A_ABST
    Figure CN119158258A_ABST
Patent Text Reader

Abstract

The invention provides a control method and device for a virtual character in a game and an electronic terminal, relates to the technical field of games, and solves the technical problem that the convenience of controlling the virtual character by a player is relatively low. The method comprises the following steps: displaying a virtual scene of a game in a graphical user interface provided by terminal equipment; wherein the virtual scene comprises a player virtual character corresponding to the terminal equipment and a non-player virtual character used for assisting the player virtual character; in response to a control operation for the player virtual character, controlling the player virtual character to execute an action in the virtual scene according to the control operation; in response to a voice interaction trigger instruction for the non-player virtual character, controlling a voice control in the graphical user interface to enter an input waiting state; when the voice control is in an input waiting state, receiving voice information, and converting the voice information into a game instruction; and automatically controlling the non-player virtual character based on the game instruction in the process that the player virtual character executes the action in the virtual scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of game technology, and in particular to a method, device and electronic terminal for controlling a virtual character in a game. Background Art

[0002] In many games, in addition to the main character controlled by the player, there may also be some subordinate characters that serve as ancillary to the main character, such as pets, mercenaries, summoned beasts, etc. These subordinate characters can assist the main character in participating in the game, which is also part of the gameplay and part of the development system in the game. These subordinate characters are generally non-player character types.

[0003] At present, the control of such slave characters is generally pre-configured by the system, or requires manual control by the player, which means that while the player manually controls the main character, he also needs to manually control another character, the slave character. This is equivalent to the player needing to manually control multiple characters at the same time, which puts a lot of pressure on the player's manual operation of character control and is not conducive to the convenience of the player's control of the character. Summary of the invention

[0004] The purpose of the present disclosure is to provide a method, device and electronic terminal for controlling a virtual character in a game, so as to solve the technical problem that it is not convenient for players to control the virtual character.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for controlling a virtual character in a game, the method comprising:

[0006] Displaying a virtual scene of the game in a graphical user interface provided by a terminal device; wherein the virtual scene includes a player virtual character corresponding to the terminal device and a non-player virtual character used to assist the player virtual character;

[0007] In response to a control operation on the player virtual character, controlling the player virtual character to perform an action in the virtual scene according to the control operation;

[0008] In response to a voice interaction triggering instruction for the non-player virtual character, controlling the voice control in the graphical user interface to enter a waiting for input state;

[0009] When the voice control is in the waiting input state, receiving voice information and converting the voice information into game instructions;

[0010] During the process of the player virtual character performing actions in the virtual scene, the non-player virtual character is automatically controlled based on the game instructions.

[0011] In a second aspect, a control device for a virtual character in a game is provided, the device comprising:

[0012] A display module, used for displaying the virtual scene of the game in a graphical user interface provided by a terminal device; wherein the virtual scene includes a player virtual character corresponding to the terminal device and a non-player virtual character used to assist the player virtual character;

[0013] A first control module, configured to respond to a control operation on the player virtual character and control the player virtual character to perform an action in the virtual scene according to the control operation;

[0014] A second control module, configured to control the voice control in the graphical user interface to enter a waiting state for input in response to a voice interaction triggering instruction for the non-player virtual character;

[0015] A conversion module, used for receiving voice information when the voice control is in the waiting input state, and converting the voice information into game instructions;

[0016] A third control module is used to automatically control the non-player virtual character based on the game instruction when the player virtual character performs an action in the virtual scene.

[0017] In a third aspect, an embodiment of the present disclosure provides an electronic terminal, including a memory and a processor, wherein the memory stores a computer program executable on the processor, and the processor implements the method described in the first aspect when executing the computer program.

[0018] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to execute the method described in the first aspect.

[0019] The embodiments of the present disclosure bring the following beneficial effects:

[0020] The embodiments of the present disclosure provide a method, device and electronic terminal for controlling a virtual character in a game, which can display a virtual scene of the game in a graphical user interface provided by a terminal device; wherein the virtual scene includes a player virtual character corresponding to the terminal device and a non-player virtual character for assisting the player virtual character; in response to a control operation on the player virtual character, the player virtual character is controlled to perform an action in the virtual scene according to the control operation; in response to a voice interaction trigger instruction for the non-player virtual character, a voice control in the graphical user interface is controlled to enter a waiting input state; when the voice control is in the waiting input state, voice information is received and converted into a game instruction; and in the process of the player virtual character performing an action in the virtual scene, the non-player virtual character is automatically controlled based on the game instruction. In this solution, by triggering a voice control instruction for a non-player virtual character, the voice control in the graphical user interface can be controlled to enter a waiting input state, in which voice information can be received and converted into a game instruction, so that while the player virtual character is performing an action, the non-player virtual character is controlled to perform an action according to the character control instruction, thereby achieving the control of the non-player virtual character by voice while controlling the player virtual character. This voice control method does not affect the conventional manual control of the player virtual character, reduces the manual operation pressure of the player on the virtual character control, improves the convenience of the player controlling multiple virtual characters, and solves the technical problem of low convenience of the player controlling the virtual character.

[0021] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0023] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present disclosure is shown;

[0024] Figure 2 A schematic diagram of the structure of a mobile phone provided by an embodiment of the present disclosure is shown;

[0025] Figure 3 A schematic diagram of a use scenario of a touch terminal provided by an embodiment of the present disclosure is shown;

[0026] Figure 4 A schematic diagram of a flow chart of a method for controlling a virtual character in a game provided by an embodiment of the present disclosure;

[0027] Figure 5 A schematic diagram of a touch terminal displaying a graphical user interface is shown in an embodiment of the present disclosure;

[0028] Figure 6 A schematic diagram of another touch terminal for displaying a graphical user interface provided by an embodiment of the present disclosure is shown;

[0029] Figure 7 A schematic diagram of another touch terminal for displaying a graphical user interface provided by an embodiment of the present disclosure is shown;

[0030] Figure 8 A schematic diagram of another touch terminal for displaying a graphical user interface provided by an embodiment of the present disclosure is shown;

[0031] Fig. 9 A schematic diagram of another touch terminal for displaying a graphical user interface provided by an embodiment of the present disclosure is shown;

[0032] Fig.10 A schematic diagram of the structure of a control device for a virtual character in a game provided by an embodiment of the present disclosure;

[0033] Fig.11 A schematic structural diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.

[0035] The terms "including" and "having" and any variations thereof mentioned in the embodiments of the present disclosure are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0036] At present, in some games, in addition to the protagonist (player virtual character), there are some auxiliary characters (non-player virtual characters), such as pets, mercenaries, summoned beasts, etc., to assist players in participating in battles. At present, the auxiliary characters in many games are controlled by program behavior trees, and players cannot directly control and direct them, resulting in uncontrollable behavior of the auxiliary characters. Or the auxiliary characters need to be fully controlled manually, just like controlling another character, which is equivalent to controlling multiple characters. The control pressure is high, the learning cost is high, and it is not conducive to the convenience of players controlling the characters.

[0037] Based on this, the embodiments of the present disclosure provide a method, device and electronic terminal for controlling a virtual character in a game, by which the technical problem of low convenience for players to control the virtual character can be solved.

[0038] In one embodiment of the present disclosure, the control method of the virtual character in the game can be run on a local terminal device or a server. When the control method of the virtual character in the game is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.

[0039] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the control method of the virtual character in the game are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.

[0040] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.

[0041] In a possible implementation, an embodiment of the present disclosure provides a method for controlling a virtual character in a game, providing a graphical user interface through a terminal device, wherein the terminal device can be the local terminal device mentioned above, or can be a client device in the cloud interaction system mentioned above.

[0042] For example, Figure 1 As shown, Figure 1 Schematic diagram of an application scenario provided by an embodiment of the present disclosure. The application scenario may include a touch terminal (e.g., a mobile phone 102) and a server 101, and the touch terminal may communicate with the server 101 via a wired network or a wireless network. The touch terminal is used to run a virtual desktop, through which the virtual desktop may interact with the server 101 to control the content in the server 101.

[0043] The touch terminal of this embodiment is described by taking a mobile phone 102 as an example. The mobile phone 102 includes components such as a radio frequency (RF) circuit 110, a memory 120, a touch screen 130, and a processor 140. Those skilled in the art can understand that Figure 2 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. Those skilled in the art will understand that the touch screen 130 belongs to the user interface (UI), and the mobile phone 102 may include more or fewer user interfaces than shown in the figure.

[0044] The RF circuit 110 can also communicate with the network and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobilecommunication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.

[0045] The touch screen 130 can be used to display a graphical user interface and receive user operations on the graphical user interface. Specifically, the touch screen 130 may include a display panel and a touch panel. The display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. The touch panel can collect user contact or non-contact operations on or near it (for example, Figure 3 As shown, the user uses any suitable object or accessory such as a finger 103, a stylus, etc. to operate on or near the touch panel), and generates a pre-set operation instruction. In addition, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation and posture, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into information that the processor can process, and then sends it to the processor 140, and can receive the command sent by the processor 140 and execute it. In addition, the touch panel can be implemented by various types such as resistive, capacitive, infrared and surface acoustic wave, and any technology developed in the future can be used to implement the touch panel. Further, the touch panel can cover the display panel, and the user can operate on or near the touch panel covered on the display panel according to the graphical user interface displayed on the display panel. After the touch panel detects the operation on or near it, it is transmitted to the processor 140 to determine the user input, and then the processor 140 provides corresponding visual output on the display panel in response to the user input. In addition, the touch panel and the display panel can be implemented as two independent components or integrated.

[0046] The memory 120 can be used to store software programs and modules. The processor 140 executes various functional applications and data processing of the mobile phone 102 by running the software programs and modules stored in the memory 120. The memory 120 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone 102, etc. In addition, the memory 120 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0047] Processor 140 is the control center of mobile phone 102. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes various functions of mobile phone 102 and processes data by running or executing software programs and / or modules stored in memory 120, and calling data stored in memory 120, thereby monitoring the mobile phone as a whole.

[0048] The embodiments of the present disclosure are further described below in conjunction with the accompanying drawings.

[0049] Figure 4 The present invention provides a flowchart of a method for controlling a virtual character in a game according to an embodiment of the present invention. The method can be applied to an electronic terminal (e.g., Figure 2 As shown in the mobile phone 102). Figure 4 As shown, the method includes:

[0050] Step S410: displaying a virtual scene of the game in a graphical user interface provided by the terminal device.

[0051] The virtual scene includes a player virtual character corresponding to the terminal device and a non-player virtual character used to assist the player virtual character. Figure 5 As shown, the virtual scene includes a player virtual character 501 corresponding to the terminal device and a non-player virtual character 502 for assisting the player virtual character.

[0052] It should be noted that the non-player virtual character can be at any position in the virtual scene in the form of assisting the player virtual character. As an example, the player virtual character and the non-player virtual character can be at a relatively close distance in the virtual scene, for example, the non-player virtual character can follow the player virtual character to assist the player virtual character at any time, for example, the non-player virtual character can also walk in front of the player virtual character to help the player virtual character explore the way, for example, the non-player virtual character can also be located on the player virtual character, such as in a reduced form in the pocket of the player virtual character's clothes.

[0053] As another example, the non-player avatar can also leave the player avatar, such as helping the player avatar to perform auxiliary tasks in other places. As another example, the non-player avatar can also hide in the virtual scene and appear to assist the player avatar when needed.

[0054] Step S420, in response to the control operation on the player's virtual character, the player's virtual character is controlled to perform actions in the virtual scene according to the control operation.

[0055] In actual applications, the control operation may include multiple operation modes, that is, the player may direct and control the player's virtual character in multiple modes. For example, the player's virtual character may be controlled by a key operation received by an operation receiving device such as a handle, or by a player's spatial movement recognized by a somatosensory device, or by a touch operation received by a graphical user interface.

[0056] As an optional implementation, the graphical user interface includes at least one functional control for controlling the player's virtual character, such as a movement control, a shooting control, a prop release control, an aiming control, etc. In response to a touch operation on the movement control, the player's virtual character is controlled to move in the game scene; in response to a touch operation on the shooting control, the player's virtual character is controlled to shoot in the aiming direction; in response to a touch operation on the prop release control, the player's virtual character is controlled to throw a virtual prop in the aiming direction; in response to a touch operation on the aiming control, the player's virtual object is controlled to adjust the aiming direction, and so on.

[0057] For example, Figure 5 As shown, the graphical user interface displays an attack control 503 for controlling the player's virtual character to attack, and a movement control 504 for controlling the player's virtual character to move. The player can control the attack process of the player's virtual character through the attack control 503, and the player can also control the movement process of the player's virtual character through the movement control 504.

[0058] Step S430, in response to a voice interaction triggering instruction for a non-player virtual character, controlling the voice control in the graphical user interface to enter a waiting input state.

[0059] For voice interaction trigger instructions, in one possible implementation, the voice interaction trigger instruction for the non-player virtual character is generated based on at least one of the following: the terminal device receives voice information that meets the specified voice conditions; the voice control is triggered by a specified operation; the player virtual character is currently in a battle scene. For example, when the player turns on the control switch of the above-mentioned voice control, a voice interaction trigger instruction for the non-player virtual character is generated. For another example, when the player's virtual character enters the battle scene state, a voice interaction trigger instruction for the non-player virtual character is generated. For another example, when the player presses a physical button on the terminal device, or the player swings the terminal device to a specified posture, etc., a voice interaction trigger instruction can be generated to trigger voice control of the non-player virtual character. In this way, the triggering method of voice control is made more flexible and convenient.

[0060] For the above-mentioned specified voice conditions, as an example, the specified voice conditions include at least one of the following: specified voice content, specified voice volume, specified voice tone, and specified voice voiceprint. For example, based on voice information that meets the specified voice content, such as "listen to instructions", "listen to my command", "pet listens to orders", and the name of the non-player virtual character, a voice interaction trigger instruction is generated. In this way, the player can trigger voice control of the non-player virtual character by making a sound in a specified tone, making a sound at a specified volume, and speaking in a specified voice content, making the voice control triggering method more flexible and convenient.

[0061] In an optional implementation, the voice control may be a relatively large area on the graphical user interface, or a relatively small area on the graphical user interface. The voice control may be square, rectangular, frame-shaped, or other shapes (e.g., circular, etc.). The content presented by the graphical user interface may include all of the voice control, or may be a portion of the content hotspot. The voice control may be displayed in the upper left, upper right, or other locations in the graphical user interface, and this exemplary embodiment is not limited thereto.

[0062] As an example, the voice control may be displayed near the character identifier. Exemplarily, the method may further include the following steps: displaying the character identifier of the non-player virtual character in the graphical user interface; wherein the voice control is displayed in the associated area of ​​the character identifier. By prompting the player in time that the voice control of the non-player virtual character has been turned on when the voice control is triggered, it is convenient for the player to control the non-player virtual character in time.

[0063] For example, Figure 5As shown, the voice control 505 in the waiting input state is displayed around the character identification (such as the non-player virtual character avatar 506) of the non-player virtual character 502 in the graphical user interface to prompt the player that the non-player virtual character 502 can be controlled by the voice function corresponding to the voice control 505 in the waiting input state.

[0064] As a possible implementation method, when the player's virtual character is in a battle scene, if the player says specified voice content such as "follow my command" to the microphone of the terminal device, the voice control function of the non-player virtual character will be awakened. If there is no voice input within a preset time (such as one second) thereafter, the voice control function will be automatically turned off.

[0065] Step S440, when the voice control is in a state of waiting for input, receiving voice information and converting the voice information into game instructions.

[0066] As an example, the game command includes at least one of the following: a move command, a follow command, a standby command, an attack command, a character state switch command, and a skill use command. In this way, the controllable actions of the voice-controlled character include multiple ones, making the control of the non-player virtual character more flexible and comprehensive. It should be noted that the above-mentioned skill use command can indicate the use of some magic skills, such as light work skills, flying skills, and teleportation skills. Furthermore, the above-mentioned character state switch command can be a command to make the character enter a hidden state, an appearance state, a combat readiness state, and other character states.

[0067] In practical applications, the conversion method of voice information into game instructions can be multiple and not limited. Exemplarily, the voice information is converted into game instructions, including: using AI to recognize voice information to obtain voice recognition content; judging whether the voice recognition content contains specified content; the types of specified content include multiple types, and each specified content corresponds to a command operation intention; if the voice recognition content contains target specified content among multiple specified contents, then the command operation intention of the voice recognition content is determined to be the target command operation intention corresponding to the target specified content; and the game instructions for non-player virtual characters are generated according to the target command operation intention. In this way, it is determined whether the voice recognition content contains the preset specified content, and the preset command operation intention corresponding to the specified content contained therein is determined, so as to accurately and efficiently generate the character control instructions and improve the voice control efficiency.

[0068] In an optional implementation, the player can input voice content through the microphone of the terminal device, and after a pause, perform AI analysis and recognition on the input voice content to determine the player's command operation intention. Through intelligent voice recognition and voice analysis, the command operation content input by the player can be obtained and the player's command operation intention to the non-player virtual character can be accurately understood, thereby generating more accurate game instructions.

[0069] Step S450, when the player virtual character performs actions in the virtual scene, the non-player virtual character is automatically controlled based on the game instruction.

[0070] As a possible implementation, when the player manually controls the player virtual character to perform actions in the virtual scene, the player can also control the non-player virtual character to perform actions in the virtual scene through voice at the same time.

[0071] In the disclosed embodiment, by triggering a voice control instruction for a non-player virtual character, the voice control in the graphical user interface can be controlled to enter a waiting input state, in which voice information can be received and converted into a game instruction, so that while the player virtual character is performing an action, the non-player virtual character is controlled to perform an action according to the character control instruction, thereby achieving the control of the non-player virtual character by voice while controlling the player virtual character. This voice control method does not affect the conventional manual control of the player virtual character, reduces the manual operation pressure of the player on the character control, improves the convenience of the player controlling multiple characters, and achieves the effect of controlling the non-player virtual character in a light and fast manner by voice.

[0072] The above steps are described in detail below.

[0073] In some embodiments, the states of the voice to be input, input in progress, recognition in progress, recognition success, etc. can be prompted to the player, so that the player can perform voice input operations and know the voice input results in a timely manner. As an example, the above step S440 may specifically include the following steps:

[0074] When the voice control is in the waiting input state, it receives voice information and controls the voice control to enter the input state; in response to the voice information input completion instruction, it controls the voice control to enter the recognition state and recognizes the voice information to generate game instructions; in response to the generated game instructions, it controls the voice control to enter the recognition completion state.

[0075] For example, Figure 5 As shown in FIG. 5 , a voice control 505 in a waiting input state is displayed on the right side of a non-virtual character avatar 506. When the player speaks a command voice instruction to the microphone, as shown in FIG. Figure 6As shown, the voice control 507 in the input state is displayed, that is, the voice control is controlled to enter the input state. After the voice input is paused, as shown in Figure 7 As shown, the voice control 508 in the recognition state is displayed, that is, the voice control is controlled to enter the recognition state to prompt that the voice information is being recognized and analyzed. If the voice recognition is successful, the game command is successfully generated, such as Figure 8 As shown, the voice control unit enters the recognition completion state.

[0076] In the disclosed embodiment, the voice status of waiting for input, input in progress, recognition in progress, recognition success, etc. can all be prompted to the player through the voice control, so that the player can perform voice input operations and know the voice input results in a timely manner.

[0077] In some embodiments, if the speech recognition is successful, that is, the game instruction is successfully generated, the generated game instruction can be prompted so that the player can know the game instruction recognized by the input speech in time. As an example, the method can also include the following steps: The method also includes: in response to generating the game instruction, displaying prompt information representing the game instruction in the associated area of ​​the voice control.

[0078] When the player's input voice recognition is successful, feedback can be given to the player immediately, for example, Figure 8 As shown, in the voice control 509 in the recognition success state, the recognized instruction text "Follow" is fed back, so that the player can promptly know the game instruction recognized by the voice input.

[0079] In some embodiments, when voice recognition fails, the player can be notified in time through the voice control in the recognition failure state, so that the player can re-input voice to control the non-player virtual character in time. As an example, the method can also include the following steps: in response to the instruction of failure to generate the game instruction, control the voice control to enter the recognition failure state.

[0080] When the voice recognition of the player's input fails, feedback can also be given to the player immediately, for example Fig. 9 As shown, in the voice control 510 in the recognition failure state, a prompt message indicating the voice recognition failure is fed back, thereby promptly informing the player of the recognition failure, so that the player can re-input the voice in time to control the non-player virtual character.

[0081] In some embodiments, when voice recognition fails, the player can be notified in time through a prompt message indicating the failure of voice recognition, so that the player can re-input voice to control the non-player virtual character in time. As an example, the method can also include the following steps: The method also includes: in response to the instruction of failure to generate a game instruction, displaying a prompt message indicating the failure of voice recognition in the associated area of ​​the voice control.

[0082] When the voice recognition of the player's input fails, a prompt message indicating the voice recognition failure can be displayed around the voice control, thereby promptly informing the player of the recognition failure and facilitating the player to re-input the voice in time to control the non-player virtual character.

[0083] In some embodiments, when the voice information is converted into a game instruction, the player can be directly prompted around the non-player virtual character that the player has received the game instruction, making the prompt method more direct and convenient for the player to observe. As an example, the method may also include the following steps: The method also includes:

[0084] In response to the voice information being converted into a game instruction, a first prompt information is displayed in an associated area of ​​the non-player virtual character, and the first prompt information is used to indicate that the non-player virtual character has successfully received the game instruction.

[0085] For example, Figure 8 As shown, a speech bubble is used around the non-player virtual character to inform the player that the voice input has been successfully recognized and the non-player virtual character starts to execute the game command converted from the voice. For another example, the player can be prompted with the control command received directly above the head of the non-player virtual character. These methods can make the prompt method and the game command execution object more direct and obvious.

[0086] In some embodiments, when the voice information fails to be converted into a game instruction, the player can be directly prompted around the non-player virtual character that the non-player virtual character has failed to receive the game instruction, so that the player can re-input the voice to control the non-player virtual character in time. As an example, the method may also include the following steps: The method also includes:

[0087] In response to the voice information not being successfully converted into a game instruction, a second prompt information is displayed in the associated area of ​​the non-player virtual character, and the second prompt information is used to indicate that the non-player virtual character has not received the game instruction.

[0088] For example, Fig. 9 As shown, a dialog bubble is used around the non-player virtual character to inform the player that the non-player virtual character has failed to receive the game instruction. For another example, the player can be prompted directly on the top of the non-player virtual character's head that the non-player virtual character has failed to receive the game instruction. These methods can make the prompt method and prompt object more direct and obvious.

[0089] In some embodiments, the above-preset specified content can also be configured by the player, thereby improving the flexibility of the voice control content. As an example, the method can also include the following steps:

[0090] In the configuration interface of the designated content, in response to an input operation for the designated content, the designated content is configured according to the input content of the input operation. For example, the pre-set designated content can be added, deleted, and modified by the player through configuration to improve the flexibility of the voice control content.

[0091] In some embodiments, the player can re-listen to the historical voice that was successfully recognized, so that the player can review the historical voice content that was successfully controlled before. As an example, the method may also include the following steps:

[0092] In response to the voice information being converted into a game command, the voice information is determined as a successfully converted voice, and a playback control of the successfully converted voice is displayed in the graphical user interface; in response to an operation on the playback control, the successfully converted voice is played through the terminal device. In this way, the player can listen to the historical voice that has been successfully recognized again, so that the player can review the historical voice content that has been successfully controlled before.

[0093] Fig.10 A schematic diagram of a control device for a virtual character in a game is provided. The device can be applied to an electronic terminal. Fig.10 As shown, the control device 1000 of the virtual character in the game includes:

[0094] The first display module 1001 is used to display the virtual scene of the game in the graphical user interface provided by the terminal device; wherein the virtual scene includes the player virtual character corresponding to the terminal device and the non-player virtual character used to assist the player virtual character;

[0095] A first control module 1002, configured to respond to a control operation on the player virtual character and control the player virtual character to perform an action in the virtual scene according to the control operation;

[0096] A second control module 1003 is used to control the voice control in the graphical user interface to enter a waiting state for input in response to a voice interaction triggering instruction for the non-player virtual character;

[0097] The conversion module 1004 is used to receive voice information when the voice control is in the waiting input state, and convert the voice information into a game instruction;

[0098] The third control module 1005 is used to automatically control the non-player virtual character based on the game instruction when the player virtual character performs an action in the virtual scene.

[0099] Through the above method, by triggering a voice control instruction for the non-player virtual character, the voice control in the graphical user interface can be controlled to enter a waiting input state, in which voice information can be received and converted into a game instruction, so that while the player virtual character performs an action, the non-player virtual character is controlled to perform an action according to the character control instruction, thereby achieving the control of the non-player virtual character by voice while controlling the player virtual character. This voice control method does not affect the conventional manual control of the player virtual character, reduces the manual operation pressure of the player on the character control, improves the convenience of the player controlling multiple characters, and achieves the effect of controlling the non-player virtual character in a light and fast manner by voice.

[0100] In a feasible implementation manner, the voice interaction triggering instruction for the non-player virtual character is generated based on at least one of the following:

[0101] The terminal device receives voice information that meets the specified voice condition;

[0102] The voice control is triggered by a specified operation;

[0103] The player's virtual character is currently in a combat scene.

[0104] In a feasible implementation manner, the specified voice condition includes at least one of the following: specified voice content, specified voice volume, specified voice tone, and specified voice print.

[0105] In a feasible embodiment, the conversion module is specifically used for:

[0106] When the voice control is in the waiting input state, receiving voice information, and controlling the voice control to enter the inputting state;

[0107] In response to a voice information input completion instruction, the voice control is controlled to enter a recognition state, and the voice information is recognized to generate a game instruction;

[0108] In response to generating a game instruction, the voice control is controlled to enter a recognition completion state.

[0109] In a feasible embodiment, the device further comprises:

[0110] The fourth control module is used to respond to the instruction of failure to generate the game instruction and control the voice control to enter the recognition failure state.

[0111] In a feasible embodiment, the game instruction includes at least one of the following:

[0112] Move commands, follow commands, standby commands, attack commands, switch character status commands, and use skill commands.

[0113] In a feasible embodiment, the device further comprises:

[0114] The second display module is used to display first prompt information in the associated area of ​​the non-player virtual character in response to the voice information being converted into the game instruction, wherein the first prompt information is used to indicate that the non-player virtual character has successfully received the game instruction.

[0115] In a feasible embodiment, the device further comprises:

[0116] The third display module is used to display second prompt information in the associated area of ​​the non-player virtual character in response to the voice information not being successfully converted into a game instruction, wherein the second prompt information is used to indicate that the non-player virtual character has not received the game instruction.

[0117] In a feasible embodiment, the device further comprises:

[0118] The fourth display module is used to respond to the generation of the game instruction and display the prompt information representing the game instruction in the associated area of ​​the voice control.

[0119] In a feasible embodiment, the device further comprises:

[0120] The fifth display module is used to respond to the instruction of failure to generate the game instruction and display the prompt information indicating the failure of the voice recognition in the associated area of ​​the voice control.

[0121] In a feasible embodiment, the device further comprises:

[0122] A sixth display module is used to display the character identification of the non-player virtual character in the graphical user interface; wherein the voice control is displayed in an associated area of ​​the character identification.

[0123] In a feasible embodiment, the conversion module is specifically used for:

[0124] Using AI to recognize the voice information to obtain voice recognition content;

[0125] Determining whether the voice recognition content contains specified content; the specified content includes multiple types, and each of the specified content corresponds to a command operation intention;

[0126] If the speech recognition content includes a target designated content among the multiple designated contents, determining the command operation intention of the speech recognition content as the target command operation intention corresponding to the target designated content;

[0127] A game instruction for the non-player virtual character is generated according to the target command operation intention.

[0128] In a feasible embodiment, the device further comprises:

[0129] The configuration module is used to, in the configuration interface of the designated content, in response to an input operation for the designated content, configure the designated content according to input content of the input operation.

[0130] In a feasible embodiment, the device further comprises:

[0131] a seventh display module, configured to, in response to the voice information being converted into the game command, determine the voice information as a successfully converted voice, and display a play control of the successfully converted voice in the graphical user interface;

[0132] A playing module is used to play the successfully converted voice through the terminal device in response to an operation on the playing control.

[0133] The control device for a virtual character in a game provided by the embodiment of the present disclosure has the same technical features as the control method for a virtual character in a game provided by the above-mentioned embodiment, and therefore can solve the same technical problems and achieve the same technical effects.

[0134] Fig.11 The structure diagram of an electronic device provided by an embodiment of the present disclosure is shown, including: a memory 1101, a processor 1102 and a bus 1103, wherein the memory 1101 stores machine-readable instructions executable by the processor 1102. When the electronic device runs a method for controlling a virtual character in a game in an embodiment, the processor 1102 communicates with the memory 1101 through the bus 1103, and the processor 1102 executes the machine-readable instructions, and the processor 1102 executes the preamble of the method item to perform the following steps:

[0135] Displaying a virtual scene of the game in a graphical user interface provided by a terminal device; wherein the virtual scene includes a player virtual character corresponding to the terminal device and a non-player virtual character used to assist the player virtual character;

[0136] In response to a control operation on the player virtual character, controlling the player virtual character to perform an action in the virtual scene according to the control operation;

[0137] In response to a voice interaction triggering instruction for the non-player virtual character, controlling the voice control in the graphical user interface to enter a waiting for input state;

[0138] When the voice control is in the waiting input state, receiving voice information and converting the voice information into game instructions;

[0139] During the process of the player virtual character performing actions in the virtual scene, the non-player virtual character is automatically controlled based on the game instructions.

[0140] In a feasible implementation manner, the voice interaction triggering instruction for the non-player virtual character is generated based on at least one of the following:

[0141] The terminal device receives voice information that meets the specified voice condition;

[0142] The voice control is triggered by a specified operation;

[0143] The player's virtual character is currently in a combat scene.

[0144] In a feasible implementation manner, the specified voice condition includes at least one of the following: specified voice content, specified voice volume, specified voice tone, and specified voice print.

[0145] In a feasible implementation manner, when the processor receives voice information and converts the voice information into game instructions when the voice control is in the waiting input state, it is specifically used to:

[0146] When the voice control is in the waiting input state, receiving voice information, and controlling the voice control to enter the inputting state;

[0147] In response to a voice information input completion instruction, the voice control is controlled to enter a recognition state, and the voice information is recognized to generate a game instruction;

[0148] In response to generating a game instruction, the voice control is controlled to enter a recognition completion state.

[0149] In one feasible embodiment, the processor is further configured to:

[0150] In response to an instruction of failure to generate a game instruction, the voice control is controlled to enter a recognition failure state.

[0151] In a feasible embodiment, the game instruction includes at least one of the following:

[0152] Move commands, follow commands, standby commands, attack commands, switch character status commands, and use skill commands.

[0153] In one feasible embodiment, the processor is further configured to:

[0154] In response to the voice information being converted into the game instruction, first prompt information is displayed in the associated area of ​​the non-player virtual character, and the first prompt information is used to indicate that the non-player virtual character has successfully received the game instruction.

[0155] In one feasible embodiment, the processor is further configured to:

[0156] In response to the voice information not being successfully converted into a game instruction, a second prompt information is displayed in the associated area of ​​the non-player virtual character, wherein the second prompt information is used to indicate that the non-player virtual character has not received the game instruction.

[0157] In one feasible embodiment, the processor is further configured to:

[0158] In response to generating a game instruction, prompt information representing the game instruction is displayed in an associated area of ​​the voice control.

[0159] In one feasible embodiment, the processor is further configured to:

[0160] In response to the instruction of failure to generate the game instruction, a prompt message indicating the failure of the voice recognition is displayed in the associated area of ​​the voice control.

[0161] In one feasible embodiment, the processor is further configured to:

[0162] Displaying a character identification of the non-player virtual character in the graphical user interface;

[0163] The voice control is displayed in an area associated with the role identifier.

[0164] In a feasible implementation manner, when the processor converts the voice information into game instructions, it is specifically used to:

[0165] Using AI to recognize the voice information to obtain voice recognition content;

[0166] Determining whether the voice recognition content contains specified content; the specified content includes multiple types, and each of the specified content corresponds to a command operation intention;

[0167] If the speech recognition content includes a target designated content among the multiple designated contents, determining the command operation intention of the speech recognition content as the target command operation intention corresponding to the target designated content;

[0168] A game instruction for the non-player virtual character is generated according to the target command operation intention.

[0169] In one feasible embodiment, the processor is further configured to:

[0170] In the configuration interface of the designated content, in response to an input operation for the designated content, the designated content is configured according to input content of the input operation.

[0171] In one feasible embodiment, the processor is further configured to:

[0172] In response to the voice information being converted into the game instruction, determining the voice information as a successfully converted voice, and displaying a playback control of the successfully converted voice in the graphical user interface;

[0173] In response to the operation on the play control, the successfully converted voice is played through the terminal device.

[0174] Through the above method, by triggering a voice control instruction for the non-player virtual character, the voice control in the graphical user interface can be controlled to enter a waiting input state, in which voice information can be received and converted into a game instruction, so that while the player virtual character performs an action, the non-player virtual character is controlled to perform an action according to the character control instruction, thereby achieving the control of the non-player virtual character by voice while controlling the player virtual character. This voice control method does not affect the conventional manual control of the player virtual character, reduces the manual operation pressure of the player on the character control, improves the convenience of the player controlling multiple characters, and achieves the effect of controlling the non-player virtual character in a light and fast manner by voice.

[0175] In practical applications, the memory 1101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 1104 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0176] The bus 1103 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0177] Among them, the memory 1101 is used to store programs, and the processor 1102 executes the program after receiving the execution instruction. The method executed by the device defined by the process disclosed in any embodiment of the present disclosure can be applied to the processor 1102 or implemented by the processor 1102.

[0178] The processor 1102 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 1102. The above processor 1102 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 1101, and the processor 1102 reads the information in the memory 1101 and completes the steps of the above method in combination with its hardware.

[0179] The present disclosure also provides a computer-readable storage medium, on which a computer program is stored. The computer program is executed when a processor is running, and the processor performs the following steps:

[0180] Displaying a virtual scene of the game in a graphical user interface provided by a terminal device; wherein the virtual scene includes a player virtual character corresponding to the terminal device and a non-player virtual character used to assist the player virtual character;

[0181] In response to a control operation on the player virtual character, controlling the player virtual character to perform an action in the virtual scene according to the control operation;

[0182] In response to a voice interaction triggering instruction for the non-player virtual character, controlling the voice control in the graphical user interface to enter a waiting for input state;

[0183] When the voice control is in the waiting input state, receiving voice information and converting the voice information into game instructions;

[0184] During the process of the player virtual character performing actions in the virtual scene, the non-player virtual character is automatically controlled based on the game instructions.

[0185] In a feasible implementation manner, the voice interaction triggering instruction for the non-player virtual character is generated based on at least one of the following:

[0186] The terminal device receives voice information that meets the specified voice condition;

[0187] The voice control is triggered by a specified operation;

[0188] The player's virtual character is currently in a combat scene.

[0189] In a feasible implementation manner, the specified voice condition includes at least one of the following: specified voice content, specified voice volume, specified voice tone, and specified voice print.

[0190] In a feasible implementation manner, when the processor receives voice information and converts the voice information into game instructions when the voice control is in the waiting input state, it is specifically used to:

[0191] When the voice control is in the waiting input state, receiving voice information, and controlling the voice control to enter the inputting state;

[0192] In response to a voice information input completion instruction, the voice control is controlled to enter a recognition state, and the voice information is recognized to generate a game instruction;

[0193] In response to generating a game instruction, the voice control is controlled to enter a recognition completion state.

[0194] In one feasible embodiment, the processor is further configured to:

[0195] In response to an instruction of failure to generate a game instruction, the voice control is controlled to enter a recognition failure state.

[0196] In a feasible embodiment, the game instruction includes at least one of the following:

[0197] Move commands, follow commands, standby commands, attack commands, switch character status commands, and use skill commands.

[0198] In one feasible embodiment, the processor is further configured to:

[0199] In response to the voice information being converted into the game instruction, first prompt information is displayed in the associated area of ​​the non-player virtual character, and the first prompt information is used to indicate that the non-player virtual character has successfully received the game instruction.

[0200] In one feasible embodiment, the processor is further configured to:

[0201] In response to the voice information not being successfully converted into a game instruction, a second prompt information is displayed in the associated area of ​​the non-player virtual character, wherein the second prompt information is used to indicate that the non-player virtual character has not received the game instruction.

[0202] In one feasible embodiment, the processor is further configured to:

[0203] In response to generating a game instruction, prompt information representing the game instruction is displayed in an associated area of ​​the voice control.

[0204] In one feasible embodiment, the processor is further configured to:

[0205] In response to the instruction of failure to generate the game instruction, a prompt message indicating the failure of the voice recognition is displayed in the associated area of ​​the voice control.

[0206] In one feasible embodiment, the processor is further configured to:

[0207] Displaying a character identification of the non-player virtual character in the graphical user interface;

[0208] The voice control is displayed in an area associated with the role identifier.

[0209] In a feasible implementation manner, when the processor converts the voice information into game instructions, it is specifically used to:

[0210] Using AI to recognize the voice information to obtain voice recognition content;

[0211] Determining whether the voice recognition content contains specified content; the specified content includes multiple types, and each of the specified content corresponds to a command operation intention;

[0212] If the speech recognition content includes a target designated content among the multiple designated contents, determining the command operation intention of the speech recognition content as the target command operation intention corresponding to the target designated content;

[0213] A game instruction for the non-player virtual character is generated according to the target command operation intention.

[0214] In one feasible embodiment, the processor is further configured to:

[0215] In the configuration interface of the designated content, in response to an input operation for the designated content, the designated content is configured according to input content of the input operation.

[0216] In one feasible embodiment, the processor is further configured to:

[0217] In response to the voice information being converted into the game instruction, determining the voice information as a successfully converted voice, and displaying a playback control of the successfully converted voice in the graphical user interface;

[0218] In response to the operation on the play control, the successfully converted voice is played through the terminal device.

[0219] Through the above method, by triggering a voice control instruction for the non-player virtual character, the voice control in the graphical user interface can be controlled to enter a waiting input state, in which voice information can be received and converted into a game instruction, so that while the player virtual character performs an action, the non-player virtual character is controlled to perform an action according to the character control instruction, thereby achieving the control of the non-player virtual character by voice while controlling the player virtual character. This voice control method does not affect the conventional manual control of the player virtual character, reduces the manual operation pressure of the player on the character control, improves the convenience of the player controlling multiple characters, and achieves the effect of controlling the non-player virtual character in a light and fast manner by voice.

[0220] In the embodiments of the present disclosure, the computer program can also execute other machine-readable instructions when run by the processor to execute other methods described in the embodiments. For the specific execution method steps and principles, please refer to the description of the embodiments, which will not be repeated here.

[0221] In the embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0222] For another example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0223] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0224] In addition, each functional unit in the embodiments provided in the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0225] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the control method of the virtual character in the game described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.

[0226] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.

[0227] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the aforementioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the aforementioned embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present disclosure. They should all be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be based on the protection scope of the claims.

Claims

1. A method for controlling a virtual character in a game, characterized in that: The method comprises: Displaying a virtual scene of the game in a graphical user interface provided by a terminal device; wherein the virtual scene includes a player virtual character corresponding to the terminal device and a non-player virtual character used to assist the player virtual character; In response to a control operation on the player virtual character, controlling the player virtual character to perform an action in the virtual scene according to the control operation; In response to a voice interaction triggering instruction for the non-player virtual character, controlling the voice control in the graphical user interface to enter a waiting for input state; When the voice control is in the waiting input state, receiving voice information and converting the voice information into game instructions; During the process of the player virtual character performing actions in the virtual scene, the non-player virtual character is automatically controlled based on the game instructions.

2. The method according to claim 1, characterized in that The voice interaction triggering instruction for the non-player virtual character is generated based on at least one of the following: The terminal device receives voice information that meets the specified voice condition; The voice control is triggered by a specified operation; The player's virtual character is currently in a combat scene.

3. The method according to claim 2, characterized in that The specified voice condition includes at least one of the following: specified voice content, specified voice volume, specified voice tone, and specified voice print.

4. The method according to claim 1, characterized in that: When the voice control is in the waiting input state, receiving voice information and converting the voice information into a game instruction includes: When the voice control is in the waiting input state, receiving voice information, and controlling the voice control to enter the inputting state; In response to a voice information input completion instruction, the voice control is controlled to enter a recognition state, and the voice information is recognized to generate a game instruction; In response to generating a game instruction, the voice control is controlled to enter a recognition completion state.

5. The method according to claim 4, characterized in that The method further comprises: In response to an instruction of failure to generate a game instruction, the voice control is controlled to enter a recognition failure state.

6. The method according to claim 1, characterized in that The game instructions include at least one of the following: Move commands, follow commands, standby commands, attack commands, switch character status commands, and use skill commands.

7. The method according to claim 1, characterized in that The method further comprises: In response to the voice information being converted into the game instruction, first prompt information is displayed in the associated area of ​​the non-player virtual character, and the first prompt information is used to indicate that the non-player virtual character has successfully received the game instruction.

8. The method according to claim 1, characterized in that The method further comprises: In response to the voice information not being successfully converted into a game instruction, a second prompt information is displayed in the associated area of ​​the non-player virtual character, wherein the second prompt information is used to indicate that the non-player virtual character has not received the game instruction.

9. The method according to claim 4, characterized in that The method further comprises: In response to generating a game instruction, prompt information representing the game instruction is displayed in an associated area of ​​the voice control.

10. The method according to claim 5, characterized in that The method further comprises: In response to the instruction of failure to generate the game instruction, a prompt message indicating the failure of the voice recognition is displayed in the associated area of ​​the voice control.

11. The method according to claim 1, characterized in that: The method further comprises: Displaying a character identification of the non-player virtual character in the graphical user interface; The voice control is displayed in an area associated with the role identifier.

12. The method according to claim 1, characterized in that The converting the voice information into a game instruction comprises: Using AI to recognize the voice information to obtain voice recognition content; Determining whether the voice recognition content contains specified content; the specified content includes multiple types, and each of the specified content corresponds to a command operation intention; If the speech recognition content includes a target designated content among a plurality of designated contents, determining the command operation intention of the speech recognition content as the target command operation intention corresponding to the target designated content; A game instruction for the non-player virtual character is generated according to the target command operation intention.

13. The method according to claim 12, characterized in that The method further comprises: In the configuration interface of the designated content, in response to an input operation for the designated content, the designated content is configured according to input content of the input operation.

14. The method according to claim 1, characterized in that The method further comprises: In response to the voice information being converted into the game instruction, determining the voice information as a successfully converted voice, and displaying a playback control of the successfully converted voice in the graphical user interface; In response to the operation on the play control, the successfully converted voice is played through the terminal device.

15. A control device for a virtual character in a game, characterized in that: The device comprises: A display module, used for displaying the virtual scene of the game in a graphical user interface provided by a terminal device; wherein the virtual scene includes a player virtual character corresponding to the terminal device and a non-player virtual character used to assist the player virtual character; A first control module, configured to respond to a control operation on the player virtual character and control the player virtual character to perform an action in the virtual scene according to the control operation; A second control module, configured to control the voice control in the graphical user interface to enter a waiting state for input in response to a voice interaction triggering instruction for the non-player virtual character; A conversion module, used for receiving voice information when the voice control is in the waiting input state, and converting the voice information into game instructions; A third control module is used to automatically control the non-player virtual character based on the game instruction when the player virtual character performs an action in the virtual scene.

16. An electronic terminal comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 14 are implemented.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to execute the method according to any one of claims 1 to 14.