WO2017215654A1 - 一种防止音效突变的方法及终端 - Google Patents

一种防止音效突变的方法及终端 Download PDF

Info

Publication number
WO2017215654A1
WO2017215654A1 PCT/CN2017/088731 CN2017088731W WO2017215654A1 WO 2017215654 A1 WO2017215654 A1 WO 2017215654A1 CN 2017088731 W CN2017088731 W CN 2017088731W WO 2017215654 A1 WO2017215654 A1 WO 2017215654A1
Authority
WO
WIPO (PCT)
Prior art keywords
sound effect
sound
terminal
parameter
played
Prior art date
Application number
PCT/CN2017/088731
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 WO2017215654A1 publication Critical patent/WO2017215654A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output

Definitions

  • the present invention relates to the field of terminals, and in particular to a method and terminal for preventing a sudden change in sound effects.
  • terminals such as smart phones, tablets, etc.
  • terminals have become an indispensable part of people's daily lives.
  • the user usually performs music playback or video playback through the terminal, but due to the different sound support capabilities of the terminal, the same sound effect plays different effects in different terminals.
  • Embodiments of the present invention provide a method and terminal for preventing a sudden change in sound effects, which can prevent a sudden change in sound effects.
  • a first aspect of an embodiment of the present invention discloses a method for preventing a sudden change in sound effects, the method comprising:
  • the parameter of the sound effect corresponding to the to-be-played audio is adjusted according to the sound effect support capability of the terminal.
  • the method also includes:
  • the parameter of the sound effect corresponding to the to-be-played audio is adjusted according to the sound effect support capability of the terminal Thereafter, the method further includes:
  • the music to be played is played according to the new sound mode.
  • the method further includes:
  • the correspondence between the sound mode corresponding to the audio to be played and the parameter of the adjusted sound effect is saved.
  • the method further includes:
  • the terminal does not store the sound mode corresponding to the sound effect parameter, generating a sound mode corresponding to the parameter of the sound effect.
  • a second aspect of the present invention discloses an apparatus for preventing a sudden change in sound effects, the apparatus comprising:
  • An acquiring unit configured to acquire a feature point of the sound effect corresponding to the audio to be played
  • a determining unit configured to determine, according to the feature point of the sound effect, whether the sound effect corresponding to the to-be-played audio exceeds the sound effect support capability of the terminal;
  • an adjusting unit configured to adjust a parameter of the sound effect corresponding to the to-be-played audio according to the sound effect supporting capability of the terminal, if the sound effect corresponding to the to-be-played audio exceeds the sound effect supporting capability of the terminal.
  • the apparatus further includes a first generating unit:
  • the first generating unit is configured to generate a sound effect mode corresponding to the audio to be played according to the parameter of the adjusted sound effect.
  • the device further includes a prompting unit and a playing unit;
  • the determining unit is configured to determine between the parameter of the adjusted sound effect and the parameter of the sound effect before the adjustment Difference
  • the prompting unit is configured to prompt the user to switch the sound mode mode if the difference is greater than a preset threshold
  • the playing unit is configured to play the to-be-played music according to the new sound mode if the new sound mode selected by the user is received.
  • the apparatus further includes a saving unit
  • the saving unit is configured to save a correspondence between a sound mode corresponding to the to-be-played audio and a parameter of the adjusted sound effect if the user does not receive the instruction to switch the sound effect mode within the preset time.
  • the device further includes a determining unit and a second generating unit;
  • the determining unit is configured to determine whether a sound effect mode corresponding to the sound effect parameter is stored in the terminal if the sound effect corresponding to the to-be-played audio does not exceed the sound effect support capability of the terminal;
  • the second generating unit is configured to generate a sound mode corresponding to the parameter of the sound effect if the terminal does not store the sound mode corresponding to the sound effect parameter.
  • a third aspect of the present invention discloses a terminal, where the terminal includes:
  • a processor coupled to the memory
  • the processor invokes the executable program code stored in the memory to perform any one of the first to fourth possible implementations of the first aspect or the first aspect.
  • a fourth aspect of the invention discloses a computer storage medium storing a program, the program being executed to perform the following operations:
  • the parameter of the sound effect corresponding to the to-be-played audio is adjusted according to the sound effect support capability of the terminal.
  • the parameter of the sound effect corresponding to the to-be-played audio is adjusted according to the sound effect support capability of the terminal After the operation, the operation further includes:
  • the operation After the adjusting the parameter of the sound effect corresponding to the audio to be played according to the sound effect support capability of the terminal, the operation also includes:
  • the music to be played is played according to the new sound mode.
  • the operation further includes:
  • the correspondence between the sound mode corresponding to the audio to be played and the parameter of the adjusted sound effect is saved.
  • the method further includes:
  • the terminal does not store the sound mode corresponding to the sound effect parameter, generating a sound mode corresponding to the parameter of the sound effect.
  • FIG. 1 is a schematic flowchart diagram of a method for preventing a sudden change in sound effects according to an embodiment of the present invention
  • FIG. 2 is a schematic flow chart of another method for preventing a sudden change in sound effects according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a device for preventing a sound effect abrupt according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of another apparatus for preventing sound effect mutation according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a physical device of a terminal according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a physical device of a mobile phone according to an embodiment of the present invention.
  • the embodiment of the invention provides a method and a terminal for processing sound effects, which can ensure the normal operation of the sound effect service in the terminal.
  • a method for preventing a sound effect mutation comprising: acquiring a feature point of a sound effect corresponding to an audio to be played; determining, according to a feature point of the sound effect, the audio to be played Whether the sound effect exceeds the sound effect support capability of the terminal; if the sound effect corresponding to the audio to be played exceeds the sound effect support capability of the terminal, the sound effect corresponding to the audio to be played is adjusted according to the sound effect support capability of the terminal .
  • FIG. 1 is a schematic flowchart diagram of a method for preventing a sudden change in sound effects according to an embodiment of the present invention.
  • a method for preventing a sudden change in sound effects provided by an embodiment of the present invention includes the following contents:
  • the execution body of the method is a terminal, for example, a smart phone or a tablet.
  • Electronic devices with music playback applications such as brains, smart wearable devices, computers, etc.
  • the equalizer includes ordinary sound effects, rock music sound effects, pop music sound effects, classical music sound effects, etc., but many people prefer more powerful and powerful bass, and some people pursue bright and pleasant high-pitched sounds, then they need to pass the equalizer.
  • Custom sound effects Specifically, when the user adjusts the sound frequency and frequency response through the equalizer, different sound effects can be obtained.
  • the frequency range (in Hz) indicates the range between the lowest operating frequency of the power amplifier to the highest operating frequency; the frequency response (in dB per dB), and the output gain of the power amplifier changes with the frequency of the input signal. .
  • the normal sound effect is that there is no enhancement or attenuation in all frequency bands; the rock music sound effect is to increase the height of the high and low ends, so that the bass has strong rhythm, the treble is clear and even harsh; the pop music sound is enhanced compared with the rock music sound.
  • the high-pitched part cuts down the low frequency, which makes the instrument perform better; the jazz sound is to enhance the low frequency and 3-5KHz part to enhance the sense of presence.
  • low frequencies below 150 Hz are used; 150-1200 Hz is the intermediate frequency; above 1200 Hz is the high frequency.
  • the audio to be played may be music or a part of the sound in the video.
  • the feature points of the sound effects corresponding to the audio to be played may be frequency sampling points of different frequency bands of the audio to be played.
  • the low frequency portion of the sampled audio to be played is obtained at 100 Hz, and the adjacent intermediate frequency portion is 300 Hz or the like.
  • the sound effect support capability of the terminal may be determined according to the processor parameter of the terminal, the size of the terminal memory, and the current memory usage of the terminal; for example, the terminal processor has a clock speed of 2 GHz, a memory of 3 G, and a current memory occupancy rate of 30%, then the terminal
  • the range that supports audio hopping is 800. That is to say, if the frequency difference corresponding to the sound effect is less than 800, no mutation will occur. For example, if the current sound frequency is 300 Hz and the next moment suddenly becomes 1000 Hz, then this hopping terminal can be processed without sudden changes in sound effects; for example, when the sound frequency jumps from 200 to 1400, then There may be a sudden change in sound effects.
  • common mutations include audio pauses and unclear phenomena.
  • the terminal can support the range of 800, then since the range from 100 to 1000 Hz exceeds 800, the terminal can narrow the range of 100 Hz to 1000 Hz. For example, raising the frequency of the low frequency part to 200 Hz or more, or lowering the frequency of the intermediate frequency part to below 900 Hz, of course, it is also possible to raise the low frequency part while reducing the intermediate frequency part.
  • FIG. 2 is a schematic flow chart of another method for preventing a sudden change in sound effects according to another embodiment of the present invention.
  • another method for preventing sound effect mutation provided by another embodiment of the present invention may include the following contents:
  • the low frequency portion of the sampled audio to be played is obtained at 200 Hz, and the adjacent intermediate frequency portion is at 500 Hz or the like.
  • the sound effect support capability of the terminal may be determined according to the processor parameter of the terminal, the size of the terminal memory, and the current memory usage of the terminal; for example, the terminal processor has a frequency of 4 GHz, a memory of 8 G, and a current memory occupancy rate of 30%, then the terminal
  • the range that supports audio hopping is 2000. That is to say, if the frequency difference corresponding to the sound effect is less than 2000, no mutation will occur. For example, if the current sound frequency is 300Hz and the next moment suddenly becomes 1000Hz, then the jump terminal can be processed without sudden changes in sound effects; for example, when the sound frequency jumps from 100 to 2200, then There may be a sudden change in sound effects.
  • common mutations include audio pauses and unclear phenomena.
  • the current low frequency part feature point is 100 Hz
  • the adjacent intermediate frequency part is 1000 Hz
  • the terminal can support the range of 800, then since it exceeds 800 from 100 to 1000 Hz, the terminal is
  • the range of 100 Hz to 1000 Hz can be reduced, for example, the frequency of the low frequency part is raised to 200 Hz or more, or the frequency of the intermediate frequency part is lowered to 900 Hz or less, and of course, the low frequency part can be raised while the intermediate frequency part is lowered.
  • the name of the sound effect mode corresponding to the to-be-played audio may be automatically generated, or the user may be reminded to perform the naming.
  • the preset threshold is 200 Hz
  • the preset threshold is exceeded from 200 to 500.
  • the step of generating a sound mode corresponding to the adjusted sound effect frequency is expanded. Therefore, by implementing the technical solution provided by the present invention, it is possible to generate a sound effect mode corresponding to the to-be-played audio within the range of terminal capabilities.
  • FIG. 3 is a schematic structural diagram of a device for preventing sound effect abruptness according to an embodiment of the present invention.
  • an embodiment of the present invention provides a sound attenuating device 300, wherein the sound attenuating device can be a smart phone, a tablet, a smart wearable device, or the like.
  • the sound effect preventing device 300 includes an obtaining unit 301, a determining unit 302, and an adjusting unit 303;
  • the acquiring unit 301 is configured to acquire feature points of the sound effect corresponding to the audio to be played;
  • a determining unit 302 configured to determine, according to the feature point of the sound effect, the audio corresponding to the to-be-played audio Whether the sound effect exceeds the sound support capability of the terminal;
  • the adjusting unit 303 is configured to adjust a parameter of the sound effect corresponding to the to-be-played audio according to the sound effect supporting capability of the device if the sound effect corresponding to the to-be-played audio exceeds the sound effect supporting capability of the device.
  • the obtaining unit 301, the determining unit 302, and the adjusting unit 303 may be used to perform the method described in the steps S101 to S103 in the first embodiment. For details, refer to the description of the method in the embodiment 1, and details are not described herein again.
  • FIG. 4 is a schematic structural diagram of a device for preventing sound effect mutation according to an embodiment of the present invention.
  • an embodiment of the present invention provides a sound attenuating device 400, wherein the sound attenuating device can be a smart phone, a tablet, a smart wearable device, or the like.
  • the sound attenuating device 400 includes an obtaining unit 401, a determining unit 402, an adjusting unit 403, a first generating unit 404, a prompting unit 405, a playing unit 406, a saving unit 407, a determining unit 408, and a second generating unit 409.
  • the acquiring unit 401 is configured to acquire feature points of the sound effect corresponding to the audio to be played;
  • the determining unit 402 is configured to determine, according to the feature point of the sound effect, whether the sound effect corresponding to the to-be-played audio exceeds the sound effect support capability of the device;
  • the adjusting unit 403 is configured to adjust a parameter of the sound effect corresponding to the to-be-played audio according to the sound effect supporting capability of the terminal if the sound effect corresponding to the to-be-played audio exceeds the sound effect supporting capability of the device.
  • a first generating unit 404 configured to generate, according to the parameter of the adjusted sound effect, a sound effect mode corresponding to the to-be-played audio
  • the determining unit 402 is further configured to determine a difference between the parameter of the adjusted sound effect and the parameter of the sound effect before the adjustment;
  • the prompting unit 405 is configured to prompt the user to switch the sound mode mode if the difference is greater than a preset threshold
  • the playing unit 406 is configured to play the to-be-played music according to the new sound mode if the new sound mode selected by the user is received.
  • the saving unit 407 is configured to save a correspondence between the sound mode corresponding to the audio to be played and the parameter of the adjusted sound effect if the command for switching the sound mode of the user is not received within the preset time.
  • the determining unit 408 is configured to determine, if the sound effect corresponding to the to-be-played audio does not exceed the sound effect support capability of the device, determine whether the sound effect mode corresponding to the sound effect parameter is stored in the device;
  • the second generating unit 409 is configured to generate a sound effect mode corresponding to the parameter of the sound effect if the device does not store the sound effect mode corresponding to the sound effect parameter.
  • the obtaining unit 401, the determining unit 402, the adjusting unit 403, the first generating unit 404, the prompting unit 405, the playing unit 406, the saving unit 407, the determining unit 408, and the second generating unit 409 can be used to perform the steps in Embodiment 2.
  • the method described in S201 to S210 is described in detail in the description of the method in Embodiment 2, and details are not described herein again.
  • a terminal in another embodiment of the present invention, includes hardware such as a CPU 501, a memory 502, a bus 503, and a display screen 504.
  • the terminal 500 can be a device such as a smart phone, a tablet computer, or a smart wearable device.
  • the CPU 501 executes a program that is stored in the memory 502 in advance, and the execution process specifically includes:
  • the executing process further includes: integrating the sound effect service into the system.
  • the execution process further includes:
  • the execution process further includes:
  • the music to be played is played according to the new sound mode.
  • the correspondence between the sound mode corresponding to the audio to be played and the parameter of the adjusted sound effect is saved.
  • the execution process further includes:
  • the terminal does not store the sound mode corresponding to the sound effect parameter, generating a sound mode corresponding to the parameter of the sound effect.
  • FIG. 6 is a block diagram showing a partial structure of a terminal-related mobile phone according to an embodiment of the present invention.
  • the mobile phone includes: a radio frequency (RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a sensor 650, an audio circuit 660, a wireless fidelity (WiFi) module 670, and a processor 680. And power supply 690 and other components.
  • RF radio frequency
  • the RF circuit 610 can be used for receiving and transmitting information.
  • RF circuit 610 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 610 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 620 can be used to store software programs and modules, and the processor 680 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 620.
  • the memory 620 can mainly include a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function (such as a music playing function, a music feature point collection). The function, the sound effect parameter setting function, etc.); the storage data area can store data created according to the use of the mobile phone (such as the sound mode of the system, the correspondence between the sound effect mode and the sound effect parameter corresponding to the audio to be played), and the like.
  • memory 620 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 630 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 unit 630 can include a fingerprint recognition module 631 and other input devices 632.
  • the fingerprint identification module 631 can collect fingerprint data of the user.
  • the fingerprint identification module 631 can include an optical fingerprint module, a capacitive fingerprint module, and a radio frequency fingerprint module.
  • the fingerprint identification module 631 is taken as an example of a capacitive fingerprint recognition module, and specifically includes a sensing electrode (n1 abnormal sensing electrodes and n2 normal sensing electrodes) and a signal processing circuit (such as an amplifying circuit and a noise) connected to the sensing electrodes. Suppression circuit, analog to digital conversion circuit, etc.).
  • the input unit 630 can also include other input devices 632.
  • other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 640 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 640 can include a display screen 641.
  • the display screen 641 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the fingerprint recognition module 631 and the display screen 641 are two separate components to implement the input and input functions of the mobile phone, in some embodiments, the fingerprint recognition module 631 and the display screen 641 may be Integrated to achieve the input and output functions of the phone.
  • the handset can also include at least one type of sensor 650, 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 641 according to the brightness of the ambient light, and the proximity sensor may turn off the display screen 641 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. It 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.
  • Other sensors such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors are not described here.
  • Audio circuit 660, speaker 661, and microphone 662 provide an audio interface between the user and the handset.
  • the audio circuit 660 can transmit the converted electrical data of the received audio data to the speaker 661 for conversion to the sound signal output by the speaker 661; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal by the audio circuit 660. After receiving, it is converted into audio data, and then processed by the audio data output processor 680, sent to the other mobile phone via the RF circuit 610, or outputted to the memory 620 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 670, which provides users with wireless broadband Internet access.
  • FIG. 6 shows the WiFi module 670, it can be understood that it does not belong to the essential configuration of the mobile phone, and can be omitted as needed within the scope of not changing the essence of the invention.
  • the processor 680 is the control center of the handset, and 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 620, and invoking data stored in the memory 620, executing The phone's various functions and processing data, so that the overall monitoring of the phone.
  • the processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 680.
  • the handset also includes a power source 690 (such as a battery) that supplies power to the various components.
  • a power source 690 such as a battery
  • the power source can be logically coupled to the processor 680 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.
  • each step method flow can be implemented based on the structure of the mobile phone.
  • each unit function can be implemented based on the structure of the mobile phone.
  • the disclosed device may be It's way to achieve it.
  • 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 if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes 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 storage medium.
  • 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 storage medium 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. .

Abstract

一种防止音效突变的方法及终端。所述方法包括:获取待播放音频所对应的音效的特征点(S101);根据所述音效的特征点确定所述待播放音频所对应的音效是否超出终端的音效支持能力(S102);若所述待播放音频所对应的音效超出所述终端的音效支持能力,则根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数(S103)。该方法及终端能够防止音效突变。

Description

一种防止音效突变的方法及终端
本发明要求2016年6月16日递交的发明名称为“一种防止音效突变的方法及终端”的申请号201610438608.1的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
技术领域
本发明涉及终端领域,具体涉及了一种防止音效突变的方法及终端。
背景技术
近年来,随着终端(例如智能手机、平板电脑等)的发展与普及,终端在人们日常生活中已经成为不可或缺的一部分。用户通常通过终端进行音乐播放或视频播放,但是由于终端的音效支持能力不同,导致相同的音效在不同的终端中播放出不同的效果。
发明内容
本发明实施例提供了一种防止音效突变的方法及终端,能够防止音效突变。
本发明实施例第一方面公开了一种防止音效突变的方法,所述方法包括:
获取待播放音频所对应的音效的特征点;
根据所述音效的特征点确定所述待播放音频所对应的音效是否超出终端的音效支持能力;
若所述待播放音频所对应的音效超出所述终端的音效支持能力,则根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数。
结合本发明第一方面,在本发明第一方面的第一种可行的实施方式中,所述根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数之后,所述方法还包括:
根据所述调整后的音效的参数生成与所述待播放音频所对应的音效模式。
结合本发明第一方面,在本发明第一方面的第二种可行的实施方式中,所述根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数之 后,所述方法还包括:
确定调整后的音效的参数与调整前的音效的参数之间的差值;
若所述差值大于预设阈值,则向用户发出音效模式切换的提示;
若接收到所述用户选中的新的音效模式,则按照所述新的音效模式播放所述待播放音乐。
结合本发明第一方面的第二种可行的实施方式,在本发明第一方面的第三种可行的实施方式中,所述方法还包括:
若预设时间内未接收到用户切换音效模式的指令,则保存所述待播放音频对应的音效模式与调整后的音效的参数的对应关系。
结合本发明第一方面或第一方面的第一至第三种任一可能的的实施方式,在本发明第一方面的第四种可行的实施方式中,所述方法还包括:
若所述待播放音频所对应的音效未超出所述终端的音效支持能力,判断终端中是否存储了与所述音效参数对应的音效模式;
若所述终端未存储与所述音效参数对应的音效模式,则生成与所述音效的参数对应的音效模式。
本发明第二方面公开了一种防止音效突变的装置,所述装置包括:
获取单元,用于获取待播放音频所对应的音效的特征点;
确定单元,用于根据所述音效的特征点确定所述待播放音频所对应的音效是否超出终端的音效支持能力;
调整单元,用于若所述待播放音频所对应的音效超出所述终端的音效支持能力,则根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数。
结合本发明第二方面,在本发明第二方面的第一种可行的实施方式中,所述装置还包括第一生成单元:
所述第一生成单元,用于根据所述调整后的音效的参数生成与所述待播放音频所对应的音效模式。
结合本发明第二方面,在本发明第二方面的第二种可行的实施方式中,所述装置还包括提示单元和播放单元;
所述确定单元,用于确定调整后的音效的参数与调整前的音效的参数之间 的差值;
所述提示单元,用于若所述差值大于预设阈值,则向用户发出音效模式切换的提示;
所述播放单元,用于若接收到所述用户选中的新的音效模式,则按照所述新的音效模式播放所述待播放音乐。
结合第二方面的第二种可能的实现方式,在结合第二方面的第三种可能的实现方式,所述装置还包括保存单元;
所述保存单元,用于若预设时间内未接收到用户切换音效模式的指令,则保存所述待播放音频对应的音效模式与调整后的音效的参数的对应关系。
结合第二方面或第二方面的第一至第三种任一种可能的实现方式,在第二方面的第四种可能的实现方式中,所述装置还包括判断单元和第二生成单元;
所述判断单元,用于若所述待播放音频所对应的音效未超出所述终端的音效支持能力,判断终端中是否存储了与所述音效参数对应的音效模式;
所述第二生成单元,用于若所述终端未存储与所述音效参数对应的音效模式,则生成与所述音效的参数对应的音效模式。
本发明第三方面公开了一种终端,所述终端包括:
存储有可执行程序代码的存储器;
与所述存储器耦合的处理器;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行如第一方面或第一方面的第一种至第四种任意一种可能的实现方式。
本发明第四方面公开了一种计算机存储介质,所述计算机存储介质存储有程序,所述程序被执行时执行以下操作:
获取待播放音频所对应的音效的特征点;
根据所述音效的特征点确定所述待播放音频所对应的音效是否超出终端的音效支持能力;
若所述待播放音频所对应的音效超出所述终端的音效支持能力,则根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数。
结合本发明第四方面,在本发明第四方面的第一种可能的实现方式中,所述根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数之 后,所述操作还包括:
根据所述调整后的音效的参数生成与所述待播放音频所对应的音效模式。
结合本发明第四方面,在本发明第四方面的第二种可能的实现方式中,所述根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数之后,所述操作还包括:
确定调整后的音效的参数与调整前的音效的参数之间的差值;
若所述差值大于预设阈值,则向用户发出音效模式切换的提示;
若接收到所述用户选中的新的音效模式,则按照所述新的音效模式播放所述待播放音乐。
结合本发明第四方面的第二种可能的实现方式,在本发明第四方面的第三种可能的实现方式中,所述操作还包括:
若预设时间内未接收到用户切换音效模式的指令,则保存所述待播放音频对应的音效模式与调整后的音效的参数的对应关系。
结合本发明第四方面至本发明第四方面的第二种可能的实现方式,在本发明第四方面的第三种可能的实现方式中,所述方法还包括:
若所述待播放音频所对应的音效未超出所述终端的音效支持能力,判断终端中是否存储了与所述音效参数对应的音效模式;
若所述终端未存储与所述音效参数对应的音效模式,则生成与所述音效的参数对应的音效模式。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种防止音效突变的方法的流程示意图;
图2为本发明实施例提供的另一种防止音效突变的方法的流程示意图;
图3为本发明实施例提供的一种防止音效突变装置的结构示意图;
图4为本发明实施例提供的另一种防止音效突变装置的结构示意图;
图5为本发明实施例提供的一种终端的实体装置结构示意图;
图6为本发明实施例提供的一种手机的实体装置结构示意图。
具体实施方式
本发明实施例提供了一种音效处理的方法及终端,能够保证终端中音效服务正常运行。
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
本发明说明书、权利要求书和附图中出现的术语“第一”、“第二”和“第三”等是用于区别不同的对象,而并非用于描述特定的顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本发明的一个实施例中公开了一种防止音效突变的方法,所述方法包括:获取待播放音频所对应的音效的特征点;根据所述音效的特征点确定所述待播放音频所对应的音效是否超出终端的音效支持能力;若所述待播放音频所对应的音效超出所述终端的音效支持能力,则根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数。
请参阅图1,图1是本发明一个实施例提供的一种防止音效突变的方法的流程示意图。其中,如图1所示,本发明的一个实施例提供的一种防止音效突变的方法包括以下内容:
S101、获取待播放音频所对应的音效的特征点;
需要指出的是,该方法的执行主体是终端,例如可以为智能手机、平板电 脑、智能穿戴式设备、计算机等带有音乐播放应用的电子设备。
其中,需要指出的是,常见的音效包括普通音效、摇滚乐音效、流行乐音效、古典乐音效等,但是很多人喜欢更加浑厚有力的低音,也有人追求明亮悦耳的高音,那么就需要通过均衡器自定义音效。具体的,当用户通过均衡器调整声音频率和频率响应,就可以获得不同的音效。其中,频率范围(单位为Hz),表示功率放大器的最低工作频率至最高工作频率之间的范围;频率响应(单位分贝dB),功率放大器的输出增益随着输入信号频率的变化而变化的现象。
举例来说,普通音效就是所有频段都没有任何的增强或衰减;摇滚乐音效就是将高低两端提升较大,从而低音有力节奏感强,高音清晰甚至刺耳;流行乐音效与摇滚乐音效相比,增强了高音部分,削低了低频,从而使得乐器表现更加出色;爵士乐音效就是提升了低频和3-5KHz部分,增强临场感。通常,将低于150Hz的为低频;150-1200Hz为中频;高于1200Hz为高频。
其中,需要指出的是,待播放音频可以是音乐,也可以是视频中的声音部分。待播放音频所对应的音效的特征点可以是待播放音频的不同频段的频率采样点。
例如,采样待播放音频的低频部分获得是100Hz,相邻的中频部分为300Hz等。
S102、根据所述音效的特征点确定所述待播放音频所对应的音效是否超出终端的音效支持能力;
其中,可以根据终端的处理器参数、终端内存的大小以及终端当前内存占用率确定终端的音效支持能力;例如,终端处理器主频2GHz、内存为3G,当前内存占用率为30%,那么终端支持音频跳变的范围是800,也就是说,音效对应的频率差值小于800,就不会发生突变。举例来说当前音效频率为300Hz,下一刻突然变成了1000Hz,那么这个跳变终端是能够处理的,不会发生音效的突变;又例如,当音效频率从200跳到1400的时候,那么就有可能出现音效的突变。其中,常见的突变情况包括音频停顿、不清等现象。
103、若所述待播放音频所对应的音效超出所述终端的音效支持能力,则根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数。
例如,当前低频部分特征点是100Hz,相邻的中频部分是1000Hz,而终端能够支持的范围是800,那么由于从100到1000Hz超过了800,那么终端就可以将100Hz至1000Hz的范围进行缩小,例如将低频部分的频率提升至200HZ以上,或者将中频部分频率降低至900Hz以下,当然也可以提升低频部分的同时降低中频部分。
可以看出,本发明实施例的方案中,获取待播放音频所对应的音效的特征点;根据所述音效的特征点确定所述待播放音频所对应的音效是否超出终端的音效支持能力;若所述待播放音频所对应的音效超出所述终端的音效支持能力,则根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数。从而可知,通过实施本发明提供的技术方案,能够防止音效突变。
请参阅图2,图2是本发明的另一个实施例提供的另一种防止音效突变的方法的流程示意图。其中,如图2所示,本发明的另一个实施例提供的另一种防止音效突变的方法可以包括以下内容:
S201、获取待播放音频所对应的音效的特征点;
例如,采样待播放音频的低频部分获得是200Hz,相邻的中频部分为500Hz等。
S202、根据所述音效的特征点确定所述待播放音频所对应的音效是否超出终端的音效支持能力;
其中,可以根据终端的处理器参数、终端内存的大小以及终端当前内存占用率确定终端的音效支持能力;例如,终端处理器主频4GHz、内存为8G,当前内存占用率为30%,那么终端支持音频跳变的范围是2000,也就是说,音效对应的频率差值小于2000,就不会发生突变。举例来说当前音效频率为300Hz,下一刻突然变成了1000Hz,那么这个跳变终端是能够处理的,不会发生音效的突变;又例如,当音效频率从100跳到2200的时候,那么就有可能出现音效的突变。其中,常见的突变情况包括音频停顿、不清等现象。
S203、若所述待播放音频所对应的音效超出所述终端的音效支持能力,则根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数。
例如,当前低频部分特征点是100Hz,相邻的中频部分是1000Hz,而终端能够支持的范围是800,那么由于从100到1000Hz超过了800,那么终端就 可以将100Hz至1000Hz的范围进行缩小,例如将低频部分的频率提升至200HZ以上,或者将中频部分频率降低至900Hz以下,当然也可以提升低频部分的同时降低中频部分。
S204、根据所述调整后的音效的参数生成与所述待播放音频所对应的音效模式。
其中,生成与所述待播放音频所对应的音效模式的名称可以自动生成,也可以提醒用户进行命名。
S205、确定调整后的音效的参数与调整前的音效的参数之间的差值;
例如,将低频部分的频率从200提升到了500Hz;
S206、若所述差值大于预设阈值,则向用户发出音效模式切换的提示;
例如,如果预设阈值是200Hz,那么从200到500就超过了预设阈值。
S207、若接收到所述用户选中的新的音效模式,则按照所述新的音效模式播放所述待播放音乐。
S208、若预设时间内未接收到用户切换音效模式的指令,则保存所述待播放音频对应的音效模式与调整后的音效的参数的对应关系。
S209、若所述待播放音频所对应的音效未超出所述终端的音效支持能力,判断终端中是否存储了与所述音效参数对应的音效模式。
S210、若所述终端未存储与所述音效参数对应的音效模式,则生成与所述音效的参数对应的音效模式。
可以看出,本发明实施例的方案中扩充了生成与调整后的音效频率对应的音效模式的步骤。从而可知,通过实施本发明提供的技术方案,能够生成终端能力范围内的与所述待播放音频对应的音效模式。
请参阅图3,图3是本发明的一个实施例提供的一种防止音效突变装置的结构示意图。其中,如图3所示,本发明的一个实施例提供的一种防止音效突变装置300,其中,该防止音效突变装置可以是智能手机、平板电脑、智能穿戴设备等设备。该防止音效突变装置300包括获取单元301、确定单元302以及调整单元303;
获取单元301,用于获取待播放音频所对应的音效的特征点;
确定单元302,用于根据所述音效的特征点确定所述待播放音频所对应的 音效是否超出终端的音效支持能力;
调整单元303,用于若所述待播放音频所对应的音效超出所述装置的音效支持能力,则根据所述装置的音效支持能力调整所述待播放音频所对应的音效的参数。
其中,获取单元301、确定单元302以及调整单元303可以用于执行实施例1中步骤S101至S103所述的方法,具体描述详见实施例1对所述方法的描述,在此不再赘述。
请参阅图4,图4是本发明的一个实施例提供的一种防止音效突变装置的结构示意图。其中,如图4所示,本发明的一个实施例提供的一种防止音效突变装置400,其中,该防止音效突变装置可以是智能手机、平板电脑、智能穿戴设备等设备。该防止音效突变装置400包括获取单元401、确定单元402、调整单元403、第一生成单元404、提示单元405、播放单元406、保存单元407、判断单元408和第二生成单元409。
获取单元401,用于获取待播放音频所对应的音效的特征点;
确定单元402,用于根据所述音效的特征点确定所述待播放音频所对应的音效是否超出所述装置的音效支持能力;
调整单元403,用于若所述待播放音频所对应的音效超出所述装置的音效支持能力,则根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数。
第一生成单元404,用于根据所述调整后的音效的参数生成与所述待播放音频所对应的音效模式;
确定单元402,还用于确定调整后的音效的参数与调整前的音效的参数之间的差值;
提示单元405,用于若所述差值大于预设阈值,则向用户发出音效模式切换的提示;
播放单元406,用于若接收到所述用户选中的新的音效模式,则按照所述新的音效模式播放所述待播放音乐。
保存单元407,用于若预设时间内未接收到用户切换音效模式的指令,则保存所述待播放音频对应的音效模式与调整后的音效的参数的对应关系。
判断单元408,用于若所述待播放音频所对应的音效未超出所述装置的音效支持能力,判断所述装置中是否存储了与所述音效参数对应的音效模式;
第二生成单元409,用于若所述装置未存储与所述音效参数对应的音效模式,则生成与所述音效的参数对应的音效模式。
其中,获取单元401、确定单元402、调整单元403、第一生成单元404、提示单元405、播放单元406、保存单元407、判断单元408和第二生成单元409可以用于执行实施例2中步骤S201至S210所述的方法,具体描述详见实施例2对所述方法的描述,在此不再赘述。
请参阅图5,在本发明的另一个实施例中,提供一种终端。所述终端500包括CPU501、存储器502、总线503,显示屏504等硬件。其中,该终端500可以是智能手机、平板电脑、智能穿戴设备等设备。
其中,CPU501执行预先存储在存储器502中的程序,该执行过程具体包括:
获取待播放音频所对应的音效的特征点;根据所述音效的特征点确定所述待播放音频所对应的音效是否超出终端的音效支持能力;若所述待播放音频所对应的音效超出所述终端的音效支持能力,则根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数。可选的,所述将所述音效服务进程设置成所述系统进程之后,该执行过程还包括:将所述音效服务集成到所述系统中。
可选的,该执行过程还包括:
根据所述调整后的音效的参数生成与所述待播放音频所对应的音效模式。
可选的,该执行过程还包括:
确定调整后的音效的参数与调整前的音效的参数之间的差值;
若所述差值大于预设阈值,则向用户发出音效模式切换的提示;
若接收到所述用户选中的新的音效模式,则按照所述新的音效模式播放所述待播放音乐。
可选的,若预设时间内未接收到用户切换音效模式的指令,则保存所述待播放音频对应的音效模式与调整后的音效的参数的对应关系。
可选的,该执行过程还包括:
若所述待播放音频所对应的音效未超出所述终端的音效支持能力,判断终端中是否存储了与所述音效参数对应的音效模式;
若所述终端未存储与所述音效参数对应的音效模式,则生成与所述音效的参数对应的音效模式。
可以看出,本发明实施例的方案中,获取待播放音频所对应的音效的特征点;根据所述音效的特征点确定所述待播放音频所对应的音效是否超出终端的音效支持能力;若所述待播放音频所对应的音效超出所述终端的音效支持能力,则根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数。从而可知,通过实施本发明提供的技术方案,能够防止音效突变。
请参阅图6,图6是本发明的一个实施例提供的终端相关的手机的部分结构的框图。参考图6,手机包括:射频(Radio Frequency,RF)电路610、存储器620、输入单元630、显示单元640、传感器650、音频电路660、无线保真(Wireless Fidelity,WiFi)模块670、处理器680、以及电源690等部件。本领域技术人员可以理解,图6中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
下面结合图6对手机的各个构成部件进行具体的介绍:
RF电路610可用于信息的接收和发送。通常,RF电路610包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路610还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(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)等。
存储器620可用于存储软件程序以及模块,处理器680通过运行存储在存储器620的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器620可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如音乐播放功能、音乐特征点采集 功能、音效参数设置功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如系统的音效模式、待播放音频对应的音效模式与音效参数的对应关系等)等。此外,存储器620可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元630可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元630可包括指纹识别模组631以及其他输入设备632。指纹识别模组631,可采集用户在其上的指纹数据。可选的,指纹识别模组631可包括光学式指纹模块、电容式指纹模块以及射频式指纹模块。以指纹识别模组631为电容式指纹识别模组为例,具体包括感应电极(n1个异常感应电极和n2个正常感应电极)和与所述感应电极连接的信号处理电路(如放大电路、噪声抑制电路、模数转化电路,等等)。除了指纹识别模组631,输入单元630还可以包括其他输入设备632。具体地,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元640可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元640可包括显示屏641,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏641。虽然在图6中,指纹识别模组631与显示屏641是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将指纹识别模组631与显示屏641集成而实现手机的输入和输出功能。
手机还可包括至少一种传感器650,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示屏641的亮度,接近传感器可在手机移动到耳边时,关闭显示屏641和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可 配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路660、扬声器661,传声器662可提供用户与手机之间的音频接口。音频电路660可将接收到的音频数据转换后的电信号,传输到扬声器661,由扬声器661转换为声音信号输出;另一方面,传声器662将收集的声音信号转换为电信号,由音频电路660接收后转换为音频数据,再将音频数据输出处理器680处理后,经RF电路610以发送给比如另一手机,或者将音频数据输出至存储器620以便进一步处理。
WiFi属于短距离无线传输技术,手机通过WiFi模块670可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图6示出了WiFi模块670,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
处理器680是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器620内的软件程序和/或模块,以及调用存储在存储器620内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器680可包括一个或多个处理单元;优选的,处理器680可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器680中。
手机还包括给各个部件供电的电源690(比如电池),优选的,电源可以通过电源管理系统与处理器680逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。
前述图1、图2所示的实施例中,各步骤方法流程可以基于该手机的结构实现。
前述图3、图4所示的实施例中,各单元功能可以基于该手机的结构实现。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其 它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (20)

  1. 一种防止音效突变的方法,其特征在于,所述方法包括:
    获取待播放音频所对应的音效的特征点;
    根据所述音效的特征点确定所述待播放音频所对应的音效是否超出终端的音效支持能力;
    若所述待播放音频所对应的音效超出所述终端的音效支持能力,则根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数之后,所述方法还包括:
    根据所述调整后的音效的参数生成与所述待播放音频所对应的音效模式。
  3. 根据权利要求1所述的方法,其特征在于,所述根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数之后,所述方法还包括:
    确定调整后的音效的参数与调整前的音效的参数之间的差值;
    若所述差值大于预设阈值,则向用户发出音效模式切换的提示;
    若接收到所述用户选中的新的音效模式,则按照所述新的音效模式播放所述待播放音乐。
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:
    若预设时间内未接收到用户切换音效模式的指令,则保存所述待播放音频对应的音效模式与调整后的音效的参数的对应关系。
  5. 根据权利要求1至4任一所述的方法,其特征在于,所述方法还包括:
    若所述待播放音频所对应的音效未超出所述终端的音效支持能力,判断终端中是否存储了与所述音效参数对应的音效模式;
    若所述终端未存储与所述音效参数对应的音效模式,则生成与所述音效的参数对应的音效模式。
  6. 根据权利要求1所述的方法,其特征在于,所述终端的音效支持能力是根据终端的处理器参数、终端内存的大小以及终端当前内存占用率确定的。
  7. 根据权利要求2所述的方法,其特征在于,所述生成的音效的名称是 有终端自己生成的或提示用户进行命名的。
  8. 一种防止音效突变的装置,其特征在于,包括:
    获取单元,用于获取待播放音频所对应的音效的特征点;
    确定单元,用于根据所述音效的特征点确定所述待播放音频所对应的音效是否超出所述装置的音效支持能力;
    调整单元,用于若所述待播放音频所对应的音效超出所述装置的音效支持能力,则根据所述所述装置的音效支持能力调整所述待播放音频所对应的音效的参数。
  9. 根据权利要求8所述的装置,其特征在于,所述装置还包括第一生成单元:
    所述第一生成单元,用于根据所述调整后的音效的参数生成与所述待播放音频所对应的音效模式。
  10. 根据权利要求8所述的装置,其特征在于,所述装置还包括提示单元和播放单元;
    所述确定单元,用于确定调整后的音效的参数与调整前的音效的参数之间的差值;
    所述提示单元,用于若所述差值大于预设阈值,则向用户发出音效模式切换的提示;
    所述播放单元,用于若接收到所述用户选中的新的音效模式,则按照所述新的音效模式播放所述待播放音乐。
  11. 根据权利要求10所述的装置,其特征在于,所述装置还包括保存单元;
    所述保存单元,用于若预设时间内未接收到用户切换音效模式的指令,则保存所述待播放音频对应的音效模式与调整后的音效的参数的对应关系。
  12. 根据权利要求8至11任一所述的装置,其特征在于,所述装置还包括判断单元和第二生成单元;
    所述判断单元,用于若所述待播放音频所对应的音效未超出所述终端的音效支持能力,判断终端中是否存储了与所述音效参数对应的音效模式;
    所述第二生成单元,用于若所述终端未存储与所述音效参数对应的音效模 式,则生成与所述音效的参数对应的音效模式。
  13. 根据权利要求8所述的装置,其特征在于,所述装置的音效支持能力是根据装置的处理器参数、终端内存的大小以及终端当前内存占用率确定的。
  14. 根据权利要求9所述的装置,其特征在于,所述生成的音效的名称是由装置自己生成的或提示用户进行命名的。
  15. 一种终端,其特征在于,包括:
    存储有可执行程序代码的存储器;
    与所述存储器耦合的处理器;
    所述处理器调用所述存储器中存储的所述可执行程序代码,执行如权利要求1至权利要求5任一项所述的方法。
  16. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有程序,所述程序被执行时执行以下操作:
    获取待播放音频所对应的音效的特征点;
    根据所述音效的特征点确定所述待播放音频所对应的音效是否超出终端的音效支持能力;
    若所述待播放音频所对应的音效超出所述终端的音效支持能力,则根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数。
  17. 根据权利要求16所述的介质,其特征在于,所述根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数之后,所述操作还包括:
    根据所述调整后的音效的参数生成与所述待播放音频所对应的音效模式。
  18. 根据权利要求16所述的介质,其特征在于,所述根据所述终端的音效支持能力调整所述待播放音频所对应的音效的参数之后,所述操作还包括:
    确定调整后的音效的参数与调整前的音效的参数之间的差值;
    若所述差值大于预设阈值,则向用户发出音效模式切换的提示;
    若接收到所述用户选中的新的音效模式,则按照所述新的音效模式播放所述待播放音乐。
  19. 根据权利要求18所述的介质,其特征在于,所述操作还包括:
    若预设时间内未接收到用户切换音效模式的指令,则保存所述待播放音频对应的音效模式与调整后的音效的参数的对应关系。
  20. 根据权利要求16至19任一所述的介质,其特征在于,所述方法还包括:
    若所述待播放音频所对应的音效未超出所述终端的音效支持能力,判断终端中是否存储了与所述音效参数对应的音效模式;
    若所述终端未存储与所述音效参数对应的音效模式,则生成与所述音效的参数对应的音效模式。
PCT/CN2017/088731 2016-06-16 2017-06-16 一种防止音效突变的方法及终端 WO2017215654A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610438608.1A CN106126162B (zh) 2016-06-16 2016-06-16 一种防止音效突变的方法及终端
CN201610438608.1 2016-06-16

Publications (1)

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

Family

ID=57469867

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/088731 WO2017215654A1 (zh) 2016-06-16 2017-06-16 一种防止音效突变的方法及终端

Country Status (2)

Country Link
CN (1) CN106126162B (zh)
WO (1) WO2017215654A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783050A (zh) * 2019-02-28 2019-05-21 努比亚技术有限公司 一种声音调整方法、移动终端和存储介质
CN113890932A (zh) * 2020-07-02 2022-01-04 华为技术有限公司 一种音频控制方法、系统及电子设备
CN109783050B (zh) * 2019-02-28 2024-04-23 努比亚技术有限公司 一种声音调整方法、移动终端和存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126162B (zh) * 2016-06-16 2019-07-19 Oppo广东移动通信有限公司 一种防止音效突变的方法及终端
CN107197101B (zh) * 2017-06-23 2020-12-29 努比亚技术有限公司 音频调整方法、移动终端及计算机可读存储介质
CN108347672B (zh) * 2018-02-09 2021-01-22 广州酷狗计算机科技有限公司 播放音频的方法、装置及存储介质
CN109147739B (zh) * 2018-09-12 2021-07-23 网易(杭州)网络有限公司 基于语音控制的音效调节方法、介质、装置和计算设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6182031B1 (en) * 1998-09-15 2001-01-30 Intel Corp. Scalable audio coding system
CN101945314A (zh) * 2010-10-02 2011-01-12 张沈平 一种耳机、相应的音源设备以及控制方法
CN103117074A (zh) * 2013-01-05 2013-05-22 广东欧珀移动通信有限公司 自动调整音频播放参数的方法及系统
CN103714824A (zh) * 2013-12-12 2014-04-09 小米科技有限责任公司 一种音频处理方法、装置及终端设备
CN105185396A (zh) * 2015-07-28 2015-12-23 小米科技有限责任公司 一种播放音频信号的方法和装置
CN105246015A (zh) * 2015-11-11 2016-01-13 上海斐讯数据通信技术有限公司 一种电子设备及其扬声器音源的检测方法及系统
CN106126162A (zh) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 一种防止音效突变的方法及终端

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE602004013425T2 (de) * 2004-05-28 2009-06-04 Research In Motion Ltd., Waterloo System und Verfahren zur Einstellung eines Audiosignals
US7813922B2 (en) * 2007-01-30 2010-10-12 Nokia Corporation Audio quantization
CN103841492A (zh) * 2012-11-20 2014-06-04 联想(北京)有限公司 一种音频信号的输出方法及装置
CN104883642B (zh) * 2015-03-27 2018-09-25 成都上生活网络科技有限公司 一种音效调节方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6182031B1 (en) * 1998-09-15 2001-01-30 Intel Corp. Scalable audio coding system
CN101945314A (zh) * 2010-10-02 2011-01-12 张沈平 一种耳机、相应的音源设备以及控制方法
CN103117074A (zh) * 2013-01-05 2013-05-22 广东欧珀移动通信有限公司 自动调整音频播放参数的方法及系统
CN103714824A (zh) * 2013-12-12 2014-04-09 小米科技有限责任公司 一种音频处理方法、装置及终端设备
CN105185396A (zh) * 2015-07-28 2015-12-23 小米科技有限责任公司 一种播放音频信号的方法和装置
CN105246015A (zh) * 2015-11-11 2016-01-13 上海斐讯数据通信技术有限公司 一种电子设备及其扬声器音源的检测方法及系统
CN106126162A (zh) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 一种防止音效突变的方法及终端

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783050A (zh) * 2019-02-28 2019-05-21 努比亚技术有限公司 一种声音调整方法、移动终端和存储介质
CN109783050B (zh) * 2019-02-28 2024-04-23 努比亚技术有限公司 一种声音调整方法、移动终端和存储介质
CN113890932A (zh) * 2020-07-02 2022-01-04 华为技术有限公司 一种音频控制方法、系统及电子设备

Also Published As

Publication number Publication date
CN106126162B (zh) 2019-07-19
CN106126162A (zh) 2016-11-16

Similar Documents

Publication Publication Date Title
US10649720B2 (en) Sound effect configuration method and system and related device
WO2017215654A1 (zh) 一种防止音效突变的方法及终端
WO2018045536A1 (zh) 声音信号处理的方法、终端和耳机
EP3432136B1 (en) Sound effect configuration method and related device
US20190146750A1 (en) Audio stream processing method, mobile terminal and storage medium
US10628119B2 (en) Sound effect processing method and mobile terminal
CN109918039B (zh) 一种音量调节方法及移动终端
WO2017215652A1 (zh) 音效参数的调节方法及移动终端
CN111083289B (zh) 音频播放方法、装置、存储介质及移动终端
US20170160921A1 (en) Media file processing method and terminal
WO2017215653A1 (zh) 音量处理方法及用户终端
WO2017215662A1 (zh) 一种调整音效的方法及终端
WO2017215664A1 (zh) 一种音效处理的方法及终端
CN106126170B (zh) 一种终端的音效设置方法及终端
WO2017215663A1 (zh) 一种音效处理的方法及终端
CN112997471B (zh) 音频通路切换方法和装置、可读存储介质、电子设备
CN108600906B (zh) 一种多音箱的播放控制方法及装置
CN111427745A (zh) 一种终端的使用控制方法、装置、存储介质及终端
WO2019061292A1 (zh) 一种终端降噪方法及终端
JP6675617B2 (ja) メディアファイル処理方法および端末
CN106713668B (zh) 控制终端震动的方法和装置
WO2019084752A1 (zh) 一种语音调节耳机音量的方法及相关产品
WO2018232646A1 (zh) 具有自适应播放能力的移动终端和相关产品
WO2020097914A1 (zh) 一种音频模式调节的方法、装置及电子设备
CN117407271A (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: 17812765

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: 17812765

Country of ref document: EP

Kind code of ref document: A1