CN109830243B - Sound effect processing method and device and computer equipment - Google Patents

Sound effect processing method and device and computer equipment Download PDF

Info

Publication number
CN109830243B
CN109830243B CN201910091147.9A CN201910091147A CN109830243B CN 109830243 B CN109830243 B CN 109830243B CN 201910091147 A CN201910091147 A CN 201910091147A CN 109830243 B CN109830243 B CN 109830243B
Authority
CN
China
Prior art keywords
audio
sound effect
file
sound
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910091147.9A
Other languages
Chinese (zh)
Other versions
CN109830243A (en
Inventor
周小星
张伟林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910091147.9A priority Critical patent/CN109830243B/en
Publication of CN109830243A publication Critical patent/CN109830243A/en
Application granted granted Critical
Publication of CN109830243B publication Critical patent/CN109830243B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)
  • Stereophonic System (AREA)

Abstract

The application relates to a sound effect processing method, a sound effect processing device and computer equipment, wherein the method comprises the following steps: acquiring an audio file; when the sound effect structure description information corresponding to the audio file conforms to a preset specification, analyzing the sound effect structure description information to obtain a sound effect structure of the audio file; detecting the audio detection items of the audio file according to the configuration information of the audio detection items; according to preset standardization information, standardizing the audio files passing the detection to obtain standardized audio files; importing the standardized audio file to the created initial sound effect engineering file to obtain a sound effect engineering file; and according to a preset conversion rule, converting the sound effect structure into a standard sound effect structure in the sound effect engineering file. The scheme of the application can improve efficiency.

Description

Sound effect processing method and device and computer equipment
Technical Field
The invention relates to the technical field of computers, in particular to a sound effect processing method and device and computer equipment.
Background
With the rapid development of scientific technology, the expression forms for the content are more diversified. Sound effects are widely favored by virtue of their good expressiveness, for example, in game products, vivid sound effects can be designed to achieve a very good expressive effect.
In the traditional method, a worker is required to manually import an audio resource, then manually create an audio effect object, and perform manual processing such as editing and adjusting an audio effect structure to complete the related design of audio effects. Therefore, the traditional method mainly depends on manual addition of audio resources to carry out game sound effect engineering design, and is very complicated to operate, so that the efficiency is low.
Disclosure of Invention
Therefore, it is necessary to provide a sound processing method, an apparatus, a computer device and a storage medium for solving the problem that the conventional method wastes a large amount of storage resources.
A sound effect processing method, the method comprising:
acquiring an audio file;
when the sound effect structure description information corresponding to the audio file conforms to a preset specification, analyzing the sound effect structure description information to obtain a sound effect structure of the audio file;
detecting the audio detection items of the audio file according to the configuration information of the audio detection items;
according to preset standardization information, standardizing the audio files passing the detection to obtain standardized audio files;
importing the standardized audio file to the created initial sound effect engineering file to obtain a sound effect engineering file;
and according to a preset conversion rule, converting the sound effect structure into a standard sound effect structure in the sound effect engineering file.
An audio effect processing device, the device comprising:
the analysis module is used for acquiring an audio file; when the sound effect structure description information corresponding to the audio file conforms to a preset specification, analyzing the sound effect structure description information to obtain a sound effect structure of the audio file;
the detection module is used for detecting the audio detection items of the audio file according to the configuration information of the audio detection items;
the standardized processing module is used for standardizing the audio files passing the detection according to preset standardized information to obtain standardized audio files;
the import module is used for importing the standardized audio file into the created initial sound effect engineering file to obtain a sound effect engineering file; and according to a preset conversion rule, converting the sound effect structure into a standard sound effect structure in the sound effect engineering file.
A computer device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of:
acquiring an audio file;
when the sound effect structure description information corresponding to the audio file conforms to a preset specification, analyzing the sound effect structure description information to obtain a sound effect structure of the audio file;
detecting the audio detection items of the audio file according to the configuration information of the audio detection items;
according to preset standardization information, standardizing the audio files passing the detection to obtain standardized audio files;
importing the standardized audio file to the created initial sound effect engineering file to obtain a sound effect engineering file;
and according to a preset conversion rule, converting the sound effect structure into a standard sound effect structure in the sound effect engineering file.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of:
acquiring an audio file;
when the sound effect structure description information corresponding to the audio file conforms to a preset specification, analyzing the sound effect structure description information to obtain a sound effect structure of the audio file;
detecting the audio detection items of the audio file according to the configuration information of the audio detection items;
according to preset standardization information, standardizing the audio files passing the detection to obtain standardized audio files;
importing the standardized audio file to the created initial sound effect engineering file to obtain a sound effect engineering file;
and according to a preset conversion rule, converting the sound effect structure into a standard sound effect structure in the sound effect engineering file.
According to the sound effect processing method, a certain preset standard is preset, when the sound effect structure description information corresponding to the audio file meets the preset standard, the sound effect structure description information is analyzed to obtain a corresponding sound effect structure, and therefore the sound effect structure of the audio file is automatically and accurately analyzed. Detecting an audio detection item of the audio file according to the configuration information, and automatically standardizing the audio file according to the preset standardized information after the detection is passed to obtain a standardized audio file; importing the standardized audio file to the created initial sound effect engineering file to obtain a sound effect engineering file; and according to a preset conversion rule, converting the sound effect structure into a standard sound effect structure in the sound effect engineering file. Therefore, the sound effect engineering is automatically designed, and the efficiency is improved. In addition, after a plurality of items of automatic detection, standardization processing and conversion processing of a preset conversion rule, a sound effect engineering file and a corresponding standardized sound effect structure are generated, and the accuracy is improved.
Drawings
FIG. 1 is a diagram illustrating an exemplary embodiment of an audio processing method;
FIG. 2 is a flow chart illustrating an embodiment of a sound effect processing method;
FIG. 3 is a diagram illustrating sound engineering design and sound playback in one embodiment;
FIG. 4 is a sound effect engineering file design flow in one embodiment;
FIG. 5 is a diagram illustrating an exemplary audio streaming configuration;
FIG. 6 is a flow of volume normalization in one embodiment;
FIG. 7 is a simplified flow diagram of an embodiment of automatic audio import;
FIG. 8 is a block diagram of an audio effect processing device according to an embodiment;
FIG. 9 is a block diagram of an audio effect processing device according to another embodiment;
FIG. 10 is a diagram showing an internal configuration of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly understood, the following description of the application terminal according to the present invention is made in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
FIG. 1 is a diagram illustrating an application scenario of an audio processing method according to an embodiment. Referring to fig. 1, the application scenario includes an audio design apparatus 110, a server 120, and an application terminal 130. Wherein, the server 120 is respectively connected with the sound effect design device 110 and the application terminal 130 through a network. The sound effect design device 110 is a device for performing game engineering design. The sound effect design device 110 can be a terminal or a background server. The application terminal 130 is a terminal that uses an application, such as a game terminal used by a game user. The sound design device 110 and the application terminal 130 may be a smart tv, a desktop computer, or a mobile terminal, and the mobile terminal may include at least one of a mobile phone, a tablet computer, a notebook computer, a personal digital assistant, and a wearable device. The server 120 may be implemented as a stand-alone server or as a server cluster of multiple physical servers.
The technician can design an audio file through the sound effect design apparatus 110, and the sound effect design apparatus 110 can further acquire the designed audio file. The technician can create a corresponding sound effect engineering file based on the audio file through the sound effect design apparatus 110. In the process of creating the sound effect engineering file, the sound effect design equipment 110 can detect whether the sound effect structure description information corresponding to the audio file conforms to the preset specification, and when the sound effect structure description information corresponding to the audio file conforms to the preset specification, the terminal can analyze the sound effect structure description information to obtain the sound effect structure of the audio file. The sound effect design device 110 can detect the audio detection items of the audio file according to the configuration information of the audio detection items. After the detection is passed, the sound effect design device 110 may perform standardization processing on the audio file passed through the detection according to preset standardization information to obtain a standardized audio file. The sound effect design device 110 may further import the standardized audio file to the created initial sound effect engineering file to obtain the sound effect engineering file. And, sound design equipment 110 can be according to predetermineeing the conversion rule, will sound structure converts the standard sound structure in the sound engineering file to realize the design of a sound engineering. It can be understood that the sound effect structure is converted into a standard sound effect structure in the sound effect engineering file, and the original sound effect structure is led into the sound effect engineering file equivalently, so that the standardized sound effect structure meeting the sound effect engineering requirement is obtained.
It is understood that after the sound effect engineering is completed, the sound effect design apparatus 110 may upload the designed sound effect engineering file to the server 120. The server 120 can package and output the sound effects in the sound effect engineering file into a sound effect resource package in a specific format. When the application terminal 130 runs the application using the sound effect, the corresponding sound effect resource packet may be acquired and loaded under a certain trigger condition, and the corresponding sound effect information is read therefrom to play the sound effect.
It should be noted that the sound effect processing method in the embodiments of the present application is mainly applied to the above processing of the sound effect design device 110, the server 120 and the application terminal 130, and is only a device involved in an application scenario in one embodiment, and is not a necessary condition for implementing the sound effect processing method in the present application.
FIG. 2 is a flowchart illustrating an audio processing method according to an embodiment. The embodiment mainly takes the example that the sound effect processing method is applied to a computer device, and the computer device may be the sound effect design device 110 in fig. 1. Referring to fig. 2, the method specifically includes the following steps:
s202, acquiring an audio file.
The audio file is a file storing sound content.
In particular, a computer device may obtain an existing audio file. The computer device may also generate an audio file based on the audio design operating instructions of the technician. That is, a technician may design and create an audio file through a computer device, and the computer device may further acquire the designed audio file.
In one embodiment, the audio file may be a game audio file. A game audio file refers to a file that provides sound content to a game application. It will be appreciated that the audio file is not limited to a game audio file, but may be a file that provides sound content to at least one of a variety of platforms, such as a live application or a social application. For example, the sound effect of delivering a gift in a live broadcast, or the sound effect of an emoticon sent in a social application may be provided by an audio file.
It should be noted that there may be at least one audio file. When the number of the audio files is multiple, the steps S204 to S212 may be executed for each audio file, so as to import the standardized audio files of each audio file into the sound effect engineering file, and convert the sound effect structure of each audio file into the standard sound effect structure required in the sound effect engineering, thereby implementing the sound effect engineering file including the standardized audio set.
S204, when the sound effect structure description information corresponding to the audio file conforms to the preset specification, the sound effect structure description information is analyzed to obtain the sound effect structure of the audio file.
The sound effect structure description information is information describing a sound effect structure. The preset specification is preset sound effect structure standard specification information. The sound effect structure is an organization form of sound effects. It can be understood that the sound effect can be correctly resolved and played based on the sound effect structure.
In one embodiment, the sound effect structure description information may include a file name of the audio file. Namely, the sound effect structure of the audio file is embodied in the file name of the audio file. It is understood that, in this case, the preset specification may be a preset naming specification capable of embodying sound effect structure standardization information. I.e. a pre-set file naming convention for audio files. Equivalently, the sound effect structure is normalized and described through the specification of file naming.
In another embodiment, the sound effect structure description information may also include other forms of information describing the sound effect structure of the audio file. Such as an audio effect structure description document or an audio effect structure description list. The sound effect structure description document is a document which is specially used for describing the sound effect structure of the audio file, and the document comprises information used for describing the sound effect structure of the audio file. The sound effect structure description list is a list for describing the sound effect structure of the audio file and is used for representing the sound effect structure for describing the audio file in a list form.
Specifically, the computer device can detect whether the sound effect structure description information corresponding to the audio file conforms to a preset specification, and when the sound effect structure description information conforms to the preset specification, the sound effect structure description information is analyzed to obtain the sound effect structure of the audio file. It can be understood that the computer device can automatically detect whether the sound effect structure description information corresponding to the audio file conforms to the preset specification, and can also execute the processing step of whether the sound effect structure description information corresponding to the audio file conforms to the preset specification after receiving the triggering operation of a technician.
In one embodiment, the computer device may generate a failure prompt report when the sound effect structure description information corresponding to the audio file does not meet the preset specification.
S206, detecting the audio detection item of the audio file according to the configuration information of the audio detection item.
Wherein, the audio detection item is the audio item to be detected.
In one embodiment, the audio detection term includes audio parameters that embody sound content. In one embodiment, the audio parameters representing the sound content include at least one of a plurality of audio parameters including a silence length, a phase, and a plosive. It is understood that in other embodiments, the audio detection item may also include other aspects of audio parameters.
The configuration information of the audio detection item is standardized information configured in advance for the audio detection item. Configuration information of the audio detection items may be provided by the rule template.
In one embodiment, the configuration information of the audio detection item in step S206 corresponds to the sound effect type of the audio file. That is, since the audio parameters of the audio files of the same type of audio effect have commonality, the configuration information of the corresponding audio detection items can be set in advance for different types of audio effect, and the computer device can detect the audio detection items of the audio files by using the configuration information of the audio detection items corresponding to the types of audio effect of the audio files. It is understood that in other embodiments, the configuration information of the audio detection item may be a general configuration information without distinguishing the sound effect type.
In one embodiment, the configuration information of the audio detection item may include a configuration value of the audio detection item. The audio detection item configuration value is a standard value configured in advance for the audio detection item. It is to be understood that the audio detection item configuration information is not limited to the form of the value, and may further include a standardized value interval or standardized description information configured in advance for the audio detection item.
Specifically, the computer device may perform, for an audio file whose audio structure description information conforms to the preset specification, detection of a corresponding audio detection item according to the configuration information of the audio detection item to detect whether a value of the audio detection item of the audio file satisfies the corresponding configuration information, and when the value satisfies the corresponding configuration information, it indicates that the detection is passed, and performs step S208 for the detected audio file.
It is understood that the computer device may automatically trigger the step S206 after determining that the sound effect structure description information corresponding to the audio file conforms to the preset specification. The step S206 may be triggered to be executed after receiving the trigger operation of the technician.
In one embodiment, when the audio detection item of the audio file does not meet the corresponding configuration information, the detection is not passed, and a prompt report that the audio file detection has a problem can be generated.
And S208, standardizing the audio files passing the detection according to preset standardized information to obtain standardized audio files.
The standardized information is standardized specification information that the audio file is required to reach. In one embodiment, the normalization information includes normalization information for audio format parameters. The audio format parameter is a parameter indicating an audio format. The audio format includes at least one of a sampling rate and a bit depth, etc. In one embodiment, the standardized information may also include volume.
In one embodiment, the preset normalization information may also be provided by the rule template.
It should be noted that, one rule template may simultaneously include multiple kinds of normalized information, such as preset specifications for detecting the sound effect structure description information, configuration information of audio detection items, and standardized information. The preset specification for detecting the sound effect structure description information, the configuration information of the audio detection item and the standardization information can also be provided by different rule templates respectively. Here, the specific form of the rule template is not limited.
In one embodiment, the same rule template may be set for the same sound effect type. For example, a rule template may be set for the same sound effect type, where the rule template simultaneously includes multiple kinds of normalized information, such as preset specifications for detecting sound effect structure description information, configuration information of audio detection items, and standardized information. Different sound effect types correspond to different rule templates. For another example, a rule template including a preset specification for detecting sound effect structure description information may be set for the same sound effect type, a rule template including configuration information of an audio detection item may be set for the same sound effect type, and a rule template including standardized information may be set for the same sound effect type.
In other embodiments, the rule template may be a general normalized template that does not distinguish between sound effect types. In the general rule template, general normalized information which is not distinguished by sound effect types can be set, and corresponding normalized information can be set aiming at different sound effect types.
In one embodiment, the standardized information in step S208 corresponds to the sound effect type of the audio file. That is, since audio attributes such as audio formats and volumes of audio files of the same type of audio effect type have commonality, corresponding standardized information can be set for different types of audio effect in advance, and the computer device can standardize the detected audio files according to the standardized information corresponding to the types of audio effect of the audio files to obtain standardized audio files. It is understood that in other embodiments, the standardized information may be a general standardized information that is not distinguished by the sound effect type.
Specifically, the computer device may perform a standardized adjustment on the value of the audio parameter of the audio file that needs to be standardized so as to adjust the value to conform to the standardized information, thereby obtaining an adjusted standardized audio file.
S210, importing the standardized audio file to the created initial sound effect engineering file to obtain the sound effect engineering file.
The initial sound effect engineering file is an initial sound effect engineering file which is created in advance and comprises sound effect playing attributes. It will be appreciated that the initial sound effect engineering file includes some standardized base attribute information (e.g., playback behavior attribute information), but does not yet include a standardized audio file and standardized sound effect structure. Namely, the initial sound effect engineering file is equivalent to an initial file including some basic information, and a complete sound effect engineering file which can be directly used for sound effect playing can be obtained only by introducing a standardized audio file and a corresponding standardized sound effect structure into the initial sound effect engineering file.
The sound effect engineering file is a representation form of a standardized audio file, a standardized sound effect structure and a playing behavior. Namely, the sound effect engineering file includes information which is subjected to standardization processing and can be directly used for sound effect playing. It can be understood that the information that can be directly used for sound effect playing includes information of a standardized audio file, a standardized sound effect structure and sound effect playing attributes.
In one embodiment, before step S210, the computer device may obtain the input sound effect engineering information, call the audio middleware creating interface, and create an initial sound effect engineering file. Wherein, the sound effect project information comprises a sound effect project name and a project storage path. The audio middleware is a way of standardizing sound effect programming, and abstracts and summarizes the playing behavior of the audio. It can be understood that the computer device may obtain the engineering configuration information including the sound effect playing attribute, and call the audio middleware creating interface according to the engineering configuration information and the input sound effect engineering information to create the initial sound effect engineering file. Therefore, the sound effect playing attribute is included in the initial sound effect engineering file.
In one embodiment, the sound effect engineering file may be a game sound effect engineering file. The game sound effect engineering file is used for providing sound effects for game application.
S212, converting the sound effect structure into a standard sound effect structure in the sound effect engineering file according to a preset conversion rule.
The preset conversion rule is the preset standardized information for mapping and converting the sound effect structure. It is understood that the preset conversion rule can be used for mapping conversion between the sound effect structures. The preset conversion rules may also be provided by a rule template.
Specifically, the computer device may create a standard sound effect structure in the sound effect engineering file according to the sound effect structure and the preset conversion rule acquired in step S204. Namely, the computer equipment can convert the acquired sound effect structure into a standard sound effect structure in the sound effect engineering file according to a preset conversion rule.
What needs to be explained is that the sound effect structure is converted into a standard sound effect structure in the sound effect engineering file, which is actually equivalent to leading the original sound effect structure into the sound effect engineering file, so as to obtain a standardized sound effect structure meeting the sound effect engineering requirement.
It can be understood that after the sound effect engineering design is finished, the sound effect in the sound effect engineering file can be packaged and output as a sound effect resource package in a specific format. When the application using the sound effect is operated, the corresponding sound effect resource packet can be acquired and loaded under a certain trigger condition, and the corresponding sound effect information is read from the corresponding sound effect resource packet to play the sound effect. For ease of understanding, reference is now made to fig. 3 for illustration. FIG. 3 is a diagram illustrating sound effect engineering design and sound effect playback in one embodiment.
Referring to fig. 3, a game application will be described as an example. The game audio middleware provides a sound effect editor and a sound effect playing engine, wherein the sound effect editor is used for editing and creating game sound effect projects, and the sound effect playing engine is responsible for playing sound effects. The audio designer designs an audio file, and creates and edits a game sound effect project through a sound effect editor. And after the game sound effect project is established, packaging and outputting the sound effect set in the game sound effect project into a sound effect resource package in a specific format. And in the development process, a game developer integrates a sound effect playing engine provided by the game audio middleware into a game application and writes sound effect playing logic codes. And loading the sound effect resource package when the game application runs, and driving a sound effect playing engine by the sound effect playing logic code to read the corresponding sound effect information for playing. It can be understood that the sound effect processing method in the embodiments of the present application mainly corresponds to the processing stage of creating and editing the game sound effect project through the sound effect editor.
According to the sound effect processing method, a certain preset standard is preset, and when the sound effect structure description information corresponding to the audio file meets the preset standard, the sound effect structure description information is analyzed to obtain a corresponding sound effect structure, so that the sound effect structure of the audio file is automatically and accurately analyzed. Detecting an audio detection item of the audio file according to the configuration information, and automatically standardizing the audio file according to the preset standardized information after the detection is passed to obtain a standardized audio file; importing a standardized audio file to the created initial sound effect engineering file to obtain a sound effect engineering file; and according to a preset conversion rule, converting the sound effect structure into a standard sound effect structure in the sound effect engineering file. Therefore, the sound effect engineering is automatically designed, and the efficiency is improved. In addition, after a plurality of items of automatic detection, standardization processing and conversion processing of a preset conversion rule, a sound effect engineering file and a corresponding standardized sound effect structure are generated, and the accuracy is improved.
In one embodiment, in addition to generating a corresponding prompt report (for example, generating a prompt report for detecting that an audio file has a problem) during the creation and design of the sound effect engineering file, for a standardized audio file and a standardized sound effect structure that have already been imported into the sound effect engineering file, the computer device may query the overall design condition of the sound effect engineering file through the report generator.
To facilitate understanding of the whole sound effect processing flow, the following description is given with reference to fig. 4. FIG. 4 is a sound effect engineering file design flow in one embodiment. It should be noted that fig. 4 exemplifies a file name of an audio file as sound effect structure description information. Referring to fig. 4, the rule template may provide naming specifications, audio test item configuration values, engineering configuration information, sound effect structure description templates, and standardized values, and the above information included in the rule template may be parsed by the template parser. The computer equipment can perform engineering creation according to the sound effect engineering information and the engineering configuration information provided by the rule template to obtain an initial game sound effect engineering file. Inputting an audio file, analyzing the file name of the audio file by a name analyzer according to the name specification in the rule template, judging whether the file name meets the name specification, analyzing the sound effect structure from the file name of the audio file meeting the name specification, and prompting the failure of analysis for the audio file not meeting the name specification. And then, according to the configuration value of the audio detection item provided by the rule template, carrying out audio detection on the audio file conforming to the naming specification, and completing the detection of audio parameters such as audio mute length, acoustic phase, plosive and the like. It will be appreciated that the audio file detection is prompted to be problematic for audio detection item configuration values that do not satisfy the provided rule template. And aiming at the audio file which is successfully detected, normalizing the audio attributes such as the sampling rate, the bit depth, the volume and the like of the audio file according to the normalized values provided by the rule template. And finally, automatically importing the audio file after standardization into the initial game sound effect engineering file through an import interface to generate the game sound effect engineering file. And establishing a standard sound effect structure corresponding to the game sound effect project according to the sound effect structure of the file naming analysis and a preset conversion rule provided by the rule template, which is equivalent to importing the standard sound effect structure into the game sound effect project file. Besides, the relevant information can be inquired from the report generator through the inquiry interface, and the report can be generated and imported.
In one embodiment, the sound effect structure description information is a file name of the audio file; the preset specification is a preset naming specification. Step S204 includes: selecting a preset naming standard corresponding to the sound effect type of the audio file from the rule template; the preset naming specification comprises a prefix name for defining the sound effect type; and when the file name of the audio file conforms to the preset name specification, analyzing the sound effect structure of the audio file from the file name.
Wherein, the sound effect type is used for representing the category of the sound effect. In one embodiment, the sound effect type may be a game sound effect type. The game sound effect type is the category of sound effects in the game.
In one embodiment, the game sound effect types can include at least one of a plurality of types, including trick sound effects, interface sound effects, scene sound effects, ambient sound effects, animation sound effects, and music sound effects. Table 1 shows the division of sound effect types in one embodiment.
TABLE 1
Figure BDA0001963300480000111
Figure BDA0001963300480000121
And the naming specification is used for specifying the file naming mode of the audio file. The preset naming standard is a naming standard based on the sound effect type. The sound effect type is defined in the preset naming convention. That is, the preset naming specification includes prefix names defining sound effect types and sound effect names that are not specified.
In one embodiment, the preset naming convention may also include a suffix digit interval representing a random play index of sound effects. The space between the prefix and suffix and the sound effect name can be divided by underlining.
It should be noted that, in general, the same sound effect type corresponds to the same default naming convention. However, one sound effect type may also be subdivided into a plurality of sub-sound effect types, in which case the same sub-sound effect type corresponds to the same preset naming convention.
Table 2 is a default naming convention for game sound effects in one embodiment.
TABLE 2
Figure BDA0001963300480000122
It will be appreciated that 0-9 in Table 2 are the shuffle indexes used to represent sound effects.
The computer equipment can select a preset naming specification corresponding to the sound effect type of the audio file from the rule template; and comparing the file name of the audio file with the selected preset name specification, and analyzing the sound effect structure of the audio file from the file name when the file name accords with the corresponding preset name specification.
For example, if the sound effect type of the audio file is an interface sound effect, it may be determined whether the file name of the audio file conforms to the preset name specification "UI _ { sound effect name }", and if so, the sound effect structure of the audio file is parsed from the file name.
In one embodiment, the method further includes a step of determining whether the file name meets a preset name specification, and specifically includes the following steps: when the preset naming specification does not comprise a suffix digital interval for representing the random play index, detecting the consistency of the prefix naming of the file naming and the prefix naming in the preset naming specification; if the consistency detection of the prefix naming is passed, judging that the file naming accords with a preset naming standard; when the preset naming specification comprises a suffix digit interval for representing the random play index, after the consistency detection of the prefix name is passed, whether a digital suffix contained in the suffix digit interval exists in the file name is detected, and if the digital suffix exists, the file name is judged to be in accordance with the preset naming specification.
It can be appreciated that it is difficult to effectively utilize engineering automation design to improve efficiency due to overly relaxed naming specifications. The sound effect naming specification is too strict, the flexibility is not enough, the use is more complicated, and the expansion to different game types is difficult. In the above embodiment, the sound effect type and the general sound effect structure are defined by making basic constraints through the preset naming specifications, so that the method can be suitable for all game types, is flexible, is unlikely to be too loose, and can realize automatic sound effect engineering design.
In one embodiment, the preset naming convention is a first-level naming convention; the audio file is a game audio file. When the file name of the audio file conforms to the preset name specification, analyzing the sound effect structure of the audio file from the file name comprises the following steps: when the file name of the audio file conforms to the primary naming specification, selecting a secondary naming specification corresponding to the game type to which the audio file belongs from secondary naming specifications set for the sound effect name in the primary naming specification; and when the file name of the audio file conforms to the secondary naming specification, analyzing the sound effect structure of the audio file from the file name.
The second-level naming standard is a specific naming mode for further restricting and restricting sound effect names on the basis of the first-level naming standard. That is, the secondary naming convention is set for the sound effect name in the primary naming convention. The secondary naming convention may be a further constraint on sound effect names based on game type as a partition. Namely, respective corresponding detail naming specifications are set for different game types under the same sound effect type. The same game type corresponds to the same secondary naming convention.
Specifically, when the file name of the audio file conforms to the primary naming specification, the computer device may select a secondary naming specification corresponding to the game type to which the audio file belongs from secondary naming specifications set for the sound effect name in the primary naming specification. And when the file name of the audio file conforms to the secondary naming specification, analyzing the sound effect structure of the audio file from the file name.
In one embodiment, the second-level naming convention may further include a preset sound effect playing attribute value, in addition to defining a finer one-step sound effect structure of each type of sound effect. Namely, sound effect playing attribute related standard information is also included. The computer equipment can lead the contained sound effect playing attribute preset value into the sound effect engineering file so as to realize the dynamic configuration of the sound effect playing attribute.
In the embodiment, two-stage naming specifications are used, basic constraint is carried out through the one-stage naming specification, the sound effect type and the universal sound effect structure are defined, and automatic sound effect engineering design can be achieved. And the naming standard of the details is carried out aiming at different game types by combining the secondary naming standard, and the more details and accuracy can be realized on the premise of meeting the automatic sound effect engineering design.
In one embodiment, step S206 includes: creating a respective audio buffer queue for each channel comprised by the audio file; sending each sound channel audio data in the audio file to an audio buffer queue of a corresponding sound channel; for each audio detection item, acquiring audio channel data which accord with the length of an audio frame corresponding to the audio detection item from an audio buffer queue of a channel to be processed of the audio detection item; and detecting the audio data of the sound channel according to the configuration information of the audio detection item.
Wherein, the audio detection item is the audio item to be detected.
In one embodiment, the audio detection term includes audio parameters that embody sound content. In one embodiment, the audio parameters representing the sound content include at least one of a plurality of audio parameters including a silence length, a phase, and a plosive. It is understood that in other embodiments, the audio detection item may also include other aspects of audio parameters.
In one embodiment, the configuration information of the audio detection item may include a configuration value of the audio detection item. The audio detection item configuration value is a standard value configured in advance for the audio detection item.
Specifically, the computer device may perform format parsing on the audio file through a file format parser, and determine a channel included in the audio file. The computer device may create a respective audio buffer queue for each channel included in the audio file. The computer equipment can read the audio data from the audio file and send the audio data of the channels corresponding to the channels to the audio buffer queues of the corresponding channels for buffering.
It can be understood that some audio detection items can be processed by each channel independently (for example, pop detection), and some audio detection items can be processed by the channel audio data of multiple channels (for example, panning detection). Therefore, for each audio detection item, the computer device may determine the channel to be processed corresponding to the audio detection item. The channel to be processed refers to a channel for providing channel audio data to perform detection processing when detecting the audio detection item. It is understood that there may be one or more channels to be processed.
For each audio detection item, the computer device may obtain, from the audio buffer queue corresponding to the determined channel to be processed, channel audio data that conforms to the length of the audio frame corresponding to the audio detection item. The computer device may detect the acquired channel audio data according to configuration information of the audio detection item. The audio detection item corresponds to an audio frame length, which is the length of the audio frame required when the audio detection item is detected.
It will be appreciated that the audio frame lengths required for different audio detection items at the time of detection may be different. For example, some audio detection items may require an audio frame length of only 10ms to achieve the required data amount for detection, and some audio detection items may require an audio frame length of 20ms to achieve the required data amount for detection. Therefore, the computer equipment can acquire the sound channel audio data which accord with the length of the audio frame corresponding to the audio detection item, thereby accurately acquiring the length of the audio data on the premise of ensuring normal audio detection, avoiding unnecessary data acquisition and processing and improving the efficiency.
In one embodiment, the method further comprises: and for each audio detection item, when the channels to be processed of the audio detection item are multiple, determining the detection result of the audio detection item according to the detection result of the channel audio data corresponding to each channel to be processed.
It can be understood that, when there are a plurality of channels to be processed of an audio detection item, the computer device may respectively obtain channel audio data that conforms to the length of the audio frame corresponding to the audio detection item from the audio buffer queue of each channel to be processed of the audio detection item; and respectively detecting the acquired audio data of the sound channels according to the configuration information of the audio detection items to obtain the detection result of the audio data of the sound channels corresponding to the sound channels to be processed. The computer device can combine the detection results of the channel audio data corresponding to each channel to be processed to determine the final detection result of the audio detection item. For example, when the channels to be processed of one audio detection item are a left channel and a right channel, the computer device may perform corresponding detection on the channel audio data of the left channel and the channel audio data of the right channel, and then determine a final detection result of the audio detection item according to a detection result of the channel audio data of the left channel and a detection result of the channel audio data of the right channel.
In the above embodiment, the audio data of different channels are allocated to different audio buffer queues, so that audio detection processing for distinguishing channels can be realized. Furthermore, the audio frame lengths required for different audio detection items at the time of detection may be different. Therefore, the computer equipment can acquire the sound channel audio data which accord with the length of the audio frame corresponding to the audio detection item, thereby accurately acquiring the length of the audio data on the premise of ensuring normal audio detection, avoiding unnecessary data acquisition and processing and improving the efficiency.
In one embodiment, the method further comprises: and corresponding to each audio buffer queue, mounting each buffer block which is arranged according to the length of the audio frame corresponding to each audio detection item. In this embodiment, obtaining, from an audio buffer queue of a channel to be processed of an audio detection item, channel audio data that conforms to a length of an audio frame corresponding to the audio detection item includes: the method comprises the following steps: and sending the audio data of the audio channel to a buffer block which is mounted on the audio buffer queue and corresponds to the length of the audio frame from the audio buffer queue of the audio channel to be processed of the audio detection item until the buffer block reaches a full data state. In this embodiment, detecting the channel audio data according to the configuration information of the audio detection item includes: and when the buffer block reaches a full data state, detecting the audio data of the sound channel cached in the buffer block according to the configuration information of the audio detection item.
The buffer block is used for buffering the audio data which accords with the length of the audio frame corresponding to the audio detection item. The lengths of the audio frames cached in different buffer blocks are different. The data full state refers to a state that the buffer block is filled with the audio data of the channel sent by the audio buffer queue.
It can be understood that the buffer block is equivalent to perform framing on the audio data of the channels in the same audio buffer queue according to the length of the audio frame corresponding to each audio detection item.
Specifically, the computer device may mount, after creating a corresponding audio buffer queue for each channel included in the audio file, each buffer block set according to the length of the audio frame corresponding to each audio detection item, corresponding to each audio buffer queue; and sending the audio data of the audio channel to a buffer block which is mounted on the audio buffer queue and corresponds to the length of the audio frame from the audio buffer queue of the audio channel to be processed of the audio detection item until the buffer block reaches a full data state.
It can be understood that, since the buffer block is already full, data cannot be received any more, and when the buffer block reaches a data full state, the length of the channel audio data cached in the buffer block is the length of the audio frame corresponding to the audio detection item. When the buffer block reaches a full data state, the computer device may detect the channel audio data buffered in the buffer block according to the configuration information of the audio detection item.
For ease of understanding, this is now exemplified. For example, 5 audio detection items D1~D5Respectively corresponding audio frame length of L1~L5Then, lengths L, respectively, can be created1~L55 buffer blocks B1~B5Then, each audio buffer queue is mounted with a length L1~L55 buffer blocks. When the length of the audio frame required by detection is L1Audio detection item D1Then, the audio data of the audio channel can be copied from the audio buffer queue to the buffer block B1(buffer Block B)1Has a length of L1) Up to the buffer block B1Is filled up, at this time, the buffer block B1The length of the received channel audio data is also L1. The computer device can detect the item D according to the audio frequency1Configuration information of (2), detecting buffer block B1The length of the middle cache is L1The channel audio data.
In one embodiment, the method further comprises: and aiming at each buffer block, mounting an audio detection port which accords with the length of the audio frame corresponding to the buffer block. In this embodiment, according to the configuration information of the audio detection item, detecting the channel audio data cached in the buffer block includes: and acquiring the audio data of the sound channel cached in the buffer block through the audio detection port mounted on the buffer block, and detecting the acquired audio data of the sound channel according to the configuration information of the audio detection item.
It can be understood that the length of the audio frame which can be stored by the audio detection port which conforms to the length of the audio frame corresponding to the buffer block conforms to the length of the mounted buffer block.
Specifically, after mounting each buffer block set according to the audio frame length corresponding to each audio detection item corresponding to each audio buffer queue, the computer device mounts an audio detection port conforming to the audio frame length corresponding to the buffer block for each buffer block. Wherein, the audio detection ports mounted on the same buffer block can be created according to the preset number.
And sending the audio data of the audio channel to a buffer block which is mounted on the audio buffer queue and corresponds to the length of the audio frame from the audio buffer queue of the audio channel to be processed of the audio detection item until the buffer block reaches a full data state. When the buffer block reaches a full data state, the audio detection port mounted on the buffer block is used for acquiring the audio data of the sound channel cached in the buffer block, and the acquired audio data of the sound channel is detected according to the configuration information of the audio detection item.
Suppose, 5 audio detection items D1~D5Respectively corresponding audio frame length of L1~L5Then, lengths L, respectively, can be created1~L55 buffer blocks B1-B5, then each audio buffer queue is mounted with a length L1~L55 buffer blocks. 3 audio detect ports are created for each buffer block, assuming 3 audio detect ports P are mounted for buffer block B11~P3. When the length of the audio frame required by detection is L1Audio detection item D1At the same time, copying the audio data of the sound channel from the audio buffer queue to the buffer block B1(buffer block B1 has a length L1) Until buffer block B1 is filled, at which time buffer block B is filled1The length of the received channel audio data is also L1. The buffer block can receive the signal with the length of L1Sends the sound track audio data to the audio detection port P1And carrying out audio detection processing on the audio data of the channel according to the configuration information of the audio detection item. It can be understood that the buffer block B1Can continue to receive audio data of the following channel if the audio detection port P1Not idle but also detecting the last received audio data of the channel, buffer B1The newly received channel audio data may be sent to another audio detection port (e.g., P)2) And (6) detecting. Continuity and high efficiency in the audio data detection process are achieved through streaming detection.
It can be understood that, when there are a plurality of channels to be processed of the audio detection item, the audio detection ports corresponding to the channels to be processed may be combined to perform detection respectively, and then the detection results are combined to determine the final detection result of the audio detection item. It is equivalent to combining a plurality of audio detection ports to complete the detection of the audio detection items.
Fig. 5 is a schematic diagram of an audio streaming detection structure in one embodiment. Referring to fig. 5, the format of an audio file may be parsed by a file format parser, and an audio multichannel distributor creates a corresponding number of audio buffer queues (0-C-1) according to the number of channels C resulting from parsing the format of the audio file. And the template analyzer analyzes the detection template for detecting the audio detection item to obtain the length of the audio frame corresponding to the audio detection item. And the audio detection manager creates buffer blocks (0-K-1) with corresponding lengths according to the length of the audio frame corresponding to the audio detection item analyzed by the template analyzer, and then mounts the created buffer blocks to each audio buffer queue. In fig. 5, the mount buffer block is schematically illustrated by taking the audio buffer queue (0) as an example, and mount buffer blocks corresponding to other audio buffer queues are omitted for simplicity. For each buffer block, a plurality of audio detection ports (0-M) with the same audio frame length are mounted0-1). It will be appreciated that the audio detection port is responsible for executingAnd (4) carrying out detection algorithm on each audio detection item. And after the audio stream is read to audio data, the audio stream is sent to an audio multichannel distributor. The audio multi-channel distributor sends each channel of audio data to the audio buffer queue of the corresponding channel. And for each audio detection item, the audio buffer queue copies audio data to a mounted buffer block which accords with the length of the audio frame required by the audio detection item. And when the received data of the buffer block is full, informing the audio detection port to execute corresponding detection algorithm processing. And after the audio detection port calculates the detection data, the detection data is sent to an audio detection manager for counting the detection result. For an audio detection item requiring simultaneous processing of multiple channels, the audio detection ports of multiple channels need to be combined to complete the detection processing. It can be understood that the detection data of a plurality of audio detection ports can be combined to obtain the final detection result of the audio detection item. It should be noted that, the audio detection port combinations of different buffer blocks mounted under the same audio buffer queue may also be detected as needed
In the above embodiment, through the audio streaming detection structure, the different configurations of different audio detection items are compatible. In addition, the detection efficiency can be improved.
In one embodiment, the standardized information includes volume standard values. Step S208 includes: determining a value of a preset volume index corresponding to an audio file; and when the value of the preset volume index meets the standard value adjusting condition, adjusting the value of the preset volume index to the volume standard value.
The preset volume index is a preset volume index. The volume index is an index for indicating a volume characteristic. The volume standard value is a standardized volume value set in advance.
In one embodiment, the computer device may acquire volume standard values that are set separately in advance for different sound-effect types. The computer equipment can obtain a volume standard value corresponding to the sound effect type of the audio file, and when the value of the preset volume index meets the standard value adjusting condition, the value of the preset volume index is adjusted to the volume standard value.
The standard value adjusting condition is a condition capable of adjusting the value of the preset volume index to a preset volume standard value. That is, if the standard value adjustment condition is met, it indicates that the value of the volume index can be preset for standardization, and the audio file is the audio file capable of completing volume standardization.
In one embodiment, the criterion value adjusting condition may include that a difference between the value of the preset volume indicator and the volume criterion value is smaller than a preset range.
In one embodiment, the preset volume indicator may comprise a root mean square. The value of the preset volume index may be a root mean square volume value. The root-mean-square (RMS) volume value is a value obtained by averaging the root mean square of sound pressures in a time-domain waveform (i.e., sound waves) of sound. That is, the square of the sound pressure at each time in the time domain waveform of the sound is averaged, and then the square is squared to obtain the root mean square volume value. Sound pressure is the pressure increase due to the presence of sound waves.
It is understood that sound is an analog signal, and the time-domain waveform of sound only represents the relationship of sound pressure change with time, and does not well represent the characteristics of sound. Therefore, it is necessary to express the volume characteristics by some volume indexes. In other embodiments, the preset volume index may also be other indexes, such as a mean square, a variance, and the like.
In one embodiment, the predetermined volume indicator has a root mean square volume value. The method further comprises the following steps: determining an audio maximum gain value corresponding to an audio file; when the RMS volume value does not meet the standard value adjustment condition, the RMS volume value is adjusted to the maximum audio gain value.
Gain (gain), which is the degree to which a component, circuit, device, or system increases in current, voltage, or power, is typically specified in decibels (dB). And the audio maximum gain value represents the maximum gain value of the audio file.
It can be understood that when the rms volume value does not meet the standard value adjustment condition, it indicates that the local volume of the audio file is too large, and at this time, if the rms volume value is forcibly adjusted, a problem may occur, so that when the rms volume value does not meet the standard value adjustment condition, the rms volume value is adjusted to the maximum audio gain value.
Fig. 6 is a flow of volume normalization in one embodiment. Referring to fig. 6, the RMS preset value analyzing module analyzes the volume standard values set corresponding to different sound effect types, and provides the volume standard values corresponding to the sound effect types of the audio file to the volume standardizing module, the volume standardizing module calculates the root mean square volume value and the maximum audio gain value of the audio file, and corrects the root mean square volume value of the audio file by referring to the volume standard values so as to standardize the root mean square volume value. For an audio file (namely, an audio file with a root mean square volume value meeting the standard value adjustment condition) which can complete volume standardization, standardizing the root mean square volume value to a corresponding volume standard value; for the audio file with overlarge local volume (namely, the audio file with the root mean square volume value not meeting the regulation condition of the standard value), the maximum gain value is used for standardization, and the game sound effect project can be modified to be marked for standardization. In addition, the lists of the processed and unprocessed audio files can be obtained through standardized processing inquiry, and for the audio files which are not subjected to standardized processing, after the audio files are imported into the game sound effect engineering files, standardized processing can still be carried out, so that omission is avoided.
In the embodiment, the volume standard value is configured to standardize the volume, so that manual adjustment is not needed, and the efficiency is improved. In addition, for audio files in different situations (an audio file capable of completing volume standardization and an audio file with overlarge local volume), a proper value can be determined in a self-adaptive mode to serve as a standardized value, and accuracy is improved.
In one embodiment, the sound effect structure description information is a file name of the audio file. In this embodiment, the analyzing the sound effect structure description information in step S204 to obtain the sound effect structure of the audio file includes: analyzing the sound effect type included in the file name according to a preset name specification; when the sound effect type is successfully analyzed, identifying the sound effect type and a random play index in the file name; and obtaining the sound effect structure of the sound effect file according to the identified sound effect type and the random play index, and setting corresponding random attributes according to the identified random play index.
It will be appreciated that the computer device may initialize the import list and the error list. And the import list comprises an audio file set in the sound effect engineering file to be imported. The error list includes a set of audio files that resolved errors. It should be noted that the initialized import list and the error list are empty sets. And slowly adding the corresponding audio files along with subsequent analysis judgment.
In particular, a computer device may obtain a list of audio files. The audio file list comprises one or more audio files which need to be imported into the sound effect engineering files after sound effect processing. The computer device may process the audio files in the list of audio files one by one. For each audio file, the computer device can analyze the file name according to the preset name specification and judge the sound effect type corresponding to the audio file. The addition of the resolution error to the error list. When the sound effect type is successfully analyzed, the sound effect type is identified. And judging whether the file name has the random play index, if the file name has the random play index, setting corresponding random attributes for the identified random play index. The computer equipment can obtain the sound effect structure of the sound effect file according to the recognized sound effect type and the random play index.
Further, the computer device may add the audio file to an import list. And after the audio detection items of the audio files in the import list are detected and standardized, the standardized audio files are obtained. The computer equipment can import the standardized audio file into the initial audio engineering file by modifying the audio engineering file or calling an import interface to obtain the audio engineering file, and converts the audio structure and corresponding attribute information of the audio files in the import list into the standard audio structure in the audio engineering file, thereby realizing the automatic import of the audio files.
In one embodiment, the method further comprises: when the identified sound effect type is a special sound effect, the grouping category is analyzed from the file name. In this embodiment, according to the recognized sound effect type and the random play index, the sound effect structure for obtaining the sound effect file includes: and obtaining the sound effect structure of the sound effect file according to the identified sound effect type, the random play index and the grouping category.
The special effect, namely SFX (Sound Effects, particularly the type of Sound effect related to game play). It will be appreciated that in gaming applications, trick sound effects refer to sound effects associated with play. In the embodiment, grouping is performed for the special effect sound effect, and therefore, when the sound effect type is the special effect sound effect, the file name includes the grouping category.
In one embodiment, the grouping categories include specific sound effects and generic sound effects. The specific sound effect refers to a specific sound effect of a special effect. The universal sound effect is the universal sound effect of some special effects. That is, some tricks can use the general sound effect in common.
In one embodiment, the preset naming convention is a level one naming convention. The method further comprises the following steps: when a second-level naming specification is set for the sound effect name in the first-level naming specification, the file name is analyzed according to the second-level naming specification, and corresponding sound effect attributes (such as sound effect playing attribute information) are set for the analysis result. In this embodiment, the sound effect structure for obtaining the sound effect file according to the identified sound effect type, the random play index, and the grouping category includes: and obtaining the sound effect structure of the sound effect file according to the identified sound effect type, the random play index, the grouping category and the analysis result.
It can be understood that when the rule template further sets rule constraint on the sound effect name in the primary naming specification, that is, when the secondary naming specification is set, the file name can be further analyzed according to the secondary naming specification, and corresponding sound effect attribute is set according to the analysis result. The computer equipment can obtain the sound effect structure of the sound effect file according to the identified sound effect type, the random play index, the grouping category and the analysis result.
Fig. 7 is a simplified flowchart of an embodiment of automatic audio import. Referring to fig. 7, an import list (ImpList) and an error list (errList) are initialized. When the audio file in the audio file list is not processed, analyzing the file name of the audio file to analyze the sound effect type included in the audio file, and when the sound effect type is analyzed successfully, identifying the sound effect type (sndType) and the random play index (randIndex). When the sound effect type is a special effect (SFX), the grouping category (groupStr) in the file name is parsed. If the rule template further provides constraint rules for sound effect names, a secondary naming specification is set. The computer equipment can analyze the file name according to the secondary naming specification, analyze the game type of the sound effect name in the file name, and set corresponding sound effect attributes according to the analysis result. It can be understood that according to the sound effect type, the random play index, the grouping category, the analysis result and the set sound effect attribute obtained by the analysis, the sound effect structure of the sound effect file can be obtained. The computer device may then add the audio file to the import list. After all the audio files in the audio file list are processed, the audio files in the import list can be imported into the game sound effect engineering file after audio detection and standardization processing are carried out on the audio files. And the sound effect structure is converted into a standard sound effect structure and is led into the game sound effect engineering file, and the set sound effect attribute can be converted into a related sound effect attribute in the game sound effect engineering file. A report may be output for the sound effect files in the error list.
In the above embodiment, through the one-level and two-level naming specifications that predetermine, the audio structure of audio file is analyzed out automatically to and obtain corresponding audio attribute, and need not manual operation, improved efficiency.
As shown in FIG. 8, in one embodiment, a sound effects processing apparatus 800 is provided, the apparatus 800 comprising: a parsing module 802, a detecting module 804, a normalization processing module 806, and an importing module 808, wherein:
the analysis module 802 is used for acquiring an audio file; and when the sound effect structure description information corresponding to the audio file accords with the preset specification, analyzing the sound effect structure description information to obtain the sound effect structure of the audio file.
The detecting module 804 is configured to detect the audio detection item of the audio file according to the configuration information of the audio detection item.
And a standardization processing module 806, configured to standardize the detected audio file according to preset standardization information to obtain a standardized audio file.
An importing module 808, configured to import the standardized audio file into the created initial sound effect engineering file to obtain a sound effect engineering file; and according to a preset conversion rule, converting the sound effect structure into a standard sound effect structure in the sound effect engineering file.
In one embodiment, the sound effect structure description information is a file name of the audio file; the preset specification is a preset naming specification. The parsing module 802 is further configured to select a preset naming convention corresponding to the sound effect type of the audio file from the rule template; the preset naming specification comprises a prefix name for defining the sound effect type; and when the file name of the audio file conforms to the preset name specification, analyzing the sound effect structure of the audio file from the file name.
As shown in FIG. 9, in one embodiment, the detection module 804 includes:
a creating unit 804a, configured to create a corresponding audio buffer queue for each channel included in the audio file;
the sound effect detection unit 804b is used for sending the audio data of each channel in the audio file to the audio buffer queue of the corresponding channel; for each audio detection item, acquiring channel audio data which accords with the length of an audio frame corresponding to the audio detection item from an audio buffer queue of a channel to be processed of the audio detection item; and detecting the audio data of the sound channel according to the configuration information of the audio detection item.
In one embodiment, the creating unit 804a is further configured to mount, corresponding to each audio buffer queue, each buffer block set according to the length of the audio frame corresponding to each audio detection item; the sound effect detection unit 804b is further configured to send channel audio data from an audio buffer queue of a channel to be processed of the audio detection item to a buffer block mounted on the audio buffer queue and having a length corresponding to the length of the audio frame until the buffer block reaches a data full state; and when the buffer block reaches a full data state, detecting the audio data of the sound channel cached in the buffer block according to the configuration information of the audio detection item.
In one embodiment, the creating unit 804a is further configured to mount, for each buffer block, an audio detection port that conforms to the length of the audio frame corresponding to the buffer block; the sound effect detection unit 804b is further configured to acquire the channel audio data cached in the buffer block through an audio detection port mounted in the buffer block, and detect the acquired channel audio data according to the configuration information of the audio detection item.
In one embodiment, the standardized information includes a volume standard value; the normalization processing module 806 is further configured to determine a value of a preset volume index corresponding to the audio file; and when the value of the preset volume index meets a standard value adjusting condition, adjusting the value of the preset volume index to the volume standard value.
In one embodiment, the sound effect structure description information is a file name of the audio file. The parsing module 802 is further configured to parse the sound effect type included in the file name according to a preset name specification; when the sound effect type is successfully analyzed, identifying the sound effect type and a random play index in the file name; and obtaining the sound effect structure of the sound effect file according to the identified sound effect type and the random play index, and setting corresponding random attributes aiming at the identified random play index.
In one embodiment, the parsing module 802 is further configured to parse out a packet class from the file name when the identified sound effect type is a special effect sound effect; and obtaining the sound effect structure of the sound effect file according to the identified sound effect type, the random play index and the grouping category.
FIG. 10 is a diagram showing an internal configuration of a computer device according to an embodiment. Referring to FIG. 10, the computer device may be the sound effect design device 110 shown in FIG. 1. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device may store an operating system and a computer program. The computer program, when executed, causes the processor to perform a sound processing method. The processor of the computer device is used for providing calculation and control capability and supporting the operation of the whole computer device. The internal memory stores a computer program, and the computer program, when executed by the processor, causes the processor to execute a sound effect processing method. The network interface of the computer device is used for network communication.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the sound effects processing apparatus provided in the present application may be implemented in the form of a computer program, the computer program may be run on a computer device as shown in fig. 10, and a non-volatile storage medium of the computer device may store various program modules constituting the sound effects processing apparatus, such as the parsing module 802, the detecting module 804, the normalization processing module 806 and the importing module 808 shown in fig. 8. The computer program composed of the program modules is used for making the computer device execute the steps in the sound effect processing method according to the embodiments of the present application described in the present specification, for example, the computer device may obtain an audio file through the parsing module 802 in the sound effect processing apparatus 800 shown in fig. 8; and when the sound effect structure description information corresponding to the audio file accords with the preset specification, analyzing the sound effect structure description information to obtain the sound effect structure of the audio file. The computer device may detect the audio detection item of the audio file according to the configuration information of the audio detection item through the detection module 804. The computer device can standardize the detected audio file through the standardization processing module 806 according to the preset standardization information to obtain a standardized audio file. The computer equipment can import the standardized audio file to the created initial sound effect engineering file through an import module 808 to obtain a sound effect engineering file; and according to a preset conversion rule, converting the sound effect structure into a standard sound effect structure in the sound effect engineering file.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the sound effect processing method described above. The steps of the sound effect processing method herein may be the steps in the sound effect processing methods of the above embodiments.
In one embodiment, a computer readable storage medium is provided, storing a computer program, which when executed by a processor, causes the processor to perform the steps of the sound effect processing method described above. The steps of the sound effect processing method herein may be the steps in the sound effect processing methods of the above embodiments.
It should be understood that although the steps in the embodiments of the present application are not necessarily performed in the order indicated by the step numbers. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in various embodiments may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the sub-steps or stages of other steps.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (18)

1. A sound effect processing method, the method comprising:
acquiring an audio file;
when the sound effect structure description information corresponding to the audio file conforms to a preset specification, analyzing the sound effect structure description information to obtain a sound effect structure of the audio file; the sound effect structure description information is information for describing the sound effect structure of the audio file; the sound effect structure is an organization form of sound effects and is used for analyzing and playing the sound effects;
detecting the audio detection items of the audio file according to the configuration information of the audio detection items;
according to preset standardization information, standardizing the audio files passing the detection to obtain standardized audio files;
importing the standardized audio file to the created initial sound effect engineering file to obtain a sound effect engineering file;
and according to a preset conversion rule, converting the sound effect structure into a standard sound effect structure in the sound effect engineering file.
2. The method according to claim 1, wherein the sound effect structure description information is a file name of the audio file; the preset specification is a preset naming specification;
when the sound effect structure description information corresponding to the audio file accords with the preset specification, the sound effect structure description information is analyzed, and the sound effect structure of the audio file is obtained, wherein the sound effect structure comprises the following steps:
selecting a preset naming specification corresponding to the sound effect type of the audio file from a rule template; the preset naming specification comprises a prefix name for defining the sound effect type;
and when the file name of the audio file conforms to the preset name specification, analyzing the sound effect structure of the audio file from the file name.
3. The method of claim 1, wherein the detecting the audio detection item of the audio file according to the configuration information of the audio detection item comprises:
creating a respective audio buffer queue for each channel comprised by the audio file;
sending the audio data of each sound channel in the audio file to an audio buffer queue of the corresponding sound channel;
for each audio detection item, acquiring channel audio data which accords with the length of an audio frame corresponding to the audio detection item from an audio buffer queue of a channel to be processed of the audio detection item;
and detecting the audio data of the sound channel according to the configuration information of the audio detection item.
4. The method of claim 3, further comprising:
corresponding to each audio buffer queue, mounting each buffer block set according to the length of the audio frame corresponding to each audio detection item;
the acquiring, from the audio buffer queue of the channel to be processed of the audio detection item, the channel audio data that conforms to the length of the audio frame corresponding to the audio detection item includes:
sending the audio data of the audio channel to a buffer block which is mounted on the audio buffer queue and corresponds to the length of the audio frame from the audio buffer queue of the audio detection item to be processed until the buffer block reaches a data full state;
the detecting the channel audio data according to the configuration information of the audio detection item includes:
and when the buffer block reaches a full data state, detecting the audio data of the sound channel cached in the buffer block according to the configuration information of the audio detection item.
5. The method of claim 4, further comprising:
mounting an audio detection port which accords with the length of an audio frame corresponding to each buffer block;
the detecting the channel audio data cached in the buffer block according to the configuration information of the audio detection item includes:
and acquiring the channel audio data cached in the buffer block through an audio detection port mounted on the buffer block, and detecting the acquired channel audio data according to the configuration information of the audio detection item.
6. The method of claim 1, wherein the standardized information comprises a volume standard value; the step of standardizing the audio file passing the detection according to the preset standardized information to obtain the standardized audio file comprises the following steps:
determining a value of a preset volume index corresponding to the audio file;
and when the value of the preset volume index meets a standard value adjusting condition, adjusting the value of the preset volume index to the volume standard value.
7. The method according to claim 1, wherein the sound effect structure description information is a file name of the audio file; the analyzing the sound effect structure description information to obtain the sound effect structure of the audio file comprises the following steps:
analyzing the sound effect type included in the file name according to a preset name specification;
when the sound effect type is successfully analyzed, identifying the sound effect type and a random play index in the file name;
and obtaining the sound effect structure of the sound effect file according to the identified sound effect type and the random play index, and setting corresponding random attributes aiming at the identified random play index.
8. The method of claim 7, further comprising:
when the recognized sound effect type is a special sound effect, analyzing the grouping category from the file name;
the sound effect structure for obtaining the sound effect file according to the recognized sound effect type and the random play index comprises the following steps:
and obtaining the sound effect structure of the sound effect file according to the identified sound effect type, the random play index and the grouping category.
9. An audio processing apparatus, comprising:
the analysis module is used for acquiring an audio file; when the sound effect structure description information corresponding to the audio file conforms to a preset specification, analyzing the sound effect structure description information to obtain a sound effect structure of the audio file; the sound effect structure description information is information for describing the sound effect structure of the audio file; the sound effect structure is an organization form of sound effects and is used for analyzing and playing the sound effects;
the detection module is used for detecting the audio detection items of the audio file according to the configuration information of the audio detection items;
the standardized processing module is used for standardizing the audio files passing the detection according to preset standardized information to obtain standardized audio files;
the import module is used for importing the standardized audio file into the created initial sound effect engineering file to obtain a sound effect engineering file; and according to a preset conversion rule, converting the sound effect structure into a standard sound effect structure in the sound effect engineering file.
10. The apparatus of claim 9, wherein the sound-effect structure description information is a file name of the audio file; the preset specification is a preset naming specification; the analysis module is also used for selecting a preset naming standard corresponding to the sound effect type of the audio file from a rule template; the preset naming specification comprises a prefix name for defining the sound effect type; and when the file name of the audio file conforms to the preset name specification, analyzing the sound effect structure of the audio file from the file name.
11. The apparatus of claim 9, wherein the detection module comprises:
a creating unit, configured to create a corresponding audio buffer queue for each channel included in the audio file;
the sound effect detection unit is used for sending the audio data of each sound channel in the audio file to an audio buffer queue of the corresponding sound channel; for each audio detection item, acquiring channel audio data which accords with the length of an audio frame corresponding to the audio detection item from an audio buffer queue of a channel to be processed of the audio detection item; and detecting the audio data of the sound channel according to the configuration information of the audio detection item.
12. The apparatus according to claim 11, wherein the creating unit is further configured to mount, corresponding to each audio buffer queue, each buffer block set according to the audio frame length corresponding to each audio detection item; the sound effect detection unit is also used for sending sound channel audio data to a buffer block which is mounted on the audio buffer queue and has a length corresponding to the length of the audio frame from the audio buffer queue of the sound channel to be processed of the audio detection item until the buffer block reaches a data full state; the detecting the channel audio data according to the configuration information of the audio detection item includes: and when the buffer block reaches a full data state, detecting the audio data of the sound channel cached in the buffer block according to the configuration information of the audio detection item.
13. The apparatus according to claim 12, wherein the creating unit is further configured to mount, for each buffer block, an audio detection port that corresponds to a length of a corresponding audio frame of the buffer block; the sound effect detection unit is further used for acquiring the channel audio data cached in the buffer block through an audio detection port mounted on the buffer block, and detecting the acquired channel audio data according to the configuration information of the audio detection item.
14. The apparatus of claim 9, wherein the standardized information comprises a volume standard value; the standardization processing module is also used for determining the value of a preset volume index corresponding to the audio file; and when the value of the preset volume index meets a standard value adjusting condition, adjusting the value of the preset volume index to the volume standard value.
15. The apparatus of claim 9, wherein the sound-effect structure description information is a file name of the audio file; the analysis module is also used for analyzing the sound effect type included in the file name according to a preset name specification; when the sound effect type is successfully analyzed, identifying the sound effect type and a random play index in the file name; and obtaining the sound effect structure of the sound effect file according to the identified sound effect type and the random play index, and setting corresponding random attributes aiming at the identified random play index.
16. The apparatus according to claim 15, wherein the parsing module is further configured to parse a packet class from the file name when the identified sound effect type is a special effect sound effect; and obtaining the sound effect structure of the sound effect file according to the identified sound effect type, the random play index and the grouping category.
17. A computer arrangement comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the method of any one of claims 1 to 8.
18. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, causes the processor to carry out the steps of the method of any one of claims 1 to 8.
CN201910091147.9A 2019-01-30 2019-01-30 Sound effect processing method and device and computer equipment Active CN109830243B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910091147.9A CN109830243B (en) 2019-01-30 2019-01-30 Sound effect processing method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910091147.9A CN109830243B (en) 2019-01-30 2019-01-30 Sound effect processing method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN109830243A CN109830243A (en) 2019-05-31
CN109830243B true CN109830243B (en) 2021-01-12

Family

ID=66863018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910091147.9A Active CN109830243B (en) 2019-01-30 2019-01-30 Sound effect processing method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN109830243B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542976B (en) * 2021-07-15 2023-05-16 北京小米移动软件有限公司 Control method, device and readable storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102208208A (en) * 2010-04-12 2011-10-05 佛山市智邦电子科技有限公司 Lossless audio playing method and audio player
CN103927146A (en) * 2014-04-30 2014-07-16 深圳市中兴移动通信有限公司 Sound effect self-adapting method and device
CN104113777A (en) * 2014-08-01 2014-10-22 广州金山网络科技有限公司 Audio stream decoding method and device
CN104299619A (en) * 2014-09-29 2015-01-21 广东欧珀移动通信有限公司 Method and device for processing audio file
CN104822001A (en) * 2015-04-23 2015-08-05 腾讯科技(深圳)有限公司 Echo cancellation data synchronization control method and device
CN104934048A (en) * 2015-06-24 2015-09-23 小米科技有限责任公司 Sound effect regulation method and device
CN106790498A (en) * 2016-12-15 2017-05-31 深圳市金溢科技股份有限公司 Vehicle-mounted voice intercommunication method, V2X car-mounted terminals and voice inter-speaking system
CN107105096A (en) * 2017-04-28 2017-08-29 努比亚技术有限公司 A kind of audio-frequency processing method, terminal and storage medium
CN107943447A (en) * 2017-10-16 2018-04-20 深圳市艾特智能科技有限公司 Method for playing music, system, readable storage medium storing program for executing and intelligent terminal
CN107978321A (en) * 2017-11-29 2018-05-01 广州酷狗计算机科技有限公司 Audio-frequency processing method and device
CN108320729A (en) * 2018-01-29 2018-07-24 珠海金山网络游戏科技有限公司 A kind of method and apparatus of efficient debugging game music audio
CN109257493A (en) * 2018-09-15 2019-01-22 深圳市创成微电子有限公司 A kind of apparatus for processing audio control system based on APP

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4649888B2 (en) * 2004-06-24 2011-03-16 ヤマハ株式会社 Voice effect imparting device and voice effect imparting program

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102208208A (en) * 2010-04-12 2011-10-05 佛山市智邦电子科技有限公司 Lossless audio playing method and audio player
CN103927146A (en) * 2014-04-30 2014-07-16 深圳市中兴移动通信有限公司 Sound effect self-adapting method and device
CN104113777A (en) * 2014-08-01 2014-10-22 广州金山网络科技有限公司 Audio stream decoding method and device
CN104299619A (en) * 2014-09-29 2015-01-21 广东欧珀移动通信有限公司 Method and device for processing audio file
CN104822001A (en) * 2015-04-23 2015-08-05 腾讯科技(深圳)有限公司 Echo cancellation data synchronization control method and device
CN104934048A (en) * 2015-06-24 2015-09-23 小米科技有限责任公司 Sound effect regulation method and device
CN106790498A (en) * 2016-12-15 2017-05-31 深圳市金溢科技股份有限公司 Vehicle-mounted voice intercommunication method, V2X car-mounted terminals and voice inter-speaking system
CN107105096A (en) * 2017-04-28 2017-08-29 努比亚技术有限公司 A kind of audio-frequency processing method, terminal and storage medium
CN107943447A (en) * 2017-10-16 2018-04-20 深圳市艾特智能科技有限公司 Method for playing music, system, readable storage medium storing program for executing and intelligent terminal
CN107978321A (en) * 2017-11-29 2018-05-01 广州酷狗计算机科技有限公司 Audio-frequency processing method and device
CN108320729A (en) * 2018-01-29 2018-07-24 珠海金山网络游戏科技有限公司 A kind of method and apparatus of efficient debugging game music audio
CN109257493A (en) * 2018-09-15 2019-01-22 深圳市创成微电子有限公司 A kind of apparatus for processing audio control system based on APP

Also Published As

Publication number Publication date
CN109830243A (en) 2019-05-31

Similar Documents

Publication Publication Date Title
US20210280200A1 (en) Adaptive processing with multiple media processing nodes
WO2021135604A1 (en) Voice control method and apparatus, server, terminal device, and storage medium
TR201808580T4 (en) Audio encoder and decoder with program information or downstream metadata.
CN112702659B (en) Video subtitle processing method and device, electronic equipment and readable storage medium
US8868419B2 (en) Generalizing text content summary from speech content
CN111679979A (en) Destructive testing method and device
CN109830243B (en) Sound effect processing method and device and computer equipment
KR102030551B1 (en) Instant messenger driving apparatus and operating method thereof
US20090112597A1 (en) Predicting a resultant attribute of a text file before it has been converted into an audio file
CN111736795A (en) Audio processing method, device, equipment and storage medium
CN116170632A (en) Sound compensation method and device
US8959088B2 (en) Log management method, log management system, and information processing apparatus
CN113111200B (en) Method, device, electronic equipment and storage medium for auditing picture files
EP1632932A1 (en) Voice response system, voice response method, voice server, voice file processing method, program and recording medium
CN111432060B (en) Method and device for testing mobile phone audio module and storage medium
CN114420093A (en) Method and system for synchronously regulating volume and vibration intensity
CN113590871A (en) Audio classification method and device and computer readable storage medium
CN113852835A (en) Live broadcast audio processing method and device, electronic equipment and storage medium
CN113595811A (en) Equipment performance testing method and device, storage medium and electronic device
CN113392234A (en) Multimedia file processing method, device, equipment and medium
CN113593568B (en) Method, system, device, equipment and storage medium for converting voice into text
CN111028860A (en) Audio data processing method and device, computer equipment and storage medium
CN116798433A (en) Voice recognition testing method, device, system and storage medium
CN117992258B (en) IM card message circulation method, electronic equipment and readable storage medium
CN112634857B (en) Speech synthesis method, device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant