Sound effect configuration method and device, computer device, and storage medium
By displaying UI nodes and their attribute information in the sound effect configuration interface and updating sound effect information in response to user operations, the problem of high difficulty and low efficiency in sound effect configuration in game applications is solved, and high-efficiency sound effect attachment without code is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-20
- Publication Date
- 2026-03-03
AI Technical Summary
In existing technologies, configuring sound effects for game interfaces in game applications is difficult and inefficient, requiring developers to write a large amount of sound effect integration code.
A method for configuring sound effects is provided. By displaying the target UI node and its attribute information in the sound effect configuration interface, updating the attribute information in response to the user's touch operation, and obtaining the sound effect information based on the updated information, the sound effect can be configured directly without writing code.
It reduces the difficulty of configuring sound effects, improves the efficiency of sound effect configuration, and enables direct connection between sound effects and UI nodes.
Smart Images

Figure CN115826904B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of artificial intelligence technology, specifically to a sound effect configuration method, apparatus, computer device, and storage medium. Background Technology
[0002] To enhance the gaming experience, different sound effects are often used for different user interfaces (UI) within game applications. The configuration of existing sound effects typically involves sound designers creating the audio, followed by programmers coding the audio to integrate it into different game interfaces. This process often requires multiple iterations until the game application's interface sound effects achieve synchronized audio and visual effects.
[0003] As games become larger and larger, the game interfaces within game applications become more and more complex, making it increasingly difficult to integrate sound effects into the game interfaces. This requires developers to write a large amount of code for integrating sound effects, resulting in high difficulty and low efficiency in sound effect configuration. Summary of the Invention
[0004] Therefore, it is necessary to provide a sound effect configuration method, device, computer equipment, and storage medium to address the aforementioned technical problems and improve the efficiency of sound effect configuration.
[0005] Firstly, this application provides a sound effect configuration method, which includes:
[0006] The sound effects configuration interface displays the target UI node of the target application and the corresponding UI attribute information of the target UI node.
[0007] In response to a touch operation applied to the UI attribute information, the UI attribute information is updated, and sound effect information is obtained based on the updated UI attribute information;
[0008] Configure sound effects for the target UI node based on the sound effect information.
[0009] Secondly, this application provides a sound effect configuration device, the device comprising:
[0010] The display module is used to display the target UI node of the target application and the UI attribute information corresponding to the target UI node in the sound effect configuration interface;
[0011] The operation module is used to respond to touch operations applied to the UI attribute information, update the UI attribute information, and obtain sound effect information based on the updated UI attribute information;
[0012] The configuration module is used to configure the sound effects of the target UI node based on the sound effect information.
[0013] Thirdly, this application also provides a computer device, which includes:
[0014] One or more processors;
[0015] Memory; and
[0016] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the sound effect configuration method.
[0017] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to execute the steps in the sound effect configuration method.
[0018] Fifthly, embodiments of this application provide a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method provided in the first aspect described above.
[0019] The aforementioned sound effect configuration method, apparatus, computer device, and storage medium display the target UI node of the target application and the corresponding UI attribute information of the target UI node in the sound effect configuration interface; update the UI attribute information in response to touch operation on the UI attribute information; obtain sound effect information based on the updated UI attribute information; and configure the sound effect of the target UI node based on the sound effect information. By enabling direct editing of the UI node and its corresponding UI attributes in the sound effect configuration interface, the sound effect can be directly linked to the UI node, eliminating the need for developers to write code to implement the sound effect linking, reducing the operational difficulty of sound effect configuration, and improving the efficiency of sound effect configuration. Attached Figure Description
[0020] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 This is a flowchart illustrating the sound effect configuration method in an embodiment of this application;
[0022] Figure 2 This is a schematic diagram of the sound effect configuration interface in an embodiment of this application;
[0023] Figure 3 This is another schematic diagram of the sound effect configuration interface in the embodiments of this application;
[0024] Figure 4 This is a flowchart illustrating the UI attribute information update steps in an embodiment of this application;
[0025] Figure 5 This is another flowchart illustrating the UI attribute information update step in the embodiments of this application;
[0026] Figure 6 This is a schematic diagram of the sound effect configuration device in the embodiments of this application;
[0027] Figure 7 This is a schematic diagram of the structure of the computer device in the embodiments of this application. Detailed Implementation
[0028] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0029] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the stated features. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0030] In the description of this application, the word "for example" is used to mean "used as an example, illustration, or description." Any embodiment described as "for example" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use the invention. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that the invention can be made without using these specific details. In other instances, well-known structures and processes will not be described in detail to avoid obscuring the description of the invention with unnecessary detail. Therefore, the invention is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.
[0031] Current interface sound effect configuration typically involves sound designers creating the audio, followed by programmers coding the audio to attach it to different game interfaces. The sound designers then adjust the game interface and sound effects again, requiring multiple iterations until the game application achieves synchronized audio and video. However, as games grow larger and their interfaces become more complex, attaching sound effects to different interfaces becomes increasingly difficult. This often requires programmers to write extensive code to adjust and integrate the UI and sound effects, resulting in low game development efficiency. This application provides a sound effect configuration method applicable to computer devices capable of displaying a sound effect configuration interface. This method eliminates the need for coding; users simply input configuration parameters via touch on the interface. The computer device responds to the touch, sets the sound effect information for the corresponding UI node, and then configures the sound effect for that UI node based on that information. This reduces the workload for developers, making sound effect configuration more convenient and intuitive, and improving efficiency.
[0032] The computer device can be a terminal, a server, or other types of devices with display and processing functions; this application embodiment does not impose specific limitations on this. The following explanation uses a processing device as the execution subject to illustrate the game interface animation editing method provided in this application embodiment.
[0033] See Figure 1 This application provides a sound effect configuration method, which includes steps S110 to S130, as follows:
[0034] Step S110: Display the target UI node of the target application and the corresponding UI attribute information of the target UI node in the sound effect configuration interface.
[0035] Step S120: In response to a touch operation on the UI property information, update the UI property information and obtain sound effect information based on the updated UI property information.
[0036] Step S130: Configure sound effects for the target UI node based on sound effect information.
[0037] The audio configuration interface can be used to display UI nodes in the application and their corresponding attribute information, as well as configuration information for receiving user input, so as to configure the sound effects of the UI nodes. Specifically, the sound effect configuration interface can be a visual interface provided by a graphics processing application, such as the Cocos Studio application; or it can be a visual interface provided by an audio engine program, such as the Wwise audio engine.
[0038] Here, the target UI node refers to the interface interaction element in the target application's corresponding interactive interface that requires sound effect configuration. For example, a target UI node can be a UI control in the interactive interface, such as a button control, a prompt control, or a pop-up control. A target UI node can also be a UI animation, such as a countdown animation or a task success animation on the game interface in a game application. Displaying the target UI node of the target application in the sound effect configuration interface can specifically involve displaying the corresponding interface interaction element; for example, taking a UI node as a UI control, such as... Figure 2 As shown, Figure 2 The sound effect configuration interface shown displays the UI control 210 corresponding to the target UI node; for example, taking a UI node as a UI animation, such as... Figure 3 As shown, Figure 3 The sound effects configuration interface shown opens the UI animation via the canvas to display the UI animation 310 corresponding to the target UI node.
[0039] Furthermore, the target UI node can be one or more UI nodes selected from the interface layout information of the corresponding interactive interface of the target application, or it can be the UI node corresponding to the loaded UI file.
[0040] Specifically, in one embodiment, before the step of displaying the target UI node of the target application and the UI attribute information corresponding to the target UI node in the sound effect configuration interface, the method further includes: displaying the UI node tree of the target application in the sound effect configuration interface; and determining the target UI node in the UI node tree in response to a touch operation performed on the UI node tree.
[0041] The target application's interactive interface includes various UI elements (i.e., UI nodes), and the interaction logic of the entire interface can be implemented based on these elements. Specifically, the terminal can load the target application's UI layout file, generate a UI node tree based on the UI layout information in the file, and display the UI node tree through the sound effect configuration interface. This UI node tree represents the layout information between different UI nodes in the target application's corresponding interactive interface; each node in the UI node tree is a UI node. To facilitate user operation, UI nodes in the UI node tree are represented by node names. If a user wants to operate on a specific UI node, they can do so by operating on the UI node name corresponding to that node.
[0042] After the UI node tree of the target application is displayed in the sound effect configuration interface, the developer can trigger a selection operation on any UI node in the UI node tree through the terminal to select the target UI node. At this time, the terminal obtains the selection operation on the UI node tree and the UI node triggered by the selection operation, that is, obtains the target UI node, and then updates and displays the target UI node and the UI attribute information of the UI node in the sound effect configuration interface.
[0043] UI attribute information refers to the relevant attribute information of UI nodes, such as the name of the interactive element corresponding to the UI node, the track of the UI node, etc. Specifically, to facilitate user operation, UI attribute information can be displayed in the form of a graphical control on the audio configuration interface, and touch operations for changing UI attribute information can be received through this graphical control. Still using... Figure 2 For example, Figure 2 The sound effect configuration interface shown also includes the control name 220 corresponding to the UI control; for example... Figure 3 As shown, Figure 3 The sound effect configuration interface also includes the animation timeline 320 corresponding to UI animation 310. By displaying UI nodes and their corresponding attribute information in the sound effect editing interface, developers can directly configure sound effects for different UI nodes within the interface.
[0044] The touch operation, which affects UI attribute information, is used to edit and update the UI attribute information corresponding to UI nodes. Specifically, the touch operation can be a touch operation, cursor operation, button operation, etc. The sound effect information can include information such as the corresponding audio file and the trigger node.
[0045] Specifically, users can trigger a touch operation through the sound effect configuration interface to edit the UI attribute information of the target UI node, thereby changing the UI attribute information of the target UI node. When the terminal receives the touch operation, it updates the UI attribute information based on the touch operation, obtains the updated information from the updated UI attribute information, obtains the corresponding sound effect information based on the updated information, and finally configures the sound effect of the target UI node based on the sound effect information to generate the sound effect file corresponding to the target UI node.
[0046] Furthermore, the terminal can update the UI attribute information in response to a touch operation on the UI attribute information, and obtain the sound effect information based on the updated UI attribute information, through the following two possible implementation methods:
[0047] The first possible implementation, as mentioned above, is that the target UI node can be a UI control in the interactive interface, and the corresponding UI attribute information can refer to the control name of the UI control. In one embodiment, such as... Figure 4As shown, the steps of updating the UI property information in response to a touch operation on the UI property information and obtaining sound effect information based on the updated UI property information include:
[0048] S410, responds to an edit operation on the control name and updates the control name;
[0049] S420, extract the sound effect configuration field from the updated control name;
[0050] S430, index the sound effect information corresponding to the sound effect configuration field based on the sound effect configuration field.
[0051] Specifically, responding to touch operations on UI property information can be an editing operation on the control name of a UI control. The terminal can receive the user's editing operation input for the control name based on the sound effect configuration interface. After receiving the editing operation, the terminal updates the control name of the UI control based on the editing operation. Specifically, the editing operation can be a touch operation, cursor operation, button operation, etc.
[0052] The sound effect configuration field is used to identify different sound effect information. Through the sound effect configuration field, the corresponding sound effect audio and sound effect trigger node can be found. Specifically, in one embodiment, before the step of extracting the sound effect configuration field from the updated control name, the method may further include: obtaining the audio file information of the sound effect audio; constructing sound effect information based on the audio file information corresponding to the sound effect audio and the sound effect trigger node of the sound effect audio, and generating a sound effect configuration field indexing the sound effect information.
[0053] The audio file information includes, but is not limited to, the file path and filename of the audio file. The file path and filename allow for quick location of the sound effect audio. The sound effect trigger node indicates the trigger event that initiates the playback of the sound effect audio. For example, the sound effect trigger node can specifically include a sound effect trigger flag value. When the sound effect trigger flag value is 1, it indicates that the sound effect audio starts playing during the release phase of the trigger operation when the UI control receives the trigger operation. When the sound effect trigger flag value is 2, it indicates that the sound effect audio starts playing during the press phase of the trigger operation when the UI control receives the trigger operation. When the sound effect trigger flag value is 3, it indicates that the sound effect audio starts playing after the UI control has been displayed, and so on.
[0054] Specifically, the audio file information corresponding to the sound effect audio is associated and mapped with the sound effect trigger node of the sound effect audio to establish sound effect information, and a sound effect configuration field is defined for the sound effect information. As shown in Table 1 below, Table 1 shows different sound effect information and the corresponding sound effect configuration fields. The sound effect configuration field can be composed of identifier characters and numbers, and the sound effect trigger node includes the sound effect trigger identifier value. Taking the sound effect configuration field "%100" as an example, the sound effect configuration field includes the identifier character "%" and the number "100". The sound effect audio "Play_ui_click_1" can be indexed through the sound effect configuration field "%100", and the sound effect trigger node that triggers the playback of the sound effect audio is the sound effect trigger identifier value 1. That is, the sound effect audio "Play_ui_click_1" starts playing when the UI control receives the trigger operation during the release phase of the trigger operation.
[0055] Sound effect configuration fields Audio file path Audio file name Sound effect trigger node %100 Sound\ui_common.bnk Play_ui_click_1 1 %200 Sound\ui_common.bnk Play_ui_tab 2 %300 Sound\ui_common.bnk Play_ui_bagopen 3
[0056] Table 1
[0057] Specifically, after displaying the UI controls of the target application and their corresponding control names on the sound effect configuration interface, the user can edit the control names through the sound effect configuration interface and input pre-generated sound effect configuration fields through the editing operation; after receiving the editing operation, the terminal updates the control names of the UI controls based on the editing operation, identifies the updated information from the control names, obtains the sound effect configuration fields, and indexes the sound effect information corresponding to the sound effect configuration fields based on the sound effect configuration field values.
[0058] See Figure 2 As shown, the editing operation can include the user clicking the control name 220 in the sound effect configuration interface with the left mouse button and the user inputting sound effect configuration fields via the keyboard. The sound effect configuration interface responds to the user clicking the left mouse button to select the control name 220 and responds to the user inputting sound effect configuration fields via the keyboard by updating the control name 200 from "PanelBG" to "PanelBG%200". Then, it identifies the update information from the control name to obtain the sound effect configuration field "%200" and indexes the corresponding sound effect information based on the sound effect configuration field "%200".
[0059] After obtaining the sound effect information corresponding to the sound effect configuration field, in one embodiment, the step of configuring the sound effect of the target UI node based on the sound effect information may further include: obtaining the audio file information and the sound effect trigger node in the sound effect information; and writing the audio file information and the sound effect trigger node into the control configuration file of the UI control.
[0060] Specifically, after extracting the sound effect information corresponding to the sound effect configuration field, the audio file information and sound effect trigger nodes in the sound effect information can be written one by one into the UI control configuration file corresponding to the UI control. During the operation of the target application, when the UI control receives a touch event, the trigger event can be compared with the sound effect trigger node in the control configuration file corresponding to the UI control. When the touch event matches the sound effect trigger node, the corresponding sound effect audio is found and played according to the sound effect file information in the control configuration file.
[0061] For example, taking a shooting survival game as an example and Table 1 above, the game interface includes shooting buttons that typically correspond to virtual guns. Specifically, the sound effect configuration process for this shooting button can be achieved by displaying the shooting button and its corresponding button name through the sound effect configuration interface. Users can edit the button name of the shooting button through the sound effect configuration interface, and input the pre-set sound effect configuration field "%200" as the suffix of the button name. After the terminal receives the editing operation, it updates the control name of the UI control based on the editing operation, identifies the update information from the control name, obtains the sound effect configuration field "%200", and indexes the sound effect information corresponding to the sound effect configuration field based on the sound effect configuration field value "%200", that is, the sound effect audio "Play_ui_tab" is the sound effect trigger node that triggers the playback of this sound effect audio. That is, when the shooting button is pressed after receiving the trigger operation, the shooting sound effect audio "Play_ui_click_1" is played.
[0062] By editing the control names of UI controls and appending sound effect configuration fields, the corresponding sound effect information can be indexed through the sound effect configuration fields to configure the sound effects of UI controls. This avoids repetitive sound effect configuration work for UI controls that appear repeatedly in different interactive interfaces, reduces the complexity of sound effect configuration work, and improves the efficiency of sound effect configuration.
[0063] Furthermore, in one embodiment, after obtaining the sound effect configuration field, the sound effect configuration field can be directly written to the control configuration file of the UI control. At the same time, the sound effect configuration field, which constructs sound effect information based on the audio file information corresponding to the sound effect audio and the sound effect trigger node of the sound effect audio, and the index of the sound effect information, is saved as a control sound effect index table. During the operation of the target application, when the UI control receives a touch event, it can search for the audio file information and the sound effect trigger node in the control sound effect index table based on the sound effect configuration field in the control configuration file corresponding to the UI control. By comparing the currently received touch event with the sound effect trigger node, if the touch event and the sound effect trigger node are consistent, the corresponding sound effect audio is found and played according to the sound effect file information.
[0064] The second possible implementation, as mentioned above, is that the target UI node can be a UI animation in the interactive interface, and the corresponding UI attribute information can refer to the animation timeline of the UI animation, such as... Figure 5 As shown, in one embodiment, the step of updating the UI attribute information in response to a touch operation on the UI attribute information and obtaining sound effect information based on the updated UI attribute information includes:
[0065] S510, in response to editing operations performed on the animation timeline, sets audio frame information at a specified time point on the animation timeline;
[0066] S520 generates sound effect information for UI animations based on specified time points and audio frame information.
[0067] The animation timeline refers to the playback track of the UI animation. The response to touch operations on UI property information can specifically be an editing operation on the animation timeline. The terminal can receive editing operations input by the user on the animation timeline based on the sound effect configuration interface. After receiving the editing operation, the terminal retrieves the sound effect information set on the animation timeline. Specifically, the editing operation can be a touch operation, cursor operation, button operation, etc.
[0068] The specified time point is the selected time point on the animation timeline based on the editing operation performed on the animation timeline; the sound effect frame information refers to the sound effect-related information triggered at the specified time point, including but not limited to the audio file information of the sound effect audio, the sound effect audio playback-related settings, etc., where the sound effect audio playback-related settings include but are not limited to the sound effect audio insertion method (such as sound effect fade-in and fade-out) and sound effect loop settings (such as single playback and loop playback).
[0069] Specifically, after displaying the UI animation of the target application and the corresponding animation timeline in the sound effect configuration interface, the user can edit the animation timeline through the sound effect configuration interface. By editing, the user can select a specified time point on the animation timeline and set the audio file information, sound effect playback related settings, and other audio frame information at the specified time point. After receiving the editing operation, the terminal obtains the specified time point and sound effect frame information based on the editing operation to obtain the sound effect information of the UI animation.
[0070] See Figure 3As shown, the editing operation can include the user clicking on the animation timeline 320 in the sound effect configuration interface with the left mouse button to specify a time point. The sound effect configuration interface responds to the user's left mouse button click to determine the specified time point 321 and displays the sound effect menu 330. The user can select the sound effect audio 331 in the sound effect menu 330. The sound effect configuration interface responds to the user's selection of the sound effect audio 331 and determines the audio frame information.
[0071] After obtaining the sound effect information corresponding to the animation timeline, in one embodiment, the step of configuring the sound effect of the target UI node based on the sound effect information includes: packaging the specified time point and audio frame information in the sound effect information into a sound effect configuration file for the UI animation.
[0072] Specifically, after obtaining the sound effect information, it can be packaged and saved as a sound effect configuration file in the corresponding path of the UI animation. During the target application's operation, the target application automatically loads the sound effect configuration file, and plays the sound effects based on the configuration file during UI animation playback. By editing the animation timeline of the UI animation, sound effect frame information can be set at specified time points. This avoids repetitive sound effect configuration work for UI controls that appear repeatedly in different interactive interfaces, reducing the complexity of sound effect configuration and improving its efficiency.
[0073] Taking Wwise as an example, the audio frame information is specifically an Event format file. This audio frame information, combined with specified time points, is integrated to obtain a Bnk format sound effect configuration file. This Bnk format sound effect configuration file is the audio format that the game engine can recognize in the final output of Wwise. Typically, a Bnk file contains multiple Events. The game engine needs to load the Bnk file first before it can read and play the Events it contains. By linking the Event file and the Bnk file, the linking process between sound effects and UI animations is completed.
[0074] In the above sound effect configuration method, the target UI node of the target application and its corresponding UI attribute information are displayed in the sound effect configuration interface; in response to touch operations on the UI attribute information, the UI attribute information is updated, and sound effect information is obtained based on the updated UI attribute information; sound effect configuration is performed on the target UI node based on the sound effect information. By enabling direct editing of UI nodes and their corresponding UI attributes in the sound effect configuration interface, sound effects can be directly linked to UI nodes without requiring developers to write code to implement sound effect linking, thus reducing the operational difficulty of sound effect configuration and improving its efficiency.
[0075] To better implement the sound effect configuration method provided in the embodiments of this application, based on the sound effect configuration method proposed in the embodiments of this application, this application also provides a sound effect configuration device, such as... Figure 6 As shown, the sound effect configuration device 600 includes:
[0076] Display module 610 is used to display the target UI node of the target application and the UI attribute information corresponding to the target UI node in the sound effect configuration interface;
[0077] Operation module 620 is used to respond to touch operations on UI attribute information, update UI attribute information, and obtain sound effect information based on the updated UI attribute information;
[0078] Configuration module 630 is used to configure sound effects for target UI nodes based on sound effect information.
[0079] In some embodiments of this application, the target UI node is a UI control, and the UI attribute information is the control name of the UI control; the operation module is used to respond to the editing operation on the control name, update the control name; extract the sound effect configuration field from the updated control name; and index the sound effect information corresponding to the sound effect configuration field according to the sound effect configuration field.
[0080] In some embodiments of this application, a configuration module is used to obtain audio file information and sound effect triggering nodes from the sound effect information; and to write the audio file information and sound effect triggering nodes into the control configuration file of the UI control.
[0081] In some embodiments of this application, the operation module is further configured to obtain audio file information of the sound effect audio; construct sound effect information based on the audio file information corresponding to the sound effect audio and the sound effect trigger node of the sound effect audio, and generate a sound effect configuration field indexing the sound effect information.
[0082] In some embodiments of this application, the target UI node is a UI animation, and the UI attribute information is the animation timeline of the UI animation; the operation module is used to respond to the editing operation applied to the animation timeline, set audio frame information at a specified time point on the animation timeline, and generate sound effect information of the UI animation based on the specified time point and the audio frame information.
[0083] In some embodiments of this application, a configuration module is used to package a specified time point and audio frame information in the sound effect information into a sound effect configuration file for UI animation.
[0084] In some embodiments of this application, a display module is used to display the UI node tree of the target application in the sound effect configuration interface; and to determine the target UI node in the UI node tree in response to a touch operation performed on the UI node tree.
[0085] Specific limitations regarding the sound effect configuration device can be found in the limitations of the sound effect configuration method described above, and will not be repeated here. Each module in the aforementioned sound effect configuration device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0086] Furthermore, embodiments of this application also provide a computer device, which can be a terminal, such as a smartphone, tablet computer, laptop computer, touch screen, game console, personal computer (PC), personal digital assistant (PDA), or other terminal device. Figure 7 As shown, Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The computer device 700 includes a processor 701 with one or more processing cores, a memory 702 with one or more computer-readable storage media, and a computer program stored on the memory 702 and executable on the processor. The processor 701 and the memory 702 are electrically connected. Those skilled in the art will understand that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0087] The processor 701 is the control center of the computer device 700. It connects various parts of the computer device 700 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 702, and calling data stored in the memory 702, it performs various functions of the computer device 700 and processes data, thereby monitoring the computer device 700 as a whole.
[0088] In this embodiment, the processor 701 in the computer device 700 loads the instructions corresponding to the processes of one or more applications into the memory 702 according to the following steps, and the processor 701 runs the applications stored in the memory 702 to achieve the following functions:
[0089] The sound effects configuration interface displays the target UI node of the target application and the corresponding UI attribute information of the target UI node;
[0090] In response to touch operations on UI property information, update the UI property information and obtain sound effect information based on the updated UI property information;
[0091] Configure sound effects for the target UI node based on sound effect information.
[0092] In some embodiments of this application, the target UI node is a UI control, and the UI attribute information is the control name of the UI control; the application stored in the memory 702 and run by the processor 701 can perform the following functions: respond to the editing operation on the control name and update the control name; extract the sound effect configuration field from the updated control name; and index the sound effect information corresponding to the sound effect configuration field according to the sound effect configuration field.
[0093] In some embodiments of this application, the processor 701 runs an application stored in the memory 702 to perform the following functions: obtain audio file information and sound effect trigger nodes from the sound effect information; and write the audio file information and sound effect trigger nodes into the control configuration file of the UI control.
[0094] In some embodiments of this application, the processor 701 runs an application stored in the memory 702 to perform the following functions: obtain audio file information of sound effect audio; construct sound effect information based on the audio file information corresponding to the sound effect audio and the sound effect trigger node of the sound effect audio, and generate a sound effect configuration field indexing the sound effect information.
[0095] In some embodiments of this application, the target UI node is a UI animation, and the UI attribute information is the animation timeline of the UI animation; the application stored in the memory 702 can be run by the processor 701 to achieve the following functions: in response to the editing operation on the animation timeline, setting audio frame information at a specified time point on the animation timeline; generating sound effect information of the UI animation based on the specified time point and the audio frame information.
[0096] In some embodiments of this application, the application stored in the memory 702 can be run by the processor 701 to achieve the following function: package the specified time points and audio frame information in the sound effect information into a sound effect configuration file for UI animation.
[0097] In some embodiments of this application, the processor 701 can run an application stored in the memory 702 to perform the following functions: display the UI node tree of the target application in the sound effect configuration interface; and determine the target UI node in the UI node tree in response to a touch operation on the UI node tree.
[0098] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0099] Optional, such as Figure 7As shown, the computer device 700 also includes: a touch screen display 703, a radio frequency circuit 704, an audio circuit 705, an input unit 706, and a power supply 707. The processor 701 is electrically connected to the touch screen display 703, the radio frequency circuit 704, the audio circuit 705, the input unit 706, and the power supply 707. Those skilled in the art will understand that... Figure 7 The computer device structure shown does not constitute a limitation on the computer device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0100] The touch display screen 703 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The touch display screen 703 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the computer device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Optionally, the display panel can be configured using a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar technologies. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program according to the operation commands. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 701. It can also receive and execute commands from the processor 701. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 701 to determine the type of touch event. Subsequently, the processor 701 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and the display panel can be integrated into the touch display screen 703 to achieve input and output functions. However, in some embodiments, the touch panel and the touch display screen 703 can be implemented as two independent components to achieve input and output functions. That is, the touch display screen 703 can also be used as part of the input unit 706 to achieve input functions.
[0101] The radio frequency circuit 704 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other computer devices, and to transmit and receive signals with network devices or other computer devices.
[0102] Audio circuitry 705 can be used to provide an audio interface between a user and a computer device via a speaker and a microphone. Audio circuitry 705 converts received audio data into electrical signals, transmits them to the speaker, and the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuitry 705, converted back into audio data, and then processed by processor 701 before being transmitted via radio frequency circuitry 704 to, for example, another computer device, or output to memory 702 for further processing. Audio circuitry 705 may also include an earphone jack to facilitate communication between peripheral headphones and the computer device.
[0103] The input unit 706 can be used to receive input numbers, character information or user feature information (such as fingerprints, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0104] Power supply 707 is used to supply power to various components of computer device 700. Optionally, power supply 707 can be logically connected to processor 701 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 707 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0105] although Figure 7 As not shown in the diagram, the computer device 700 may also include a camera, sensors, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0106] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0107] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0108] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of computer programs that can be loaded by a processor to execute the steps in any of the sound effect configuration methods provided in embodiments of this application. For example, the computer program can execute the following steps:
[0109] The sound effects configuration interface displays the target UI node of the target application and the corresponding UI attribute information of the target UI node;
[0110] In response to touch operations on UI property information, update the UI property information and obtain sound effect information based on the updated UI property information;
[0111] Configure sound effects for the target UI node based on sound effect information.
[0112] In some embodiments of this application, the target UI node is a UI control, and the UI attribute information is the control name of the UI control; the computer program can perform the following steps: responding to an edit operation on the control name, updating the control name; extracting the sound effect configuration field from the updated control name; and indexing the sound effect information corresponding to the sound effect configuration field based on the sound effect configuration field.
[0113] In some embodiments of this application, the computer program can perform the following steps: obtain audio file information and sound effect triggering nodes from the sound effect information; and write the audio file information and sound effect triggering nodes into the control configuration file of the UI control.
[0114] In some embodiments of this application, the computer program can perform the following steps: obtain audio file information of the sound effect audio; construct sound effect information based on the audio file information corresponding to the sound effect audio and the sound effect trigger node of the sound effect audio, and generate a sound effect configuration field indexing the sound effect information.
[0115] In some embodiments of this application, the target UI node is a UI animation, and the UI attribute information is the animation timeline of the UI animation; the computer program can perform the following steps: in response to an editing operation applied to the animation timeline, setting audio frame information at a specified time point on the animation timeline; generating sound effect information for the UI animation based on the specified time point and the audio frame information.
[0116] In some embodiments of this application, the computer program can perform the following steps: package a specified time point and audio frame information in the sound effect information into a sound effect configuration file for UI animation.
[0117] In some embodiments of this application, the computer program may perform the following steps: displaying the UI node tree of the target application in the sound effect configuration interface; and determining the target UI node in the UI node tree in response to a touch operation applied to the UI node tree.
[0118] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0119] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0120] Since the computer program stored in the storage medium can execute the steps in any of the sound effect configuration methods provided in the embodiments of this application, the beneficial effects that any of the sound effect configuration methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.
[0121] The above provides a detailed description of a sound effect configuration method, apparatus, computer device, and storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A sound effect configuration method, characterized by, The method comprises: displaying a target UI node of a target application and UI attribute information corresponding to the target UI node in an audio effect configuration interface; updating the UI attribute information in response to a touch operation acting on the UI attribute information; obtaining audio effect information according to the updated UI attribute information; configuring the target UI node with audio effects based on the audio effect information; wherein the obtaining of the audio effect information according to the updated UI attribute information comprises: extracting an audio effect configuration field from the updated UI attribute information, and indexing corresponding audio effect information according to the audio effect configuration field; or generating audio effect information according to a specified time point and audio frame information in the updated UI attribute information.
2. The method of claim 1, wherein, The target UI node is a UI control, and the UI attribute information is a control name of the UI control. The step of configuring the target UI node with audio effects based on the audio effect information comprises: obtaining audio file information and an audio effect trigger node in the audio effect information; writing the audio file information and the audio effect trigger node into a control configuration file of the UI control.
3. The method of claim 1, wherein, Before the step of extracting the audio effect configuration field from the updated control name, the method further comprises: obtaining audio file information of an audio effect audio; constructing audio effect information based on the audio file information corresponding to the audio effect audio and an audio effect trigger node of the audio effect audio, and generating an audio effect configuration field indexing the audio effect information.
4. The method of claim 1, wherein, The target UI node is a UI animation, and the UI attribute information is an animation timeline of the UI animation. The step of configuring the target UI node with audio effects based on the audio effect information comprises: packing the specified time point and the audio frame information in the audio effect information into an audio effect configuration file of the UI animation.
5. The method according to any one of claims 1 to 4, characterized in that, Before the step of displaying the target UI node of the target application and the UI attribute information corresponding to the target UI node in the audio effect configuration interface, the method comprises: displaying a UI node tree of the target application in the audio effect configuration interface; determining the target UI node in the UI node tree in response to a touch operation acting on the UI node tree.
6. A sound effect configuration apparatus characterized by comprising: The apparatus comprises: a display module configured to display a target UI node of a target application and UI attribute information corresponding to the target UI node in an audio effect configuration interface; an operation module configured to update the UI attribute information in response to a touch operation acting on the UI attribute information, and obtain audio effect information according to the updated UI attribute information; wherein the operation module obtains the audio effect information according to the updated UI attribute information by: extracting an audio effect configuration field from the updated UI attribute information, and indexing corresponding audio effect information according to the audio effect configuration field; or generating audio effect information according to a specified time point and audio frame information in the updated UI attribute information; a configuration module configured to configure the target UI node with audio effects based on the audio effect information.
7. A computer device, comprising: The computer device comprises: one or more processors; a memory; and One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the sound effect configuration method of any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the sound effect configuration method of any one of claims 1 to 5.
Citation Information
Patent Citations
Sound effect configuration method and device, storage medium and electronic equipment
CN113282268A