WO2017215658A1 - 音效添加方法及用户终端 - Google Patents

音效添加方法及用户终端 Download PDF

Info

Publication number
WO2017215658A1
WO2017215658A1 PCT/CN2017/088767 CN2017088767W WO2017215658A1 WO 2017215658 A1 WO2017215658 A1 WO 2017215658A1 CN 2017088767 W CN2017088767 W CN 2017088767W WO 2017215658 A1 WO2017215658 A1 WO 2017215658A1
Authority
WO
WIPO (PCT)
Prior art keywords
sound effect
sound
intensity
added
sets
Prior art date
Application number
PCT/CN2017/088767
Other languages
English (en)
French (fr)
Inventor
甘高亭
李亚军
涂广
杨海
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2017215658A1 publication Critical patent/WO2017215658A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Definitions

  • the present invention relates to the field of user terminal technologies, and in particular, to a sound effect adding method and a user terminal.
  • the current user terminal can implement various functions, such as recording audio and video files, or downloading audio and video files from the application.
  • Sound effects can be added to audio and video files in the user terminal to enrich the sound effects of audio and video files.
  • the video file may include an audio file and an image file, and the audio file corresponds to the image file based on the time point. Therefore, in the process of adding sound effects to the audio and video files, the audio data in the source audio file is superimposed with the sound effect parameters.
  • the superposition of the audio data and the sound effect parameter usually causes the sound intensity in the original audio file to suddenly increase, such as the sudden increase in the volume, etc., which is easy to generate noise, causing the user to feel uncomfortable and reducing the user experience.
  • the embodiment of the invention provides a sound effect adding method and a user terminal, in order to gradually add sound effects, avoiding audio noise generated when the sound effects are added, and improving the user experience.
  • an embodiment of the present invention provides a sound effect adding method, including:
  • the n sets of sound intensity adjustment values are sequentially added to the audio data such that the sound effect of the audio data is gradually increased to the sound effect intensity value of the sound effect to be added, and the n is a positive integer.
  • an embodiment of the present invention provides a sound effect adding apparatus, where the sound effect adding apparatus includes a functional unit, and the functional unit is used to perform some or all of the steps described in any one of the first aspects of the embodiments of the present invention. .
  • an embodiment of the present invention provides a user terminal, including:
  • processor a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface are connected by the communication bus and complete communication with each other;
  • the memory stores executable program code for wireless communication
  • the processor is configured to invoke the executable program code in the memory to perform some or all of the steps described in any of the methods of the first aspect of the embodiments of the present invention.
  • an embodiment of the present invention provides a computer readable storage medium, wherein the computer readable storage medium stores instructions, when executed on a computer, causing the computer to perform any of the first aspects.
  • the sound effect of the audio data is gradually increased to the sound effect intensity value of the sound effect to be added. It can achieve a smooth sound effect of adding sound effects, thus avoiding the sound noise generated when adding sound effects, and improving the user experience.
  • FIG. 1 is a schematic flow chart of a method for adding a sound effect according to an embodiment of the present invention
  • FIG. 2 is a schematic flow chart of another method for adding a sound effect according to an embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of still another method for adding a sound effect according to an embodiment of the present invention.
  • FIG. 4 is a schematic flow chart of still another method for adding a sound effect according to an embodiment of the present invention.
  • FIG. 5 is a block diagram showing the unit composition of a sound effect adding apparatus according to an embodiment of the present invention.
  • FIG. 6 is a block diagram showing the unit composition of another sound effect adding apparatus according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a user terminal according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of another user terminal according to an embodiment of the present invention.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • FIG. 1 is a schematic flowchart diagram of a method for adding a sound effect according to an embodiment of the present invention.
  • the method can be implemented by a user terminal as described in the device embodiment. As shown in FIG. 1, the method can include the following steps.
  • Step S101 Acquire audio data that needs to add a sound effect.
  • the audio data to which the sound effect needs to be added is first acquired.
  • the audio data can be obtained from an audio file or from a video file.
  • the embodiments of the present invention are not limited.
  • the obtained audio data is audio data that needs to be added with sound effects, and the audio data may be the whole file data in the audio file or the video file, or may be part of the audio data, that is, the original audio data. Line interception and other operations to obtain audio data that needs to be added with sound effects.
  • the duration of the audio data may be greater than or equal to the added duration of the sound effect to be added.
  • Step S102 sequentially adding n sets of sound effect adjustment values to the audio data, so that the sound effect of the audio data is gradually increased to a sound effect intensity value of the sound effect to be added, and the n is a positive integer.
  • step S102 may be:
  • n sets of sound intensity adjustment values are sequentially and independently added to the audio data, the n sets of sound intensity adjustment values are changed from weak to strong, and the nth group of sound intensity adjustment values are sound intensity of the to-be-added sound effects value.
  • the order of the n sets of sound intensity adjustment values is from weak to strong, that is, the first set of sound intensity adjustment values is the weakest, for example, zero, and the nth group of sound intensity adjustment values is the strongest. And, the nth group of sound intensity adjustment values is the sound effect intensity value of the sound effect to be added.
  • the sound intensity adjustment values determined by the n groups may be independently added to the audio data in sequence, wherein the addition period may be preset, and the preset addition period may be according to the output duration of the audio data. Or other factors are determined.
  • a set of sound intensity adjustment values is added for each addition period, and after the set of sound intensity adjustment values is added, the set of sound intensity adjustment values is maintained for the duration of the next addition period that is not expired, when the addition period expires, That is, the set of sound intensity adjustment values is cleared, and the next set of sound intensity adjustment values is added to the audio data, that is, each added sound intensity adjustment value is separately effective. That is to achieve a gradual and gentle increase in sound intensity, to avoid the sound noise generated when adding sound effects.
  • step S102 may further divide the sound effect intensity value of the sound effect to be added into the n sets of sound effect intensity adjustment values, where the sum of the n sets of sound effect intensity adjustment values is the sound effect intensity value of the sound effect to be added. And the n sets of sound intensity adjustment values are sequentially superimposed on the audio data.
  • the specific implementation method of this embodiment refer to the embodiments shown in FIG. 2 to FIG. 4.
  • the sound effect of the audio data is gradually increased to the sound effect intensity value of the sound effect to be added. It can achieve a smooth sound effect of adding sound effects, thus avoiding the sound noise generated when adding sound effects, and improving the user experience.
  • FIG. 2 is a schematic flowchart diagram of a method for adding a sound effect according to an embodiment of the present invention.
  • the method can be implemented by a user terminal as described in the device embodiment. As shown in FIG. 2, the method can include the following steps.
  • Step S201 acquiring audio data that needs to add a sound effect.
  • the audio data to which the sound effect needs to be added is first acquired.
  • the audio data can be obtained from an audio file or from a video file.
  • the embodiments of the present invention are not limited.
  • the obtained audio data is audio data that needs to be added with sound effects, and the audio data may be an audio file or a view.
  • the overall file data in the frequency file may also be part of the audio data, that is, the interception of the original audio data, to obtain audio data that needs to be added with sound effects.
  • the duration of the audio data may be greater than or equal to the added duration of the sound effect to be added.
  • Step S202 the sound effect intensity values of the sound effects to be added are divided into n sets of sound effect intensity adjustment values, and the sum of the n sets of sound effect intensity adjustment values is the sound effect intensity value, and n is an integer.
  • the sound effect intensity value of the sound effect to be added may be divided into n sets of sound effect intensity adjustment values, wherein the sum of the n sets of sound effect intensity adjustment values is the sound effect intensity value.
  • at least one sound effect parameter may be included in the sound effect to be added, and each sound effect parameter corresponds to one sound effect intensity value.
  • the sound effect intensity values corresponding to each sound effect parameter in the sound effect to be added are divided into n sets of sound effect intensity adjustment values.
  • the manner in which the sound intensity values corresponding to each sound effect parameter are divided into n sets of sound effect intensity adjustment values may be the same, or different division modes may be determined according to specific sound effect parameters. If some sound effects are based on different effects on the audio data output noise, the way to divide into n sets of sound intensity adjustment values is also different.
  • the sound intensity values corresponding to the same sound effect parameter may be determined according to different application scenarios, and the same or different manners of dividing the sound sensitivity adjustment values into n groups may be determined.
  • the sound intensity adjustment value can be increased from group to group or from group to group.
  • the n different sets of sound intensity values may also determine different trends according to other parameters, which are not limited in the embodiment of the present invention.
  • Step S203 the n sets of sound effect intensity adjustment values are sequentially superimposed on the audio data.
  • the n sets of sound effect intensity adjustment values may be sequentially added to the obtained audio data, and the added sound intensity is added later. It is effective with all the sound effects added before, that is, the added sound intensity adjustment value is effective for the overlay. Specifically, since the n sets of sound intensity adjustment values are smaller than the overall sound intensity value, the n sets of sound intensity adjustment values are sequentially added to the audio data to avoid the audio output value caused by the increase of the overall sound intensity value to the audio data. noise. Ability to smooth sound effects to audio data. The n sets of sound intensity adjustment values may be added to the audio data according to the adjustment values from large to small or from small to large.
  • the n sets of sound intensity adjustment values may be sequentially added to the audio data according to other parameters.
  • a set of sound intensity adjustment values corresponding to the moment may be set relatively small to avoid noise, or Within a range allowed by the audio output intensity, a set of sound effect adjustment values corresponding to the moment is set relatively large to assist in enhancing the audio data of the high audio intensity at that moment.
  • the above-mentioned judgment setting sound intensity adjustment value is larger or smaller, and can also be combined with the audio type.
  • the set sound intensity adjustment value can be set to be small. Add sound effects in a more gradual way; if the audio type is strongly type, such as audio data for rock music, etc., you can set the set of sound intensity adjustment values to be larger to highlight the output of audio data within the range allowed by the audio output intensity. effect.
  • the n sets of the sound intensity adjustment values may be added to the audio data in other manners, which is not limited in the embodiment of the present invention.
  • the embodiment of the present invention provides only one execution sequence of the step S201 and the step S202; of course, the execution sequence of the step S201 and the step S202 is not limited to one case described in the embodiment of the present invention, and the step S201 may be After the execution of the step S202 is performed, the step S201 and the step S202 are also performed in parallel, and the embodiment of the present invention is not limited thereto.
  • n sets of sound effect intensity adjustment values are sequentially added to the audio data, and the added sound intensity adjustment value is superimposed with the previously added sound effect intensity adjustment value. So that the sound effect of the audio data is gradually increased to the sound intensity value of the sound effect to be added. It can achieve a smooth sound effect of adding sound effects, thus avoiding the sound noise generated when adding sound effects, and improving the user experience.
  • FIG. 3 is a schematic flowchart diagram of another method for adding a sound effect according to an embodiment of the present invention.
  • the method can be implemented by a user terminal as described in the device embodiment. As shown in FIG. 3, the method can include the following steps.
  • Step S301 acquiring audio data that needs to add a sound effect.
  • the audio data to which the sound effect needs to be added is first acquired.
  • the audio data can be obtained from an audio file or from a video file.
  • the embodiments of the present invention are not limited.
  • the obtained audio data is audio data that needs to be added with a sound effect, and the audio data may be an overall file data in an audio file or a video file, or may be part of the audio data, that is, an operation of intercepting the original audio data.
  • the duration of the audio data may be greater than or equal to the added duration of the sound effect to be added.
  • Step S302 dividing the sound effect intensity value to be added into n sets of the same sound effect intensity adjustment value; or, dividing the sound effect intensity value to be added into n groups of increasing sound intensity adjustment values; or The sound effect intensity values to be added are divided into n groups of degraded sound effect intensity adjustment values, and n is a positive integer.
  • the sound effect intensity value to be added may be divided into n sets of equivalent sound effect intensity adjustment values; or, the sound effect intensity values to be added may be divided into n groups of progressively increasing sound effect intensity adjustment values; or The sound effect intensity values to be added are divided into n groups of degraded sound effect intensity adjustment values.
  • the sum of the n sets of sound effect intensity adjustment values is the sound effect intensity value to be added.
  • the quantity determination of n may be based on the added duration of the sound effect to be added. If the added duration of the sound effect to be added is longer, it is determined that the value of n is larger, so as to achieve a smoother addition of sound intensity, if the added effect of the added sound effect is long. If it is shorter, it is determined that the value of n is small.
  • the sound intensity value to be added can be divided into n sets of equivalent sound intensity adjustment values, that is, the sound intensity added to the audio data is the same at each adding time or adding a step, thereby ensuring a smooth addition of sound effects. Noise can be avoided during the addition of sound effects.
  • the sound effect intensity values to be added may be divided into n groups of group-by-group increments or n groups of group-by-group decremented sound effect intensity adjustment values.
  • the n sets of group-by-group increment or group-by-group decrement sound intensity adjustment values may be an arithmetic progression, that is, the difference between the i+1th group and the i-th group sound intensity adjustment value is the same, and the difference may be positive
  • the value, that is, the n sets of increasing sound intensity adjustment values are added, and the difference may also be a negative value, that is, n sets of decremented sound intensity adjustment values are formed.
  • different division manners may be determined according to different application scenarios.
  • the sound intensity value may be divided. For the n groups of increasing sound intensity adjustment values, if the audio intensity of the one-year data becomes stronger, the sound effect is lightly divided into n sets of gradually decreasing sound effect intensity values to avoid the sound effect noise generated during the sound effect addition.
  • Step S303 the n sets of sound effect intensity adjustment values are sequentially superimposed on the audio data.
  • the n sets of sound effect adjustment values separated according to the above manner are sequentially superimposed on the audio data. Specifically, if the sound intensity to be added is divided into n groups of increasing sound intensity adjustment values, the n sets of sound intensity adjustment values are superimposed on the audio data in an incremental manner; if the sound intensity to be added is divided into The n sets of degraded sound intensity adjustment values are grouped, and the n sets of sound effect intensity adjustment values are sequentially superimposed on the audio data in a decreasing manner. If the addition step size is preset during the addition period of the added sound effect, a set of sound intensity adjustment values is superimposed on the corresponding time of each added step.
  • the sound effect of the audio data is gradually increased to the sound effect intensity value of the sound effect to be added. It can achieve a smooth sound effect of adding sound effects, thus avoiding the sound noise generated when adding sound effects, and improving the user experience.
  • FIG. 4 is a schematic flowchart diagram of still another method for adding a sound effect according to an embodiment of the present invention.
  • the method can be implemented by a user terminal as described in the device embodiment. As shown in FIG. 4, the method can include the following steps.
  • Step S401 acquiring audio data that needs to add a sound effect.
  • the audio data to which the sound effect needs to be added is first acquired.
  • the audio data can be obtained from an audio file or from a video file.
  • the embodiments of the present invention are not limited.
  • the obtained audio data is audio data that needs to be added with a sound effect, and the audio data may be an overall file data in an audio file or a video file, or may be part of the audio data, that is, an operation of intercepting the original audio data.
  • the duration of the audio data may be greater than or equal to the added duration of the sound effect to be added.
  • Step S402 determining an audio intensity value of the audio data.
  • an audio intensity value of the piece of audio data may also be determined, where the piece of audio intensity value is an initial intensity value of the audio data, that is, an audio intensity value before the adjustment.
  • the adjusted audio intensity value will be obtained.
  • Step S403 collecting n sets of audio intensity values according to a preset adding step in the adding time period of the sound effect to be added.
  • the sound effect intensity value of the sound effect to be added is divided into n sets of sound effect intensity adjustment values corresponding thereto according to the determined audio intensity value of the audio data.
  • the above manner can be implemented by steps S303 to S305. Specifically, during the adding period of the sound effect to be added, the n sets of audio intensity values are collected according to the preset adding step, that is, the preset adding step determines the time point of adding the sound effect, and by collecting n sets of audio intensity values, The sound intensity adjustment value corresponding to the n sets of audio intensity values may be determined.
  • a set of audio intensity values is high, in order to avoid adding noise, it is determined that the sound intensity adjustment value corresponding to the set of audio intensity values is small, or within the threshold range in which noise is generated, determining that the set of audio intensity adjustment values is large, Enhance audio output.
  • Step S404 determining an audio type of the audio data.
  • the audio type of the audio data may also be determined, and the audio type may be classified into a flat type, a strong type, and the like to represent an output effect of the audio data.
  • the audio type of the audio data is the acquired audio type of the piece of audio data, and does not necessarily represent the audio type of the entire audio file.
  • the audio intensity of the piece of audio data can be determined by determining the audio type of the piece of audio data as a whole. If the overall audio intensity is strong, the audio type is strongly typed, and if the overall audio intensity is weak, the audio type is a gentle type.
  • Step S405 determining n sets of sound effect intensity adjustment values corresponding to the n sets of audio intensity values according to the audio type.
  • the n sets of sound intensity adjustment values corresponding to the n sets of audio intensity values may be determined according to the determined audio type of the audio data. Specifically, if the audio type of the audio data is determined to be a strong type, the audio intensity value and the sound intensity adjustment value are positively correlated within a range in which the output audio intensity does not generate noise, that is, the higher the audio intensity value, the group The corresponding sound intensity adjustment value is larger; if the audio type of the audio data is determined to be a gradual type, the audio intensity value is negatively correlated with the sound intensity adjustment value, that is, the higher the audio intensity value, the group corresponding to the sound intensity adjustment The smaller the value.
  • the n sets of sound effect intensity adjustment values corresponding to the audio data may be determined according to the audio type and the audio intensity of the audio data, thereby further enhancing the output effect of the audio data and further improving the user on the basis of avoiding the sound effect noise.
  • FIG. 5 is a block diagram of a unit composition of a sound effect adding apparatus according to an embodiment of the present invention.
  • the user terminal may include an obtaining unit 501 and an adding unit 502, where:
  • the obtaining unit 501 is configured to acquire audio data that needs to be added with a sound effect
  • the adding unit 502 is configured to sequentially add n sets of sound intensity adjustment values to the audio data, so that the sound effect of the audio data is gradually increased to a sound intensity value of the sound effect to be added, and the n is a positive integer.
  • the sound effect of the audio data is gradually increased to the sound effect intensity value of the sound effect to be added. It can achieve a smooth sound effect of adding sound effects, thus avoiding the sound noise generated when adding sound effects, and improving the user experience.
  • FIG. 6 is a block diagram showing the unit composition of another sound effect adding apparatus according to an embodiment of the present invention.
  • the user terminal may include an obtaining unit 601 and an adding unit 602.
  • the acquiring unit 601 is configured to acquire audio data that needs to add a sound effect
  • the adding unit 602 is configured to sequentially and independently add n sets of sound effect adjustment values from weak to strong, and the nth set of sound intensity adjustment values are the The sound intensity value of the sound effect to be added, the n being a positive integer.
  • the obtaining unit 601 is configured to acquire audio data that needs to add a sound effect
  • the adding unit 602 includes a dividing unit and a superimposing unit.
  • the dividing unit is configured to divide the sound effect intensity value to be added into n sets of the same sound effect intensity adjustment value; or, divide the sound effect intensity value to be added into n groups of increasing sound intensity adjustment values. Or, dividing the sound effect intensity value to be added into n groups of degraded sound effect intensity adjustment values;
  • the dividing unit is configured to:
  • the sound effect intensity values to be added are divided into n groups of degraded sound effect intensity adjustment values.
  • the n groups of increasing sound intensity adjustment values are group-by-group, or the n groups of decremented sound intensity adjustment values are arithmetic progression columns.
  • a superimposing unit configured to sequentially superimpose the n sets of sound intensity adjustment values onto the audio data.
  • the acquiring unit 601 is configured to acquire audio data that needs to be added with a sound effect
  • the adding unit 602 includes a determining unit, a dividing unit, and a superimposing unit.
  • a determining unit is configured to determine an audio intensity value of the audio data
  • a dividing unit configured to divide the sound effect intensity value of the sound effect to be added into n sets of sound effect intensity adjustment values corresponding to the audio intensity value
  • the dividing unit is configured to collect n sets of audio intensity values according to a preset adding step in an adding period of the to-be-added sound effect;
  • a superimposing unit configured to sequentially add the n sets of sound intensity adjustment values to the audio data.
  • the user terminal described in the device embodiment of the present invention is presented in the form of a functional unit.
  • the term "unit” as used herein shall be understood to mean the broadest possible meaning, and the object for implementing the functions described for each "unit” may be, for example, an integrated circuit ASIC, a single circuit for executing one or more software or firmware.
  • a processor shared, dedicated or chipset
  • memory of the program combinatorial logic, and/or other suitable components that perform the functions described above.
  • the sound effect of the audio data is gradually increased to the sound effect intensity value of the sound effect to be added. It can achieve a smooth sound effect of adding sound effects, thus avoiding the sound noise generated when adding sound effects, and improving the user experience.
  • An embodiment of the present invention further provides another user terminal, as shown in FIG. 7, including: a processor 101, The memory 102, the communication interface 103, and the communication bus 104; wherein the processor 101, the memory 102, and the communication interface 103 are connected and communicate with each other through the communication bus 104; the processor 101 controls wireless communication with the external cellular network through the communication interface 103.
  • the communication interface 103 includes, but is not limited to, an antenna, an amplifier, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like.
  • the memory 102 includes at least one of: a random access memory, a nonvolatile memory, and an external memory, the memory 102 storing executable program code capable of directing the processor 101 to perform the method embodiment of the present invention
  • the method specifically disclosed includes the following steps:
  • the processor 101 acquires audio data that needs to add a sound effect
  • the processor 101 sequentially adds n sets of sound intensity adjustment values to the audio data such that the sound effect of the audio data is gradually increased to a sound intensity value of the sound effect to be added, and the n is a positive integer.
  • the sound effect of the audio data is gradually increased to the sound effect intensity value of the sound effect to be added. It can achieve a smooth sound effect of adding sound effects, thus avoiding the sound noise generated when adding sound effects, and improving the user experience.
  • the embodiment of the present invention further provides a user terminal.
  • a user terminal As shown in FIG. 8 , for the convenience of description, only parts related to the embodiment of the present invention are shown. If the specific technical details are not disclosed, please refer to the method part of the embodiment of the present invention.
  • the user terminal can be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an in-vehicle computer, and the like.
  • FIG. 8 is a block diagram showing a partial structure of a mobile phone related to a user terminal according to an embodiment of the present invention.
  • the mobile phone includes: a radio frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a wireless fidelity (WiFi) module 970, and a processor 980. And power supply 990 and other components.
  • RF radio frequency
  • the RF circuit 910 can be used for receiving and transmitting information.
  • RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • RF circuitry 910 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • E-mail Short Messaging Service
  • the memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 920.
  • the memory 920 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function, and the like; the storage data area may store data created according to usage of the mobile phone, and the like.
  • memory 920 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 930 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the handset.
  • the input device 930 may include, but is not limited to, one or more of a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, a fingerprint recognition module, and the like.
  • the display unit 940 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • the display unit 940 can include a display screen 941.
  • the display screen 941 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the handset may also include at least one type of sensor 950, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen 941 according to the brightness of the ambient light, and the proximity sensor may turn off the display screen 941 and/or when the mobile phone moves to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the mobile phone can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • the gesture of the mobile phone such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration
  • vibration recognition related functions such as pedometer, tapping
  • the mobile phone can also be configured with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors, no longer Narration.
  • An audio circuit 960, a speaker 961, and a microphone 962 can provide an audio interface between the user and the handset.
  • the audio circuit 960 can transmit the converted electrical data of the received audio data to the speaker 961, and convert it into a sound signal output by the speaker 961.
  • the microphone 962 converts the collected sound signal into an electrical signal, and the audio circuit 960 After receiving, it is converted into audio data, and then processed by the audio data output processor 980, sent to the other mobile phone via the RF circuit 910, or outputted to the memory 920 for further processing.
  • WiFi is a short-range wireless transmission technology
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 970, which provides users with wireless broadband Internet access.
  • FIG. 8 shows the WiFi module 970, it can be understood that it does not belong to the essential configuration of the mobile phone, and may be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 980 is the control center of the handset, which connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 920, and invoking data stored in the memory 920, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 980 may include one or more core processing units; preferably, The processor 980 can integrate an application processor and a modem processor, wherein the application processor primarily processes an operating system, a user interface, an application, etc., and the modem processor primarily processes wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 980.
  • the handset also includes a power source 990 (such as a battery) that supplies power to the various components.
  • a power source 990 such as a battery
  • the power source can be logically coupled to the processor 980 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the method flow of each step may be implemented based on the structure of the mobile phone.
  • each unit function may be implemented based on the structure of the mobile phone.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of any one of the sound effect adding methods described in the foregoing method embodiments.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • 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 integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold as a standalone product Or when used, it can be stored in a computer readable memory.
  • the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a memory.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Soundproofing, Sound Blocking, And Sound Damping (AREA)

Abstract

本发明实施例公开了一种音效添加方法及用户终端,包括:获取需要添加音效的音频数据;将n组音效强度调节值依次添加至所述音频数据上,使得音频数据的音效逐渐增强至待添加音效的音效强度值,所述n为正整数。本发明实施例有利于避免音效添加时产生的音频噪声,提升用户体验。

Description

音效添加方法及用户终端 技术领域
本发明涉及用户终端技术领域,具体涉及一种音效添加方法及用户终端。
背景技术
当前用户终端可实现多种功能,如录制音视频文件,或者从应用中下载音视频文件等。并可对用户终端中的音视频文件添加音效,以丰富音视频文件的声音效果。其中,视频文件可包括音频文件及图像文件,音频文件与图像文件基于时间点相对应。因此,在对音视频文件进行音效添加的过程中,即是将源音频文件中的音频数据与音效参数进行叠加。然而,在上述过程中,音频数据与音效参数的叠加通常会导致原音频文件中的声音强度骤增,如音量突然变大等,进而容易产生噪声,造成用户听觉不适,降低了用户体验。
发明内容
本发明实施例提供了一种音效添加方法及用户终端,以期逐步添加音效,避免音效添加时产生的音频噪声,提升用户体验。
第一方面,本发明实施例提供一种音效添加方法,包括:
获取需要添加音效的音频数据;
将n组音效强度调节值依次添加至所述音频数据上,使得音频数据的音效逐渐增强至待添加音效的音效强度值,所述n为正整数。
第二方面,本发明实施例提供了一种音效添加装置,所述音效添加装置包括功能单元,所述功能单元用于执行本发明实施例第一方面任一方法中所描述的部分或全部步骤。
第三方面,本发明实施例提供了一种用户终端,包括:
处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线连接并完成相互间的通信;
所述存储器存储有可执行程序代码,所述通信接口用于无线通信;
所述处理器用于调用所述存储器中的所述可执行程序代码,执行本发明实施例第一方面任一方法中所描述的部分或全部步骤。
第四方面,本发明实施例提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行第一方面中任意一个方法。
本发明实施例中,通过获取需要添加音效的音频数据,并将n组音效强度调节值依次添加至所述音频数据上,使得音频数据的音效逐渐增强至待添加音效的音效强度值。能够实现平缓的添加音效的音效强度,从而避免在添加音效时产生的音效噪音,提升了用户体验。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。
图1是本发明实施例公开的一种音效添加方法的流程示意图;
图2是本发明实施例公开的另一种音效添加方法的流程示意图;
图3是本发明实施例公开的又一种音效添加方法的流程示意图;
图4是本发明实施例公开的又一种音效添加方法的流程示意图;
图5是本发明实施例公开的一种音效添加装置的单元组成框图;
图6是本发明实施例公开的另一种音效添加装置的单元组成框图;
图7是本发明实施例公开的一种用户终端的结构示意图;
图8是本发明实施例公开的另一种用户终端的结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
下面对本发明方法实施例进行描述。
请参阅图1,图1是本发明实施例公开的一种音效添加方法的流程示意图。该方法可由装置实施例中描述的用户终端实现。如图1所示,该方法可包括以下步骤。
步骤S101,获取需要添加音效的音频数据。
在一个实施例中,首先获取需要添加音效的音频数据。其中,该音频数据可从音频文件中获取,也可从视频文件中获取。本发明实施例不做限定。其中,该获取的音频数据为需要添加音效的音频数据,该音频数据可为音频文件或视频文件中的整体文件数据,也可为其中部分音频数据,即对原始的音频数据进 行截取等操作,以获取需要添加音效的音频数据。其中,该音频数据的时长可大于或等于待添加音效的添加时长。
步骤S102,将n组音效强度调节值依次添加至所述音频数据上,使得音频数据的音效逐渐增强至待添加音效的音效强度值,所述n为正整数。
可选的,步骤S102的具体实现方式可为:
将n组音效强度调节值依次且独立地添加至所述音频数据,所述n组音效强度调节值从弱到强变化,所述第n组音效强度调节值为所述待添加音效的音效强度值。
具体的,n组音效强度调节值的排序顺序为从弱到强,即第一组音效强度调节值最弱,例如为零,第n组音效强度调节值最强。并且,第n组音效强度调节值为待添加音效的音效强度值。其中,第一组音效强度调节值的确定以及n的数值可根据音频数据的输出效果的强度等级决定,若音频数据输出效果的强度等级高,则确定第一组音效强度调节值较弱且n的数值较大,例如,可确定第一组音效强度调节值为0、n为20等;若音频数据输出效果的强度等级低,则可确定第一组音效强度调节值较强且n的数值较小,例如第一组音效强度为待添加音效的音效强度值的20%且n=5,则可尽快平滑的完成音效添加。当获取到需要添加音效的音频数据时,可将n组确定的音效强度调节值依次独立的添加至音频数据上,其中,可预设添加周期,该预设添加周期可根据音频数据的输出时长或者其他因素确定。每个添加周期添加一组音效强度调节值,并且当添加完该组音效强度调节值后,在下一添加周期未到期的时长内,保持该组音效强度调节值,当添加周期到期时,即清除该组音效强度调节值,在音频数据上添加下一组音效强度调节值,即每次添加的音效强度调节值都是单独生效的。即实现了逐步平缓的增加音效强度,避免在添加音效时产生的音效噪音。
可选的,步骤S102的具体实施方式还可为将待添加音效的音效强度值分为上述n组音效强度调节值,该n组音效强度调节值的总和为该待添加音效的音效强度值,并将该n组音效强度调节值依次叠加至该音频数据上。该实施方式的具体实现方法可参见图2~图4所示实施例。
本发明实施例中,通过获取需要添加音效的音频数据,并将n组音效强度调节值依次添加至所述音频数据上,使得音频数据的音效逐渐增强至待添加音效的音效强度值。能够实现平缓的添加音效的音效强度,从而避免在添加音效时产生的音效噪音,提升了用户体验。
请参阅图2,图2是本发明实施例公开的一种音效添加方法的流程示意图。该方法可由装置实施例中描述的用户终端实现。如图2所示,该方法可包括以下步骤。
步骤S201,获取需要添加音效的音频数据。
在一个实施例中,首先获取需要添加音效的音频数据。其中,该音频数据可从音频文件中获取,也可从视频文件中获取。本发明实施例不做限定。其中,该获取的音频数据为需要添加音效的音频数据,该音频数据可为音频文件或视 频文件中的整体文件数据,也可为其中部分音频数据,即对原始的音频数据进行截取等操作,以获取需要添加音效的音频数据。其中,该音频数据的时长可大于或等于待添加音效的添加时长。
步骤S202,将待添加音效的音效强度值分为n组音效强度调节值,所述n组音效强度调节值的总和为所述音效强度值,n为整数。
在一个实施例中,当获取到需要添加音效的音频数据后,可将待添加音效的音效强度值分为n组音效强度调节值,其中,n组音效强度调节值的总和为该音效强度值。具体的,待添加音效中可包括至少一个音效参数,并且每个音效参数对应一个音效强度值。当待添加音效中包括多个音效参数时,将待添加音效中的每个音效参数对应的音效强度值分为n组音效强度调节值。将每个音效参数对应的音效强度值分为n组音效强度调节值的方式可相同,也可根据具体的音效参数确定不同的划分方式。如某些音效参数基于对音频数据输出噪音的影响不同,其划分为n组音效强度调节值的方式也不同。
当然,同一音效参数对应的音效强度值基于应用场景的不同,也可确定相同或不同的分为n组音效强度调节值的方式。如将音效强度值均等值划分为n组音效强度调节值,即音效强度值=n*音效强度调节值;又如将音效强度值划分为n组不同的音效强度调节值,该n组不同的音效强度调节值可逐组增加,也可逐组减小。当然,该n组不同的音效强度值还可根据其他的参数确定不同的变化趋势,在此本发明实施例不做限定。
步骤S203,将所述n组音效强度调节值依次叠加至所述音频数据上。
在一个实施例中,当将待添加音效的音效强度分为n组音效强度调节值后,可将该n组音效强度调节值依次添加至上述获取的音频数据上,且在后添加的音效强度与之前添加的所有音效强度叠加生效,即添加的音效强度调节值是叠加生效的。具体的,由于该n组音效强度调节值均小于整体的音效强度值,从而,将该n组音效强度调节值依次添加至音频数据上可避免整体音效强度值增加至音频数据上导致的音频输出噪音。能够将音效平滑的添加至音频数据上。其中,该n组音效强度调节值可按照调节值由大到小或由小到大的顺序添加至音频数据上,当然,该n组音效强度调节值也可根据其他参数依次添加至音频数据上,如根据音频数据的音频强度或者音频数据的音频类型等,当某一时刻音频数据的音频强度高,则该时刻对应的一组音效强度调节值可设置相对较小,以避免产生噪音,或者在音频输出强度允许的范围内,设置该时刻对应的一组音效强度调节值相对较大,以辅助增强该时刻高音频强度的音频数据。当然,上述判断设置音效强度调节值为较大或为较小,还可结合音频类型,若音频类型为平缓类型,如音频数据为轻音乐等,则可设置该组音效强度调节值为较小,以更平缓的方式添加音效;若音频类型为强烈类型,如音频数据为摇滚乐等,则可设置该组音效强度调节值为较大,以在音频输出强度允许的范围内,突出音频数据的输出效果。当然,n组音效强度调节值还可以其他方式依次添加至音频数据上,在此本发明实施例不做限定。
需要说明的是,本发明实施例仅提供了一种步骤S201与步骤S202的执行顺序;当然,步骤S201与步骤S202的执行顺序并不仅限于本发明实施例所述的一种情况,步骤S201可在步骤S202执行后执行,步骤S201与步骤S202也可并列执行,在此,本发明实施例不做限定。
本发明实施例中,通过获取需要添加音效的音频数据,并将n组音效强度调节值依次添加至所述音频数据上,且每次添加的音效强度调节值与之前添加的音效强度调节值叠加,使得音频数据的音效逐渐增强至待添加音效的音效强度值。能够实现平缓的添加音效的音效强度,从而避免在添加音效时产生的音效噪音,提升了用户体验。
请参阅图3,图3是本发明实施例公开的另一种音效添加方法的流程示意图。该方法可由装置实施例中描述的用户终端实现。如图3所示,该方法可包括以下步骤。
步骤S301,获取需要添加音效的音频数据。
在一个实施例中,首先获取需要添加音效的音频数据。其中,该音频数据可从音频文件中获取,也可从视频文件中获取。本发明实施例不做限定。其中,该获取的音频数据为需要添加音效的音频数据,该音频数据可为音频文件或视频文件中的整体文件数据,也可为其中部分音频数据,即对原始的音频数据进行截取等操作,以获取需要添加音效的音频数据。其中,该音频数据的时长可大于或等于待添加音效的添加时长。
步骤S302,将待添加的音效强度值分为n组相同的音效强度调节值;或者,将所述待添加的音效强度值分为n组逐组递增的音效强度调节值;或者,将所述待添加的音效强度值分为n组逐组递减的音效强度调节值,所述n为正整数。
在一个实施例中,可将待添加的音效强度值分为n组等值的音效强度调节值;或者,将待添加的音效强度值分为n组逐组递增的音效强度调节值;或者,将待添加的音效强度值分为n组逐组递减的音效强度调节值。其中,上述几种划分待添加的音效强度值的方法中,n组音效强度调节值的总和为待添加音效强度值。
具体的,n的数量确定可基于待添加音效的添加时长,若待添加音效的添加时长较长,则确定n取值较大,以实现更加平滑的添加音效强度,若待添加音效的添加时长较短,则确定n取值较小。其中,可将待添加的音效强度值分为n组等值的音效强度调节值,即在每个添加时刻或添加步长时,向音频数据添加的音效强度相同,从而保证平缓的添加音效,可避免音效添加的过程中产生噪音。或者,可将待添加的音效强度值分为n组逐组递增或者n组逐组递减的音效强度调节值。可选的,n组逐组递增或逐组递减的音效强度调节值可为等差数列,即第i+1组与第i组的音效强度调节值的差值相同,该差值可为正值,即形成n组逐组递增的音效强度调节值,该差值也可为负值,即形成n组逐组递减的音效强度调节值。其中,可根据不同的应用场景确定不同的划分方式,若在添加音效的添加时长内音频数据的音频强度逐渐变弱,则音效强度值可划分 为n组逐组递增的音效强度调节值,若一年数据的音频强度逐渐变强,则音效轻度至可划分为n组逐渐递减的音效强度值,以避免音效添加期间产生的音效噪音。
步骤S303,将所述n组音效强度调节值依次叠加至所述音频数据上。
在一个实施例中,将根据上述方式分出的n组音效强度调节值依次叠加至音频数据上。具体的,若将待添加的音效强度分为n组逐组递增的音效强度调节值,则该n组音效强度调节值以递增的方式叠加至音频数据上;若将待添加的音效强度分为n组逐组递减的音效强度调节值,则该n组音效强度调节值以递减的方式依次叠加至音频数据上。若在添加音效的添加时间段内预设了添加步长,则在每个添加步长对应时刻上叠加一组音效强度调节值。
本发明实施例中,通过获取需要添加音效的音频数据,并将n组音效强度调节值依次添加至所述音频数据上,使得音频数据的音效逐渐增强至待添加音效的音效强度值。能够实现平缓的添加音效的音效强度,从而避免在添加音效时产生的音效噪音,提升了用户体验。
请参阅图4,图4是本发明实施例公开的又一种音效添加方法的流程示意图。该方法可由装置实施例中描述的用户终端实现。如图4所示,该方法可包括以下步骤。
步骤S401,获取需要添加音效的音频数据。
在一个实施例中,首先获取需要添加音效的音频数据。其中,该音频数据可从音频文件中获取,也可从视频文件中获取。本发明实施例不做限定。其中,该获取的音频数据为需要添加音效的音频数据,该音频数据可为音频文件或视频文件中的整体文件数据,也可为其中部分音频数据,即对原始的音频数据进行截取等操作,以获取需要添加音效的音频数据。其中,该音频数据的时长可大于或等于待添加音效的添加时长。
步骤S402,确定所述音频数据的音频强度值。
在一个实施例中,当获取到对应的音频数据后,还可确定该段音频数据的音频强度值,其中,该段音频强度值为音频数据的初始强度值,即未调节前的音频强度值,当叠加音效强度后,会得到调节后的音频强度值。
步骤S403,在所述待添加音效的添加时间段内,按照预设的添加步长采集n组音频强度值。
在一个实施例中,根据确定的音频数据的音频强度值,将待添加音效的音效强度值分为与其对应的n组音效强度调节值。上述方式可通过步骤S303~步骤S305实现。具体的,在待添加音效的添加时间段内,按照预设的添加步长采集n组音频强度值,即预设的添加步长确定了添加音效的时间点,通过采集n组音频强度值,可确定该n组音频强度值对应的音效强度调节值。如一组音频强度值高,则为了避免添加产生噪音,确定该组音频强度值对应的音效强度调节值较小,或者,在产生噪音的阈值范围内,确定该组音频强度调节值较大,以增强音频输出效果。
步骤S404,确定所述音频数据的音频类型。
在一个实施例中,还可确定音频数据的音频类型,该音频类型可分为平缓类型、强烈类型等,用以表示音频数据的输出效果。需要说明的是,该音频数据的音频类型为获取的该段音频数据的音频类型,并不一定代表整段音频文件的音频类型。可通过整体判断该段音频数据的音频强度,以确定该段音频数据的音频类型。若整体音频强度强,则音频类型为强烈类型,若整体音频强度弱,则音频类型为平缓类型。
步骤S405,根据所述音频类型确定所述n组音频强度值对应的n组音效强度调节值。
在一个实施例中,可根据确定的音频数据的音频类型,确定n组音频强度值对应的n组音效强度调节值。具体的,若音频数据的音频类型确定出为强烈类型,则音频强度值与音效强度调节值在输出的音频强度不产生噪音的范围内,成正相关关系,即音频强度值越高,则该组对应的音效强度调节值越大;若音频数据的音频类型确定出为平缓类型,则音频强度值与音效强度调节值成负相关关系,即音频强度值越高,则该组对应额音效强度调节值越小。
本发明实施例中,可根据音频数据的音频类型及音频强度确定与其对应的n组音效强度调节值,进而,在避免产生音效噪音的基础上,能够增强该音频数据的输出效果,进一步提升用户体验。
下面为本发明装置实施例,本发明装置实施例用于执行本发明方法实施例所实现的方法。请参阅图5,图5是本发明实施例公开的一种音效添加装置的单元组成框图。如图5所示,该用户终端可以包括获取单元501以及添加单元502,其中:
所述获取单元501,用于获取需要添加音效的音频数据;
所述添加单元502,用于将n组音效强度调节值依次添加至所述音频数据上,使得音频数据的音效逐渐增强至待添加音效的音效强度值,所述n为正整数。
其中,上述单元对实现的功能的具体描述可参见图1所示实施例中相关步骤的具体描述。
本发明实施例中,通过获取需要添加音效的音频数据,并将n组音效强度调节值依次添加至所述音频数据上,使得音频数据的音效逐渐增强至待添加音效的音效强度值。能够实现平缓的添加音效的音效强度,从而避免在添加音效时产生的音效噪音,提升了用户体验。
请参阅图6,图6是本发明实施例公开的另一种音效添加装置的单元组成框图。如图5所示,该用户终端可以包括获取单元601以及添加单元602。
在一个实施例中,获取单元601,用于获取需要添加音效的音频数据;
添加单元602,用于将n组音效强度调节值依次且独立地添加至所述音频数据,所述n组音效强度调节值从弱到强变化,所述第n组音效强度调节值为所述待添加音效的音效强度值,所述n为正整数。
在另一个实施例中,获取单元601,用于获取需要添加音效的音频数据;
添加单元602包括划分单元及叠加单元。
其中,划分单元,用于将所述待添加的音效强度值分为n组相同的音效强度调节值;或者,将所述待添加的音效强度值分为n组逐组递增的音效强度调节值;或者,将所述待添加的音效强度值分为n组逐组递减的音效强度调节值;
可选的,所述划分单元用于:
将所述待添加的音效强度值分为n组相同的音效强度调节值;或者,
将所述待添加的音效强度值分为n组逐组递增的音效强度调节值;或者,
将所述待添加的音效强度值分为n组逐组递减的音效强度调节值。
可选的,所述n组逐组递增的音效强度调节值,或者所述n组逐组递减的音效强度调节值为等差数列。
以及叠加单元,用于将所述n组音效强度调节值依次叠加至所述音频数据上。
其中,上述单元对实现的功能的具体描述可参见图2所示实施例中相关步骤的具体描述。
在又一个实施例中,获取单元601,用于获取需要添加音效的音频数据;
添加单元602包括确定单元、划分单元及叠加单元。
其中,确定单元,用于确定所述音频数据的音频强度值;
划分单元,用于将所述待添加音效的音效强度值分为n组与所述音频强度值对应的音效强度调节值;
可选的,所述划分单元具体用于在所述待添加音效的添加时间段内,按照预设的添加步长采集n组音频强度值;
确定所述音频数据的音频类型;
根据所述音频类型确定所述n组音频强度值对应的n组音效强度调节值。
叠加单元,用于将所述n组音效强度调节值依次添加至所述音频数据上。
其中,上述单元对实现的功能的具体描述可参见图3所示实施例中相关步骤的具体描述。
需要注意的是,本发明装置实施例所描述的用户终端是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。
本发明实施例中,通过获取需要添加音效的音频数据,并将n组音效强度调节值依次添加至所述音频数据上,使得音频数据的音效逐渐增强至待添加音效的音效强度值。能够实现平缓的添加音效的音效强度,从而避免在添加音效时产生的音效噪音,提升了用户体验。
本发明实施例还提供了另一种用户终端,如图7所示,包括:处理器101, 存储器102,通信接口103、通信总线104;其中,处理器101、存储器102和通信接口103通过通信总线104连接并完成相互间的通信;处理器101通过通信接口103控制与外部蜂窝网的无线通信;通信接口103包括但不限于天线、放大器、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。存储器102包括以下至少一种:随机存取存贮器、非易失性存储器以及外部存储器,存储器102中存储有可执行程序代码,该可执行程序代码能够引导处理器101执行本发明方法实施例中具体披露的方法,包括以下步骤:
所述处理器101获取需要添加音效的音频数据;
所述处理器101将n组音效强度调节值依次添加至所述音频数据上,使得音频数据的音效逐渐增强至待添加音效的音效强度值,所述n为正整数。
本发明实施例中,通过获取需要添加音效的音频数据,并将n组音效强度调节值依次添加至所述音频数据上,使得音频数据的音效逐渐增强至待添加音效的音效强度值。能够实现平缓的添加音效的音效强度,从而避免在添加音效时产生的音效噪音,提升了用户体验。
此外,上述存储器102中存储的可执行程序代码还用于执行上述图2-4所示的方法的相关步骤。在此暂不赘述。
本发明实施例还提供了一种用户终端,如图8所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该用户终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以用户终端为手机为例:
图8示出的是与本发明实施例提供的用户终端相关的手机的部分结构的框图。参考图8,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(wireless fidelity,WiFi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图8中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图8对手机的各个构成部件进行具体的介绍:
RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。
存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据手机的使用所创建的数据等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入设备930可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆、指纹识别模组等中的一种或多种。
显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示屏941,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏941。
手机还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏941的亮度,接近传感器可在手机移动到耳边时,关闭显示屏941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号输出;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据输出处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据输出至存储器920以便进一步处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图8示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器980可包括一个或多个核心处理单元;优选的,处 理器980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。
手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。
前述图1-图4所示的实施例中任一实施例,各步骤方法流程可以基于该手机的结构实现。
前述图5-图6所示的实施例中任一实施例,各单元功能可以基于该手机的结构实现。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种音效添加方法的部分或全部步骤。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售 或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims (20)

  1. 一种音效添加方法,其特征在于,包括:
    获取需要添加音效的音频数据;
    将n组音效强度调节值依次添加至所述音频数据上,使得音频数据的音效逐渐增强至待添加音效的音效强度值,所述n为正整数。
  2. 如权利要求1所述方法,其特征在于,所述将n组音效强度调节值依次添加至所述音频数据上,使得音频数据的音效逐渐增强至待添加音效的音效强度值,包括:
    将待添加音效的音效强度值分为所述n组音效强度调节值,所述n组音效强度调节值的总和为所述音效强度值;
    将所述n组音效强度调节值依次叠加至所述音频数据上。
  3. 如权利要求2所述方法,其特征在于,所述将待添加音效的音效强度值分为n组音效强度调节值,包括:
    将所述待添加的音效强度值分为n组相同的音效强度调节值;或者,
    将所述待添加的音效强度值分为n组逐组递增的音效强度调节值;或者,
    将所述待添加的音效强度值分为n组逐组递减的音效强度调节值。
  4. 如权利要求3所述方法,其特征在于,所述n组逐组递增的音效强度调节值,或者所述n组逐组递减的音效强度调节值为等差数列。
  5. 如权利要求2所述方法,其特征在于,所述将待添加音效的音效强度值分为n组音效强度调节值之前,所述方法还包括:
    确定所述音频数据的音频强度值;
    所述将待添加音效的音效强度值分为n组音效强度调节值,包括:
    将所述待添加音效的音效强度值分为n组与所述音频强度值对应的音效强度调节值。
  6. 如权利要求5所述方法,其特征在于,所述将所述待添加音效的音效强度值分为n组与所述音频强度值对应的音效强度调节值,包括:
    在所述待添加音效的添加时间段内,按照预设的添加步长采集n组音频强度值;
    确定所述音频数据的音频类型;
    根据所述音频类型确定所述n组音频强度值对应的n组音效强度调节值。
  7. 如权利要求1所述方法,其特征在于,所述将n组音效强度调节值依次 添加至所述音频数据上,使得音频数据的音效逐渐增强至待添加音效的音效强度值,包括:
    将n组音效强度调节值依次且独立地添加至所述音频数据,所述n组音效强度调节值从弱到强变化,所述第n组音效强度调节值为所述待添加音效的音效强度值。
  8. 如权利要求7所述方法,其特征在于,所述将n组音效强度调节值依次添加至所述音频数据上,使得音频数据的音效逐渐增强至待添加音效的音效强度值之前,所述方法还包括:
    根据所述音频数据的输出效果将所述待添加音效划分为n组音效强度调节值。
  9. 如权利要求8所述方法,其特征在于,所述根据所述音频数据的输出效果将所述待添加音效划分为n组音效强度调节值,包括:
    根据所述音频数据的输出效果所处的强度等级,确定与所述强度等级对应的第一组音效强度调节值以及n的取值。
  10. 一种音效添加装置,其特征在于,包括:
    获取单元,用于获取需要添加音效的音频数据;
    添加单元,用于将n组音效强度调节值依次添加至所述音频数据上,使得音频数据的音效逐渐增强至待添加音效的音效强度值,所述n为正整数。
  11. 如权利要求10所述装置,其特征在于,所述添加单元包括:
    划分单元,用于将待添加音效的音效强度值分为所述n组音效强度调节值,所述n组音效强度调节值的总和为所述音效强度值;
    叠加单元,用于将所述n组音效强度调节值依次叠加至所述音频数据上。
  12. 如权利要求11所述装置,其特征在于,所述划分单元用于:
    将所述待添加的音效强度值分为n组相同的音效强度调节值;或者,
    将所述待添加的音效强度值分为n组逐组递增的音效强度调节值;或者,
    将所述待添加的音效强度值分为n组逐组递减的音效强度调节值。
  13. 如权利要求12所述装置,其特征在于,所述n组逐组递增的音效强度调节值,或者所述n组逐组递减的音效强度调节值为等差数列。
  14. 如权利要求11所述装置,其特征在于,所述添加单元还包括:
    确定单元,用于确定所述音频数据的音频强度值;
    所述划分单元,用于将所述待添加音效的音效强度值分为n组与所述音频 强度值对应的音效强度调节值。
  15. 如权利要求14所述装置,其特征在于,所述划分单元用于:
    在所述待添加音效的添加时间段内,按照预设的添加步长采集n组音频强度值;
    确定所述音频数据的音频类型;
    根据所述音频类型确定所述n组音频强度值对应的n组音效强度调节值。
  16. 如权利要求10所述装置,其特征在于,所述添加单元用于:
    将n组音效强度调节值依次且独立地添加至所述音频数据,所述n组音效强度调节值从弱到强变化,所述第n组音效强度调节值为所述待添加音效的音效强度值。
  17. 如权利要求16所述装置,其特征在于,所述添加单元用于:
    根据所述音频数据的输出效果将所述待添加音效划分为n组音效强度调节值。
  18. 如权利要求17所述装置,其特征在于,所述添加单元用于:
    根据所述音频数据的输出效果所处的强度等级,确定与所述强度等级对应的第一组音效强度调节值以及n的取值。
  19. 一种用户终端,其特征在于,包括:处理器、存储器;
    所述存储器存储有可执行程序代码;
    所述处理器用于调用所述存储器中的可执行程序代码,执行如权利要求1-9任意一项所述的方法。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行如权利要求1-9中任意一个方法。
PCT/CN2017/088767 2016-06-16 2017-06-16 音效添加方法及用户终端 WO2017215658A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610438867.4 2016-06-16
CN201610438867.4A CN106131747A (zh) 2016-06-16 2016-06-16 一种音效添加方法及用户终端

Publications (1)

Publication Number Publication Date
WO2017215658A1 true WO2017215658A1 (zh) 2017-12-21

Family

ID=57470852

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/088767 WO2017215658A1 (zh) 2016-06-16 2017-06-16 音效添加方法及用户终端

Country Status (2)

Country Link
CN (1) CN106131747A (zh)
WO (1) WO2017215658A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109473117A (zh) * 2018-12-18 2019-03-15 广州市百果园信息技术有限公司 音频特效叠加方法、装置及其终端

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131747A (zh) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 一种音效添加方法及用户终端
CN110072181B (zh) * 2019-03-27 2021-03-19 广州飞达音响股份有限公司 低音增感方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060034464A1 (en) * 2004-08-16 2006-02-16 Denso Corporation Sound reproduction device
CN101409094A (zh) * 2008-10-30 2009-04-15 炬力集成电路设计有限公司 一种消除音效切换噪声的方法和音频播放设备
CN103677724A (zh) * 2012-09-03 2014-03-26 联想(北京)有限公司 电子设备及其信息处理方法
CN104810035A (zh) * 2015-04-01 2015-07-29 广东欧珀移动通信有限公司 一种音效控制方法及设备
CN106131747A (zh) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 一种音效添加方法及用户终端

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3037166B2 (ja) * 1996-12-11 2000-04-24 日本電気移動通信株式会社 音量調整装置
JP2012213114A (ja) * 2011-03-31 2012-11-01 Jvc Kenwood Corp 音響信号処理装置及び音響信号処理方法
CN102752687A (zh) * 2012-06-28 2012-10-24 华为终端有限公司 终端设备音效调整方法以及终端设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060034464A1 (en) * 2004-08-16 2006-02-16 Denso Corporation Sound reproduction device
CN101409094A (zh) * 2008-10-30 2009-04-15 炬力集成电路设计有限公司 一种消除音效切换噪声的方法和音频播放设备
CN103677724A (zh) * 2012-09-03 2014-03-26 联想(北京)有限公司 电子设备及其信息处理方法
CN104810035A (zh) * 2015-04-01 2015-07-29 广东欧珀移动通信有限公司 一种音效控制方法及设备
CN106131747A (zh) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 一种音效添加方法及用户终端

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109473117A (zh) * 2018-12-18 2019-03-15 广州市百果园信息技术有限公司 音频特效叠加方法、装置及其终端

Also Published As

Publication number Publication date
CN106131747A (zh) 2016-11-16

Similar Documents

Publication Publication Date Title
US10649720B2 (en) Sound effect configuration method and system and related device
WO2017215652A1 (zh) 音效参数的调节方法及移动终端
WO2017215653A1 (zh) 音量处理方法及用户终端
WO2017215512A1 (zh) 音频流处理方法及相关设备
WO2017206902A1 (zh) 应用控制方法及相关设备
WO2017215629A1 (zh) 音效配置方法及相关设备
WO2017206895A1 (zh) 应用控制方法及相关设备
WO2017215507A1 (zh) 一种音效处理方法及移动终端
WO2018219119A1 (zh) 应用功能的控制方法及相关产品
WO2015035870A1 (zh) 多cpu调度方法及装置
WO2018049934A1 (zh) 一种数据迁移的方法及终端
WO2019129092A1 (zh) 一种降帧率拍照方法、移动终端及存储介质
WO2018049903A1 (zh) 数据迁移方法及相关设备
WO2018188278A1 (zh) 一种内存资源的分配方法及终端设备
US10687207B2 (en) Method for data migration and terminal
WO2018161543A1 (zh) 指纹处理资源的控制方法及设备
WO2017215658A1 (zh) 音效添加方法及用户终端
WO2018049905A1 (zh) 数据迁移方法及相关设备
WO2018049904A1 (zh) 数据迁移方法及相关设备
WO2019076250A1 (zh) 推送消息的管理方法及相关产品
WO2017031647A1 (zh) 一种检测触摸方式的方法及装置
WO2018214745A1 (zh) 应用控制方法及相关产品
WO2019072179A1 (zh) 应用程序运行控制方法及装置
WO2017206903A1 (zh) 应用控制方法及相关设备
WO2018219090A1 (zh) 快速查找应用的方法及相关产品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17812769

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17812769

Country of ref document: EP

Kind code of ref document: A1