The content of the invention
In view of this, a kind of method for controlling volume, device and playback equipment are embodiments provided, it is existing to solveHave when environmental noise is when changing in technology, user is also required to carry out manual volume regulation according to the change of environmental noise,The very loaded down with trivial details problem of this volume adjusting mode.
According in a first aspect, embodiments providing a kind of method for controlling volume, it is adaptable to audio-frequence player device, shouldMethod for controlling volume includes:The current environment audio frequency that acquisition is collected;Identify that loudspeaker is worked as from the current environment audio frequencyFront output audio frequency;The current output audio frequency of the loudspeaker in the current environment audio frequency is rejected, environmental noise is obtained;RootVolume control signal is generated according to the current output audio frequency of the environmental noise and the loudspeaker, wherein, the volume control letterNumber for controlling the volume that the loudspeaker exports audio frequency.
Alternatively, the output audio frequency current according to the environmental noise and the loudspeaker generates volume control letterNumber, including:Obtain the current volume for exporting audio frequency of the volume and the loudspeaker of the environmental noise;By the environmental noiseVolume determine that the loudspeaker exports the target volume of audio frequency;According to the target volume output current with the loudspeakerThe volume of audio frequency generates the volume control signal.
Alternatively, the volume by the environmental noise determines that the loudspeaker exports the target volume of audio frequency, including:The volume of the environmental noise is substituted into into preset function to be calculated, the target volume that the loudspeaker exports audio frequency is obtained;OrPerson, the corresponding loudspeaker of volume that the environmental noise is inquired about from database exports the target volume of audio frequency.
Alternatively, the output audio frequency current according to the environmental noise and the loudspeaker generates volume control letterNumber, including:Obtain separated by a distance and user between;Obtain the current output of the volume and the loudspeaker of the environmental noiseThe volume of audio frequency;Determine that the loudspeaker exports the target volume of audio frequency according to the volume of the distance and the environmental noise;The volume control signal is generated according to the volume of the target volume output audio frequency current with the loudspeaker.
Alternatively, it is separated by a distance between the acquisition and user, including:Institute is identified from the current environment audio frequencyState the sound that user sends;The sound sent according to the user calculates separated by a distance between user.
According to second aspect, a kind of sound volume control device is embodiments provided, it is adaptable to audio-frequence player device, shouldSound volume control device includes:Acquiring unit, for obtaining the current environment audio frequency for collecting;Recognition unit, for working as from describedThe current output audio frequency of loudspeaker is identified in front environmental audio;Culling unit, for rejecting the current environment audio frequency inThe current output audio frequency of the loudspeaker, obtains environmental noise;Signal generating unit, for according to the environmental noise and described raising one's voiceThe current output audio frequency of device generates volume control signal, wherein, the volume control signal is used to control the loudspeaker outputThe volume of audio frequency.
Alternatively, the signal generating unit includes:First acquisition module, for obtaining the volume of the environmental noise and describedThe volume of the current output audio frequency of loudspeaker;First determining module, for determining described raising one's voice by the volume of the environmental noiseDevice exports the target volume of audio frequency;First generation module, for according to the target volume output current with the loudspeakerThe volume of audio frequency generates the volume control signal.
Alternatively, first determining module includes:First calculating sub module, for by the volume generation of the environmental noiseEnter preset function to be calculated, obtain the target volume that the loudspeaker exports audio frequency;Or, submodule is inquired about, for from numberThe target volume of audio frequency is exported according to the corresponding loudspeaker of the volume that the environmental noise is inquired about in storehouse.
Alternatively, the signal generating unit includes:Second acquisition module, for separated by a distance between acquisition and user;TheThree acquisition modules, the volume of the current output audio frequency of the volume and the loudspeaker for obtaining the environmental noise;Second is trueCover half block, for determining that the loudspeaker exports the target volume of audio frequency according to the volume of the distance and the environmental noise;Second generation module, for generating the volume according to the volume of the target volume output audio frequency current with the loudspeakerControl signal.
Alternatively, second acquisition module includes:Identification submodule, for identifying from the current environment audio frequencyThe sound that the user sends;Second calculating sub module, the sound for being sent according to the user is calculated between userIt is separated by a distance.
According to the third aspect, a kind of playback equipment is embodiments provided, including:Collector, it is current for gatheringEnvironmental audio;Loudspeaker, for exporting audio frequency;Processor, is connected respectively with the collector and the loudspeaker, for performingMethod for controlling volume described in the optional mode of any one of first aspect or first aspect.
According to fourth aspect, a kind of non-transient computer readable storage medium storing program for executing is embodiments provided, it is described non-temporaryState computer-readable recording medium storage computer instruction, the computer instruction is used to make the computer perform first aspectOr the method for controlling volume described in any one optional mode of first aspect.
According to the 5th aspect, a kind of computer program, the computer program are embodiments providedIncluding the calculation procedure being stored on non-transient computer readable storage medium storing program for executing, the computer program includes programmed instruction, whenDescribed program instruction is when being computer-executed, make the computer perform first aspect or first aspect any one is optionalMethod for controlling volume described in mode.
According to embodiments of the present invention, by rejecting the current output sound of loudspeaker in the current environment audio frequency for collectingFrequently, environmental noise is obtained, to avoid the output audible effects volume control signal accuracy, then using environmental noise and is raisedThe current output audio frequency of sound device generating volume control signal, to automatically controlling for the output audio volume to loudspeaker, fromAnd enable playback equipment to carry out automatic volume regulation according to the change of environmental noise, and without the need for being adjusted manually, regulation sideFormula is simply intelligent.
According to embodiments of the present invention, it is used as determination target volume by increasing the distance between audio-frequence player device and userCondition, fully take into account the impact of the sound size to be heard to user of the distance, so as to ensure volume control standardTrue property, it is adaptable to different distances, improves Consumer's Experience.
Specific embodiment
To make purpose, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present inventionIn accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment isThe a part of embodiment of the present invention, rather than the embodiment of whole.Based on the embodiment in the present invention, those skilled in the art are not havingHave and make the every other embodiment obtained under the premise of creative work, belong to the scope of protection of the invention.
A kind of method for controlling volume is embodiments provided, audio-frequence player device should be applied to, such as with MikeThe equipment of the playable audio frequency such as TV, radio, the mobile phone of wind (or dual microphone).
Fig. 1 shows the flow chart of method for controlling volume according to embodiments of the present invention.As shown in figure 1, the volume controlMethod includes:
Step S101, obtains the current environment audio frequency for collecting.
Audio frequency (i.e. current environment audio frequency) in collector collection current environment, it is current that processor obtains this from collectorEnvironmental audio.Because collector is typically indifference collection, that is to say, include loudspeaker in the current environment audio frequency currentOutput audio frequency and current environment noise.
Step S102, identifies the current output audio frequency of loudspeaker from current environment audio frequency.
Because the current output audio frequency of loudspeaker is played back by playback equipment itself, therefore, the output audio frequencyThe parameter such as tone color, vocal print be known parameters, it is possible thereby to identify the current output of loudspeaker from current environment audio frequencyAudio frequency.
Step S103, the current output audio frequency of the loudspeaker in rejecting current environment audio frequency, obtains environmental noise.
After identifying the current output audio frequency of loudspeaker, it is rejected from current environment audio frequency, it is current so as to obtainEnvironmental noise.In the present embodiment, the current output audio frequency of loudspeaker is rejected from current environment audio frequency, it is real so as to obtainEnvironmental noise, it is to avoid directly volume control is caused come the volume that controlling loudspeaker exports audio frequency using the current environment audio frequency for collectingMake inaccurate problem.
Because the current output audio frequency of the loudspeaker in current environment audio frequency is the audio frequency of known frequency spectrum, i.e. its audio frequency parameterFor known parameters, in this case can be remaining from the current output audio frequency of extracting directly loudspeaker in current environment audio frequencyAudio frequency is then environmental noise;Or, because the current output audio frequency of loudspeaker is the audio frequency of known parameters, using the denoising of audio frequencyThe principle of process, the output audio frequency current to loudspeaker is oriented rejecting, obtains environmental noise.
Step S104, according to the current output audio frequency of environmental noise and loudspeaker volume control signal is generated, wherein, volumeControl signal is used for the volume that controlling loudspeaker exports audio frequency.
Then according to the output audio frequency of current environmental noise and loudspeaker, volume control signal is generated, to control automaticallyThe volume of the output audio frequency of loudspeaker processed.It is alternatively possible to according to the volume and the volume of current output audio frequency of environmental noiseTo generate volume control signal.
According to embodiments of the present invention, by rejecting the current output sound of loudspeaker in the current environment audio frequency for collectingFrequently, environmental noise is obtained, to avoid the output audible effects volume control signal accuracy, then using environmental noise and is raisedThe current output audio frequency of sound device generating volume control signal, to automatically controlling for the output audio volume to loudspeaker, fromAnd enable playback equipment to carry out automatic volume regulation according to the change of environmental noise, and without the need for being adjusted manually, regulation sideFormula is simply intelligent.
Fig. 2 shows the flow chart of the method for controlling volume of another embodiment of the present invention.The method for controlling volume is equally fittedFor audio-frequence player device.As shown in Fig. 2 the method for controlling volume includes:
Step S201, obtains the current environment audio frequency for collecting.
Step S202, identifies the current output audio frequency of loudspeaker from current environment audio frequency.
Step S203, the current output audio frequency of the loudspeaker in rejecting current environment audio frequency, obtains environmental noise.
In the present embodiment, step S201 to S203 is similar with the step S101 to S103 shown in Fig. 1 respectively, may refer toThe description of embodiment is stated, is repeated no more here.
Step S204, obtains the current volume for exporting audio frequency of the volume and loudspeaker of environmental noise.
The volume of environmental noise can be from above-mentioned through processing acquisition on the environmental noise for obtaining, specifically, using softwareProgram carries out being calculated its volume to environmental noise.The volume of the current output audio frequency of loudspeaker then can be detected by volumeObtain, or, obtained based on the current output audio computer of loudspeaker.
Step S205, determines that loudspeaker exports the target volume of audio frequency by the volume of environmental noise.
Volume after the target volume as regulation of loudspeaker output audio frequency, that is to say that loudspeaker is based on volume control signalAfter regulation, the volume of audio frequency is exported.The target volume need to ensure that under current environmental noise user can not hear loudspeakerOutput audio frequency.
Step S206, according to the volume of the current output audio frequency of target volume and loudspeaker volume control signal is generated.
Specifically, can be according to the control of target volume generation poor with the volume that loudspeaker currently exports audio frequency corresponding volumeSignal.If the volume of the target volume output audio frequency current more than loudspeaker, the volume control signal for generating is used to improveThe volume of the output audio frequency of loudspeaker;Conversely, then volume control signal is then used to reduce the volume of the output audio frequency of loudspeaker.ItsIn, volume control signal can be used for the volume of controlling loudspeaker output audio frequency and directly reach target volume, it is also possible to which control is raisedThe volume of sound device output audio frequency progressivelyes reach target volume.
Alternatively, as the method for controlling volume of another embodiment of the present invention, the method for controlling volume of the present embodiment is in Fig. 2On the basis of described method for controlling volume, the implementation of step S205 includes:The volume of environmental noise is substituted into into default letterNumber is calculated, and obtains the target volume that loudspeaker exports audio frequency.
Preset function is used between the target volume that can be used to indicate that the volume and loudspeaker output audio frequency of environmental noiseMathematical relationship, in the preset function volume of environmental noise be independent variable, then loudspeaker output audio frequency target volume beDependent variable, volume one loudspeaker of correspondence of each environmental noise exports the target volume of audio frequency.For example, preset function is:The volume of the target volume=environmental noise of loudspeaker output audio frequency+default volume decibel, wherein, default volume decibel can beObtained according to experiment statisticses, when the volume that loudspeaker exports audio frequency exceedes the default volume decibel of environmental noise, Yong HunengIt is enough clearly not hear the content that loudspeaker exports audio frequency.Default volume decibel can be definite value, it is also possible to environmental noiseThe value that volume changes, i.e. default volume decibel has certain functional relation with the volume of environmental noise.Therefore, weOnly it needs to be determined that quickly determine target volume by going out environmental noise in case, so that volume veolcity is fast, without the need for enteringThe inquiry of row database, improves target volume constant speed degree really.
Because the wave volume that ear is received is bigger, the stimulation to ear is bigger, easily affects when more than certain valueHearing, in order to protect the hearing of user, the target volume determined in the above embodiment of the present invention has a higher limit, whenWhen calculated target volume is more than the higher limit, then using the higher limit as target volume.
Alternatively, as the method for controlling volume of another embodiment of the present invention, the method for controlling volume of the present embodiment is in Fig. 2On the basis of described method for controlling volume, the implementation of step S205 can also include:Inquire about environment from database to make an uproarThe corresponding loudspeaker of volume of sound exports the target volume of audio frequency.
In this embodiment, the corresponding relation between the volume and target volume of every kind of varying environment noise is stored inIn database, so, after the volume for determining environmental noise, you can using the volume of environmental noise as querying condition, fromMatch query exports the target volume of audio frequency to corresponding loudspeaker in database, and determination mode speed is fast.
Fig. 3 shows the flow chart of the method for controlling volume of further embodiment of this invention.The method for controlling volume is equally fittedFor audio-frequence player device.As shown in figure 3, the method for controlling volume includes:
Step S301, obtains the current environment audio frequency for collecting.
Step S302, identifies the current output audio frequency of loudspeaker from current environment audio frequency.
Step S303, the current output audio frequency of the loudspeaker in rejecting current environment audio frequency, obtains environmental noise.
In the present embodiment, step S301 to S303 is similar with the step S101 to S103 shown in Fig. 1 respectively, may refer toThe description of embodiment is stated, is repeated no more here.
Step S304, obtains separated by a distance and user between.
The distance may refer to the distance between audio-frequence player device and user, specifically may refer to loudspeaker and user itBetween distance.The distance can be determined that its determination mode can have various, for example, by remote control by the two relative positionPositioning, user's acoustic location, or Detection location (such as infrared, radar).
Step S305, obtains the current volume for exporting audio frequency of the volume and loudspeaker of environmental noise.
Step S306, determines that loudspeaker exports the target volume of audio frequency according to the volume of distance and environmental noise.
Because the distance between user and audio-frequence player device can affect the reception and registration of sound.Under identical volume, distanceMore remote, the sound heard is less;Otherwise the sound then heard is bigger.Therefore, it is determined that during target volume, needing combining environmental to make an uproarThe distance between the volume of sound and user and audio-frequence player device.Specifically, different distance can be obtained according to experiment statisticsesUnder, the corresponding relation between the volume and target volume of environmental noise, in being then store in database, it is determined that target volumeWhen, directly inquired about from database.It is alternatively possible to predefine target volume and environmental noise volume and user withFunctional relation between the distance between audio-frequence player device, using the volume and distance of above-mentioned environmental noise as independent variable, meshMark with phonetic symbols amount is calculated target noise as dependent variable by the function determined, without the need for inquiring about database, calculating speed is fast.
When it needs to be determined that during target volume, being total to the volume of the distance and environmental noise of active user and audio-frequence player deviceWith as querying condition, match query goes out target volume.
Step S307, according to the volume of the current output audio frequency of target volume and loudspeaker volume control signal is generated.
Step S307 is similar with step S206 shown in Fig. 2, referring specifically to foregoing description, repeats no more here.
According to embodiments of the present invention, it is used as determination target volume by increasing the distance between audio-frequence player device and userCondition, fully take into account the impact of the sound size to be heard to user of the distance, so as to ensure volume control standardTrue property, it is adaptable to different distances, improves Consumer's Experience.
Alternatively, as the method for controlling volume of another embodiment of the present invention, the method for controlling volume of the present embodiment is in Fig. 3On the basis of described method for controlling volume, step S304, obtain and user between it is separated by a distance including:From current environment soundThe sound that user sends is identified in frequency;Calculated according to the sound that user sends separated by a distance between user.
In the present embodiment, user for example sends sound control order to audio-frequence player device sounding, what collector was collectedThen carry the sound of user in current environment audio frequency, the tone color of the sound and can be stored in advance in audio frequency with vocal print featureIn playback equipment, the sound that user sends thus is identified from the current environment audio frequency for collecting, based on this calculate withThe distance between family.Specifically, audio-frequence player device can have multiple collectors (for example, using dual microphoneThe TV of (microphone, referred to as MIC) or microphone array), the sound of the user collected according to different acquisition device,The distance between can determine the orientation at the place of user, and then determine with user.
Alternatively, as the method for controlling volume of another embodiment of the present invention, if audio-frequence player device includes also includingMultiple loudspeakers, then the method for controlling volume also includes:Determine orientation of the user relative to audio-frequence player device;According to the partyPosition and the volume of environmental noise, determine that each loudspeaker exports the target volume of audio frequency, wherein, the loudspeaker of diverse locationVolume it is different.So, it is ensured that user can hear the sound of high tone quality in different orientation.
Embodiments provide a kind of sound volume control device, it is adaptable to audio-frequence player device, can be played by audio frequencyEquipment realizes its function.The sound volume control device of the present embodiment can be used for performing the volume described in the above embodiment of the present inventionControl method, above-mentioned method for controlling volume can be used for the sound volume control device of the embodiment of the present invention.
Fig. 4 shows the schematic diagram of the sound volume control device of the embodiment of the present invention.As shown in figure 4, the sound volume control deviceIncluding:Acquiring unit 401, recognition unit 402, culling unit 403 and signal generating unit 404.
Acquiring unit 401 is used to obtain the current environment audio frequency for collecting.
Audio frequency (i.e. current environment audio frequency) in collector collection current environment, acquiring unit 401 is obtained from collectorThe current environment audio frequency.Because collector is typically indifference collection, that is to say, in the current environment audio frequency loudspeaker is includedCurrent output audio frequency and current environment noise.
Recognition unit 402 is used to identify the current output audio frequency of loudspeaker from current environment audio frequency.
Because the current output audio frequency of loudspeaker is played back by playback equipment itself, therefore, the output audio frequencyThe parameter such as tone color, vocal print be known parameters, it is possible thereby to identify the current output of loudspeaker from current environment audio frequencyAudio frequency.
The output audio frequency current for rejecting the loudspeaker in current environment audio frequency of culling unit 403, obtains environmental noise.
After identifying the current output audio frequency of loudspeaker, it is rejected from current environment audio frequency, it is current so as to obtainEnvironmental noise.In the present embodiment, the current output audio frequency of loudspeaker is rejected from current environment audio frequency, it is real so as to obtainEnvironmental noise, it is to avoid directly volume control is caused come the volume that controlling loudspeaker exports audio frequency using the current environment audio frequency for collectingMake inaccurate problem.
Because the current output audio frequency of the loudspeaker in current environment audio frequency is the audio frequency of known frequency spectrum, i.e. its audio frequency parameterFor known parameters, in this case can be remaining from the current output audio frequency of extracting directly loudspeaker in current environment audio frequencyAudio frequency is then environmental noise;Or, because the current output audio frequency of loudspeaker is the audio frequency of known parameters, using the denoising of audio frequencyThe principle of process, the output audio frequency current to loudspeaker is oriented rejecting, obtains environmental noise.
Signal generating unit 404 is used to generate volume control signal according to the current output audio frequency of environmental noise and loudspeaker, itsIn, volume control signal is used for the volume that controlling loudspeaker exports audio frequency.
Then according to the output audio frequency of current environmental noise and loudspeaker, volume control signal is generated, to control automaticallyThe volume of the output audio frequency of loudspeaker processed.It is alternatively possible to according to the volume and the volume of current output audio frequency of environmental noiseTo generate volume control signal.
According to embodiments of the present invention, by rejecting the current output sound of loudspeaker in the current environment audio frequency for collectingFrequently, environmental noise is obtained, to avoid the output audible effects volume control signal accuracy, then using environmental noise and is raisedThe current output audio frequency of sound device generating volume control signal, to automatically controlling for the output audio volume to loudspeaker, fromAnd enable playback equipment to carry out automatic volume regulation according to the change of environmental noise, and without the need for being adjusted manually, regulation sideFormula is simply intelligent.
Fig. 5 shows the schematic diagram of the sound volume control device of another embodiment of the present invention.The sound volume control device is equally fittedFor audio-frequence player device.As shown in figure 5, the sound volume control device includes:Acquiring unit 401, recognition unit 402, rejecting are singleUnit 403 and signal generating unit 404.Wherein, signal generating unit 404 includes:First acquisition module 4041, the first determining module 4042,One generation module 4043.Wherein, acquiring unit 401, recognition unit 402, culling unit 403 and the acquiring unit shown in Fig. 4401st, recognition unit 402, culling unit 403 are identical successively, referring specifically to above description.
First acquisition module 4041 is used to obtaining the volume of the current output audio frequency of volume and loudspeaker of environmental noise.
The volume of environmental noise can be from above-mentioned through processing acquisition on the environmental noise for obtaining, specifically, using softwareProgram carries out being calculated its volume to environmental noise.The volume of the current output audio frequency of loudspeaker then can be detected by volumeObtain, or, obtained based on the current output audio computer of loudspeaker.
First determining module 4042 is used to determine that loudspeaker exports the target volume of audio frequency by the volume of environmental noise.Raise one's voiceVolume after the target volume as regulation of device output audio frequency, after that is to say loudspeaker based on volume control signal regulation, outputThe volume of audio frequency.The target volume need to ensure that under current environmental noise user can not hear the output audio frequency of loudspeaker.
First generation module 4043 is used to generate volume according to the volume of the current output audio frequency of target volume and loudspeakerControl signal.
Specifically, can be according to the control of target volume generation poor with the volume that loudspeaker currently exports audio frequency corresponding volumeSignal.If the volume of the target volume output audio frequency current more than loudspeaker, the volume control signal for generating is used to improveThe volume of the output audio frequency of loudspeaker;Conversely, then volume control signal is then used to reduce the volume of the output audio frequency of loudspeaker.ItsIn, volume control signal can be used for the volume of controlling loudspeaker output audio frequency and directly reach target volume, it is also possible to which control is raisedThe volume of sound device output audio frequency progressivelyes reach target volume.
Alternatively, as the sound volume control device of another embodiment of the present invention, the sound volume control device of the present embodiment is in Fig. 5On the basis of described sound volume control device, the first determining module 4042 includes:First calculating sub module, for by environmental noiseVolume substitute into preset function calculated, obtain loudspeaker export audio frequency target volume.
Preset function is used between the target volume that can be used to indicate that the volume and loudspeaker output audio frequency of environmental noiseMathematical relationship, in the preset function volume of environmental noise be independent variable, then loudspeaker output audio frequency target volume beDependent variable, volume one loudspeaker of correspondence of each environmental noise exports the target volume of audio frequency.For example, preset function is:The volume of the target volume=environmental noise of loudspeaker output audio frequency+default volume decibel, wherein, default volume decibel can beObtained according to experiment statisticses, when the volume that loudspeaker exports audio frequency exceedes the default volume decibel of environmental noise, Yong HunengIt is enough clearly not hear the content that loudspeaker exports audio frequency.Default volume decibel can be definite value, it is also possible to environmental noiseThe value that volume changes, i.e. default volume decibel has certain functional relation with the volume of environmental noise.Therefore, weOnly it needs to be determined that quickly determine target volume by going out environmental noise in case, so that volume veolcity is fast, without the need for enteringThe inquiry of row database, improves target volume constant speed degree really.
Because the wave volume that ear is received is bigger, the stimulation to ear is bigger, easily affects when more than certain valueHearing, in order to protect the hearing of user, the target volume determined in the above embodiment of the present invention has a higher limit, whenWhen calculated target volume is more than the higher limit, then using the higher limit as target volume.
Alternatively, as the sound volume control device of another embodiment of the present invention, the sound volume control device of the present embodiment is in Fig. 5On the basis of described sound volume control device, the first determining module 4042 includes:Inquiry submodule, for inquiring about from databaseThe corresponding loudspeaker of volume of environmental noise exports the target volume of audio frequency.
In this embodiment, the corresponding relation between the volume and target volume of every kind of varying environment noise is stored inIn database, so, after the volume for determining environmental noise, you can using the volume of environmental noise as querying condition, fromMatch query exports the target volume of audio frequency to corresponding loudspeaker in database, and determination mode speed is fast.
Fig. 6 shows the schematic diagram of the sound volume control device of another embodiment of the present invention.The sound volume control device is equally fittedFor audio-frequence player device.As shown in fig. 6, the sound volume control device includes:Acquiring unit 401, recognition unit 402, rejecting are singleUnit 403 and signal generating unit 404.Wherein, signal generating unit 404 includes:Second acquisition module 4044, the 3rd acquisition module 4045,Two determining modules 4046 and the second generation module 4047.Wherein, acquiring unit 401, recognition unit 402, culling unit 403 and figureAcquiring unit 401, recognition unit 402 shown in 4, culling unit 403 are identical successively, referring specifically to above description.
Second acquisition module 4044, for separated by a distance between acquisition and user.
The distance may refer to the distance between audio-frequence player device and user, specifically may refer to loudspeaker and user itBetween distance.The distance can be determined that its determination mode can have various, for example, by remote control by the two relative positionPositioning, user's acoustic location, or Detection location (such as infrared, radar).
3rd acquisition module 4045, the volume of the current output audio frequency of the volume and loudspeaker for obtaining environmental noise.
Second determining module 4046, for determining that loudspeaker exports the target of audio frequency according to the volume of distance and environmental noiseVolume.
Because the distance between user and audio-frequence player device can affect the reception and registration of sound.Under identical volume, distanceMore remote, the sound heard is less;Otherwise the sound then heard is bigger.Therefore, it is determined that during target volume, needing combining environmental to make an uproarThe distance between the volume of sound and user and audio-frequence player device.Specifically, different distance can be obtained according to experiment statisticsesUnder, the corresponding relation between the volume and target volume of environmental noise, in being then store in database., it is determined that target volumeWhen, directly inquired about from database.It is alternatively possible to predefine target volume and environmental noise volume and user withFunctional relation between the distance between audio-frequence player device, using the volume and distance of above-mentioned environmental noise as independent variable, meshMark with phonetic symbols amount is calculated target noise as dependent variable by the function determined, without the need for inquiring about database, calculating speed is fast.WhenIt needs to be determined that during target volume, with the volume of the distance and environmental noise of active user and audio-frequence player device collectively as inquiryCondition, match query goes out target volume.
Second generation module 4047, for generating volume according to the volume of the current output audio frequency of target volume and loudspeakerControl signal.
Second generation module 4047 is similar with the function of the first generation module 4043 shown in Fig. 5, referring specifically to regard toOne generation module 4043 is described.
According to embodiments of the present invention, it is used as determination target volume by increasing the distance between audio-frequence player device and userCondition, fully take into account the impact of the sound size to be heard to user of the distance, so as to ensure volume control standardTrue property, it is adaptable to different distances, improves Consumer's Experience.
Alternatively, as the sound volume control device of another embodiment of the present invention, the sound volume control device of the present embodiment is in Fig. 6On the basis of described sound volume control device, the second acquisition module includes:Identification submodule, for knowing from current environment audio frequencyDo not go out the sound that user sends;Second calculating sub module, the sound for being sent according to user is calculated and is separated by between userDistance.
In the present embodiment, user for example sends sound control order to audio-frequence player device sounding, what collector was collectedThen carry the sound of user in current environment audio frequency, the tone color of the sound and can be stored in advance in audio frequency with vocal print featureIn playback equipment, the sound that user sends thus is identified from the current environment audio frequency for collecting, based on this calculate withThe distance between family.Specifically, audio-frequence player device can have multiple collectors (for example, using dual microphoneThe TV of (microphone, referred to as MIC) or microphone array), the sound of the user collected according to different acquisition deviceThe distance between sound, it may be determined that the orientation at the place of user, and then determine with user.
A kind of playback equipment is embodiments provided, the playback equipment can be used for performing the above embodiment of the present inventionDescribed in audio control method, and realize the function of audio control apparatus described in above-described embodiment, may refer toState the audio-frequence player device described in embodiment, naturally it is also possible to refer to video playback apparatus.As shown in fig. 7, the playback equipmentIncluding:Collector 701, for gathering current environment audio frequency;Loudspeaker 702, for exporting audio frequency;Processor 703, with collectorConnect respectively with loudspeaker, for performing the audio control method described in the above embodiment of the present invention, in realizing above-described embodimentThe function of each unit module in described audio control apparatus.
Processor 703 can be central processing unit (Central Processing Unit, CPU).Processor 703 may be used alsoThink other general processors, digital signal processor (Digital Signal Processor, DSP), special IC(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic,The chips such as discrete hardware components, or the combination of above-mentioned all kinds of chips.General processor can be microprocessor or the processDevice can also be any conventional processor etc..
The embodiment of the present invention additionally provides a kind of non-transient computer readable storage medium storing program for executing, and the storage medium can be magneticDish, CD, read-only memory (Read-Only Memory, ROM), random access memory (Random AccessMemory, RAM), flash memory (Flash Memory), hard disk (Hard Disk Drive, abbreviation:) or solid state hard disc HDD(Solid-State Drive, SSD) etc.;The storage medium can also include the combination of the memory of mentioned kind.
The non-transient computer readable storage medium storing program for executing stores computer instruction, the computer instruction by make it is described based onCalculation machine performs the method for controlling volume described in the above embodiment of the present invention.Specifically, non-transient computer readable storage medium storing program for executingCan be used to store non-transient software program, non-transient computer executable program and module, the such as sound in the embodiment of the present invention(acquiring unit 401 for example, shown in accompanying drawing 4, recognition unit 402, rejecting are single for the corresponding programmed instruction/module of amount control methodUnit 403 and signal generating unit 404).Processor 703 is stored in non-transient in non-transient computer readable storage medium storing program for executing by operationSoftware program, instruction and module, the various function application and data processing so as to execute server, that is, realize said methodThe method for controlling volume of embodiment.
Non-transient computer readable storage medium storing program for executing can include storing program area and storage data field, wherein, storage programArea can be required for storage program area, at least one function application program;Storage data field can be stored and operated according to list itemsProcessing meanss use created data etc..Additionally, non-transient computer readable storage medium storing program for executing can be included at a high speed at randomAccess memory, can also include non-transient memory, for example, at least one disk memory, flush memory device or other are non-Transient state solid-state memory.In certain embodiments, non-transient computer readable storage medium storing program for executing is optional including relative to processor703 remotely located memories, these remote memories can pass through the processing meanss that network connection is operated to list items.It is above-mentionedThe example of network includes but is not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
One or more of modules are stored in the non-transient computer readable storage medium storing program for executing, when oneOr during multiple execution of processors 703, perform method as Figure 1-3.
The method that the executable embodiment of the present invention of the said goods is provided, possesses the corresponding functional module of execution method and hasBeneficial effect.Not ins and outs of detailed description in the present embodiment, the correlation in specifically can be found in as in the embodiment disclosed in figs. 1-3Description.
Can be logical it will be understood by those skilled in the art that realizing all or part of flow process in above-described embodiment methodComputer program is crossed to instruct the hardware of correlation to complete, described program can be stored in a computer read/write memory mediumIn, the program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magneticDish, CD, read-only memory (ROM) or random access memory (RAM) etc..
Although being described in conjunction with the accompanying embodiments of the invention, those skilled in the art can be without departing from the present inventionSpirit and scope in the case of various modification can be adapted and modification, such modification and modification are each fallen within by claims instituteWithin the scope of restriction.