Control method and device for game role

文档序号:866363 发布日期:2021-03-19 浏览:19次 中文

阅读说明:本技术 游戏角色的控制方法和装置 (Control method and device for game role ) 是由 罗剑嵘 于 2020-12-21 设计创作,主要内容包括:本申请公开了游戏角色的控制方法和装置,涉及游戏和智能交互技术领域。具体实施方式包括:从客户端接收对所述游戏角色的至少两个控制方面中一个控制方面的用户选择信息,确定所述客户端具有对所述游戏角色的所述一个控制方面的控制权;在所述客户端参与且与所述游戏角色对应的游戏已开始的情况下,接收所述至少两个控制方面对应的不同客户端中的客户端对所述目标角色发送的语音控制指令;在所述语音控制指令对应的控制方面,对所述游戏角色执行所述语音控制指令。本申请中至少两个控制方面中每个控制方面对应的客户端的用户,可以通过说出语音控制指令,来控制游戏角色的该控制方面。从而实现多人配合对游戏角色进行语音控制。(The application discloses a control method and device for game roles, and relates to the technical field of games and intelligent interaction. The specific implementation mode comprises the following steps: receiving user selection information from a client for one of at least two control aspects of the game character, determining that the client has control over the one control aspect of the game character; under the condition that the client participates and the game corresponding to the game role is started, receiving voice control instructions sent by the client in different clients corresponding to the at least two control aspects to the target role; and in the aspect of control corresponding to the voice control instruction, executing the voice control instruction on the game role. In the application, the user of the client corresponding to each of the at least two control aspects can control the control aspect of the game role by speaking the voice control instruction. Therefore, the voice control of the game role by the cooperation of multiple persons is realized.)

1. A control method of game characters is used for a server side, and the method comprises the following steps:

receiving user selection information from a client for one of at least two control aspects of the game character, determining that the client has control over the one control aspect of the game character;

under the condition that the client participates and the game corresponding to the game role is started, receiving voice control instructions sent by the client in different clients corresponding to the at least two control aspects to the target role;

and in the aspect of control corresponding to the voice control instruction, executing the voice control instruction on the game role.

2. The method according to claim 1, wherein the user of the client corresponding to any control aspect has preset authentication information, and the preset authentication information comprises preset voiceprint information;

the method further comprises the following steps:

for the client in the different clients, determining the voiceprint information of the voice control instruction as the current voiceprint information of the client, and obtaining the current authentication information of the client, wherein the current authentication information comprises the current voiceprint information;

detecting whether the current authentication information is matched with the preset authentication information of the user of the client side, and generating a detection result;

and if the number of the unmatched continuous detection results reaches a preset number threshold value in the detection results detected by the client, generating a suspected cheating message for the client and outputting the suspected cheating message.

3. The method of claim 2, wherein the determining the voiceprint information of the voice control instruction as the current voiceprint information of the client comprises:

for the client side in the different client sides, responding to the fact that a preset authentication period is reached, and determining voiceprint information of the voice control instruction received from the client side at last;

and taking the voiceprint information as the current voiceprint information of the client.

4. The method of claim 1, wherein the method further comprises:

in response to receiving an exchange request by a first client for a second control aspect, sending an exchange request message to a second client having control over the second control aspect, wherein the first client has control over a first control aspect of the at least two control aspects;

in response to receiving the consent exchange information fed back by the second client, determining that the first client has control over the second aspect of control and determining that the second client has control over the first aspect of control;

and respectively sending the exchanged interface display data to the first client and the second client.

5. The method of any one of claims 1-4, wherein the executing the voice control instruction on the game character in the control aspect corresponding to the voice control instruction comprises:

and determining a voice instruction template matched with the voice control instruction, and executing a preset program corresponding to the voice instruction template on the game role in the aspect of control corresponding to the voice control instruction.

6. The method of claim 5, wherein the client having control of a third control aspect of the at least two control aspects is a third client, the voice instruction templates of each control aspect including voice instruction templates for at least two actions;

the determining of the voice instruction template matched with the voice control instruction, and executing a preset program corresponding to the voice instruction template on the game role in the aspect of control corresponding to the voice control instruction, include:

determining a voice command template of an action matched with the voice control command;

and in the aspect of control corresponding to the voice control instruction, executing a preset program corresponding to the voice instruction template of the action on the game role.

7. The method of claim 6, wherein the method further comprises:

receiving, from the third client, a change request for a voice instruction template of a first action in the voice instruction templates of the third control aspect, wherein the change request is sent by the third client in response to acquiring a new voice instruction template, the change request including the new voice instruction template;

and updating the voice instruction template of the first action in the voice instruction templates of the third control aspect, wherein the updated voice instruction template is the new voice instruction template.

8. The method of claim 7, wherein said updating the voice instruction template of the first action in the voice instruction templates of the third control aspect comprises:

sending a re-speaking notification for the new voice instruction template to the third client;

receiving the re-speaking voice fed back by the third client, and comparing the re-speaking voice with the new instruction template;

and updating the voice instruction template of the first action in the voice instruction templates of the third control aspect in response to the comparison result being consistent.

9. The method of claim 1, wherein the method further comprises:

for the client side in the different client sides, receiving authentication voice from the client side, determining voiceprint information of the authentication voice, and obtaining authentication information comprising the voiceprint information;

detecting whether the authentication information is matched with the preset authentication information or not, and generating a detection result;

and if the detection result indicates that the authentication information is matched with the preset authentication information, starting the game.

10. The method of claim 1, wherein the method further comprises:

under the condition that the client participates and a game corresponding to the game role starts, in response to receiving a real-time face image collected by the client in different clients, determining whether the real-time face image is matched with preset face information of a user of the client;

and if the real-time face image is determined not to be matched with the preset face information, generating a suspected cheating message for the client and outputting the suspected cheating message.

11. A method for controlling a game character, for a client, the method comprising:

in response to detecting a user selection operation on one of at least two control aspects of a game character, generating and sending user selection information indicating the user selection operation to a server, so that the server determines that the client has control over the one control aspect of the game character;

and under the condition that the game which the client participates in and corresponds to the game role starts, responding to the collected voice control instruction of the user, sending the voice control instruction to the server, so that the server receives the voice control instruction which is sent by the client in different clients corresponding to the at least two control aspects to the target role, and executing the voice control instruction to the game role in the control aspect corresponding to the voice control instruction.

12. The method of claim 11, wherein the method further comprises:

in response to the operation that the exchange identification of the second control aspect of the game role is received at the exchange interface, generating an exchange request aiming at the second control aspect and sending the exchange request to the server so as to enable the server to send an exchange request message to a second client with the control right of the second control aspect, wherein the client has the control right of the first control aspect of the game role;

and receiving the interface display data after the exchange sent by the server.

13. The method of claim 11, wherein the voice instruction templates for each control aspect include voice instruction templates for at least two actions;

the method further comprises the following steps:

in response to acquiring a new voice instruction template, generating a change request including the new instruction template;

and sending the change request to the server to enable the server to update the voice instruction template of the first action in the voice instruction templates of the third control aspect, wherein the updated voice instruction template is the new voice instruction template.

14. The method of claim 13, wherein said sending the change request to the server to cause the server to update the voice instruction template of the first action in the voice instruction templates of the third control aspect comprises:

receiving a retelling notice for the new voice instruction template sent by the server side, and outputting the retelling notice to the user;

and in response to the collection of the double-talk voice, feeding back the double-talk voice to the server so as to enable the server to compare the double-talk voice with the new instruction template, and in response to a comparison result being consistent, updating the voice instruction template of the first action in the voice instruction template in the third control aspect.

15. The method of claim 11, wherein the method further comprises:

the method comprises the steps of collecting authentication voice and sending the authentication voice to a server, wherein the server determines voiceprint information of the authentication voice to obtain authentication information comprising the voiceprint information, detects whether the authentication information is matched with preset authentication information or not, generates a detection result, and starts the game if the detection result indicates that the authentication information is matched with the preset authentication information.

16. The method of claim 11, wherein the method further comprises:

acquiring a real-time face image and sending the real-time face image to the server under the condition that the client participates and a game corresponding to the game role starts, wherein the server responds to the received real-time face image acquired by the client in different clients and determines whether the real-time face image is matched with the preset face information of the user of the client; and if the real-time face image is determined not to be matched with the preset face information, generating a suspected cheating message for the client and outputting the suspected cheating message.

17. An electronic device, comprising:

one or more processors;

a storage device for storing one or more programs,

when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-16.

18. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1-16.

Technical Field

The application relates to the technical field of computers, in particular to the technical field of games and intelligent interaction, and particularly relates to a control method and device of game roles.

Background

With the development of the gaming industry, a variety of games are coming out endlessly. As the style of games increases, the characters in the games are increasingly abundant, for example, characters, animals, cars, tanks, and so on.

In the related art, a user generally controls the actions of a character by manual operation. For example, a handle, keyboard, mouse, etc. may be used for manual control. With the development of motion sensing technology, there are some games that use motion sensing manipulation to control the actions of characters. In addition, some games are shot by a camera to determine the user's motion, so as to map the user's motion to the game character, for example, the technology can be used for dance games.

Disclosure of Invention

A method and apparatus for controlling a game character, an electronic device, and a storage medium are provided.

According to a first aspect, there is provided a method for controlling a game character, which is used for a server, the method including: receiving user selection information from a client for one of at least two control aspects of the game character, determining that the client has control over the one control aspect of the game character; under the condition that the client participates and the game corresponding to the game role is started, receiving voice control instructions sent by the client in different clients corresponding to the at least two control aspects to the target role; and in the aspect of control corresponding to the voice control instruction, executing the voice control instruction on the game role.

According to a second aspect, there is provided a control apparatus for a game character, for use in a server, the apparatus comprising: a determination unit configured to receive user selection information for one of at least two control aspects of the game character from a client, the client being determined to have control over the one control aspect of the game character; a receiving unit configured to receive, when the client participates and a game corresponding to the game character has started, a voice control instruction sent by a client among different clients corresponding to the at least two control aspects to the target character; and the execution unit is configured to execute the voice control instruction on the game role in the aspect of control corresponding to the voice control instruction.

According to a third aspect, there is provided a method of controlling a game character, for a client, the method comprising: in response to detecting a user selection operation on one of at least two control aspects of a game character, generating and sending user selection information indicating the user selection operation to a server, so that the server determines that the client has control over the one control aspect of the game character; under the condition that a game which is participated by the client and corresponds to the game role starts, responding to the collected voice control instruction of the user, and sending the voice control instruction to the server, so that the server receives the voice control instruction which is sent by the client in different clients corresponding to the at least two control aspects to the target role; and in the aspect of control corresponding to the voice control instruction, executing the voice control instruction on the game role.

According to a fourth aspect, there is provided a control apparatus of a game character for a client, the apparatus comprising: a generating unit configured to generate and send user selection information indicating one of at least two control aspects of a game character to a server in response to detecting a user selection operation on the one of the at least two control aspects, so that the server determines that the client has control over the one control aspect of the game character; a sending unit, configured to, in response to collecting a voice control instruction of a user when a game corresponding to the game character and participated in by the client has started, send the voice control instruction to the server, so that the server receives the voice control instruction sent by a client in different clients corresponding to the at least two control aspects to the target character; and in the aspect of control corresponding to the voice control instruction, executing the voice control instruction on the game role.

According to a fifth aspect, there is provided an electronic device comprising: one or more processors; a storage device for storing one or more programs which, when executed by one or more processors, cause the one or more processors to implement a method as in any one of the embodiments of the method for controlling a game character.

According to a sixth aspect, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method as in any one of the embodiments of the control method for a game character.

According to a seventh aspect, there is provided a computer program product comprising a computer program which, when executed by a processor, implements a method according to any one of the embodiments of the method of controlling a game character.

According to the scheme of the application, the user of the client corresponding to each control aspect in the at least two control aspects can control the control aspect of the game role by speaking the voice control instruction. Therefore, the voice control of the game role by the cooperation of multiple persons is realized.

Drawings

Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:

FIG. 1 is an exemplary system architecture diagram to which some embodiments of the present application may be applied;

FIG. 2 is a flow chart of one embodiment of a method of controlling a game character according to the present application;

FIG. 3 is a schematic diagram of an application scenario of a control method of a game character according to the present application;

FIG. 4 is a flow chart of yet another embodiment of a method of controlling a game character according to the present application;

FIG. 5 is a flow chart of yet another embodiment of a method of controlling a game character according to the present application;

fig. 6 is a block diagram of an electronic device for implementing a control method of a game character according to an embodiment of the present application.

Detailed Description

The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.

Fig. 1 shows an exemplary system architecture 100 to which embodiments of the game character control method or the game character control apparatus of the present application may be applied.

As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.

The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as game applications, video applications, live applications, instant messaging tools, mailbox clients, social platform software, and the like.

Here, the terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a display screen, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.

The server 105 may be a server providing various services, such as a background server providing support for the terminal devices 101, 102, 103. The background server may analyze and otherwise process data such as the user selection information and the voice control instruction, and feed back a processing result (e.g., a game screen generated by executing the voice control instruction on the target character) to the terminal device.

It should be noted that the method for controlling a game character provided in the embodiment of the present application may be executed by the server 105 or the terminal devices 101, 102, and 103, and accordingly, the control device for a game character may be provided in the server 105 or the terminal devices 101, 102, and 103.

It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.

With continued reference to FIG. 2, a flow 200 of one embodiment of a method of controlling a game character according to the present application is shown. The control method of the game role can be used for a server side, and the method can comprise the following steps:

step 201, receiving user selection information for one control aspect of at least two control aspects of the game character from a client, and determining that the client has control over the one control aspect of the game character.

In this embodiment, an execution entity (e.g., the server shown in fig. 1) on which the control method for the game character operates may receive, from the client, user selection information for one control aspect of at least two control aspects of the game character, thereby determining that the client has control over the one control aspect of the game character, that is, giving the user of the client the control right. A control aspect herein may be any one of at least two control aspects.

Each game character may correspond to at least two control aspects. The control aspects of a game character refer to which aspects the game character can be controlled, for example, the game character can be controlled by attacking and moving both control aspects. In addition, the character can also be controlled through three control aspects of attack, movement and direction. In particular, the attack herein may choose to use a different weapon, when to attack, and so on. Movement may include forward, backward, left, right, and so forth. Directions may include which attack direction to use, towards which target to attack. In the case of controlling a character by attacking and moving two control aspects, the contents included in the above-described both attacking and directing control aspects may be combined into the contents included in the attack.

Step 202, when the client participates in the game and the game corresponding to the game role has started, receiving a voice control instruction sent by a client in different clients corresponding to the at least two control aspects to the target role.

In this embodiment, the execution main body may receive, when a game corresponding to the game character has started in which the client participates, a voice control instruction transmitted from a client among different clients corresponding to the at least two control aspects. Here, the client corresponding to each of the at least two control aspects is different, that is, the client corresponding to different control aspects is different. The voice control instruction sent by the user of any client to the game role can be collected by any client and sent to the server, so that the server, namely the execution main body, can receive the voice control instruction. The execution body may start the game in a case where the corresponding client exists in at least two control aspects.

Step 203, executing the voice control instruction to the game role in the aspect of control corresponding to the voice control instruction.

In this embodiment, the execution main body may execute the voice control command on the game character in terms of control corresponding to the voice control command. Specifically, the control aspect corresponding to the voice control instruction indicates that a user of a client has control right of the control aspect, wherein the client sends the voice control instruction to the server.

In the method provided by the above embodiment of the present application, a user of a client corresponding to each of at least two control aspects may control the control aspect of the game character by speaking a voice control instruction. Therefore, the voice control of the game role by the cooperation of multiple persons is realized.

In some optional implementation manners of this embodiment, a user of a client corresponding to any control aspect has preset authentication information, where the preset authentication information includes preset voiceprint information; the method further comprises the following steps: for the client in different clients, determining the voiceprint information of the voice control instruction as the current voiceprint information of the client, and obtaining the current authentication information of the client, wherein the current authentication information comprises the current voiceprint information; detecting whether the current authentication information is matched with the preset authentication information of the user of the client side, and generating a detection result; and if the number of the unmatched continuous detection results reaches a preset number threshold value in the detection results detected by the client, generating a suspected cheating message for the client and outputting the suspected cheating message.

In these optional implementations, for a client (e.g., each client) in different clients, the execution main body may determine voiceprint information of a voice control instruction sent by the client as current voiceprint information, and generate current authentication information including the current voiceprint information as current authentication information of the client. And, the execution subject can match the current authentication information of the client with the preset authentication information of the client, that is, detect whether the two are matched, and generate a detection result. The detection result may indicate a match, or a mismatch. Matching in this application may mean the same or a similarity greater than a preset threshold. In practice, the current authentication information may also include other information than voiceprint information (such as current voiceprint information), such as a face image.

If the number of the unmatched continuous detection results in the detection results detected by one client reaches the preset number threshold, the execution main body can generate a suspected cheating message for the client and output the suspected cheating message. Specifically, the suspected cheating message may indicate that the user of the client is suspected to be not the user of the game account. The execution main body may send the suspected cheating message to a preset terminal, such as a terminal of a supervisor, or may send the suspected cheating message to the client.

These implementations may avoid other users from impersonating the user's game account through voiceprint authentication.

Optionally, the determining the voiceprint information of the voice control instruction as the current voiceprint information of the client may include: for the client side in the different client sides, responding to the fact that a preset authentication period is reached, and determining voiceprint information of the voice control instruction received from the client side at last; and taking the voiceprint information as the current voiceprint information of the client.

The execution main body may determine, for a client (e.g., each client) among different clients, a voice control instruction last received from the client in response to reaching a preset authentication period, and use voiceprint information of the voice control instruction as current voiceprint information of the client. In practice, the preset authentication period may be set various time periods, such as one minute, half minute, and the like.

The optional implementation modes can perform voiceprint authentication on the user of the client once in each preset authentication period, and the problem that the detection workload is too large and resources are wasted due to too frequent real-time detection is avoided.

In some optional implementations of this embodiment, the method may further include: in response to receiving an exchange request by a first client for a second control aspect, sending an exchange request message to a second client having control over the second control aspect, wherein the first client has control over a first control aspect of the at least two control aspects; in response to receiving the consent exchange information fed back by the second client, determining that the first client has control over the second aspect of control and determining that the second client has control over the first aspect of control; and respectively sending the exchanged interface display data to the first client and the second client.

In these alternative implementations, the execution body may send the exchange request message to the second client having the control right of the second control aspect after receiving the exchange request sent by the first client for the second control aspect. The second client can output the exchange request message to the user through display or play, and the user can know the exchange willingness of the user of the first client to the control right of the control aspect. The first client has control over a first control aspect, and a user of the first client wants to exchange control over the first control aspect with a user of a second client.

If the user of the second client agrees to exchange, the corresponding operation may be performed or the agreement voice may be spoken, so that the second client may feed back agreement exchange information indicating the agreement of the user to the execution subject. The execution body may enable exchange of control of the control aspect between the first client and the second client, i.e. determining that the first client has control of the second control aspect and determining that the second client has control of the first control aspect. After the exchange, the execution body may send exchanged interface display data indicating that the control right has been exchanged to the two clients, so that the two clients display the exchanged interface.

The realization modes can realize the enhancement of the controllability of the user to the game role and the more flexible setting in the game process by exchanging the control right in the control aspect, thereby leading the control right of the game role to be more accordant with the intention of the user.

In some optional implementations of this embodiment, the method may further include: for the client side in the different client sides, receiving authentication voice from the client side, determining voiceprint information of the authentication voice, and obtaining authentication information comprising the voiceprint information; detecting whether the authentication information is matched with the preset authentication information or not, and generating a detection result; and if the detection result indicates that the authentication information is matched with the preset authentication information, starting the game.

In these alternative implementations, the execution subject may receive an authentication voice from a client (for example, each client) in different clients, and determine voiceprint information of the authentication voice, so as to obtain authentication information including the voiceprint information. Then, the execution body may detect whether the authentication information matches with preset authentication information, and obtain a detection result. If the detection result indicates a match, the game may be started.

The realization modes can firstly authenticate whether the user is the user before the game is started, avoid the condition of impersonating the game with other account numbers and ensure the security of the game account number.

In some optional implementations of this embodiment, the method further includes: under the condition that the client participates and a game corresponding to the game role starts, in response to receiving a real-time face image collected by the client in different clients, determining whether the real-time face image is matched with preset face information of a user of the client; and if the real-time face image is determined not to be matched with the preset face information, generating and outputting a suspected cheating message corresponding to the client.

In these alternative implementations, the execution subject may determine whether the real-time face image matches the preset face information in response to receiving the real-time face image acquired by a client (e.g., each client) of the different clients, when the game has started. If the client side does not match with the preset terminal, a suspected cheating message can be generated for the client side and output to the preset terminal.

The realization modes can determine whether the user performing the game operation is the user of the client or the impostor impersonating the user account in real time by utilizing real-time face detection, thereby ensuring the safety of the game account.

Continuing to refer to fig. 3, fig. 3 is a schematic diagram of an application scenario of the control method of a game character according to the present embodiment. In the application scenario of fig. 3, there are three control aspects, and the interface where the user performs control-aspect exchange may select the control rights of two other control aspects besides the control aspect of the user, for example, the user with the control aspect of "direction" may click "exchange move" or "exchange attack" to make the client send out an exchange request for "move" or "attack". If the user clicks on "exchange attack," the interface may show "waiting for exchange. The original control right of each client on the control aspect is still kept in the process of the 'waiting for switching' display. If the exchange is complete, the user may have control over the "attack" and the interface may display "exchange move" and "exchange direction".

With further reference to fig. 4, a flow 400 of yet another embodiment of a method of controlling a game character is shown. The process 400 includes the following steps:

step 401, receiving user selection information for one of at least two control aspects of the game character from a client, determining that the client has control over the one control aspect of the game character.

In this embodiment, an execution entity (e.g., the server shown in fig. 1) on which the control method for the game character operates may receive, from the client, user selection information for one control aspect of at least two control aspects of the game character, thereby determining that the client has control over the one control aspect of the game character, that is, giving the user of the client the control right. A control aspect herein may be any one of at least two control aspects.

Step 402, receiving a voice control instruction sent by a client to the target character from different clients corresponding to the at least two control aspects when the client participates and a game corresponding to the game character starts.

In this embodiment, the execution main body may receive, when a game corresponding to the game character has started in which the client participates, a voice control instruction transmitted from a client among different clients corresponding to the at least two control aspects. Here, the client corresponding to each of the at least two control aspects is different, that is, the client corresponding to different control aspects is different.

And step 403, determining a voice instruction template matched with the voice control instruction, and executing a preset program corresponding to the voice instruction template on the game role in the aspect of control corresponding to the voice control instruction.

In this embodiment, the execution subject may determine a voice command template matching the voice control command. The execution main body can execute a preset program, namely a preset code, in the control aspect corresponding to the voice control instruction. The preset program can realize the role control corresponding to the voice instruction template in the aspect of controlling the game role.

The voice instruction template is a standard voice set for the voice instruction spoken by the user, such as the voice "forward", "backward", and the like. The user says "forward" and matches the voice command template, and if the user says "forward" and does not match the voice command template.

The voice instruction template may include a voice for controlling the game character or include text corresponding to the voice for controlling the game character. Correspondingly, the execution main body can directly match the voice control instruction, namely the voice, with each voice instruction template serving as the voice, and find the voice instruction template matched with the voice control instruction. Or, the execution main body may also obtain the text corresponding to the voice control instruction, for example, perform voice recognition on the device to obtain the text, or send the voice control instruction to another electronic device and receive the text returned by the other electronic device. Then, the execution main body may match the acquired text with each voice instruction template serving as a text, so as to find a voice instruction template matched with the voice control instruction.

The embodiment can utilize the voice command template to standardize the voice spoken by the user, and avoid the problem that the voice control command spoken by the user is not uniform and cannot be recognized.

In some optional implementations of this embodiment, the client having control authority of a third control aspect of the at least two control aspects is a third client, and the voice instruction template of each control aspect includes voice instruction templates for at least two actions; step 403 may include: determining a voice command template of an action matched with the voice control command; and in the aspect of control corresponding to the voice control instruction, executing a preset program corresponding to the voice instruction template of the action on the game role.

In these alternative implementations, each voice control command may instruct the game character to perform an action, and the executing entity may determine an action that matches the voice control command. And executing the preset program corresponding to the voice instruction template of the action.

For example, the executed action may be "forward", "backward", "shoot", or "bomb attack", and the corresponding voice command template may be "forward", "backward", "BU", or "BOOM".

These implementations can specify instructions to the actions of the character so that the character can be precisely controlled by voice.

In some optional implementations of this embodiment, the method may further include: receiving, from the third client, a change request for a voice instruction template of a first action in the voice instruction templates of the third control aspect, wherein the change request is sent by the third client in response to acquiring a new voice instruction template, the change request including the new voice instruction template; and updating the voice instruction template of the first action in the voice instruction templates of the third control aspect, wherein the updated voice instruction template is the new voice instruction template.

In these alternative implementations, the execution body may receive a change request for the voice instruction template sent by the client, where the change request indicates a change to the voice instruction template of the first action in the voice instruction template of the third control aspect. The third client is any client corresponding to the at least two aspects, and may be, for example, the first client or the second client. Then, the execution body may update the voice command template of the first action among the voice command templates of the third control plane to the new voice command template.

Alternatively, the new voice instruction template changed by the user may continue to be retained after control over the control aspect is exchanged between the different clients.

In the implementation modes, the user can customize the voice instruction template, so that the instruction of the game role can be spoken according to own will, the controllability of the user on the game role is improved, and the user experience is favorably improved.

Optionally, the updating the voice instruction template of the first action in the voice instruction templates of the third control aspect may include: sending a re-speaking notification for the new voice instruction template to the third client; receiving the re-speaking voice fed back by the third client, and comparing the re-speaking voice with the new instruction template; and updating the voice instruction template of the first action in the voice instruction templates of the third control aspect in response to the comparison result being consistent.

Specifically, the execution body may send a rephrasing notification for the new voice instruction template to the third client, so that the user of the third client records the new voice instruction template again. The execution subject may compare the re-recorded voice instruction template with the voice instruction template in the change request. If the comparison result is consistent, the voice instruction template of the first action can be updated to the new voice instruction template.

The implementation modes can avoid the problem that the voice instruction template possibly has errors when the user records the voice instruction template only once, thereby ensuring the accuracy of the process of updating the voice instruction template.

As shown in fig. 5, the present application further provides a method for controlling a game character, which is applied to a client, and the method includes: step 501, in response to detecting a user selection operation on one control aspect of at least two control aspects of a game character, generating and sending user selection information indicating the user selection operation to a server, so that the server determines that the client has control over the one control aspect of the game character; step 502, in response to collecting a voice control instruction of a user when a game corresponding to the game role and participated in by the client starts, sending the voice control instruction to the server, so that the server receives the voice control instruction sent by the client in different clients corresponding to the at least two control aspects to the target role, and in the control aspect corresponding to the voice control instruction, executing the voice control instruction on the game role.

