CN109672961A - A kind of volume adjusting method, equipment and storage medium - Google Patents

A kind of volume adjusting method, equipment and storage medium Download PDF

Info

Publication number
CN109672961A
CN109672961A CN201811535000.6A CN201811535000A CN109672961A CN 109672961 A CN109672961 A CN 109672961A CN 201811535000 A CN201811535000 A CN 201811535000A CN 109672961 A CN109672961 A CN 109672961A
Authority
CN
China
Prior art keywords
volume
audio signal
signal fragment
change rate
information
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.)
Granted
Application number
CN201811535000.6A
Other languages
Chinese (zh)
Other versions
CN109672961B (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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201811535000.6A priority Critical patent/CN109672961B/en
Publication of CN109672961A publication Critical patent/CN109672961A/en
Application granted granted Critical
Publication of CN109672961B publication Critical patent/CN109672961B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the present application provides a kind of volume adjusting method, equipment and storage medium, wherein the described method includes: sampling to the original sound volume information for the audio signal fragment that audio-frequence player device will play, to obtain the volume value on multiple sampled points;According to the volume value on multiple sampled points, the volume change rate of multiple sampled points is calculated separately;If determining a reference volume change rate according to the volume change rate of multiple sampled points there are the sampled point that volume change rate is more than preset threshold in multiple sampled points;Starting broadcast sound volume value based on audio signal fragment is modified original sound volume information according to reference volume rate of change, information volume after the amendment to obtain audio signal fragment;According to information volume playing audio signal segment after amendment.Accordingly, sound volume mutation therein can be inhibited before audio signal fragment broadcast, to realize the smooth variation of volume, is damaged to avoid sound volume mutation to human ear bring.

Description

A kind of volume adjusting method, equipment and storage medium
Technical field
This application involves sound processing techniques field more particularly to a kind of volume adjusting methods, equipment and storage medium.
Background technique
The audio-frequence player devices such as earphone, speaker provide more diversified form for the broadcasting of audio signal, also give people Life bring richer experience.For example, in public places, it can be using earphone come playing audio signal, to avoid shadow Ring other people;And in private space, then audio signal can be put, come outside using speaker to obtain preferably audio experience.
But in the use process of these audio-frequence player devices, often there is sound caused by due to maloperation etc. Amount mutation, and sound volume mutation can reduce the audio experience of user, in some instances it may even be possible to lead to the hearing impairment of user.For example, becoming suddenly Big volume may have exceeded the adaptability of user's ear, to cause to damage to the sense of hearing of user.
Therefore, a kind of more reasonable volume adjustment scheme is needed.
Summary of the invention
The many aspects of the application provide a kind of volume adjusting method, equipment and system, to reduce sound volume mutation to listening Feel the influence that experience generates.
The embodiment of the present application provides a kind of volume adjusting method, comprising:
The original sound volume information for the audio signal fragment that audio-frequence player device will play is sampled, it is multiple to obtain Volume value on sampled point;
According to the volume value on the multiple sampled point, the volume change rate of the multiple sampled point is calculated separately;
If being adopted there are the sampled point that volume change rate is more than preset threshold according to the multiple in the multiple sampled point The volume change rate of sampling point determines a reference volume change rate;
Starting broadcast sound volume value based on the audio signal fragment, according to the reference volume rate of change to the original Beginning information volume is modified, information volume after the amendment to obtain the audio signal fragment;
The audio signal fragment is played according to information volume after the amendment.The embodiment of the present application also provides a kind of data Processing method, comprising:
The embodiment of the present application also provides a kind of audio-frequence player device, comprising: controller and audio component, the controller with The audio component connection;
The original sound volume information of the controller, the audio signal fragment for that will play to audio-frequence player device carries out Sampling, to obtain the volume value on multiple sampled points;According to the volume value on the multiple sampled point, calculate separately the multiple The volume change rate of sampled point;If there are the sampled point that volume change rate is more than preset threshold, roots in the multiple sampled point A reference volume change rate is determined according to the volume change rate of the multiple sampled point;Starting based on the audio signal fragment is broadcast Playback magnitude is modified the original sound volume information according to the reference volume rate of change, to obtain the audio letter Information volume after the amendment of number segment;Play parameter and the transmission of the audio component are set according to information volume after the amendment To the audio component;
The audio component, for playing the audio signal fragment according to the play parameter.
The embodiment of the present application also provides a kind of computer readable storage medium for storing computer instruction, when the computer When instruction is executed by one or more processors, one or more of processors is caused to execute volume adjusting method above-mentioned.
In the embodiment of the present application, believed by the original sound volume for the audio signal fragment that will be played to audio-frequence player device Breath is analyzed, whether there is sound volume mutation in the determination audio signal fragment;And can exist in audio signal fragment When sound volume mutation, the information volume of the audio signal fragment is corrected by a reference volume change rate, to inhibit sound therein Amount mutation.Accordingly, in the embodiment of the present application, sound volume mutation therein can be inhibited, to realize before audio signal fragment broadcast The smooth variation of volume is damaged to avoid sound volume mutation to human ear bring.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is the flow diagram for the volume adjusting method that one embodiment of the application provides;
Fig. 2 a is a kind of original sound volume distribution map for audio signal fragment that one embodiment of the application provides;
Volume distribution figure after a kind of amendment for audio signal fragment that Fig. 2 b provides for one embodiment of the application;
Fig. 3 is a kind of audio-frequence player device structural schematic diagram that another embodiment of the application provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
Currently, it is prominent often to there is volume caused by due to maloperation etc. in the use process of audio-frequence player device Become, and sound volume mutation can reduce the audio experience of user, in some instances it may even be possible to lead to the hearing impairment of user.In some realities of the application It applies in example: being analyzed by the original sound volume information for the audio signal fragment that will be played to audio-frequence player device, with determination It whether there is sound volume mutation in the audio signal fragment;And one can be passed through in audio signal fragment there are when sound volume mutation Reference volume change rate corrects the information volume of the audio signal fragment, to inhibit sound volume mutation therein.It accordingly, can be in sound Before frequency signal segment is broadcasted, inhibit sound volume mutation therein, so that the smooth variation of volume is realized, to avoid sound volume mutation to people The damage of ear bring.
Below in conjunction with attached drawing, the technical scheme provided by various embodiments of the present application will be described in detail.
Fig. 1 is a kind of flow diagram for volume adjusting method that one embodiment of the application provides.As shown in Figure 1, the party Method includes:
100, the original sound volume information for the audio signal fragment that will be played to audio-frequence player device samples, to obtain Volume value on multiple sampled points;
101, according to the volume value on multiple sampled points, the volume change rate of multiple sampled points is calculated separately;
If 102, there are the sampled points that volume change rate is more than preset threshold in multiple sampled points, according to multiple sampled points Volume change rate determine a reference volume change rate;
103, the starting broadcast sound volume value based on audio signal fragment believes original sound volume according to reference volume rate of change Breath is modified, information volume after the amendment to obtain audio signal fragment;
104, according to information volume playing audio signal segment after amendment.
Method for controlling volume provided in this embodiment can be applied to various audios and play in scene, and the present embodiment is to applied field Scape is not construed as limiting.For different application scenarios, the physical aspect of audio-frequence player device can be not exactly the same.For example, audio Playback equipment can be bluetooth headset, wired earphone, Baffle Box of Bluetooth, network speaker, wired speaker etc., and certainly, this only shows Example property, according to the demand of application scenarios, audio-frequence player device can also be other physical aspects.
In the present embodiment, the original sound volume information for the audio signal fragment that audio-frequence player device will play can be obtained.Its In, i.e., the audio signal fragment of broadcasting is referred to the audio signal fragment for getting from signal source but not yet broadcasting.In addition, this The corresponding playing duration of audio signal fragment is not limited in embodiment, according to different needs and processing capacity, can be A segment of audio signal of 5ms, is also possible to a segment of audio signal of 100ms, it is, of course, also possible to be one section of other playing durations Audio signal.
Wherein, for different application scenarios, the original of the audio signal fragment that will be played can be obtained from different approaches Information volume.For example, for playing the audio signal in mobile phone using bluetooth headset and by the applied field of mobile phone control volume Scape can extract the information volume of audio signal fragment from the audio data that mobile phone is sent to bluetooth headset.In another example for The application scenarios of network audio signal, the audio number that can be obtained from network server from network speaker are played using network speaker In, the information volume of audio signal fragment is extracted.For another example answering for the volume using bluetooth headset control audio signal With in scene, audio signal fragment can be executed in the operation data generated after volume control operations, extracted from bluetooth headset The information volume of audio signal fragment.
Including at least the corresponding relationship of the playing time of audio signal and volume value in information volume.It accordingly, can be to audio The original sound volume information for the audio signal fragment that playback equipment will play is sampled, to obtain the volume on multiple sampled points Value.In some practical applications, uniform sampling can be carried out to original sound volume information from time dimension, so that multiple sampled points are more preferable Ground reflects the volume characteristics of audio signal fragment.
Accordingly, the volume change rate of multiple sampled points can be calculated separately according to the volume value on multiple sampled points.Each adopt The volume change rate of sampling point can symbolize volume change degree of the audio signal fragment in the corresponding playing time of the sampled point, Volume change rate is bigger, and the volume change degree that characterize in corresponding playing time is bigger.
In the present embodiment, the method for determination of the volume change rate of multiple sampled points is not limited.In one implementation, The first derivative for calculating separately the volume value on multiple sampled points, the volume change rate as multiple sampled points.In the realization side In formula, regard the volume value on multiple sampled points of audio signal fragment as multiple points in a function, and calculate separately this First derivative of the function on each sampled point, to symbolize volume change rate of the audio signal fragment on each sampled point.
Based on this, in the present embodiment, it can be based on a preset threshold, judged in multiple sampled points with the presence or absence of volume change rate More than the sampled point of the preset threshold, if it is present can determine that there are sound volume mutations in signal volume segment.Wherein, this is pre- If threshold value can be set according to the volume adjustment inhibitory effect that expectation reaches, and preset threshold setting is lower, then volume adjustment The range of inhibition is also wider.In a kind of practical application, volume adjustment can be inhibited by the way that preset threshold is set as 0 Range be expanded to as long as in audio signal fragment there are volume change as long as carry out volume adjustment inhibition.
If it is determined that needing to carry out volume adjustment inhibition to audio signal fragment, then it can inhibit the sound in audio signal fragment Amount sports target, according to the volume change rate of multiple sampled points, determines a reference volume change rate.Reference volume variation Rate certainly will need largely more than the volume change rate of preset threshold in the volume change rate lower than multiple sampled points, to reach slow With the effect of the volume change in audio signal fragment.
In the present embodiment, a variety of implementations can be used and determine the reference volume change rate.
It in one implementation, can the respective volume of multiple sampled points based on the audio signal fragment hereinbefore determined The first derivative of value calculates the mean value of the first derivative of the volume value of multiple sampled points, as reference volume change rate.
In another implementation, can also multiple sampled points based on the audio signal fragment hereinbefore determined respectively The first derivative of volume value, therefrom selects median, as reference volume change rate.
In another implementation, can also multiple sampled points based on the audio signal fragment hereinbefore determined respectively The first derivative of volume value therefrom selects the maximum first derivative of specified quantity, and calculates the mean value of these first derivatives, makees For benchmark volume change rate.
Certainly, other implementations can be used also to determine that reference volume change rate, the present embodiment are not construed as limiting this.
It on this basis, can be based on the starting broadcast sound volume value of audio signal fragment, according to the reference note quantitative change determined Rate is modified original sound volume information.It, can be from the starting broadcast sound volume value of audio signal fragment in some practical applications Start, according to reference volume change rate, calculate the volume value of each playing time in audio signal fragment, to obtain audio letter Information volume after the amendment of number segment.
A kind of original sound volume distribution map of audio signal fragment of one embodiment of the application offer is provided in Fig. 2 a.Fig. 2 b In show one embodiment of the application offer a kind of audio signal fragment amendment after volume distribution figure.In fig. 2 a, During 20ms-30ms, volume value is uprushed from 40dB to 70dB, and during 30ms-40ms, volume value again from 70dB bust to 20dB.In figure 2b, volume value slowly rises to after 60dB and slowly falls after rise to 50dB again since 0ms.Comparison diagram 2a and figure After 2b according to information volume of the reference volume change rate to audio signal fragment it is found that be adjusted, the sound of audio signal fragment Amount distribution curve becomes more gentle, and wedge angle caused by the sound volume mutation in original sound volume distribution map will disappear.
Later, can be according to information volume playing audio signal segment after amendment, this makes the volume change that auditory perceptual arrives Become to mitigate, so that sound volume mutation be avoided to cause to damage to human ear.
In addition, if there is no the samplings that volume change rate is more than preset threshold in multiple sampled points of audio signal fragment Point, it may be determined that sound volume mutation is not present in audio signal fragment, then can be pressed based on the starting broadcast sound volume value of audio signal fragment It corrects in audio signal fragment according to the original sound volume changing rule reacted in the original sound volume information of audio signal fragment and respectively plays The volume value at moment, information volume after the amendment to obtain audio signal fragment, after the amendment according to the audio signal fragment Information volume plays the audio signal fragment.Accordingly, human ear can be made to perceive the volume adjustment operation executed with user consistent Volume control effect.Therefore, by setting reasonable preset threshold, that is, it can guarantee the inhibition to sound volume mutation, it is also ensured that Operation is adjusted to user's normal quantity normally to be responded.
In above-mentioned or following embodiments, for there are the audio signal fragments of sound volume mutation, due to having carried out sound to it Inhibition from mutation is measured, this may cause the lag on its volume change result time of origin, it is, revised audio signal piece Section termination broadcast sound volume value may and the termination broadcast sound volume value not up in original sound volume information.
In this regard, in order to guarantee audio signal fragment that human ear perceives and continuity of its further fragments in volume, this , can be when the upper segment to audio signal fragment carry out volume adjustment in embodiment, the amendment of Cong Shangyi audio signal fragment Afterwards in information volume, the termination broadcast sound volume value of audio signal fragment is obtained, and broadcast sound volume value will be terminated as audio signal The starting broadcast sound volume value of segment.This makes when carrying out volume adjustment to audio signal fragment, can be from an audio signal thereon The termination broadcast sound volume value of segment starts, and changes according to the corresponding reference volume change rate or original sound volume of audio signal fragment Rule corrects the information volume of the segment.
In above-mentioned or following embodiments, also information volume after the amendment of audio signal fragment can be fed back to volume control Equipment, so that volume control apparatus updates the information volume for the audio signal fragment that it is recorded, so that volume control be kept to set Actual play knot of the information volume and audio signal fragment of audio signal fragment recorded in standby in audio-frequence player device Fruit is synchronous.
In some practical applications, volume control can be carried out in next segment of the volume control apparatus to audio signal fragment Before, information volume after the amendment of audio signal fragment is fed back into volume control apparatus.In this way, volume control apparatus can directly by Broadcast sound volume value is terminated as next segment of audio signal fragment in the audio signal fragment referred in above-described embodiment Originate broadcast sound volume value, and the information volume based on this next segment for generating audio signal fragment.
Wherein, for different application scenarios, volume control apparatus may be not exactly the same.For example, for using bluetooth Earphone plays the audio signal in mobile phone and controls the application scenarios of volume by mobile phone, can play bluetooth headset as audio The equipment, using mobile phone as volume control apparatus.In another example for the applied field for playing network audio signal using network speaker Scape, can be using network speaker as volume control apparatus, and under this scene, network speaker is both audio-frequence player device and sound Amount control equipment.For another example for playing the audio signal in mobile phone using bluetooth headset and controlling audio by bluetooth headset , can be using bluetooth headset as audio-frequence player device in the application scenarios of the volume of signal, and also serve as volume control apparatus.
In addition, the information volume of the audio signal fragment recorded in volume control apparatus can be shown in visual form In volume control apparatus.For example, can be in audio signal fragment playing process, according to the playback progress of audio signal fragment, in hand Volume change in the player interface of machine in the form of volume button animation in synchronous displaying audio signal fragment playing process Effect.In another example according to the playback progress of audio signal fragment, network speaker can be controlled in audio signal fragment playing process Volume display lamp variation come synchronize show audio signal fragment playing process in volume change effect.
It should be noted that the executing subject of each step of above-described embodiment institute providing method may each be same equipment, Alternatively, this method is also by distinct device as executing subject.For example, the executing subject of step 101 to step 103 can be equipment A;For another example, step 101 and 102 executing subject can be equipment A, the executing subject of step 103 can be equipment B;Etc..
In addition, containing in some processes of the description in above-described embodiment and attached drawing according to particular order appearance Multiple operations, but it should be clearly understood that these operations can not execute or parallel according to its sequence what appears in this article It executes, serial number of operation such as 101,102 etc. is only used for distinguishing each different operation, and serial number itself does not represent any Execute sequence.In addition, these processes may include more or fewer operations, and these operations can execute in order or It is parallel to execute.1
Fig. 3 is a kind of structural schematic diagram for audio-frequence player device that another embodiment of the application provides.As shown in figure 3, should Audio-frequence player device includes at least: controller 30 and audio component 31, controller 30 are connect with audio component 31;
The original sound volume information of controller 30, the audio signal fragment for that will play to audio-frequence player device is adopted Sample, to obtain the volume value on multiple sampled points;According to the volume value on multiple sampled points, the sound of multiple sampled points is calculated separately Quantitative change rate;If there are the sampled points that volume change rate is more than preset threshold in multiple sampled points, according to multiple sampled points Volume change rate determines a reference volume change rate;Starting broadcast sound volume value based on audio signal fragment, according to reference volume Rate of change is modified original sound volume information, information volume after the amendment to obtain audio signal fragment;After amendment The play parameter of information volume setting audio component 31 is simultaneously sent to audio component 31;
Audio component 31, for according to play parameter playing audio signal segment.
In the present embodiment, carried out by the original sound volume information for the audio signal fragment that will be played to audio-frequence player device Analysis, to determine in audio signal fragment with the presence or absence of sound volume mutation;And can in audio signal fragment there are when sound volume mutation, The information volume of audio signal fragment is corrected, by a reference volume change rate to inhibit sound volume mutation therein.It accordingly, can be Before audio signal fragment broadcasts, inhibits sound volume mutation therein, to realize the smooth variation of volume, given to avoid sound volume mutation The damage of human ear bring.
In an alternative embodiment, controller 30 calculates separately multiple samplings according to the volume value on multiple sampled points When the volume change rate of point, it is used for:
The first derivative for calculating separately the volume value on multiple sampled points, the volume change rate as multiple sampled points.
In an alternative embodiment, controller 30 determines a reference note quantitative change in the volume change rate according to multiple sampled points When rate, it is used for:
According to the first derivative of the respective volume value of multiple sampled points, the equal of the first derivative of multiple sampled point volume values is calculated Value, as reference volume change rate.
In an alternative embodiment, controller 30 is also used to:
If being based on audio signal fragment there is no the sampled point that volume change rate is more than preset threshold in multiple sampled points Starting broadcast sound volume value, corrected according to the original sound volume changing rule that is embodied in the original sound volume information of audio signal fragment The volume value of each playing time in audio signal fragment, information volume after the amendment to obtain audio signal fragment, according to described Information volume plays the audio signal fragment after the amendment of audio signal fragment.
In an alternative embodiment, controller 30 is also used to:
Sound is played from the termination in information volume, obtaining a upper audio signal fragment after the amendment of a upper audio signal fragment Magnitude, and broadcast sound volume value will be terminated as the starting broadcast sound volume value of audio signal fragment.
In an alternative embodiment, controller 30 is also used to:
Information volume after the amendment of audio signal fragment is fed back into volume control apparatus, to keep in volume control apparatus It is same for the actual play result in audio-frequence player device of volume record result and audio signal fragment of audio signal fragment Step.
Further, as shown in figure 3, the audio-frequence player device further include: memory 32, communication component 33, power supply module 34 Etc. other components.Members are only schematically provided in Fig. 3, are not meant to that audio-frequence player device only includes component shown in Fig. 3.
Wherein, memory 32 can be real by any kind of volatibility or non-volatile memory device or their combination Existing, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is only It reads memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic Disk or CD.
Wherein, wired or wireless side between equipment and other equipment where communication component 33 is configured to facilitate communication component The communication of formula.Equipment where communication component can access the wireless network based on communication standard, such as WiFi, 2G or 3G or they Combination.In one exemplary embodiment, communication component is received via broadcast channel from the wide of external broadcasting management system Broadcast signal or broadcast related information.In one exemplary embodiment, communication component can be based on near-field communication (NFC) technology, penetrate Frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, bluetooth (BT) technology or other skills Art is realized, to promote short range communication.
Wherein, power supply module 34, the various assemblies of equipment provide electric power where power supply module.Power supply module may include Power-supply management system, one or more power supplys and other are related to electric power is generated, managed, and distributed for equipment where power supply module The component of connection.
Wherein, audio component 31, it may include the components such as power amplifier, loudspeaker are used for output audio signal.
Correspondingly, the embodiment of the present application also provides a kind of computer readable storage medium for being stored with computer program, meter Calculation machine program, which is performed, can be realized each step that can be executed by audio-frequence player device in above method embodiment.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal Replacement, improvement etc., should be included within the scope of the claims of this application.

Claims (12)

1. a kind of volume adjusting method characterized by comprising
The original sound volume information for the audio signal fragment that audio-frequence player device will play is sampled, to obtain multiple samplings Volume value on point;
According to the volume value on the multiple sampled point, the volume change rate of the multiple sampled point is calculated separately;
If there are the sampled points that volume change rate is more than preset threshold in the multiple sampled point, according to the multiple sampled point Volume change rate determine a reference volume change rate;
Starting broadcast sound volume value based on the audio signal fragment, according to the reference volume rate of change to the original sound Amount information is modified, information volume after the amendment to obtain the audio signal fragment;
The audio signal fragment is played according to information volume after the amendment.
2. the method according to claim 1, wherein the volume value according on the multiple sampled point, divides The volume change rate of the multiple sampled point is not calculated, comprising:
The first derivative for calculating separately the volume value on the multiple sampled point, the volume change as the multiple sampled point Rate.
3. according to the method described in claim 2, it is characterized in that, described true according to the volume change rate of the multiple sampled point A fixed reference volume change rate, comprising:
The mean value for calculating the first derivative of the volume value on the multiple sampled point, as the reference volume change rate.
4. the method according to claim 1, wherein further include:
If being based on the audio signal there is no the sampled point that volume change rate is more than preset threshold in the multiple sampled point The starting broadcast sound volume value of segment, according to the original sound volume changing rule of the original sound volume information response of the audio signal fragment The volume value of each playing time in the audio signal fragment is corrected, volume is believed after the amendment to obtain the audio signal fragment Breath;
The audio signal fragment is played according to information volume after the amendment of the audio signal fragment.
5. the method according to claim 1, wherein also:
Sound is played from the termination in information volume, obtaining a upper audio signal fragment after the amendment of a upper audio signal fragment Magnitude, and using the termination broadcast sound volume value as the starting broadcast sound volume value of the audio signal fragment.
6. the method according to claim 1, wherein further include:
Information volume after the amendment of the audio signal fragment is fed back into volume control apparatus, so that the volume control apparatus Update the information volume for the audio signal fragment that it is recorded.
7. a kind of audio-frequence player device characterized by comprising controller and audio component, the controller and the audio Component connection;
The original sound volume information of the controller, the audio signal fragment for that will play to audio-frequence player device is adopted Sample, to obtain the volume value on multiple sampled points;According to the volume value on the multiple sampled point, the multiple adopt is calculated separately The volume change rate of sampling point;If there are the sampled point that volume change rate is more than preset threshold, bases in the multiple sampled point The volume change rate of the multiple sampled point determines a reference volume change rate;Starting based on the audio signal fragment plays Volume value is modified the original sound volume information according to the reference volume rate of change, to obtain the audio signal Information volume after the amendment of segment;The play parameter of the audio component is set according to information volume after the amendment and is sent to The audio component;
The audio component, for playing the audio signal fragment according to the play parameter.
8. equipment according to claim 7, which is characterized in that the controller is according on the multiple sampled point Volume value is used for when calculating separately the volume change rate of the multiple sampled point:
The first derivative for calculating separately the volume value on the multiple sampled point, the volume change as the multiple sampled point Rate.
9. equipment according to claim 8, which is characterized in that the controller is in the volume according to the multiple sampled point When change rate determines a reference volume change rate, it is used for:
The mean value for calculating the first derivative of the volume value of the multiple sampled point, as the reference volume change rate.
10. equipment according to claim 7, which is characterized in that the controller is also used to:
If being based on the audio signal there is no the sampled point that volume change rate is more than preset threshold in the multiple sampled point The starting broadcast sound volume value of segment, according to the original sound volume variation rule reacted in the original sound volume information of the audio signal fragment Rule corrects the volume value of each playing time in the audio signal fragment, volume after the amendment to obtain the audio signal fragment Information;
The audio signal fragment is played according to information volume after the amendment of the audio signal fragment.
11. equipment according to claim 7, which is characterized in that the controller is also used to:
Sound is played from the termination in information volume, obtaining a upper audio signal fragment after the amendment of a upper audio signal fragment Magnitude, and using the termination broadcast sound volume value as the starting broadcast sound volume value of the audio signal fragment.
12. a kind of computer readable storage medium for storing computer instruction, which is characterized in that when the computer instruction is by one When a or multiple processors execute, one or more of processor perform claims is caused to require 1~6 described in any item volumes Adjusting method.
CN201811535000.6A 2018-12-14 2018-12-14 Volume adjusting method, device and storage medium Active CN109672961B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811535000.6A CN109672961B (en) 2018-12-14 2018-12-14 Volume adjusting method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811535000.6A CN109672961B (en) 2018-12-14 2018-12-14 Volume adjusting method, device and storage medium

Publications (2)

Publication Number Publication Date
CN109672961A true CN109672961A (en) 2019-04-23
CN109672961B CN109672961B (en) 2020-10-09

Family

ID=66144430

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811535000.6A Active CN109672961B (en) 2018-12-14 2018-12-14 Volume adjusting method, device and storage medium

Country Status (1)

Country Link
CN (1) CN109672961B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112558916A (en) * 2020-12-24 2021-03-26 北京百度网讯科技有限公司 Audio adjusting method and device, electronic equipment and storage medium
CN113597774A (en) * 2019-10-21 2021-11-02 Ask工业有限公司 Apparatus for processing audio signals
CN114121050A (en) * 2021-11-30 2022-03-01 云知声智能科技股份有限公司 Audio playing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267189A (en) * 2008-04-16 2008-09-17 深圳华为通信技术有限公司 Automatic volume adjusting device, method and mobile terminal
CN101282111A (en) * 2008-06-02 2008-10-08 北京海尔集成电路设计有限公司 Method and system for controlling sound volume adjustment
CN105991103A (en) * 2015-04-27 2016-10-05 乐视致新电子科技(天津)有限公司 Volume control method and device
CN106126164A (en) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 A kind of sound effect treatment method and terminal unit
CN107566652A (en) * 2017-09-20 2018-01-09 惠州Tcl移动通信有限公司 A kind of method, mobile terminal and the storage medium of automatic regulating volume size
WO2018055455A1 (en) * 2016-09-23 2018-03-29 Eventide Inc. Tonal/transient structural separation for audio effects

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267189A (en) * 2008-04-16 2008-09-17 深圳华为通信技术有限公司 Automatic volume adjusting device, method and mobile terminal
CN101282111A (en) * 2008-06-02 2008-10-08 北京海尔集成电路设计有限公司 Method and system for controlling sound volume adjustment
CN105991103A (en) * 2015-04-27 2016-10-05 乐视致新电子科技(天津)有限公司 Volume control method and device
CN106126164A (en) * 2016-06-16 2016-11-16 广东欧珀移动通信有限公司 A kind of sound effect treatment method and terminal unit
WO2018055455A1 (en) * 2016-09-23 2018-03-29 Eventide Inc. Tonal/transient structural separation for audio effects
CN107566652A (en) * 2017-09-20 2018-01-09 惠州Tcl移动通信有限公司 A kind of method, mobile terminal and the storage medium of automatic regulating volume size

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113597774A (en) * 2019-10-21 2021-11-02 Ask工业有限公司 Apparatus for processing audio signals
CN113597774B (en) * 2019-10-21 2023-06-16 Ask工业有限公司 Apparatus for processing audio signals
CN112558916A (en) * 2020-12-24 2021-03-26 北京百度网讯科技有限公司 Audio adjusting method and device, electronic equipment and storage medium
CN112558916B (en) * 2020-12-24 2024-01-05 阿波罗智联(北京)科技有限公司 Audio adjustment method, device, electronic equipment and storage medium
CN114121050A (en) * 2021-11-30 2022-03-01 云知声智能科技股份有限公司 Audio playing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109672961B (en) 2020-10-09

Similar Documents

Publication Publication Date Title
US20240187808A1 (en) Playback Device Calibration
CN105531759B (en) Loudness for lower mixed audio content adjusts
US11075609B2 (en) Transforming audio content for subjective fidelity
EP2986034B1 (en) Audio system equalization for portable media playback devices
JP7001588B2 (en) Object-based audio signal balancing method
CN109672961A (en) A kind of volume adjusting method, equipment and storage medium
CN109714663A (en) A kind of control method of earphone, earphone and storage medium
KR102346669B1 (en) Audio signal processing method and apparatus for controlling loudness level
US10638245B2 (en) Dynamic multi-speaker optimization
CN109979472A (en) Dynamic range control for various playback environments
CN109658952B (en) Audio signal processing method, device and storage medium
CN110580141A (en) Mobile terminal and sound effect control method
CN113553022A (en) Equipment adjusting method and device, mobile terminal and storage medium
US9491549B2 (en) Equalizer apparatus
KR102110515B1 (en) Hearing aid device of playing audible advertisement or audible data
CN109672962B (en) Information processing method and electronic equipment
CN105280202A (en) Method and system for adjusting wired loudspeaker box playing parameters as well as mobile terminal
US11523238B2 (en) Dynamic audio upmixer parameters for simulating natural spatial variations
CN104952456A (en) Voice processing method and electronic equipment
CN104754365A (en) Stream media processing method and device
CN117319888A (en) Sound effect control method, device and system

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