Game audio output method and device, storage medium, and electronic device

By synthesizing musical instrument props and performance surfaces with virtual characters, ensemble requests and responses between virtual characters are realized, which solves the problem in the existing technology that players cannot independently control the game sound effects, and improves the interactivity of the game and the player experience.

CN112691371BActive Publication Date: 2024-09-17CHONGQING PERFECT WORLD INTERACTIVE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011577955.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-28
Publication Date
2024-09-17
Estimated Expiration
2040-12-28

AI Technical Summary

Technical Problem

In existing game technology, player characters cannot independently control game sound effects, audio output is limited by system presets, and lacks interactivity and player participation.

Method used

Instrument props and performance surfaces are synthesized through virtual characters to realize ensemble requests and responses between virtual characters. Chord instructions are generated according to the ensemble score and ensemble audio is output. Players are allowed to trigger chord instructions through the control interface to control the audio.

Benefits of technology

It enables virtual characters to independently control game sound effects, improves the interactivity and player experience of the game, and enhances the playability of the game.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112691371B
    Figure CN112691371B
Patent Text Reader

Abstract

The present invention provides a method and device for outputting game audio, a storage medium, and an electronic device, wherein the method includes: synthesizing a first musical instrument prop in response to a first synthesis instruction of a first virtual character; generating a virtual performance table and two performance seats in response to a construction instruction of the first virtual character; sending an ensemble request message in response to an ensemble instruction of the first virtual character; generating a first chord key combination and a second chord key combination if a response message is detected; detecting the first chord instruction and the second chord instruction according to the time axis of the ensemble score; and outputting ensemble audio in the virtual scene according to the first chord instruction and the second chord instruction. Through the present invention, the technical problem that the game sound effects cannot be controlled by virtual characters in the related art is solved, and the playability of the game and the user experience are improved at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and device for outputting game audio, a storage medium, and an electronic device. Background Art

[0002] In the related art, electronic games include many types, such as MOBA games (Multiplayer Online Battle Arena, MOBA for short) or role-playing games (RPG for short). In the game, the player is responsible for playing the role in a realistic or fictional world. The game scene also includes interactive characters such as non-player characters (NPC), non-interactive landscape elements, audio and other game elements.

[0003] In the related art, when outputting game audio in a game scene, the audio is generally output according to the progress of the game scenario according to a timeline or event. Every time the player character enters a location or copy, encounters a non-player character, receives a game task, etc., the system may switch the audio. In some scenarios, when a player character kills another player character in the game scene, the system may also trigger specific audio. The time and audio content of the audio in the game scene are pre-configured by the system, and the player character cannot control the game audio.

[0004] With respect to the above-mentioned problems existing in the related technologies, no effective solutions have been found so far. Summary of the invention

[0005] Embodiments of the present invention provide a method and device for outputting game audio, a storage medium, and an electronic device.

[0006] According to an embodiment of the present invention, a method for outputting game audio is provided, comprising: responding to a first synthesis instruction of a first virtual character, synthesizing a first musical instrument prop in a virtual scene according to material properties of a first musical instrument fragment resource and character properties of the first virtual character; responding to a construction instruction of the first virtual character, generating a virtual performance table and two performance seats in the virtual scene, and displaying the first virtual character on the corresponding performance seats; responding to an ensemble instruction of the first virtual character, sending an ensemble request message corresponding to a second musical instrument prop to a second virtual character according to the first musical instrument prop, and monitoring a response message fed back by the second virtual character based on the ensemble request message; if the response message is monitored, generating a first chord key combination on a first control interface of the first musical instrument prop, and generating a second chord key combination on a second control interface of the second musical instrument prop; detecting a first chord instruction triggered by the first virtual character on the first chord key combination according to the timeline of the ensemble score, and detecting a second chord instruction triggered by the second virtual character on the second chord key combination according to the timeline of the ensemble score; and outputting ensemble audio in the virtual scene according to the first chord instruction and the second chord instruction.

[0007] Optionally, generating a virtual performance surface and two performance seats in the virtual scene includes: taking the position pointed to by the building instructions as the center position, searching for a target area in the map of the virtual scene that meets preset terrain conditions and has an area larger than a preset area; generating a virtual performance surface and two performance seats on the target area, wherein the two performance seats correspond to the first musical instrument prop and the second musical instrument prop, respectively.

[0008] Optionally, sending an ensemble request message corresponding to a second musical instrument prop to a second virtual character based on the first musical instrument prop includes: selecting a set of candidate virtual characters in a communication group of the first virtual character; screening a set of second virtual characters from the set of candidate virtual characters, wherein the set of second virtual characters includes a plurality of second virtual characters, each of which has synthesized the second musical instrument prop; and sending a group ensemble request message corresponding to the second musical instrument prop to the set of second virtual characters.

[0009] Optionally, after monitoring the response message fed back by the second virtual character based on the ensemble request message, the method further includes: if response messages fed back by multiple second virtual characters are received, selecting a second virtual character from the multiple second virtual characters according to the instrument attribute value of the corresponding second musical instrument prop and the music attribute value of the corresponding second virtual character, or selecting a second virtual character from the multiple second virtual characters based on the feedback time of the response message.

[0010] Optionally, generating a first chord key combination in a first control interface of the first musical instrument prop includes: searching for a first control interface matching the ensemble score in a preset interface list; searching for a first chord key combination matching the first musical instrument prop in a preset key combination list; and displaying the first chord key combination in the first control interface.

[0011] Optionally, detecting a first chord instruction triggered by a first virtual character on the first chord key combination according to the timeline of the ensemble score includes: outputting a music score track of the ensemble score on a game client of the first virtual character; arranging index marks on the music score track, wherein each index mark corresponds to a chord tone position on the music score track; moving the timeline in the virtual scene along the direction of the first chord key combination and passing through the music score track; when the timeline overlaps with the index mark, locating the chord key at the dotted position of the clicked index mark on the game client; and generating the first chord instruction based on the chord key.

[0012] Optionally, before locating and clicking the chord key at the dot position where the index mark is located on the game client, the method further includes: generating a blocking pattern at the dot position, and / or generating a blocking screen on the display interface of the game client.

[0013] Optionally, outputting ensemble audio in the virtual scene according to the first chord instruction and the second chord instruction includes: determining a first chord audio and a second chord audio based on the first chord instruction and the second chord instruction, respectively; correcting the ensemble timing of the first chord audio and the second chord audio according to the chord beat of the ensemble score; and outputting the ensemble audio including the first chord audio and the second chord audio according to the ensemble timing.

[0014] Optionally, after correcting the ensemble timing of the first chord audio and the second chord audio according to the chord beat of the ensemble score, the method further includes: adjusting the playback timing of the skeletal animation of the first virtual character and the second virtual character based on the ensemble timing, wherein each chord audio matches a skeletal action sequence; and playing the skeletal animation of the first virtual character and the second virtual character in the virtual scene based on the playback timing.

[0015] Optionally, after outputting ensemble audio in the virtual scene according to the first chord instruction and the second chord instruction, the method further includes: receiving support information sent by a third virtual character in the virtual scene to the first virtual character and / or the second virtual character; increasing the popularity attribute value of the first virtual character and / or the second virtual character based on the support information, wherein the popularity attribute value is used to characterize the popularity of the virtual character in the virtual scene; when the popularity attribute value reaches a preset value, adding a display element in the virtual scene.

[0016] Optionally, the method also includes: responding to a third synthesis instruction of the first virtual character, synthesizing a solo music score in the virtual scene based on music score fragment resources; responding to a performance instruction of the first virtual character, searching an audio library for a solo audio that matches both the first musical instrument prop and the solo music score, outputting the solo audio in the virtual scene, and configuring an attribute gain value for the first virtual character, wherein the attribute gain value is positively correlated with the prop level of the first musical instrument prop and the historical triggering number of the solo music score.

[0017] Optionally, synthesizing the first musical instrument prop in the virtual scene according to the material properties of the first musical instrument fragment resource and the character attributes of the first virtual character includes: obtaining a resource combination type of the first musical instrument fragment resource, wherein the resource combination type is used to characterize a combination of multiple game resources; matching the instrument type of the first musical instrument prop based on the resource combination type; allocating a musical instrument shape that matches the character attributes of the first virtual character in a preset musical instrument library of the instrument type; and generating the first musical instrument prop with the musical instrument shape as the prop form, wherein each musical instrument shape corresponds to a timbre of the first musical instrument prop.

[0018] Optionally, before detecting the first chord instruction triggered by the first virtual character on the first chord key combination according to the timeline of the ensemble score, the method also includes: acquiring a plurality of scale elements and a plurality of melody elements selected by the first virtual character in a chord library; arranging and generating an original ensemble score of a preset repertoire based on the plurality of scale elements and the plurality of melody elements; and generating a target ensemble score based on the original ensemble score in response to a custom instruction of the first virtual character for the original ensemble score.

[0019] According to another embodiment of the present invention, there is provided a device for outputting game audio, comprising: a first synthesis module, for responding to a first synthesis instruction of a first virtual character, and synthesizing a first musical instrument prop in a virtual scene according to the material properties of a first musical instrument fragment resource and the character properties of the first virtual character; a first generation module, for responding to a construction instruction of the first virtual character, and generating a virtual performance table and two performance seats in the virtual scene, and displaying the first virtual character on the corresponding performance seats; a sending module, for responding to an ensemble instruction of the first virtual character, and sending an ensemble request message corresponding to a second musical instrument prop to a second virtual character according to the first musical instrument prop, and monitoring the a response message fed back by the second virtual character based on the ensemble request message; a second generating module, for generating a first chord key combination on a first control interface of the first musical instrument prop, and a second chord key combination on a second control interface of the second musical instrument prop, if the response message is detected; a detecting module, for detecting a first chord instruction triggered by the first virtual character on the first chord key combination according to the timeline of the ensemble score, and detecting a second chord instruction triggered by the second virtual character on the second chord key combination according to the timeline of the ensemble score; an output module, for outputting ensemble audio in the virtual scene according to the first chord instruction and the second chord instruction.

[0020] Optionally, the detection module includes: a first generating unit, used to respond to the building instructions of the first virtual character and generate a virtual playing surface in the virtual scene; a monitoring unit, used to monitor the response message fed back by the second virtual character based on the ensemble request message after the first virtual character sends the ensemble request message to the second virtual character; a second generating unit, used to generate a first chord key combination on the control interface of the first musical instrument prop and a second chord key combination on the control interface of the second musical instrument prop if the response message is monitored; a detection unit, used to detect a first chord instruction triggered by the first virtual character on the first chord key combination according to the timeline of the ensemble score, and to detect a second chord instruction triggered by the second virtual character on the second chord key combination according to the timeline of the ensemble score.

[0021] Optionally, the first generating module includes: a searching unit, used to search for a target area in the map of the virtual scene that meets preset terrain conditions and has an area larger than a preset area, with the position pointed to by the building instruction as the center position; and a generating unit, used to generate a virtual performance surface and two performance seats on the target area, wherein the two performance seats correspond to the first musical instrument prop and the second musical instrument prop, respectively.

[0022] Optionally, the sending module includes: a first selection unit, used to select a set of candidate virtual characters in the communication group of the first virtual character; a second selection unit, used to screen a set of second virtual characters from the set of candidate virtual characters, wherein the set of second virtual characters includes multiple second virtual characters, each of which has synthesized the second musical instrument prop; and a sending unit, used to group-send an ensemble request message corresponding to the second musical instrument prop to the set of second virtual characters.

[0023] Optionally, the device also includes: a selection module, which is used to select a second virtual character from the multiple second virtual characters according to the instrument attribute value of the corresponding second musical instrument prop and the music attribute value of the corresponding second virtual character, or select a second virtual character from the multiple second virtual characters based on the feedback time of the response message after the sending module monitors the response message fed back by the second virtual character based on the ensemble request message, if response messages fed back by multiple second virtual characters are received.

[0024] Optionally, the second generating module includes: a first search unit, used to search for a first control interface matching the ensemble score in a preset interface list; a second search unit, used to search for a first chord key combination matching the first musical instrument prop in a preset key combination list; and a display unit, used to display the first chord key combination in the first control interface.

[0025] Optionally, the detection module includes: an output unit, used to output the music score track of the ensemble music score on the game client of the first virtual character; an arrangement unit, used to arrange index marks on the music score track, wherein each index mark corresponds to a chord tone position on the music score track; a moving unit, used to move the timeline in the virtual scene along the direction of the first chord key combination and through the music score track; a positioning unit, used to locate the chord key at the dotted position of the clicked index mark on the game client when the timeline overlaps with the index mark; and a generation unit, used to generate the first chord instruction based on the chord key.

[0026] Optionally, the detection module also includes: a second generating unit, used to generate a blocking pattern at the dot position before the positioning unit locates and clicks the chord key at the dot position where the index mark is located on the game client, and / or generate a blocking picture on the display interface of the game client.

[0027] Optionally, the output module includes: a generation unit, used to generate a first chord tone and a second chord tone respectively based on the first chord instruction and the second chord instruction; a correction unit, used to correct the ensemble timing of the first chord tone and the second chord tone according to the chord beat of the ensemble score; and an output unit, used to output the first chord tone and the second chord tone according to the ensemble timing.

[0028] Optionally, the device also includes: an adjustment unit, used to adjust the playback timing of the skeletal animation of the first virtual character and the second virtual character based on the ensemble timing after the correction unit corrects the ensemble timing of the first chord audio and the second chord audio according to the chord beat of the ensemble score, wherein each chord audio matches a skeletal action sequence; and a playback unit, used to play the skeletal animation of the first virtual character and the second virtual character in the virtual scene based on the playback timing.

[0029] Optionally, the device also includes: a receiving module, used to receive support information sent by a third virtual character in the virtual scene to the first virtual character and / or the second virtual character after the output module outputs the ensemble audio in the virtual scene according to the first chord instruction and the second chord instruction; a first adding module, used to increase the popularity attribute value of the first virtual character and / or the second virtual character based on the support information, wherein the popularity attribute value is used to characterize the popularity of the virtual character in the virtual scene; and a second adding module, used to add a display element in the virtual scene when the popularity attribute value reaches a preset value.

[0030] Optionally, the device also includes: a second synthesis module, used to respond to the third synthesis instruction of the first virtual character, and synthesize the solo music score in the virtual scene according to the music score fragment resources; a configuration module, used to respond to the performance instruction of the first virtual character, query the audio library for the solo audio that matches the first musical instrument prop and the solo music score at the same time, output the solo audio in the virtual scene, and configure the attribute gain value for the first virtual character, wherein the attribute gain value is positively correlated with the prop level of the first musical instrument prop and the historical triggering number of the solo music score.

