Audio processing method and apparatus
By reading and loading playback and waveform data from audio files using audio processing methods, and generating a debug interface to display waveforms, this solves the testing difficulties caused by directly reading game audio files during editing and previewing, and improves the flexibility of audio files and their compatibility with game content.
Patent Information
- Application Number
- CN202410118185.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-26
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-01-26
AI Technical Summary
The current technology of directly reading game audio files for editing and previewing makes testing and maintenance difficult, and the matching between audio and game content is hard to guarantee, especially in complex games, which require dedicated human resources for production.
An audio processing method is provided, which reads audio files in response to audio processing instructions, loads audio playback data and waveform data, constructs audio debugging data, determines debugging granularity information, and generates an audio debugging interface to display waveforms, supporting developers to flexibly adjust audio files.
It improves the flexibility of audio file processing, allows developers to view waveforms at different display granularities, simplifies audio file adjustments, and enhances the matching between audio and game content.
Smart Images

Figure CN117931119B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of audio processing technology, and in particular to audio processing methods and apparatus. Background Technology
[0002] With the development of computer technology, players have increasingly higher demands for game performance. Among these, game audio has become a crucial element. Music and sound effects in games can add more fun and immersion. However, as game audio becomes more sophisticated, audio files are also getting larger. Currently, game audio editing and previewing still rely on direct reading, which impacts game testing and maintenance. Simultaneously, game developers have increasingly diverse needs for audio development. If these needs are met independently of the game, not only will dedicated human resources be required, but the compatibility between the produced audio and the game content cannot be guaranteed, especially in games where audio is critical. Therefore, an effective solution to these problems is urgently needed. Summary of the Invention
[0003] In view of this, embodiments of this application provide an audio processing method to address the technical deficiencies existing in the prior art. Embodiments of this application also provide an audio processing apparatus, a computing device, and a computer-readable storage medium.
[0004] According to a first aspect of the embodiments of this application, an audio processing method is provided, comprising:
[0005] Read the audio file to be processed in response to audio processing instructions submitted to the target application;
[0006] According to the audio processing strategy pre-configured by the target application, load the audio playback data and audio waveform data corresponding to the audio file to be processed;
[0007] Based on the audio playback data and the audio waveform data, audio debugging data for the audio file to be processed is constructed, and the debugging granularity information corresponding to the audio processing instructions is determined.
[0008] The audio debugging data is rendered according to the debugging granularity information, and an audio debugging interface is generated based on the rendering result. The audio debugging interface displays the waveform corresponding to the audio file to be processed according to the debugging granularity information.
[0009] According to a second aspect of the embodiments of this application, another audio processing method is provided, applied to a client, including:
[0010] In response to an audio processing instruction submitted through the audio processing interface of the target application, the audio file to be processed is read from the audio storage space in the client.
[0011] According to the audio processing strategy pre-configured by the target application, load the audio playback data and audio waveform data corresponding to the audio file to be processed;
[0012] Based on the audio playback data and the audio waveform data, audio debugging data for the audio file to be processed is constructed, and the debugging granularity information corresponding to the audio processing instructions is determined.
[0013] The audio debugging data is rendered according to the debugging granularity information, and an audio debugging interface is generated based on the rendering result;
[0014] The audio processing interface is updated to the audio debugging interface and displayed, wherein the audio debugging interface displays the waveform corresponding to the audio file to be processed according to the debugging granularity information.
[0015] According to a third aspect of the embodiments of this application, an audio processing apparatus is provided, comprising:
[0016] The reading module is configured to read the audio file to be processed in response to audio processing instructions submitted to the target application;
[0017] The loading module is configured to load the audio playback data and audio waveform data corresponding to the audio file to be processed according to the audio processing strategy pre-configured by the target application.
[0018] The construction module is configured to construct audio debugging data for the audio file to be processed based on the audio playback data and the audio waveform data, and determine the debugging granularity information corresponding to the audio processing instructions;
[0019] The generation module is configured to render the audio debugging data according to the debugging granularity information, and generate an audio debugging interface based on the rendering result. The audio debugging interface displays the waveform corresponding to the audio file to be processed according to the debugging granularity information.
[0020] According to a fourth aspect of the embodiments of this application, another audio processing apparatus is provided, applied to a client, comprising:
[0021] The file reading module is configured to read the audio file to be processed from the audio storage space in the client in response to an audio processing instruction submitted through the audio processing interface of the target application.
[0022] The data loading module is configured to load the audio playback data and audio waveform data corresponding to the audio file to be processed according to the audio processing strategy pre-configured by the target application.
[0023] The data construction module is configured to construct audio debugging data for the audio file to be processed based on the audio playback data and the audio waveform data, and to determine the debugging granularity information corresponding to the audio processing instructions;
[0024] The interface generation module is configured to render the audio debugging data according to the debugging granularity information and generate an audio debugging interface based on the rendering result.
[0025] The display interface module is configured to update the audio processing interface to the audio debugging interface and display it, wherein the audio debugging interface displays the waveform diagram corresponding to the audio file to be processed according to the debugging granularity information.
[0026] According to a fifth aspect of the embodiments of this application, a computing device is provided, comprising:
[0027] Memory and processor;
[0028] The memory is used to store computer-executable instructions, and the processor executes the computer-executable instructions to implement the steps of the audio processing method.
[0029] According to a sixth aspect of the present application, a computer-readable storage medium is provided that stores computer-executable instructions that, when executed by a processor, implement the steps of the audio processing method.
[0030] According to a seventh aspect of the present application, a chip is provided that stores a computer program, which, when executed by the chip, implements the steps of the audio processing method.
[0031] The audio processing method provided in this embodiment, in order to improve the flexibility of audio file processing and allow for on-demand viewing of waveforms corresponding to different display granularities of audio files, can read the audio file to be processed at the current moment in response to audio processing instructions submitted by the target application. At this time, the audio processing strategy pre-configured by the target application can be used to load the audio playback data and audio waveform data corresponding to the audio file to be processed. This facilitates the presentation of the audio file to be processed to developers in the target application from both the visual dimension of the audio waveform and the sound dimension of audio playback. Based on this, audio debugging data for the audio file to be processed can be constructed according to the audio playback data and audio waveform data, while simultaneously determining the debugging granularity information for the audio file to be processed at the current moment. Finally, the audio debugging data can be rendered according to the debugging granularity information, thereby generating an audio debugging interface based on the rendering result. The interface displays the waveforms corresponding to the debugging granularity information, allowing developers to freely adjust the audio file to be processed in the target application. Based on the adjustment results, waveforms with different display granularities can be obtained, enabling developers to understand the audio playback effect based on the displayed waveforms. This allows for further adjustments to the audio file to meet the audio usage requirements of game development. Attached Figure Description
[0032] Figure 1 This is a schematic diagram of an audio processing method provided in an embodiment of this application;
[0033] Figure 2 This is a flowchart of an audio processing method provided in an embodiment of this application;
[0034] Figure 3 This is a schematic diagram of an audio debugging interface in an audio processing method provided in an embodiment of this application;
[0035] Figure 4 This is a flowchart of an audio processing method provided in one embodiment of this application;
[0036] Figure 5 This is a flowchart of another audio processing method provided in an embodiment of this application;
[0037] Figure 6 This is a schematic diagram of the structure of an audio processing device provided in one embodiment of this application;
[0038] Figure 7 This is a schematic diagram of the structure of another audio processing device provided in one embodiment of this application;
[0039] Figure 8 This is a structural block diagram of a computing device provided in one embodiment of this application. Detailed Implementation
[0040] Many specific details are set forth in the following description to provide a full understanding of this application. However, this application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this application; therefore, this application is not limited to the specific embodiments disclosed below.
[0041] The terminology used in one or more embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the scope of one or more embodiments of this application. The singular forms “a,” “the,” and “the” used in one or more embodiments of this application and in the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” used in one or more embodiments of this application refers to and includes any or all possible combinations of one or more associated listed items.
[0042] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this application, and similarly, second may also be referred to as first.
[0043] This application provides an audio processing method. This application also relates to an audio processing apparatus, a computing device, and a computer-readable storage medium, which will be described in detail in the following embodiments.
[0044] See Figure 1The schematic diagram illustrates the audio processing method provided in this embodiment. To enhance the flexibility of audio file processing and allow for on-demand viewing of waveforms at different display granularities, the method responds to audio processing commands submitted by the target application by reading the audio file to be processed at the current moment. It utilizes the target application's pre-configured audio processing strategy to load the audio playback data and audio waveform data corresponding to the audio file to be processed. This facilitates the presentation of the audio file to be processed to developers within the target application, considering both the visual dimension of the audio waveform and the sound dimension of the audio playback. Based on this, audio debugging data for the audio file to be processed can be constructed using the audio playback data and audio waveform data, while simultaneously determining the debugging granularity information for the audio file to be processed at the current moment. Finally, the audio debugging data is rendered according to the debugging granularity information, thereby generating an audio debugging interface based on the rendering results. This interface displays the waveforms corresponding to the debugging granularity information, allowing developers to freely adjust the audio file to be processed within the target application. Different display granularities of waveforms are obtained based on the adjustment results, enabling developers to understand the audio playback effect based on the displayed waveforms. This allows for further adjustments to the audio file to meet the audio requirements of game development.
[0045] See Figure 2 , Figure 2 A flowchart of an audio processing method according to an embodiment of this application is shown, which specifically includes the following steps:
[0046] Step S202: Read the audio file to be processed in response to the audio processing instruction submitted for the target application.
[0047] The audio processing method provided in this embodiment can be applied to any project that requires audio debugging in any scenario, such as audio debugging in games, virtual reality scenarios, and CG animation scenarios. This embodiment uses an audio debugging scenario in a game as an example to illustrate the audio processing method. Descriptions of other scenarios can refer to the same or corresponding descriptions in this embodiment, and will not be elaborated further here.
[0048] Specifically, the target application refers to an application that provides audio processing functionality for developers. Audio processing is a part of the target application's functionality, which may also include image processing, project development, and other functions. As an additional function linked to other functions, audio processing allows for audio debugging and processing during the use of other functions. It should be noted that this audio processing function can support developers in customizing certain functionalities. That is, the target application provides open-source interfaces, allowing developers to perform secondary development on top of the application to create new functions. For example, developers can set the triggering method for audio debugging commands, set the time scale of the audio waveform graph, or set the display color of the audio waveform graph, etc.; this embodiment does not impose further limitations. Correspondingly, the audio processing command refers to the command submitted by the developer for the audio file to be processed when using the target application. This command can represent the developer's audio adjustment needs, such as encapsulating information on audio playback volume, playback speed, and waveform display granularity. Correspondingly, the audio file to be processed is the audio that is currently imported into the target application and needs to be processed by the audio processing function provided by the target application. This audio file can be any format, such as MP3, WMA, WAV, APE, FLAC, OGG, AAC, etc.
[0049] Therefore, to improve the flexibility of audio file processing and enable on-demand viewing of waveforms at different display granularities for audio files, the system can respond to audio processing commands submitted by the target application by reading the audio file to be processed at the current moment. At this point, the system can utilize the target application's pre-configured audio processing strategy to load the audio playback data and audio waveform data corresponding to the audio file to be processed. This facilitates the presentation of the audio file to be processed to developers within the target application, considering both the visual dimensions of the audio waveform and the sound dimensions of the audio playback. Based on this, audio debugging data for the audio file to be processed can be constructed from the audio playback data and audio waveform data, while simultaneously determining the debugging granularity information for the audio file to be processed at the current moment. Finally, the audio debugging data can be rendered according to the debugging granularity information, thereby generating an audio debugging interface based on the rendering results. This interface displays the waveforms corresponding to the debugging granularity information, allowing developers to easily adjust the audio file to be processed within the target application.
[0050] Furthermore, when processing the audio file to be processed, considering that the audio file uploaded by the developer may be large, have an irregular format, or contain blind audio segments, adjustments can be made to the initial audio file after receiving it to facilitate subsequent debugging. In this embodiment, the specific implementation method is as follows:
[0051] Receive audio processing instructions submitted by the target application, read the initial audio file according to the audio processing instructions, adjust the initial audio file according to the audio file adjustment strategy preset by the target application, and generate the audio file to be processed based on the adjustment result.
[0052] Specifically, the initial audio file refers to the audio file that the developer needs to process at the moment, and which has not yet been adjusted according to the target application's preset audio file adjustment strategy. Correspondingly, the audio file adjustment strategy refers to the strategy for adjusting the initial audio file uploaded by the developer for the first time. This adjustment includes, but is not limited to, format adjustment, segment adjustment, and deletion of blank audio segments. In practical applications, the adjustment strategy can be configured according to actual needs, and this embodiment does not impose any limitations.
[0053] Based on this, upon receiving an audio processing instruction submitted to the target application, the client can first read the initial audio file that needs to be processed at the current moment according to the audio processing instruction. Considering that the format and settings of the initial audio file are not standard, which may affect the difficulty of debugging, in order to facilitate subsequent debugging of the audio file in the target application, the initial audio file can be adjusted according to the target application's preset audio file adjustment strategy to adjust the initial audio file into an audio file to be processed that meets the processing requirements of the target application, so as to carry out subsequent processing.
[0054] In practical applications, when processing the initial audio file, in addition to the format conversion and audio file editing processes described above, sound quality enhancement, popping detection, and timbre adjustment can also be performed on the initial audio file. The specific implementation can be set according to actual needs, and this embodiment does not impose any limitations here.
[0055] In summary, after receiving the initial audio file, it will be optimized based on the preset audio file processing strategy to ensure that the audio files to be processed later are of higher quality, thereby improving the audio debugging effect.
[0056] Step S204: According to the audio processing strategy pre-configured by the target application, load the audio playback data and audio waveform data corresponding to the audio file to be processed.
[0057] Specifically, after obtaining the audio file to be processed uploaded to the target application, further, in order to support developers in the target application to perform more flexible audio debugging processing on the audio file to be processed, the audio playback data and audio waveform data corresponding to the audio file to be processed can be loaded according to the audio processing strategy pre-configured by the target application. This allows the audio file to be processed to be parsed from multiple dimensions using the pre-configured audio processing strategy of the target application, in order to obtain the audio playback data and audio waveform data required in the audio debugging stage, facilitating subsequent use.
[0058] Specifically, the audio processing strategy refers to the strategy for processing the audio file to be processed. This strategy is used to parse the audio file and obtain relevant data across multiple dimensions based on the parsing results, including but not limited to data related to the visualization dimension and data related to the sound dimension. Furthermore, the audio processing strategy is pre-configured by the developers for the target application. This means the processing capability of the audio processing strategy is determined by the developers' configuration for the target application, and the parsing capability is also controlled by the developers. This allows developers to configure different audio processing strategies for any needs, enabling the target application to process the audio more flexibly. Correspondingly, the audio playback data refers to the relevant data for the sound dimension of the audio file to be processed, including but not limited to audio sound information, audio length information, and audio accent / bass information. Correspondingly, the audio waveform data refers to the relevant data for the visualization dimension of the audio file to be processed, including but not limited to waveform graphs, time-domain curves, and volume trend graphs.
[0059] In practical implementation, to enable the target application to debug the audio files being processed more flexibly and to provide developers with greater convenience during the debugging phase, audio processing strategies can be embedded using the application's open-source interfaces. In this embodiment, the specific implementation method is as follows:
[0060] In response to the audio function creation request submitted for the initial application, audio control information is submitted through the extended interface of the initial application; an audio debugging control is constructed based on the audio control information, and a waveform graph utility class for storing waveform graph data and a waveform graph data class for storing waveform graph associated data are created for the audio debugging control; based on the creation results of the audio debugging control, the waveform graph utility class, and the waveform graph data class, an audio processing strategy is configured in the initial application, and the target application is generated according to the configuration results.
[0061] Specifically, the initial application refers to an application that has not yet been configured with an audio processing strategy; that is, the application currently does not support more flexible audio debugging processing. Correspondingly, the audio function creation request refers to the request submitted by the developer when extending audio functionality in the initial application. This request triggers the audio function creation logic. The extension interface refers to the audio function extension interface of the initial application. The audio control information refers to the information about controls created for the audio processing function in the initial application. This information is used to create controls that initiate the audio processing function, allowing users to trigger debugging processing of the audio file by clicking the control after it has been uploaded. This control information includes, but is not limited to, the control icon, size, and style corresponding to the audio processing function. The audio debugging control is the control created based on this control information. The waveform utility class refers to a static utility class created for the audio processing function, used to display and store the waveforms corresponding to the audio file. The waveform data class refers to a data storage class created for the audio processing function, used to store relevant data related to the waveforms associated with the audio file.
[0062] Based on this, when configuring the audio processing strategy for the initial application, audio control information can be submitted through the extended interface of the initial application in response to the audio function creation request submitted for the initial application. Subsequently, an audio debugging control can be constructed based on the audio control information, and a waveform utility class for storing waveform data and a waveform data class for storing waveform association data can be created for the audio debugging control. At this point, the basic construction of the audio processing function is completed. Therefore, based on the creation results of the audio debugging control, waveform utility class, and waveform data class, the audio processing strategy can be configured in the initial application, and the target application can be generated according to the configuration results. This allows for more flexible audio processing of the audio files to be processed according to the pre-configured audio processing strategy during the application phase.
[0063] In practical applications, when configuring audio processing functionality for an initial application, controls can be built using a custom Rect layout. Specifically, a static utility class `GraphWaveDisplay` can be created, containing a `List`. <waveclipbuffer>The field is used to cache processed waveform data. Simultaneously, a data class `WaveClipBuffer` is created to store the GUID of the corresponding `AduioClip` component's `AduioClip` file, the waveform data for each channel, and the waveform data `ChannelDisplay` for each channel. The `ChannelDisplay` data structure stores the MinMax and RMS data for each cell on the y-axis, calculated based on the width of the current waveform's `Rect`. This allows for zooming in and out of a specific segment and displaying its time scale.
[0064] The ChannelDisplay structure allows storage of specific waveform data information, such as the minimum and maximum values and root mean square (RMS) of each y-axis element. A WaveClipBuffer class can be created to store waveform data and related audio clip information, such as the GUID, waveform data for each channel, and ChannelDisplay data for each channel. Furthermore, while using this class, WaveClipBuffer instances can be created and their properties populated to ensure that the corresponding audio processing strategy is configured in the target application for use during the application phase.
[0065] For example, in software A, when developers need to customize audio processing functions, and these functions require that the audio waveform graph's time scale can be freely changed, with the audio waveform graph also adjusting adaptively, then the controls can be built in software A using a custom Rect layout. Specifically, a static utility class GraphWaveDisplay can be created, containing a List... <waveclipbuffer>The code snippet describes a data class called WaveClipBuffer, which stores the GUID of the corresponding AudioClip file, waveform data for each channel, and the ChannelDisplay data for each channel. The ChannelDisplay data structure stores the MinMax and RMS data for each y-axis cell, calculated based on the width of the current waveform Rect. This allows for embedding audio functionality within software A. This functionality creates audio waveforms from audio files, and the time axis of the waveform adaptively changes its scale, supporting audio waveform time scale and scaling. This facilitates audio debugging and processing within software A.
[0066] In summary, by configuring audio processing strategies in the application, and combining these strategies with waveform graph utility classes and waveform graph data classes, the configured strategies can make it easier for developers to flexibly debug audio, thereby improving audio debugging efficiency and enhancing the compatibility between audio and the development project.
[0067] Furthermore, when loading the audio playback data and audio waveform data corresponding to the audio file to be processed according to the audio processing strategy, the audio file is actually analyzed and processed through two different dimensions to obtain the audio playback data and audio waveform data. In this embodiment, the specific implementation method is as follows:
[0068] The target application's pre-configured audio processing strategy is determined, including an audio playback processing sub-strategy and an audio waveform processing sub-strategy. The audio file to be processed is processed according to the audio playback processing sub-strategy, and the audio playback data corresponding to the audio file to be processed is determined based on the processing result. The audio file to be processed is also processed according to the audio waveform processing sub-strategy, and the file identifier data, channel waveform data, and waveform trend data corresponding to the audio file to be processed are determined based on the processing result. Audio waveform data is constructed based on the file identifier data, the channel waveform data, and the waveform trend data.
[0069] Specifically, the audio playback processing sub-strategy refers to the strategy for processing the audio file to be processed in the sound dimension. It is used to determine the audio playback data associated with the sound dimension based on the audio file to be processed, including but not limited to audio volume, playback duration, and timbre. Correspondingly, the audio waveform processing sub-strategy refers to the strategy for processing the audio file to be processed in the audio visualization dimension. It is used to determine the file identifier data, channel waveform data, and waveform trend data associated with the audio visualization dimension based on the audio file to be processed. Specifically, the file identifier data refers to the unique identifier data corresponding to the waveform graph of the audio file to be processed. Correspondingly, the channel waveform data refers to the waveform data corresponding to each channel of the audio file to be processed. Correspondingly, the waveform trend data refers to the waveform curve data of the audio file to be processed at different vertical / horizontal axis scales.
[0070] Based on this, to support more flexible audio debugging and processing functions for developers during the audio debugging phase, the pre-configured audio processing strategy of the target application can be determined. From this strategy, audio playback processing sub-strategies and audio waveform processing sub-strategies can be identified. Then, the audio file to be processed is processed according to the audio playback processing sub-strategy in the sound dimension. Based on the processing results, the corresponding audio playback data of the audio file to be processed can be determined, representing the playback information of the audio file in the sound dimension. Simultaneously, the audio file to be processed is processed according to the audio waveform processing sub-strategy in the audio visualization dimension. Based on the processing results, the corresponding file identification data, channel waveform data, and waveform trend data of the audio file to be processed can be determined. Furthermore, audio waveform data can be constructed based on the file identification data, channel waveform data, and waveform trend data to represent the visualization information of the audio file to be processed in the audio visualization dimension. This allows developers to complete the debugging process by combining auditory and visual information to represent audio pitch and bass from a visual perspective.
[0071] In practical applications, after configuring the audio processing function in the application based on the above processing, when the developer imports the audio file to be processed, they can call the GraphWaveDisplay.Draw() method to obtain the corresponding buffer or generate a new buffer based on the SoundSFX audio file. Then, based on the buffer data and the scaling data of the current waveform, the application API can be called to draw; thereby generating an interface that is convenient for developers to debug audio and displaying waveforms at the corresponding display granularity.
[0072] In other words, by customizing audio processing strategies and processing audio files within an application, the `GraphWaveDisplay.Draw()` method can be used to obtain the audio file. This process typically loads the file from a SoundSFX resource, or, if the audio file is not yet loaded, a buffer can be generated first and then loaded. Once the audio file is obtained, a waveform graph corresponding to the audio file can be generated based on the audio playback data and waveform data. During this process, peak values, average values, or other features of the audio can be extracted for display on the waveform graph. To further facilitate developers' viewing of the waveform graph, scaling or positioning parameters can be configured, allowing developers to adjust these parameters to scale the waveform graph. Finally, the waveform graph can be drawn using application APIs (such as `Renderer.DrawMesh` or `UI.DrawTexture`) and displayed through the interface.
[0073] Continuing with the previous example, when developers need to debug the background music in game J using software A, they can load the corresponding audio files into software A. Software A will then use its pre-configured audio processing functions to extract the audio playback data, waveform data for each channel, and the ChannelDisplay waveform data for each channel. After obtaining the audio playback data related to the sound dimension and the audio waveform data related to the audio visualization dimension, the waveform can be drawn according to this data and displayed on the interface to meet the current debugging requirements for developers.
[0074] In summary, by combining sub-strategies corresponding to different dimensions to process the audio file, we can obtain data representations of the audio file in different dimensions. Based on this, subsequent visualization processing can be performed, making the visualization results more refined and thus improving the audio debugging efficiency of developers.
[0075] Step S206: Construct audio debugging data for the audio file to be processed based on the audio playback data and the audio waveform data, and determine the debugging granularity information corresponding to the audio processing instructions.
[0076] Specifically, after determining the audio playback data and audio waveform data corresponding to the audio file to be processed, in order to ensure that the waveform diagram to be drawn meets the current debugging requirements, the audio debugging data of the audio file to be processed can be constructed based on the audio playback data and audio waveform data. At the same time, the debugging granularity information corresponding to the audio processing instructions can be determined, so that the audio debugging data can be rendered according to the debugging granularity information to obtain an interface containing waveform diagrams.
[0077] Specifically, audio debugging data refers to the audio data required for debugging the audio file at the current moment. In practical applications, the length of the audio file to be processed may vary, and its corresponding information representation may also have different lengths. However, audio debugging is typically processed at the second-level granularity, so it's impossible to directly use all the audio data for debugging. Therefore, during the debugging phase, it's necessary to combine the audio playback data and audio waveform data corresponding to the audio file to be processed to determine the audio debugging data corresponding to the segment to be debugged at the current moment, in order to meet the developers' more granular debugging needs. Correspondingly, the debugging granularity information is the granularity information corresponding to the audio being debugged at the current moment. This granularity information determines the time scale and waveform scaling ratio of the subsequently displayed waveform.
[0078] Furthermore, when constructing audio debugging data, considering that audio playback data and audio waveform data contain the global audio data of the audio file to be processed, while the current debugging process may only require a local portion of the audio data, audio processing information can be obtained by parsing instructions, thereby constructing the audio debugging data. In this embodiment, the specific implementation method is as follows:
[0079] The audio processing instructions are parsed to obtain audio processing information; target audio playback sub-data is read from the audio playback data and target audio waveform sub-data is read from the audio waveform data according to the audio processing information; and audio debugging data of the audio file to be processed is constructed based on the target audio playback sub-data and the target audio waveform sub-data.
[0080] Specifically, audio processing information refers to the section of the audio file to be processed that the audio segment to be processed at the current moment belongs to, the volume of the audio segment, the playback speed, and other information. Correspondingly, the target audio playback sub-data is the audio playback data associated with the audio segment to be processed. Similarly, the target audio waveform sub-data is the audio waveform data associated with the audio segment to be processed.
[0081] Based on this, to support developers in performing more granular audio debugging on the audio files to be processed, the audio processing instructions submitted at the current stage can be parsed to obtain audio processing information; then, according to the audio processing information, the target audio playback sub-data and the target audio waveform sub-data can be read from the audio playback data and the audio waveform data, respectively; thus, the playback data and waveform data corresponding to the audio segment that needs to be processed can be determined, and the audio debugging data of the audio file to be processed can be constructed based on the target audio playback sub-data and the target audio waveform sub-data, so as to facilitate the subsequent generation of the waveform diagram that needs to be processed at the current moment for developers to use.
[0082] In summary, by combining the target audio playback sub-data and the target audio waveform sub-data to construct audio debugging data corresponding to the audio processing instructions, it can be ensured that the data acquired at the current moment corresponds to the granularity of the current instruction. Subsequent rendering of the audio waveform according to this granularity can ensure that the displayed results correspond to the current debugging granularity, thus making it more convenient for developers to use.
[0083] Step S208: Render the audio debugging data according to the debugging granularity information, and generate an audio debugging interface based on the rendering result. The audio debugging interface displays the waveform corresponding to the audio file to be processed according to the debugging granularity information.
[0084] Specifically, after determining the audio debugging data and debugging granularity information corresponding to the audio file to be processed, in order to ensure that the currently displayed waveform corresponds to the audio debugging needs of the developers at the current moment, the audio debugging data can be rendered according to the debugging granularity information. The rendered result can correspond to the audio processing instructions, thereby generating an audio debugging interface based on the rendering result. In this interface, the waveform corresponding to the audio file to be processed will be displayed according to the debugging granularity information, which is convenient for developers to use.
[0085] The audio debugging interface specifically refers to the interface that displays the waveform of the audio file to be processed. In this interface, the waveform display matches the debugging granularity information. If the debugging granularity is displayed in 5-second increments, the waveform will show a 5-second display; if the debugging granularity is displayed in 10-second increments, the waveform will show a 10-second display. The 5-second increments provide a more compact display compared to the 10-second increments. Correspondingly, the waveform is the waveform of the audio file to be processed, which can display information such as audio peaks and trends.
[0086] Furthermore, when generating the audio debugging interface, to ensure developers have greater flexibility in audio debugging, time granularity information and waveform granularity information with matching relationships can be determined to render an audio debugging interface containing waveforms. In this embodiment, the specific implementation is as follows:
[0087] Based on the debugging granularity information, determine the waveform granularity information and time granularity information corresponding to the audio processing instruction, wherein the time granularity information and the waveform granularity information are matched; render the audio debugging data according to the waveform granularity information and the time granularity information, and display the waveform diagram corresponding to the audio file to be processed in the audio debugging area of the audio debugging interface according to the rendering result.
[0088] Specifically, waveform granularity information refers to the granularity information associated with the waveform of the audio file to be processed, which controls the sparsity of the waveform curve. Correspondingly, temporal granularity information refers to the granularity information associated with the scale interval of the waveform of the audio file to be processed, which controls the time axis scale of the waveform.
[0089] Based on this, after determining the debugging granularity information corresponding to the instruction, in order to ensure that the final displayed audio waveform meets the current debugging requirements, the waveform granularity information and time granularity information corresponding to the audio processing instruction can be determined according to the debugging granularity information, and the time granularity information and waveform granularity information are matched; in this way, the audio debugging data can be rendered according to the waveform granularity information and time granularity information, so that the waveform corresponding to the audio file to be processed can be displayed in the audio debugging area of the audio debugging interface according to the rendering result.
[0090] Continuing with the previous example, when developers need to trim background music using software A, to improve the precision of the trimming, the time scale can be set to 1-second units. Based on this, waveforms corresponding to the background music can be drawn in 1-second increments, thus generating... Figure 3 The audio debugging interface shown in (a) has a waveform time axis scale of 1 second, which makes it convenient for developers to trim the waveform.
[0091] In summary, by combining time granularity information and waveform granularity information to draw the waveform diagram corresponding to the audio file to be processed, it can be ensured that the display effect of the current waveform diagram matches the current audio debugging requirements, so as to facilitate subsequent developers to complete audio debugging processing as needed by combining the waveform diagram.
[0092] Furthermore, when developers require waveform granularity debugging, they can determine the change granularity information according to the change instructions and update accordingly, making it convenient for developers to view waveforms at different granularities. In this embodiment, the specific implementation is as follows:
[0093] The system receives a change instruction submitted for the waveform in the audio debugging interface; determines the change granularity information according to the change instruction, and updates the waveform according to the change granularity information; displays the updated waveform in the audio debugging interface, wherein the updated waveform corresponds to the audio file to be processed and has a different waveform granularity than the waveform before the update.
[0094] Specifically, a change command refers to an instruction submitted for the currently displayed waveform. This command can be submitted through an external device connected to the terminal, such as adjusting settings via keyboard keys or mouse wheel. The adjustment of this command will cause the waveform to change accordingly; for example, scrolling the mouse wheel zooms in and out of the waveform, and the corresponding time scale changes accordingly. The change granularity information is the granularity corresponding to the current change command, such as changing a 1-second scale to a 5-second scale.
[0095] Based on this, considering that different audio debugging needs may require waveforms with different granularities, in order to make audio debugging more convenient for developers, when a change instruction is submitted for the waveform in the audio debugging interface, the change granularity information can be determined according to the change instruction. Then, the waveform can be updated according to the change granularity information. This update process can make the waveform match the current audio debugging needs, so that the updated waveform can be displayed in the audio debugging interface. The updated waveform corresponds to the audio file to be processed and has a different waveform granularity than the waveform before the update.
[0096] Continuing with the previous example, after the developer finishes cutting the scene music, they will obtain multiple audio clips, including audio clips 1, 2, and 3. Audio clip 2 is a blank clip and can be deleted. Then, audio clips 1 and 3 are selected and spliced together. At this point, splicing in 1-second increments is inconvenient for the developer. Therefore, the developer can use the mouse wheel to zoom in on the time scale, updating the 1-second increments to 5-second increments. Based on this, the waveform corresponding to the audio clips can be updated in 5-second increments, thus generating a waveform like... Figure 3 The audio debugging interface shown in (b) has a time axis scale of 5 seconds for the waveform graph, which makes it convenient for developers to splice audio segments based on this.
[0097] The audio processing method provided in this embodiment, in order to improve the flexibility of audio file processing and allow for on-demand viewing of waveforms corresponding to different display granularities of audio files, can read the audio file to be processed at the current moment in response to audio processing instructions submitted by the target application. At this time, the audio processing strategy pre-configured by the target application can be used to load the audio playback data and audio waveform data corresponding to the audio file to be processed. This facilitates the presentation of the audio file to be processed to developers in the target application from both the visual dimension of the audio waveform and the sound dimension of audio playback. Based on this, audio debugging data for the audio file to be processed can be constructed according to the audio playback data and audio waveform data, while simultaneously determining the debugging granularity information for the audio file to be processed at the current moment. Finally, the audio debugging data can be rendered according to the debugging granularity information, thereby generating an audio debugging interface based on the rendering result. The interface displays the waveforms corresponding to the debugging granularity information, allowing developers to freely adjust the audio file to be processed in the target application. Based on the adjustment results, waveforms with different display granularities can be obtained, enabling developers to understand the audio playback effect based on the displayed waveforms. This allows for further adjustments to the audio file to meet the audio usage requirements of game development.
[0098] The following is in conjunction with the appendix Figure 4 Taking the application of the audio processing method provided in this application in a game audio debugging scenario as an example, the audio processing method will be further explained. Among other things, Figure 4 This application provides a flowchart of an audio processing method according to an embodiment, which includes the following steps:
[0099] Step S402: In response to the audio function creation request submitted for the initial application, submit audio control information through the extended interface of the initial application.
[0100] Step S404: Construct an audio debugging control based on the audio control information, and create a waveform utility class for storing waveform data and a waveform data class for storing waveform association data for the audio debugging control.
[0101] Step S406: Based on the creation results of the audio debugging control, waveform graph tool class, and waveform graph data class, configure the audio processing strategy in the initial application, and generate the target application according to the configuration results.
[0102] Step S408: Read the audio file to be processed in response to the audio processing instruction submitted for the target application.
[0103] Step S410: According to the audio processing strategy pre-configured by the target application, load the audio playback data and audio waveform data corresponding to the audio file to be processed.
[0104] Step S412: Construct audio debugging data for the audio file to be processed based on audio playback data and audio waveform data, and determine the debugging granularity information corresponding to the audio processing instructions.
[0105] Step S414: Determine the waveform granularity information and time granularity information corresponding to the audio processing instruction based on the debugging granularity information, wherein the time granularity information and waveform granularity information are matched.
[0106] Step S416: Render the audio debugging data according to waveform granularity information and time granularity information, and display the waveform of the audio file to be processed in the audio debugging area of the audio debugging interface according to the rendering result.
[0107] Step S418: Receive the change command submitted for the waveform in the audio debugging interface.
[0108] Step S420: Determine the change granularity information according to the change instruction, and update the waveform diagram according to the change granularity information.
[0109] Step S422: Display the updated waveform in the audio debugging interface. The updated waveform corresponds to the audio file to be processed and has a different waveform granularity than the waveform before the update.
[0110] The audio processing method provided in this embodiment, in order to improve the flexibility of audio file processing and allow for on-demand viewing of waveforms corresponding to different display granularities of audio files, can read the audio file to be processed at the current moment in response to audio processing instructions submitted by the target application. At this time, the audio processing strategy pre-configured by the target application can be used to load the audio playback data and audio waveform data corresponding to the audio file to be processed. This facilitates the presentation of the audio file to be processed to developers in the target application from both the visual dimension of the audio waveform and the sound dimension of audio playback. Based on this, audio debugging data for the audio file to be processed can be constructed according to the audio playback data and audio waveform data, while simultaneously determining the debugging granularity information for the audio file to be processed at the current moment. Finally, the audio debugging data can be rendered according to the debugging granularity information, thereby generating an audio debugging interface based on the rendering result. The interface displays the waveforms corresponding to the debugging granularity information, allowing developers to freely adjust the audio file to be processed in the target application. Based on the adjustment results, waveforms with different display granularities can be obtained, enabling developers to understand the audio playback effect based on the displayed waveforms. This allows for further adjustments to the audio file to meet the audio usage requirements of game development.
[0111] Corresponding to the above method embodiments, this application also provides another audio processing method. Figure 5 A flowchart of another audio processing method provided in one embodiment of this application is shown. Figure 5 As shown, this method is applied to the client and includes:
[0112] Step S502: In response to the audio processing instruction submitted through the audio processing interface of the target application, read the audio file to be processed from the audio storage space in the client.
[0113] Step S504: According to the audio processing strategy pre-configured by the target application, load the audio playback data and audio waveform data corresponding to the audio file to be processed;
[0114] Step S506: Construct audio debugging data for the audio file to be processed based on the audio playback data and the audio waveform data, and determine the debugging granularity information corresponding to the audio processing instruction;
[0115] Step S508: Render the audio debugging data according to the debugging granularity information, and generate an audio debugging interface based on the rendering result;
[0116] Step S510: Update the audio processing interface to the audio debugging interface and display it, wherein the audio debugging interface displays the waveform diagram corresponding to the audio file to be processed according to the debugging granularity information.
[0117] The other audio processing method provided in this embodiment is described in the same or corresponding way as the audio processing method described in the above embodiments. This embodiment will not elaborate further here.
[0118] Corresponding to the above method embodiments, this application also provides audio processing apparatus embodiments. Figure 6 A schematic diagram of the structure of an audio processing apparatus according to an embodiment of this application is shown. Figure 6 As shown, the device includes:
[0119] The reading module 602 is configured to read the audio file to be processed in response to an audio processing instruction submitted to the target application;
[0120] The loading module 604 is configured to load the audio playback data and audio waveform data corresponding to the audio file to be processed according to the audio processing strategy pre-configured by the target application.
[0121] The construction module 606 is configured to construct audio debugging data for the audio file to be processed based on the audio playback data and the audio waveform data, and determine the debugging granularity information corresponding to the audio processing instructions;
[0122] The generation module 608 is configured to render the audio debugging data according to the debugging granularity information and generate an audio debugging interface based on the rendering result. The audio debugging interface displays the waveform diagram corresponding to the audio file to be processed according to the debugging granularity information.
[0123] In an optional embodiment, the apparatus further includes:
[0124] The configuration module is configured to respond to an audio function creation request submitted for the initial application by submitting audio control information through the extended interface of the initial application; construct an audio debugging control based on the audio control information, and create a waveform graph utility class for storing waveform graph data and a waveform graph data class for storing waveform graph association data for the audio debugging control; configure an audio processing strategy in the initial application based on the creation results of the audio debugging control, the waveform graph utility class, and the waveform graph data class, and generate the target application based on the configuration results.
[0125] In an optional embodiment, the loading module 604 is further configured to:
[0126] The target application's pre-configured audio processing strategy is determined, including an audio playback processing sub-strategy and an audio waveform processing sub-strategy. The audio file to be processed is processed according to the audio playback processing sub-strategy, and the audio playback data corresponding to the audio file to be processed is determined based on the processing result. The audio file to be processed is also processed according to the audio waveform processing sub-strategy, and the file identifier data, channel waveform data, and waveform trend data corresponding to the audio file to be processed are determined based on the processing result. Audio waveform data is constructed based on the file identifier data, the channel waveform data, and the waveform trend data.
[0127] In an optional embodiment, the building module 606 is further configured to:
[0128] The audio processing instructions are parsed to obtain audio processing information; target audio playback sub-data is read from the audio playback data and target audio waveform sub-data is read from the audio waveform data according to the audio processing information; and audio debugging data of the audio file to be processed is constructed based on the target audio playback sub-data and the target audio waveform sub-data.
[0129] In an optional embodiment, the generation module 608 is further configured to:
[0130] Based on the debugging granularity information, determine the waveform granularity information and time granularity information corresponding to the audio processing instruction, wherein the time granularity information and the waveform granularity information are matched; render the audio debugging data according to the waveform granularity information and the time granularity information, and display the waveform diagram corresponding to the audio file to be processed in the audio debugging area of the audio debugging interface according to the rendering result.
[0131] In an optional embodiment, the apparatus further includes:
[0132] The modification module is configured to receive a modification instruction submitted for the waveform in the audio debugging interface; determine the modification granularity information according to the modification instruction, and update the waveform according to the modification granularity information; and display the updated waveform in the audio debugging interface, wherein the updated waveform corresponds to the audio file to be processed and has a different waveform granularity than the waveform before the update.
[0133] In an optional embodiment, the reading module 602 is further configured to:
[0134] Receive audio processing instructions submitted by the target application, read the initial audio file according to the audio processing instructions, adjust the initial audio file according to the audio file adjustment strategy preset by the target application, and generate the audio file to be processed based on the adjustment result.
[0135] The audio processing device provided in this embodiment, in order to improve the flexibility of audio file processing and allow for on-demand viewing of waveforms corresponding to different display granularities of audio files, can read the audio file to be processed at the current moment in response to audio processing instructions submitted by the target application. At this time, it can utilize the audio processing strategy pre-configured by the target application to load the audio playback data and audio waveform data corresponding to the audio file to be processed. This facilitates the presentation of the audio file to be processed to developers in the target application from both the visual dimension of the audio waveform and the sound dimension of audio playback. Based on this, audio debugging data for the audio file to be processed can be constructed according to the audio playback data and audio waveform data, while simultaneously determining the debugging granularity information for the audio file to be processed at the current moment. Finally, the audio debugging data can be rendered according to the debugging granularity information, thereby generating an audio debugging interface based on the rendering result. The interface displays the waveforms corresponding to the debugging granularity information, allowing developers to freely adjust the audio file to be processed in the target application. Based on the adjustment results, waveforms with different display granularities can be obtained, enabling developers to understand the audio playback effect based on the displayed waveforms. This allows for further adjustments to the audio file to meet the audio requirements of game development.
[0136] The above is an illustrative scheme of an audio processing apparatus according to this embodiment. It should be noted that the technical solution of this audio processing apparatus and the technical solution of the aforementioned audio processing method belong to the same concept. Details not described in detail in the technical solution of the audio processing apparatus can be found in the description of the technical solution of the aforementioned audio processing method. Furthermore, the components in the apparatus embodiment should be understood as functional modules necessary to implement each step of the program flow or each step of the method; these functional modules are not actual functional divisions or separations. An apparatus claim defined by such a set of functional modules should be understood as a functional module architecture that primarily implements the solution through the computer program described in the specification, and not as a physical device that primarily implements the solution through hardware.
[0137] Corresponding to the above method embodiments, this application also provides another embodiment of an audio processing apparatus. Figure 7 A schematic diagram of another audio processing apparatus provided in one embodiment of this application is shown. Figure 7 As shown, the device is used on a client side and includes:
[0138] The file reading module 702 is configured to read the audio file to be processed from the audio storage space in the client in response to an audio processing instruction submitted through the audio processing interface of the target application.
[0139] The data loading module 704 is configured to load the audio playback data and audio waveform data corresponding to the audio file to be processed according to the audio processing strategy pre-configured by the target application.
[0140] The data construction module 706 is configured to construct audio debugging data for the audio file to be processed based on the audio playback data and the audio waveform data, and to determine the debugging granularity information corresponding to the audio processing instructions;
[0141] The interface generation module 708 is configured to render the audio debugging data according to the debugging granularity information and generate an audio debugging interface based on the rendering result.
[0142] The display interface module 710 is configured to update the audio processing interface to the audio debugging interface and display it, wherein the audio debugging interface displays the waveform diagram corresponding to the audio file to be processed according to the debugging granularity information.
[0143] The above is an illustrative scheme of an audio processing apparatus according to this embodiment. It should be noted that the technical solution of this audio processing apparatus and the technical solution of the aforementioned audio processing method belong to the same concept. Details not described in detail in the technical solution of the audio processing apparatus can be found in the description of the technical solution of the aforementioned audio processing method. Furthermore, the components in the apparatus embodiment should be understood as functional modules necessary to implement each step of the program flow or each step of the method; these functional modules are not actual functional divisions or separations. An apparatus claim defined by such a set of functional modules should be understood as a functional module architecture that primarily implements the solution through the computer program described in the specification, and not as a physical device that primarily implements the solution through hardware.
[0144] Figure 8 A structural block diagram of a computing device 800 according to an embodiment of this application is shown. The components of the computing device 800 include, but are not limited to, a memory 810 and a processor 820. The processor 820 is connected to the memory 810 via a bus 830, and a database 850 is used to store data.
[0145] The computing device 800 also includes an access device 840, which enables the computing device 800 to communicate via one or more networks 860. Examples of these networks include Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or combinations of communication networks such as the Internet. The access device 840 may include one or more of any type of wired or wireless network interface (e.g., a network interface card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, a Wi-MAX (Worldwide Interoperability for Microwave Access) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and so on.
[0146] In one embodiment of this application, the aforementioned components of the computing device 800 and Figure 8 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 8 The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this application. Those skilled in the art can add or replace other components as needed.
[0147] The computing device 800 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or personal computers (PCs). The computing device 800 can also be a mobile or stationary server.
[0148] The processor 820 is used to execute computer-executable instructions for the audio processing method.
[0149] The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the audio processing method described above belong to the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the audio processing method described above.
[0150] An embodiment of this application also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, are used for an audio processing method.
[0151] The above is an illustrative embodiment of a computer-readable storage medium. It should be noted that the technical solution of this storage medium and the technical solution of the aforementioned audio processing method belong to the same concept. Details not described in detail in the technical solution of the storage medium can be found in the description of the technical solution of the aforementioned audio processing method.
[0152] The computer instructions include computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium may be appropriately added or removed according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media may not include electrical carrier signals and telecommunication signals.
[0153] One embodiment of this application also provides a chip that stores a computer program, which, when executed by the chip, implements the steps of the audio processing method.
[0154] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0155] 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 of other embodiments.
[0156] The preferred embodiments disclosed above are merely illustrative of this application. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this application. These embodiments are selected and specifically described in this application to better explain the principles and practical applications of this application, thereby enabling those skilled in the art to better understand and utilize this application. This application is limited only by the claims and their full scope and equivalents.< / waveclipbuffer> < / waveclipbuffer>
Claims
1. An audio processing method, characterized in that, include: Read the audio file to be processed in response to audio processing instructions submitted to the target application; According to the audio processing strategy pre-configured by the target application, load the audio playback data and audio waveform data corresponding to the audio file to be processed; Based on the audio playback data and the audio waveform data, audio debugging data for the audio file to be processed is constructed, and the debugging granularity information corresponding to the audio processing instructions is determined. The audio debugging data is rendered according to the debugging granularity information, and an audio debugging interface is generated based on the rendering result. The process of rendering the audio debugging data according to the debugging granularity information and generating the audio debugging interface based on the rendering result includes: determining the waveform granularity information and time granularity information corresponding to the audio processing instruction based on the debugging granularity information; rendering the audio debugging data according to the waveform granularity information and the time granularity information; displaying the waveform diagram corresponding to the audio file to be processed in the audio debugging area of the audio debugging interface based on the rendering result; and matching the time granularity information with the waveform granularity information.
2. The method according to claim 1, characterized in that, Before the step of loading the audio playback data and audio waveform data corresponding to the audio file to be processed according to the pre-configured audio processing strategy of the target application, the method further includes: In response to an audio function creation request submitted for the initial application, audio control information is submitted through the extended interface of the initial application; An audio debugging control is constructed based on the audio control information, and a waveform utility class for storing waveform data and a waveform data class for storing waveform association data are created for the audio debugging control. Based on the audio debugging control, waveform graph utility class creation results, and waveform graph data class creation results, an audio processing strategy is configured in the initial application, and a target application is generated according to the configuration results.
3. The method according to claim 1, characterized in that, The step of loading the audio playback data and audio waveform data corresponding to the audio file to be processed according to the pre-configured audio processing strategy of the target application includes: Determine the pre-configured audio processing strategy of the target application, and determine the audio playback processing sub-strategy and the audio waveform processing sub-strategy in the audio processing strategy; The audio file to be processed is processed according to the audio playback processing sub-strategy, and the audio playback data corresponding to the audio file to be processed is determined based on the processing result; The audio file to be processed is processed according to the audio waveform processing sub-strategy, and the file identifier data, channel waveform data and waveform trend data corresponding to the audio file to be processed are determined based on the processing result. Audio waveform data is constructed based on the file identification data, the channel waveform data, and the waveform trend data.
4. The method according to claim 1, characterized in that, The step of constructing audio debugging data for the audio file to be processed based on the audio playback data and the audio waveform data includes: The audio processing instructions are parsed to obtain audio processing information; According to the audio processing information, target audio playback sub-data is read from the audio playback data, and target audio waveform sub-data is read from the audio waveform data; The audio debugging data of the audio file to be processed is constructed based on the target audio playback sub-data and the target audio waveform sub-data.
5. The method according to any one of claims 1-4, characterized in that, After the step of rendering the audio debugging data according to the debugging granularity information and generating the audio debugging interface based on the rendering result is executed, the method further includes: Receive change instructions submitted for the waveform in the audio debugging interface; The change granularity information is determined according to the change instruction, and the waveform is updated according to the change granularity information; The updated waveform is displayed in the audio debugging interface. The updated waveform corresponds to the audio file to be processed and has a different waveform granularity than the waveform before the update.
6. The method according to claim 1, characterized in that, The process of reading the audio file to be processed in response to an audio processing instruction submitted to the target application includes: Receive audio processing instructions submitted for the target application, and read the initial audio file according to the audio processing instructions; The initial audio file is adjusted according to the preset audio file adjustment strategy of the target application, and the audio file to be processed is generated based on the adjustment result.
7. An audio processing method, characterized in that, Applied to the client side, including: In response to an audio processing instruction submitted through the audio processing interface of the target application, the audio file to be processed is read from the audio storage space in the client. According to the audio processing strategy pre-configured by the target application, load the audio playback data and audio waveform data corresponding to the audio file to be processed; Based on the audio playback data and the audio waveform data, audio debugging data for the audio file to be processed is constructed, and the debugging granularity information corresponding to the audio processing instructions is determined. Rendering the audio debugging data according to the debugging granularity information, and generating an audio debugging interface based on the rendering result, wherein rendering the audio debugging data according to the debugging granularity information and generating an audio debugging interface based on the rendering result includes: determining the waveform granularity information and time granularity information corresponding to the audio processing instruction according to the debugging granularity information, rendering the audio debugging data according to the waveform granularity information and the time granularity information, and displaying the waveform diagram corresponding to the audio file to be processed in the audio debugging area of the audio debugging interface based on the rendering result, wherein the time granularity information and the waveform granularity information are matched; The audio processing interface is updated to the audio debugging interface and displayed, wherein the audio debugging interface displays the waveform corresponding to the audio file to be processed according to the debugging granularity information.
8. An audio processing apparatus, characterized in that, include: The reading module is configured to read the audio file to be processed in response to audio processing instructions submitted to the target application; The loading module is configured to load the audio playback data and audio waveform data corresponding to the audio file to be processed according to the audio processing strategy pre-configured by the target application. The construction module is configured to construct audio debugging data for the audio file to be processed based on the audio playback data and the audio waveform data, and determine the debugging granularity information corresponding to the audio processing instructions; The generation module is configured to render the audio debugging data according to the debugging granularity information and generate an audio debugging interface based on the rendering result. The rendering of the audio debugging data according to the debugging granularity information and the generation of the audio debugging interface based on the rendering result includes: determining the waveform granularity information and time granularity information corresponding to the audio processing instruction based on the debugging granularity information; rendering the audio debugging data according to the waveform granularity information and the time granularity information; displaying the waveform diagram corresponding to the audio file to be processed in the audio debugging area of the audio debugging interface based on the rendering result; the audio debugging interface displays the waveform diagram corresponding to the audio file to be processed according to the debugging granularity information; and the time granularity information and the waveform granularity information are matched.
9. An audio processing device, characterized in that, Applied to the client side, including: The file reading module is configured to read the audio file to be processed from the audio storage space in the client in response to an audio processing instruction submitted through the audio processing interface of the target application. The data loading module is configured to load the audio playback data and audio waveform data corresponding to the audio file to be processed according to the audio processing strategy pre-configured by the target application. The data construction module is configured to construct audio debugging data for the audio file to be processed based on the audio playback data and the audio waveform data, and to determine the debugging granularity information corresponding to the audio processing instructions; The interface generation module is configured to render the audio debugging data according to the debugging granularity information and generate an audio debugging interface based on the rendering result. The rendering of the audio debugging data according to the debugging granularity information and the generation of the audio debugging interface based on the rendering result includes: determining the waveform granularity information and time granularity information corresponding to the audio processing instruction based on the debugging granularity information; rendering the audio debugging data according to the waveform granularity information and the time granularity information; and displaying the waveform diagram corresponding to the audio file to be processed in the audio debugging area of the audio debugging interface based on the rendering result, wherein the time granularity information and the waveform granularity information are matched. The display interface module is configured to update the audio processing interface to the audio debugging interface and display it, wherein the audio debugging interface displays the waveform diagram corresponding to the audio file to be processed according to the debugging granularity information.
10. A computing device, characterized in that, include: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the steps of the method according to any one of claims 1 to 7.
11. A computer-readable storage medium storing computer instructions, characterized in that, When executed by the processor, this instruction implements the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
2G3G4G voice quality fault four-domain six-dimensional intelligent delimiting method
CN109785860A
Audio oscillogram generation method, video splitting method and device, and electronic equipment
CN116884418A
