Sound effect adjusting method and device, electronic equipment and storage medium
By determining the target sound effect configuration information from the sound effect mapping chain and configuring the sound effect device, the problem in the existing technology that the sound effect of the PCM audio to be processed cannot be independently debugged is solved, and the user experience is improved.
Patent Information
- Application Number
- CN202311533521.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-16
- Publication Date
- 2024-09-17
AI Technical Summary
The existing sound effect adjustment method uses the alsa framework that is strongly coupled with the pcm interface, and cannot independently call the sound effect algorithm to debug the sound effect of the audio to be processed, which affects the user experience.
By obtaining the sound effect adjustment information, including the PCM audio to be processed and the sound effect demand information, the target sound effect configuration information is determined from the preset sound effect mapping chain, the target sound effect device is configured, and the configured target sound effect device is used to adjust the sound effect of the PCM audio to be processed. Implement sound effect adjustment.
The sound effect algorithm can be called separately to debug the sound effect of the PCM audio to be processed. Compared with the solution under the alsa framework that must be played or recorded at the same time, the user experience is improved.
Smart Images

Figure CN118656047A
Abstract
Description
Technical Field
[0001] The present application relates to, but is not limited to, the field of computer technology, and in particular to a sound effect adjustment method, device, electronic device, and storage medium. Background Art
[0002] The existing sound effect adjustment method mainly uses the ALSA framework, which is strongly coupled with the PCM interface, to adjust the sound effects of the audio to be debugged. Since the ALSA framework is an integrated system, when using the ALSA framework to adjust the sound effects of the audio to be processed, the processed audio must be played or recorded at the same time. It is impossible to call the sound effect algorithm separately to debug the sound effects of the audio to be processed, which affects the user experience. Summary of the invention
[0003] The embodiments of the present application provide a sound effect adjustment method, device, electronic device, and storage medium, which can effectively improve the user experience of sound effect adjustment.
[0004] In a first aspect, an embodiment of the present application provides a sound effect adjustment method, which is applied to a sound effect adjustment device, and the method includes:
[0005] Acquire sound effect adjustment information, wherein the sound effect adjustment information includes the PCM audio to be processed and the sound effect requirement information;
[0006] Determining target sound effect configuration information corresponding to the sound effect requirement information from a preset sound effect mapping chain, wherein the sound effect mapping chain represents a mapping relationship between the sound effect configuration information, the sound effect algorithm, and the sound effect device information;
[0007] Determine a target sound effect device associated with the target sound effect configuration information, configure the target sound effect device according to the target sound effect configuration information, and use the configured target sound effect device to adjust the sound effect of the PCM audio to be processed to obtain a target sound effect adjustment result.
[0008] In some embodiments, the sound effect requirement information includes a target sound effect identifier, the sound effect mapping chain includes multiple sound effect device information, each of the sound effect device information is associated with multiple sound effect algorithms, each of the sound effect algorithms is preset with a candidate sound effect identifier and multiple sound effect configuration information, and determining the target sound effect configuration information corresponding to the sound effect requirement information from the preset sound effect mapping chain includes:
[0009] Traversing each of the sound effect algorithms associated with each of the sound effect device information, and selecting the target sound effect identifier from each of the candidate sound effect identifiers;
[0010] The sound effect configuration information corresponding to the target sound effect identifier is determined as the target sound effect configuration information.
[0011] In some embodiments, the sound effect mapping chain is obtained according to the following steps:
[0012] Acquire a sound effect device description file and a sound effect algorithm, wherein the sound effect device description file includes the sound effect device information corresponding to the sound effect requirement information, and the sound effect algorithm is preset with sound effect configuration information for configuring the sound effect device corresponding to different sound effect requirement information;
[0013] The sound effect mapping chain is constructed according to the sound effect device description file and the sound effect configuration information.
[0014] In some embodiments, the step of selecting the target sound effect identifier from each of the candidate sound effect identifiers includes:
[0015] Determine the algorithm type of the sound effect algorithm corresponding to each of the candidate sound effect identifiers;
[0016] The hardware sound effect identifier is filtered from all the candidate sound effect identifiers, and the target sound effect identifier is selected from the remaining candidate sound effect identifiers, wherein the algorithm type of the sound effect algorithm corresponding to the hardware sound effect identifier is a hardware algorithm type, and the algorithm type of the sound effect algorithm corresponding to the target sound effect identifier is a software algorithm type.
[0017] In some embodiments, the sound effect adjustment device is communicatively connected to a host computer, the host computer is provided with a graphical parameter adjustment interface, the sound effect adjustment device is provided with a sound effect parameter adjustment API, and the method further comprises:
[0018] In response to an editing operation on the graphical parameter adjustment interface, the host computer generates first parameter adjustment requirement information, the first parameter adjustment requirement information including new sound effect configuration information and target sound effect device information, and sends the new sound effect configuration information and the target sound effect device information to the sound effect parameter adjustment API;
[0019] The sound effect parameter adjustment API traverses each of the sound effect algorithms associated with each of the sound effect device information, and determines the initial sound effect configuration information corresponding to the target sound effect device information;
[0020] When the sound effect parameter adjustment API is currently in the non-pcm audio processing stage, the new sound effect configuration information replaces the initial sound effect configuration information.
[0021] In some embodiments, the method further comprises:
[0022] Acquire second parameter adjustment requirement information, where the second parameter adjustment requirement information includes new sound effect configuration information, target sound effect device information, and target parameter adjustment path;
[0023] Acquire the initial sound effect configuration information corresponding to the target sound effect device information according to the target parameter adjustment path;
[0024] When the sound effect parameter adjustment API is currently in the non-pcm audio processing stage, the new sound effect configuration information replaces the initial sound effect configuration information.
[0025] In a second aspect, an embodiment of the present application provides a sound effect adjustment device, comprising:
[0026] A first data acquisition module is used to acquire sound effect adjustment information, wherein the sound effect adjustment information includes the PCM audio to be processed and the sound effect requirement information;
[0027] A second data acquisition module is used to determine target sound effect configuration information corresponding to the sound effect requirement information from a preset sound effect mapping chain, wherein the sound effect mapping chain represents a mapping relationship between the sound effect configuration information, the sound effect algorithm, and the sound effect device information;
[0028] The data processing module is used to determine the target sound effect device associated with the target sound effect configuration information, configure the target sound effect device according to the target sound effect configuration information, and use the configured target sound effect device to adjust the sound effect of the PCM audio to be processed to obtain the target sound effect adjustment result.
[0029] In some embodiments, the sound effect requirement information includes a target sound effect identifier, the sound effect mapping chain includes a plurality of sound effect device information, each of the sound effect device information is associated with a plurality of sound effect algorithms, each of the sound effect algorithms is preset with a candidate sound effect identifier and a plurality of sound effect configuration information, and the second data acquisition module further includes:
[0030] A target sound effect identifier selection module, used to traverse each of the sound effect algorithms associated with each of the sound effect device information, and select the target sound effect identifier from each of the candidate sound effect identifiers;
[0031] The target sound effect configuration information determination module is used to determine the sound effect configuration information corresponding to the target sound effect identifier as the target sound effect configuration information.
[0032] In a third aspect, an embodiment of the present application provides an electronic device comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the sound effect adjustment method described in the first aspect.
[0033] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the sound effect adjustment method as described in the first aspect.
[0034] The present application provides a method, device, electronic device, and storage medium for adjusting sound effects, the method comprising: obtaining sound effect adjustment information, the sound effect adjustment information comprising PCM audio to be processed and sound effect requirement information; determining target sound effect configuration information corresponding to the sound effect requirement information from a preset sound effect mapping chain, the sound effect mapping chain representing the mapping relationship between the sound effect configuration information, the sound effect algorithm, and the sound effect device information; determining the target sound effect device associated with the target sound effect configuration information, configuring the target sound effect device according to the target sound effect configuration information, and adjusting the sound effect of the PCM audio to be processed using the configured target sound effect device to obtain a target sound effect adjustment result. According to the scheme provided by the embodiment of the present application, the sound effect algorithm set as a plug-in in the sound effect mapping chain, and its associated sound effect device information and sound effect configuration information can be traversed to determine the target sound effect algorithm to debug the sound effect of the PCM audio to be processed. Compared with the scheme under the ALSA framework in which the processed audio must be played or the processed audio must be recorded at the same time when debugging the sound effect, the sound effect algorithm can be called separately to debug the sound effect of the PCM audio to be processed, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 is a flowchart of the steps of a sound effect adjustment method provided by an embodiment of the present application;
[0036] Figure 2 is a flowchart of steps for determining target sound effect configuration information provided by another embodiment of the present application;
[0037] Figure 3 is a flowchart of the steps of constructing a sound effect mapping chain provided by another embodiment of the present application;
[0038] Figure 4 is a flowchart of steps for selecting a target sound effect identifier provided by another embodiment of the present application;
[0039] Figure 5 is a flowchart of the steps of adjusting parameters of a sound effect adjustment device provided by another embodiment of the present application;
[0040] Figure 6 is a flowchart of the steps of adjusting parameters of a sound effect adjustment device provided by another embodiment of the present application;
[0041] Figure 7 is a module schematic diagram of a sound effect adjustment device provided by another embodiment of the present application;
[0042] Figure 8 is a structural diagram of an electronic device provided by another embodiment of the present application;
[0043] Fig. 9 It is a schematic diagram of a sound effect mapping chain provided by another embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] It is understood that although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flow chart. The terms "first", "second", etc. in the specification, claims or the above drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0046] The existing sound effect adjustment method mainly uses the ALSA framework, which is strongly coupled with the PCM interface, to adjust the sound effects of the audio to be debugged. Since the ALSA framework is an integrated system, when using the ALSA framework to adjust the sound effects of the audio to be processed, the processed audio must be played or recorded at the same time. It is impossible to call the sound effect algorithm separately to debug the sound effects of the audio to be processed, which affects the user experience.
[0047] To solve the above-mentioned problems, the embodiments of the present application provide a sound effect adjustment method, device, electronic device, and storage medium, the method comprising: obtaining sound effect adjustment information, the sound effect adjustment information comprising PCM audio to be processed and sound effect requirement information; determining target sound effect configuration information corresponding to the sound effect requirement information from a preset sound effect mapping chain, the sound effect mapping chain representing the mapping relationship between sound effect configuration information, sound effect algorithm, and sound effect device information; determining a target sound effect device associated with the target sound effect configuration information, configuring the target sound effect device according to the target sound effect configuration information, and using the configured target sound effect device to adjust the sound effect of the PCM audio to be processed to obtain a target sound effect adjustment result. According to the solution provided in the embodiment of the present application, the sound effect algorithm set in the plug-in in the sound effect mapping chain and its associated sound effect device information and sound effect configuration information can be traversed to determine the target sound effect algorithm to debug the sound effect of the PCM audio to be processed. Compared with the solution under the ALSA framework that requires playing the processed audio or recording the processed audio at the same time when debugging the sound effect, the sound effect algorithm can be called separately to debug the sound effect of the PCM audio to be processed, thereby improving the user experience.
[0048] The embodiments of the present application are further described below in conjunction with the accompanying drawings.
[0049] refer to Figure 1 , Figure 1Yes, the embodiment of the present application provides a sound effect adjustment method, which is applied to a sound effect adjustment device, and the method includes but is not limited to the following steps:
[0050] Step S110, obtaining sound effect adjustment information, where the sound effect adjustment information includes the PCM audio to be processed and sound effect requirement information;
[0051] Step S120, determining target sound effect configuration information corresponding to the sound effect requirement information from a preset sound effect mapping chain, where the sound effect mapping chain represents a mapping relationship between the sound effect configuration information, the sound effect algorithm, and the sound effect device information;
[0052] Step S130, determining the target sound effect device associated with the target sound effect configuration information, configuring the target sound effect device according to the target sound effect configuration information, and using the configured target sound effect device to adjust the sound effect of the PCM audio to be processed to obtain a target sound effect adjustment result.
[0053] It can be understood that the sound effect adjustment information of this embodiment includes the unprocessed PCM audio that needs to be debugged and the corresponding sound effect requirement information. The sound effect adjustment device is preset with a sound effect mapping chain, which characterizes the mapping relationship between the sound effect configuration information, the sound effect algorithm and the sound effect device information. The sound effect configuration information indicates the corresponding sound effect device information of the sound effect device that needs to be adjusted for different sound effect requirements, as well as the specific parameters required for adjusting the sound effect device. It should be noted that this embodiment does not limit the specific content of the sound effect configuration information, and may include a target frequency response curve corresponding to the sound effect requirement information, and the target frequency response curve can be used to adjust each frequency point in the equalizer of the target audio device.
[0054] It can be understood that when the sound effect adjustment information is obtained, the target sound effect configuration information corresponding to the sound effect requirement information is obtained from the preset sound effect mapping chain, the target sound effect device associated with the target sound effect configuration information is determined, the corresponding sound effect algorithm is initialized according to the target sound effect configuration information, and the target sound effect device is configured using the target sound effect configuration information, and the configured target sound effect device is used to adjust the sound effect of the PCM audio to be processed to obtain the target sound effect adjustment result. The sound effect algorithm set as a plug-in in the sound effect mapping chain, and its associated sound effect device information and sound effect configuration information can be traversed to determine the target sound effect algorithm to debug the sound effect of the PCM audio to be processed. Compared with the solution under the ALSA framework that requires playing the processed audio or recording the processed audio at the same time to debug the sound effect, the target sound effect algorithm in the sound effect mapping chain can be called separately to debug the sound effect of the PCM audio to be processed, thereby improving the user experience.
[0055] It should be noted that the target sound effect adjustment result of this embodiment includes the PCM audio after the sound effect processing is completed. The solution of this embodiment may also include saving the PCM audio after the sound effect processing in a local file format according to one or more sound effect algorithms corresponding to the target sound effect adjustment result.
[0056] In addition, in some embodiments, the sound effect requirement information includes a target sound effect identifier, the sound effect mapping chain includes multiple sound effect device information, each sound effect device information is associated with multiple sound effect algorithms, each sound effect algorithm is preset with a candidate sound effect identifier and multiple sound effect configuration information, refer to Figure 2 , Figure 1 Step S120 includes but is not limited to the following steps:
[0057] Step S210, traversing each sound effect algorithm associated with each sound effect device information, and selecting a target sound effect identifier from each candidate sound effect identifier;
[0058] Step S220: determine the sound effect configuration information corresponding to the target sound effect identifier as the target sound effect configuration information.
[0059] It can be understood that the sound effect mapping chain of this embodiment includes multiple sound effect device information, each sound effect device information is associated with multiple sound effect algorithms, each sound effect algorithm is preset with a candidate sound effect identifier and multiple sound effect configuration information, and the candidate music identifiers corresponding to different sound effect algorithms are used to indicate the identification information for implementing different sound effects. This embodiment does not limit the specific number of target sound effect identifiers corresponding to the sound effect demand information, and the target sound effect identifier may include multiple sound effect identifiers.
[0060] It can be understood that, referring to the description of the above embodiment, the sound effect configuration information is used to indicate the corresponding sound effect device information of the sound effect device that needs to be adjusted for different sound effect requirements, as well as the specific parameters required for adjusting the sound effect device. Then there is an associated mapping relationship between the sound effect configuration information and the sound effect algorithm and the sound effect device information. Based on the sound effect mapping chain of this embodiment, the embodiment of the present application realizes the provision of one or more sound effect algorithm support for different sound effect devices. By traversing each sound effect algorithm associated with each sound effect device information, and the sound effect configuration information corresponding to the sound effect algorithm, a sound effect identifier that is the same as the target sound effect identifier is selected from each candidate sound effect identifier as the target sound effect identifier, and the sound effect configuration information that has a mapping relationship with the target sound effect identifier is determined as the target sound effect configuration information. At this point, the sound effect configuration information used to adjust the sound effect of the PCM audio to be processed can be obtained, providing an effective data basis for subsequently obtaining the target sound effect adjustment result.
[0061] In addition, refer to Figure 3 and Fig. 9 In some embodiments, the steps of constructing the sound effect mapping chain include but are not limited to the following steps:
[0062] Step S310, obtaining a sound effect device description file and a sound effect algorithm, wherein the sound effect device description file includes sound effect device information corresponding to the sound effect requirement information, and the sound effect algorithm is preset with sound effect configuration information for configuring sound effect devices corresponding to different sound effect requirement information;
[0063] Step S320: construct a sound effect mapping chain according to the sound effect device description file and the sound effect configuration information.
[0064] It should be noted that the sound effect device description file of this embodiment describes all the sound effect device information supported by the sound effect adjustment device and the sound effect algorithm combination corresponding to different sound effect devices in a preset format; each sound effect algorithm in the sound effect algorithm combination is stored in a sound effect algorithm pool, and the sound effect configuration information preset for each sound effect algorithm describes the configuration parameters corresponding to the sound effect device when using different sound effect devices to adjust the sound effects in a preset format. Therefore, by obtaining and parsing the sound effect device description file, it is possible to obtain the sound effect device information corresponding to the sound effect devices supported by all the sound effect adjustment devices, and establish a sound effect device pool such as Fig. 9 The sound effect chain corresponding to each sound effect device information shown in the figure is established by parsing the sound effect configuration information corresponding to the sound effect algorithm in each sound effect chain, and then the sound effect chain, the sound effect algorithm parameter chain and the sound effect device information are associated with each other to construct the following Fig. 9 The sound effect mapping chain shown provides an effective data basis for subsequently obtaining target information for adjusting the sound effects of the PCM audio to be processed.
[0065] In addition, refer to Figure 4 , in some embodiments, Figure 2 Step S210 includes but is not limited to the following steps:
[0066] Step S410, determining the algorithm type of the sound effect algorithm corresponding to each candidate sound effect identifier;
[0067] Step S420, filtering the hardware sound effect identifier from all the candidate sound effect identifiers, and selecting the target sound effect identifier from the remaining candidate sound effect identifiers, wherein the algorithm type of the sound effect algorithm corresponding to the hardware sound effect identifier is a hardware algorithm type, and the algorithm type of the sound effect algorithm corresponding to the target sound effect identifier is a software algorithm type.
[0068] It can be understood that the sound effect algorithm preset in the sound effect adjustment device of this embodiment includes two types, one is a software algorithm type that uses software code to run calculations on the CPU, and the other refers to a hardware algorithm type that integrates the software sound effect algorithm into the IC chip. The hardware algorithm type requires read and write control through registers, and the PCM audio to be processed requires a sound effect algorithm of the software algorithm type to be processed. Therefore, in the process of selecting the target sound effect configuration information, the sound effect algorithm needs to be screened, and the algorithm type of the sound effect algorithm corresponding to each candidate sound effect identifier is determined, and the hardware sound effect identifier is filtered out from all the candidate sound effect identifiers, and the target sound effect identifier is selected from the remaining candidate sound effect identifiers, wherein the algorithm type of the sound effect algorithm corresponding to the hardware sound effect identifier is a hardware algorithm type, and the algorithm type of the sound effect algorithm corresponding to the target sound effect identifier is a software algorithm type, thereby filtering out the sound effect algorithm corresponding to the hardware algorithm type, and ensuring that the obtained target sound effect configuration information is a sound effect algorithm corresponding to the software algorithm type.
[0069] In addition, in some embodiments, the sound effect adjustment device is connected to the host computer in communication, the host computer is provided with a graphical parameter adjustment interface, and the sound effect adjustment device is provided with a sound effect parameter adjustment API, refer to Figure 5 The sound effect adjustment method of this embodiment also includes but is not limited to the following steps:
[0070] Step S510, in response to the editing operation on the graphical parameter adjustment interface, the host computer generates first parameter adjustment requirement information, the first parameter adjustment requirement information includes new sound effect configuration information and target sound effect device information, and sends the new sound effect configuration information and target sound effect device information to the sound effect parameter adjustment API;
[0071] Step S520, the sound effect parameter adjustment API traverses each sound effect algorithm associated with each sound effect device information, and determines the initial sound effect configuration information corresponding to the target sound effect device information;
[0072] Step S530, when the sound effect parameter adjustment API is currently in the non-pcm audio processing stage, the new sound effect configuration information replaces the initial sound effect configuration information.
[0073] In addition, refer to Figure 6 In some embodiments, the sound effect adjustment method of this embodiment further includes but is not limited to the following steps:
[0074] Step S610, obtaining second parameter adjustment requirement information, where the second parameter adjustment requirement information includes new sound effect configuration information, target sound effect device information, and target parameter adjustment path;
[0075] Step S620, obtaining initial sound effect configuration information corresponding to the target sound effect device information according to the target parameter adjustment path;
[0076] Step S630: When the sound effect parameter adjustment API is currently in the non-pcm audio processing stage, the new sound effect configuration information replaces the initial sound effect configuration information.
[0077] It is understandable that because the sound effect configuration information is used to configure the processing method of the PCM audio to be processed, the sound effect configuration information cannot be updated when the PCM audio processing stage is in progress. Otherwise, different fields in the same PCM audio to be processed will be processed by different sound effect configuration information, which will cause abnormal processing process and processing results. Therefore, the sound effect configuration information can only be updated in the non-PCM audio processing stage.
[0078] It should be noted that this embodiment does not limit the time period for obtaining the first parameter adjustment requirement information or the second parameter adjustment requirement information, that is, it does not limit the time period for parameter adjustment, it can be real-time parameter adjustment or periodic parameter adjustment. In the case of periodic parameter adjustment, the specific time interval is not limited, it can be 15 days, 7 days, etc., as long as the parameter adjustment operation is carried out in the non-PCM audio processing stage.
[0079] It should be noted that the present embodiment does not limit the specific method of adjusting parameters. The parameters may be adjusted by sending the first parameter adjustment requirement information through the host computer. Specifically, the sound effect adjustment device of the present embodiment is communicatively connected with the host computer. The host computer is provided with a graphical parameter adjustment interface. The sound effect adjustment device is provided with a sound effect parameter adjustment API. Based on this structure, in response to the editing operation of the graphical parameter adjustment interface, the host computer generates the first parameter adjustment requirement information. The first parameter adjustment requirement information includes new sound effect configuration information and target sound effect device information, and sends the new sound effect configuration information and the target sound effect device information to the sound effect parameter adjustment API. The sound effect parameter adjustment API traverses each sound effect algorithm associated with each sound effect device information in the sound effect mapping chain, and determines the target sound effect device. The initial sound effect configuration information corresponding to the preparation information, the sound effect parameter adjustment API replaces the initial sound effect configuration information with the new sound effect configuration information when the current audio processing stage is non-pcm. It can also be adjusted by operating the local lower computer, that is, the sound effect adjustment device. Specifically, the second parameter adjustment requirement information is obtained, and the second parameter adjustment requirement information includes new sound effect configuration information, target sound effect device information and target parameter adjustment path. The sound effect adjustment device responds to the second parameter adjustment requirement information and obtains the initial sound effect configuration information corresponding to the target sound effect device information from the sound effect mapping chain according to the target parameter adjustment path. The sound effect adjustment API replaces the initial sound effect configuration information with the new sound effect configuration information when the current audio processing stage is non-pcm.
[0080] It can be understood that based on the present embodiment, the sound effect mapping chain is used to perform real-time sound effect parameter adjustment operations, without the need for recompiling or replaying the recording and other operations. The sound effect algorithm parameters can be updated in real time at each moment of non-playing recording, playing recording, non-playing recording to playing recording, or playing recording to non-playing recording, so as to experience the changes in sound effect parameter adjustment in real time.
[0081] refer to Figure 7 This embodiment further provides a sound effect adjustment device 700, including:
[0082] The first data acquisition module 710 is used to acquire sound effect adjustment information, where the sound effect adjustment information includes the PCM audio to be processed and sound effect requirement information;
[0083] The second data acquisition module 720 is used to determine the target sound effect configuration information corresponding to the sound effect requirement information from a preset sound effect mapping chain, where the sound effect mapping chain represents the mapping relationship between the sound effect configuration information, the sound effect algorithm and the sound effect device information;
[0084] The data processing module 730 is used to determine the target sound effect device associated with the target sound effect configuration information, configure the target sound effect device according to the target sound effect configuration information, and use the configured target sound effect device to adjust the sound effect of the PCM audio to be processed to obtain the target sound effect adjustment result.
[0085] It should be noted that the specific implementation of the sound effect adjustment device 700 is different from the above Figure 1 The specific embodiments of the sound effect adjustment method shown in the embodiments are basically the same and will not be repeated here.
[0086] In some embodiments, the sound effect requirement information includes a target sound effect identifier, the sound effect mapping chain includes multiple sound effect device information, each sound effect device information is associated with multiple sound effect algorithms, each sound effect algorithm is preset with a candidate sound effect identifier and multiple sound effect configuration information, refer to Figure 7 , the second data acquisition module 720 further includes:
[0087] The target sound effect identifier selection module 721 is used to traverse each sound effect algorithm associated with each sound effect device information and select a target sound effect identifier from each candidate sound effect identifier;
[0088] The target sound effect configuration information determining module 722 is used to determine the sound effect configuration information corresponding to the target sound effect identifier as the target sound effect configuration information.
[0089] It should be noted that the specific implementation of the sound effect adjustment device is different from the above Figure 2 The specific embodiments of the sound effect adjustment method shown in the embodiments are basically the same and will not be repeated here.
[0090] like Figure 8 As shown, Figure 8800 is a structural diagram of an electronic device provided by an embodiment of the present application. The present invention also provides an electronic device 800, including:
[0091] The processor 810 may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0092] The memory 820 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 820 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 820, and the processor 810 calls and executes the sound effect adjustment method of the embodiment of the present application, for example, executing the above-described Figure 1 Steps S110 to S130 of the method, Figure 2 Steps S210 to S220 of the method, Figure 3 Steps S310 to S320 of the method, Figure 4 Steps S410 to S420 of the method, Figure 5 Steps S510 to S530 of the method and Figure 6 Steps S610 to S630 of the method;
[0093] Input / output interface 830, used to implement information input and output;
[0094] Communication interface 840, used to realize communication interaction between the present apparatus and other devices, which can be realized by wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.);
[0095] A bus 850 that transmits information between the various components of the device (e.g., the processor 810, the memory 820, the input / output interface 830, and the communication interface 840);
[0096] The processor 810 , the memory 820 , the input / output interface 830 and the communication interface 840 are connected to each other in communication within the device via a bus 850 .
[0097] The present application also provides a storage medium, which is a computer-readable storage medium, and the storage medium stores a computer program, which implements the above-described sound effect adjustment method when executed by a processor, for example, Figure 1 Steps S110 to S130 of the method, Figure 2 Steps S210 to S220 of the method, Figure 3 Steps S310 to S320 of the method, Figure 4 Steps S410 to S420 of the method, Figure 5 Steps S510 to S530 of the method and Figure 6 Method steps S610 to S630.
[0098] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0099] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0100] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions under the shared conditions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. A sound effect adjustment method, characterized in that: Applied to a sound effect adjustment device, the method comprises: Acquire sound effect adjustment information, wherein the sound effect adjustment information includes the PCM audio to be processed and the sound effect requirement information; Determining target sound effect configuration information corresponding to the sound effect requirement information from a preset sound effect mapping chain, wherein the sound effect mapping chain represents a mapping relationship between the sound effect configuration information, the sound effect algorithm, and the sound effect device information; Determine a target sound effect device associated with the target sound effect configuration information, configure the target sound effect device according to the target sound effect configuration information, and use the configured target sound effect device to adjust the sound effect of the PCM audio to be processed to obtain a target sound effect adjustment result.
2. The sound effect adjustment method according to claim 1, characterized in that: The sound effect requirement information includes a target sound effect identifier, the sound effect mapping chain includes a plurality of sound effect device information, each of the sound effect device information is associated with a plurality of sound effect algorithms, each of the sound effect algorithms is preset with a candidate sound effect identifier and a plurality of sound effect configuration information, and determining the target sound effect configuration information corresponding to the sound effect requirement information from the preset sound effect mapping chain includes: Traversing each of the sound effect algorithms associated with each of the sound effect device information, and selecting the target sound effect identifier from each of the candidate sound effect identifiers; The sound effect configuration information corresponding to the target sound effect identifier is determined as the target sound effect configuration information.
3. The sound effect adjustment method according to claim 1, characterized in that: The sound effect mapping chain is obtained according to the following steps: Acquire a sound effect device description file and a sound effect algorithm, wherein the sound effect device description file includes the sound effect device information corresponding to the sound effect requirement information, and the sound effect algorithm is preset with sound effect configuration information for configuring the sound effect device corresponding to different sound effect requirement information; The sound effect mapping chain is constructed according to the sound effect device description file and the sound effect configuration information.
4. The sound effect adjustment method according to claim 2, characterized in that: The step of selecting the target sound effect identifier from each of the candidate sound effect identifiers includes: Determine the algorithm type of the sound effect algorithm corresponding to each of the candidate sound effect identifiers; The hardware sound effect identifier is filtered from all the candidate sound effect identifiers, and the target sound effect identifier is selected from the remaining candidate sound effect identifiers, wherein the algorithm type of the sound effect algorithm corresponding to the hardware sound effect identifier is a hardware algorithm type, and the algorithm type of the sound effect algorithm corresponding to the target sound effect identifier is a software algorithm type.
5. The sound effect adjustment method according to claim 2, characterized in that: The sound effect adjustment device is communicatively connected with a host computer, the host computer is provided with a graphical parameter adjustment interface, the sound effect adjustment device is provided with a sound effect parameter adjustment API, and the method further comprises: In response to an editing operation on the graphical parameter adjustment interface, the host computer generates first parameter adjustment requirement information, the first parameter adjustment requirement information including new sound effect configuration information and target sound effect device information, and sends the new sound effect configuration information and the target sound effect device information to the sound effect parameter adjustment API; The sound effect parameter adjustment API traverses each of the sound effect algorithms associated with each of the sound effect device information, and determines the initial sound effect configuration information corresponding to the target sound effect device information; When the sound effect parameter adjustment API is currently in the non-pcm audio processing stage, the new sound effect configuration information replaces the initial sound effect configuration information.
6. The sound effect adjustment method according to claim 2, characterized in that: The method further comprises: Acquire second parameter adjustment requirement information, where the second parameter adjustment requirement information includes new sound effect configuration information, target sound effect device information, and target parameter adjustment path; Acquire the initial sound effect configuration information corresponding to the target sound effect device information according to the target parameter adjustment path; When the sound effect parameter adjustment API is currently in the non-pcm audio processing stage, the new sound effect configuration information replaces the initial sound effect configuration information.
7. A sound effect adjustment device, characterized in that: include: A first data acquisition module is used to acquire sound effect adjustment information, wherein the sound effect adjustment information includes the PCM audio to be processed and the sound effect requirement information; A second data acquisition module is used to determine target sound effect configuration information corresponding to the sound effect requirement information from a preset sound effect mapping chain, wherein the sound effect mapping chain represents a mapping relationship between the sound effect configuration information, the sound effect algorithm, and the sound effect device information; The data processing module is used to determine the target sound effect device associated with the target sound effect configuration information, configure the target sound effect device according to the target sound effect configuration information, and use the configured target sound effect device to adjust the sound effect of the PCM audio to be processed to obtain the target sound effect adjustment result.
8. The sound effect adjustment device according to claim 2, characterized in that: The sound effect requirement information includes a target sound effect identifier, the sound effect mapping chain includes a plurality of sound effect device information, each of the sound effect device information is associated with a plurality of sound effect algorithms, each of the sound effect algorithms is preset with a candidate sound effect identifier and a plurality of sound effect configuration information, and the second data acquisition module further includes: A target sound effect identifier selection module, used to traverse each of the sound effect algorithms associated with each of the sound effect device information, and select the target sound effect identifier from each of the candidate sound effect identifiers; The target sound effect configuration information determination module is used to determine the sound effect configuration information corresponding to the target sound effect identifier as the target sound effect configuration information.
9. An electronic device, characterized in that: It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor to enable the at least one control processor to execute the sound effect adjustment method as described in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the sound effect adjustment method as described in any one of claims 1 to 6.