[0031] Optionally, the first synthesis module includes: an acquisition unit for acquiring a resource combination type of the first musical instrument fragment resource, wherein the resource combination type is used to characterize a combination of multiple game resources; a matching unit for matching the instrument type of the first musical instrument prop based on the resource combination type; an allocation unit for allocating a musical instrument shape that matches the character attributes of the first virtual character in a preset musical instrument library of the musical instrument type; and a generation unit for generating the first musical instrument prop with the musical instrument shape as the prop form, wherein each musical instrument shape corresponds to a timbre of the first musical instrument prop.

[0032] Optionally, the device also includes: an acquisition module, used to acquire multiple scale elements and multiple melody elements selected by the first virtual character in the chord library before the detection module detects the first chord instruction triggered by the first virtual character in the virtual scene based on the ensemble score; a third generation module, used to generate an original ensemble score of a preset repertoire based on the arrangement of the multiple scale elements and the multiple melody elements; and a fourth generation module, used to respond to the first virtual character's custom instructions for the original ensemble score, and generate a target ensemble score based on the original ensemble score.

[0033] According to yet another embodiment of the present invention, a storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when running.

[0034] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0035] According to the present invention, in response to a first synthesis instruction of a first virtual character, a first musical instrument prop in a virtual scene is synthesized according to the material properties of a first musical instrument fragment resource and the character properties of the first virtual character, in response to a construction instruction of the first virtual character, a virtual performance table and two performance seats are generated in the virtual scene, and the first virtual character is displayed on the corresponding performance seats, in response to an ensemble instruction of the first virtual character, an ensemble request message corresponding to a second musical instrument prop is sent to a second virtual character according to the first musical instrument prop, a response message fed back by the second virtual character based on the ensemble request message is monitored, and if a response message is monitored, a first chord key combination is generated on a first control interface of the first musical instrument prop, and a first chord key combination is generated on a first control interface of the second musical instrument prop The second control interface generates a second chord key combination, detects the first chord instruction triggered by the first virtual character on the first chord key combination according to the timeline of the ensemble score, and detects the second chord instruction triggered by the second virtual character on the second chord key combination according to the timeline of the ensemble score, and outputs ensemble audio in the virtual scene according to the first chord instruction and the second chord instruction. By detecting the chord instructions triggered by multiple virtual characters on the control interface of the musical instrument props, and outputting the ensemble audio in the virtual scene according to the chord instructions, a solution for virtual characters to autonomously control game sound effects is implemented, which solves the technical problem that the related technology cannot control game sound effects by virtual characters, and at the same time improves the playability of the game and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0037] Figure 1 It is a hardware structure block diagram of a game audio output computer according to an embodiment of the present invention;

[0038] Figure 2 is a flowchart of a method for outputting game audio according to an embodiment of the present invention;

[0039] Figure 3 is a schematic diagram of a scene in which ensemble audio is output in a virtual scene according to an embodiment of the present invention;

[0040] Figure 4 is a structural block diagram of a device for outputting game audio according to an embodiment of the present invention;

[0041] Figure 5 It is a structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0043] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0044] Example 1

[0045] The method embodiment provided in the first embodiment of the present application can be executed in a mobile phone, tablet, server, computer or similar electronic terminal. Taking running on a computer as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a game audio output computer according to an embodiment of the present invention. Figure 1 As shown, the computer may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the computer may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0046] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a method for outputting game audio in an embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer 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 a combination thereof. In this embodiment, the processor 104 is used to respond to human-computer interaction instructions and game strategies, and control the target virtual character to perform specified operations to complete the game task. The memory 104 is used to store program scripts, configuration information, attribute information of virtual characters, etc. of electronic games.

[0047] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0048] Optionally, the input-output device 108 further includes a human-computer interaction screen for obtaining human-computer interaction instructions through a human-computer interaction interface, and for presenting game screens in a virtual scene;

[0049] In this embodiment, a method for outputting game audio is provided. Figure 2 FIG. 1 is a flow chart of a method for outputting game audio according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0050] Step S202, responding to a first synthesis instruction of the first virtual character, synthesizing a first musical instrument prop in the virtual scene according to a material attribute of a first musical instrument fragment resource and a character attribute of the first virtual character;

[0051] The musical instrument fragment resource of this embodiment is a virtual game resource used to synthesize musical instrument props, which can be a material fragment of a musical instrument prop, a specified attribute value of a virtual character, etc. After the virtual character synthesizes the musical instrument prop, the musical instrument prop is bound to the virtual character, and the virtual character can choose to carry it or not in the virtual scene.

[0052] Optionally, the virtual scene of this embodiment can be a virtual game scene, a virtual teaching scene, a virtual demonstration scene, etc., and multiple types of virtual characters are included in the virtual scene, and the virtual characters can be controlled by user operations or system AI, wherein the virtual characters can be controlled by users, such as PCC (Player-Controlled Character) in a virtual game controlled by a main control player, and specific virtual characters are controlled by system AI. In this embodiment, a specific scene is taken as an example of a game scene, and after the musical instrument props are synthesized, the game task can be performed together with the virtual character, or two virtual characters can each carry musical instrument props in the virtual scene to collaboratively perform the same game task, or compete for game resources.

[0053] In an example of this embodiment, the first musical instrument prop is a zither, and the second musical instrument prop is a flute. In addition, it can also be a guzheng, a flute, a pipa, a chime, etc.

[0054] Step S204, in response to the building instruction of the first virtual character, a virtual performance surface and two performance seats are generated in the virtual scene, and the first virtual character is displayed on the corresponding performance seats; the other performance seat is used for displaying the performance character of the second musical instrument prop matching the first musical instrument prop.

[0055] Step S206, responding to the ensemble instruction of the first virtual character, sending an ensemble request message corresponding to the second musical instrument prop to the second virtual character according to the first musical instrument prop, and monitoring a response message fed back by the second virtual character based on the ensemble request message;

[0056] Optionally, the ensemble request message carries the following information: identification information of the ensemble score, identification information of the first musical instrument prop, identification information of a second musical instrument prop matching the first musical instrument prop, performance time, performance location, etc.

[0057] Step S208: if a response message is detected, a first chord key combination is generated on a first control interface of the first musical instrument prop, and a second chord key combination is generated on a second control interface of the second musical instrument prop;

[0058] Step S210, detecting a first chord instruction triggered by the first virtual character on the first chord key combination according to the time axis of the ensemble score, and detecting a second chord instruction triggered by the second virtual character on the second chord key combination according to the time axis of the ensemble score;

[0059] In this embodiment, the virtual character controls musical instrument props in a virtual scene through a game client, and triggers chord instructions through control buttons on the control interface, so that the musical instrument props generate chord sounds in the virtual scene and output them on the audio device of the game client as foreground sound or background sound of the virtual character in the virtual scene.

[0060] Step S212: outputting ensemble audio in the virtual scene according to the first chord instruction and the second chord instruction.

[0061] When two or more virtual characters are in the same virtual scene, such as using multiple instruments to play an ensemble score, the game server receives chord instructions from different virtual characters controlling instrument props and outputs ensemble audio within a certain range of the virtual scene. Or, the ensemble audio is output at all map locations in the virtual scene to notify online players on the game server that an ensemble event is taking place at a specific location in the virtual scene, and other virtual characters can choose to watch or participate.

[0062] Through the above steps, in response to the first synthesis instruction of the first virtual character, the first musical instrument prop in the virtual scene is synthesized according to the material properties of the first musical instrument fragment resource and the character properties of the first virtual character, in response to the construction instruction of the first virtual character, a virtual performance table and two performance seats are generated in the virtual scene, and the first virtual character is displayed on the corresponding performance seats, in response to the ensemble instruction of the first virtual character, an ensemble request message corresponding to the second musical instrument prop is sent to the second virtual character according to the first musical instrument prop, and a response message fed back by the second virtual character based on the ensemble request message is monitored. If a response message is monitored, a first chord key combination is generated on the first control interface of the first musical instrument prop, and a chord key combination is generated on the second musical instrument prop The second control interface generates a second chord key combination, detects a first chord instruction triggered by the first virtual character on the first chord key combination according to the timeline of the ensemble score, and detects a second chord instruction triggered by the second virtual character on the second chord key combination according to the timeline of the ensemble score, and outputs ensemble audio in the virtual scene according to the first chord instruction and the second chord instruction. By detecting chord instructions triggered by multiple virtual characters on the control interface of musical instrument props, and outputting ensemble audio in the virtual scene according to the chord instructions, a solution for virtual characters to autonomously control game sound effects is implemented, which solves the technical problem that the related technology cannot control game sound effects by virtual characters, while improving the playability of the game and user experience.

[0063] In one implementation scenario of this embodiment, a virtual character plays a musical instrument prop alone. In other implementation scenarios, two virtual characters use their own musical instrument props to play together. Alternatively, more than two virtual characters use musical instrument props to perform collectively in a virtual scene.

[0064] In one implementation of the present embodiment, generating a virtual performance surface and two performance seats in a virtual scene includes: taking the position pointed to by the building instructions as the center position, searching for a target area in the map of the virtual scene that meets preset terrain conditions and has an area larger than a preset area; generating a virtual performance surface and two performance seats on the target area, wherein the two performance seats correspond to a first musical instrument prop and a second musical instrument prop, respectively.

[0065] In this implementation scenario, the construction instructions are used to instruct the construction of a virtual performance surface at a specified location in the virtual scene, such as building a virtual performance surface at a location centered on a virtual character. In order to display the virtual performance surface in an appropriate location, such as a plain, open space, valley, island, forest, etc., a target area that meets the preset terrain conditions and has an area larger than the preset area can be found in the map of the virtual scene, and the virtual performance surface can be built on the target area closest to the virtual character in the virtual scene.

[0066] In one implementation of the present embodiment, sending an ensemble request message corresponding to the second musical instrument prop to the second virtual character based on the first musical instrument prop includes: selecting a set of candidate virtual characters in the communication group of the first virtual character; screening a set of second virtual characters in the set of candidate virtual characters, wherein the set of second virtual characters includes multiple second virtual characters, each of which has synthesized the second musical instrument prop; and group-sending an ensemble request message corresponding to the second musical instrument prop to the set of second virtual characters.

[0067] In another implementation of the present embodiment, after monitoring the response message fed back by the second virtual character based on the ensemble request message, it also includes: if response messages fed back by multiple second virtual characters are received, selecting a second virtual character from the multiple second virtual characters according to the instrument attribute value of the corresponding second musical instrument prop and the music attribute value of the corresponding second virtual character, or selecting a second virtual character from the multiple second virtual characters based on the feedback time of the response message.

[0068] Optionally, the communication group can be the friend, alliance, race group of the first virtual character, etc. The first virtual character can also broadcast the ensemble request message to the whole server, and the virtual character who first responds to the ensemble request message is used as the second virtual character, or the first virtual character selects a second virtual character based on the instrument attribute value and the music attribute value from a set of multiple responding virtual characters, wherein the instrument attribute value is used to characterize the proficiency of the use of the second musical instrument prop, the instrument level, etc., and the music attribute value is used to characterize the musical talent value of the second virtual character, the degree of liking for the second musical instrument prop, etc. In addition, the first virtual character can also specify a second virtual character from the friend list, the virtual characters of the camp, and the virtual characters of the gang. Through background screening, the best and most suitable second virtual character can be matched, through random matching, the second virtual character can be quickly matched, and through targeted matching, the second virtual character that the first virtual character likes can be matched.

[0069] In one implementation of the present embodiment, generating a first chord key combination on a first control interface of a first musical instrument prop includes: searching for a first control interface that matches an ensemble score in a preset interface list; searching for a first chord key combination that matches the first musical instrument prop in a preset key combination list; and displaying the first chord key combination in the first control interface.

[0070] The chord key combination in this implementation scenario is a control button of a musical instrument prop. Each chord key in the chord key combination can trigger a chord instruction corresponding to a chord audio. The chord key combination can be arranged in a "one" shape or in a predetermined shape on the control interface. Among them, the preset interface list includes a plurality of control interfaces matching ensemble scores, and the preset key combination list includes a plurality of chord key combinations matching musical instrument props.

[0071] In an example of the present embodiment, detecting a first chord instruction triggered by a first virtual character on a first chord key combination according to a timeline of an ensemble score includes: outputting a score track of the ensemble score on a game client of the first virtual character; arranging index marks on the score track, wherein each index mark corresponds to a chord tone position on the score track; moving the timeline in a virtual scene along the direction of the first chord key combination and passing through the score track; when the timeline overlaps with the index mark, locating the chord key at the dotted position of the clicked index mark on the game client; and generating a first chord instruction based on the chord key.

[0072] In this example, the main controlling player clicks on the index mark on the game client through the touch screen, mouse, keyboard and other game peripherals, and the game server locates the chord key (or there may be no chord key) at the dot position where the index mark is at the current time. If the dot position coincides or overlaps with the chord key, a chord instruction is triggered. The chord instruction carries the identification information of the button, such as button 1. The game server searches the chord library for the chord tone corresponding to the button through the identification information.

[0073] Figure 3 It is a scene schematic diagram of outputting ensemble audio in a virtual scene in an embodiment of the present invention, wherein a first virtual character controls a flute, and a second virtual character controls a piano. A first game client and a second game client respectively display control interfaces of a first musical instrument prop and a second musical instrument prop. On the display interface of the game client, the interface of the virtual scene and the control interface may be displayed in different areas, or the interface of the virtual scene may be the background screen of the control interface.

[0074] In some scenarios, before locating and clicking the chord key at the dot position where the index mark is located on the game client, it also includes: generating a blocking pattern at the dot position, and / or generating a blocking picture on the display interface of the game client.

[0075] In one implementation of the present embodiment, outputting ensemble audio in a virtual scene according to the first chord instruction and the second chord instruction includes: determining the first chord audio and the second chord audio respectively based on the first chord instruction and the second chord instruction; correcting the ensemble timing of the first chord audio and the second chord audio according to the chord beat of the ensemble score; and outputting the ensemble audio including the first chord audio and the second chord audio according to the ensemble timing.

[0076] In addition to outputting the ensemble audio, the skeletal animation can also be output. After correcting the ensemble timing of the first chord audio and the second chord audio according to the chord beat of the ensemble score, the method further includes: adjusting the playback timing of the skeletal animation of the first virtual character and the second virtual character based on the ensemble timing, wherein each chord audio matches a skeletal action sequence; and playing the skeletal animation of the first virtual character and the second virtual character in the virtual scene based on the playback timing.

[0077] By adjusting the playback timing of the skeletal animation based on the ensemble timing, the played skeletal animation can be synchronized with the music. This implementation method can make the ensemble audio and the skeletal animation more compatible, and achieve the card point playback of the skeletal animation.

[0078] In other embodiments, the play timing of the skeleton animation of the first virtual character and the second virtual character can also be adjusted according to the timing of the first chord audio and the second chord audio before correction (corresponding to the trigger timing of the first chord instruction and the second chord instruction), and then the skeleton animation of the first virtual character and the second virtual character can be played in the virtual scene based on the play timing. This embodiment can achieve a lower latency and more friendly human-computer interaction effect.

[0079] In other embodiments, the virtual character does not trigger the chord instruction according to the timeline of the ensemble score, or the virtual character improvises. In this case, the chord tones corresponding to the two chord instructions can be output in real time and spliced ​​to generate the ensemble audio.

[0080] In one embodiment of the implementation scenario, after outputting the ensemble audio in the virtual scene according to the first chord instruction and the second chord instruction, it also includes: receiving support information sent by the third virtual character in the virtual scene to the first virtual character and / or the second virtual character; increasing the popularity attribute value of the first virtual character and / or the second virtual character based on the support information, wherein the popularity attribute value is used to characterize the popularity of the virtual character in the virtual scene; when the popularity attribute value reaches a preset value, adding a display element in the virtual scene.

[0081] Optionally, the support information may be a support message, a support item, a support operation (such as a like, etc.). The display elements added to the virtual scene may be a background color, a background halo, a foreground animation / foreground item, etc.

[0082] In one example, the first instrument prop of the first virtual character is a qin, and the second instrument prop of the second virtual character is a flute. The first virtual character builds a qin and flute platform in the scene map of the virtual scene, invites the second virtual character (teammate, friend, gang member, etc.) to play the qin and flute together, and uses the ensemble score of the qin and flute chords to play collaboratively. During the performance, other players (third virtual characters) can see the qin and flute platform within the field of vision of the scene map. The game server outputs the ensemble audio in the vicinity of the qin and flute platform according to the distance to attract other virtual characters or non-virtual characters, and supports them by sending flowers and giving likes, etc. The popularity value of the first virtual character and / or the second virtual character can be increased by supporting them. The virtual character can get the reward of game resources by exchanging the popularity value. After the player sends the chord sound to the server through the game client, the system generates the chord sound based on the rhythm of the score. Even if the virtual character does not have a stuck point, the system can also realize the correction of the rhythm. Each player can select seven chord combinations from the chord library (including 14 chords), and each chord corresponds to a chord sound effect.

[0083] In another implementation scenario of this embodiment, the virtual character uses musical instrument props to play solo in a virtual scene. In this scenario, the virtual character also needs to play the music score solo.

[0084] S21, responding to the third synthesis instruction of the first virtual character, synthesizing the solo music score in the virtual scene according to the music score fragment resources;

[0085] This embodiment includes a variety of music scores. Virtual characters can collect music score fragments and other music score fragment resources in the large world map of the game through game tasks, virtual store redemption, picking up in the map, etc. After the fragments are collected, they can be synthesized into a complete music score.

[0086] S22, responding to the performance instruction of the first virtual character, searching the audio library for solo audio that matches both the first musical instrument prop and the solo music score, outputting the solo audio in the virtual scene, and configuring an attribute gain value for the first virtual character, wherein the attribute gain value is positively correlated with the prop level of the first musical instrument prop and the number of historical triggering times of the solo music score.

[0087] In this embodiment, after the virtual character obtains the prop combination of the musical instrument prop and the solo music score at the same time, the system assigns it the authority to trigger the performance instruction, and the audio of the first musical instrument prop playing the solo music score matches the type of the first musical instrument prop and the corresponding track of the solo music score.

[0088] In one implementation of this implementation scenario, configuring the attribute gain value for the first virtual character includes: obtaining the score type of the solo score and the prop level of the first musical instrument prop; determining the gain attribute based on the score type, and calculating the gain value of the gain attribute based on the prop level; and configuring the gain value for the gain attribute of the first virtual character. Optionally, the score type can be classified according to the track, the complexity of the score, such as the number of strings included, and the accuracy required for each chord.

[0089] In another embodiment of the present implementation scenario, configuring the attribute gain value for the first virtual character includes: obtaining the score level of the solo score and the prop type of the first musical instrument prop; determining the gain attribute based on the prop type, and calculating the gain value of the gain attribute based on the score level; configuring the gain value for the gain attribute of the first virtual character.

[0090] Optionally, the gain attribute may be the attack and defense attributes of the virtual character, the account level, the character level, etc.

[0091] In some examples, obtaining the prop level of the solo score includes: counting the number of historical triggers of the solo score; generating the prop level of the solo score based on the historical trigger number, wherein the prop level is positively correlated with the historical trigger number. Obtaining the prop level of the first musical instrument prop includes: counting the number of historical triggers of the first musical instrument prop; generating the prop level of the first musical instrument prop based on the historical trigger number, wherein the prop level is positively correlated with the historical trigger number.

[0092] In one example, after obtaining musical instruments and music scores, the virtual character can quickly play them during the game, such as playing before entering a dungeon challenge, triggering a performance instruction before sending an attack skill to the target, such as playing the first 10 seconds of music in the score. During the performance or within a predetermined time after completion, the player obtains a gain value for an attribute (such as attack and defense capabilities, invisibility, blood recovery, transformation, etc.). The specific gain effect corresponds to the score or musical instrument, such as each score corresponds to a gain value, and the player triggers the gain effect by playing the musical instrument. The more times the musical instrument or score is triggered, the more times it is played, the higher the proficiency value, the higher the prop level or score level reflected on the musical instrument, and the higher the added gain value.

[0093] In one implementation of the present embodiment, synthesizing the first musical instrument prop in the virtual scene according to the material properties of the first musical instrument fragment resource and the character attributes of the first virtual character includes: obtaining the resource combination type of the first musical instrument fragment resource, wherein the resource combination type is used to characterize the combination method of multiple game resources; matching the instrument type of the first musical instrument prop based on the resource combination type; allocating the instrument shape that matches the character attributes of the first virtual character in the preset instrument library of the instrument type; generating the first musical instrument prop with the instrument shape as the prop form, wherein each instrument shape corresponds to a timbre of the first musical instrument prop.

[0094] In one example, musical instrument props include a zither and a flute. The virtual character collects musical instrument fragments in the world map through tasks and the like. After the fragments are collected, a complete musical instrument can be synthesized. For example, each musical instrument requires four material fragments and a proficiency value for casting musical instrument props (such as craftsmanship value, craftsman level, etc.). The material fragments need to be collected by the virtual character under four different professional identities, such as fishing, logging, mining, etc. The shape of the generated musical instrument is random by the system, and the shape of the musical instrument can also be matched according to the character attributes. For example, a female virtual character is assigned a small shape, and a male virtual character is assigned a bold and unrestrained shape. It can also be matched according to the virtual character's position, role positioning and other attributes in the virtual scene. The synthesized musical instrument of each virtual character may be different, and each shape corresponds to a timbre. When the player uses the musical instrument to play, the timbre of instruments of different shapes is different, and the specific timbre corresponds to the timbre emitted in the real scene, with a strong sense of authenticity and substitution. When the player plays the musical instrument in the client interface, different instruments have different performance units (such as strings and flute holes).

[0095] In some scenarios, after the virtual character obtains the musical instrument props, the system distributes music scores to the entire server every week. After obtaining the music scores, the virtual character can practice the music scores and play them by marking them.

