Volume adjusting method, device, storage medium and the intelligent sound box of intelligent sound box
Technical field
The present embodiments relate to intelligent sound box technical field more particularly to a kind of volume adjusting method of intelligent sound box,
Device, storage medium and intelligent sound box.
Background technology
At this stage, being gradually increased with people's living standard, people are to seeing that TV or film constant pitch purpose sound equipment are imitated
Fruit is pursued also higher and higher.Large-scale intelligent sound box equipment also slowly becomes the necessity in each modernization family.In order to
The aesthetic requirements of family's arrangement, intelligent sound box are often symmetrically laid in the both ends of TV, or if it is four monomer speakers
If, just other two monomer speaker is laid in behind sofa.However, since the sound-box device of profession is by audio data
It is exaggerated processing, can achieve the effect that enhance audio, but if in audio data to be played, there are higher sounds
When amount needs to play out, the high load capacity work of speaker is may result in, the service life of speaker is influenced.
Invention content
The embodiment of the present invention provides a kind of volume adjusting method of intelligent sound box, device, storage medium and intelligent sound box, can
In the case where playing higher volume, neither to influence the auditory effect of sound, while the work of speaker high load capacity can be alleviated again
The problem of caused equipment fatigue.
In a first aspect, an embodiment of the present invention provides a kind of volume adjusting method of intelligent sound box, this method includes:
Obtain audio data to be played;
From the audio data to be played, it is determined whether the sound clip there are volume higher than default protection threshold value;
If so, each monomer speaker of intelligent sound box is moved into pre-determined distance from initial position to user direction, and will
Broadcast sound volume is adjusted according to default volume adjustment rule.
Further, then each monomer speaker of intelligent sound box is being moved into pre-determined distance from initial position to user direction
Before, the method further includes:
It determines user position, and specifically includes:
Every preset time period is passed by television camera, speaker camera, speaker range sensor and sofa pressure
One or more of sensor determines user position;The user includes a user or multiple users.
Further, before each monomer speaker of intelligent sound box is moved pre-determined distance to user direction, the side
Method further includes:
Judge on the mobile route between the current location of each monomer speaker and adjustment target location, if there are obstacles
Object adjusts the position of monomer speaker if so, cancelling.
Further, described that broadcast sound volume is adjusted according to default volume adjustment rule, including:
Obtain the current displacement distance of each monomer speaker;
From volume adjustment mapping table, volume adjustment parameter corresponding with the current displacement distance is determined, according to described
The broadcast sound volume of monomer speaker is adjusted in volume adjustment parameter.
Further, each monomer speaker of intelligent sound box is being moved into pre-determined distance from initial position to user direction,
And after broadcast sound volume is adjusted according to default volume adjustment rule, the method further includes:
When determining the audio data to be played in preset period of time, there is no volumes higher than the default sound piece for protecting threshold value
Duan Shi controls each monomer speaker and is moved to initial position, and by broadcast sound volume according to the inverse of default volume adjustment rule
Rule is adjusted.
Second aspect, the embodiment of the present invention additionally provide a kind of volume adjustment device of intelligent sound box, which includes:
Audio data acquisition module to be played, for obtaining audio data to be played;
Volume judgment module, for from the audio data to be played, it is determined whether there are volumes higher than default protection
The sound clip of threshold value;
Volume adjusting module, if being judged as YES for the volume judgment module, by each monomer sound of intelligent sound box
Case moves pre-determined distance from initial position to user direction, and broadcast sound volume is adjusted according to default volume adjustment rule.
Further, described device further includes user position determining module, is specifically used for:
Every preset time period is passed by television camera, speaker camera, speaker range sensor and sofa pressure
One or more of sensor determines user position;The user includes a user or multiple users.
Further, described device further includes:
Barrier judgment module, the movement between the current location for judging each monomer speaker and adjustment target location
On path, if there are barriers, are adjusted to the position of monomer speaker if so, cancelling.
Further, the volume adjusting module, including:
Current displacement distance acquiring unit, the current displacement distance for obtaining each monomer speaker;
Sound volume regulation unit determines volume corresponding with the current displacement distance for from volume adjustment mapping table
Adjustment parameter is adjusted the broadcast sound volume of monomer speaker according to the volume adjustment parameter.
Further, described device further includes:
Speaker resets adjustment module, for when determining the audio data to be played in preset period of time, there is no volumes higher than pre-
If protect the sound clip of threshold value, control each monomer speaker and be moved to initial position, and by broadcast sound volume according to
The inverse rule of default volume adjustment rule is adjusted.
The third aspect, an embodiment of the present invention provides a kind of computer readable storage mediums, are stored thereon with computer journey
Sequence, the program realize the volume adjusting method of intelligent sound box as described in the embodiments of the present invention when being executed by processor.
Fourth aspect, an embodiment of the present invention provides a kind of intelligent sound box, the intelligent sound box includes:
At least one processor;And the memory being connect at least one processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one processor, and described instruction is by described at least one
A processor executes, so that at least one processor is able to carry out the volume of intelligent sound box as described in the embodiments of the present invention
Adjusting method.
The technical solution that the embodiment of the present invention is provided, by obtaining audio data to be played;From the audio to be played
In data, it is determined whether the sound clip there are volume higher than default protection threshold value;If so, by each list of intelligent sound box
Body speaker moves pre-determined distance from initial position to user direction, and broadcast sound volume is adjusted according to default volume adjustment rule
Section can neither influence the auditory effect of sound in the case where playing higher volume, while can alleviate speaker high load capacity again
The problem of equipment fatigue caused by work.
Description of the drawings
Fig. 1 is the flow chart of the volume adjusting method for the intelligent sound box that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of the volume adjusting method of intelligent sound box provided by Embodiment 2 of the present invention;
Fig. 3 is the structural schematic diagram of the volume adjustment device for the intelligent sound box that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural schematic diagram of intelligent sound box provided in an embodiment of the present invention.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The processing described as flow chart or method.Although each step is described as the processing of sequence, many of which by flow chart
Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation
The processing can be terminated when completion, it is also possible to the additional step being not included in attached drawing.The processing can be with
Corresponding to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 is the flow chart of the volume adjusting method for the intelligent sound box that the embodiment of the present invention one provides, and the present embodiment can fit
Acoustic situations are played with intelligent sound box, this method can be by the volume adjustment device for the intelligent sound box that the embodiment of the present invention is provided
It executes, which can be realized by the mode of software and/or hardware, and can be integrated in intelligent sound box.
As shown in Figure 1, the volume adjusting method of the intelligent sound box includes:
S110, audio data to be played is obtained.
Wherein, audio data can be stored in file to be played, as played film, the TV play that certain network address is stored
And entertainment etc., but network direct broadcasting and live telecast are can not to be obtained to the audio data with broadcasting, because
Audio data for the program of live streaming all obtains in real time, can not be previously obtained audio data.
S120, from the audio data to be played, it is determined whether the sound there are volume higher than default protection threshold value
Segment;If so, executing S130;If it is not, then executing S150.
Wherein, it is stored with information corresponding with tone and volume in audio data, can be carried out according to wherein information volume
Analysis, specifically can be in conjunction with the volume set by each monomer speaker of current intelligent sound box, wherein the volume of each monomer speaker
Can be arranged and differ, when the current volume for combining each monomer speaker, determine that current each monomer speaker plays sound
When measuring higher sound clip, if will appear the volume more than default protection threshold value, the volume of such as default protection threshold value
It is 90 decibels, then when the broadcast sound volume in audio data can be more than 90 decibels, then executes following volume adjustment measure.Here
90 decibels can be a good empirical value of default setting, each monomer speaker actual play be more than the volume of this threshold value simultaneously
The direct damage of intelligent sound box will not be caused, but being set as can be to avoid some monomer speaker whithin a period of time, continuously
Situations such as loudspeaker caused by broadcasting louder volume audio data are tired, can effectively protect the microphone device of intelligent sound box
Shield.The driving circuit of control microphone device can also be avoided to continue high current simultaneously and superheating phenomenon occur.
S130, each monomer speaker of intelligent sound box is moved into pre-determined distance from initial position to user direction, and will broadcast
Playback amount is adjusted according to default volume adjustment rule.
Wherein, pre-determined distance can be 0.2 meter, 0.3 meter or 0.5 meter etc., can be according to the sound of audio data to be played
Amount information determines the distance moved to user direction.User direction can be the direction that default setting is speaker face, Ke Yitong
It crosses and electric roller is set in speaker pedestal to realize.While each monomer speaker movement of intelligent sound box, volume is carried out
Adjust, it is default adjust volume rule can be it is every move 0.1 meter to user direction, then volume down preset value, such as 2 decibels, or
Person's volume is multiplied by a coefficient less than 1, such as 0.9.It can thus be subtracted by each monomer speaker of intelligent movable speaker
The actual play volume of small speaker, neither influences the auditory perception of user, and can avoid each monomer speaker of intelligent sound box
So that occurrence of equipment fatigue phenomenon is occurred because high load capacity works, achievees the effect that extend the intelligent sound box service life.
S140, continue playing audio-fequency data.
From the audio data to be played, the sound clip higher than default protection threshold value there is no volume is determined, then
Position without speaker adjusts, and continues to play sound.
The technical solution that the embodiment of the present invention is provided, by obtaining audio data to be played;From the audio to be played
In data, it is determined whether the sound clip there are volume higher than default protection threshold value;If so, by each list of intelligent sound box
Body speaker moves pre-determined distance from initial position to user direction, and broadcast sound volume is adjusted according to default volume adjustment rule
Section can neither influence the auditory effect of sound in the case where playing higher volume, while can alleviate speaker high load capacity again
The problem of equipment fatigue caused by work.
Based on the above technical solution, optionally, then by each monomer speaker of intelligent sound box from initial position
Before moving pre-determined distance to user direction, the method further includes:It determines user position, and specifically includes:Every pre-
If the period, by one kind in television camera, speaker camera, speaker range sensor and sofa pressure sensor or
The a variety of determining user positions of person;The user includes a user or multiple users.Wherein it is possible to be taken the photograph by TV
It determines the position of user by image recognition technology as head gets user's image that institute's seat is set on sofa, may be used also
To configure camera on speaker, camera can be configured on a monomer speaker, can also matched on multiple monomer speakers
Camera is set, three-dimensional position analysis can be carried out to user after obtaining image in this way.In addition to this it is possible to using in speaker
On level altitude such as 80 centimetres of eminences configure range sensors, the distance between 0.5 meter to 6 meters for identification, and also
It can be connect according to intelligent sofa, obtain the data of the pressure sensor configured on sofa.May be used one of the above or
Various ways can also use other can be in a manner of simply and effectively determining user position, and the application is no longer superfluous herein
It states.Wherein user can be a user, can also be multiple users.
Based on the above technical solution, optionally, each monomer speaker of intelligent sound box is being moved to user direction
Before dynamic pre-determined distance, the method further includes:Judge between the current location of each monomer speaker and adjustment target location
On mobile route, if there are barriers, are adjusted to the position of monomer speaker if so, cancelling.The benefit being arranged in this way is can
Cause monomer speaker in rotation process because caused by thering is barrier to influence its rotation to avoid the presence because of barrier
Damage improves the service life of speaker, and is formed and protected to the various components of speaker.
Embodiment two
Fig. 2 is the flow chart of the volume adjusting method of intelligent sound box provided by Embodiment 2 of the present invention.The present embodiment is upper
On the basis of stating embodiment, it is optimized for:It is described that broadcast sound volume is adjusted according to default volume adjustment rule, including:It obtains
The current displacement distance of each monomer speaker;From volume adjustment mapping table, sound corresponding with the current displacement distance is determined
Adjustment parameter is measured, the broadcast sound volume of monomer speaker is adjusted according to the volume adjustment parameter.
As shown in Fig. 2, the volume adjusting method of the intelligent sound box includes:
S210, audio data to be played is obtained.
S220, from the audio data to be played, it is determined whether the sound there are volume higher than default protection threshold value
Segment;If it is not, then executing S230;If so, executing S260.
S230, each monomer speaker of intelligent sound box is moved into pre-determined distance from initial position to user direction.
S240, the current displacement distance for obtaining each monomer speaker.
Wherein, current displacement distance can be obtained by positioning device, can also be obtained by other internet channels,
Furthermore it is also possible to be multiplied by movement speed according to the traveling time for calculating each monomer speaker to obtain.
S250, from volume adjustment mapping table, determine volume adjustment parameter corresponding with the current displacement distance, according to
The broadcast sound volume of monomer speaker is adjusted in the volume adjustment parameter.
Wherein, volume adjustment mapping table can be set previously according to many experiments, be mapped according to volume adjustment
Table is adjusted, it can be ensured that the stability for the sound that user hears does not appear in certain sound in the process and becomes larger or become
Situations such as small, occurs.Wherein, volume adjustment parameter can be the volume numerical value for plus-minus, can also be for being multiplied by current sound
The coefficient of amount.The distance that each monomer speaker is moved according to oneself respectively carries out the adjusting of volume.
S260, continue playing audio-fequency data.
The technical program provides a kind of specific volume adjusting method, the party on the basis of above-mentioned each technical solution
Method introduces volume adjustment mapping table so that calculating process is simply accurate, can provide coherent broadcast sound volume to the user, simultaneously
It can work again to avoid each monomer speaker high load capacity of intelligent sound box, improve the service life of intelligent sound box.
Based on the above technical solution, optionally, by each monomer speaker of intelligent sound box from initial position to
Pre-determined distance is moved in user direction, and after broadcast sound volume is adjusted according to default volume adjustment rule, and the method is also
Including:When determining the audio data to be played in preset period of time, there is no volumes higher than the default sound clip for protecting threshold value
When, it controls each monomer speaker and is moved to initial position, and by broadcast sound volume according to the inverse rule of default volume adjustment rule
Then it is adjusted.Wherein, preset period of time can be 2 minutes, 5 minutes even longer time, the benefit being arranged in this way is can be with
Without each monomer speaker by intelligent movable speaker come when reducing broadcast sound volume, each monomer speaker is resetted, is avoided
The walking space of user is had an impact, user's comforts of use are improved.
Based on the above technical solution, optionally, intelligent sound box is closed when each monomer speaker does not reset to set
It is standby, then each monomer speaker can be resetted.When user is needed again using intelligent sound box again again to band playing audio signal
It is identified, to improve the comfort level during user's use.
Embodiment three
Fig. 3 is the structural schematic diagram of the volume adjustment device for the intelligent sound box that the embodiment of the present invention three provides.Such as Fig. 3 institutes
Show, the volume adjustment device of the intelligent sound box, including:
Audio data acquisition module 310 to be played, for obtaining audio data to be played;
Volume judgment module 320, for from the audio data to be played, it is determined whether there are volumes to protect higher than default
Protect the sound clip of threshold value;
Volume adjusting module 330, if being judged as YES for the volume judgment module 320, by each of intelligent sound box
Monomer speaker moves pre-determined distance from initial position to user direction, and broadcast sound volume is carried out according to default volume adjustment rule
It adjusts.
The technical solution that the embodiment of the present invention is provided, by obtaining audio data to be played;From the audio to be played
In data, it is determined whether the sound clip there are volume higher than default protection threshold value;If so, by each list of intelligent sound box
Body speaker moves pre-determined distance from initial position to user direction, and broadcast sound volume is adjusted according to default volume adjustment rule
Section can neither influence the auditory effect of sound in the case where playing higher volume, while can alleviate speaker high load capacity again
The problem of equipment fatigue caused by work.
On the basis of above-mentioned each technical solution, optionally, described device further includes user position determining module, tool
Body is used for:
Every preset time period is passed by television camera, speaker camera, speaker range sensor and sofa pressure
One or more of sensor determines user position;The user includes a user or multiple users.
On the basis of above-mentioned each technical solution, optionally, described device further includes:
Barrier judgment module, the movement between the current location for judging each monomer speaker and adjustment target location
On path, if there are barriers, are adjusted to the position of monomer speaker if so, cancelling.
On the basis of above-mentioned each technical solution, optionally, the volume adjusting module 330, including:
Current displacement distance acquiring unit, the current displacement distance for obtaining each monomer speaker;
Sound volume regulation unit determines volume corresponding with the current displacement distance for from volume adjustment mapping table
Adjustment parameter is adjusted the broadcast sound volume of monomer speaker according to the volume adjustment parameter.
On the basis of above-mentioned each technical solution, optionally, described device further includes:
Speaker resets adjustment module, for when determining the audio data to be played in preset period of time, there is no volumes higher than pre-
If protect the sound clip of threshold value, control each monomer speaker and be moved to initial position, and by broadcast sound volume according to
The inverse rule of default volume adjustment rule is adjusted.
The said goods can perform the method that any embodiment of the present invention is provided, and have the corresponding function module of execution method
And advantageous effect.
Example IV
The embodiment of the present invention also provides a kind of storage medium including computer executable instructions, and the computer is executable
When being executed by computer processor for executing a kind of volume adjusting method of intelligent sound box, this method includes for instruction:
Obtain audio data to be played;
From the audio data to be played, it is determined whether the sound clip there are volume higher than default protection threshold value;
If so, each monomer speaker of intelligent sound box is moved into pre-determined distance from initial position to user direction, and will
Broadcast sound volume is adjusted according to default volume adjustment rule.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap
It includes:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as
DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium
(such as hard disk or optical storage);The memory component etc. of register or other similar types.Storage medium can further include other
Memory of type or combinations thereof.In addition, storage medium can be located at program in the computer system being wherein performed, or
It can be located in different second computer systems, second computer system is connected to computer by network (such as internet)
System.Second computer system can provide program instruction to computer for executing.Term " storage medium " may include can
To reside in different location two or more storage mediums of (such as in different computer systems by network connection).
Storage medium can store the program instruction (such as being implemented as computer program) that can be executed by one or more processors.
Certainly, a kind of storage medium including computer executable instructions that the embodiment of the present invention is provided, computer
The volume adjustment for the intelligent sound box that executable instruction is not limited to the described above operates, and the application any embodiment institute can also be performed
Relevant operation in the volume adjusting method of the intelligent sound box of offer.
Embodiment five
An embodiment of the present invention provides a kind of intelligent sound box, intelligence provided in an embodiment of the present invention can be integrated in the intelligent sound box
The volume adjustment device of energy speaker.Fig. 4 is a kind of structural schematic diagram of intelligent sound box provided in an embodiment of the present invention.Such as Fig. 4 institutes
Show, which may include:At least one processor;And the storage being connect at least one processor communication
Device;Wherein, the memory is stored with the instruction that can be executed by least one processor, and described instruction is by described at least one
A processor executes, so that at least one processor is able to carry out the intelligent sound box as described in any embodiment of the present invention
Volume adjusting method.
Intelligent sound box provided in an embodiment of the present invention, can user in any position, speaker institute band can be enjoyed
Come best enjoyment of musical result, while experience high technology sense by.
Volume adjustment device, storage medium and the intelligent sound box of the intelligent sound box provided in above-described embodiment can perform this Shen
Please the volume adjusting method of intelligent sound box that is provided of any embodiment, have and execute the corresponding function module of this method and beneficial
Effect.The not technical detail of detailed description in the above-described embodiments, reference can be made to the intelligent sound that the application any embodiment is provided
The volume adjusting method of case.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.