WO2017215657A1 - 音效处理方法及终端设备 - Google Patents

音效处理方法及终端设备 Download PDF

Info

Publication number
WO2017215657A1
WO2017215657A1 PCT/CN2017/088761 CN2017088761W WO2017215657A1 WO 2017215657 A1 WO2017215657 A1 WO 2017215657A1 CN 2017088761 W CN2017088761 W CN 2017088761W WO 2017215657 A1 WO2017215657 A1 WO 2017215657A1
Authority
WO
WIPO (PCT)
Prior art keywords
preset
audio file
terminal device
sound effect
frequency
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2017/088761
Other languages
English (en)
French (fr)
Inventor
李亚军
甘高亭
涂广
杨海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of WO2017215657A1 publication Critical patent/WO2017215657A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 intelligent terminal technologies, and in particular, to a sound effect processing method and a terminal device.
  • the audio playback function is the basic function that most smart terminals have.
  • Many applications in the terminal need to call the audio module for audio playback, such as playing game sound effects, music, video sound effects and so on.
  • the sound effect is generally further enhanced based on the original sound effect parameters of the audio file.
  • the enhanced sound effect can enhance the user's hearing experience to a certain extent, it also increases the power consumption of the terminal device.
  • the embodiment of the invention provides a sound effect processing method and a terminal device, which can reduce the power consumption of the terminal device when playing an audio file without affecting the auditory effect.
  • a first aspect of the embodiments of the present invention provides a sound processing method, which may include:
  • the method includes at least reducing a volume and/or a gain of the frequency band in the audio file.
  • the second aspect of the embodiment of the present invention further discloses a sound effect processing apparatus, including:
  • a detecting unit configured to detect a frequency of an audio file played by the terminal device
  • the processing unit determines whether a frequency band of the audio file is within a preset frequency range, and when the frequency band of the audio file is within a preset frequency range, according to the first preset sound effect adjustment manner Adjusting, by the terminal device, a sound effect parameter of the audio file, wherein the first preset sound effect adjustment mode comprises at least reducing a volume and/or a gain of the frequency band in the audio file.
  • a third aspect of the embodiments of the present invention provides a terminal device, which may include a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, the processor, and the communication interface pass through the communication bus Connected, the memory storing executable program code for wireless communication; the processor for invoking executable program code stored in the memory to perform the first aspect or the first embodiment of the present invention
  • a terminal device which may include a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, the processor, and the communication interface pass through the communication bus Connected, the memory storing executable program code for wireless communication; the processor for invoking executable program code stored in the memory to perform the first aspect or the first embodiment of the present invention
  • the sound processing method of any of the alternative embodiments may include a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, the processor, and the communication interface pass through the communication bus Connected, the memory
  • a fourth aspect of the embodiments 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 execute any one of the first aspects. method.
  • the frequency band in the frequency of the currently played audio file, is in the preset frequency range.
  • the gain and/or volume of the frequency band in the audio file can be reduced, so that the power consumption of the terminal device can be reduced without affecting the audible effect.
  • FIG. 1 is a schematic flow chart of a sound effect processing method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flow chart of a sound effect processing method according to another embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of a sound effect processing method according to still another embodiment of the present invention.
  • FIG. 4 is a schematic flow chart of a sound effect processing method according to still another embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a sound effect processing apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a sound processing apparatus according to another embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • Embodiments of the present invention provide a sound effect processing method and a terminal device, which can reduce power consumption of a terminal device during audio playback.
  • the terminal device described in the embodiment of the present invention may include, but is not limited to, a terminal device such as a mobile phone, a tablet computer, or a notebook computer.
  • FIG. 1 is a schematic flowchart diagram of a sound effect processing method according to an embodiment of the present invention.
  • the sound effect processing method can be executed by hardware of the soft system control terminal device. As shown in FIG. 1, the method may include the following steps:
  • the audio file may be a short segment of the audio file or a complete audio file.
  • the terminal device After detecting the frequency of the audio file played by the terminal device, it can be determined whether there is a frequency band in the frequency of the audio file within a preset frequency range.
  • the setting of the preset frequency range refers to the sensitivity of the human ear to the sound.
  • the frequency of sound that humans can hear is between 20Hz and 20KHz.
  • the sensitivity of the human ear to sound is different in different frequency bands.
  • the human ear is extremely insensitive to the sound of the 15KHz to 20KHz frequency band, although it can be felt through the human body and bones. Sound waves, but the ears are almost inaudible; while the human ear is extremely sensitive to the sound of the 1KHz to 4KHz band, and the perceived penetration rate is the strongest; the sensitivity of the human ear to the sound of other frequency bands is not much different, but can be felt Different sounds, such as bass or treble.
  • the preset sound adjustment mode includes at least reducing a sound of the frequency band in the audio file. Quantity and / or gain.
  • the preset sound adjustment mode may be: reducing a volume of the frequency band in the audio file to a preset volume value and/or reducing a gain of playing the frequency band in the audio file to a preset gain value, or
  • the preset sound adjustment mode may be to reduce the volume of the frequency band in the audio file by a preset volume amplitude and/or reduce the gain of the frequency band in the audio file by a preset gain amplitude.
  • the gain and/or volume of the frequency band in the audio file may be reduced, thereby The power consumption of the terminal device can be reduced without affecting the auditory effect.
  • FIG. 2 is a schematic flowchart diagram of a sound effect processing method according to another embodiment of the present invention.
  • the sound effect processing method can be executed by hardware of the soft system control terminal device. As shown in FIG. 2, the method may include the following steps:
  • the audio file may be a short segment of the audio file or a complete audio file.
  • step S202 Determine whether the sound effect parameter of the audio file of the terminal device meets the first preset condition when the frequency band of the audio file is within the preset frequency range. If not, step S203 is performed, otherwise step S204 is performed.
  • the terminal device After detecting the frequency of the audio file played by the terminal device, it can be determined whether there is a frequency band in the frequency of the audio file within a preset frequency range.
  • the setting of the preset frequency range refers to the sensitivity of the human ear to the sound.
  • the frequency of sound that humans can hear is between 20Hz and 20KHz.
  • the sensitivity of the human ear to sound is different in different frequency bands.
  • the human ear is extremely insensitive to the sound of the 15KHz to 20KHz frequency band, although it can be felt through the human body and bones. Sound waves, but the ears are almost inaudible; while the human ear is extremely sensitive to the sound of the 1KHz to 4KHz band, and the perceived penetration rate is the strongest; the sensitivity of the human ear to the sound of other frequency bands is not much different, but can be felt Different sounds, such as bass or treble.
  • the determining, by the terminal device, whether the sound effect parameter of the audio file meets the first preset condition is: determining whether the volume of the audio file currently played by the terminal device is equal to and/or smaller than the first preset volume value. And/or whether the gain of the currently playing audio file is equal to or smaller than the first preset gain value.
  • the first preset sound adjustment mode includes at least reducing a volume and/or a gain of the frequency band in the audio file.
  • the preset sound adjustment mode may be to reduce the volume of the frequency band in the audio file to a preset volume value and/or reduce the gain of the frequency band in the audio file to a preset gain value, or
  • the preset sound adjustment mode may be to reduce the volume of the frequency band in the audio file by a preset volume amplitude and/or to reduce the gain of the frequency band in the audio file by a preset gain amplitude.
  • the terminal device plays the sound effect parameter of the sound effect file
  • the preset condition is met.
  • the current sound effect parameter of the terminal device is suitable, and no adjustment is needed. Therefore, when playing an audio clip whose audio frequency is within the same range, it is only necessary to perform the sound effect parameter adjustment once.
  • the gain and/or volume of the frequency band in the audio file may be reduced. Therefore, the power consumption of the terminal device can be reduced without affecting the auditory effect. Further, when playing an audio segment whose audio frequency is in the same frequency range, only one adjustment is needed, and the processing work of the terminal device can be reduced, thereby further reducing the power consumption of the terminal device.
  • FIG. 3 is a schematic flowchart diagram of a sound effect processing method according to another embodiment of the present invention.
  • the sound effect processing method can be executed by hardware of the soft system control terminal device. As shown in FIG. 3, the method may include the following steps:
  • the audio file may be a short segment of the audio file or a complete audio file.
  • step S302 Determine whether a frequency band in the frequency of the audio file is not in a preset frequency range. If yes, step S303 is performed, otherwise step S306 is performed.
  • step S303 Determine whether the sound effect parameter of the audio file played by the terminal device meets a second preset condition. If yes, step S304 is performed, otherwise step S305 is performed.
  • the determining, by the terminal device, whether the sound effect parameter of the audio file meets the second preset condition is: determining whether the volume of the audio file currently played by the terminal device is greater than a second preset volume value and/or current Whether the gain of playing the audio file is greater than a second preset gain value.
  • the sound effect parameter of the sound effect file when the sound effect parameter of the sound effect file is satisfied by the terminal device, it indicates that the sound effect parameter of the terminal device has been adjusted before, and the current sound effect parameter of the terminal device is suitable. No need to make adjustments. Therefore, when playing an audio clip whose audio frequency is within the same range, it is only necessary to perform the sound effect parameter adjustment once.
  • the SS 305 is configured to adjust, according to the second preset sound effect adjustment manner, the sound effect parameter of the terminal device to play the audio file.
  • the second preset sound adjustment mode includes at least increasing a volume and/or a gain of playing a frequency band of the audio file that is not within the preset frequency range.
  • the second preset sound adjustment mode may be: increasing a volume of a frequency band not in the preset frequency range in the audio file to a second preset volume value and/or not in the audio file
  • the gain of the frequency band in the preset frequency range is increased to the second preset gain value, or the preset sound effect adjustment mode may be to increase the volume of the frequency band not in the preset frequency range in the audio file.
  • the second preset volume amplitude and/or the gain of the frequency band not in the preset frequency range in the audio file is increased by the second preset gain amplitude.
  • the first preset volume value and the second preset volume value may be the same or different.
  • the first preset gain value may be the same as or different from the second preset gain value.
  • the first preset volume amplitude may be the same as or different from the second preset volume amplitude.
  • the first preset gain amplitude and the second preset gain amplitude may be the same or different.
  • the first preset sound adjustment mode includes at least reducing a volume and/or a gain of a frequency band in the preset frequency range in the audio file.
  • the first preset sound adjustment mode may be: reducing a volume of a frequency band in the preset frequency range in the audio file to a preset volume value and/or setting the audio file in the preset frequency
  • the gain of the frequency band in the range is reduced to a preset gain value, or the preset sound adjustment mode may be to reduce the volume of the frequency band in the preset frequency range in the audio file by a preset volume range and/or And reducing a gain of a frequency band in the preset frequency range in the audio file by a preset gain amplitude.
  • the frequency band in the preset frequency range in the audio file may be reduced. Gain and/or volume, so that the power consumption of the terminal device can be reduced without affecting the audible effect.
  • the gain and/or volume of the frequency band not in the preset frequency range may be increased in the audio file. In order to ensure that the user can get a good hearing effect.
  • FIG. 4 is a schematic flowchart diagram of a sound effect processing method according to an embodiment of the present invention.
  • the sound effect processing method can be executed by hardware of the soft system control terminal device. As shown in FIG. 4, the method may include the following steps:
  • S401 Determine, according to the ambient noise collected by the terminal device, whether the current scene is a preset trigger scenario.
  • the terminal device can collect noise in the environment, and determine whether the current scene is a preset triggering scene according to the environmental noise, wherein the triggering scene refers to triggering the terminal device to play The scene in which the sound effect parameters of the audio clip are adjusted, such as a scene with a loud noise.
  • the noise range corresponding to the preset triggering scene may be preset, and whether the current scene is a preset triggering scene by determining whether the ambient noise is within the noise range, where the ambient noise is When the noise range is within, the current scene is determined to be a preset trigger scene.
  • the audio file may be a short segment of the audio file or a complete audio file.
  • the setting of the preset frequency range refers to the sensitivity of the human ear to the sound.
  • the frequency of sound that humans can hear is between 20Hz and 20KHz.
  • the sensitivity of the human ear to sound is different in different frequency bands.
  • the human ear is extremely insensitive to the sound of the 15KHz to 20KHz frequency band, although it can be felt through the human body and bones. Sound waves, but the ears are almost inaudible; while the human ear is extremely sensitive to the sound of the 1KHz to 4KHz band, and the perceived penetration rate is the strongest; the sensitivity of the human ear to the sound of other frequency bands is not much different, but can be felt Different sounds, such as bass or treble.
  • the preset sound adjustment mode at least includes reducing a volume and/or a gain of a frequency band in the preset frequency range in the audio file.
  • the preset sound adjustment mode may be to reduce the volume of the frequency band in the preset frequency range to the first preset volume value and/or the frequency band in the preset frequency range in the audio file.
  • the gain is reduced to a first preset gain value, or the preset sound adjustment mode may be to reduce the volume of the frequency band in the preset frequency range in the audio file by a first preset volume amplitude and/or to The gain of the frequency band within the preset frequency range in the audio file is decreased by the first preset gain amplitude.
  • the current scene is a preset trigger scene, that is, in a scene with a relatively noisy sound
  • the sound frequency band that is not sensitive to the human ear is more difficult to be detected. Therefore, in this manner, In the scene, when the audio that is insensitive to the human ear is played, the gain and/or volume of the frequency band in the preset frequency range in the played audio file is lowered, and the hearing effect is not affected.
  • FIG. 5 is a schematic structural diagram of a sound processing apparatus according to an embodiment of the present invention.
  • the terminal device may include the following units:
  • the detecting unit 501 is configured to detect a frequency of an audio file played by the terminal device.
  • the audio file may be a short segment of the audio file or a complete audio file.
  • the processing unit 502 is configured to determine whether a frequency band of the audio file is within a preset frequency range, and when the frequency of the audio file is within a preset frequency range, adjust according to the first preset sound effect The method adjusts the sound effect parameter of the audio file by the terminal device.
  • the setting of the preset frequency range refers to the sensitivity of the human ear to the sound.
  • the frequency of sound that humans can hear is between 20Hz and 20KHz.
  • the sensitivity of the human ear to sound is different in different frequency bands.
  • the human ear is extremely insensitive to the sound of the 15KHz to 20KHz frequency band, although it can be felt through the human body and bones. Sound waves, but the ears are almost inaudible; while the human ear is extremely sensitive to the sound of the 1KHz to 4KHz band, and the perceived penetration rate is the strongest; the sensitivity of the human ear to the sound of other frequency bands is not much different, but can be felt Different sounds, such as bass or treble.
  • the preset sound adjustment mode at least includes reducing a volume and/or a gain of the frequency band in the audio file.
  • the preset sound adjustment mode may be to reduce the volume of the frequency band in the audio file to a preset volume value and/or reduce the gain of the frequency band in the audio file to a preset gain value, or
  • the preset sound adjustment mode may be to reduce the volume of the frequency band in the audio file by a preset volume amplitude and/or reduce the gain of the frequency band in the audio file by a preset gain amplitude.
  • the gain and/or volume of the frequency band in the audio file may be reduced, thereby The power consumption of the terminal device can be reduced without affecting the auditory effect.
  • processing unit 502 is further configured to:
  • the sound effect parameter of the audio file currently playing on the terminal device does not satisfy the first preset And adjusting the sound effect parameter of the audio file by the terminal device according to the first preset sound effect adjustment manner.
  • the sound effect parameter of the sound effect file currently playing by the terminal device meets the preset condition, it indicates that the sound effect parameter of the terminal device has been previously adjusted, and the current sound effect parameter of the terminal device is suitable. No need to make adjustments. Therefore, when playing an audio clip whose audio frequency is within the same range, it is only necessary to perform the sound effect parameter adjustment once.
  • the gain and/or volume of the played audio file may be reduced, thereby not affecting the hearing.
  • the power consumption of the terminal device can be reduced. Further, when playing an audio segment whose audio frequency is in the same frequency range, only one adjustment is needed, and the processing work of the terminal device can be reduced, thereby further reducing the power consumption of the terminal device.
  • processing unit 502 is further configured to:
  • the determining whether the sound effect parameter of the audio file currently playing by the terminal device meets the second preset condition is specifically: determining whether the volume of the audio file currently played by the terminal device is greater than a preset volume value and/or currently playing Whether the gain of the audio file is greater than a preset gain value.
  • the sound effect parameter of the sound effect file currently playing by the terminal device meets the second preset condition, it indicates that the sound effect parameter of the terminal device has been previously adjusted, and the current sound effect parameter of the terminal device is Suitably, no further adjustments are required. Therefore, when playing an audio clip whose audio frequency is within the same range, it is only necessary to perform the sound effect parameter adjustment once.
  • the second preset sound adjustment mode includes at least increasing a volume and/or a gain of a frequency band in the audio file that is not within the preset frequency range.
  • the second preset sound adjustment mode may be: increasing a volume of a frequency band not in the preset frequency range in the audio file to a preset volume value and/or not in the audio file
  • the gain of the frequency band in the frequency range is increased to a preset gain value, or the preset sound effect adjustment mode may be to increase the volume of the frequency band not in the preset frequency range in the audio file by a preset volume range.
  • the frequency band in the preset audio frequency in the audio file may be reduced.
  • the frequency band is not in the preset frequency range, that is, when the currently played audio is human ear sensitive audio, the playing audio file may not be increased. The gain and/or volume of the frequency band within the preset frequency range ensures that the user can get a good audible effect.
  • FIG. 6 is a schematic structural diagram of a sound processing apparatus according to another embodiment of the present invention.
  • the terminal device includes, in addition to the detecting unit 501 and the processing unit 502, a determining unit 503, configured to determine, according to the ambient noise collected by the terminal device, whether the current scene is a preset triggering scenario.
  • the terminal device can collect noise in the environment, and determine whether the current scene is a preset triggering scene according to the environmental noise, wherein the triggering scene refers to triggering the terminal device to play The scene in which the sound effect parameters of the audio clip are adjusted, such as a scene with a loud noise.
  • the processing unit 502 is configured to detect a frequency of an audio file played by the terminal device when the current scene is the preset trigger scene.
  • the terminal device may further include a setting unit 504, configured to preset a noise range corresponding to the preset trigger scene.
  • the determining unit 503 determines whether the current scene is a preset triggering scene by determining whether the ambient noise is within the noise range, and determining that the current scene is preset when the ambient noise is within the noise range. Trigger the scene.
  • the current scene is a preset trigger scene, that is, in a scene with a relatively noisy sound
  • the sound frequency band that is not sensitive to the human ear is more difficult to be detected. Therefore, in this manner, In the scene, when the audio that is insensitive to the human ear is played, the gain and/or volume of the frequency band in the preset frequency range in the played audio file is lowered, and the hearing effect is not affected.
  • FIG. 7 is a schematic structural diagram of a terminal device according to still another embodiment of the present invention.
  • the terminal device may include a processor 701, a memory 702, a communication interface 703, and a communication bus 704; wherein the processor 701, the memory 702, the fingerprint recognition module 705, and the communication interface 703 are connected by a communication bus 704. And completing communication with each other; the processor 701 controls wireless communication with the external cellular network through the communication interface 703; the communication interface 703 includes but is not limited to an antenna, an amplifier, a transceiver, a coupler, and a LNA (Low Noise Amplifier). ), duplexer, etc.
  • the memory 702 includes at least one of the following: a random access memory, a nonvolatile memory, and an external memory.
  • the memory 702 stores executable program code, and the processor 701 can call the executable program code to perform the following steps:
  • the method includes at least reducing a volume and/or a gain of the frequency band in the audio file.
  • the executable program code is further executed before the adjusting, by the first preset sound effect adjustment mode, the terminal device to play the sound effect parameter of the audio file:
  • the sound effect parameter of the audio file currently playing on the terminal device meets the first preset bar And controlling the terminal device to play the audio file according to a current sound effect parameter;
  • the terminal device When the sound effect parameter of the audio file currently playing by the terminal device does not satisfy the first preset condition, the terminal device is configured to play the sound effect parameter of the audio file according to the first preset sound effect adjustment manner.
  • executable program code is also executed for:
  • the second preset sound adjustment mode includes at least increasing a volume and/or a gain of a frequency band in which the audio file is not within the preset frequency range.
  • the executable program code is further executed to:
  • the frequency of the audio file played by the terminal device is detected.
  • the executable program code is further executed before the determining, according to the ambient noise, whether the current scene is a preset trigger scene, for:
  • Determining, according to the environmental noise, whether the current scene is a preset triggering scene specifically: determining whether the ambient noise is within the noise range, and determining the current scene when the ambient noise is within the noise range The preset trigger scene.
  • the modules or units in all the embodiments of the present invention may be implemented by a general-purpose integrated circuit, such as a CPU (Central Processing Unit) or an ASIC (Application Specific Integrated Circuit).
  • a CPU Central Processing Unit
  • ASIC Application Specific Integrated Circuit
  • Modules or units in the apparatus of the embodiments of the present invention may be combined, divided, and deleted according to actual needs.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

一种音效处理方法及终端设备,其中音效处理方法可包括:检测终端设备播放的音频文件的频率(S101);判断所述音频文件的频率中是否有频段在预设频率范围内;以及在所述音频文件的频率中有频段在预设频率范围内时,根据第一预设音效调节方式调节所述终端设备播放所述音频文件的音效参数(S102),其中,所述第一预设音效调节方式至少包括降低播放所述音频文件的音量及/或增益。所述方法在当前播放的音频文件的频率在预设频率范围内时,即人耳对当前播放的音频不敏感时,可降低音频文件中在预设频率范围内的频段的增益和/或音量,从而在不影响听觉效果的前提下,可降低所述终端设备的功耗。

Description

音效处理方法及终端设备 技术领域
本发明涉及智能终端技术领域,尤其涉及一种音效处理方法及终端设备。
背景技术
随着智能终端技术的发展,市场上各种各样的智能终端层出不穷,智能终端的功能及应用也越来越丰富。其中,音频播放功能为大多数智能终端都具备的基本功能。终端中的许多应用都需要调用音频模块进行音频播放,例如播放游戏音效、音乐、视频音效等。
在现有技术中,为了迎合用户对听觉体验的高要求,通常会在音频文件原有的音效参数的基础上进一步增强音效。然而,增强音效虽然能在一定程度上提升用户的听觉体验,同时也会增大终端设备的功耗。
发明内容
本发明实施例提供一种音效处理方法及终端设备,可在不影响听觉效果的前提下,降低终端设备播放音频文件时的功耗。
本发明实施例第一方面提供一种音效处理方法,可包括:
检测终端设备播放的音频文件的频率;
判断所述音频文件的频率中是否有频段在预设频率范围内;以及
在所述音频文件的频率中有频段在预设频率范围内时,根据第一预设音效调节方式调节所述终端设备播放所述音频文件的音效参数,其中,所述第一预设音效调节方式至少包括降低所述音频文件中所述频段的的音量及/或增益。
本发明实施例的第二方面还公开一种音效处理装置,包括:
检测单元,用于检测终端设备播放的音频文件的频率;以及
处理单元,判断所述音频文件的频率中是否有频段在在预设频率范围内,以及在所述音频文件的频率中有频段在在预设频率范围内时,根据第一预设音效调节方式调节所述终端设备播放所述音频文件的音效参数,其中,所述第一预设音效调节方式至少包括降低所述音频文件中所述频段的的音量及/或增益。
本发明实施例第三方面提供一种终端设备,可包括处理器、存储器、通信接口和通信总线,其中所述处理器、所述存储器、所述处理器和所述通信接口通过所述通信总线连接,所述存储器存储有可执行程序代码,所述通信接口用于无线通信;所述处理器用于调用所述存储器中存储的可执行程序代码,以执行本发明实施例第一方面或者第一方面任一可选实施例所述的音效处理方法。
本发明实施例第四方面提供一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行第一方面中的任意一个方法。
本发明实施例中,在当前播放的音频文件的频率中有频段在预设频率范围 内时,即人耳对当前播放的音频不敏感时,可降低音频文件中所述频段的增益和/或音量,从而在不影响听觉效果的前提下,可降低所述终端设备的功耗。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。
图1是本发明的一个实施例提供的音效处理方法的流程示意图;
图2是本发明的另一个实施例提供的音效处理方法的流程示意图;
图3是本发明的又一个实施例提供的音效处理方法的流程示意图;
图4是本发明的又一个实施例提供的音效处理方法的流程示意图;
图5是本发明的一个实施例提供的音效处理装置的结构示意图;
图6是本发明的另一个实施例提供的音效处理装置的结构示意图;以及
图7是本发明的一个实施例提供的终端设备的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例提供一种音效处理方法及终端设备,可降低音频播放过程中终端设备的功耗。具体实现中,本发明实施例中描述的终端设备可包括但不限于:手机、平板电脑、笔记本电脑等终端设备。
参见图1,图1是本发明的一个实施例提供的音效处理方法的流程示意图。所述音效处理方法可由软系统控制终端设备的硬件来执行。如图1所示,所述方法可包括如下步骤:
S101,检测终端设备播放的音频文件的频率。
可选地,上述音频文件可以是音频文件中的一小段或者是完整的音频文件。
S102,在所述音频文件的频率中有频段在预设频率范围内时,根据第一预设音效调节方式调节所述终端设备播放所述音频文件的音效参数。
检测终端设备播放的音频文件的频率之后,可判断所述音频文件的频率中是否有频段在预设频率范围内。
其中,所述预设频率范围的设置参考人耳对声音的敏感度进行设置。人类能听到的声音频率在20Hz至20KHz之间,其中在不同频段人耳对声音的灵敏度不一样,例如:人耳对15KHz至20KHz频段的声音极度不敏感,虽然可以通过人体和骨骼来感受声波,但耳朵是几乎听不到的;而人耳对1KHz至4KHz频段的声音极度敏感,感受到的穿透率最强;人耳对其他频段的声音的灵敏度相差不大,但能感受到不同的音色,例如低音或高音。
其中,所述预设音效调节方式至少包括降低所述音频文件中所述频段的音 量及/或增益。所述预设音效调节方式可为将所述音频文件中所述频段的音量降低至预设音量值及/或将播放所述音频文件中所述频段的的增益降低至预设增益值,或者所述预设音效调节方式可为将所述音频文件中所述频段的音量降低一预设音量幅度及/或将所述音频文件中所述频段的增益降低一预设增益幅度。
本实施方式中,在当前播放的音频文件中有频段在预设频率范围内时,即人耳对当前播放的音频不敏感时,可降低音频文件中所述频段的增益和/或音量,从而在不影响听觉效果的前提下,可降低所述终端设备的功耗。
参见图2,图2是本发明的另一个实施例提供的音效处理方法的流程示意图。所述音效处理方法可由软系统控制终端设备的硬件来执行。如图2所示,所述方法可包括如下步骤:
S201,检测终端设备播放的音频文件的频率。
可选地,上述音频文件可以是音频文件中的一小段或者是完整的音频文件。
S202,在所述音频文件的频率中有频段在预设频率范围内时,判断所述终端设备播放所述音频文件的音效参数是否满足第一预设条件。如果不满足,执行步骤S203,否则执行步骤S204。
检测终端设备播放的音频文件的频率之后,可判断所述音频文件的频率中是否有频段在预设频率范围内。
其中,所述预设频率范围的设置参考人耳对声音的敏感度进行设置。人类能听到的声音频率在20Hz至20KHz之间,其中在不同频段人耳对声音的灵敏度不一样,例如:人耳对15KHz至20KHz频段的声音极度不敏感,虽然可以通过人体和骨骼来感受声波,但耳朵是几乎听不到的;而人耳对1KHz至4KHz频段的声音极度敏感,感受到的穿透率最强;人耳对其他频段的声音的灵敏度相差不大,但能感受到不同的音色,例如低音或高音。
其中,判断所述终端设备播放所述音频文件的音效参数是否满足第一预设条件具体为:判断所述终端设备当前播放所述音频文件的音量是否等于及/或小于第一预设音量值及/或当前播放所述音频文件的增益是否等于或小于第一预设增益值。
S203,根据第一预设音效调节方式调节所述终端设备播放所述音频文件的音效参数。
其中,所述第一预设音效调节方式至少包括降低所述音频文件中所述频段的音量及/或增益。所述预设音效调节方式可为将所述音频文件中所述频段的音量降低至预设音量值及/或将所述音频文件中所述频段的增益降低至预设增益值,或者所述预设音效调节方式可为将所述音频文件中所述频段的音量降低一预设音量幅度及/或将播放所述音频文件中所述频段的增益降低一预设增益幅度。
S204,控制所述终端设备按照当前的音效参数播放所述音频文件。
具体地,当所述终端设备播放所述音效文件的音效参数满足所述预设条件 时,表示之前已经对所述终端设备的音效参数进行调节,所述终端设备当前的音效参数是合适的,无需再进行调节。因此,在播放音频频率在同一范围内的音频片段时,只需进行一次音效参数调节即可。
本实施方式中,在当前播放的音频文件的频率中有频段在预设频率范围内时,即人耳对当前播放的音频不敏感时,可降低音频文件中所述频段的增益和/或音量,从而在不影响听觉效果的前提下,可降低所述终端设备的功耗。进一步,当播放音频频率在同一频率范围内的音频片段时,只需经过一次调节即可,可降低所述终端设备的处理工作,从而进一步降低所述终端设备的功耗。
参见图3,图3是本发明的另一个实施例提供的音效处理方法的流程示意图。所述音效处理方法可由软系统控制终端设备的硬件来执行。如图3所示,所述方法可包括如下步骤:
S301,检测终端设备播放的音频文件的频率。
可选地,上述音频文件可以是音频文件中的一小段或者是完整的音频文件。
S302,判断在所述音频文件的频率中是否有频段不在预设频率范围内。如果是,执行步骤S303,否则执行步骤S306。
S303,判断所述终端设备播放所述音频文件的音效参数是否满足第二预设条件。如果是,执行步骤S304,否则执行步骤S305。
其中,判断所述终端设备播放所述音频文件的音效参数是否满足第二预设条件具体为:判断所述终端设备当前播放所述音频文件的音量是否大于第二预设音量值及/或当前播放所述音频文件的增益是否大于第二预设增益值。
S304,控制所述终端设备按照当前的音效参数播放所述音频文件。
具体地,当所述终端设备播放所述音效文件的音效参数满足所述第二预设条件时,表示之前已经对所述终端设备的音效参数进行调节,所述终端设备当前的音效参数是合适的,无需再进行调节。因此,在播放音频频率在同一范围内的音频片段时,只需进行一次音效参数调节即可。
SS305,根据第二预设音效调节方式调节所述终端设备播放所述音频文件的音效参数。
其中,所述第二预设音效调节方式至少包括增大播放所述音频文件中不在所述预设频率范围内的频段的音量及/或增益。所述第二预设音效调节方式可为将所述音频文件中不在所述预设频率范围内的频段的音量增大至第二预设音量值及/或将所述音频文件中不在所述预设频率范围内的频段的增益增大至第二预设增益值,或者所述预设音效调节方式可为将所述音频文件中不在所述预设频率范围内的频段的音量增大第二预设音量幅度及/或将所述音频文件中不在所述预设频率范围内的频段的增益增大第二预设增益幅度。
其中,第一预设音量值与第二预设音量值可以相同,也可以不同。第一预设增益值可以与第二预设增益值相同,也可以不相同。第一预设音量幅度与第二预设音量幅度可以相同,也可以不同。第一预设增益幅度与第二预设增益幅度可以相同,也可以不相同。
S306,在所述音频文件的频率中有频段在预设频率范围内时,根据第一预设音效调节方式调节所述终端设备播放所述音频文件的音效参数。
其中,所述第一预设音效调节方式至少包括降低所述音频文件中在所述预设频率范围内的频段的音量及/或增益。所述第一预设音效调节方式可为将所述音频文件中在所述预设频率范围内的频段的音量降低至预设音量值及/或将所述音频文件中在所述预设频率范围内的频段的增益降低至预设增益值,或者所述预设音效调节方式可为将所述音频文件中在所述预设频率范围内的频段的音量降低一预设音量幅度及/或将所述音频文件中在所述预设频率范围内的频段的增益降低一预设增益幅度。
本实施方式中,在当前播放的音频文件的频率中有频段在预设频率范围内时,即人耳对当前播放的音频不敏感时,可降低音频文件中在预设频率范围内的频段的增益和/或音量,从而在不影响听觉效果的前提下,可降低所述终端设备的功耗。进一步,在当前播放的音频文件的频率中有频段不在预设频率范围,即当前播放的音频为人耳敏感的音频时,可增大音频文件中不在预设频率范围内频段的增益和/或音量,从而保证用户能够得到好的听觉效果。
参见图4,图4是本发明的一个实施例提供的音效处理方法的流程示意图。所述音效处理方法可由软系统控制终端设备的硬件来执行。如图4所示,所述方法可包括如下步骤:
S401,根据终端设备采集到的环境噪音判断当前场景是否为预设的触发场景。
作为一种可行的实施方式,在音频播放过程中,终端设备可采集环境中的噪音,根据环境噪音来判断当前场景是否为预设的触发场景,其中触发场景指的是可触发终端设备对播放的音频片段的音效参数做出调整的场景,例如是噪音较大的场景。
具体实施中,可预先设置上述预设的触发场景所对应的噪音范围,通过判断所述环境噪音是否在所述噪音范围内来判断当前场景是否为预设的触发场景,在所述环境噪音在所述噪音范围内时,判断当前场景为预设的触发场景。
S402,在当前场景为预设的触发场景时,检测所述终端设备播放的音频文件的频率。
可选地,上述音频文件可以是音频文件中的一小段或者是完整的音频文件。
S403,当所述音频文件的频率中有频段在预设频率范围内时,根据第一预设音效调节方式调节所述终端设备播放所述音频文件的音效参数。
其中,所述预设频率范围的设置参考人耳对声音的敏感度进行设置。人类能听到的声音频率在20Hz至20KHz之间,其中在不同频段人耳对声音的灵敏度不一样,例如:人耳对15KHz至20KHz频段的声音极度不敏感,虽然可以通过人体和骨骼来感受声波,但耳朵是几乎听不到的;而人耳对1KHz至4KHz频段的声音极度敏感,感受到的穿透率最强;人耳对其他频段的声音的灵敏度相差不大,但能感受到不同的音色,例如低音或高音。
其中,所述预设音效调节方式至少包括降低所述音频文件中在预设频率范围内的频段的音量及/或增益。所述预设音效调节方式可为将所述音频文件中在预设频率范围内的频段的音量降低至第一预设音量值及/或将所述音频文件中在预设频率范围内的频段的增益降低至第一预设增益值,或者所述预设音效调节方式可为将所述音频文件中在预设频率范围内的频段的音量降低第一预设音量幅度及/或将所述音频文件中在预设频率范围内的频段的增益降低第一预设增益幅度。
本实施方式中,在当前处于的场景为预设的触发场景时,即处于噪音较大的场景下,对人耳来说,本来就不敏感的声音频段更加不易被察觉,因此,在此种场景下,当播放人耳不敏感的音频时,降低播放音频文件中在预设频率范围内的频段的增益和/或音量,更加不会影响听觉效果。
参见图5,图5是本发明的一个实施例提供的音效处理装置的结构示意图。如图5所示,所述终端设备可包括以下单元:
检测单元501,用于检测终端设备播放的音频文件的频率。
可选地,上述音频文件可以是音频文件中的一小段或者是完整的音频文件。
处理单元502,用于判断所述音频文件的频率中是否有频段在预设频率范围内,以及在所述音频文件的频率中有频段在预设频率范围内时,根据第一预设音效调节方式调节所述终端设备播放所述音频文件的音效参数。
其中,所述预设频率范围的设置参考人耳对声音的敏感度进行设置。人类能听到的声音频率在20Hz至20KHz之间,其中在不同频段人耳对声音的灵敏度不一样,例如:人耳对15KHz至20KHz频段的声音极度不敏感,虽然可以通过人体和骨骼来感受声波,但耳朵是几乎听不到的;而人耳对1KHz至4KHz频段的声音极度敏感,感受到的穿透率最强;人耳对其他频段的声音的灵敏度相差不大,但能感受到不同的音色,例如低音或高音。
其中,所述预设音效调节方式至少包括降低所述音频文件中所述频段的音量及/或增益。所述预设音效调节方式可为将所述音频文件中所述频段的音量降低至预设音量值及/或将所述音频文件中所述频段的增益降低至预设增益值,或者所述预设音效调节方式可为将所述音频文件中所述频段的音量降低一预设音量幅度及/或将所述音频文件中所述频段的增益降低一预设增益幅度。
本实施方式中,在当前播放的音频文件中有频段在预设频率范围内时,即人耳对当前播放的音频不敏感时,可降低音频文件中所述频段的增益和/或音量,从而在不影响听觉效果的前提下,可降低所述终端设备的功耗。
可选实施例中,所述处理单元502还用于:
在所述音频文件的频率中有频段在所述预设频率范围内时,判断所述终端设备播放所述音频文件的音效参数是否满足第一预设条件;
在所述终端设备当前播放所述音频文件的音效参数满足所述第一预设条件时,控制所述终端设备按照当前的音效参数播放所述音频文件;以及
在所述终端设备当前播放所述音频文件的音效参数不满足所述第一预设 条件时,根据所述第一预设音效调节方式调节所述终端设备播放所述音频文件的音效参数。
具体地,当所述终端设备当前播放所述音效文件的音效参数满足所述预设条件时,表示之前已经对所述终端设备的音效参数进行调节,所述终端设备当前的音效参数是合适的,无需再进行调节。因此,在播放音频频率在同一范围内的音频片段时,只需进行一次音效参数调节即可。
本实施方式中,在当前播放的音频文件的频率在预设频率范围内时,即人耳对当前播放的音频不敏感时,可降低播放音频文件的增益和/或音量,从而在不影响听觉效果的前提下,可降低所述终端设备的功耗。进一步,当播放音频频率在同一频率范围内的音频片段时,只需经过一次调节即可,可降低所述终端设备的处理工作,从而进一步降低所述终端设备的功耗。
可选实施例中,所述处理单元502还用于:
在所述音频文件的频率中有频段不在所述预设频率范围内时,判断所述终端设备播放所述音频文件的音效参数是否满足第二预设条件;
在所述终端设备当前播放所述音频文件的音效参数满足所述第二预设条件时,控制所述终端设备按照当前的音效参数播放所述音频文件;以及
在所述终端设备当前播放所述音频文件的音效参数不满足所述第二预设条件时,根据第二预设音效调节方式调节所述终端设备播放所述音频文件的音效参数。
其中,判断所述终端设备当前播放所述音频文件的音效参数是否满足第二预设条件具体为:判断所述终端设备当前播放所述音频文件的音量是否大于预设音量值及/或当前播放所述音频文件的增益是否大于预设增益值。
具体地,当所述终端设备当前播放所述音效文件的音效参数满足所述第二预设条件时,表示之前已经对所述终端设备的音效参数进行调节,所述终端设备当前的音效参数是合适的,无需再进行调节。因此,在播放音频频率在同一范围内的音频片段时,只需进行一次音效参数调节即可。
其中,所述第二预设音效调节方式至少包括增大所述音频文件中不在所述预设频率范围内的频段的音量及/或增益。所述第二预设音效调节方式可为将所述音频文件中不在所述预设频率范围内的频段的音量增大至预设音量值及/或将所述音频文件中不在所述预设频率范围内的频段的增益增大至预设增益值,或者所述预设音效调节方式可为将所述音频文件中不在所述预设频率范围内的频段的音量增大一预设音量幅度及/或将所述音频文件中不在所述预设频率范围内的频段的增益增大一预设增益幅度。
本实施方式中,在当前播放的音频文件的频率中有频段在预设频率范围内时,即人耳对当前播放的音频不敏感时,可降低播放音频文件中在预设频率范围内的频段的增益和/或音量,从而在不影响听觉效果的前提下,可降低所述终端设备的功耗。进一步,在当前播放的音频文件的频率中有频段不在预设频率范围,即当前播放的音频为人耳敏感的音频时,可增大播放音频文件中不在 预设频率范围内频段的增益和/或音量,从而保证用户能够得到好的听觉效果。
参见图6,图6是本发明的另一个实施例提供的音效处理装置的结构示意图。如图6所示,所述终端设备除包括检测单元501和处理单元502外,还包括确定单元503,用于根据所述终端设备采集到的环境噪音判断当前场景是否为预设的触发场景。
作为一种可行的实施方式,在音频播放过程中,终端设备可采集环境中的噪音,根据环境噪音来判断当前场景是否为预设的触发场景,其中触发场景指的是可触发终端设备对播放的音频片段的音效参数做出调整的场景,例如是噪音较大的场景。
所述处理单元502用于在当前场景为所述预设的触发场景时,检测所述终端设备播放的音频文件的频率。
具体实施中,终端设备还可包括设置单元504,用于预先设置上述预设的触发场景所对应的噪音范围。所述确定单元503通过判断所述环境噪音是否在所述噪音范围内来判断当前场景是否为预设的触发场景,在所述环境噪音在所述噪音范围内时,判断当前场景为预设的触发场景。
本实施方式中,在当前处于的场景为预设的触发场景时,即处于噪音较大的场景下,对人耳来说,本来就不敏感的声音频段更加不易被察觉,因此,在此种场景下,当播放人耳不敏感的音频时,降低播放音频文件中在预设频率范围内的频段的增益和/或音量,更加不会影响听觉效果。
参见图7,图7是本发明的又一个实施例提供的终端设备的结构示意图。如图7所示,所述终端设备可包括处理器701,存储器702,通信接口703和通信总线704;其中,处理器701、存储器702、指纹识别模组705和通信接口703通过通信总线704连接并完成相互间的通信;处理器701通过通信接口703控制与外部蜂窝网的无线通信;通信接口703包括但不限于天线、放大器、收发信机、耦合器、LNA(Low Noise Amplifier,低噪声放大器)、双工器等。存储器702包括以下至少一种:随机存取存贮器、非易失性存储器以及外部存储器,存储器702中存储有可执行程序代码,处理器701可调用该可执行程序代码,执行以下步骤:
检测终端设备播放的音频文件的频率;
判断所述音频文件的频率中是否有频段是否在预设频率范围内;
在所述音频文件的频率中有频段在预设频率范围内时,根据第一预设音效调节方式调节所述终端设备播放所述音频文件的音效参数,其中,所述第一预设音效调节方式至少包括降低所述音频文件中所述频段的音量及/或增益。
其中,所述根据第一预设音效调节方式调节所述终端设备播放所述音频文件的音效参数之前,所述可执行程序代码还被执行以用于:
在所述音频文件的频率中有频段在所述预设频率范围内时,判断所述终端设备当前播放所述音频文件的音效参数是否满足第一预设条件;
在所述终端设备当前播放所述音频文件的音效参数满足所述第一预设条 件时,控制所述终端设备按照当前的音效参数播放所述音频文件;以及
在所述终端设备当前播放所述音频文件的音效参数不满足所述第一预设条件时,根据所述第一预设音效调节方式调节所述终端设备播放所述音频文件的音效参数。
其中,所述可执行程序代码还被执行以用于:
在所述音频文件的频率中有频段不在所述预设频率范围内时,判断所述终端设备当前播放所述音频文件的音效参数是否满足第二预设条件;
在所述终端设备当前播放所述音频文件的音效参数满足所述第二预设条件时,控制所述终端设备按照当前的音效参数播放所述音频文件;以及
在所述终端设备当前播放所述音频文件的音效参数不满足所述第二预设条件时,根据第二预设音效调节方式调节所述终端设备播放所述音频文件的音效参数,其中,所述第二预设音效调节方式至少包括增大所述音频文件不在所述预设频率范围内的频段的音量及/或增益。
其中,所述检测终端设备播放的音频文件的频率之前,所述所述可执行程序代码还被执行以用于:
根据所述终端设备采集到的环境噪音判断当前场景是否为预设的触发场景;
若判断结果为是,则检测所述终端设备播放的音频文件的频率。
其中,所述根据所述环境噪音判断当前场景是否为预设的触发场景之前,所述可执行程序代码还被执行以用于:
设置所述预设的触发场景所对应的噪音范围;
所述根据所述环境噪音判断当前场景是否为预设的触发场景,具体为:判断所述环境噪音是否在所述噪音范围内,以及所述环境噪音在所述噪音范围内时,确定当前场景为预设的触发场景。
本发明所有实施例中的模块或单元,可以通过通用集成电路,例如CPU(Central Processing Unit,中央处理器),或通过ASIC(Application Specific Integrated Circuit,专用集成电路)来实现。
本发明实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本发明实施例装置中的模块或单元可以根据实际需要进行合并、划分和删减。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。

Claims (20)

  1. 一种音效处理方法,其特征在于,包括:
    检测终端设备播放的音频文件的频率;
    判断所述音频文件的频率中是否有频段在预设频率范围内;
    在所述音频文件的频率中有频段在预设频率范围内时,根据第一预设音效调节方式调节所述终端设备播放所述音频文件的音效参数,其中,所述第一预设音效调节方式至少包括降低所述音频文件中所述频段的音量及/或增益。
  2. 如权利要求1所述的方法,其特征在于,所述根据第一预设音效调节方式调节所述终端设备播放所述音频文件的音效参数之前,所述方法还包括:
    在所述音频文件的频率中有频段在所述预设频率范围内时,判断所述终端设备当前播放所述音频文件的音效参数是否满足第一预设条件;
    在所述终端设备当前播放所述音频文件的音效参数满足所述第一预设条件时,控制所述终端设备按照当前的音效参数播放所述音频文件;以及
    在所述终端设备当前播放所述音频文件的音效参数不满足所述第一预设条件时,根据所述第一预设音效调节方式调节所述终端设备播放所述音频文件的音效参数。
  3. 如权利要求2所述的方法,其特征在于,所述判断所述终端设备播放所述音频文件的音效参数是否满足第一预设条件具体为:判断所述终端设备当前播放所述音频文件的音量是否等于或小于第一预设音量值及/或当前播放所述音频文件的增益是否等于或小于第一预设增益值。
  4. 如权利要求3所述的方法,其特征在于,所述根据所述第一预设音效调节方式调节所述终端设备播放所述音频文件的音效参数,包括:
    将所述音频文件中在所述预设频率范围内的频段的音量降低至所述第一预设音量值及/或将所述音频文件中在所述频率范围内的频段的增益降低至所述第一预设增益值;或者,
    将所述音频文件中在所述预设频率范围内的频段的音量按照第一预设音量幅度降低及/或将所述音频文件中在所述频率范围内的频段的增益按照第一预设增益幅度降低。
  5. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    在所述音频文件的频率中有频段不在所述预设频率范围内时,判断所述终端设备当前播放所述音频文件的音效参数是否满足第二预设条件;
    在所述终端设备当前播放所述音频文件的音效参数满足所述第二预设条件时,控制所述终端设备按照当前的音效参数播放所述音频文件;以及
    在所述终端设备当前播放所述音频文件的音效参数不满足所述第二预设条件时,根据第二预设音效调节方式调节所述终端设备播放所述音频文件的音效参数,其中,所述第二预设音效调节方式至少包括增大所述音频文件中不在所述预设频率范围内的频段的音量及/或增益。
  6. 如权利要求5所述的方法,其特征在于,所述判断所述终端设备播放所述音频文件的音效参数是否满足第二预设条件具体为:判断所述终端设备当前播放所述音频文件的音量是否大于第二预设音量值及/或当前播放所述音频文件的增益是否大于第二预设增益值。
  7. 如权利要求6所述的方法,其特征在于,所述根据所述第二预设音效调节方式调节所述终端设备播放所述音频文件的音效参数,包括:
    将所述音频文件中不在所述预设频率范围内的频段的音量增加至所述第二预设音量值及/或将所述音频文件中在所述频率范围内的频段的增益增加至所述第二预设增益值;或者,
    将所述音频文件中不在所述预设频率范围内的频段的音量按照第二预设音量幅度增加及/或将所述音频文件中在所述频率范围内的频段的增益按照第二预设增益幅度增加。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述检测终端设备播放的音频文件的频率之前,所述方法还包括:
    根据所述终端设备采集到的环境噪音判断当前场景是否为预设的触发场景;
    在所述当前场景为所述预设的触发场景时,则检测所述终端设备播放的音频文件的频率。
  9. 根据权利要求8所述的方法,其特征在于,所述根据所述环境噪音判断当前场景是否为预设的触发场景之前,所述方法还包括:
    设置所述预设的触发场景所对应的噪音范围;
    所述根据所述环境噪音判断当前场景是否为预设的触发场景,具体为:判断所述环境噪音是否在所述噪音范围内,以及所述环境噪音在所述噪音范围内时,确定当前场景为预设的触发场景。
  10. 一种音效处理装置,其特征在于,包括:
    检测单元,用于检测终端设备播放的音频文件的频率;以及
    处理单元,判断所述音频文件的频率中是否有频段在预设频率范围内,以及在所述音频文件的频率中有频段在预设频率范围内时,根据第一预设音效调节方式调节所述终端设备播放所述音频文件的音效参数,其中,所述第一预设 音效调节方式至少包括降低播放所述音频文件中所述频段的音量及/或增益。
  11. 如权利要求10所述的装置,其特征在于,所述处理单元还用于:
    在所述音频文件的频率中有频段在所述预设频率范围内时,判断所述终端设备当前播放所述音频文件的音效参数是否满足第一预设条件;
    在所述终端设备当前播放所述音频文件的音效参数满足所述第一预设条件时,控制所述终端设备按照当前的音效参数播放所述音频文件;以及
    在所述终端设备当前播放所述音频文件的音效参数不满足所述第一预设条件时,根据所述第一预设音效调节方式调节所述终端设备播放所述音频文件的音效参数。
  12. 如权利要求11所述的装置,其特征在于,所述处理单元还用于:
    判断所述终端设备当前播放所述音频文件的音量是否等于或小于第一预设音量值及/或当前播放所述音频文件的增益是否等于或小于第一预设增益值。
  13. 如权利要求12所述的装置,其特征在于,所述处理单元还用于:
    将所述音频文件中在所述预设频率范围内的频段的音量降低至所述第一预设音量值及/或将所述音频文件中在所述频率范围内的频段的增益降低至所述第一预设增益值;或者,
    将所述音频文件中在所述预设频率范围内的频段的音量按照第一预设音量幅度降低及/或将所述音频文件中在所述频率范围内的频段的增益按照第一预设增益幅度降低。
  14. 如权利要求10所述的装置,其特征在于,所述处理单元还用于:
    在所述音频文件的频率中有频段不在所述预设频率范围内时,判断所述终端设备当前播放所述音频文件的音效参数是否满足第二预设条件;
    在所述终端设备当前播放所述音频文件的音效参数满足所述第二预设条件时,控制所述终端设备按照当前的音效参数播放所述音频文件;以及
    在所述终端设备当前播放所述音频文件的音效参数不满足所述第二预设条件时,根据第二预设音效调节方式调节所述终端设备播放所述音频文件的音效参数,其中,所述第二预设音效调节方式至少包括增大所述音频文件中不在所述预设频率范围内的频段的音量及/或增益。
  15. 如权利要求14所述的装置,其特征在于,所述处理单元还用于:
    判断所述终端设备当前播放所述音频文件的音量是否大于第二预设音量值及/或当前播放所述音频文件的增益是否大于第二预设增益值。
  16. 如权利要求15所述的装置,其特征在于,所述处理单元还用于:
    将所述音频文件中不在所述预设频率范围内的频段的音量增加至所述第 二预设音量值及/或将所述音频文件中在所述频率范围内的频段的增益增加至所述第二预设增益值;或者,
    将所述音频文件中不在所述预设频率范围内的频段的音量按照第二预设音量幅度增加及/或将所述音频文件中在所述频率范围内的频段的增益按照第二预设增益幅度增加。
  17. 根据权利要求10-16任一项所述的装置,其特征在于,还包括确定单元,用于根据所述终端设备采集到的环境噪音判断当前场景是否为预设的触发场景;
    所述处理单元用于在当前场景为所述预设的触发场景时,检测所述终端设备播放的音频文件的频率。
  18. 根据权利要求17所述的装置,其特征在于,还包括设置单元,用于设置所述预设的触发场景所对应的噪音范围;
    所述确定单元用于根据所述环境噪音判断当前场景是否为预设的触发场景,具体为:所述确定单元判断所述环境噪音是否在所述噪音范围内,以及在所述环境噪音在所述噪音范围内时,确定当前场景为预设的触发场景。
  19. 一种终端设备,其特征在于,包括:处理器、存储器;
    所述存储器存储有可执行程序代码;
    所述处理器用于调用所述存储器中的可执行程序代码,执行如权利要求1-9任意一项所述的方法。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行如权利要求1-9中任意一个方法。
PCT/CN2017/088761 2016-06-16 2017-06-16 音效处理方法及终端设备 Ceased WO2017215657A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610438866.XA CN106126167B (zh) 2016-06-16 2016-06-16 一种音效处理方法及终端设备
CN201610438866.X 2016-06-16

Publications (1)

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

Family

ID=57470853

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/088761 Ceased WO2017215657A1 (zh) 2016-06-16 2017-06-16 音效处理方法及终端设备

Country Status (2)

Country Link
CN (1) CN106126167B (zh)
WO (1) WO2017215657A1 (zh)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109817189A (zh) * 2018-12-29 2019-05-28 深圳市蔚科电子科技开发有限公司 音频信号的调节方法、音效调节设备及系统
CN113409800A (zh) * 2020-03-16 2021-09-17 浙江宇视科技有限公司 一种监控音频的处理方法、装置、存储介质及电子设备
CN113611317A (zh) * 2021-08-03 2021-11-05 广州小鹏汽车科技有限公司 音效处理方法、装置、车载娱乐系统及汽车
CN113923561A (zh) * 2020-07-08 2022-01-11 阿里巴巴集团控股有限公司 一种智能音箱音效调整方法和装置
US11457324B2 (en) 2020-08-27 2022-09-27 Axis Ab Audio content-based speaker control
CN115811591A (zh) * 2021-09-14 2023-03-17 Oppo广东移动通信有限公司 音频处理方法、装置、终端设备及存储介质
CN118158596A (zh) * 2023-12-07 2024-06-07 中国建筑科学研究院有限公司 应用于绿色建筑的基于掩蔽效应的智能声景控制方法

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106126167B (zh) * 2016-06-16 2019-08-27 Oppo广东移动通信有限公司 一种音效处理方法及终端设备
CN108462911A (zh) * 2017-12-11 2018-08-28 广东思派康电子科技有限公司 一种计算机可读存储介质和应用该介质的音效模式自适应耳机
CN108091330B (zh) * 2017-12-13 2020-11-27 北京小米移动软件有限公司 输出声强调节方法、装置、电子设备及存储介质
CN110809214B (zh) * 2019-11-21 2021-01-08 Oppo广东移动通信有限公司 音频播放方法、音频播放装置及终端设备
CN111580774B (zh) * 2020-04-28 2023-07-14 江苏紫米电子技术有限公司 一种音效调节方法、装置、设备和存储介质
CN112511123A (zh) * 2020-11-30 2021-03-16 广州朗国电子科技有限公司 一种音效定制方法、装置、电子设备及存储介质
CN112804616B (zh) * 2020-12-31 2022-05-17 青岛海信移动通信技术股份有限公司 移动终端及其音频播放方法
CN115437597A (zh) * 2021-06-02 2022-12-06 深圳市万普拉斯科技有限公司 音频播放方法、装置及终端设备
CN121603833A (zh) * 2024-08-20 2026-03-03 华为技术有限公司 一种音频播放方法及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195581A (zh) * 2010-03-18 2011-09-21 承景科技股份有限公司 数字音频信号的音量调整方法
CN102984634A (zh) * 2011-11-22 2013-03-20 南京工程学院 一种数字助听器非等宽子带自动增益控制方法
CN103096230A (zh) * 2013-01-15 2013-05-08 杭州爱听科技有限公司 全数字式助听器及其变通道匹配补偿方法
CN103177727A (zh) * 2011-12-23 2013-06-26 重庆重邮信科通信技术有限公司 一种音频频带处理方法及系统
CN103247293A (zh) * 2013-05-14 2013-08-14 中国科学院自动化研究所 一种语音数据的编码及解码方法
CN106126167A (zh) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 一种音效处理方法及终端设备

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100556101C (zh) * 2007-01-26 2009-10-28 深圳创维-Rgb电子有限公司 一种电视机声音处理装置及方法
CN101540943A (zh) * 2008-03-18 2009-09-23 桦勋有限公司 整合滤波电路及功率调整电路的微型扬声系统
CN102956247B (zh) * 2011-08-19 2016-08-17 富泰华工业(深圳)有限公司 音频播放装置及音频调整方法
CN103078997A (zh) * 2012-12-20 2013-05-01 广东欧珀移动通信有限公司 移动终端音量设定方法、系统及移动终端
CN203554677U (zh) * 2013-11-08 2014-04-16 冠捷显示科技(厦门)有限公司 一种可分频率调整音量的系统及应用该系统的电视
CN104978166A (zh) * 2015-06-30 2015-10-14 北京奇艺世纪科技有限公司 一种音量调节方法及装置
CN105262452A (zh) * 2015-10-29 2016-01-20 小米科技有限责任公司 音量调整方法、装置及终端

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195581A (zh) * 2010-03-18 2011-09-21 承景科技股份有限公司 数字音频信号的音量调整方法
CN102984634A (zh) * 2011-11-22 2013-03-20 南京工程学院 一种数字助听器非等宽子带自动增益控制方法
CN103177727A (zh) * 2011-12-23 2013-06-26 重庆重邮信科通信技术有限公司 一种音频频带处理方法及系统
CN103096230A (zh) * 2013-01-15 2013-05-08 杭州爱听科技有限公司 全数字式助听器及其变通道匹配补偿方法
CN103247293A (zh) * 2013-05-14 2013-08-14 中国科学院自动化研究所 一种语音数据的编码及解码方法
CN106126167A (zh) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 一种音效处理方法及终端设备

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109817189A (zh) * 2018-12-29 2019-05-28 深圳市蔚科电子科技开发有限公司 音频信号的调节方法、音效调节设备及系统
CN109817189B (zh) * 2018-12-29 2023-09-08 珠海市蔚科科技开发有限公司 音频信号的调节方法、音效调节设备及系统
CN113409800A (zh) * 2020-03-16 2021-09-17 浙江宇视科技有限公司 一种监控音频的处理方法、装置、存储介质及电子设备
CN113923561A (zh) * 2020-07-08 2022-01-11 阿里巴巴集团控股有限公司 一种智能音箱音效调整方法和装置
US11457324B2 (en) 2020-08-27 2022-09-27 Axis Ab Audio content-based speaker control
CN113611317A (zh) * 2021-08-03 2021-11-05 广州小鹏汽车科技有限公司 音效处理方法、装置、车载娱乐系统及汽车
CN113611317B (zh) * 2021-08-03 2024-03-12 广州小鹏汽车科技有限公司 音效处理方法、装置、车载娱乐系统及汽车
CN115811591A (zh) * 2021-09-14 2023-03-17 Oppo广东移动通信有限公司 音频处理方法、装置、终端设备及存储介质
CN118158596A (zh) * 2023-12-07 2024-06-07 中国建筑科学研究院有限公司 应用于绿色建筑的基于掩蔽效应的智能声景控制方法

Also Published As

Publication number Publication date
CN106126167A (zh) 2016-11-16
CN106126167B (zh) 2019-08-27

Similar Documents

Publication Publication Date Title
WO2017215657A1 (zh) 音效处理方法及终端设备
CN103295581B (zh) 增加语音清晰度的方法和装置以及运算装置
CN114979363B (zh) 一种音量调节方法、装置、电子设备及存储介质
US10475434B2 (en) Electronic device and control method of earphone device
US12019949B2 (en) Method for audio mixing, terminal device, and non-transitory computer-readable medium
CN111970609B (zh) 音质调节方法、音质调节系统及计算机可读存储介质
US11201598B2 (en) Volume adjusting method and mobile terminal
CN114902560B (zh) 具有环境噪音补偿的用于自动音量控制的设备和方法
CN104978166A (zh) 一种音量调节方法及装置
CN114125625B (zh) 降噪调整方法、耳机及计算机可读存储介质
CN106126164A (zh) 一种音效处理方法及终端设备
CN107526570B (zh) 音量调节方法、装置、终端设备及存储介质
CN111343497A (zh) 播放设备的音效调整方法、播放设备以及存储介质
WO2017032012A1 (zh) 一种音量调节方法及用户终端
WO2019033941A1 (zh) 音量调节方法、装置、终端设备及存储介质
CN111552452A (zh) 匹配音频输出参数的方法、设备及存储介质
CN107506168B (zh) 音量调节方法、装置、终端设备及存储介质
JP6381062B2 (ja) 通信デバイスのための音声信号を処理するための方法及びデバイス
CN114071307B (zh) 耳机的音量调节方法、装置、设备及介质
WO2023070792A1 (zh) 通话式门铃的音量均衡方法、设备和可读存储介质
CN107483734B (zh) 音量调节方法、装置、终端设备及存储介质
CN111161750B (zh) 语音处理方法及相关装置
US12470868B2 (en) Signal processing method, apparatus and electronic device
CN105872182A (zh) 提高麦克风发送响度的方法及电子终端
CN116132869A (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: 17812768

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

Country of ref document: EP

Kind code of ref document: A1