[0096] In one implementation of the present embodiment, before detecting the first chord instruction triggered by the first virtual character on the first chord key combination according to the timeline of the ensemble score, it also includes: acquiring multiple scale elements and multiple melody elements selected by the first virtual character in the chord library; generating an original ensemble score of a preset repertoire based on the arrangement of the multiple scale elements and the multiple melody elements; and generating a target ensemble score based on the original ensemble score in response to the first virtual character's custom instructions for the original ensemble score.

[0097] Virtual characters can edit and create their own music scores, and select music score elements from the chord library. For example, they can use seven keys (gong, shang, jiao, zhi, yu...) to compose music. The flute also includes sustain. The music scores are divided into low-level and high-level versions according to the scale and temperament, corresponding to simple playing modes and complex playing modes respectively. The low-level version includes seven scales, and the high-level version has a wider scale, including 21 scales, so as to adapt to virtual characters of different proficiency and professionalism. It is also possible to generate music scores for preset tracks (such as tracks imported by users, tracks built into the system, etc.) according to the selected scale and temperament, and then the user adjusts the automatically generated original ensemble score based on the custom instructions, and finally generates the target ensemble score. The system automatically adapts and the players customize the music.

[0098] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0099] Example 2

[0100] In this embodiment, a game audio output device is also provided to implement the above-mentioned embodiments and preferred implementation modes, which have been described and will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0101] Figure 4 is a structural block diagram of a game audio output device according to an embodiment of the present invention. Figure 4 As shown, the device includes: a first synthesis module 40, a first generation module 42, a sending module 44, a second generation module 46, a detection module 48, and an output module 50, wherein:

[0102] A first synthesis module 40 is used to respond to a first synthesis instruction of a first virtual character and synthesize a first musical instrument prop in a virtual scene according to a material attribute of a first musical instrument fragment resource and a character attribute of the first virtual character;

[0103] A first generating module 42, for responding to the building instruction of the first virtual character, generating a virtual playing surface and two playing seats in the virtual scene, and displaying the first virtual character on the corresponding playing seats;

[0104] The sending module 44 is used to respond to the ensemble instruction of the first virtual character, send an ensemble request message corresponding to the second musical instrument prop to the second virtual character according to the first musical instrument prop, and monitor the response message fed back by the second virtual character based on the ensemble request message;

[0105] A second generating module 46 is configured to generate a first chord key combination on a first control interface of the first musical instrument prop and a second chord key combination on a second control interface of the second musical instrument prop if the response message is detected;

[0106] a detection module 48, configured to detect a first chord instruction triggered by the first virtual character on the first chord key combination according to a time axis of the ensemble score, and to detect a second chord instruction triggered by the second virtual character on the second chord key combination according to a time axis of the ensemble score;

[0107] The output module 50 is used to output ensemble audio in the virtual scene according to the first chord instruction and the second chord instruction.

[0108] Optionally, the detection module includes: a first generating unit, used to respond to the building instructions of the first virtual character and generate a virtual playing surface in the virtual scene; a monitoring unit, used to monitor the response message fed back by the second virtual character based on the ensemble request message after the first virtual character sends the ensemble request message to the second virtual character; a second generating unit, used to generate a first chord key combination on the control interface of the first musical instrument prop and a second chord key combination on the control interface of the second musical instrument prop if the response message is monitored; a detection unit, used to detect a first chord instruction triggered by the first virtual character on the first chord key combination according to the timeline of the ensemble score, and to detect a second chord instruction triggered by the second virtual character on the second chord key combination according to the timeline of the ensemble score.

[0109] Optionally, the first generating module includes: a searching unit, used to search for a target area in the map of the virtual scene that meets preset terrain conditions and has an area larger than a preset area, with the position pointed to by the building instruction as the center position; and a generating unit, used to generate a virtual performance surface and two performance seats on the target area, wherein the two performance seats correspond to the first musical instrument prop and the second musical instrument prop, respectively.

[0110] Optionally, the sending module includes: a first selection unit, used to select a set of candidate virtual characters in the communication group of the first virtual character; a second selection unit, used to screen a set of second virtual characters from the set of candidate virtual characters, wherein the set of second virtual characters includes multiple second virtual characters, each of which has synthesized the second musical instrument prop; and a sending unit, used to group-send an ensemble request message corresponding to the second musical instrument prop to the set of second virtual characters.

[0111] Optionally, the device also includes: a selection module, which is used to select a second virtual character from the multiple second virtual characters according to the instrument attribute value of the corresponding second musical instrument prop and the music attribute value of the corresponding second virtual character, or select a second virtual character from the multiple second virtual characters based on the feedback time of the response message after the sending module monitors the response message fed back by the second virtual character based on the ensemble request message, if response messages fed back by multiple second virtual characters are received.

[0112] Optionally, the second generating module includes: a first search unit, used to search for a first control interface matching the ensemble score in a preset interface list; a second search unit, used to search for a first chord key combination matching the first musical instrument prop in a preset key combination list; and a display unit, used to display the first chord key combination in the first control interface.

[0113] Optionally, the detection module includes: an output unit, used to output the music score track of the ensemble music score on the game client of the first virtual character; an arrangement unit, used to arrange index marks on the music score track, wherein each index mark corresponds to a chord tone position on the music score track; a moving unit, used to move the timeline in the virtual scene along the direction of the first chord key combination and through the music score track; a positioning unit, used to locate the chord key at the dotted position of the clicked index mark on the game client when the timeline overlaps with the index mark; and a generation unit, used to generate the first chord instruction based on the chord key.

[0114] Optionally, the detection module also includes: a second generating unit, used to generate a blocking pattern at the dot position before the positioning unit locates and clicks the chord key at the dot position where the index mark is located on the game client, and / or generate a blocking picture on the display interface of the game client.

[0115] Optionally, the output module includes: a generation unit, used to generate a first chord tone and a second chord tone respectively based on the first chord instruction and the second chord instruction; a correction unit, used to correct the ensemble timing of the first chord tone and the second chord tone according to the chord beat of the ensemble score; and an output unit, used to output the first chord tone and the second chord tone according to the ensemble timing.

[0116] Optionally, the device also includes: an adjustment unit, used to adjust the playback timing of the skeletal animation of the first virtual character and the second virtual character based on the ensemble timing after the correction unit corrects the ensemble timing of the first chord audio and the second chord audio according to the chord beat of the ensemble score, wherein each chord audio matches a skeletal action sequence; and a playback unit, used to play the skeletal animation of the first virtual character and the second virtual character in the virtual scene based on the playback timing.

[0117] Optionally, the device also includes: a receiving module, used to receive support information sent by a third virtual character in the virtual scene to the first virtual character and / or the second virtual character after the output module outputs the ensemble audio in the virtual scene according to the first chord instruction and the second chord instruction; a first adding module, used to increase the popularity attribute value of the first virtual character and / or the second virtual character based on the support information, wherein the popularity attribute value is used to characterize the popularity of the virtual character in the virtual scene; and a second adding module, used to add a display element in the virtual scene when the popularity attribute value reaches a preset value.

[0118] Optionally, the device also includes: a second synthesis module, used to respond to the third synthesis instruction of the first virtual character, and synthesize the solo music score in the virtual scene according to the music score fragment resources; a configuration module, used to respond to the performance instruction of the first virtual character, query the audio library for the solo audio that matches the first musical instrument prop and the solo music score at the same time, output the solo audio in the virtual scene, and configure the attribute gain value for the first virtual character, wherein the attribute gain value is positively correlated with the prop level of the first musical instrument prop and the historical triggering number of the solo music score.

[0119] Optionally, the first synthesis module includes: an acquisition unit for acquiring a resource combination type of the first musical instrument fragment resource, wherein the resource combination type is used to characterize a combination of multiple game resources; a matching unit for matching the instrument type of the first musical instrument prop based on the resource combination type; an allocation unit for allocating a musical instrument shape that matches the character attributes of the first virtual character in a preset musical instrument library of the musical instrument type; and a generation unit for generating the first musical instrument prop with the musical instrument shape as the prop form, wherein each musical instrument shape corresponds to a timbre of the first musical instrument prop.

[0120] Optionally, the device also includes: an acquisition module, used to acquire multiple scale elements and multiple melody elements selected by the first virtual character in the chord library before the detection module detects the first chord instruction triggered by the first virtual character in the virtual scene based on the ensemble score; a third generation module, used to generate an original ensemble score of a preset repertoire based on the arrangement of the multiple scale elements and the multiple melody elements; and a fourth generation module, used to respond to the first virtual character's custom instructions for the original ensemble score, and generate a target ensemble score based on the original ensemble score.

[0121] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0122] Example 3

[0123] The present application also provides an electronic device, Figure 5 is a structural diagram of an electronic device according to an embodiment of the present invention, such as Figure 5 As shown, it includes a processor 51, a communication interface 52, a memory 53 and a communication bus 54, wherein the processor 51, the communication interface 52, and the memory 53 communicate with each other through the communication bus 54, and the memory 53 is used to store computer programs;

[0124] The processor 51 is used to execute the program stored in the memory 53, and implement the following steps: responding to a first synthesis instruction of the first virtual character, synthesizing a first musical instrument prop in a virtual scene according to the material properties of the first musical instrument fragment resource and the character properties of the first virtual character; responding to a construction instruction of the first virtual character, generating a virtual performance table and two performance seats in the virtual scene, and displaying the first virtual character on the corresponding performance seats; responding to an ensemble instruction of the first virtual character, sending an ensemble request message corresponding to the second musical instrument prop to the second virtual character according to the first musical instrument prop, and monitoring a response message fed back by the second virtual character based on the ensemble request message; if the response message is monitored, generating a first chord key combination on the first control interface of the first musical instrument prop, and generating a second chord key combination on the second control interface of the second musical instrument prop; detecting a first chord instruction triggered by the first virtual character on the first chord key combination according to the time axis of the ensemble score, and detecting a second chord instruction triggered by the second virtual character on the second chord key combination according to the time axis of the ensemble score; and outputting ensemble audio in the virtual scene according to the first chord instruction and the second chord instruction.

[0125] Optionally, generating a virtual performance surface and two performance seats in the virtual scene includes: taking the position pointed to by the building instructions as the center position, searching for a target area in the map of the virtual scene that meets preset terrain conditions and has an area larger than a preset area; generating a virtual performance surface and two performance seats on the target area, wherein the two performance seats correspond to the first musical instrument prop and the second musical instrument prop, respectively.

[0126] Optionally, sending an ensemble request message corresponding to a second musical instrument prop to a second virtual character based on the first musical instrument prop includes: selecting a set of candidate virtual characters in a communication group of the first virtual character; screening a set of second virtual characters from the set of candidate virtual characters, wherein the set of second virtual characters includes a plurality of second virtual characters, each of which has synthesized the second musical instrument prop; and sending a group ensemble request message corresponding to the second musical instrument prop to the set of second virtual characters.

[0127] Optionally, after monitoring the response message fed back by the second virtual character based on the ensemble request message, the method further includes: if response messages fed back by multiple second virtual characters are received, selecting a second virtual character from the multiple second virtual characters according to the instrument attribute value of the corresponding second musical instrument prop and the music attribute value of the corresponding second virtual character, or selecting a second virtual character from the multiple second virtual characters based on the feedback time of the response message.

[0128] Optionally, generating a first chord key combination in a first control interface of the first musical instrument prop includes: searching for a first control interface matching the ensemble score in a preset interface list; searching for a first chord key combination matching the first musical instrument prop in a preset key combination list; and displaying the first chord key combination in the first control interface.

[0129] Optionally, detecting a first chord instruction triggered by a first virtual character on the first chord key combination according to the timeline of the ensemble score includes: outputting a music score track of the ensemble score on a game client of the first virtual character; arranging index marks on the music score track, wherein each index mark corresponds to a chord tone position on the music score track; moving the timeline in the virtual scene along the direction of the first chord key combination and passing through the music score track; when the timeline overlaps with the index mark, locating the chord key at the dotted position of the clicked index mark on the game client; and generating the first chord instruction based on the chord key.

[0130] Optionally, before locating and clicking the chord key at the dot position where the index mark is located on the game client, the method further includes: generating a blocking pattern at the dot position, and / or generating a blocking screen on the display interface of the game client.

[0131] Optionally, outputting ensemble audio in the virtual scene according to the first chord instruction and the second chord instruction includes: determining a first chord audio and a second chord audio based on the first chord instruction and the second chord instruction, respectively; correcting the ensemble timing of the first chord audio and the second chord audio according to the chord beat of the ensemble score; and outputting the ensemble audio including the first chord audio and the second chord audio according to the ensemble timing.

[0132] Optionally, after correcting the ensemble timing of the first chord audio and the second chord audio according to the chord beat of the ensemble score, the method further includes: adjusting the playback timing of the skeletal animation of the first virtual character and the second virtual character based on the ensemble timing, wherein each chord audio matches a skeletal action sequence; and playing the skeletal animation of the first virtual character and the second virtual character in the virtual scene based on the playback timing.

[0133] Optionally, after outputting ensemble audio in the virtual scene according to the first chord instruction and the second chord instruction, the method further includes: receiving support information sent by a third virtual character in the virtual scene to the first virtual character and / or the second virtual character; increasing the popularity attribute value of the first virtual character and / or the second virtual character based on the support information, wherein the popularity attribute value is used to characterize the popularity of the virtual character in the virtual scene; when the popularity attribute value reaches a preset value, adding a display element in the virtual scene.

[0134] Optionally, the method also includes: responding to a third synthesis instruction of the first virtual character, synthesizing a solo music score in the virtual scene based on music score fragment resources; responding to a performance instruction of the first virtual character, searching an audio library for a solo audio that matches both the first musical instrument prop and the solo music score, outputting the solo audio in the virtual scene, and configuring an attribute gain value for the first virtual character, wherein the attribute gain value is positively correlated with the prop level of the first musical instrument prop and the historical triggering number of the solo music score.

[0135] Optionally, synthesizing the first musical instrument prop in the virtual scene according to the material properties of the first musical instrument fragment resource and the character attributes of the first virtual character includes: obtaining a resource combination type of the first musical instrument fragment resource, wherein the resource combination type is used to characterize a combination of multiple game resources; matching the instrument type of the first musical instrument prop based on the resource combination type; allocating a musical instrument shape that matches the character attributes of the first virtual character in a preset musical instrument library of the instrument type; and generating the first musical instrument prop with the musical instrument shape as the prop form, wherein each musical instrument shape corresponds to a timbre of the first musical instrument prop.

[0136] Optionally, before detecting the first chord instruction triggered by the first virtual character on the first chord key combination according to the timeline of the ensemble score, the method also includes: acquiring a plurality of scale elements and a plurality of melody elements selected by the first virtual character in a chord library; arranging and generating an original ensemble score of a preset repertoire based on the plurality of scale elements and the plurality of melody elements; and generating a target ensemble score based on the original ensemble score in response to a custom instruction of the first virtual character for the original ensemble score.

[0137] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0138] The communication interface is used for communication between the above terminal and other devices.

[0139] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0140] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0141] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the game audio output method described in any one of the above embodiments.

[0142] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the game audio output method described in any one of the above embodiments.

[0143] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0144] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0145] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0146] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

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

[0148] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0149] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0150] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for outputting game audio, characterized in that: include: In response to a first synthesis instruction of the first virtual character, synthesize a first musical instrument prop in the virtual scene according to a material attribute of a first musical instrument fragment resource and a character attribute of the first virtual character; In response to the construction instruction of the first virtual character, a virtual performance table and two performance seats are generated in the virtual scene, and the first virtual character is displayed on the corresponding performance seats; In response to the ensemble instruction of the first virtual character, sending an ensemble request message corresponding to the second musical instrument prop to the second virtual character according to the first musical instrument prop, and monitoring a response message fed back by the second virtual character based on the ensemble request message; If the response message is detected, a first chord key combination is generated on a first control interface of the first musical instrument prop, and a second chord key combination is generated on a second control interface of the second musical instrument prop; Detecting a first chord instruction triggered by the first virtual character on the first chord key combination according to the timeline of the ensemble score, and detecting a second chord instruction triggered by the second virtual character on the second chord key combination according to the timeline of the ensemble score; Ensemble audio is output in the virtual scene according to the first chord instruction and the second chord instruction.

2. The method according to claim 1, characterized in that Generating a virtual performance table and two performance seats in the virtual scene includes: Taking the position pointed to by the building instruction as the center position, searching for a target area in the map of the virtual scene that meets the preset terrain conditions and has an area larger than a preset area; A virtual performance surface and two performance seats are generated on the target area, wherein the two performance seats correspond to the first musical instrument prop and the second musical instrument prop, respectively.

3. The method according to claim 1, characterized in that Sending an ensemble request message corresponding to the second musical instrument prop to the second virtual character according to the first musical instrument prop includes: Selecting a set of candidate virtual characters in the communication group of the first virtual character; Screening a second virtual character set from the candidate virtual character set, wherein the second virtual character set includes a plurality of second virtual characters, each of which has synthesized the second musical instrument prop; An ensemble request message corresponding to the second musical instrument prop is sent to the second set of virtual characters.

4. The method according to claim 1, characterized in that After monitoring a response message fed back by the second virtual character based on the ensemble request message, the method further includes: If response messages from multiple second virtual characters are received, one second virtual character is selected from the multiple second virtual characters according to the instrument attribute value of the corresponding second musical instrument prop and the music attribute value of the corresponding second virtual character, or one second virtual character is selected from the multiple second virtual characters based on the feedback time of the response message.

5. The method according to claim 1, characterized in that Generating a first chord key combination on the first control interface of the first musical instrument prop includes: Searching for a first control interface matching the ensemble score in a preset interface list; Searching for a first chord key combination matching the first instrument prop in the preset key combination list; The first chord key combination is displayed in the first control interface.

6. The method according to claim 1, characterized in that Detecting, according to the time axis of the ensemble score, a first chord instruction triggered by the first virtual character on the first chord key combination includes: Outputting a music score track of the ensemble music score on a game client of the first virtual character; Arranging index marks on the music score track, wherein each index mark corresponds to a chord tone position on the music score track; Moving the time axis in the virtual scene along the direction of the first chord key combination and passing through the music score track; When the time axis overlaps with the index mark, locating the chord key at the dotted position of the clicked index mark on the game client; The first chord instruction is generated based on the chord key.

7. The method according to claim 1, characterized in that Outputting ensemble audio in the virtual scene according to the first chord instruction and the second chord instruction includes: Determine a first chord audio frequency and a second chord audio frequency respectively based on the first chord instruction and the second chord instruction; Correcting the ensemble timing of the first chord audio and the second chord audio according to the chord beat of the ensemble score; The ensemble audio including the first chord audio and the second chord audio is output according to the ensemble timing.

8. The method according to claim 7, characterized in that After correcting the ensemble timing of the first chord audio and the second chord audio according to the chord beat of the ensemble music score, the method further includes: Adjusting the playback timing of the skeletal animations of the first virtual character and the second virtual character based on the ensemble timing, wherein each chord audio matches a skeletal action sequence; The skeletal animations of the first virtual character and the second virtual character are played in the virtual scene based on the play timing.

9. The method according to claim 1, characterized in that: The method further comprises: In response to the third synthesis instruction of the first virtual character, synthesize the solo music score in the virtual scene according to the music score fragment resources; In response to the performance instruction of the first virtual character, a solo audio that matches both the first musical instrument prop and the solo music score is searched in the audio library, the solo audio is output in the virtual scene, and an attribute gain value is configured for the first virtual character, wherein the attribute gain value is positively correlated with the prop level of the first musical instrument prop and the historical triggering number of the solo music score.

10. The method according to claim 1, characterized in that Synthesizing the first musical instrument prop in the virtual scene according to the material attribute of the first musical instrument fragment resource and the role attribute of the first virtual role includes: Obtaining a resource combination type of the first musical instrument fragment resource, wherein the resource combination type is used to characterize a combination method of multiple game resources; Matching the type of musical instrument of the first musical instrument prop based on the resource combination type; Allocating a musical instrument shape matching the character attribute of the first virtual character in a preset musical instrument library of the musical instrument type; The first musical instrument prop is generated with the musical instrument shape as a prop form, wherein each musical instrument shape corresponds to a timbre of the first musical instrument prop.

11. The method according to claim 1, characterized in that: Before detecting the first chord instruction triggered by the first virtual character on the first chord key combination according to the time axis of the ensemble score, the method further includes: Acquire a plurality of scale elements and a plurality of melody elements selected by the first virtual character in a chord library; Generate an original ensemble score of a preset piece of music based on the plurality of scale elements and the plurality of rhythm elements; In response to the first virtual character's customized instruction for the original ensemble music score, a target ensemble music score is generated based on the original ensemble music score.

12. A game audio output device, characterized in that: include: A first synthesis module, configured to respond to a first synthesis instruction of a first virtual character and synthesize a first musical instrument prop in a virtual scene according to a material property of a first musical instrument fragment resource and a character property of the first virtual character; A first generating module, configured to respond to the building instruction of the first virtual character, generate a virtual playing surface and two playing seats in the virtual scene, and display the first virtual character on the corresponding playing seats; A sending module, configured to respond to the ensemble instruction of the first virtual character, send an ensemble request message corresponding to the second musical instrument prop to the second virtual character according to the first musical instrument prop, and monitor a response message fed back by the second virtual character based on the ensemble request message; A second generating module is configured to generate a first chord key combination on a first control interface of the first musical instrument prop and a second chord key combination on a second control interface of the second musical instrument prop if the response message is detected; a detection module, configured to detect a first chord instruction triggered by the first virtual character on the first chord key combination according to a time axis of the ensemble score, and to detect a second chord instruction triggered by the second virtual character on the second chord key combination according to the time axis of the ensemble score; An output module is used to output ensemble audio in the virtual scene according to the first chord instruction and the second chord instruction.

13. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 11 when executed.

14. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 11.