In some optional implementations of this embodiment, the method further includes: in response to the operation that the exchange identification of the second control aspect of the game role is received at the exchange interface, generating an exchange request aiming at the second control aspect and sending the exchange request to the server so as to enable the server to send an exchange request message to a second client with the control right of the second control aspect, wherein the client has the control right of the first control aspect of the game role; and receiving the interface display data after the exchange sent by the server.

In some optional implementations of the embodiment, the voice instruction templates of each control aspect include voice instruction templates for at least two actions; the method further comprises the following steps: in response to acquiring a new voice instruction template, generating a change request including the new instruction template; and sending the change request to the server to enable the server to update the voice instruction template of the first action in the voice instruction templates of the third control aspect, wherein the updated voice instruction template is the new voice instruction template.

In some optional implementation manners of this embodiment, the sending the change request to the server, so that the server updates the voice instruction template of the first action in the voice instruction templates of the third control aspect, includes: receiving a retelling notice for the new voice instruction template sent by the server side, and outputting the retelling notice to the user; responding to the collected re-speaking voice, feeding back the re-speaking voice to the server side so as to enable the server side to compare the re-speaking voice with the new instruction template, and responding to the comparison result that the comparison result is consistent, and updating the voice instruction template of the first action in the voice instruction template in the third control aspect

In some optional implementations of this embodiment, the method further includes: the method comprises the steps of collecting authentication voice and sending the authentication voice to a server, wherein the server determines voiceprint information of the authentication voice to obtain authentication information comprising the voiceprint information, detects whether the authentication information is matched with preset authentication information or not, generates a detection result, and starts the game if the detection result indicates that the authentication information is matched with the preset authentication information.

In some optional implementations of this embodiment, the method further includes: acquiring a real-time face image and sending the real-time face image to the server under the condition that the client participates and a game corresponding to the game role starts, wherein the server responds to the received real-time face image acquired by the client in different clients and determines whether the real-time face image is matched with the preset face information of the user of the client; and if the real-time face image is determined not to be matched with the preset face information, generating a suspected cheating message for the client and outputting the suspected cheating message.

There is also provided, in accordance with an embodiment of the present application, an electronic device, a readable storage medium, and a computer program product.

As shown in fig. 6, the present invention is a block diagram of an electronic device of a method for controlling a game character according to an embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.

As shown in fig. 6, the electronic apparatus includes: one or more processors 601, memory 602, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 6, one processor 601 is taken as an example.

The memory 602 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by the at least one processor, so that the at least one processor executes the control method of the game character provided by the application. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to execute the control method of a game character provided by the present application.

The memory 602, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules (e.g., the determining unit 501, the receiving unit 502, and the executing unit 503) corresponding to the control method of a game character in the embodiments of the present application. The processor 601 executes various functional applications of the server and data processing, i.e., implementing the control method of the game character in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 602.

The memory 602 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the control electronics of the game character, and the like. Further, the memory 602 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 602 optionally includes memory located remotely from the processor 601, and these remote memories may be connected to the control electronics of the game character via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.

The electronic device of the control method of the game character may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected by a bus or other means, and fig. 6 illustrates the connection by a bus as an example.

The input device 603 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the control electronics of the game character, such as a touch screen, keypad, mouse, track pad, touch pad, pointer stick, one or more mouse buttons, track ball, joystick, or other input device. The output devices 604 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.

Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.

These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.

To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.

The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.

The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server can be a cloud Server, also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server incorporating a blockchain.

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a determination unit, a reception unit, and an execution unit. The names of these units do not limit the unit itself in some cases, and for example, the execution unit may also be described as "a unit that executes the voice control command on the game character in terms of the control corresponding to the voice control command".

As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be present separately and not assembled into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: receiving user selection information from a client for one of at least two control aspects of the game character, determining that the client has control over the one control aspect of the game character; under the condition that the client participates and the game corresponding to the game role is started, receiving voice control instructions sent by the client in different clients corresponding to the at least two control aspects to the target role; and in the aspect of control corresponding to the voice control instruction, executing the voice control instruction on the game role.

The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种利用虚拟光学微动按键触发信号的方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类