[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108845787B - Audio adjusting method, device, terminal and storage medium - Google Patents

Audio adjusting method, device, terminal and storage medium Download PDF

Info

Publication number
CN108845787B
CN108845787B CN201810594179.6A CN201810594179A CN108845787B CN 108845787 B CN108845787 B CN 108845787B CN 201810594179 A CN201810594179 A CN 201810594179A CN 108845787 B CN108845787 B CN 108845787B
Authority
CN
China
Prior art keywords
noise
audio
volume
adjusting
played
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.)
Active
Application number
CN201810594179.6A
Other languages
Chinese (zh)
Other versions
CN108845787A (en
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810594179.6A priority Critical patent/CN108845787B/en
Publication of CN108845787A publication Critical patent/CN108845787A/en
Application granted granted Critical
Publication of CN108845787B publication Critical patent/CN108845787B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (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)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The disclosure relates to a method, a device, a terminal and a storage medium for audio adjustment. The method comprises the following steps: acquiring noise information of a current environment; and adjusting the tone quality and the volume of the audio to be played according to the noise information so that the adjusted audio to be played is suitable for being played in the current environment. The method and the device can meet the requirements of the user on the tone quality and the volume of the played audio under different environmental noises, avoid the condition that the user manually configures parameters to adjust the audio, and improve the user experience.

Description

Audio adjusting method, device, terminal and storage medium
Technical Field
The present disclosure relates to audio processing technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for audio adjustment.
Background
With the development of science and technology, the popularization of terminals such as mobile phones and tablet computers, more and more users play music and watch videos by using the terminals.
In the related art, when a user uses a terminal to play music and watch videos, the terminal needs to play corresponding audio. Generally, the terminal may adjust the audio according to the parameters configured by the user, for example, adjust the audio according to the volume level or the sound quality level set by the user, and play the audio through the speaker after the adjustment.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an audio adjusting method, apparatus, terminal, and storage medium.
According to a first aspect of embodiments of the present disclosure, there is provided a method of audio adjustment, including:
acquiring noise information of a current environment;
and adjusting the tone quality and the volume of the audio to be played according to the noise information so that the adjusted audio to be played is suitable for being played in the current environment.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: through the noise information of the current environment, the tone quality and the volume of the audio to be played are adjusted according to the noise information, so that the adjusted audio to be played is suitable for being played in the current environment, the requirements of a user on the tone quality and the volume of the played audio under different environmental noises can be met, the condition that the user manually configures parameters to adjust the audio is avoided, and the user experience is improved.
Optionally, the noise information includes a noise decibel value;
then, according to the noise information, adjusting the tone quality and the volume of the audio to be played, including:
adjusting the tone quality and volume of the audio to be played according to the noise information and an adjusting strategy;
wherein the adjustment strategy comprises: the larger the noise is, the larger the volume is, and the poorer the sound quality is; the smaller the noise, the smaller the sound volume and the better the sound quality.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: adjusting the tone quality and the volume of the audio to be played according to the noise information of the current environment and an adjusting strategy, wherein the adjusting strategy comprises that the larger the noise is, the larger the volume is, and the worse the tone quality is; the smaller the noise, the smaller the volume, the better the tone quality, can satisfy the user needs good tone quality when the environment is quiet, need hear the demand of content clearly when the environment is noisy, avoided the manual configuration parameter of user to carry out the regulation of audio frequency, improved user experience.
Optionally, the adjusting, according to the noise information and the adjustment policy, the sound quality and the volume of the audio to be played includes:
according to the noise decibel value, determining a volume level and a sound quality level corresponding to the noise decibel value; the higher the noise decibel value is, the higher the volume level is and the lower the sound quality level is, and the smaller the noise decibel value is, the lower the volume level is and the higher the sound quality level is;
adjusting the volume of the audio to be played according to the volume level;
and adjusting the tone quality of the audio to be played according to the tone quality grade.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the volume level and the tone quality level corresponding to the noise decibel value are determined according to the noise decibel value, the volume of the audio to be played is adjusted according to the volume level, the tone quality of the audio to be played is adjusted according to the tone quality level, and therefore the tone quality and the volume of the audio to be played are adjusted according to the noise information and the adjusting strategy of the current environment.
Optionally, the adjusting, according to the noise information and the adjustment policy, the sound quality and the volume of the audio to be played includes:
determining a noise change trend and a noise change amplitude according to the noise information of the current environment and the noise information of the previous environment;
if the noise change trend is that the noise becomes larger and the noise amplitude is larger than or equal to a first preset threshold value, adjusting the current volume level to be higher and adjusting the current tone quality level to be lower;
if the noise change trend is that the noise becomes smaller and the noise change amplitude is larger than or equal to a second preset threshold value, adjusting the current volume level to be lower and adjusting the current tone quality level to be higher;
adjusting the volume of the audio to be played according to the adjusted volume level;
and adjusting the tone quality of the audio to be played according to the adjusted tone quality grade.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the method comprises the steps of determining a noise change trend and a noise change amplitude according to noise information of a current environment and noise information of a previous environment, turning down a current volume level and turning up a current sound quality level if the noise change trend is that noise becomes small and the noise amplitude is larger than or equal to a second preset threshold, turning up the current volume level and turning down the current sound quality level if the noise change trend is that noise becomes large and the noise amplitude is larger than or equal to a first preset threshold, adjusting the volume of the audio to be played according to the adjusted volume level, adjusting the sound quality of the audio to be played according to the adjusted sound quality level, and adjusting the sound quality and the volume of the audio to be played according to the noise information of the current environment and an adjusting strategy.
Optionally, the sound quality includes at least one of the following: stereo effect, bass effect, human voice enhancement.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for audio adjustment, including:
an acquisition module configured to acquire noise information of a current environment;
and the adjusting module is configured to adjust the tone quality and the volume of the audio to be played according to the noise information, so that the adjusted audio to be played is suitable for being played in the current environment.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the noise information of the current environment is acquired through the acquisition module, and the adjusting module adjusts the tone quality and the volume of the audio to be played according to the noise information, so that the adjusted audio to be played is suitable for being played in the current environment, the requirements of a user on the tone quality and the volume of the played audio under different environmental noises can be met, the condition that the user manually configures parameters to adjust the audio is avoided, and the user experience is improved.
Optionally, the noise information includes a noise decibel value;
the adjusting module comprises: the adjusting submodule is configured to adjust the sound quality and the volume of the audio to be played according to the noise information and an adjusting strategy;
wherein the adjustment strategy comprises: the larger the noise is, the larger the volume is, and the poorer the sound quality is; the smaller the noise, the smaller the sound volume and the better the sound quality.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: adjusting the tone quality and the volume of the audio to be played through an adjusting sub-module according to the noise information of the current environment and an adjusting strategy, wherein the adjusting strategy comprises that the larger the noise is, the larger the volume is, and the worse the tone quality is; the smaller the noise, the smaller the volume, the better the tone quality, can satisfy the user needs good tone quality when the environment is quiet, need hear the demand of content clearly when the environment is noisy, avoided the manual configuration parameter of user to carry out the regulation of audio frequency, improved user experience.
Optionally, the regulator sub-module includes:
a determining submodule configured to determine a volume level and a sound quality level corresponding to the noise decibel value according to the noise decibel value; the higher the noise decibel value is, the higher the volume level is and the lower the sound quality level is, and the smaller the noise decibel value is, the lower the volume level is and the higher the sound quality level is;
a first adjusting submodule configured to adjust the volume of the audio to be played according to the volume level;
and the second adjusting submodule is configured to adjust the sound quality of the audio to be played according to the sound quality grade.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the volume level and the tone quality level corresponding to the noise decibel value are determined by the determining submodule according to the noise decibel value, the first adjusting submodule adjusts the volume of the audio to be played according to the volume level, and the second adjusting submodule adjusts the tone quality of the audio to be played according to the tone quality level, so that the tone quality and the volume of the audio to be played are adjusted according to the noise information and the adjusting strategy of the current environment.
Optionally, the regulator sub-module includes:
the determining submodule is configured to determine a noise change trend and a noise change amplitude according to the noise information of the current environment and the noise information of the previous environment;
a first adjustment submodule configured to: if the noise change trend is that the noise becomes larger and the noise amplitude is larger than or equal to a first preset threshold value, adjusting the current volume level to be higher and adjusting the current tone quality level to be lower; if the noise change trend is that the noise becomes smaller and the noise change amplitude is larger than or equal to a second preset threshold value, adjusting the current volume level to be lower and adjusting the current tone quality level to be higher;
the second adjusting submodule is configured to adjust the volume of the audio to be played according to the adjusted volume level;
and the third adjusting submodule is configured to adjust the tone quality of the audio to be played according to the adjusted tone quality grade.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the determining submodule determines a noise variation trend and a noise variation amplitude according to the noise information of the current environment and the noise information of the previous environment, if the noise variation trend is that the noise becomes smaller and the noise amplitude is larger than or equal to a second preset threshold value, turning down the current volume level and turning up the current tone quality level, if the noise trend is that the noise becomes bigger and the noise amplitude is larger than or equal to a first preset threshold value, the current volume level is adjusted to be high and the current tone quality level is adjusted to be low, the second adjusting submodule adjusts the volume of the audio to be played according to the adjusted volume level, and the third adjusting submodule adjusts the tone quality of the audio to be played according to the adjusted tone quality level, so that the tone quality and the volume of the audio to be played are adjusted according to the noise information and the adjusting strategy of the current environment.
Optionally, the sound quality includes at least one of the following: stereo effect, bass effect, human voice enhancement.
According to a third aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor and a memory for storing computer instructions; the processor executes the computer instructions to perform any of the methods of audio conditioning provided by the first aspect above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a terminal, enable the terminal to perform any one of the methods of audio conditioning provided by the first aspect described above.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating a method of audio adjustment according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of audio adjustment according to another exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of audio adjustment according to yet another exemplary embodiment;
FIG. 4 is a flow chart illustrating a method of audio adjustment according to yet another exemplary embodiment;
FIG. 5 is a block diagram illustrating an apparatus for audio conditioning in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating an apparatus for audio conditioning in accordance with another exemplary embodiment;
FIG. 7 is a block diagram illustrating an apparatus for audio conditioning in accordance with yet another exemplary embodiment;
FIG. 8 is a block diagram illustrating an apparatus for audio conditioning in accordance with yet another exemplary embodiment;
FIG. 9 is a block diagram illustrating entities of a terminal in accordance with an example embodiment;
fig. 10 is a block diagram illustrating a terminal 800 according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method for adjusting audio according to an exemplary embodiment, where an execution subject of the method may be a terminal, such as a mobile phone, a tablet computer, or the like. As shown in fig. 1, the method comprises the following steps:
step 101, obtaining noise information of the current environment.
In this step, the noise information of the current environment may be obtained by a device provided on the terminal and converting the sound signal into an electrical signal. The component may be, for example, a Microphone (MIC) on a terminal. The noise information may specifically be information capable of representing characteristics of the environmental noise, for example, the noise information may include a noise decibel value for representing a noise level. Optionally, the noise information of the current environment may be the environmental noise information within the latest preset time length. For example, ambient noise information within the last 10 seconds.
Step 102, adjusting the tone quality and the volume of the audio to be played according to the noise information, so that the adjusted audio to be played is suitable for being played in the current environment.
In this step, after the noise information of the current environment is acquired, the tone quality and the volume of the audio to be played are adjusted according to the acquired noise information. Optionally, the adjustment of the sound quality and the volume may be implemented by an algorithm, and specifically, parameters of the adjustment algorithm may be determined according to the noise information, so as to implement the adjustment of the sound quality and the volume of the audio to be played according to the noise information. Optionally, the sound quality includes at least one of: stereo effect, bass effect, human voice enhancement. It should be noted that, when the terminal has only one speaker, the sound quality does not include the stereo effect; when the terminal has two or more speakers, the sound quality may include a stereo effect. Due to different environmental noises, users have different requirements on the sound quality and volume of the played audio. Therefore, the sound quality and volume of the audio to be played suitable for playing are different under different environmental noises. The tone quality and the volume of the audio to be played are adjusted according to the noise information of the current environment, so that the adjusted audio to be played is suitable for being played in the current environment, the requirements of a user on the tone quality and the volume of the played audio under different environmental noises can be met, the condition that the user manually configures parameters to adjust the audio is avoided, and the user experience is improved.
According to the audio adjusting method, the noise information of the current environment is obtained, and the tone quality and the volume of the audio to be played are adjusted according to the noise information, so that the adjusted audio to be played is suitable for being played in the current environment, the requirements of a user on the tone quality and the volume of the played audio under different environmental noises can be met, the condition that the user manually configures parameters to adjust the audio is avoided, and the user experience is improved.
Fig. 2 is a flow chart illustrating a method of audio adjustment according to another exemplary embodiment. This embodiment mainly describes an alternative implementation manner of adjusting the sound quality and volume of the audio to be played according to the noise information on the basis of the embodiment shown in fig. 1. As shown in fig. 2, the method comprises the following steps:
step 201, acquiring noise information of the current environment.
In this step, the current noise information includes a noise decibel value.
It should be noted that step 201 is similar to step 101, and is not described herein again.
Step 202, adjusting the tone quality and volume of the audio to be played according to the noise information and the adjustment strategy.
In this step, under different environmental noises, the user's requirements for the played audio are usually: when the environment is quite quiet, a good tone quality is needed; when the environment is noisy, the content only needs to be clearly heard. There may be a corresponding adjustment strategy for this requirement. The adjustment strategy may include: the larger the noise is, the larger the volume is, and the poorer the sound quality is; the smaller the noise, the smaller the sound volume and the better the sound quality. Optionally, the maximum volume and/or the minimum volume may also be limited. Specifically, the adjustment strategy may further include: the volume is less than or equal to a first preset volume, and/or the volume is greater than or equal to a second preset volume, wherein the first preset volume is greater than the second preset volume.
According to the audio adjusting method, the tone quality and the volume of the audio to be played are adjusted according to the noise information of the current environment and the adjusting strategy, wherein the adjusting strategy comprises that the larger the noise is, the larger the volume is, and the worse the tone quality is; the smaller the noise, the smaller the volume, the better the tone quality, can satisfy the user needs good tone quality when the environment is quiet, need hear the demand of content clearly when the environment is noisy, avoided the manual configuration parameter of user to carry out the regulation of audio frequency, improved user experience.
FIG. 3 is a flow chart illustrating a method of audio adjustment according to yet another exemplary embodiment. The present embodiment mainly describes an alternative implementation manner of adjusting the sound quality and volume of the audio to be played according to the noise information and the adjustment policy on the basis of the embodiment shown in fig. 2. As shown in fig. 3, the method comprises the following steps:
step 301, according to the decibel value of the noise, determining the volume level and the sound quality level corresponding to the decibel value of the noise.
In this step, the higher the decibel value of the noise is, the higher the volume level is, the lower the sound quality level is, and the smaller the decibel value of the noise is, the lower the volume level is, the higher the sound quality level is. Optionally, the volume level and the sound quality level corresponding to different decibel value ranges may be preset. Step 301 may specifically be: firstly, according to the noise decibel value, determining the decibel value range to which the noise distribution value belongs, and determining the volume level and the sound quality level corresponding to the decibel value range to be the volume level and the sound quality level corresponding to the noise decibel value. It should be noted that the higher the volume level is, the larger the volume can be considered, and the lower the volume level is, the smaller the volume can be considered; the higher the sound quality level, the better the sound quality, and the lower the sound quality level, the worse the sound quality. It should be noted that, when there are a plurality of noise decibels, the noise decibels may be first calculated, for example, averaged, and then the volume level and the sound quality level corresponding to the calculation result may be determined. Here, the volume level and the sound quality level corresponding to the result of the calculation may be considered as the volume level and the sound quality level corresponding to the noise decibel value.
And step 302, adjusting the volume of the audio to be played according to the volume level.
And step 303, adjusting the tone quality of the audio to be played according to the tone quality level.
It should be noted that there is no restriction on the order between step 302 and step 303, and step 302 may be executed first and then step 303 is executed, or step 303 may be executed first and then step 302 is executed.
In the audio adjusting method of this embodiment, the volume level and the tone quality level corresponding to the noise decibel value are determined according to the noise decibel value, the volume of the audio to be played is adjusted according to the volume level, and the tone quality of the audio to be played is adjusted according to the tone quality level, so that the tone quality and the volume of the audio to be played are adjusted according to the noise information and the adjusting strategy of the current environment.
FIG. 4 is a flowchart illustrating a method of audio adjustment according to yet another exemplary embodiment. The present embodiment mainly describes another alternative implementation manner of adjusting the sound quality and volume of the audio to be played according to the noise information and the adjustment policy on the basis of the embodiment shown in fig. 2. As shown in fig. 4, the method comprises the following steps:
step 401, determining a noise variation trend and a noise variation amplitude according to the noise information of the current environment and the noise information of the previous environment.
In this step, the noise information of the previous environment is acquired earlier than the noise information of the current environment, for example, the noise information of the current environment may be the environmental noise information of the last 10 seconds, and the noise information of the previous environment may be the environmental noise information between the last 30 seconds and the last 10 seconds. The noise variation trend may be that the noise becomes larger, the noise becomes smaller, or the noise does not change. Optionally, when the noise information of the current environment or the noise information of the previous environment includes a plurality of noise decibel values, the plurality of noise decibel values may be calculated, for example, an average calculation is performed, and then a noise variation trend and a noise variation amplitude are determined according to a calculation result; or, the noise variation trend and the noise variation amplitude may also be determined directly according to a plurality of noise decibel values included in the noise information of the current environment and the noise information of the previous environment.
Step 402, if the noise variation trend is that the noise becomes larger and the noise amplitude is greater than or equal to a first preset threshold, the current volume level is adjusted to be higher, and the current tone quality level is adjusted to be lower.
In this step, turning up the volume level may be regarded as turning up the volume, and turning down the sound quality level may be regarded as turning down the sound quality.
Step 403, if the noise variation trend is that the noise becomes smaller and the noise amplitude is greater than or equal to a second preset threshold, turning down the current volume level and turning up the current tone quality level.
In this step, turning down the volume level may be regarded as turning down the volume, and turning up the sound quality level may be regarded as turning up the sound quality. It should be noted that the second preset threshold may be the same as or different from the first preset threshold.
And step 404, adjusting the volume of the audio to be played according to the adjusted volume level.
And 405, adjusting the tone quality of the audio to be played according to the adjusted tone quality level.
It should be noted that there is no restriction on the order between step 404 and step 405, and step 404 may be executed first and then step 405 is executed, or step 405 may be executed first and then step 404 is executed.
It should be noted that, in this embodiment, if the noise variation trend is that the noise is not changed, or the noise variation trend is that the noise becomes larger and the noise amplitude is smaller than the first preset threshold, or the noise variation trend is that the noise becomes smaller and the noise amplitude is smaller than the second preset threshold, the volume of the audio to be played may be adjusted according to the current volume level, and the sound quality of the audio to be played may be adjusted according to the current sound quality level.
In the audio adjusting method of this embodiment, a noise change trend and a noise change amplitude are determined according to noise information of a current environment and noise information of a previous environment, if the noise change trend is that noise becomes small and the noise amplitude is greater than or equal to a second preset threshold, a current volume level is adjusted to be low and a current sound quality level is adjusted to be high, if the noise change trend is that noise becomes large and the noise amplitude is greater than or equal to a first preset threshold, the current volume level is adjusted to be high and the current sound quality level is adjusted to be low, the volume of the audio to be played is adjusted according to the adjusted volume level, and the sound quality and the volume of the audio to be played are adjusted according to the adjusted sound quality level, so that the sound quality and the volume of the audio to be played are adjusted according to the noise information of the current environment and an adjusting strategy.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 5 is a block diagram illustrating an apparatus for audio conditioning according to an exemplary embodiment. The audio adjusting device can be realized by software, hardware or a combination of the two to become part or all of the terminal. Referring to fig. 5, the apparatus includes an acquisition module 501 and an adjustment module 502.
The acquiring module 501 is configured to acquire noise information of a current environment;
the adjusting module 502 is configured to adjust the sound quality and the volume of the audio to be played according to the noise information acquired by the acquiring module 501, so that the adjusted audio to be played is suitable for being played in the current environment.
Optionally, the sound quality includes at least one of: stereo effect, bass effect, human voice enhancement.
To sum up, the device for adjusting audio frequency provided by the embodiment of the present disclosure acquires the noise information of the current environment through the acquisition module, and the adjustment module adjusts the tone quality and the volume of the audio frequency to be played according to the noise information, so that the adjusted audio frequency to be played is suitable for being played in the current environment, and can meet the requirements of the user on the tone quality and the volume of the played audio frequency under different environmental noises, thereby avoiding the manual configuration parameters of the user to adjust the audio frequency, and improving the user experience.
Fig. 6 is a block diagram illustrating an apparatus for audio conditioning according to another exemplary embodiment. Referring to fig. 6, the apparatus is based on the block diagram shown in fig. 5, and optionally, the noise information includes a noise decibel value, and the adjusting module 502 includes: the adjusting submodule 5021 is configured to adjust the sound quality and volume of the audio to be played according to the noise information and the adjusting strategy; wherein the adjustment strategy comprises: the larger the noise is, the larger the volume is, and the poorer the sound quality is; the smaller the noise, the smaller the sound volume and the better the sound quality.
To sum up, the audio adjusting apparatus provided in the embodiment of the present disclosure adjusts the tone quality and the volume of the audio to be played through the adjusting sub-module according to the noise information of the current environment and the adjusting policy, where the adjusting policy includes that the larger the noise is, the larger the volume is, the worse the tone quality is; the smaller the noise, the smaller the volume, the better the tone quality, can satisfy the user needs good tone quality when the environment is quiet, need hear the demand of content clearly when the environment is noisy, avoided the manual configuration parameter of user to carry out the regulation of audio frequency, improved user experience.
Fig. 7 is a block diagram illustrating an apparatus for audio conditioning according to yet another exemplary embodiment. Referring to fig. 7, the apparatus is based on the block diagram shown in fig. 6, and optionally, the adjusting submodule 5021 includes: a determination submodule 50211, a first adjustment submodule 50212 and a second adjustment submodule 50213.
The determining submodule 50211 is configured to determine a volume level and a sound quality level corresponding to the noise decibel value according to the noise decibel value; wherein, the higher the noise decibel value is, the higher the volume level is and the lower the sound quality level is, the smaller the noise decibel value is, the lower the volume level is and the higher the sound quality level is;
the first adjusting submodule 50212 is configured to adjust the volume of the audio to be played according to the volume level;
the second adjusting submodule 50213 is configured to adjust the sound quality of the audio to be played according to the sound quality level.
To sum up, the audio adjusting apparatus provided in the embodiment of the present disclosure determines, by the determining submodule, a volume level and a sound quality level corresponding to the noise decibel value according to the noise decibel value, the first adjusting submodule adjusts the volume of the audio to be played according to the volume level, and the second adjusting submodule adjusts the sound quality of the audio to be played according to the sound quality level, so that the sound quality and the sound volume of the audio to be played are adjusted according to the noise information and the adjustment policy of the current environment.
Fig. 8 is a block diagram illustrating an apparatus for audio conditioning according to yet another exemplary embodiment. Referring to fig. 8, the apparatus is based on the block diagram shown in fig. 6, and optionally, the adjusting submodule 5021 includes: a determination sub-module 50211, a first adjustment sub-module 50212, a second adjustment sub-module 50213, and a third adjustment sub-module 50214.
The determining submodule 50211 is configured to determine a noise change trend and a noise change amplitude according to the noise information of the current environment and the noise information of the previous environment;
a first conditioning submodule 50212 configured to: if the noise change trend is that the noise becomes larger and the noise amplitude is larger than or equal to a first preset threshold value, the current volume level is adjusted to be higher, and the current tone quality level is adjusted to be lower; if the noise change trend is that the noise becomes smaller and the noise change amplitude is larger than or equal to a second preset threshold, adjusting the current volume level to be low and adjusting the current tone quality level to be high;
the second adjusting submodule 50213 is configured to adjust the volume of the audio to be played according to the adjusted volume level;
the third adjusting submodule 50214 is configured to adjust the sound quality of the audio to be played according to the adjusted sound quality level.
To sum up, in the audio adjusting apparatus provided in the embodiment of the present disclosure, the determining sub-module determines a noise variation trend and a noise variation amplitude according to the noise information of the current environment and the noise information of the previous environment, the first adjusting sub-module decreases the current volume level and increases the current sound quality level if the noise variation trend is that the noise becomes smaller and the noise amplitude is greater than or equal to the second preset threshold, increases the current volume level and decreases the current sound quality level if the noise variation trend is that the noise becomes larger and the noise amplitude is greater than or equal to the first preset threshold, the second adjusting sub-module adjusts the volume of the audio to be played according to the adjusted volume level, the third adjusting sub-module adjusts the sound quality of the audio to be played according to the adjusted sound quality level, so as to implement the noise information and the adjusting strategy according to the current environment, and adjusting the tone quality and volume of the audio to be played.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Having described the internal functional modules and the structural schematic diagram of the apparatus for audio conditioning, fig. 9 is a block diagram illustrating an entity of a terminal according to an exemplary embodiment, as shown in fig. 9, the terminal may include: a processor 901 and a memory 902 for storing computer instructions.
Wherein, the processor 901 executes the computer instructions to execute the following method:
acquiring noise information of a current environment;
and adjusting the tone quality and the volume of the audio to be played according to the noise information so that the adjusted audio to be played is suitable for being played in the current environment.
Optionally, the noise information includes a noise decibel value;
then, the adjusting the tone quality and the volume of the audio to be played according to the noise information includes:
adjusting the tone quality and volume of the audio to be played according to the noise information and an adjusting strategy;
wherein the adjustment strategy comprises: the larger the noise is, the larger the volume is, and the poorer the sound quality is; the smaller the noise, the smaller the sound volume and the better the sound quality.
Optionally, the adjusting the sound quality and the volume of the audio to be played according to the noise information and the adjustment policy includes:
according to the noise decibel value, determining a volume level and a sound quality level corresponding to the noise decibel value; wherein, the higher the noise decibel value is, the higher the volume level is and the lower the sound quality level is, the smaller the noise decibel value is, the lower the volume level is and the higher the sound quality level is;
adjusting the volume of the audio to be played according to the volume level;
and adjusting the tone quality of the audio to be played according to the tone quality grade.
Optionally, the adjusting the sound quality and the volume of the audio to be played according to the noise information and the adjustment policy includes:
determining the noise variation trend and the noise variation amplitude according to the noise information of the current environment and the noise information of the previous environment;
if the noise change trend is that the noise becomes larger and the noise amplitude is larger than or equal to a first preset threshold value, the current volume level is adjusted to be higher, and the current tone quality level is adjusted to be lower;
if the noise change trend is that the noise becomes smaller and the noise change amplitude is larger than or equal to a second preset threshold, adjusting the current volume level to be low and adjusting the current tone quality level to be high;
adjusting the volume of the audio to be played according to the adjusted volume level;
and adjusting the tone quality of the audio to be played according to the adjusted tone quality grade.
Optionally, the sound quality includes at least one of: stereo effect, bass effect, human voice enhancement.
Fig. 10 is a block diagram illustrating a terminal 800 according to an example embodiment. For example, the terminal 800 may be a mobile phone, a tablet computer, a computer, or other device capable of installing social software.
Referring to fig. 10, terminal 800 can include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the terminal 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the terminal 800. Examples of such data include instructions for any application or method operating on terminal 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of terminal 800. Power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for terminal 800.
The multimedia component 808 includes a screen that provides an output interface between the terminal 800 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the terminal 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for terminal 800. For example, sensor assembly 814 can detect an open/closed state of device 800, the relative positioning of components, such as a display and keypad of terminal 800, sensor assembly 814 can also detect a change in position of terminal 800 or a component of terminal 800, the presence or absence of user contact with terminal 800, orientation or acceleration/deceleration of terminal 800, and a change in temperature of terminal 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communication component 816 is configured to facilitate communications between terminal 800 and other devices in a wired or wireless manner. The terminal 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the terminal 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a terminal, enable the terminal to perform a method of audio conditioning, the method comprising:
acquiring noise information of a current environment;
and adjusting the tone quality and the volume of the audio to be played according to the noise information so that the adjusted audio to be played is suitable for being played in the current environment.
Optionally, the noise information includes a noise decibel value;
then, the adjusting the tone quality and the volume of the audio to be played according to the noise information includes:
adjusting the tone quality and volume of the audio to be played according to the noise information and an adjusting strategy;
wherein the adjustment strategy comprises: the larger the noise is, the larger the volume is, and the poorer the sound quality is; the smaller the noise, the smaller the sound volume and the better the sound quality.
Optionally, the adjusting the sound quality and the volume of the audio to be played according to the noise information and the adjustment policy includes:
according to the noise decibel value, determining a volume level and a sound quality level corresponding to the noise decibel value; wherein, the higher the noise decibel value is, the higher the volume level is and the lower the sound quality level is, the smaller the noise decibel value is, the lower the volume level is and the higher the sound quality level is;
adjusting the volume of the audio to be played according to the volume level;
and adjusting the tone quality of the audio to be played according to the tone quality grade.
Optionally, the adjusting the sound quality and the volume of the audio to be played according to the noise information and the adjustment policy includes:
determining the noise variation trend and the noise variation amplitude according to the noise information of the current environment and the noise information of the previous environment;
if the noise change trend is that the noise becomes larger and the noise amplitude is larger than or equal to a first preset threshold value, the current volume level is adjusted to be higher, and the current tone quality level is adjusted to be lower;
if the noise change trend is that the noise becomes smaller and the noise change amplitude is larger than or equal to a second preset threshold, adjusting the current volume level to be low and adjusting the current tone quality level to be high;
adjusting the volume of the audio to be played according to the adjusted volume level;
and adjusting the tone quality of the audio to be played according to the adjusted tone quality grade.
Optionally, the sound quality includes at least one of: stereo effect, bass effect, human voice enhancement.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method of audio conditioning, comprising:
acquiring noise information of a current environment;
determining a noise change trend and a noise change amplitude according to the noise information of the current environment and the noise information of the previous environment;
if the noise change trend is that the noise becomes larger and the noise change amplitude is larger than or equal to a first preset threshold value, adjusting the current volume level to be higher and adjusting the current tone quality level to be lower;
if the noise change trend is that the noise becomes smaller and the noise change amplitude is larger than or equal to a second preset threshold value, adjusting the current volume level to be lower and adjusting the current tone quality level to be higher;
and adjusting the volume of the audio to be played according to the adjusted volume level, and adjusting the tone quality of the audio to be played according to the adjusted tone quality level, so that the adjusted audio to be played is suitable for being played in the current environment.
2. The method of claim 1, wherein the sound quality comprises at least one of: stereo effect, bass effect, human voice enhancement.
3. A method of audio conditioning, comprising:
acquiring noise information of a current environment, wherein the noise information comprises a noise decibel value;
according to the noise decibel value, determining the decibel value range to which the noise decibel value belongs, and determining the volume level and the sound quality level corresponding to the decibel value range to be the volume level and the sound quality level corresponding to the noise decibel value; the higher the noise decibel value is, the higher the volume level is and the lower the sound quality level is, and the smaller the noise decibel value is, the lower the volume level is and the higher the sound quality level is;
and adjusting the volume of the audio to be played according to the volume grade, and adjusting the tone quality of the audio to be played according to the tone quality grade, so that the adjusted audio to be played is suitable for being played in the current environment.
4. The method of claim 3, wherein the sound quality comprises at least one of: stereo effect, bass effect, human voice enhancement.
5. An apparatus for audio conditioning, comprising:
an acquisition module configured to acquire noise information of a current environment;
a conditioning module comprising:
the determining submodule is configured to determine a noise change trend and a noise change amplitude according to the noise information of the current environment and the noise information of the previous environment;
a first adjustment submodule configured to: if the noise change trend is that the noise becomes larger and the noise change amplitude is larger than or equal to a first preset threshold value, adjusting the current volume level to be higher and adjusting the current tone quality level to be lower; if the noise change trend is that the noise becomes smaller and the noise change amplitude is larger than or equal to a second preset threshold value, adjusting the current volume level to be lower and adjusting the current tone quality level to be higher;
the second adjusting submodule is configured to adjust the volume of the audio to be played according to the adjusted volume level;
and the third adjusting submodule is configured to adjust the tone quality of the audio to be played according to the adjusted tone quality grade, so that the adjusted audio to be played is suitable for being played in the current environment.
6. The apparatus of claim 5, wherein the sound quality comprises at least one of: stereo effect, bass effect, human voice enhancement.
7. An apparatus for audio conditioning, comprising:
the noise control device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is configured to acquire noise information of a current environment, and the noise information comprises a noise decibel value;
a conditioning module comprising:
the determining submodule is configured to determine a decibel value range to which the noise decibel value belongs according to the noise decibel value, and determine a volume level and a sound quality level corresponding to the decibel value range to which the noise decibel value belongs as a volume level and a sound quality level corresponding to the noise decibel value; the higher the noise decibel value is, the higher the volume level is and the lower the sound quality level is, and the smaller the noise decibel value is, the lower the volume level is and the higher the sound quality level is;
the first adjusting submodule is configured to adjust the volume of the audio to be played according to the volume level;
and the second adjusting submodule is configured to adjust the sound quality of the audio to be played according to the sound quality grade, so that the adjusted audio to be played is suitable for being played in the current environment.
8. The apparatus of claim 7, wherein the sound quality comprises at least one of: stereo effect, bass effect, human voice enhancement.
9. A terminal, comprising:
a processor and a memory for storing computer instructions; the processor executes the computer instructions to perform the method of any of claims 1-4.
10. A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform the method of any of claims 1-4.
CN201810594179.6A 2018-06-11 2018-06-11 Audio adjusting method, device, terminal and storage medium Active CN108845787B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810594179.6A CN108845787B (en) 2018-06-11 2018-06-11 Audio adjusting method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810594179.6A CN108845787B (en) 2018-06-11 2018-06-11 Audio adjusting method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN108845787A CN108845787A (en) 2018-11-20
CN108845787B true CN108845787B (en) 2022-03-01

Family

ID=64210833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810594179.6A Active CN108845787B (en) 2018-06-11 2018-06-11 Audio adjusting method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN108845787B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111337120A (en) * 2018-12-18 2020-06-26 北京小米移动软件有限公司 Sound testing method, device and storage medium
CN109600703B (en) * 2018-12-27 2021-08-06 深圳市技湛科技有限公司 Sound amplification system, sound amplification method thereof, and computer-readable storage medium
CN110827863A (en) * 2019-11-08 2020-02-21 西安闻泰电子科技有限公司 Method, device and terminal for intelligently adjusting volume and readable storage medium
CN113497852A (en) * 2020-04-07 2021-10-12 北京字节跳动网络技术有限公司 Automatic volume adjustment method, apparatus, medium, and device
CN114596871B (en) * 2022-03-22 2023-03-28 镁佳(北京)科技有限公司 Vehicle-mounted machine volume adjusting method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0347031A2 (en) * 1988-06-14 1989-12-20 Pioneer Electronic Corporation Adjusting apparatus for adjusting sound volume or sound quality
CN102164203A (en) * 2010-02-17 2011-08-24 索尼公司 Information processing device and method and program
CN104579212A (en) * 2015-01-30 2015-04-29 青岛海信电器股份有限公司 Method and device for adjusting audio gains
CN105719644A (en) * 2014-12-04 2016-06-29 中兴通讯股份有限公司 Method and device for adaptively adjusting voice recognition rate

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222210A (en) * 2007-01-08 2008-07-16 乐金电子(中国)研究开发中心有限公司 Apparatus and method for self-adapting sound volume regulation of mobile phone
CN104104800A (en) * 2014-07-25 2014-10-15 Tcl通讯(宁波)有限公司 Method for adjusting volume output of mobile terminal according to environment noises and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0347031A2 (en) * 1988-06-14 1989-12-20 Pioneer Electronic Corporation Adjusting apparatus for adjusting sound volume or sound quality
CN102164203A (en) * 2010-02-17 2011-08-24 索尼公司 Information processing device and method and program
CN105719644A (en) * 2014-12-04 2016-06-29 中兴通讯股份有限公司 Method and device for adaptively adjusting voice recognition rate
CN104579212A (en) * 2015-01-30 2015-04-29 青岛海信电器股份有限公司 Method and device for adjusting audio gains

Also Published As

Publication number Publication date
CN108845787A (en) 2018-11-20

Similar Documents

Publication Publication Date Title
CN108845787B (en) Audio adjusting method, device, terminal and storage medium
EP3163748B1 (en) Method, device and terminal for adjusting volume
CN107493500B (en) Multimedia resource playing method and device
CN107360326B (en) Terminal volume adjustment processing method and volume adjustment terminal
CN106454644B (en) Audio playing method and device
CN108806714B (en) Method and device for adjusting volume
CN111883164A (en) Model training method and device, electronic equipment and storage medium
CN111698593B (en) Active noise reduction method and device, and terminal
CN105657690A (en) Method and device for processing mobile terminal setting information
CN110392334B (en) Microphone array audio signal self-adaptive processing method, device and medium
CN108600503B (en) Voice call control method and device
CN113076075A (en) Audio signal adjusting method and device, terminal and storage medium
CN106060707B (en) Reverberation processing method and device
US11388281B2 (en) Adaptive method and apparatus for intelligent terminal, and terminal
CN114416015A (en) Audio adjusting method and device, electronic equipment and readable storage medium
CN106101441B (en) Terminal control method and device
WO2018058331A1 (en) Method and apparatus for controlling volume
CN106657621B (en) Self-adaptive adjusting device and method for sound signal
CN104112460B (en) Method and device for playing audio data
CN113852893A (en) Data processing method and device, terminal and storage medium
CN111694539B (en) Method, device and medium for switching between earphone and loudspeaker
CN115412632A (en) Audio data processing method, device, terminal and storage medium
CN108668028B (en) Message prompting method, device and storage medium
CN112637416A (en) Volume adjusting method and device and storage medium
CN111225318A (en) Audio adjusting method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant