A method and device for generating sound works
By configuring sound effects for each recording sub-segment and performing splicing processing, the problem of a single selection of sound segments and sound effects in the existing technology is solved, and diversified creation of sound works and sound quality improvement are achieved.
Patent Information
- Application Number
- CN202110018240.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-07
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-01-07
AI Technical Summary
The existing sound APPs have a single selection of sound clips and sound effects, which cannot meet users' flexible creation needs for sound works.
By receiving multiple recording sub-segments and configuring sound effects for each recording sub-segment according to the sound effect configuration instructions input by the user, multiple sound segments to be synthesized are generated, and these sound segments are used for splicing processing, including short-term fade-in and fade-out and volume. Coordinated processing to generate target sound works.
It realizes diversified selection of sound clips and sound effects, generates sound works with more diverse sound effects and better sound quality, and meets users' flexible creation needs for sound works.
Smart Images

Figure CN112863530B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of audio processing, and in particular to a method and device for generating a sound work. Background Art
[0002] Voice is the most natural and convenient way for people to communicate with each other.
[0003] With the continuous development of Internet social networking, there are more and more voice social products and more and more ways to play with voice. For example, many voice apps provide such functions: users can record their own voices and preset some effects. Users can try different sound effects and finally choose a satisfactory effect to generate a sound clip.
[0004] However, on existing sound apps, during the process of recording and generating sound clips, users can only choose one effect to generate the final sound clip. The selection options for sound clips and sound effects are usually relatively simple, which cannot meet users' flexible creation needs for sound works. Summary of the invention
[0005] The present invention provides a method and device for generating a sound work, which solves the technical problem in the prior art that the selection scheme for sound clips and sound effects is single and cannot meet the user's flexible creation needs for sound works.
[0006] The present invention provides a method for generating a sound work, comprising:
[0007] receiving a plurality of recording sub-segments;
[0008] According to the received sound effect configuration instruction, respectively configure sound effects for the plurality of recording sub-segments to obtain a plurality of sound segments to be synthesized;
[0009] A plurality of the sound clips to be synthesized are spliced together to generate a target sound work.
[0010] Optionally, the sound effect includes a voice changing effect and a scene sound effect, and the step of configuring sound effects for the plurality of recording sub-segments respectively according to the received sound effect configuration instruction to obtain a plurality of sound segments to be synthesized includes:
[0011] In response to the input sound effect configuration instruction, selecting the voice changing effect and scene sound effect corresponding to the sound effect configuration instruction from a preset sound effect library;
[0012] The voice changing effect and the scene sound effect are used to configure the plurality of recording sub-segments respectively, so as to obtain a plurality of sound segments to be synthesized.
[0013] Optionally, the step of splicing a plurality of the sound segments to be synthesized to generate a target sound work includes:
[0014] Splicing a plurality of the to-be-synthesized sound segments and performing short-time fade-in and fade-out processing to generate an intermediate sound segment;
[0015] The intermediate sound segment is processed for volume coordination to generate a target sound work.
[0016] Optionally, the step of performing volume coordination processing on the intermediate sound segment to generate a target sound work includes:
[0017] Dividing the intermediate sound segment into a plurality of frames of sound segments to be processed according to a preset time length and calculating the input frame amplitude of each frame of the sound segment to be processed;
[0018] Determining the logarithmic domain amplitude gain corresponding to each input frame amplitude according to a preset dynamic range control curve;
[0019] A double gain smoothing operation is performed on each frame of the sound segment to be processed based on the logarithmic domain amplitude gain to generate a target sound work.
[0020] Optionally, the dual gain smoothing operation includes a first smoothing process and a second smoothing process, and the step of performing the dual gain smoothing operation on each frame of the sound segment to be processed based on the logarithmic domain amplitude gain to generate a target sound work includes:
[0021] Calculate a first smoothing gain value corresponding to the jth frame of the sound segment to be processed according to the logarithmic domain amplitude gain corresponding to the jth frame of the sound segment to be processed and the logarithmic domain amplitude gain corresponding to the j-3th frame of the sound segment to be processed; wherein j≥4, j is an integer;
[0022] Using the first smoothing gain value to perform a first gain smoothing operation on the j-th frame of the sound segment to be processed, so that the first smoothing processing process of the j-th frame of the sound segment to be processed is completed;
[0023] Converting the logarithmic domain amplitude gain into the linear domain amplitude gain;
[0024] Determine a plurality of sampling points from the j-th frame of the smooth sound segment;
[0025] Calculate the sampling point gain of each sampling point according to the linear domain amplitude gain corresponding to the jth frame of the smooth sound segment;
[0026] Performing a second gain smoothing operation on each of the sampling points using the sampling point gain, so that the second smoothing process of the j-th frame of the sound segment to be processed is completed;
[0027] When the second smoothing process of each frame of the sound segment to be processed is completed, the target sound work is obtained.
[0028] The present invention also provides a device for generating a sound work, comprising:
[0029] A recording sub-segment receiving module, used for receiving a plurality of recording sub-segments;
[0030] A sound effect configuration module, configured to configure sound effects for the plurality of recording sub-segments respectively according to the received sound effect configuration instruction, so as to obtain a plurality of sound segments to be synthesized;
[0031] The splicing processing module is used to perform splicing processing on a plurality of the sound segments to be synthesized to generate a target sound work.
[0032] Optionally, the sound effect includes a voice changing effect and a scene sound effect, and the sound effect configuration module includes:
[0033] A sound effect selection submodule, for selecting the voice changing effect and scene sound effect corresponding to the sound effect configuration instruction from a preset sound effect library in response to the input sound effect configuration instruction;
[0034] The submodule for generating the sound segment to be synthesized is used to configure the plurality of recording sub-segments respectively by using the voice changing effect and the scene sound effect to obtain a plurality of sound segments to be synthesized.
[0035] Optionally, the splicing processing module includes:
[0036] A splicing submodule, used for splicing a plurality of the to-be-synthesized sound segments and performing short-time fade-in and fade-out processing to generate an intermediate sound segment;
[0037] The volume coordination processing submodule is used to perform volume coordination processing on the intermediate sound segment to generate a target sound work.
[0038] Optionally, the volume coordination processing submodule includes:
[0039] A segment division unit, used to divide the intermediate sound segment into a plurality of frames of sound segments to be processed according to a preset time length and calculate the input frame amplitude of each frame of the sound segment to be processed;
[0040] A logarithmic domain amplitude gain determination unit, used to determine the logarithmic domain amplitude gain corresponding to each input frame amplitude according to a preset dynamic range control curve;
[0041] A dual gain smoothing operation unit is used to perform a dual gain smoothing operation on each frame of the sound segment to be processed based on the logarithmic domain amplitude gain to generate a target sound work.
[0042] Optionally, the dual gain smoothing operation includes a first smoothing process and a second smoothing process, and the dual gain smoothing operation unit includes:
[0043] A first smoothing gain value determining unit, configured to calculate a first smoothing gain value corresponding to the jth frame of the sound segment to be processed according to the logarithmic domain amplitude gain corresponding to the jth frame of the sound segment to be processed and the logarithmic domain amplitude gain corresponding to the j-3th frame of the sound segment to be processed; wherein j≥4, and j is an integer;
[0044] A first gain smoothing operation execution unit, configured to perform a first gain smoothing operation on the j-th frame of the to-be-processed sound segment by using the first smoothing gain value, so that the first smoothing process of the j-th frame of the to-be-processed sound segment is completed;
[0045] A gain conversion unit, used for converting the logarithmic domain amplitude gain into the linear domain amplitude gain;
[0046] A sampling point determination unit, configured to determine a plurality of sampling points from the j-th frame of the smooth sound segment;
[0047] A sampling point gain determination unit, configured to calculate a sampling point gain of each sampling point according to the linear domain amplitude gain corresponding to the jth frame of the smooth sound segment;
[0048] A second gain smoothing operation execution unit, configured to perform a second gain smoothing operation on each of the sampling points using the sampling point gain, so that the second smoothing process of the j-th frame of the sound segment to be processed is completed;
[0049] The target sound work generating unit is used to obtain the target sound work after the second smoothing process of each frame of the sound segment to be processed is completed.
[0050] It can be seen from the above technical solutions that the present invention has the following advantages:
[0051] The present invention receives multiple recording sub-segments input by the user, and then configures corresponding sound effects for each recording sub-segment according to the sound effect configuration instructions input by the user for each recording sub-segment, thereby obtaining multiple sound segments to be synthesized, and finally splicing the multiple sound segments to be synthesized to generate a target sound work. The present invention solves the technical problem that the selection schemes for sound segments and sound effects in the prior art are single and cannot meet the user's flexible creation needs for sound works. It facilitates the user's flexible creation of recording segments, realizes diversified selection of sound segments and sound effects, and then generates sound works with more diversified sound effects and better sound quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0053] Figure 1 A flowchart of a method for generating a sound work provided in Embodiment 1 of the present invention;
[0054] Figure 2 A flowchart of a method for generating a sound work provided in Embodiment 2 of the present invention;
[0055] Figure 3 A schematic diagram of a dynamic range control curve provided in Embodiment 2 of the present invention;
[0056] Figure 4 This is a structural block diagram of a device for generating a sound work provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0057] The embodiments of the present invention provide a method and device for generating a sound work, which are used to solve the technical problem that the selection scheme for sound clips and sound effects in the prior art is single and cannot meet the user's flexible creation needs for sound works. The user can record a multi-person dialogue by a single person, and by selecting different sound processing methods, use different sound effects for each sub-segment, and finally synthesize a "multi-person dialogue" sound work. The whole process is like the process of voice actors dubbing some film and television works, and then editing and splicing them into a complete work in the later stage. This process usually requires multiple people to cooperate in dubbing, editing, and synthesis to complete. By setting different sound effects such as voice changes for sound sub-segments, the whole process becomes simple, and a single user can automatically generate a sound dialogue work with simple operations.
[0058] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] See also Figure 1 , Figure 1 A flowchart of the steps of a method for generating a sound work provided in Example 1 of the present invention.
[0060] The present invention provides a method for generating a sound work, comprising:
[0061] Step 101, receiving a plurality of recording sub-segments;
[0062] In the embodiment of the present invention, the multiple recording sub-segments may be recorded by a single user or by multiple users.
[0063] It is worth mentioning that each recording sub-segment may have the same recording duration or different recording durations, which is not limited in the embodiment of the present invention.
[0064] Step 102, configuring sound effects for the plurality of recording sub-segments respectively according to the received sound effect configuration instruction, to obtain a plurality of sound segments to be synthesized;
[0065] After obtaining multiple recording sub-segments, corresponding sound effects can be configured for the multiple recording sub-segments based on the sound effect configuration instructions input by the user, so that each recording sub-segment can be set with the required scene sound effects and character voice change effects to obtain multiple sound segments to be synthesized.
[0066] Step 103, using a plurality of the sound clips to be synthesized to perform splicing processing to generate a target sound work.
[0067] After obtaining multiple sound clips to be synthesized, due to the different conditions of different sound clips to be synthesized during recording or sound effect setting, there may be defects such as different sound sizes, different sound effect sizes and irregular endpoints. Therefore, it is necessary to further splice the multiple sound clips to be synthesized in order to smooth and post-process the joints of the sound clips to generate the target sound work.
[0068] In an embodiment of the present invention, by receiving multiple recording sub-segments input by a user, and then configuring corresponding sound effects for each recording sub-segment according to the sound effect configuration instructions input by the user for each recording sub-segment, a plurality of sound segments to be synthesized are obtained, and finally the plurality of sound segments to be synthesized are spliced to generate a target sound work. This solves the technical problem that the selection scheme for sound segments and sound effects in the prior art is single and cannot meet the user's flexible creation needs for sound works. It facilitates the user's flexible creation of recording segments, realizes diversified selection of sound segments and sound effects, and then generates sound works with more diversified sound effects and better sound quality.
[0069] See also Figure 2 , Figure 2 A flowchart of the steps of a method for generating a sound work provided in Embodiment 2 of the present invention.
[0070] The present invention provides a method for generating a sound work, comprising:
[0071] Step 201, receiving a plurality of recording sub-segments;
[0072] In the embodiment of the present invention, the specific implementation process of step 201 is similar to the above step 101 and will not be repeated here.
[0073] Step 202, configuring sound effects for the plurality of recording sub-segments respectively according to the received sound effect configuration instruction, to obtain a plurality of sound segments to be synthesized;
[0074] Optionally, the sound effect includes a voice changing effect and a scene sound effect, and step 202 may include the following sub-steps:
[0075] In response to the input sound effect configuration instruction, selecting the voice changing effect and scene sound effect corresponding to the sound effect configuration instruction from a preset sound effect library;
[0076] The voice changing effect and the scene sound effect are used to configure the plurality of recording sub-segments respectively, so as to obtain a plurality of sound segments to be synthesized.
[0077] In an embodiment of the present invention, after obtaining multiple recording sub-segments, it is possible to respond to the sound effect configuration instruction input by the user, select voice changing effects and scene sound effects corresponding to the sound effect configuration instruction from a preset sound effect library, change the human voice in the recording sub-segment with the corresponding voice changing effect, and then configure the corresponding scene sound effect for the background sound of the recording sub-segment to obtain the corresponding multiple sound segments to be synthesized.
[0078] Among them, the sound effect library can store various voice changing effects, such as loli voice, girl voice, shota voice, uncle voice, horror voice, monster voice, robot voice, funny voice, heavy machinery sound, electronic sound, etc., as well as various scene sound effects, such as bird singing, tide sound, light music, tense atmosphere sound, horror atmosphere sound, etc. The embodiment of the present invention does not limit this.
[0079] In the embodiment of the present invention, the technical feature of step 103 in the above embodiment 1, "the use of multiple sound segments to be synthesized for splicing processing to generate a target sound work" can be replaced by the following steps 203-204:
[0080] Step 203, splicing a plurality of the sound segments to be synthesized and performing short-time fade-in and fade-out processing to generate an intermediate sound segment;
[0081] Since the process of recording sound is actively controlled by the user, the start and end are usually not a gradual process. If adjacent sound clips are directly spliced together, noise may be generated at the splicing point, such as "da".
[0082] In order to avoid multiple splicing noises in the final sound work, the embodiment of the present invention can use a short fade-in and fade-out process when splicing multiple sound clips to be synthesized, so that the sound is gradually louder at the beginning of each sound clip and gradually smaller at the end, and there can be a smooth transition when adjacent sound clips are spliced without generating noise. Then, the multiple sound clips to be synthesized are spliced in order to generate an intermediate sound clip.
[0083] Optionally, in order not to affect the effect of the main sound, the duration of the fade-in and fade-out processing is controlled within 100ms, or is set by a technician according to scene requirements, and the embodiment of the present invention does not limit this.
[0084] Step 204, performing volume coordination processing on the intermediate sound segment to generate a target sound work.
[0085] After the multiple sound clips are spliced together, the overall sound work needs to be processed for volume coordination, that is, dynamic range control of the sound. In order to take into account both the effect and the processing efficiency, step 204 may include the following sub-steps S1-S3:
[0086] S1, dividing the intermediate sound segment into multiple frames of sound segments to be processed according to a preset time length and calculating the input frame amplitude of each frame of the sound segment to be processed;
[0087] Furthermore, after the intermediate sound segment is obtained, the intermediate sound segment is first divided into a plurality of frames of sound segments to be processed according to a preset time length, and the input frame amplitude of each frame of the sound segment to be processed is calculated.
[0088] In the specific implementation, taking the preset time length of 10ms as the frame, the input frame amplitude A is calculated as an example, and the peak or rms calculation method can be used, and the calculation methods are respectively as follows:
[0089] A peak =max{|x i ||i=1,2,...,N} (1)
[0090]
[0091] Where N is the number of sampling points per frame of data, |x i | is the absolute value of the amplitude of the i-th sampling point. peak It is the point with the maximum absolute value of the amplitude of each frame of data, A rms is the RMS value of each frame of data.
[0092] According to the human ear psychoacoustic principle, the human ear's response to signal loudness is approximately logarithmic, not linear. Therefore, the input frame amplitude A in the linear domain can be converted to the input frame amplitude A in the logarithmic domain. dB , calculate the gain value to be adjusted of the sound segment to be processed in the logarithmic domain.
[0093] Taking the sampling data with a bit width of 16 as an example, the conversion formula is shown in formula (3):
[0094] A dB =20*log(A / 32768) (3)
[0095] Among them, 32768 is the maximum absolute value that can be represented by a 16-bit bit width, 2 15 =32768, 1 bit is the sign bit.
[0096] S2. determining a logarithmic domain amplitude gain corresponding to each input frame amplitude according to a preset dynamic range control curve;
[0097] Dynamic range is the ratio of the maximum and minimum values of a variable signal (such as sound or light). It can also be expressed as a logarithm with a base of 10 (decibels) or a logarithm with a base of 2.
[0098] In a specific implementation, the corresponding dynamic range control curve can be configured based on user input, such as Figure 3 As shown, it includes input amplitude A and output amplitude B, the unit is dB, the straight line part is the dynamic range control curve of the unadjusted input amplitude and output amplitude, and the curve part is the dynamic range control curve of the adjusted input amplitude and output amplitude of the embodiment of the present invention.
[0099] Each corresponding output amplitude B can be obtained based on each input amplitude A, so as to calculate the required logarithmic domain amplitude gain Δ that needs to be increased or decreased, as shown in formula (4).
[0100] Δ=B dB -A dB (4)
[0101] S3. Perform a double gain smoothing operation on each frame of the sound segment to be processed based on the logarithmic domain amplitude gain to generate an intermediate sound segment.
[0102] Further, the dual gain smoothing operation includes a first smoothing process and a second smoothing process, and step S4 may include the following sub-steps:
[0103] Calculate a first smoothing gain value corresponding to the jth frame of the sound segment to be processed according to the logarithmic domain amplitude gain corresponding to the jth frame of the sound segment to be processed and the logarithmic domain amplitude gain corresponding to the j-3th frame of the sound segment to be processed; wherein j≥4, j is an integer;
[0104] Using the first smoothing gain value to perform a first gain smoothing operation on the j-th frame of the sound segment to be processed, so that the first smoothing processing process of the j-th frame of the sound segment to be processed is completed;
[0105] Converting the logarithmic domain amplitude gain into the linear domain amplitude gain;
[0106] Determine a plurality of sampling points from the j-th frame of the smooth sound segment;
[0107] Calculate the sampling point gain of each sampling point according to the linear domain amplitude gain corresponding to the jth frame of the smooth sound segment;
[0108] Performing a second gain smoothing operation on each of the sampling points using the sampling point gain, so that the second smoothing process of the j-th frame of the sound segment to be processed is completed;
[0109] When the second smoothing process of each frame of the sound segment to be processed is completed, the target sound work is obtained.
[0110] In an example of the present invention, in order to make the signal frames smoothly transition between frames after adjustment without generating discontinuous noise, it is necessary to perform a double gain smoothing operation between adjacent frames, which includes a first smoothing process and a second smoothing process.
[0111] First smoothing process: After calculating the logarithmic domain gain, perform a gain smoothing, use the weighted sliding average of the current j-th frame and the historical three frames to obtain the smoothed current j-th frame gain, the calculation method is as follows:
[0112]
[0113] Among them, θ k represents the weighting coefficient of the kth frame, Δ k Represents the logarithmic domain gain value of the kth frame.
[0114] In a specific implementation, the number of frames smoothed by using the gain may be 40 to 60 ms in length, or may be set by a technician according to debugging, and the embodiment of the present invention does not impose any limitation on this.
[0115] Since the amplitude representation of the input sound clip to be processed and the output target sound work is in the linear domain, after executing the first smoothing process, the logarithmic domain gain value Δ needs to be converted into the linear domain gain δ in order to perform gain processing on the input signal. The conversion method is shown in formula (6):
[0116]
[0117] When executing the second smoothing process, first calculate the gain difference α between the current j-th frame and the j-1-th frame. j And each point of gain increment α j / N (N is the number of data points per frame), and finally the gain g of each sampling point in the jth frame is obtained j,i , corresponding to the sampling point x of the input signal j,i Multiply them together to get the target sound work y j,i .
[0118] α j =δ j -δ j-1 (7)
[0119] g j,i =δ j-1 +i*α j / N (8)
[0120] y j,i =g j,i *x j,i (9)
[0121] Where i represents the i-th sampling point in each frame of the smooth sound segment.
[0122] Optionally, the above multi-segment dynamic range control method can be used not only for non-real-time scenarios processed by files, but also for real-time scenarios processed by frames. For non-real-time scenarios processed by files, further sound volume adjustment can be made according to the overall audio file to make the overall sound more harmonious after splicing multiple sound segments.
[0123] In an embodiment of the present invention, by receiving multiple recording sub-segments input by a user, and then configuring corresponding sound effects for each recording sub-segment according to the sound effect configuration instructions input by the user for each recording sub-segment, a plurality of sound segments to be synthesized are obtained, and finally the plurality of sound segments to be synthesized are spliced to generate a target sound work. This solves the technical problem that the selection scheme for sound segments and sound effects in the prior art is single and cannot meet the user's flexible creation needs for sound works. It facilitates the user's flexible creation of recording segments, realizes diversified selection of sound segments and sound effects, and then generates sound works with more diversified sound effects and better sound quality.
[0124] See also Figure 4 , Figure 4 This is a structural block diagram of a device for generating a sound work provided in Embodiment 3 of the present invention.
[0125] The present invention provides a device for generating a sound work, comprising:
[0126] The recording sub-segment receiving module 401 is used to receive multiple recording sub-segments;
[0127] The sound effect configuration module 402 is used to configure sound effects for the plurality of recording sub-segments respectively according to the received sound effect configuration instruction, so as to obtain a plurality of sound segments to be synthesized;
[0128] The splicing processing module 403 is used to perform splicing processing on a plurality of the sound segments to be synthesized to generate a target sound work.
[0129] Optionally, the sound effect includes a voice changing effect and a scene sound effect, and the sound effect configuration module 402 includes:
[0130] A sound effect selection submodule, for selecting the voice changing effect and scene sound effect corresponding to the sound effect configuration instruction from a preset sound effect library in response to the input sound effect configuration instruction;
[0131] The submodule for generating the sound segment to be synthesized is used to configure the plurality of recording sub-segments respectively by using the voice changing effect and the scene sound effect to obtain a plurality of sound segments to be synthesized.
[0132] Optionally, the splicing processing module 403 includes:
[0133] A splicing submodule, used for splicing a plurality of the to-be-synthesized sound segments and performing short-time fade-in and fade-out processing to generate an intermediate sound segment;
[0134] The volume coordination processing submodule is used to perform volume coordination processing on the intermediate sound segment to generate a target sound work.
[0135] Optionally, the volume coordination processing submodule includes:
[0136] A segment division unit, used to divide the intermediate sound segment into a plurality of frames of sound segments to be processed according to a preset time length and calculate the input frame amplitude of each frame of the sound segment to be processed;
[0137] A logarithmic domain amplitude gain determination unit, used to determine the logarithmic domain amplitude gain corresponding to each input frame amplitude according to a preset dynamic range control curve;
[0138] A dual gain smoothing operation unit is used to perform a dual gain smoothing operation on each frame of the sound segment to be processed based on the logarithmic domain amplitude gain to generate a target sound work.
[0139] Optionally, the dual gain smoothing operation includes a first smoothing process and a second smoothing process, and the dual gain smoothing operation unit includes:
[0140] A first smoothing gain value determining unit, configured to calculate a first smoothing gain value corresponding to the jth frame of the sound segment to be processed according to the logarithmic domain amplitude gain corresponding to the jth frame of the sound segment to be processed and the logarithmic domain amplitude gain corresponding to the j-3th frame of the sound segment to be processed; wherein j≥4, and j is an integer;
[0141] A first gain smoothing operation execution unit, configured to perform a first gain smoothing operation on the j-th frame of the to-be-processed sound segment by using the first smoothing gain value, so that the first smoothing process of the j-th frame of the to-be-processed sound segment is completed;
[0142] A gain conversion unit, used for converting the logarithmic domain amplitude gain into the linear domain amplitude gain;
[0143] A sampling point determination unit, configured to determine a plurality of sampling points from the j-th frame of the smooth sound segment;
[0144] A sampling point gain determination unit, configured to calculate a sampling point gain of each sampling point according to the linear domain amplitude gain corresponding to the jth frame of the smooth sound segment;
[0145] A second gain smoothing operation execution unit, configured to perform a second gain smoothing operation on each of the sampling points using the sampling point gain, so that the second smoothing process of the j-th frame of the sound segment to be processed is completed;
[0146] The target sound work generating unit is used to obtain the target sound work after the second smoothing process of each frame of the sound segment to be processed is completed.
[0147] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0148] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0149] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0150] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0151] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating a sound work, characterized in that: include: receiving a plurality of recording sub-segments; The recording sub-segments have different recording durations; According to the received sound effect configuration instruction, respectively configure sound effects for the plurality of recording sub-segments to obtain a plurality of sound segments to be synthesized; Using a plurality of the sound clips to be synthesized to perform splicing processing to generate a target sound work; The step of splicing a plurality of the sound clips to be synthesized to generate a target sound work comprises: Splicing a plurality of the to-be-synthesized sound segments and performing short-time fade-in and fade-out processing to generate an intermediate sound segment; Performing volume coordination processing on the intermediate sound segment to generate a target sound work; The step of performing volume coordination processing on the intermediate sound segment to generate the target sound work comprises: Dividing the intermediate sound segment into a plurality of frames of sound segments to be processed according to a preset time length and calculating the input frame amplitude of each frame of the sound segment to be processed; Determining the logarithmic domain amplitude gain corresponding to each input frame amplitude according to a preset dynamic range control curve; A double gain smoothing operation is performed on each frame of the sound segment to be processed based on the logarithmic domain amplitude gain to generate a target sound work.
2. The method for generating a sound work according to claim 1, characterized in that: The sound effects include voice changing effects and scene sound effects. The step of respectively configuring sound effects for the plurality of recording sub-segments according to the received sound effect configuration instruction to obtain a plurality of sound segments to be synthesized includes: In response to the input sound effect configuration instruction, selecting the voice changing effect and scene sound effect corresponding to the sound effect configuration instruction from a preset sound effect library; The voice changing effect and the scene sound effect are used to configure the plurality of recording sub-segments respectively, so as to obtain a plurality of sound segments to be synthesized.
3. The method for generating a sound work according to claim 1, characterized in that: The dual gain smoothing operation includes a first smoothing process and a second smoothing process. The step of performing the dual gain smoothing operation on each frame of the sound segment to be processed based on the logarithmic domain amplitude gain to generate a target sound work includes: Calculate a first smoothing gain value corresponding to the jth frame of the sound segment to be processed according to the logarithmic domain amplitude gain corresponding to the jth frame of the sound segment to be processed and the logarithmic domain amplitude gain corresponding to the j-3th frame of the sound segment to be processed; wherein j≥4, j is an integer; Using the first smoothing gain value to perform a first gain smoothing operation on the j-th frame of the sound segment to be processed, so that the first smoothing processing process of the j-th frame of the sound segment to be processed is completed; Converting the logarithmic domain amplitude gain into a linear domain amplitude gain; Determine a plurality of sampling points from the j-th frame of the sound segment to be processed; Calculate the sampling point gain of each sampling point according to the linear domain amplitude gain corresponding to the j-th frame of the sound segment to be processed; Performing a second gain smoothing operation on each of the sampling points using the sampling point gain, so that the second smoothing process of the j-th frame of the sound segment to be processed is completed; When the second smoothing process of each frame of the sound segment to be processed is completed, the target sound work is obtained.
4. A device for generating a sound work, characterized in that: include: A recording sub-segment receiving module, used for receiving a plurality of recording sub-segments; The recording sub-segments have different recording durations; A sound effect configuration module, configured to configure sound effects for the plurality of recording sub-segments respectively according to the received sound effect configuration instruction, so as to obtain a plurality of sound segments to be synthesized; A splicing processing module, used for splicing a plurality of the sound segments to be synthesized to generate a target sound work; The splicing processing module includes: A splicing submodule, used for splicing a plurality of the sound segments to be synthesized and performing short-time fade-in and fade-out processing to generate an intermediate sound segment; A volume coordination processing submodule, used for performing volume coordination processing on the intermediate sound segment to generate a target sound work; The volume coordination processing submodule includes: A segment division unit, used to divide the intermediate sound segment into a plurality of frames of sound segments to be processed according to a preset time length and calculate the input frame amplitude of each frame of the sound segment to be processed; A logarithmic domain amplitude gain determination unit, used to determine the logarithmic domain amplitude gain corresponding to each input frame amplitude according to a preset dynamic range control curve; A dual gain smoothing operation unit is used to perform a dual gain smoothing operation on each frame of the sound segment to be processed based on the logarithmic domain amplitude gain to generate a target sound work.
5. The device for generating a sound work according to claim 4, characterized in that: The sound effects include voice changing effects and scene sound effects, and the sound effect configuration module includes: A sound effect selection submodule, for selecting the voice changing effect and scene sound effect corresponding to the sound effect configuration instruction from a preset sound effect library in response to the input sound effect configuration instruction; The submodule for generating the sound segment to be synthesized is used to configure the plurality of recording sub-segments respectively by using the voice changing effect and the scene sound effect to obtain a plurality of sound segments to be synthesized.
6. The device for generating a sound work according to claim 4, characterized in that: The dual gain smoothing operation includes a first smoothing process and a second smoothing process, and the dual gain smoothing operation unit includes: A first smoothing gain value determining unit, configured to calculate a first smoothing gain value corresponding to the jth frame of the sound segment to be processed according to the logarithmic domain amplitude gain corresponding to the jth frame of the sound segment to be processed and the logarithmic domain amplitude gain corresponding to the j-3th frame of the sound segment to be processed; wherein j≥4, and j is an integer; A first gain smoothing operation execution unit, configured to perform a first gain smoothing operation on the j-th frame of the to-be-processed sound segment by using the first smoothing gain value, so that the first smoothing process of the j-th frame of the to-be-processed sound segment is completed; A gain conversion unit, used for converting the logarithmic domain amplitude gain into a linear domain amplitude gain; A sampling point determination unit, configured to determine a plurality of sampling points from the j-th frame of the sound segment to be processed; A sampling point gain determination unit, configured to calculate a sampling point gain of each sampling point according to the linear domain amplitude gain corresponding to the j-th frame of the sound segment to be processed; A second gain smoothing operation execution unit, configured to perform a second gain smoothing operation on each of the sampling points using the sampling point gain, so that the second smoothing process of the j-th frame of the sound segment to be processed is completed; The target sound work generating unit is used to obtain the target sound work after the second smoothing process of each frame of the sound segment to be processed is completed.
