CN106126164B - A kind of sound effect treatment method and terminal device - Google Patents
A kind of sound effect treatment method and terminal device Download PDFInfo
- Publication number
- CN106126164B CN106126164B CN201610438610.9A CN201610438610A CN106126164B CN 106126164 B CN106126164 B CN 106126164B CN 201610438610 A CN201610438610 A CN 201610438610A CN 106126164 B CN106126164 B CN 106126164B
- Authority
- CN
- China
- Prior art keywords
- volume
- sub
- piece
- audio fragment
- max
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/16—Sound input; Sound output
- G06F3/162—Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03G—CONTROL OF AMPLIFICATION
- H03G7/00—Volume compression or expansion in amplifiers
- H03G7/007—Volume compression or expansion in amplifiers of digital or coded signals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/16—Sound input; Sound output
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03G—CONTROL OF AMPLIFICATION
- H03G7/00—Volume compression or expansion in amplifiers
- H03G7/002—Volume compression or expansion in amplifiers in untuned or low-frequency amplifiers, e.g. audio amplifiers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2430/00—Signal processing covered by H04R, not provided for in its groups
- H04R2430/01—Aspects of volume control, not necessarily automatic, in sound systems
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)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a kind of sound effect treatment method and terminal devices, wherein sound effect treatment method can include: when terminal device plays audio file, the max volume for detecting an audio fragment of the audio file currently read is poor, and the max volume difference is the difference between the max volume and minimal volume of the audio fragment;If the max volume difference is greater than preset difference value, determine that volume is greater than the first sub-piece of the first default volume in the audio fragment;Reduce the volume for playing first sub-piece.Using the embodiment of the present invention, the broadcast sound volume of the excessive audio fragment of volume in audio file can be reduced in advance, protects the sense of hearing of user, and reduce the audio power consumption of terminal device.
Description
Technical field
The present invention relates to intelligent terminal technical field more particularly to a kind of sound effect treatment methods and terminal device.
Background technique
With the development of intelligent terminal technology, various intelligent terminals emerge one after another in the market, the function of intelligent terminal
Energy and application are also more and more abundant.Wherein, audio playing function is the basic function that most of intelligent terminals all have.In terminal
Many applications require that audio-frequency module is called to carry out audio broadcasting, such as game replaying audio, music, video audio etc..
In practical application, the rhythm of some audio files rises and falls and volume change is larger, such as in gentle droning music
Later, rapidly loud and sonorous music is arrived in turnover suddenly, and the rhythm increased suddenly at this time and volume not only increase the audio of terminal device
Power consumption, it is also possible to the sense of hearing of user be damaged, the health of user is unfavorable for.
Summary of the invention
The embodiment of the present invention provides a kind of sound effect treatment method and terminal device, can protect the sense of hearing of user, and reduce end
The audio power consumption of end equipment.
First aspect of the embodiment of the present invention provides a kind of sound effect treatment method, it may include:
When terminal device plays audio file, the maximum of an audio fragment of the audio file currently read is detected
Volume is poor, and the max volume difference is the difference between the max volume and minimal volume of the audio fragment;
If the max volume difference is greater than preset difference value, determine that volume is greater than the first default volume in the audio fragment
First sub-piece;
Reduce the volume for playing first sub-piece.
It is in some optional embodiments, described to reduce the volume for playing first sub-piece, comprising:
The first adjusting ratio is determined according to the ratio between the max volume of the audio fragment and the first default volume
Example;
Adjusting ratio according to described first reduces the volume of broadcasting first sub-piece.
It is in some optional embodiments, described to reduce the volume for playing first sub-piece, comprising:
The first regulated quantity is determined according to the difference between the max volume of the audio fragment and the first default volume;
The volume for playing first sub-piece is reduced according to first regulated quantity.
In some optional embodiments, the sound effect treatment method further include:
Volume is obtained in the audio fragment less than the second sub-piece of the second default volume;
Increase the volume for playing second sub-piece.
It is in some optional embodiments, described to increase the volume for playing second sub-piece, comprising:
The second adjusting ratio is determined according to the ratio between the minimal volume of the audio fragment and the second default volume
Example;
The volume that ratio increase plays second sub-piece is adjusted according to described second.
Second aspect of the embodiment of the present invention provides a kind of terminal device, it may include:
Detection unit, for detecting the one of the audio file currently read when terminal device plays audio file
The max volume of audio fragment is poor, and the max volume difference is the difference between the max volume and minimal volume of the audio fragment
Value;
Determination unit is determined and is given great volume in the audio fragment if being greater than preset difference for the max volume difference
In the first sub-piece of the first default volume;
Unit is reduced, for reducing the volume for playing first sub-piece.
In some optional embodiments, the reduction unit, is used for:
The first adjusting ratio is determined according to the ratio between the max volume of the audio fragment and the first default volume
Example;And
Adjusting ratio according to described first reduces the volume of broadcasting first sub-piece.
In some optional embodiments, the reduction unit, is used for:
The first regulated quantity is determined according to the difference between the max volume of the audio fragment and the first default volume;
The volume for playing first sub-piece is reduced according to first regulated quantity.
In some optional embodiments, the acquiring unit is also used to obtain in the audio fragment volume less than second
Second sub-piece of default volume;
The terminal device further include:
Increasing unit, for increasing the volume for playing second sub-piece.
In some optional embodiments, the increasing unit, is used for:
The second adjusting ratio is determined according to the ratio between the minimal volume of the audio fragment and the second default volume
Example;And
The volume that ratio increase plays second sub-piece is adjusted according to described second.
In some optional embodiments, the increasing unit, is used for:
The second regulated quantity is determined according to the difference between the minimal volume of the audio fragment and the second default volume;
And
The volume of second sub-piece is played according to second regulated quantity increase.
The third aspect of the embodiment of the present invention provides a kind of terminal device, it may include processor, memory, communication interface and logical
Bus is believed, wherein the processor, the memory, the processor and the communication interface are connected by the communication bus
It connects, the memory is stored with executable program code, and the communication interface is for wirelessly communicating;The processor is for calling
The executable program code stored in the memory, with execute first aspect of the embodiment of the present invention or first aspect is any can
Select sound effect treatment method described in embodiment.
In the embodiment of the present invention, when terminal device plays audio file, the audio file currently read is detected
The max volume of one audio fragment is poor, and the max volume difference is between the max volume and minimal volume of the audio fragment
Difference;If the max volume difference is greater than preset difference value, determine that volume in the audio fragment is greater than the of the first default volume
One sub-piece;Reduce the volume for playing first sub-piece.Using the embodiment of the present invention, audio file middle pitch can be reduced in advance
The broadcast sound volume for measuring excessive audio fragment, protects the sense of hearing of user, and reduces the audio power consumption of terminal device.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow diagram for the sound effect treatment method that one embodiment of the present of invention provides;
Fig. 2 be another embodiment of the present invention provides sound effect treatment method flow diagram;
Fig. 3 is the structural schematic diagram for the terminal device that one embodiment of the present of invention provides;
Fig. 4 be another embodiment of the present invention provides terminal device structural schematic diagram;
Fig. 5 is the structural schematic diagram for the terminal device that another embodiment of the invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of sound effect treatment method and terminal device, can protect the sense of hearing of user, and reduce end
The audio power consumption of end equipment.In the embodiment of the present invention, terminal device may include mobile phone, tablet computer, laptop, individual
Computer, personal digital assistant (Personal Digital Assistant, PDA), mobile internet device (Mobile
Internet Device, MID), multimedia player (such as MP3, CD player) all kinds of terminals with audio playing function, this
Inventive embodiments are not construed as limiting.
It is the flow diagram for the sound effect treatment method that one embodiment of the present of invention provides referring to Fig. 1, Fig. 1.The sound
Effect processing method can be executed by terminal device.As shown in Figure 1, the method may include following steps:
S101 detects an audio fragment of the audio file currently read when terminal device plays audio file
Max volume it is poor.
Wherein, the max volume difference is the difference between the max volume and minimal volume of the audio fragment.It is described
Audio fragment can be a bit of or complete audio file in audio file.
As a kind of feasible embodiment, terminal device when playing audio file, if the data volume of audio file compared with
Greatly or the duration of audio file is longer, audio file can be divided at least two audio fragments according to data volume or duration.
Before playing an audio fragment, such as when playing a upper audio fragment, or when handling audio playing request, eventually
End equipment can read the audio fragment that will be played in advance, and the max volume for detecting the audio fragment is poor.
S102 determines that it is default to be greater than first for volume in the audio fragment if the max volume difference is greater than preset difference value
First sub-piece of volume.
In the embodiment of the present invention, the audio fragment of preset difference value is greater than for max volume difference, can be also further divided into
Multiple sub-pieces.Optionally, it if above-mentioned audio fragment is divided according to data volume, can be incited somebody to action according to smaller data volume
Above-mentioned audio fragment is divided into multiple sub-pieces, for example, can be divided into the audio fragment that a data volume is 200KB 20 big
The small sub-piece for 10KB.It, can be according to shorter duration by above-mentioned audio if above-mentioned audio fragment is to divide according to duration
Segment is divided into multiple sub-pieces, for example, can be by one when a length of 10s audio fragment be divided into the sub-pieces of a length of 2s at 5
Section.
As a kind of feasible embodiment, terminal device can store a preset difference value, which can be used as judgement
Whether above-mentioned max volume difference reaches the foundation of trigger condition.If above-mentioned max volume difference be greater than the preset difference value, can trigger pair
The volume adjustment of above-mentioned audio fragment.
As a kind of feasible embodiment, terminal device can also store the value of the first default volume, the first default volume
Value be greater than above-mentioned max volume it is poor, for example, if above-mentioned max volume difference be 70dB, the first default volume can be 90dB.
In the embodiment of the present invention, when max volume difference is greater than preset difference value, and the volume for playing audio is greater than the first default volume,
Think that the variation of volume may cause user's discomfort.At this point, can determine that volume is greater than the first default sound from above-mentioned audio fragment
First sub-piece of amount.
S103 reduces the volume for playing first sub-piece.
It in some optional embodiments, can be according between the max volume and the first default volume of the audio fragment
Ratio determine the first adjusting ratio;Adjusting ratio according to described first reduces the volume of broadcasting first sub-piece.For example,
If the ratio between the max volume of the audio fragment and the first default volume is 2:3, described first can will be played
The volume adjustment of sub-piece is 2/3rds of former volume.
In some optional embodiments, can also according to the max volume of the audio fragment and the described first default volume it
Between difference determine the first regulated quantity;The volume for playing first sub-piece is reduced according to first regulated quantity.For example, if
Difference between the max volume of above-mentioned audio fragment and the first default volume is 10dB, then can will play first son
The volume of segment reduces 10dB.
In specific implementation, the first sub-piece is the sub-piece that volume is greater than the first default volume, may be made to user's sense of hearing
At injury.The volume for playing first sub-piece is reduced, the sense of hearing of user can be not only protected, can also reduce power consumption.
In the embodiment of the present invention, when terminal device plays audio file, the audio file currently read is detected
The max volume of one audio fragment is poor, and the max volume difference is between the max volume and minimal volume of the audio fragment
Difference;If the max volume difference is greater than preset difference value, determine that volume in the audio fragment is greater than the of the first default volume
One sub-piece;Reduce the volume for playing first sub-piece.Using the embodiment of the present invention, audio file middle pitch can be reduced in advance
The broadcast sound volume for measuring excessive audio fragment, protects the sense of hearing of user, and reduces the audio power consumption of terminal device.
Referring to fig. 2, Fig. 2 be another embodiment of the present invention provides sound effect treatment method flow diagram.It is described
Sound effect treatment method can be executed by terminal device.As shown in Fig. 2, the method may include following steps:
S201 detects an audio fragment of the audio file currently read when terminal device plays audio file
Max volume it is poor.
S202 determines that it is default to be greater than first for volume in the audio fragment if the max volume difference is greater than preset difference value
First sub-piece of volume.
S203 reduces the volume for playing first sub-piece.
In the embodiment of the present invention, the specific embodiment of step S201 to S203 can refer to step in embodiment illustrated in fig. 1
The associated description of S101 to S103, details are not described herein again.
S204 determines that volume is less than the second sub-piece of the second default volume in the audio fragment.
As a kind of feasible embodiment, terminal device can store the value of the second default volume, the second default volume
It is worth the value less than the first default volume.Wherein the value of the second default volume can be pre-set fixed value, can also basis
The volume of current environment noise is arranged and stores in real time.If the second default volume is to be arranged according to the volume of environmental noise, the
Two default volume values should be greater than the volume of current environment noise.
In inventive embodiments, when playing the volume of audio less than the second default volume, it is believed that volume is too small to be may cause
User can hear.At this point, second sub-piece of the volume less than the second default volume can be determined from above-mentioned audio fragment.
S205 increases the volume for playing second sub-piece.
It in some optional embodiments, can be according between the minimal volume and the second default volume of the audio fragment
Ratio determine the second adjusting ratio;And the volume that ratio increase plays second sub-piece is adjusted according to described second.
It, can will be described in broadcasting for example, if ratio between the minimal volume of the audio fragment and the second default volume is 2:3
The volume adjustment of second sub-piece is 1.5 times of former volume.
It in some optional embodiments, can be according between the minimal volume and the second default volume of the audio fragment
Difference determine the second regulated quantity;And the volume of second sub-piece is played according to second regulated quantity increase.Example
It such as, can will be described in broadcasting if difference between the minimal volume of the audio fragment and the second default volume is 10dB
The volume of second sub-piece increases 10dB.
Preferably, the volume of the second sub-piece after increase should be less than the above-mentioned first default volume.
In the embodiment of the present invention, when terminal device plays audio file, the audio file currently read is detected
The max volume of one audio fragment is poor, and the max volume difference is between the max volume and minimal volume of the audio fragment
Difference;If the max volume difference is greater than preset difference value, determine that volume in the audio fragment is greater than the of the first default volume
One sub-piece;Reduce the volume for playing first sub-piece;Determine that volume is less than the second default volume in the audio fragment
The second sub-piece;Increase the volume for playing second sub-piece.Using the embodiment of the present invention, audio file can be reduced in advance
The broadcast sound volume of the excessive audio fragment of middle volume, protects the sense of hearing of user, and reduces the audio power consumption of terminal device.It can also be pre-
The broadcast sound volume for first increasing the audio fragment that volume is too small in audio file, enhances the audio experience of user.
It is the structural schematic diagram for the terminal device that one embodiment of the present of invention provides referring to Fig. 3, Fig. 3.As shown in figure 3,
The terminal device may include with lower unit:
Detection unit 301, for detecting the audio file currently read when terminal device plays audio file
The max volume of one audio fragment is poor, and the max volume difference is between the max volume and minimal volume of the audio fragment
Difference.
As a kind of feasible embodiment, terminal device when playing audio file, if the data volume of audio file compared with
Greatly or the duration of audio file is longer, audio file can be divided at least two audio fragments according to data volume or duration.
Before playing an audio fragment, such as when playing a upper audio fragment, or when handling audio playing request, eventually
End equipment can read the audio fragment that will be played in advance, and the max volume for detecting the audio fragment is poor.
Determination unit 302 determines volume in the audio fragment if being greater than preset difference for the max volume difference
Greater than the first sub-piece of the first default volume.
In the embodiment of the present invention, the audio fragment of preset difference value is greater than for max volume difference, can be also further divided into
Multiple sub-pieces.Optionally, it if above-mentioned audio fragment is divided according to data volume, can be incited somebody to action according to smaller data volume
Above-mentioned audio fragment is divided into multiple sub-pieces, for example, can be divided into the audio fragment that a data volume is 200KB 20 big
The small sub-piece for 10KB.It, can be according to shorter duration by above-mentioned audio if above-mentioned audio fragment is to divide according to duration
Segment is divided into multiple sub-pieces, for example, can be by one when a length of 10s audio fragment be divided into the sub-pieces of a length of 2s at 5
Section.
As a kind of feasible embodiment, terminal device can store a preset difference value, which can be used as judgement
Whether above-mentioned max volume difference reaches the foundation of trigger condition.If above-mentioned max volume difference be greater than the preset difference value, can trigger pair
The volume adjustment of above-mentioned audio fragment.
As a kind of feasible embodiment, terminal device can also store the value of the first default volume, the first default volume
Value be greater than above-mentioned max volume it is poor, for example, if above-mentioned max volume difference be 70dB, the first default volume can be 90dB.
In the embodiment of the present invention, when max volume difference is greater than preset difference value, and the volume for playing audio is greater than the first default volume,
Think that the variation of volume may cause user's discomfort.At this point, can determine that volume is greater than the first default sound from above-mentioned audio fragment
First sub-piece of amount.
Unit 303 is reduced, for reducing the volume for playing first sub-piece.
In some optional embodiments, reducing unit 303 can be according to the max volume and described first of the audio fragment
Ratio between default volume determines the first adjusting ratio;Adjusting ratio according to described first reduces broadcasting first sub-piece
Volume.For example, can be incited somebody to action if the ratio between the max volume of the audio fragment and the first default volume is 2:3
The volume adjustment for playing first sub-piece is 2/3rds of former volume.
In some optional embodiments, reducing unit 303 can also be according to the max volume of the audio fragment and described the
Difference between one default volume determines the first regulated quantity;It is reduced according to first regulated quantity and plays first sub-piece
Volume.For example, can will be broadcast if the difference between the max volume of above-mentioned audio fragment and the first default volume is 10dB
The volume for putting first sub-piece reduces 10dB.
In specific implementation, the first sub-piece is the sub-piece that volume is greater than the first default volume, may be made to user's sense of hearing
At injury.The volume for playing first sub-piece is reduced, the sense of hearing of user can be not only protected, can also reduce power consumption.
In the embodiment of the present invention, when terminal device plays audio file, the audio file currently read is detected
The max volume of one audio fragment is poor, and the max volume difference is between the max volume and minimal volume of the audio fragment
Difference;If the max volume difference is greater than preset difference value, determine that volume in the audio fragment is greater than the of the first default volume
One sub-piece;Reduce the volume for playing first sub-piece.Using the embodiment of the present invention, audio file middle pitch can be reduced in advance
The broadcast sound volume for measuring excessive audio fragment, protects the sense of hearing of user, and reduces the audio power consumption of terminal device.
Referring to fig. 4, Fig. 4 be another embodiment of the present invention provides terminal device structural schematic diagram.Such as Fig. 4 institute
Show, the terminal device may include with lower unit:
Detection unit 401, for detecting the audio file currently read when terminal device plays audio file
The max volume of one audio fragment is poor, and the max volume difference is between the max volume and minimal volume of the audio fragment
Difference.
Determination unit 402 determines volume in the audio fragment if being greater than preset difference for the max volume difference
Greater than the first sub-piece of the first default volume.
Unit 403 is reduced, for reducing the volume for playing first sub-piece.
In the embodiment of the present invention, the specific embodiment of detection unit 401, determination unit 402 and reduction unit 403 can join
The associated description in embodiment illustrated in fig. 3 is examined, this is repeated no more.
In some possible embodiment, determination unit 402 are also used to determine in the audio fragment that volume is pre- less than second
If the second sub-piece of volume.
As a kind of feasible embodiment, terminal device can store the value of the second default volume, the second default volume
It is worth the value less than the first default volume.Wherein the value of the second default volume can be pre-set fixed value, can also basis
The volume of current environment noise is arranged and stores in real time.If the second default volume is to be arranged according to the volume of environmental noise, the
Two default volume values should be greater than the volume of current environment noise.
In the embodiment of the present invention, when playing the volume of audio less than the second default volume, it is believed that volume is too small to be led
Family of applying can be heard.At this point, second sub-piece of the volume less than the second default volume can be determined from above-mentioned audio fragment.
Increasing unit 404, for increasing the volume for playing second sub-piece.
In some optional embodiments, increasing unit 404 can be according to the minimal volume and described second of the audio fragment
Ratio between default volume determines the second adjusting ratio;And ratio increase is adjusted according to described second and plays described second
The volume of sub-piece.For example, if the ratio between the minimal volume of the audio fragment and the second default volume is 2:3,
It can be then 1.5 times of former volume by the volume adjustment for playing second sub-piece.
In some optional embodiments, increasing unit 404 can be according to the minimal volume and described second of the audio fragment
Difference between default volume determines the second regulated quantity;And second sub-pieces is played according to second regulated quantity increase
The volume of section.For example, if the difference between the minimal volume of the audio fragment and the second default volume is 10dB, it can
The volume for playing second sub-piece is increased into 10dB.
Preferably, the volume of the second sub-piece after increase should be less than the above-mentioned first default volume.
In the embodiment of the present invention, when terminal device plays audio file, the audio file currently read is detected
The max volume of one audio fragment is poor, and the max volume difference is between the max volume and minimal volume of the audio fragment
Difference;If the max volume difference is greater than preset difference value, determine that volume in the audio fragment is greater than the of the first default volume
One sub-piece;Reduce the volume for playing first sub-piece;Determine that volume is less than the second default volume in the audio fragment
The second sub-piece;Increase the volume for playing second sub-piece.Using the embodiment of the present invention, audio file can be reduced in advance
The broadcast sound volume of the excessive audio fragment of middle volume, protects the sense of hearing of user, and reduces the audio power consumption of terminal device.It can also be pre-
The broadcast sound volume for first increasing the audio fragment that volume is too small in audio file, enhances the audio experience of user.
It is the structural schematic diagram for the terminal device that another embodiment of the invention provides referring to Fig. 5, Fig. 5.Such as Fig. 5 institute
Show, the terminal device may include processor 501, memory 502, communication interface 503 and communication bus 504;Wherein, processor
501, memory 502 and communication interface 503 connect by communication bus 504 and complete mutual communication;Processor 501 passes through
The wireless communication of communication interface 503 control and External cell net;Communication interface 503 includes but is not limited to antenna, amplifier, transmitting-receiving
Letter machine, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplexer etc..Memory 502 includes following
At least one: random access memory, nonvolatile memory and external memory are stored in memory 502 executable
Program code, processor 501 can call the executable program code, execute following steps:
When terminal device plays audio file, the maximum of an audio fragment of the audio file currently read is detected
Volume is poor, and the max volume difference is the difference between the max volume and minimal volume of the audio fragment;
If the max volume difference is greater than preset difference value, determine that volume is greater than the first default volume in the audio fragment
First sub-piece;
Reduce the volume for playing first sub-piece.
In some possible embodiment, the reduction that the processor 501 executes plays the volume of first sub-piece
Step, it may include:
The first adjusting ratio is determined according to the ratio between the max volume of the audio fragment and the first default volume
Example;
Adjusting ratio according to described first reduces the volume of broadcasting first sub-piece.
In some possible embodiment, the reduction that the processor 501 executes plays the volume of first sub-piece
Step, it may include:
The first regulated quantity is determined according to the difference between the max volume of the audio fragment and the first default volume;
The volume for playing first sub-piece is reduced according to first regulated quantity.
In some possible embodiment, processor 501 can also call the executable program code, execute following steps:
Determine that volume is less than the second sub-piece of the second default volume in the audio fragment;
Increase the volume for playing second sub-piece.
In some possible embodiment, the step of increase that processor 501 executes plays the volume of second sub-piece,
Can include:
The second adjusting ratio is determined according to the ratio between the minimal volume of the audio fragment and the second default volume
Example;
The volume that ratio increase plays second sub-piece is adjusted according to described second.
In some possible embodiment, the step of increase that processor 501 executes plays the volume of second sub-piece,
Can include:
The second regulated quantity is determined according to the difference between the minimal volume of the audio fragment and the second default volume;
The volume of second sub-piece is played according to second regulated quantity increase.
In the embodiment of the present invention, when terminal device plays audio file, the audio file currently read is detected
The max volume of one audio fragment is poor, and the max volume difference is between the max volume and minimal volume of the audio fragment
Difference;If the max volume difference is greater than preset difference value, determine that volume in the audio fragment is greater than the of the first default volume
One sub-piece;Reduce the volume for playing first sub-piece.Using the embodiment of the present invention, audio file middle pitch can be reduced in advance
The broadcast sound volume for measuring excessive audio fragment, protects the sense of hearing of user, and reduces the audio power consumption of terminal device.
Module or unit in all embodiments of the invention can pass through universal integrated circuit, such as CPU (Central
Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated
Circuit, specific integrated circuit) Lai Shixian.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Module or unit in the device of that embodiment of the invention can be combined, divided and deleted according to actual needs.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.
Claims (13)
1. a kind of sound effect treatment method characterized by comprising
When terminal device plays the present video segment of audio file, reading in advance will be played from the audio file
Next audio fragment, and the max volume for detecting next audio fragment is poor, the max volume difference is next audio
Difference between the max volume and minimal volume of segment;
If the max volume difference is greater than preset difference value, determine that volume is greater than the first default volume in next audio fragment
First sub-piece;
Reduce the volume for playing first sub-piece.
2. sound effect treatment method according to claim 1, which is characterized in that described reduce plays first sub-piece
Volume, comprising:
The first adjusting ratio is determined according to the ratio between the max volume of next audio fragment and the first default volume
Example;
Adjusting ratio according to described first reduces the volume of broadcasting first sub-piece.
3. sound effect treatment method according to claim 1, which is characterized in that described reduce plays first sub-piece
Volume, comprising:
The first regulated quantity is determined according to the difference between the max volume of next audio fragment and the first default volume;
The volume for playing first sub-piece is reduced according to first regulated quantity.
4. sound effect treatment method according to claim 1, which is characterized in that the sound effect treatment method further include:
Determine that volume is less than the second sub-piece of the second default volume in next audio fragment;
Increase the volume for playing second sub-piece.
5. sound effect treatment method according to claim 4, which is characterized in that described increase plays second sub-piece
Volume, comprising:
The second adjusting ratio is determined according to the ratio between the minimal volume of next audio fragment and the second default volume
Example;
The volume that ratio increase plays second sub-piece is adjusted according to described second.
6. sound effect treatment method according to claim 4, which is characterized in that described increase plays second sub-piece
Volume, comprising:
The second regulated quantity is determined according to the difference between the minimal volume of next audio fragment and the second default volume;
The volume of second sub-piece is played according to second regulated quantity increase.
7. a kind of terminal device characterized by comprising
Detection unit, when for playing the present video segment of audio file in terminal device, from the audio file in advance
The next audio fragment that will be played is read, and the max volume for detecting next audio fragment is poor, the max volume is poor
For the difference between the max volume and minimal volume of next audio fragment;
Determination unit is determined and is given great volume in next audio fragment if being greater than preset difference for the max volume difference
In the first sub-piece of the first default volume;
Unit is reduced, for reducing the volume for playing first sub-piece.
8. terminal device according to claim 7, which is characterized in that the reduction unit is used for:
The first adjusting ratio is determined according to the ratio between the max volume of next audio fragment and the first default volume
Example;And
Adjusting ratio according to described first reduces the volume of broadcasting first sub-piece.
9. terminal device according to claim 7, which is characterized in that the reduction unit is used for:
The first regulated quantity is determined according to the difference between the max volume of next audio fragment and the first default volume;
The volume for playing first sub-piece is reduced according to first regulated quantity.
10. terminal device according to claim 7, which is characterized in that
The determination unit is also used to determine that volume is less than the second sub-pieces of the second default volume in next audio fragment
Section;
The terminal device further include:
Increasing unit, for increasing the volume for playing second sub-piece.
11. terminal device according to claim 10, which is characterized in that the increasing unit is used for:
The second adjusting ratio is determined according to the ratio between the minimal volume of next audio fragment and the second default volume
Example;And
The volume that ratio increase plays second sub-piece is adjusted according to described second.
12. terminal device according to claim 10, which is characterized in that the increasing unit is used for:
The second regulated quantity is determined according to the difference between the minimal volume of next audio fragment and the second default volume;
And
The volume of second sub-piece is played according to second regulated quantity increase.
13. a kind of terminal device characterized by comprising
Processor, memory, communication interface and communication bus, the processor, the memory and the communication interface pass through
The communication bus connects and completes mutual communication;
The memory is stored with executable program code, and the communication interface is for wirelessly communicating;
The processor is used to call the executable program code in the memory, executes as claim 1-6 is any
Sound effect treatment method described in one.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610438610.9A CN106126164B (en) | 2016-06-16 | 2016-06-16 | A kind of sound effect treatment method and terminal device |
PCT/CN2017/088749 WO2017215655A1 (en) | 2016-06-16 | 2017-06-16 | Sound effect processing method, and terminal device |
EP17812766.8A EP3416041B1 (en) | 2016-06-16 | 2017-06-16 | Sound effect processing method, and terminal device |
US16/050,549 US20180336005A1 (en) | 2016-06-16 | 2018-07-31 | Sound effect processing method, and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610438610.9A CN106126164B (en) | 2016-06-16 | 2016-06-16 | A kind of sound effect treatment method and terminal device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106126164A CN106126164A (en) | 2016-11-16 |
CN106126164B true CN106126164B (en) | 2019-05-17 |
Family
ID=57469795
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610438610.9A Active CN106126164B (en) | 2016-06-16 | 2016-06-16 | A kind of sound effect treatment method and terminal device |
Country Status (4)
Country | Link |
---|---|
US (1) | US20180336005A1 (en) |
EP (1) | EP3416041B1 (en) |
CN (1) | CN106126164B (en) |
WO (1) | WO2017215655A1 (en) |
Families Citing this family (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106126164B (en) * | 2016-06-16 | 2019-05-17 | Oppo广东移动通信有限公司 | A kind of sound effect treatment method and terminal device |
CN106708463B (en) * | 2016-12-09 | 2019-12-27 | 广州三星通信技术研究有限公司 | Method and device for adjusting volume of shot video file |
CN107122156A (en) * | 2017-03-09 | 2017-09-01 | 深圳市金立通信设备有限公司 | A kind of method for controlling volume and terminal |
CN107506168B (en) * | 2017-08-18 | 2022-06-14 | Oppo广东移动通信有限公司 | Volume adjusting method and device, terminal equipment and storage medium |
CN107479851B (en) * | 2017-08-18 | 2019-07-16 | Oppo广东移动通信有限公司 | Volume adjusting method, device, terminal device and storage medium |
CN107566618B (en) * | 2017-08-18 | 2021-01-22 | Oppo广东移动通信有限公司 | Volume adjusting method and device, terminal equipment and storage medium |
CN107820122B (en) * | 2017-10-09 | 2021-02-19 | 惠州Tcl移动通信有限公司 | Video volume adjusting method, storage medium and mobile terminal |
CN108052305B (en) * | 2017-11-29 | 2021-02-05 | Oppo广东移动通信有限公司 | Volume adjusting method and device, electronic equipment and computer readable storage medium |
CN108429929B (en) * | 2018-05-08 | 2020-12-08 | 海信视像科技股份有限公司 | Audio track playing method, device and storage medium |
CN109672961B (en) * | 2018-12-14 | 2020-10-09 | 歌尔科技有限公司 | Volume adjusting method, device and storage medium |
CN109658930B (en) * | 2018-12-19 | 2021-05-18 | Oppo广东移动通信有限公司 | Voice signal processing method, electronic device and computer readable storage medium |
CN109828738B (en) * | 2018-12-26 | 2022-05-03 | 努比亚技术有限公司 | Volume adjustment control method, earphone and computer readable storage medium |
CN114422913A (en) * | 2022-01-27 | 2022-04-29 | 中国第一汽车股份有限公司 | Volume adjusting method and device, central control equipment, vehicle and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101174818A (en) * | 2007-11-21 | 2008-05-07 | 广东威创视讯科技股份有限公司 | Method and device for playing media file |
CN104699447A (en) * | 2015-03-12 | 2015-06-10 | 浙江万朋网络技术有限公司 | Voice volume automatic adjustment method based on energy statistics |
Family Cites Families (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01149508A (en) * | 1987-12-04 | 1989-06-12 | Sony Corp | Acoustic signal processing circuit |
US6714909B1 (en) * | 1998-08-13 | 2004-03-30 | At&T Corp. | System and method for automated multimedia content indexing and retrieval |
US6801895B1 (en) * | 1998-12-07 | 2004-10-05 | At&T Corp. | Method and apparatus for segmenting a multi-media program based upon audio events |
JP2000134105A (en) * | 1998-10-29 | 2000-05-12 | Matsushita Electric Ind Co Ltd | Method for deciding and adapting block size used for audio conversion coding |
US6668027B1 (en) * | 1999-03-02 | 2003-12-23 | Hitachi America, Ltd. | Self adjusting automatic gain control (AGC) power reference level circuit |
US7262724B2 (en) * | 2005-03-31 | 2007-08-28 | Freescale Semiconductor, Inc. | System and method for adjusting dynamic range of analog-to-digital converter |
CN1964187B (en) * | 2005-11-11 | 2011-09-28 | 鸿富锦精密工业(深圳)有限公司 | A system, device and method to manage sound volume |
US8654993B2 (en) * | 2005-12-07 | 2014-02-18 | Apple Inc. | Portable audio device providing automated control of audio volume parameters for hearing protection |
GB2450886B (en) * | 2007-07-10 | 2009-12-16 | Motorola Inc | Voice activity detector and a method of operation |
CN101770776B (en) * | 2008-12-29 | 2011-06-08 | 华为技术有限公司 | Coding method and device, decoding method and device for instantaneous signal and processing system |
US9549251B2 (en) * | 2011-03-25 | 2017-01-17 | Invensense, Inc. | Distributed automatic level control for a microphone array |
US8971557B2 (en) * | 2012-08-09 | 2015-03-03 | Starkey Laboratories, Inc. | Binaurally coordinated compression system |
US20180197158A1 (en) * | 2012-12-02 | 2018-07-12 | Dennis R. Smalley | Methods and Systems for Purposeful Playlist Music Selection or Purposeful Purchase List Music Selection |
BR112015017064B1 (en) * | 2013-01-21 | 2022-03-22 | Dolby Laboratories Licensing Corporation | Method, computer and device readable medium for optimizing sound intensity level and dynamic range across different playback devices |
US9883310B2 (en) * | 2013-02-08 | 2018-01-30 | Qualcomm Incorporated | Obtaining symmetry information for higher order ambisonic audio renderers |
US9319784B2 (en) * | 2014-04-14 | 2016-04-19 | Cirrus Logic, Inc. | Frequency-shaped noise-based adaptation of secondary path adaptive response in noise-canceling personal audio devices |
US10824385B2 (en) * | 2015-02-27 | 2020-11-03 | Charter Communications Operating, Llc | Automated audio volume stabilizer |
US9653094B2 (en) * | 2015-04-24 | 2017-05-16 | Cyber Resonance Corporation | Methods and systems for performing signal analysis to identify content types |
US9754580B2 (en) * | 2015-10-12 | 2017-09-05 | Technologies For Voice Interface | System and method for extracting and using prosody features |
CN106126164B (en) * | 2016-06-16 | 2019-05-17 | Oppo广东移动通信有限公司 | A kind of sound effect treatment method and terminal device |
-
2016
- 2016-06-16 CN CN201610438610.9A patent/CN106126164B/en active Active
-
2017
- 2017-06-16 EP EP17812766.8A patent/EP3416041B1/en active Active
- 2017-06-16 WO PCT/CN2017/088749 patent/WO2017215655A1/en active Application Filing
-
2018
- 2018-07-31 US US16/050,549 patent/US20180336005A1/en not_active Abandoned
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101174818A (en) * | 2007-11-21 | 2008-05-07 | 广东威创视讯科技股份有限公司 | Method and device for playing media file |
CN104699447A (en) * | 2015-03-12 | 2015-06-10 | 浙江万朋网络技术有限公司 | Voice volume automatic adjustment method based on energy statistics |
Also Published As
Publication number | Publication date |
---|---|
EP3416041A1 (en) | 2018-12-19 |
EP3416041A4 (en) | 2019-06-05 |
WO2017215655A1 (en) | 2017-12-21 |
US20180336005A1 (en) | 2018-11-22 |
EP3416041B1 (en) | 2020-11-18 |
CN106126164A (en) | 2016-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106126164B (en) | A kind of sound effect treatment method and terminal device | |
CN106155623B (en) | A kind of audio collocation method, system and relevant device | |
CN107919119A (en) | Method, apparatus, equipment and the computer-readable medium of more equipment interaction collaborations | |
CN106126167B (en) | A kind of sound effect treatment method and terminal device | |
CN109151634B (en) | Wireless earphone volume control method, wireless earphone and mobile terminal | |
CN106126159B (en) | A kind of audio stream processing method and mobile terminal | |
CN104410379A (en) | A volume adjusting method | |
CN110459212A (en) | Method for controlling volume and equipment | |
CN106791191A (en) | A kind of control method for playing back and device | |
CN104363510B (en) | A kind of playback terminal | |
CN104917902A (en) | Method and system for controlling music playing status of terminal | |
CN106445451B (en) | Audio volume gain method and device | |
CN105959483B (en) | A kind of audio stream processing method and mobile terminal | |
CN106126165B (en) | A kind of audio stream processing method and mobile terminal | |
CN106210323A (en) | A kind of speech playing method and terminal unit | |
CN110633067A (en) | Sound effect parameter adjusting method and mobile terminal | |
CN107885479A (en) | A kind of method for regulation of sound volume, terminal device and computer-readable medium | |
CN103577145B (en) | Volume processing unit and method, the electronic system of electronic equipment | |
CN105895128A (en) | Playing method and associated device | |
CN107526570B (en) | Volume adjusting method and device, terminal equipment and storage medium | |
CN105280203B (en) | A kind of audio frequency playing method and user equipment | |
CN106453909B (en) | A kind of power regulating method and mobile terminal | |
CN111343497A (en) | Sound effect adjusting method of playing equipment, playing equipment and storage medium | |
CN111601218B (en) | Audio playing switching method, Bluetooth loudspeaker box and Bluetooth audio playing device | |
CN108182953B (en) | Audio tail POP sound processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |