Audio processing method and device, electronic equipment and storage medium

By introducing target interfaces and beat points into music games, combining listening and responsiveness training, the problems of poor playability and single level design of existing music games are solved, improving user experience and game richness.

CN118885145AActive Publication Date: 2024-11-01TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202310744492.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-21
Publication Date
2024-11-01
Estimated Expiration
2043-06-21

AI Technical Summary

Technical Problem

The lack of changes in the core mechanism of existing music games leads to poor playability and single level design, affecting the user experience.

Method used

By introducing target interfaces and beat points into music games, users need to identify the instruments and hit the correct beats at the same time, combining listening and responsive training to enhance the richness and challenge of the game.

Benefits of technology

It improves the playability of music games and the richness of level design, enhances the user's hearing ability, attention and reaction speed, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118885145A_ABST
    Figure CN118885145A_ABST
Patent Text Reader

Abstract

The invention provides an audio processing method and device, electronic equipment and a storage medium. The method comprises the steps that a target interface is displayed, a target audio corresponding to the target interface is played, the target interface comprises at least two musical instrument identifiers and at least one beat point corresponding to the target audio, and each beat point corresponds to an audio clip of the target audio; each audio clip corresponds to one musical instrument identifier; in response to a target beat point being in a to-be-recognized state, recording the triggered musical instrument identifier to obtain a matching result of the musical instrument identifier corresponding to a target audio clip and the triggered musical instrument identifier, the target audio clip being an audio clip corresponding to the target beat point, and the target beat point being an audio clip corresponding to the target beat point; the target beat point is any beat point in the at least one beat point. According to the method and the device, playability of the music game and richness of level design can be improved, so that the use experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to an audio processing method, device, electronic device and storage medium. Background Art

[0002] Music games are games that combine music elements. The main gameplay of this type of game is to follow the music beat or melody prompts to operate, such as pressing keys, clicking or sliding, etc. Music games are usually accompanied by exquisite sound effects and visual effects, allowing players to experience an immersive music experience.

[0003] The music games provided by related technologies are mainly for entertainment. During the game, the operation is mainly carried out according to the prompts of the music beat or melody. There is a lack of too many changes in the core mechanism, resulting in poor playability of the game. At the same time, the level design is relatively simple, which affects the user experience. Summary of the invention

[0004] The embodiments of the present application provide an audio processing method, device, electronic device, computer-readable storage medium, and computer program product, which can improve the playability of music games and the richness of level design, thereby enhancing the user experience.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] The present application provides an audio processing method, including:

[0007] Displaying a target interface, and playing a target audio corresponding to the target interface, wherein the target interface includes at least two instrument identifiers and at least one beat point corresponding to the target audio, each beat point corresponds to an audio segment of the target audio, and each audio segment corresponds to one instrument identifier;

[0008] In response to the target beat point being in a state to be identified, the triggered instrument identifier is recorded to obtain a matching result between the instrument identifier corresponding to the target audio segment and the triggered instrument identifier, wherein the target audio segment is an audio segment corresponding to the target beat point, and the target beat point is any beat point among the at least one beat point.

[0009] The present application provides an audio processing device, including:

[0010] Display module, used for displaying the target interface;

[0011] A playing module, used for playing the target audio corresponding to the target interface, wherein the target interface includes at least two instrument identifiers and at least one beat point corresponding to the target audio, each beat point corresponds to an audio segment of the target audio, and each audio segment corresponds to one instrument identifier;

[0012] A recording module is used to record the triggered instrument identifier in response to the target beat point being in a to-be-recognized state, so as to obtain a matching result between the instrument identifier corresponding to the target audio segment and the triggered instrument identifier, wherein the target audio segment is the audio segment corresponding to the target beat point, and the target beat point is any beat point among the at least one beat point.

[0013] An embodiment of the present application provides an electronic device, including:

[0014] A memory for storing executable instructions;

[0015] The processor is used to implement the audio processing method provided in the embodiment of the present application when executing the executable instructions stored in the memory.

[0016] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for implementing the audio processing method provided in the embodiment of the present application when executed by a processor.

[0017] An embodiment of the present application provides a computer program product, including a computer program or computer executable instructions, which are used to implement the audio processing method provided in the embodiment of the present application when executed by a processor.

[0018] The embodiments of the present application have the following beneficial effects:

[0019] During the game, listening training is added, that is, users not only need to identify the correct instrument by listening to the target audio, but also need to tap the correct beat. The combination of these two methods greatly improves the playability of the music game and the richness of the level design, enhances the user's hearing ability, attention and reaction speed during the game, and thus improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a schematic diagram of the architecture of an audio processing system 100 provided in an embodiment of the present application;

[0021] Figure 2 is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present application;

[0022] Figure 3 It is a flowchart of the audio processing method provided in the embodiment of the present application;

[0023] Figure 4A and Figure 4B It is a flowchart of the audio processing method provided in the embodiment of the present application;

[0024] Figure 5 It is a schematic diagram of an application scenario of the audio processing method provided in an embodiment of the present application;

[0025] FIG. 6A to FIG. 6E It is a schematic diagram of an application scenario of the audio processing method provided in an embodiment of the present application;

[0026] Figure 7 It is a flowchart of the audio processing method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.

[0028] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0029] It is understandable that in the embodiments of the present application, related data such as user information is involved. When the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0030] In the following description, the terms "first\second\..." are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\..." can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0032] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0033] 1) In response to: used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed may be executed.

[0034] 2) Meter: It is a unit of rhythm. In music, a series of beats with certain strengths and weaknesses are repeated at regular intervals. In other words, the beat is an organizational form that represents the fixed unit time value and strength rules in the music.

[0035] 3) Musical Instruments: refers to instruments that can produce timbre and melody in various ways, such as piano, harp, cello, violin, harmonica, electronic keyboard, etc.

[0036] 4) Music games: are games that incorporate music elements. The main gameplay of this type of game is to follow the music beat or melody prompts to perform operations, such as pressing keys, clicking or sliding, etc. Music games are usually accompanied by exquisite sound effects and visual effects, allowing players to experience an immersive music experience.

[0037] 5) Functional games: Based on music games, games that train the brain cognition of users (such as the elderly) are added. That is, they are special music games. For example, in a single game, listening training can be added. That is, users need to identify the correct musical instrument and tap the correct beat by listening to music at the same time, thereby enhancing the user's hearing ability, attention and reaction speed during the game.

[0038] The applicant found in the process of implementing the embodiments of the present application that the music games provided by the related art are mainly for entertainment. For example, in the game process, the operation is mainly carried out according to the prompts of the music beat or melody. There is a lack of too many changes in the core mechanism, and there are the following deficiencies:

[0039] 1. Only hand and eye reaction operations are used during the game;

[0040] 2. The music is only played to create an atmosphere for the game process;

[0041] 3. You just need to click the beat points correctly to get into position, no need to think.

[0042] In view of this, the embodiments of the present application provide an audio processing method, device, electronic device, computer-readable storage medium and computer program product, which can improve the playability of music games and the richness of level design, thereby enhancing the user experience. The electronic device provided by the embodiments of the present application is described below. The electronic device provided by the embodiments of the present application can be implemented as a terminal device, or can be implemented by a server and a terminal device in collaboration. The following is an example of an audio processing method provided by an embodiment of the present application being implemented by a terminal device and a server in collaboration.

[0043] See also Figure 1 , Figure 1 1 is a schematic diagram of the architecture of an audio processing system 100 provided in an embodiment of the present application, which is used to support improving the playability of music games and the richness of level design to enhance the user experience. Figure 1 As shown, the audio processing system 100 includes: a server 200, a network 300 and a terminal device 400, wherein the network 300 can be a local area network or a wide area network, or a combination of the two, and the terminal device 400 is a terminal device associated with a user, and a client 410 runs on the terminal device 400. The client 410 can be various types of clients, such as functional game (such as brain cognition training games) clients, browsers, etc.

[0044] In some embodiments, taking the client 410 as an example of a networked functional game client, after receiving the target audio (e.g., a piece of music or a song corresponding to level 1) corresponding to the target interface (e.g., the in-game game interface corresponding to level 1) sent by the server 200, the client 410 can display the target interface and play the target audio corresponding to the target interface, wherein the target interface can include at least two instrument identifiers (e.g., two instrument pictures, or two instrument names) and at least one beat point corresponding to the target audio, each beat point corresponds to an audio segment of the target audio, and each audio segment corresponds to an instrument identifier (i.e., each audio segment is played by an instrument); subsequently, when the client 410 detects that the target beat point is in a state to be identified, the instrument identifier triggered by the user among at least two instrument identifiers (e.g., an instrument picture selected from multiple instrument pictures) can be recorded to obtain a matching result between the instrument identifier corresponding to the target audio segment (i.e., the audio segment corresponding to the target beat point) and the triggered instrument identifier (i.e., determining whether the user has clicked on the correct instrument picture).

[0045] In other embodiments, the audio processing method provided in the embodiments of the present application can also be implemented by a terminal device alone. Taking the client 410 as a stand-alone functional game client as an example, the client 410 can display the target interface (for example, the in-game interface corresponding to level 1) and play the target audio corresponding to the target interface (for example, a piece of music or a song corresponding to level 1 stored locally on the terminal device 400), wherein the target interface can include at least two instrument identifiers (for example, two instrument pictures, or two instrument names) and at least one beat point corresponding to the target audio, each beat point corresponds to an audio clip of the target audio, and each audio clip corresponds to an instrument identifier (that is, each audio clip is played by an instrument); subsequently, when the client 410 detects that the target beat point is in a state to be identified, the instrument identifier triggered by the user in at least two instrument identifiers (for example, an instrument picture selected from multiple instrument pictures) can be recorded to obtain a matching result between the instrument identifier corresponding to the target audio clip (that is, the audio clip corresponding to the target beat point) and the triggered instrument identifier (for example, determining whether the user has selected the correct instrument picture).

[0046] In some embodiments, the embodiments of the present application can also be implemented with the aid of cloud technology. Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or a local area network to achieve data calculation, storage, processing, and sharing.

[0047] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, and application technology based on the cloud computing business model. It can form a resource pool that can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources.

[0048] For example, Figure 1 The server 200 in the example may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDNs), and big data and artificial intelligence platforms. The terminal device 400 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a vehicle-mounted terminal, etc., but is not limited thereto. The terminal device 400 and the server 200 may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.

[0049] In some embodiments, the terminal device can also implement the audio processing method provided in the embodiment of the present application by running various computer executable instructions or computer programs. For example, computer executable instructions can be microprogram-level commands, machine instructions or software instructions. The computer program can be a native program or software module in the operating system; it can be a native (Native) application (APP, APPlication), that is, a program that needs to be installed in the operating system to run, such as a functional game APP or a browser; it can also be a small program, that is, a program that only needs to be downloaded to the browser environment to run. In short, the above-mentioned computer executable instructions can be instructions in any form, and the above-mentioned computer program can be an application, module or plug-in in any form.

[0050] The structure of the electronic device provided in the embodiment of the present application is further described below. Taking the electronic device as a terminal device as an example, see Figure 2 , Figure 2 is a schematic diagram of the structure of an electronic device 500 provided in an embodiment of the present application, Figure 2 The electronic device 500 shown includes: at least one processor 510, a memory 550, at least one network interface 520 and a user interface 530. The various components in the electronic device 500 are coupled together via a bus system 540. It is understood that the bus system 540 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 540 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 540 is not described in detail. Figure 2 Various buses are labeled as bus system 540 .

[0051] The processor 510 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.

[0052] The user interface 530 includes one or more output devices 531 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 530 also includes one or more input devices 532, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0053] The memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 550 may optionally include one or more storage devices that are physically remote from the processor 510.

[0054] The memory 550 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 550 described in the embodiments of the present application is intended to include any suitable type of memory.

[0055] In some embodiments, the memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.

[0056] Operating system 551, including system programs for processing various basic system services and performing hardware-related tasks, such as framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks;

[0057] A network communication module 552, for reaching other computing devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB);

[0058] a presentation module 553 for enabling presentation of information via one or more output devices 531 (e.g., display screen, speaker, etc.) associated with the user interface 530 (e.g., a user interface for operating peripherals and displaying content and information);

[0059] The input processing module 554 is used to detect one or more user inputs or interactions from one of the one or more input devices 532 and translate the detected inputs or interactions.

[0060] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2 The audio processing device 555 stored in the memory 550 is shown, which can be software in the form of a program or plug-in, including the following software modules: a display module 5551, a playback module 5552, a recording module 5553, a determination module 5554, and a switching module 5555. These modules are logical, and therefore can be arbitrarily combined or further split according to the functions implemented. It should be noted that in Figure 2 For the sake of convenience, all the above modules are shown at once, but it should not be considered that the audio processing device 555 excludes the implementation that can only include the display module 5551, the playback module 5552 and the recording module 5553. The functions of each module will be explained below.

[0061] The audio processing method provided in the embodiment of the present application will be specifically described below in combination with the exemplary application and implementation of the terminal device provided in the embodiment of the present application.

[0062] See also Figure 3 , Figure 3 is a flowchart of the audio processing method provided in the embodiment of the present application, which will be combined with Figure 3 The steps shown are explained.

[0063] It should be noted that Figure 3 The method shown can be executed by various forms of computer programs running on the terminal device, and is not limited to the client. For example, it can also be the operating system, software module, script, and applet mentioned above. Therefore, the example of the client in the following should not be regarded as a limitation on the embodiments of the present application. In addition, for the convenience of expression, the terminal device and the client running on the terminal device are not specifically distinguished in the following.

[0064] In step 101, a target interface is displayed, and a target audio corresponding to the target interface is played.

[0065] Here, the target interface may include at least two instrument identifiers and at least one beat point corresponding to the target audio, wherein each beat point corresponds to an audio segment of the target audio, and each audio segment corresponds to an instrument identifier (i.e., each audio segment is played by a musical instrument). In addition, each instrument identifier may correspond to a musical instrument, wherein the instrument identifier may be displayed in the form of an image or text, for example, at least two pictures of musical instruments may be displayed, or at least two names of musical instruments may be displayed to represent at least two candidate musical instruments.

[0066] It should be noted that when playing different audios, at least two (i.e., multiple) instrument identifiers may be the same, that is, when playing different audios, multiple instrument identifiers may remain unchanged. For example, when playing the first audio segment (e.g., audio 1), the instrument identifiers corresponding to instruments 1 to 4 may be displayed. After the first audio segment is finished playing and the second audio segment (e.g., audio 2) continues to be played, the instrument identifiers corresponding to instruments 1 to 4 are kept unchanged in the target interface; or they may be at least partially different, that is, when playing different audios, multiple instrument identifiers may be updated and displayed. For example, when playing the first audio segment, the identifiers corresponding to instrument 1 and instrument 2 may be displayed; after the first audio segment is finished playing and the second audio segment continues to be played, the instrument identifiers corresponding to instruments 3 and 4 may be updated and displayed. The embodiments of the present application do not make specific limitations on this.

[0067] In some embodiments, the number of at least two instrument identifications may be related to the difficulty of the level. For example, the more difficult the level, the more instrument identifications are displayed, and the less difficult the level, the fewer instrument identifications are displayed. For example, for a level with a difficulty level of "difficult", 6 instrument identifications may be displayed, that is, the user needs to select the correct instrument identification from the 6 instrument identifications; for a level with a difficulty level of "medium", 4 instrument identifications may be displayed, that is, the user needs to select the correct instrument identification from the 4 instrument identifications; for a level with a difficulty level of "easy", only 2 instrument identifications may be displayed, that is, the user only needs to select the correct instrument identification from the 2 instrument identifications. In this way, the personalized needs of different users can be met.

[0068] It should be noted that the number of musical instrument identifiers corresponding to different levels may also be the same. For example, the number of musical instrument identifiers corresponding to each level is 2, and this embodiment of the present application does not make any specific limitation on this.

[0069] In other embodiments, step 101 can be implemented in the following ways: displaying a menu interface (e.g., a game homepage), wherein the menu interface includes a music option (e.g., a "Music Contest" button); in response to a trigger operation on the music option, displaying a level selection interface corresponding to the music option, wherein the level selection interface includes a plurality of candidate levels; in response to the level selection operation, displaying a target interface corresponding to the selected level (e.g., level 1) (e.g., an in-game interface corresponding to level 1), and playing a target audio corresponding to the target interface (e.g., a piece of music corresponding to level 1).

[0070] For example, taking the client as a functional game APP, a functional game APP is running on the terminal device associated with the user. When a user clicks on the icon corresponding to the functional game APP, the game homepage can be displayed, and multiple buttons of different types are displayed on the game homepage, such as a "music competition" button, a "cooking competition" button, a "poetry competition" button, and a "storage competition" button. When a user clicks on the "music competition" button, the game homepage can be jumped to the game level selection interface, and multiple candidate levels are displayed in the game level selection interface, where the level types may include: unlocked levels and unlocked levels. The user can select a level from the unlocked multiple levels and enter the in-game game corresponding to the selected level. For example, when a user clicks on level 2 from the unlocked multiple levels, the game level selection interface can be jumped to the in-game game interface corresponding to level 2, and a piece of music corresponding to level 2 can be played.

[0071] It should be noted that the above-mentioned target audio may correspond to only one musical instrument, that is, the target audio is played by only one musical instrument; of course, the target audio may also correspond to multiple musical instruments, that is, the target audio may be played by multiple musical instruments respectively. For example, assuming that the target audio includes 2 audio clips, among which audio clip 1 is played by a violin and audio clip 2 is played by a piano. The embodiment of the present application does not make any specific limitation on this.

[0072] In other embodiments, when the target audio corresponding to the target interface is played, the following processing can also be performed: for each audio segment included in the target audio, the following processing is performed: the spectrum graph (i.e., audio band) corresponding to the audio segment is displayed starting from the first end of the target interface (e.g., the right side of the screen), and the spectrum graph is controlled to gradually move toward the second end of the target interface (e.g., the left side of the screen) until it moves out of the target interface.

[0073] For example, taking the client as a functional game APP, when the functional game APP receives the user's selection operation for multiple levels displayed in the game level selection interface, after jumping from the game level selection interface to the in-game interface corresponding to the selected level (i.e., the target interface), the music corresponding to the selected level can be played. At the same time, the spectrum graph corresponding to the currently playing music can also be displayed in the in-game interface. For example, the spectrum graph can be controlled to enter from the right side of the in-game interface and move to the left until it moves out of the in-game interface. In this way, the user can be reminded and the user's gaming experience is improved.

[0074] In some embodiments, the above-mentioned display target interface can be implemented in the following manner: display the target interface, and for each beat point corresponding to the target audio, perform the following processing: display the beat point starting from the first end of the target interface, and control the beat point to move toward the second end of the target interface until it moves out of the target interface.

[0075] For example, taking the target audio as audio 1, assuming that at least one beat point corresponding to audio 1 is 3 beat points (that is, audio 1 includes 3 audio clips), respectively, beat point 1 corresponding to audio clip 1, beat point 2 corresponding to audio clip 2, and beat point 3 corresponding to audio clip 3, when audio 1 is played to the 10th second (for example, audio clip 1 is finished playing), beat point 1 can be controlled to appear from the right side of the target interface (for example, the in-game interface corresponding to level 1), and gradually move to the left side of the target interface until it moves out of the target interface; when audio 1 is played to the 20th second (for example, audio clip 2 is finished playing), beat point 2 can be controlled to appear from the right side of the target interface, and gradually move to the left side of the target interface until it moves out of the target interface; when audio 1 is played to the 30th second (for example, audio clip 3 is finished playing), beat point 3 can be controlled to appear from the right side of the target interface, and gradually move to the left side of the target interface until it moves out of the target interface.

[0076] It should be noted that the moving speeds of different beat points in the target interface can be the same, for example, the duration of the appearance of the above-mentioned beat points 1 to 3 in the target interface is 3 seconds; of course, the moving speeds of different beat points in the target interface can also be different, for example, it can be related to the speed of the rhythm of the target audio. The faster the rhythm, the faster the beat point moves in the target interface, and the slower the rhythm, the slower the beat point moves in the target interface. For example, assuming that the target audio includes 2 audio clips, namely audio clip 1 and audio clip 2, wherein the rhythm of audio clip 1 is faster than that of audio clip 2, then the beat point 1 corresponding to audio clip 1 can move faster in the target interface than the beat point 2 corresponding to audio clip 2. The embodiment of the present application does not make specific limitations on this.

[0077] In addition, it should be noted that the time when the spectrogram corresponding to the audio clip appears in the target interface may be earlier than the beat point corresponding to the audio clip. For example, taking audio clip 1 as an example, while playing audio clip 1, the spectrogram corresponding to audio clip 1 can be displayed in the target interface, and when audio clip 1 is played to the set time (for example, the 5th second), the beat point 1 corresponding to audio clip 1 is displayed in the target interface. In this way, sufficient time can be reserved for the user to determine which instrument the audio clip 1 is played by, thereby improving the user's gaming experience. Of course, the beat point and spectrogram corresponding to the same audio clip may also appear at the same time, and the embodiments of the present application do not specifically limit this.

[0078] In some other embodiments, following the above examples, see Figure 4A , Figure 4A is a flowchart of an audio processing method provided in an embodiment of the present application, such as Figure 4A As shown, after executing Figure 3 After step 101 shown, you can also perform Figure 4A Steps 103A and 104A shown in FIG. Figure 4A The steps shown are explained.

[0079] In step 103A, the identification to be identified is displayed in the target interface.

[0080] In some embodiments, for the case where the beat point is in a moving state, an identification mark to be identified can be displayed in the target interface. For example, a determination circle can be displayed on the left side of the in-game interface. That is, the distance between the determination circle and the target beat point can be used to determine whether the target beat point is in a state to be identified, wherein the target beat point is any beat point among at least one beat point.

[0081] In step 104A, in response to the distance between the target beat point and the mark to be recognized being less than a distance threshold, it is determined that the target beat point is in a state to be recognized.

[0082] In some embodiments, when any beat point (e.g., beat point 1) appears from the first end of the target interface (e.g., the right side of the screen), the beat point 1 can be controlled to move to the left, and the distance between the beat point 1 and the mark to be identified (e.g., the judgment circle) can be detected in real time. When the distance between the two is less than a distance threshold (e.g., 0.1 cm), it can be determined that the beat point 1 is in a state to be identified. In other words, when the beat point 1 moves to a position close to the judgment circle, the user needs to select the correct instrument mark from multiple instrument marks (e.g., multiple instrument pictures).

[0083] In other embodiments, the above-mentioned display target interface can also be implemented in the following manner: display the target interface, simultaneously display at least one beat point corresponding to the target audio in the target interface, and control the position of each beat point in the target interface to remain unchanged.

[0084] For example, taking the target audio as audio 1, assuming that at least one beat point corresponding to audio 1 is 3 beat points (i.e., audio 1 includes 3 audio segments), which are beat point 1 corresponding to audio segment 1, beat point 2 corresponding to audio segment 2, and beat point 3 corresponding to audio segment 3, then when playing audio 1, beat points 1 to 3 can be displayed simultaneously in the in-game interface, for example, beat point 1 can be displayed on the left side of the in-game interface, beat point 2 can be displayed in the middle of the in-game interface, beat point 3 can be displayed on the right side of the in-game interface, and the position of each beat point in the in-game interface can be controlled to remain unchanged. That is to say, the embodiment of the present application can also display at least one beat point corresponding to the target audio on the screen at one time.

[0085] It should be noted that, in the case where at least one beat point corresponding to the target audio is displayed simultaneously in the target interface, when the next audio is played, at least one beat point corresponding to the next audio can be refreshed and displayed. In other words, the beat points can be switched by pressing the screen. For example, when playing audio 1, beat points 1 to 3 corresponding to audio 1 can be displayed on the screen at the same time. When playing audio 2, beat points 4 to 6 corresponding to audio 2 can be refreshed and displayed on the screen.

[0086] In addition, it should be noted that when the number of at least one beat points corresponding to the target audio is large, multiple beat points can also be displayed in batches. For example, taking the target audio as audio 1, assuming that the number of beat points corresponding to audio 1 is 6 (that is, audio 1 includes 6 audio clips), namely beat points 1 to 6, then beat points 1 to 3 can be displayed first, and then the subsequent beat points 4 to 6 can be refreshed and displayed. For example, when playing the first half of audio 1 (that is, audio clip 1 to audio clip 3), beat points 1 to 3 are displayed on the screen, and when playing the second half of audio 2 (that is, audio clip 4 to audio clip 6), beat points 4 to 6 are refreshed and displayed on the screen. In this way, the interference caused to the user by the simultaneous display of multiple beat points can be avoided.

[0087] In some embodiments, following the above examples, see Figure 4B , Figure 4B is a flowchart of an audio processing method provided in an embodiment of the present application, such as Figure 4B As shown, after executing Figure 3 After step 101 shown, you can also perform Figure 4B Steps 103B and 104B shown in FIG. Figure 4B The steps shown are explained.

[0088] In step 103B, the selected state is controlled to switch between at least one beat point.

[0089] In some embodiments, taking the target audio as audio 1 as an example, assuming that at least one beat point corresponding to audio 1 is 3 beat points (i.e., audio 1 includes 3 audio segments), namely beat point 1 corresponding to audio segment 1, beat point 2 corresponding to audio segment 2, and beat point 3 corresponding to audio segment 3, then when playing audio 1, beat points 1 to 3 can be displayed simultaneously in the target interface, and when audio 1 is played to the 10th second (for example, when audio segment 1 is finished playing), beat point 1 can be controlled to be in a selected state, for example, beat point 1 can be enlarged, or beat point 1 can be highlighted in a highlighted manner to indicate the beat point. Beat point 1 is currently in the selected state; then, when audio 1 is played to the 20th second (for example, audio clip 2 is finished playing), the selected state can be switched from beat point 1 to beat point 2, for example, the highlight display mode of beat point 1 can be canceled, and beat point 2 can be highlighted to indicate that beat point 2 is currently in the selected state; then, when audio 1 is played to the 30th second (for example, audio clip 3 is finished playing), the selected state can be switched from beat point 2 to beat point 3, for example, the highlight display mode of beat point 2 can be canceled, and beat point 3 can be highlighted to indicate that beat point 3 is currently in the selected state. That is to say, in the case of displaying at least one beat point at the same time, the selected state can be controlled to switch between at least one beat point in a marquee manner, and the selected state can be used to determine whether the beat point is in the state to be identified, and the display modes of the beat points in the selected state and the beat points that are not in the selected state are different, so that users can distinguish them easily.

[0090] It should be noted that when the number of at least one beat point is one, the beat point can be controlled to be in a selected state when the target audio is played to the set time. For example, when the target audio is played to the 10th second, the beat point can be amplified to indicate that the beat point is currently in a selected state. That is to say, when the target audio is played to the 10th second, the user needs to select the correct instrument identifier from multiple instrument identifiers, that is, when the target audio is played to the 10th second, the user needs to determine which instrument the target audio is played by.

[0091] In step 104B, the beat point in the selected state is determined as the target beat point in the to-be-recognized state.

[0092] In some embodiments, following the above example, a beat point in a selected state can be determined as a target beat point in a to-be-identified state. For example, when beat point 1 is in a selected state, the user needs to select the correct instrument identifier from multiple instrument identifiers (e.g., multiple instrument pictures). That is, when beat point 1 is in a selected state, the user needs to determine the pronunciation instrument of the audio clip 1 corresponding to beat point 1 (i.e., determine which instrument the audio clip 1 is played by). Similarly, when beat point 2 or beat point 3 is in a selected state, the user also needs to determine the pronunciation instrument of the audio clip 2 corresponding to beat point 2 or the audio clip 3 corresponding to beat point 3.

[0093] For example, take the target audio as audio 1 as an example, assuming that the number of at least one beat point corresponding to audio 1 is 3 (that is, audio 1 includes 3 audio segments, namely audio segment 1 to audio segment 3), see Figure 5 , Figure 5 is a schematic diagram of an application scenario of the audio processing method provided in an embodiment of the present application, such as Figure 5 As shown, a spectrogram 502 corresponding to audio 1 is displayed in the in-game interface 501. For example, the spectrogram 502 can be controlled to appear from the right side of the in-game interface 501 and gradually move to the left side. In addition, three beat points corresponding to audio 1 are also displayed in the in-game interface 501, namely, beat point 503 corresponding to audio clip 1, beat point 504 corresponding to audio clip 2, beat point 505 corresponding to audio clip 3, and multiple musical instrument pictures 506. When audio 1 is played to the 10th second (for example, audio clip 1 is finished playing), the beat point 503 can be controlled to be in a selected state, for example, the beat point 503 can be displayed in a highlight mode to indicate that the beat point 503 is currently in a selected state. At this time, the user needs to select the correct musical instrument picture from the multiple musical instrument pictures 506, that is, the user needs to determine the pronunciation instrument corresponding to the audio clip 1 (that is, determine which instrument the audio clip 1 is played by). Next, when audio 1 plays to the 20th second (for example, audio clip 2 is finished playing), the highlight display mode of beat point 503 can be canceled, and beat point 504 can be displayed in a highlight display mode to indicate that the selected state is switched from beat point 503 to beat point 504. At this time, the user needs to select the correct instrument picture from multiple instrument pictures 506, that is, the user needs to determine the pronunciation instrument corresponding to audio clip 2; then, when audio 1 plays to the 30th second (for example, audio clip 3 is finished playing), the highlight display mode of beat point 504 can be canceled, and beat point 505 can be displayed in a highlight display mode to indicate that the selected state is switched from beat point 504 to beat point 505. At this time, the user needs to select the correct instrument picture from multiple instrument pictures 506, that is, the user needs to determine the pronunciation instrument corresponding to audio clip 3.

[0094] It should be noted that the duration of different beat points in the selected state can be the same, for example, the duration of each beat point in the selected state is 5 seconds; of course, the duration of different beat points in the selected state can also be different, for example, the duration of the beat point in the selected state can be determined according to the rhythm of the target audio. The faster the rhythm, the longer the beat point is in the selected state, and the slower the rhythm, the shorter the beat point is in the selected state. For example, taking the target audio as audio 1, assuming that audio 1 includes 2 audio clips, namely audio clip 1 and audio clip 2, assuming that the rhythm of audio clip 1 is faster than that of audio clip 2, the duration of beat point 1 corresponding to audio clip 1 in the selected state can be longer than beat point 2 corresponding to audio clip 2. The embodiments of the present application do not make specific limitations on this.

[0095] In some other embodiments, before executing the above-mentioned step 101, the following processing may also be performed: dividing the target audio into at least one audio segment; for each audio segment, performing one of the following processing: using the starting point of the audio segment as the beat point corresponding to the audio segment; using the end point of the audio segment as the beat point corresponding to the audio segment; using the midpoint of the audio segment as the beat point corresponding to the audio segment.

[0096] For example, a complete performance time can correspond to one or more beat points. Taking the target audio as Audio 1, Audio 1 can be first divided into multiple audio segments (for example, 3 audio segments, each audio segment is 10 seconds long) according to the set duration (for example, 10 seconds). Taking Audio Segment 1 as an example, the starting point of Audio Segment 1 can be used as a beat point, the midpoint of Audio Segment 1 (for example, the middle value of the performance time) can be used as a beat point, and the end point of Audio Segment 1 can also be used as a beat point. The embodiment of the present application does not make any specific limitations on this.

[0097] In some embodiments, the target interface (e.g., an in-game interface) may include a first audio track (e.g., an upper audio track) and a second audio track (e.g., a lower audio track), wherein the spectrogram corresponding to any audio segment may be moved on the first audio track, and the beat point corresponding to any audio segment may be moved on the second audio track, and the spectrogram may appear in the target interface earlier than the beat point.

[0098] For example, taking audio clip 1 as an example, when playing audio clip 1, the spectrum graph corresponding to audio clip 1 can be displayed starting from the right side of the in-game interface, and the spectrum graph can be controlled to move to the left on the upper track. When audio clip 1 is played to the 5th second, the beat point corresponding to audio clip 1 can be controlled to appear from the right side of the in-game interface and move to the left on the lower track. In other words, the beat point appears in the in-game interface later than the spectrum graph. In this way, time can be reserved for the user to listen to audio clip 1, so that the user has sufficient time to make judgments, thereby improving the user's gaming experience.

[0099] In other embodiments, the display modes (e.g., color, size, etc.) of the spectrograms corresponding to different audio clips may be different, and when the instrument identifiers corresponding to two adjacent audio clips are the same (i.e., the two adjacent audio clips are played by the same instrument), the display modes of the beat points corresponding to the two adjacent audio clips are the same; when the instrument identifiers corresponding to two adjacent audio clips are different (i.e., the two adjacent audio clips are played by different instruments), the display modes of the beat points corresponding to the two adjacent audio clips are different.

[0100] For example, take the target audio as audio 1. Assume that audio 1 includes two audio segments, audio segment 1 and audio segment 2. The spectrum corresponding to audio segment 1 is Figure 1 The color and spectrum corresponding to audio clip 2 Figure 2 The colors can be different, for example, the spectrum corresponding to audio clip 1 Figure 1 The color can be green, the spectrum corresponding to audio clip 2 Figure 2The color can be purple, that is, the audio clip corresponding to the previous beat point and the audio clip corresponding to the next beat point can be distinguished by different colors. In this way, before the next beat point is in the state to be identified, the user can know when the audio clip corresponding to the beat point will be played, and after hearing it, he can first think about which instrument the audio clip is played, which improves the user's gaming experience. In addition, when the instrument identifier corresponding to audio clip 1 and the instrument identifier corresponding to audio clip 2 are the same (that is, audio clip 1 and audio clip 2 are played by the same instrument), the color of beat point 1 corresponding to audio clip 1 and the color of beat point 2 corresponding to audio clip 2 can be the same. In this way, the user can be intuitively reminded that the type of instrument has not changed, and only needs to tap out the correct beat, which improves the user's gaming experience. Of course, when the instrument identifier corresponding to audio clip 1 is different from the instrument identifier corresponding to audio clip 2 (that is, audio clip 1 and audio clip 2 are played by two different instruments respectively), the color of beat point 1 corresponding to audio clip 1 and the color of beat point 2 corresponding to audio clip 2 can be different. For example, the color of beat point 1 is green and the color of beat point 2 is purple. In this way, the user can be intuitively prompted that the current audio clip is played by another instrument and needs to be re-judged.

[0101] In other embodiments, a pause control (e.g., a pause button) may be displayed in the target interface (e.g., the in-game game interface), and the target audio may be paused in response to a trigger operation on the pause control. For example, when the user needs more time to think, the pause button may be clicked to pause, and when the user has thought it through, that is, has determined which instrument it is, the pause button may be clicked again, and the target audio may continue to be played.

[0102] In some embodiments, a progress bar control can also be displayed in the target interface (such as an in-game game interface), where the progress bar control can be used to indicate the progress of the game and the user's current real-time score. This makes it easier for the user to understand the progress of the game and the current score, thereby improving the user's gaming experience.

[0103] In step 102, in response to the target beat point being in a to-be-recognized state, the triggered instrument identifier is recorded to obtain a matching result between the instrument identifier corresponding to the target audio segment and the triggered instrument identifier.

[0104] Here, the target audio segment is an audio segment corresponding to a target beat point, and the target beat point is any beat point of the at least one beat point.

[0105] In some embodiments, when a target beat point (e.g., beat point 1) is detected to be in a state to be identified, the instrument identification triggered by the user in at least two instrument identifications (e.g., the instrument image selected by the user from multiple instrument images) can be recorded, and the instrument identification triggered by the user is matched with the instrument identification corresponding to the target audio segment (i.e., audio segment 1 corresponding to beat point 1) to obtain a matching result (e.g., determining whether the user has selected the correct instrument image). For example, taking beat point 1 as an example, when beat point 1 is detected to be in a state to be identified, for example, when the distance between beat point 1 and the determination circle is detected to be less than a distance threshold, or when beat point 1 is in a selected state, the instrument image selected by the user from multiple instrument images can be recorded (e.g., an image of a piano, i.e., the user believes that the audio segment 1 corresponding to beat point 1 is obtained by playing the piano), and then the instrument image selected by the user can be matched with the instrument image corresponding to the audio segment 1 (i.e., the instrument image corresponding to the instrument that plays the audio segment 1) to obtain a matching result.

[0106] It should be noted that when any beat point is detected to be in a state to be identified, a first prompt message may also be displayed, wherein the first prompt message is used to prompt the user to select an instrument identifier from multiple instrument identifiers. For example, taking beat point 1 as an example, when beat point 1 is detected to be in a state to be identified, for example, when beat point 1 is detected to move to a position close to the determination circle, or when beat point 1 is in a selected state, a first prompt message may be displayed, such as "Please select the instrument image you think is correct", to remind the user to make a selection.

[0107] In some embodiments, after obtaining the matching result between the audio clip (corresponding instrument identifier) ​​corresponding to the target beat point and the triggered instrument identifier, the following processing can also be performed: display a second prompt message, wherein the second prompt message is used to prompt the user whether the selection is correct. For example, taking beat point 1 as an example, the instrument picture selected by the user from multiple instrument pictures can be matched with the instrument picture corresponding to audio clip 1. When the matching result indicates that the two are consistent, the following second prompt message can be displayed: "You chose the right one, great!"; when the matching result indicates that the two are inconsistent, the following second prompt message can be displayed: "I'm sorry, you made the wrong choice". In this way, real-time feedback results can be output to the user, thereby improving the user's gaming experience.

[0108] In other embodiments, after executing Figure 3 After step 102 shown, the following processing can also be performed: in response to the target audio being played, continue playing the next audio segment; update and display at least one beat point corresponding to the next audio segment; update and display at least two instrument identifiers, wherein the at least two instrument identifiers before the update are at least partially different from the at least two instrument identifiers after the update.

[0109] For example, when it is detected that the target audio (such as audio 1) has been played, if there are other audios, the next audio (such as audio 2) can continue to be played. At the same time, at least one beat point corresponding to the next audio can be updated and displayed, and multiple instrument logos can be updated and displayed.

[0110] In some embodiments, when all audios are played, the following processing can also be performed: display a summary interface (such as a game clearance settlement interface), wherein the summary interface includes a score, which is determined based on the matching results corresponding to at least one beat point.

[0111] For example, when it is detected that all audios have been played, the selected instrument identifier recorded at each beat point can be matched with the target instrument identifier (i.e., the instrument identifier corresponding to the target audio clip, wherein the target audio clip is the audio clip corresponding to the target beat point), and the final score can be determined based on multiple matching results. When the matching result indicates that the two are consistent, it means that the user's judgment is correct, for example, the user clicks on the correct instrument picture; when the matching result indicates that the two are inconsistent, it means that the user's judgment is wrong, for example, the user clicks on the wrong instrument picture. Subsequently, the final score can be determined based on the accuracy of the user's judgment, wherein the accuracy and score are positively correlated, that is, the higher the accuracy, the higher the final score. For example, when the accuracy is less than 90%, the corresponding score can be two stars; when the accuracy is greater than 90%, the corresponding score can be three stars.

[0112] In some embodiments, for the case where the beat point is in a moving state, the summary interface may also include the numbers corresponding to the first type (for example, perfect), the second type (for example, excellent), and the third type (for example, good), respectively, wherein the first type represents that when the instrument logo is triggered, the target beat point completely coincides with the logo to be identified (for example, the judgment circle) (i.e., accurate); the second type represents that when the instrument logo is triggered, the target beat point is approaching the logo to be identified, and partially coincides with the logo to be identified (i.e., fast); the third type represents that when the instrument logo is triggered, the target beat point is moving away from the logo to be identified, and partially coincides with the logo to be identified (i.e., slow).

[0113] For example, taking the identification mark to be identified as a judgment circle and the instrument mark as a musical instrument picture, when the target beat point (for example, beat point 1) moves from right to left to a position close to the judgment circle, the user needs to click on the corresponding musical instrument picture (that is, the musical instrument picture that the user thinks is correct) in a timely manner among multiple musical instrument pictures. While the user clicks the corresponding musical instrument picture, the relative position relationship between beat point 1 and the judgment circle can also be recorded. When beat point 1 clicks on the musical instrument picture in front of the judgment circle, it will be judged as fast (corresponding to excellent); when beat point 1 is clicked on the musical instrument picture just in the judgment circle, it will be judged as accurate (corresponding to perfect); when beat point 1 is clicked on the musical instrument picture behind the judgment circle, it will be judged as slow (corresponding to good). Subsequently, the corresponding times of perfect, excellent, and good can be displayed respectively in the game clearance settlement interface.

[0114] It should be noted that the user's final score can be determined not only based on the comparison results between the selected instrument and the target instrument recorded at each beat point, but also comprehensively based on the quantities corresponding to the first type, the second type, and the third type. In other words, the user not only needs to select the correct instrument, but also hit the correct beat to get a high score, thereby enhancing the user's gaming experience.

[0115] In other embodiments, for the case where the beat point is in a static state, the summary interface may also include the numbers corresponding to the fourth type (for example, excellent) and the fifth type (for example, good), respectively, wherein the fourth type represents that when the instrument identifier is triggered, the duration of the target beat point in the selected state is less than a duration threshold (for example, 1 second); the fifth type represents that when the instrument identifier is triggered, the duration of the target beat point in the selected state is greater than the duration threshold.

[0116] For example, taking the instrument identification as an instrument picture, when any beat point (for example, beat point 1) is in a selected state, in addition to recording the instrument picture selected by the user from multiple instrument pictures, it is also necessary to record the length of time that beat point 1 is in the selected state when the user selects the instrument picture, so as to determine whether the user has hit the correct beat. For example, when the user clicks on the corresponding instrument picture (that is, the instrument picture that the user thinks is correct) within 1 second after beat point 1 is selected, it can be determined as accurate (corresponding to perfect); when the user clicks on the corresponding instrument picture after 1 second after beat point 1 is selected, it can be determined as slow (corresponding to good), and then the number of times corresponding to perfect and good can be displayed respectively in the game clearance settlement interface.

[0117] It should be noted that the user's final score can be determined not only based on the comparison results between the selected instrument and the target instrument recorded at each beat point, but also comprehensively based on the quantities corresponding to the fourth type and the fifth type, respectively. In other words, the user not only needs to select the correct instrument, but also hit the correct beat to get a high score, thereby enhancing the user's gaming experience.

[0118] In some embodiments, after executing Figure 3 After step 102 shown, the following processing can also be performed: in response to the matching result indicating that the target instrument identifier is inconsistent with the triggered instrument identifier (for example, the user selected the wrong instrument picture), the target audio is replayed, wherein the target instrument identifier is the instrument identifier corresponding to the target audio segment (for example, audio segment 1), and the target audio segment is the audio segment corresponding to the target beat point (for example, beat point 1).

[0119] For example, taking beat point 1 as an example, when the matching result corresponding to beat point 1 indicates that the selected instrument identifier is inconsistent with the target instrument identifier, that is, the user makes a wrong judgment, for example, the user clicks on the wrong instrument picture, then the game can be ended, for example, the game end interface is displayed, wherein the game result interface includes a restart button, and when the user clicks on the restart button, the target audio can be played again to allow the user to play the game again.

[0120] The audio processing method provided in the embodiment of the present application adds hearing training during the game process, that is, the user not only needs to identify the correct instrument by listening to the audio, but also needs to tap the correct beat. The combination of these two methods greatly improves the playability of the game and the richness of the level design, enhances the user's hearing ability, attention and reaction speed during the game, and thus improves the user's experience.

[0121] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.

[0122] The applicant found in a collaborative study with a hospital that by simultaneously training the hearing ability and reaction ability (or attention) of users (such as the elderly), the incidence of mild cognitive impairment or Alzheimer's disease in the elderly can be effectively reduced.

