Game role control method and device, equipment and storage medium
Through voice control methods, players' voice information is identified and classified, preset command modes are matched, voice content is analyzed to determine game control instructions, and the problem of low freedom and efficiency of game character control in the prior art is solved, improving the gaming experience.
Patent Information
- Application Number
- CN202411014971.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-07-26
AI Technical Summary
The existing game character control methods limit the freedom of game characters and the inefficiency of input control commands, resulting in delayed game character operation and affecting the user's gaming experience.
By obtaining player voice information, voice attribute recognition and classification processing, matching preset command modes, analyzing voice content to determine target game control instructions, and realizing voice control of game characters.
It improves the control freedom and input efficiency of game characters, reduces operation delay, and improves the user's gaming experience.
Smart Images

Figure CN118976240A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a game character control method, device, equipment and storage medium. Background Art
[0002] In the game world, game characters can have various states, such as running, jumping, attacking, dying, being happy, etc., and the expressions or behaviors of game characters can be controlled by setting corresponding control instructions. Game character control is mainly a mechanism for operating and controlling characters in the game. This control can be achieved through player input, thereby affecting the character's behavior and game progress. In different game types, the method and importance of character control are also different.
[0003] In the related art, control instructions are usually input through a physical controller or a touch screen, and the game character is controlled according to the control instructions. However, the existing game character control method limits the degree of freedom in controlling the game character, and the game character can only be controlled by selecting a fixed mark displayed on the touch screen or the physical controller to input the control instruction. In addition, the method of inputting control instructions through a physical controller or a touch screen will also cause a delay in the operation of the game character due to the low input efficiency, thereby affecting the user's gaming experience. Summary of the invention
[0004] The embodiments of the present application provide a game character control method, device, equipment and storage medium, which solve the problem that the existing game character control method limits the freedom of the game character and the problem of game character operation delay caused by low input efficiency of control commands. The game character can be controlled by voice, the game character can be freely controlled, the input efficiency of control commands is improved, the game character delay is avoided, and the user's gaming experience is correspondingly improved.
[0005] In a first aspect, an embodiment of the present application provides a game character control method, comprising:
[0006] Acquire player voice information, perform sound attribute recognition on the player voice information, and obtain sound attribute information, wherein the player voice information includes a plurality of voice information for controlling different game characters;
[0007] Classify the player voice information according to the timbre information in the sound attribute information, and determine the character sound attribute information and character content information corresponding to each game character according to the classification result;
[0008] Matching the character voice attribute information with a preset command mode, and determining a target command mode according to the matching result;
[0009] Performing content analysis on the character content information, and determining a target game control instruction in the target command mode according to the analysis result, wherein the target command mode includes a plurality of game control instructions;
[0010] The corresponding game character is controlled according to the target game control instruction.
[0011] Optionally, the player voice information includes multiple character sound attribute information and multiple character content information, and the classifying and processing the player voice information according to the timbre information in the sound attribute information, and determining the character sound attribute information and character content information corresponding to each game character according to the classification result, includes:
[0012] Determining a first association relationship between each timbre information and each character's voice attribute information and each character's content information;
[0013] The player voice information is classified and processed according to the first association relationship, and the character sound attribute information and character content information corresponding to each game character in the classification result are determined according to the preset second association relationship.
[0014] Optionally, the classifying and processing the player voice information according to the first association relationship, and determining the character sound attribute information and character content information corresponding to each game character in the classification result according to a preset second association relationship, includes:
[0015] According to the first association relationship, each timbre information and the character sound attribute information and the character content information associated with each timbre information are determined as the same classification information;
[0016] The game characters associated with the timbre information in each classification information, as well as the character sound attribute information and the character content information corresponding to each game character are determined according to the second association relationship.
[0017] Optionally, the determining of the first association relationship between each timbre information and each character sound attribute information and each character content information includes:
[0018] Determine respectively the first starting time point and the timbre detection duration of each timbre information and the second starting time point and the detection duration of each attribute of each sound attribute in the sound attribute information of each character;
[0019] Comparing the first starting time point with the second starting time point to obtain a first comparison result, comparing the timbre detection duration with the detection durations of the various attributes to obtain a second comparison result, calculating the content length according to the timbre detection duration and the speech rate information in the character voice attribute information, and comparing the content length with the content length in the various character content information to obtain a third comparison result;
[0020] According to the first comparison result, the second comparison result and the third comparison result, each timbre information is associated with the corresponding character voice attribute information and character content information to determine a first association relationship.
[0021] Optionally, matching the character voice attribute information with a preset command mode and determining a target command mode according to the matching result includes:
[0022] Determine the sound intensity information and pitch information in the character's sound attribute information, and calculate the character's sound level according to the sound intensity information and pitch information and a preset weight coefficient;
[0023] The character voice level is matched with a preset command mode to determine a target command mode.
[0024] Optionally, the preset command mode includes a movement mode, an attack mode, and a command mode, and the step of matching the character sound level with the preset command mode to determine the target command mode includes:
[0025] In a case where the character voice level is a first-level voice, determining a movement model matching the first-level voice as a target command mode;
[0026] In a case where the character's voice level is a second-level voice, determining a command model matching the second-level voice as a target command mode;
[0027] In the case where the character sound level is a third-level sound, an attack model matching the third-level sound is determined as a target command pattern.
[0028] Optionally, the performing content parsing on the character content information and determining the target game control instruction in the target command mode according to the parsing result includes:
[0029] The character content information is segmented to obtain a plurality of keywords, semantic analysis is performed on the plurality of keywords respectively, game control instructions having the same meaning as the keywords are determined according to the analysis results, and the game control instructions are determined as target game control instructions.
[0030] In a second aspect, an embodiment of the present application provides a game character control device, comprising:
[0031] A sound attribute recognition module, used to obtain player voice information, perform sound attribute recognition on the player voice information, and obtain sound attribute information, wherein the player voice information includes a plurality of voice information for controlling different game characters;
[0032] A voice information classification module, used to classify the player voice information according to the timbre information in the voice attribute information, and determine the role voice attribute information and role content information corresponding to each game role according to the classification result;
[0033] A pattern matching module, used for matching the character voice attribute information with a preset command pattern, and determining a target command pattern according to the matching result;
[0034] A content analysis module, used for analyzing the content of the role;
[0035] A control instruction determination module, used to determine a target game control instruction in the target command mode according to the analysis result, wherein the target command mode includes a plurality of game control instructions;
[0036] The character control module is used to control the corresponding game character according to the target game control instruction.
[0037] In a third aspect, an embodiment of the present application provides a game character control device, the device comprising: one or more processors; a storage device configured to store one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the game character control method described in the first aspect.
[0038] In a fourth aspect, an embodiment of the present application provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the game character control method as described in the first aspect.
[0039] The embodiment of the present application obtains the player's voice information, identifies the sound attributes of the player's voice information, and obtains the sound attribute information, wherein the player's voice information includes multiple voice information for controlling different game characters; classifies the player's voice information according to the timbre information in the sound attribute information, and determines the character sound attribute information and character content information corresponding to each game character according to the classification result; matches the character sound attribute information with the preset command mode, and determines the target command mode according to the matching result; performs content analysis on the character content information, and determines the target game control instruction in the target command mode according to the analysis result, and the target command mode includes multiple game control instructions; and controls the corresponding game character according to the target game control instruction. The voices of multiple players in the player's voice information can be distinguished according to the timbre information, so that the character content information and the character sound attribute information issued by different game characters can be accurately identified. It is also possible to judge the player's mood or needs based on the character sound attribute information and determine the target command mode. By further analyzing the character content information, the target game control instruction can be quickly and accurately determined, avoiding the problem of operation delay caused by the traditional character control scheme, and improving the player's game experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 is a flow chart of a game character control method provided by an embodiment of the present application;
[0041] Figure 2 It is a flow chart of a method for classifying and processing player voice information provided by an embodiment of the present application;
[0042] Figure 3 is a flow chart of a first association relationship determination method provided in an embodiment of the present application;
[0043] Figure 4 is a flow chart of a method for determining a target command model provided by an embodiment of the present application;
[0044] Figure 5 It is a structural schematic diagram of a game character control device provided in an embodiment of the present application;
[0045] Figure 6 It is a structural schematic diagram of a game character control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0047] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0048] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0049] The following, in conjunction with the accompanying drawings, describes in detail the game character control method, device, equipment and medium provided in the embodiments of the present application through specific embodiments and their application scenarios.
[0050] The game character control method provided in the embodiment of the present application is used for controlling the scene of the character in the game through voice commands during the game process. Based on the above usage scenarios, it can be understood that the execution subject of this solution is a mobile phone, a tablet computer, a laptop computer, etc.
[0051] Figure 1 is a flowchart of a game character control method provided by an embodiment of the present application, such as Figure 1 As shown, including:
[0052] Step S101, obtaining player voice information, performing sound attribute recognition on the player voice information, and obtaining sound attribute information, wherein the player voice information includes a plurality of voice information for controlling different game characters.
[0053] Among them, the player voice information is the voice information sent by each player during the game process, and the player voice information may include character information, control information, and dialogue information between characters, etc. The sound attribute information may be used to represent the characteristics of the sound, and may be used to distinguish the object that generates the sound, and the characteristics of different sounds, etc. The sound attribute information may include the volume of the sound and the pitch of the sound, etc. The game character may be a virtual character controlled and played by the game player, and the game character may be controlled to run, jump or attack, etc. by sending corresponding control instructions on the game terminal. In one embodiment, the player voice information can be obtained through a microphone, and the player voice information may contain one or more player voice information at the same time. After the player voice information is obtained, the player voice information is identified by sound attributes to obtain one or more tone information in the player voice information.
[0054] In a possible embodiment, since the player may be in a noisy environment, the acquired player voice information will also contain noisy sounds. In order to improve the accuracy of sound attribute recognition, the player voice information may be subjected to noise reduction processing and echo processing to obtain processed player voice information, and sound attribute recognition is performed on the processed player voice information to obtain sound attribute information corresponding to the player voice information.
[0055] Step S102: classify the player voice information according to the timbre information in the sound attribute information, and determine the character sound attribute information and character content information corresponding to each game character according to the classification result.
[0056] Among them, the timbre information is the distinctive characteristic of the sound in terms of waveform. Different vibrations of objects have their own unique characteristics. These characteristics determine the quality and characteristics of the sound, and the sources and characteristics of various sounds can be distinguished based on the timbre information. Therefore, different player voices can be distinguished by timbre information. The character sound attribute information can be the sound attribute information corresponding to each game character, such as the pitch information of each character. The character content information can be used to represent the specific voice content of each character. The character content information can be voice content or text content, wherein the text content corresponding to each character can also be text content in different languages, such as Chinese, English, etc. If the character content information is voice content, the voice content can be dialects of different regions. In one embodiment, it is determined that each timbre information is associated with other player voice information, and the player voice information associated with different timbre information is determined as different categories. Since different player roles can be distinguished by timbre information, the association relationship between each category and the player role can be determined based on the association relationship between the pre-set player role and the timbre information. The player voice information in each category can represent the character sound attribute information and character content information corresponding to each player role.
[0057] Step S103: Match the character's voice attribute information with a preset command pattern, and determine a target command pattern according to the matching result.
[0058] Among them, the preset command mode is a control mode of the character, such as a character hiding mode, which is used to control the hiding position or hiding time of the character, etc. The target command mode can be the execution mode that ultimately controls the character. In one embodiment, the speech rate information is matched with multiple preset command modes. When the speech rate information meets the speech rate value interval of the corresponding preset command mode, it can be determined that the speech rate information matches the preset command mode corresponding to the speech rate value interval, and the preset command mode corresponding to the speech rate value interval is determined to be the target command mode. Exemplarily, if the speech rate information is 100 words per minute, and the speech rate value interval corresponding to the character hiding mode is 95-110, it can be determined that the voice information matches the character hiding mode, and the character hiding mode is the target command mode.
[0059] Step S104, performing content analysis on the character content information, and determining a target game control instruction in the target command mode according to the analysis result, wherein the target command mode includes a plurality of game control instructions.
[0060] Wherein, the target game control instruction is a command for ultimately controlling the game character. Optionally, the target command mode includes multiple game control instructions. Exemplarily, if the target command mode is a character hiding mode, the character hiding mode may include control instructions such as hiding in place, hiding trees, and hiding houses. In one embodiment, the character content information is parsed to obtain one or more parsed words, and it is determined whether there are parsed words with the same name as the preset control instruction in the one or more parsed words, wherein different control names are used to represent different game control instructions. If there are parsed words with the same name as the preset control instruction, the target game control instruction is determined according to the control instruction name corresponding to the parsed words. Exemplarily, if the character content information is "hide in place at point A", the character content information can be parsed to obtain parsed words such as "at point A", "carry out", "hide in place", etc. The target command mode is the character hiding mode, and the character hiding mode includes game control instructions such as hiding in place, hiding trees, and hiding houses. According to the above parsed words, it can be known that the parsed word "hide in place" is the same as the game control instruction with the control name "hide in place", and the target game control instruction can be determined to be the hide in place instruction.
[0061] Step S105: Control the corresponding game character according to the target game control instruction.
[0062] Exemplarily, if it is determined that the target game control instruction is a hide-on-place instruction, the game character is controlled to hide on-place.
[0063] The above method obtains the player's voice information, identifies the sound attributes of the player's voice information, and obtains the sound attribute information, wherein the player's voice information includes multiple voice information for controlling different game characters; classifies the player's voice information according to the timbre information in the sound attribute information, and determines the character sound attribute information and character content information corresponding to each game character according to the classification result; matches the character sound attribute information with the preset command mode, and determines the target command mode according to the matching result; performs content analysis on the character content information, and determines the target game control instruction in the target command mode according to the analysis result, and the target command mode includes multiple game control instructions; and controls the corresponding game character according to the target game control instruction. The voices of multiple players in the player's voice information can be distinguished according to the timbre information, so that the character content information and the character sound attribute information issued by different game characters can be accurately identified. It is also possible to judge the player's mood or needs based on the character sound attribute information and determine the target command mode. By further analyzing the character content information, the target game control instruction can be quickly and accurately determined, avoiding the problem of operation delay caused by the traditional character control scheme and improving the player's game experience.
[0064] In one embodiment, the performing content parsing on the character content information and determining the target game control instruction in the target command mode according to the parsing result includes:
[0065] The character content information is segmented to obtain a plurality of keywords, semantic analysis is performed on the plurality of keywords respectively, game control instructions having the same meaning as the keywords are determined according to the analysis results, and the game control instructions are determined as target game control instructions.
[0066] For example, if the character content information is "hide at the current position", the character content information is segmented to obtain multiple keywords, namely "at the current position", "perform", and "hide". The target command mode is the character hiding mode, which includes game control instructions such as hiding in place, hiding with trees, and hiding with houses. By performing semantic analysis on the above keywords, it can be seen that the parsed word "at the current position" has the same meaning as the "in place" in the control name "hide in place", so it can be determined that the target game control instruction is the hiding in place instruction.
[0067] As described above, by processing the character content information and performing semantic analysis on keywords, the target game control command is determined based on the meaning of the keywords, which can avoid the need for players to pre-learn the control command name before using the voice control function, further improving the user experience and increasing the scope of application of the voice control method.
[0068] Figure 2 is a flow chart of a method for classifying and processing player voice information provided by an embodiment of the present application. Figure 2 As shown, including:
[0069] Step S201: Determine a first association relationship between each timbre information, each character sound attribute information, and each character content information.
[0070] Optionally, the player voice information includes multiple character voice attribute information and multiple character content information. Since the player voice information may include multiple players' voice information, and each player's voice information has corresponding character voice attribute information and character content information, the player voice information includes the character voice attribute information and character content information corresponding to multiple players.
[0071] The first association relationship is the association relationship between each timbre information and the corresponding character sound attribute information and character content information. In one embodiment, the association relationship between the timbre information and the character sound attribute information is determined based on the overlapping duration of the sound duration corresponding to the timbre information and the sound duration corresponding to the tone in the character sound attribute information or the duration corresponding to the intensity. When the overlapping duration exceeds the set duration threshold, the timbre information is determined to be associated with the character sound attribute information. The duration of the character content information is calculated based on the preset speech speed information, and when the difference between the duration of the character content information and the sound duration corresponding to the timbre information is within the preset time range, the timbre information is determined to be associated with the character content information, and the first association relationship is determined based on the association relationship between the timbre information and the character sound attribute information and the association relationship between the timbre information and the character content information.
[0072] Step S202: classify the player voice information according to the first association relationship, and determine the character sound attribute information and character content information corresponding to each game character in the classification result according to the preset second association relationship.
[0073] The second association relationship refers to the association relationship between the timbre information and the game character, and the association relationship between the timbre information and the game character information can be determined based on the historical game character control data. In one embodiment, since the player voice information contains a variety of timbre information, each timbre information corresponds to a first association relationship. Therefore, when classifying the player voice information, the player voice information corresponding to each first association relationship can be determined as one category. According to each first association relationship, the character sound attribute information and character content information associated with the same timbre information are determined as the same category, and the game character corresponding to the timbre information is determined according to the second association relationship, so that the character sound attribute information and character content information corresponding to each game character are determined based on the classification result and the relationship between the timbre information and the game character.
[0074] As described above, the character information, the character sound attribute information and the character content information can be quickly and accurately determined through the timbre information and the first association relationship as well as the second association relationship, which is beneficial to improving the efficiency and accuracy of subsequent determination of target control instructions based on the character sound attribute information and the character content information.
[0075] In one embodiment, the classifying and processing the player voice information according to the first association relationship, and determining the character sound attribute information and character content information corresponding to each game character in the classification result according to the preset second association relationship, includes:
[0076] According to the first association relationship, each timbre information and the character sound attribute information and the character content information associated with each timbre information are determined as the same classification information;
[0077] The game characters associated with the timbre information in each classification information, as well as the character sound attribute information and the character content information corresponding to each game character are determined according to the second association relationship.
[0078] Exemplarily, the timbre information corresponding to each category and the character sound attribute information and character content information associated with the timbre information are determined to be the same category information. Different categories have different timbre information. According to a preset second association relationship, the timbre information in each category can be determined to correspond to a game character. After determining the category corresponding to the game character, the character sound attribute information and character content information in each category corresponding to each game character can be determined.
[0079] Since each classification information contains corresponding timbre information, each classification information can be directly represented by the timbre information when determining the classification information, and the game character corresponding to each classification can be quickly determined based on the second association relationship, thereby improving the efficiency of determining the character sound attribute information and character content information corresponding to each game character.
[0080] Figure 3 is a flow chart of a first association relationship determination method provided in an embodiment of the present application, such as Figure 3 As shown, including:
[0081] Step S301, respectively determine the first starting time point and timbre detection duration of each timbre information and the second starting time point and each attribute detection duration of each sound attribute in each character's sound attribute information.
[0082] Wherein, the first starting time point of the timbre information can be the time point when the timbre information starts to be detected and the time point when the timbre information disappears. The timbre detection duration is used to indicate the total duration of detecting the timbre information, and can be determined according to the time interval of the first starting time. The second starting time of the sound attribute can be the time point when other sound attributes other than the timbre information start to be detected and the time point when the sound attribute disappears. The attribute detection duration is also used to indicate the total duration of detecting other attribute information other than the timbre. In one embodiment, the starting detection time of each timbre information, the total detection duration of the timbre information, the starting detection time of the sound attribute, and the total detection duration of the sound attribute are determined respectively. Wherein the character sound attribute information can include a variety of sound attributes, such as pitch and speech speed.
[0083] Step S302, compare the first starting time point with the second starting time point to obtain a first comparison result, compare the timbre detection duration with the detection duration of each attribute to obtain a second comparison result, calculate the content length according to the timbre detection duration and the speaking speed information in the character voice attribute information, and obtain a third comparison result by comparing the content length with the content length in the content information of each character.
[0084] In one embodiment, the first starting time point is compared with the second starting time point. If the first starting time point is the same as the second starting time point, and the timbre detection duration is the same as the attribute detection duration, it can be considered that the timbre information and the voice attribute information of each character are generated and disappeared synchronously without interruption. At this time, it can be determined that the player who generated the timbre information is the same player as the player who generated the voice attribute information of the character. At the same time, the total duration of the player's voice transmission can be determined based on the timbre detection duration of the player. The content length is calculated based on the total duration of the voice transmission and the recognized speech speed information. The content length can be expressed by the number of characters. The calculated content length is compared with the content length in the character content information to determine whether the calculated number of characters is the same as the actual character length of the character content information.
[0085] Step S303: Associating each timbre information with the corresponding character voice attribute information and character content information to determine a first association relationship according to the first comparison result, the second comparison result and the third comparison result.
[0086] Exemplarily, if the first starting time point is the same as the second starting time point, the timbre detection duration is the same as the attribute detection duration, and the calculated number of characters is the same as the actual character length of the character content information, then it can be determined that the association relationship between the timbre information, the character sound attribute information and the character content information is the first association relationship, that is, the player who sends the character content information and the player corresponding to the timbre information and the character sound attribute information are the same player.
[0087] As described above, by determining the first association between the timbre information and the sound attribute information of each character and the content information of each character based on the starting time point and detection duration of the timbre information and each sound attribute and the content length, the accuracy of determining the game character based on the player's voice information can be improved, thereby further improving the accuracy of controlling the game character.
[0088] Figure 4 is a flow chart of a method for determining a target command model provided by an embodiment of the present application, such as Figure 4 As shown, including:
[0089] Step S401: Determine the sound intensity information and pitch information in the character's sound attribute information, and calculate the character's sound level according to the sound intensity information and pitch information and a preset weight coefficient.
[0090] Among them, the sound intensity information can be that the sound intensity refers to the strength of the sound, which is the basis for distinguishing musical sounds and is determined by the strength of the main tone in the sound signal. The objective evaluation scale of the sound intensity is the amplitude of the sound, that is, the amplitude of the mechanical wave in the sound signal. The amplitude is proportional to the sound intensity. The larger the amplitude, the stronger the sound intensity, and vice versa. The pitch information can be that the pitch refers to various sounds of different heights, that is, the height of the sound, which is one of the basic characteristics of the sound. The height of the pitch is determined by the vibration frequency, and the two are positively correlated. The higher the frequency, the higher the pitch, and vice versa. Since the strength or height of the sound can represent the player's emotions, such as when the emotions are more excited during the process of fighting, the sound intensity information and pitch information will be relatively high. Specifically, the sound intensity coefficient and the pitch coefficient can be pre-set according to the degree of influence of the historical sound intensity information and the historical pitch information on the player's game emotions, such as 60% and 40% respectively. The total value of the sound attribute is calculated according to the actually recognized sound intensity information, the preset sound intensity coefficient, the pitch information and the preset pitch coefficient, and the sound level of the character to which it belongs is determined according to the total value of the sound attribute. For example, if the total value of the sound attribute is less than or equal to 50%, the sound level of the character is a first-level sound, if the total value of the sound attribute is greater than 50% and less than or equal to 70%, the sound level of the character is a second-level sound, and if the total value of the sound attribute is greater than 70%, the sound level of the character is a third-level sound.
[0091] Step S402: Match the character's voice level with a preset command mode to determine a target command mode.
[0092] The target command mode that matches the character's voice level is determined according to the preset command mode matching rules. For example, when the character's voice level is determined to be a first-level sound, the first-level sound level can be matched with the character's hiding mode and moving mode respectively according to the preset command mode matching rules, and the character's hiding mode and moving mode are determined to be target command modes.
[0093] As mentioned above, by determining the sound intensity information and pitch information in the character's sound attribute information, calculating the character's sound level based on the sound intensity information and pitch information and a preset weight coefficient, and matching the character's sound level with a preset command pattern to determine the target command pattern, the scope of determining the target control instruction can be narrowed accordingly, thereby improving the control efficiency of the game character, and the total value of the sound attribute can be calculated through the preset weight coefficient to ensure the accuracy of determining the target command pattern.
[0094] In one embodiment, the preset command mode includes a movement mode, an attack mode, and a command mode, and the step of matching the character sound level with the preset command mode to determine the target command mode includes:
[0095] In a case where the character voice level is a first-level voice, determining a movement model matching the first-level voice as a target command mode;
[0096] In a case where the character's voice level is a second-level voice, determining a command model matching the second-level voice as a target command mode;
[0097] In the case where the character sound level is a third-level sound, an attack model matching the third-level sound is determined as a target command pattern.
[0098] Among them, the movement mode is a mode for controlling the player's movement behavior, and the movement mode may include control instructions such as forward, backward, and rotation. The attack mode is a mode for controlling the player's attack behavior, such as control instructions such as shooting and attacking. The command mode is a mode for controlling the player to command teammates, and may include control instructions such as retreat and formation. When it is determined that the character sound level is a first-level sound, the first-level sound is matched with the movement model, and the movement model is determined to be a target command mode. When it is determined that the character sound level is a second-level sound, the second-level sound is matched with the command model, and the command model is determined to be a target command mode. When it is determined that the character sound level is a third-level sound, the third-level sound is matched with the attack model, and the attack model is determined to be a target command mode. The efficiency of determining the target command mode can be improved by matching each sound level with a target command mode, avoiding further screening in multiple target commands based on the character content information, thereby avoiding the situation of delayed execution of the control command.
[0099] Figure 5 is a schematic diagram of the structure of a game character control device provided in an embodiment of the present application, such as Figure 5 As shown, including:
[0100] A sound attribute recognition module 51 is used to obtain player voice information, perform sound attribute recognition on the player voice information, and obtain sound attribute information, wherein the player voice information includes a plurality of voice information for controlling different game characters;
[0101] A voice information classification module 52 is used to classify the player voice information according to the timbre information in the voice attribute information, and determine the character voice attribute information and character content information corresponding to each game character according to the classification result;
[0102] A pattern matching module 53 is used to match the character voice attribute information with a preset command pattern and determine a target command pattern according to the matching result;
[0103] A content analysis module 54, used for performing content analysis on the character content information;
[0104] A control instruction determination module 55, for determining a target game control instruction in the target command mode according to the analysis result, wherein the target command mode includes a plurality of game control instructions;
[0105] The character control module 56 is used to control the corresponding game character according to the target game control instruction.
[0106] The embodiment of the present application obtains the player's voice information, identifies the sound attributes of the player's voice information, and obtains the sound attribute information, wherein the player's voice information includes multiple voice information for controlling different game characters; classifies the player's voice information according to the timbre information in the sound attribute information, and determines the character sound attribute information and character content information corresponding to each game character according to the classification result; matches the character sound attribute information with the preset command mode, and determines the target command mode according to the matching result; performs content analysis on the character content information, and determines the target game control instruction in the target command mode according to the analysis result, and the target command mode includes multiple game control instructions; and controls the corresponding game character according to the target game control instruction. The voices of multiple players in the player's voice information can be distinguished according to the timbre information, so that the character content information and the character sound attribute information issued by different game characters can be accurately identified. It is also possible to judge the player's mood or needs based on the character sound attribute information and determine the target command mode. By further analyzing the character content information, the target game control instruction can be quickly and accurately determined, avoiding the problem of operation delay caused by the traditional character control scheme, and improving the player's game experience.
[0107] In a possible embodiment, the player voice information includes multiple character sound attribute information and multiple character content information. The voice information classification module 52 is specifically used for:
[0108] Determining a first association relationship between each timbre information and each character's voice attribute information and each character's content information;
[0109] The player voice information is classified and processed according to the first association relationship, and the character sound attribute information and character content information corresponding to each game character in the classification result are determined according to the preset second association relationship.
[0110] In a possible embodiment, the voice information classification module 52 is specifically used for:
[0111] According to the first association relationship, each timbre information and the character sound attribute information and the character content information associated with each timbre information are determined as the same classification information;
[0112] The game characters associated with the timbre information in each classification information, as well as the character sound attribute information and the character content information corresponding to each game character are determined according to the second association relationship.
[0113] In a possible embodiment, the voice information classification module 52 includes an association relationship determination unit, which is used to:
[0114] Determine respectively the first starting time point and the timbre detection duration of each timbre information and the second starting time point and the detection duration of each attribute of each sound attribute in the sound attribute information of each character;
[0115] Comparing the first starting time point with the second starting time point to obtain a first comparison result, comparing the timbre detection duration with the detection durations of the various attributes to obtain a second comparison result, calculating the content length according to the timbre detection duration and the speech rate information in the character voice attribute information, and comparing the content length with the content length in the various character content information to obtain a third comparison result;
[0116] According to the first comparison result, the second comparison result and the third comparison result, each timbre information is associated with the corresponding character voice attribute information and character content information to determine a first association relationship.
[0117] In a possible embodiment, the control instruction determination module 55 is specifically used to:
[0118] Determine the sound intensity information and pitch information in the character's sound attribute information, and calculate the character's sound level according to the sound intensity information and pitch information and a preset weight coefficient;
[0119] The character voice level is matched with a preset command mode to determine a target command mode.
[0120] In a possible embodiment, the preset command mode includes a movement mode, an attack mode and a command mode, and the control instruction determination module 55 is specifically used to:
[0121] In a case where the character voice level is a first-level voice, determining a movement model matching the first-level voice as a target command mode;
[0122] In a case where the character's voice level is a second-level voice, determining a command model matching the second-level voice as a target command mode;
[0123] In the case where the character sound level is a third-level sound, an attack model matching the third-level sound is determined as a target command pattern.
[0124] In a possible embodiment, the control instruction determination module 55 is specifically used to:
[0125] The character content information is segmented to obtain a plurality of keywords, semantic analysis is performed on the plurality of keywords respectively, game control instructions having the same meaning as the keywords are determined according to the analysis results, and the game control instructions are determined as target game control instructions.
[0126] The embodiment of the present application also provides a game character control device, which can be integrated with a game character control device provided in the embodiment of the present application. Figure 6 Schematic diagram of a game character control device provided by an embodiment of the present application. Figure 6 The game character control device includes: an input device 63, an output device 64, a memory 62 and one or more processors 61; the memory 62 is used to store one or more programs; when one or more programs are executed by one or more processors 61, the one or more processors 61 implement the game character control method provided in the above embodiment. The input device 63, the output device 64, the memory 62 and the processor 61 can be connected by a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0127] The memory 62, as a computing device readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the game character control method provided in any embodiment of the present application. The memory 62 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to the use of the device, etc. In addition, the memory 62 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 62 may further include a memory remotely arranged relative to the processor 61, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0128] The input device 63 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 64 may include a display device such as a display screen.
[0129] The processor 61 executes the software programs, instructions and modules stored in the memory 62 to execute various functional applications and data processing of the device, that is, to implement the above-mentioned game character control method.
[0130] The game character control apparatus, device and computer provided above can be used to execute the game character control method provided in any of the above embodiments, and have corresponding functions and beneficial effects.
[0131] The present application also provides a storage medium storing computer executable instructions. When the computer executable instructions are executed by a computer processor, they are used to execute the game character control method provided in the above embodiment. The game character control method includes:
[0132] Acquire player voice information, perform sound attribute recognition on the player voice information, and obtain sound attribute information, wherein the player voice information includes a plurality of voice information for controlling different game characters;
[0133] Classify the player voice information according to the timbre information in the sound attribute information, and determine the character sound attribute information and character content information corresponding to each game character according to the classification result;
[0134] Matching the character voice attribute information with a preset command mode, and determining a target command mode according to the matching result;
[0135] Performing content analysis on the character content information, and determining a target game control instruction in the target command mode according to the analysis result, wherein the target command mode includes a plurality of game control instructions;
[0136] The corresponding game character is controlled according to the target game control instruction.
[0137] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.
[0138] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application, whose computer executable instructions are not limited to the game character control method described above, can also execute related operations in the game character control method provided in any embodiment of the present application.
[0139] The game character control apparatus, device and storage medium provided in the above embodiments can execute the game character control method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the game character control method provided in any embodiment of the present application.
[0140] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.
Claims
1. A game character control method, It is characterized in that include: Acquire player voice information, perform sound attribute recognition on the player voice information, and obtain sound attribute information, wherein the player voice information includes a plurality of voice information for controlling different game characters; Classify the player voice information according to the timbre information in the sound attribute information, and determine the character sound attribute information and character content information corresponding to each game character according to the classification result; Matching the character voice attribute information with a preset command mode, and determining a target command mode according to the matching result; Performing content analysis on the character content information, and determining a target game control instruction in the target command mode according to the analysis result, wherein the target command mode includes a plurality of game control instructions; The corresponding game character is controlled according to the target game control instruction.
2. The game character control method according to claim 1, It is characterized in that The player voice information includes a plurality of character voice attribute information and a plurality of character content information, and the player voice information is classified according to the timbre information in the voice attribute information, and the character voice attribute information and character content information corresponding to each game character are determined according to the classification result, including: Determining a first association relationship between each timbre information and each character's voice attribute information and each character's content information; The player voice information is classified and processed according to the first association relationship, and the character sound attribute information and character content information corresponding to each game character in the classification result are determined according to the preset second association relationship.
3. The game character control method according to claim 2, It is characterized in that The classifying and processing the player voice information according to the first association relationship, and determining the character sound attribute information and character content information corresponding to each game character in the classification result according to the preset second association relationship, includes: According to the first association relationship, each timbre information and the character sound attribute information and the character content information associated with each timbre information are determined as the same classification information; The game characters associated with the timbre information in each classification information, as well as the character sound attribute information and the character content information corresponding to each game character are determined according to the second association relationship.
4. The game character control method according to claim 2, It is characterized in that The determining of the first association between each timbre information, each character sound attribute information and each character content information includes: Determine respectively the first starting time point and the timbre detection duration of each timbre information and the second starting time point and the detection duration of each attribute in the voice attribute information of each character; Comparing the first starting time point with the second starting time point to obtain a first comparison result, comparing the timbre detection duration with the detection durations of the various attributes to obtain a second comparison result, calculating the content length according to the timbre detection duration and the speech rate information in the character voice attribute information, and comparing the content length with the content length in the various character content information to obtain a third comparison result; According to the first comparison result, the second comparison result and the third comparison result, each timbre information is associated with the corresponding character voice attribute information and character content information to determine a first association relationship.
5. The game character control method according to claim 1, It is characterized in that The step of matching the character voice attribute information with a preset command mode and determining a target command mode according to the matching result includes: Determine the sound intensity information and pitch information in the character's sound attribute information, and calculate the character's sound level according to the sound intensity information and pitch information and a preset weight coefficient; The character voice level is matched with a preset command mode to determine a target command mode.
6. The game character control method according to claim 5, It is characterized in that The preset command mode includes a movement mode, an attack mode and a command mode, and the step of matching the character sound level with the preset command mode to determine the target command mode includes: In a case where the character voice level is a first-level voice, determining a movement model matching the first-level voice as a target command mode; In a case where the character's voice level is a second-level voice, determining a command model matching the second-level voice as a target command mode; In the case where the character sound level is a third-level sound, an attack model matching the third-level sound is determined as a target command pattern.
7. The game character control method according to claim 1, It is characterized in that The performing content analysis on the character content information and determining the target game control instruction in the target command mode according to the analysis result includes: The character content information is segmented to obtain a plurality of keywords, semantic analysis is performed on the plurality of keywords respectively, game control instructions having the same meaning as the keywords are determined according to the analysis results, and the game control instructions are determined as target game control instructions.
8. A game character control device, It is characterized in that include: A sound attribute recognition module, used to obtain player voice information, perform sound attribute recognition on the player voice information, and obtain sound attribute information, wherein the player voice information includes a plurality of voice information for controlling different game characters; A voice information classification module, used to classify the player voice information according to the timbre information in the voice attribute information, and determine the role voice attribute information and role content information corresponding to each game role according to the classification result; A pattern matching module, used for matching the character voice attribute information with a preset command pattern, and determining a target command pattern according to the matching result; A content analysis module, used for analyzing the content of the role; A control instruction determination module, used to determine a target game control instruction in the target command mode according to the analysis result, wherein the target command mode includes a plurality of game control instructions; The character control module is used to control the corresponding game character according to the target game control instruction.
9. A game character control device, the device include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the game character control method as described in any one of claims 1-7.
10. A storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the game character control method according to any one of claims 1 to 7 when executed by a computer processor.
Citation Information
Patent Citations
AR game control method and device, electronic equipment and storage medium
CN112295220A
Virtual object control method and device, equipment and storage medium
CN112742024A
Game control method and device, electronic equipment and storage medium
CN115364478A
Method of controlling computer device, storage medium, and computer device
US20100035686A1