[0123] In view of this, the embodiment of the present application provides an audio processing method. On the basis of music games, based on the hearing and attention levels of users (such as the elderly), music styles and performance forms of different difficulties are designed (that is, a functional game that can train the user's brain cognition is provided). Users need to identify the correct musical instruments and beats in the process of listening to music, so that users do not simply operate according to the beat of the music, but add hearing training (that is, first listen to the sound of the music), attention training (then select the corresponding musical instrument pictures), and reaction training (click on the corresponding musical instrument pictures at the correct beat point). The technical solution provided by the embodiment of the present application not only has entertainment value, but also allows users to effectively train brain cognition during the game, slowing down or reducing the incidence of mild cognitive impairment (MCI, Mild Cognitive Impairment) and Alzheimer's disease.

[0124] For example, the technical solution provided by the embodiment of the present application adds listening training during a single game. By listening to music to identify the correct instrument and tapping the correct beat, the two combined gameplays greatly improve the playability of the game and the richness of the level design:

[0125] 1. Before the game starts, a piece of music will be played on the soundtrack, and the player will select the correct instrument picture while listening;

[0126] 2. On the beat melody, tap the correct instrument picture corresponding to the beat point. You will need to reselect the instrument when playing the next piece of music.

[0127] The audio processing method provided in the embodiment of the present application is described in detail below.

[0128] In some embodiments, see Fig. 6A , Fig. 6A is a schematic diagram of an application scenario of the audio processing method provided in an embodiment of the present application, such as Fig. 6AAs shown, a plurality of buttons of different types are displayed in the game homepage 601. When a user clicks the "Music Contest" button 602, the game homepage 601 can be jumped to the game level selection interface 603, in which a plurality of candidate levels are displayed. When a user clicks one of the levels (e.g., level 604) is received, the game level selection interface 603 can be jumped to the in-game game interface 605 (i.e., the target interface). The in-game game interface 605 displays a spectrum graph 606, a lower track 607, a beat point 608, a judgment circle 609 (i.e., a mark to be identified), and an instrument picture 610 (i.e., an instrument mark) corresponding to the currently played music. The spectrum graph 606 can enter from the right side of the screen and move out to the left. The lower track 607 is a scene for releasing the beat point, i.e., after the beat point 608 enters the screen from the right side of the screen, it moves to the left on the lower track 607 until it moves out of the screen. In addition, when any beat point 608 enters the determination circle 609, the user needs to tap the correct instrument picture 610, that is, the user needs to listen to the music clip, select the correct instrument picture, and tap the correct melody according to the beat point.

[0129] For example, see Figure 6B , Figure 6B is a schematic diagram of an application scenario of the audio processing method provided in an embodiment of the present application, such as Figure 6B As shown, after the user enters the in-game game interface 605, the spectrogram 606 corresponding to the first music segment appears on the upper track 611, and then the beat point 608 appears on the lower track 607. The spectrogram 606 can be output about 10 seconds earlier than the beat point 608, so that the user can listen to the prelude and judge the instrument. In addition, the spectrogram 606 and the beat point 608 both move from right to left. When any beat point 608 moves into the judgment circle 609, the user needs to click the correct instrument picture among the multiple instrument pictures 610.

[0130] For example, see Figure 6C , Figure 6C is a schematic diagram of an application scenario of the audio processing method provided in an embodiment of the present application, such as Figure 6C As shown, when the user clicks on the picture of the musical instrument, different feedback will be presented when the beat point is in different areas of the judgment circle. For example, when the beat point 608 is in front of the judgment circle 609, clicking on the picture of the musical instrument will be judged as fast; when the beat point 608 is in the judgment circle 609, clicking on the picture of the musical instrument will be judged as accurate; when the beat point 608 is behind the judgment circle 609, clicking on the picture of the musical instrument will be judged as slow.

[0131] For example, see Fig.6D , Fig.6D is a schematic diagram of an application scenario of the audio processing method provided in an embodiment of the present application, such as Fig.6D As shown, after the first piece of music is finished, the second piece of music can continue to be played. At this time, the spectrum graph 612 corresponding to the second piece of music can be displayed on the upper track. At the same time, the beat point 613 corresponding to the second piece of music can also be displayed on the lower track. At the same time, the instrument picture 610 will be refreshed again.

[0132] It should be noted that the colors of the spectrograms corresponding to different music segments can be different, for example, the spectrogram corresponding to the first music segment can be green, while the spectrogram corresponding to the second music segment can be purple. In addition, the colors of the beat points corresponding to different music segments can also be different, for example, the color of the beat points corresponding to the first music segment can be green, while the color of the beat points corresponding to the second music segment can be purple, so as to facilitate the user to distinguish.

[0133] For example, see Fig. 6E , Fig. 6E is a schematic diagram of an application scenario of the audio processing method provided in an embodiment of the present application, such as Fig. 6E As shown, when all the music of this round of game is played, it can jump to the level pass result interface 614 of this round of game, and the score 615 (for example, two stars), the number of perfect (corresponding to the above-mentioned accurate) 616, the number of excellent (corresponding to the above-mentioned fast) 617, and the number of good (corresponding to the above-mentioned slow) 618 of this round of game are displayed in the level pass result interface 614. In addition, a "restart" button 619 and a "next level" button 620 can also be displayed in the level pass result interface 614. When the user clicks the "restart" button 619, it can jump to the next level again. Figure 6B The in-game interface 605 is shown; when a user clicks on the "next level" button 620, the game can jump to the in-game interface corresponding to the next level.

[0134] Next, continue to combine Figure 7 The audio processing method provided in the embodiment of the present application is described.

[0135] In some embodiments, see Figure 7 , Figure 7 is a flowchart of the audio processing method provided in the embodiment of the present application, which will be combined with Figure 7 The steps shown are explained.

[0136] In step 201, the in-game game interface is displayed.

[0137] In some embodiments, when a user enters a level selection interface of a music game, the user can select one of the levels to start the game. That is, when a click operation is received from the user for any level, the game interface corresponding to the level can be jumped to.

[0138] In step 202, the first piece of music is played.

[0139] In step 203, the beat points corresponding to the first piece of music are displayed in the lower track.

[0140] In some embodiments, two music tracks may be displayed in the in-game interface, namely the upper track and the lower track. When the first piece of music is played, the spectrum graph corresponding to the first piece of music may be displayed on the upper track, and the beat points corresponding to the first piece of music may be displayed on the lower track, wherein the spectrum graph and the beat points move from right to left at the same time.

[0141] It should be noted that the playing time of each piece of music can be about 1 minute. During the playing of the music, the user needs to determine the instrument used to play the music and select the correct instrument picture from the multiple instrument pictures in the operation area.

[0142] In step 204, when the beat point moves from right to left and enters the determination circle position, the musical instrument picture clicked by the user among the multiple musical instrument pictures is recorded.

[0143] In step 205 , it is determined whether the user has clicked on the correct musical instrument picture. If not, step 206 is executed; if yes, step 207 is executed.

[0144] In step 206, the current game is ended.

[0145] In step 207, a determination result is obtained.

[0146] In some embodiments, when the user determines the instrument of the music (e.g., a song), and the beat point moves from right to left to the position of the judgment circle, the user needs to click the corresponding instrument picture in time to play the correct beat. The score is obtained according to the accuracy of the click. There are three types of click accuracy: perfect means accurate click, excellent means fast click, and good means slow click. After clicking all the beat points of the first music, the second music will be entered.

[0147] In step 208, the second piece of music is played.

[0148] In step 209, the above operation is repeated.

[0149] In some embodiments, when playing the second piece of music, the user needs to determine the musical instrument to be played and the beat points to be clicked again, that is, repeat the above steps 203 to 207. After completing the determination of all the music in this game, the user can finally obtain the pass result feedback.

[0150] In step 210, the score of the current game is settled.

[0151] The audio processing method provided in the embodiment of the present application enhances the user's hearing ability, attention and reaction speed during the game process. It is easier for users (such as the elderly) to accept and more interesting in the form of music games, thereby increasing the user's motivation for long-term training.

[0152] The following continues to describe an exemplary structure of the audio processing device 555 provided in the embodiment of the present application implemented as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the audio processing device 555 of the memory 550 may include: a display module 5551 , a playback module 5552 and a recording module 5553 .

[0153] Display module 5551 is used to display the target interface; playback module 5552 is used to play the target audio corresponding to the target interface, wherein the target interface includes at least two instrument identifiers and at least one beat point corresponding to the target audio, each beat point corresponds to an audio segment of the target audio, and each audio segment corresponds to an instrument identifier; recording module 5553 is used to record the triggered instrument identifier in response to the target beat point being in a to-be-recognized state, so as to obtain a matching result between the instrument identifier corresponding to the target audio segment and the triggered instrument identifier, wherein the target audio segment is the audio segment corresponding to the target beat point, and the target beat point is any beat point of at least one beat point.

[0154] In some embodiments, the display module 5551 is also used to display the target interface, and for each beat point corresponding to the target audio, performs the following processing: display the beat point from the first end of the target interface, and control the beat point to gradually move toward the second end of the target interface until it moves out of the target interface.

[0155] In some embodiments, the display module 5551 is also used to display the identifier to be identified in the target interface; the audio processing device 555 also includes a determination module 5554, which is used to determine that the target beat point is in a state to be identified in response to the distance between the target beat point and the identifier to be identified being less than a distance threshold.

[0156] In some embodiments, the display module 5551 is further used to display a summary interface in response to the target audio being played, wherein the summary interface includes a score, and the score is determined based on the matching results corresponding to at least one beat point.

[0157] In some embodiments, the summary interface also includes the quantities corresponding to the first type, the second type, and the third type, respectively, wherein the first type represents that when the instrument identifier is triggered, the target beat point completely coincides with the identifier to be identified; the second type represents that when the instrument identifier is triggered, the target beat point is approaching the identifier to be identified and partially coincides with the identifier to be identified; the third type represents that when the instrument identifier is triggered, the target beat point is moving away from the identifier to be identified and partially coincides with the identifier to be identified.

[0158] In some embodiments, the display module 5551 is also used to display a target interface, and simultaneously display at least one beat point corresponding to the target audio in the target interface, and control the position of each beat point in the target interface to remain unchanged.

[0159] In some embodiments, the audio processing device 555 also includes a switching module 5555, which is used to control the selected state to switch between at least one beat point; the determination module 5554 is also used to determine the beat point in the selected state as the target beat point in the to-be-recognized state.

[0160] In some embodiments, the display module 5551 is also used to display a summary interface in response to the target audio being played back, wherein the summary interface includes a score, and the numbers corresponding to the fourth type and the fifth type, respectively, and the score is determined based on the matching results corresponding to at least one beat point, and the fourth type represents that when the instrument identifier is triggered, the duration of the target beat point in the selected state is less than the duration threshold; the fifth type represents that when the instrument identifier is triggered, the duration of the target beat point in the selected state is greater than the duration threshold.

[0161] In some embodiments, the determination module 5554 is also used to perform the following processing: divide the target audio into at least one audio segment; for each audio segment, perform one of the following processing: use the starting point of the audio segment as the beat point corresponding to the audio segment; use the end point of the audio segment as the beat point corresponding to the audio segment; use the midpoint of the audio segment as the beat point corresponding to the audio segment.

[0162] The display module 5551 is also used to perform the following processing for each audio segment included in the target audio: display the spectrum graph corresponding to the audio segment from the first end of the target interface, and control the spectrum graph to gradually move toward the second end of the target interface until it moves out of the target interface.

[0163] In some embodiments, the target interface includes a first audio track and a second audio track, wherein the spectrogram corresponding to the audio clip moves on the first audio track, the beat points corresponding to the audio clip move on the second audio track, and the spectrogram appears in the target interface earlier than the beat points.

[0164] In some embodiments, the display modes of the spectrograms corresponding to different audio clips are different, and when the instrument identifiers corresponding to two adjacent audio clips are the same, the display modes of the beat points corresponding to the two adjacent audio clips are the same; when the instrument identifiers corresponding to two adjacent audio clips are different, the display modes of the beat points corresponding to the two adjacent audio clips are different.

[0165] In some embodiments, the display module 5551 is also used to display a menu interface, wherein the menu interface includes a music option; and to display a level selection interface in response to a trigger operation on the music option, wherein the level interface includes multiple candidate levels; and in response to the level selection operation, display a target interface corresponding to the selected level.

[0166] In some embodiments, the playback module 5552 is also used to continue playing the next audio segment in response to the target audio being played; the display module 5551 is also used to update and display at least one beat point corresponding to the next audio segment; and to update and display at least two instrument identifiers, wherein the at least two instrument identifiers before the update are at least partially different from the at least two instrument identifiers after the update.

[0167] In some embodiments, the playback module 5552 is further configured to replay the audio in response to the matching result indicating that the instrument identifier corresponding to the target audio segment is inconsistent with the triggered instrument identifier.

[0168] It should be noted that the description of the device in the embodiment of the present application is similar to the description of the method embodiment described above, and has similar beneficial effects as the method embodiment, so it will not be repeated. Figure 3 , Figure 4A ,or Figure 4B The present invention should be understood by referring to the description of any one of the accompanying drawings.

[0169] The embodiment of the present application provides a computer program product, which includes a computer program or a computer executable instruction, and the computer program or the computer executable instruction is stored in a computer readable storage medium. The processor of the computer device reads the computer executable instruction from the computer readable storage medium, and the processor executes the computer executable instruction, so that the computer device executes the audio processing method described in the embodiment of the present application.

[0170] The present application embodiment provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the processor will be caused to execute the audio processing method provided by the present application embodiment, for example, Figure 3 , Figure 4A ,or Figure 4B The audio processing method is shown.

[0171] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or it may be various devices including one or any combination of the above memories.

[0172] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0173] As an example, the executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.

[0174] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims

1. A method for processing audio, characterized in that: The method comprises: Displaying a target interface, and playing a target audio corresponding to the target interface, wherein the target interface includes at least two instrument identifiers and at least one beat point corresponding to the target audio, each beat point corresponds to an audio segment of the target audio, and each audio segment corresponds to one instrument identifier; In response to the target beat point being in a state to be identified, the triggered instrument identifier is recorded to obtain a matching result between the instrument identifier corresponding to the target audio segment and the triggered instrument identifier, wherein the target audio segment is an audio segment corresponding to the target beat point, and the target beat point is any beat point among the at least one beat point.

2. The method according to claim 1, characterized in that: The display target interface includes: The target interface is displayed, and the following processing is performed for each beat point corresponding to the target audio: The beat points are displayed starting from a first end of the target interface, and the beat points are controlled to gradually move toward a second end of the target interface until they are moved out of the target interface.

3. The method according to claim 2, characterized in that The method further comprises: Displaying the identification to be identified in the target interface; In response to the distance between the target beat point and the to-be-recognized mark being less than a distance threshold, it is determined that the target beat point is in the to-be-recognized state.

4. The method according to claim 2 or 3, characterized in that: The method further comprises: In response to the target audio being played, a summary interface is displayed, wherein the summary interface includes a score, and the score is determined based on the matching results corresponding to the at least one beat point.

5. The method according to claim 4, characterized in that The summary interface also includes the quantities corresponding to the first type, the second type, and the third type, respectively, wherein the first type represents that when the instrument identifier is triggered, the target beat point completely overlaps with the identifier to be identified; the second type represents that when the instrument identifier is triggered, the target beat point is approaching the identifier to be identified and partially overlaps with the identifier to be identified; the third type represents that when the instrument identifier is triggered, the target beat point is moving away from the identifier to be identified and partially overlaps with the identifier to be identified.

6. The method according to claim 1, characterized in that The display target interface includes: A target interface is displayed, and at least one beat point corresponding to the target audio is simultaneously displayed in the target interface, and the position of each beat point in the target interface is controlled to remain unchanged.

7. The method according to claim 6, characterized in that The method further comprises: Controlling the selected state to switch between the at least one beat point; The beat point in the selected state is determined as the target beat point in the to-be-recognized state.

8. The method according to claim 7, characterized in that The method further comprises: In response to the target audio being played, a summary interface is displayed, wherein the summary interface includes a score, and the numbers corresponding to the fourth type and the fifth type, respectively, the score being determined based on the matching results corresponding to the at least one beat point, the fourth type representing that when the instrument identifier is triggered, the duration for which the target beat point is in the selected state is less than a duration threshold; the fifth type representing that when the instrument identifier is triggered, the duration for which the target beat point is in the selected state is greater than the duration threshold.

9. The method according to any one of claims 1 to 8, characterized in that: Before displaying the target interface, the method further includes: Dividing the target audio into at least one audio segment; For each of the audio segments, one of the following processes is performed: Taking the starting point of the audio segment as the beat point corresponding to the audio segment; Using the end point of the audio segment as the beat point corresponding to the audio segment; The midpoint of the audio segment is used as the beat point corresponding to the audio segment.

10. The method according to claim 1, characterized in that When playing the target audio corresponding to the target interface, the method further includes: For each of the audio segments included in the target audio, the following processing is performed: The spectrogram corresponding to the audio segment is displayed starting from the first end of the target interface, and the spectrogram is controlled to gradually move toward the second end of the target interface until it moves out of the target interface.

11. The method according to claim 10, characterized in that The target interface includes a first audio track and a second audio track, wherein the spectrogram corresponding to the audio segment moves on the first audio track, the beat point corresponding to the audio segment moves on the second audio track, and the spectrogram appears in the target interface earlier than the beat point.

12. The method according to claim 10, characterized in that The display modes of the spectrum graphs corresponding to different audio clips are different, and when the instrument identifiers corresponding to two adjacent audio clips are the same, the display modes of the beat points corresponding to the two adjacent audio clips are the same; when the instrument identifiers corresponding to two adjacent audio clips are different, the display modes of the beat points corresponding to the two adjacent audio clips are different.

13. The method according to claim 1, characterized in that The display target interface includes: Displaying a menu interface, wherein the menu interface includes a music option; In response to a trigger operation on the music option, displaying a level selection interface, wherein the level interface includes a plurality of candidate levels; In response to the level selection operation, a target interface corresponding to the selected level is displayed.

14. The method according to claim 1, characterized in that The method further comprises: In response to the target audio being played, continuing to play the next audio; Update and display at least one beat point corresponding to the next audio segment; At least two musical instrument identifiers are updated and displayed, wherein the at least two musical instrument identifiers before the update are at least partially different from the at least two musical instrument identifiers after the update.

15. The method according to claim 1, characterized in that The method further comprises: In response to the matching result indicating that the instrument identifier corresponding to the target audio segment is inconsistent with the triggered instrument identifier, the target audio is played again.

16. An audio processing device, characterized in that: The device comprises: Display module, used for displaying the target interface; A playing module, used for playing the target audio corresponding to the target interface, wherein the target interface includes at least two instrument identifiers and at least one beat point corresponding to the target audio, each beat point corresponds to an audio segment of the target audio, and each audio segment corresponds to one instrument identifier; A recording module is used to record the triggered instrument identifier in response to the target beat point being in a to-be-recognized state, so as to obtain a matching result between the instrument identifier corresponding to the target audio segment and the triggered instrument identifier, wherein the target audio segment is the audio segment corresponding to the target beat point, and the target beat point is any beat point among the at least one beat point.

17. An electronic device, characterized in that: include: A memory for storing executable instructions; A processor, configured to implement the audio processing method according to any one of claims 1 to 15 when executing executable instructions stored in the memory.

18. A computer-readable storage medium storing computer-executable instructions, characterized in that: When the computer executable instructions are executed by a processor, the audio processing method described in any one of claims 1 to 15 is implemented.

19. A computer program product comprising a computer program or computer executable instructions, characterized in that: When the computer program or computer executable instructions are executed by a processor, the audio processing method described in any one of claims 1 to 15 is implemented.

Citation Information

Patent Citations

  • Method and device for operating simulated musical instrument assembly, storage medium and computer equipment

    CN112420006A

  • Audio node-based user interaction method, user interaction device and electronic equipment

    CN113076036A

  • Music generation method and device, electronic equipment and storage medium

    CN113438547A

  • Intelligent musical instrument splicing game system based on Splicer source separation engine

    CN114399985A

  • Beat point detection method and device, storage medium and electronic equipment

    CN115272935A