CN109324779A - A kind of volume adjusting method, electronic equipment and computer readable storage medium - Google Patents
A kind of volume adjusting method, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN109324779A CN109324779A CN201811033731.0A CN201811033731A CN109324779A CN 109324779 A CN109324779 A CN 109324779A CN 201811033731 A CN201811033731 A CN 201811033731A CN 109324779 A CN109324779 A CN 109324779A
- Authority
- CN
- China
- Prior art keywords
- volume
- electronic equipment
- extruding force
- target object
- audio
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
The embodiment of the invention discloses a kind of volume adjusting methods, the method is applied in electronic equipment, the described method includes: obtaining the extruding force between the electronic equipment and the target object when detecting that the electronic equipment is in state of the output audio-frequency information to target object;Wherein, the electronic equipment is worn on the target object and is in close contact with the target object;According to the size relation between the extruding force and default extruding force, the volume for the audio-frequency information that the electronic equipment is exported to the target object is adjusted.The embodiment of the present invention also discloses a kind of electronic equipment and computer readable storage medium simultaneously.
Description
Technical field
The present invention relates to the volume adjustment technologies more particularly to a kind of volume adjusting method, electronic equipment in the communications field
And computer readable storage medium.
Background technique
With the popularization of electronic product, universal and development, electronic product function is more and more, performance is increasingly stronger, experience
It is more and more abundant, many conveniences are brought to people's lives.For example, people carry out multimedia messages broadcasting using electronic product
Frequency is higher and higher.Wherein, user in most cases can use ear when playing the multimedia messages with audio-frequency information
Machine come receive electronic equipment sending audio-frequency information.
But as user wears the variation of the wearing duration of earphone, the tightness for the earphone worn can become
Change;Once earphone it is elastic change after, the volume of the audio-frequency information of initial setting up will be unsuitable for user, can shadow
Ring the audio of user's uppick.
Summary of the invention
In order to solve the above technical problems, an embodiment of the present invention is intended to provide a kind of volume adjusting method, electronic equipment and meters
Calculation machine readable storage medium storing program for executing, solve the volume of earphone in the prior art once it is determined that after remain unchanged user is caused to listen to always
Ineffective problem realizes the volume of the audio-frequency information for the tightness adjust automatically output worn with user, improves
The quality of the audio-frequency information of output, and improve the audio of the audio-frequency information of user's uppick.
The technical scheme of the present invention is realized as follows:
A kind of volume adjusting method, the method are applied in electronic equipment, which comprises
When detecting that the electronic equipment is in state of the output audio-frequency information to target object, obtains the electronics and set
The standby extruding force between the target object;Wherein, the electronic equipment be worn on the target object and with the mesh
Object is marked to be in close contact;
According to the size relation between the extruding force and default extruding force, adjusts the electronic equipment and export to the mesh
Mark the volume of the audio-frequency information of object.
Optionally, described when detecting that the electronic equipment is in state of the output audio-frequency information to target object, it obtains
The extruding force for the part for taking the electronic equipment to contact with the target object, comprising:
When detecting that the electronic equipment is in state of the output audio-frequency information to the target object, the electricity is acquired
Sub- equipment with extruding force suffered by the target object contact portion.
Optionally, described to work as the state for detecting that the electronic equipment is in output audio-frequency information to the target object
When, acquire the electronic equipment with extruding force suffered by the target object contact portion, comprising:
When detecting that the electronic equipment is in state of the output audio-frequency information to the target object, pass through the electricity
The pressure sensor of sub- equipment, acquire the electronic equipment with extruding force suffered by the target object contact portion.
Optionally, the size relation according between the extruding force and default extruding force, adjusts the electronic equipment
It exports to the volume of the audio-frequency information of the target object, comprising:
If the extruding force is greater than the default extruding force, the electronic equipment is exported to the audio of the target object
The volume of information is from the first volume adjustment to the second volume;Wherein, first volume is that the extruding force of the electronic equipment is
The volume of the audio-frequency information exported when the default extruding force, second volume are less than first volume;It is described default crowded
Pressure is the extruding force when electronic equipment is initially opened between the target object;
If the extruding force is less than the default extruding force, the electronic equipment is exported to the audio of the target object
The volume of information is from the first volume adjustment to third volume;Wherein, the third volume is greater than first volume.
Optionally, if the extruding force is greater than the default extruding force, the electronic equipment is exported to the mesh
The volume of the audio-frequency information of object is marked from the first volume adjustment to the second volume, comprising:
If the extruding force is greater than the default extruding force, the between the extruding force and the default extruding force is calculated
One difference;
Corresponding relationship and first difference based on the first preset pressure value and volume, determine the first volume difference;
Second volume is determined based on the first volume difference and first volume, and the electronic equipment is defeated
Out to the volume of the audio-frequency information of the target object from the first volume adjustment to second volume;
If the electronic equipment is exported to the mesh correspondingly, the extruding force is less than the default extruding force
The volume of the audio-frequency information of object is marked from the first volume adjustment to third volume, comprising:
The third volume is determined based on the first volume difference and first volume, and the electronic equipment is defeated
Out to the volume of the audio-frequency information of the target object from the first volume adjustment to the third volume.
Optionally, the size relation according between the extruding force and default extruding force, adjusts the electronic equipment
It exports to the volume of the audio-frequency information of the target object, comprising:
If the extruding force is more than or less than the default extruding force, adjusts the electronic equipment and export to the target pair
The volume of the audio-frequency information of elephant is the 4th volume;
Acquire the reception sound for the audio-frequency information that the position of the wearing electronic equipment of the target object receives
Measure size;
Based on the volume of reception size, detect whether the 4th volume meets default volume;Wherein, the default sound
Amount is volume corresponding with the extruding force;
If the 4th volume does not meet the default volume, adjusts the electronic equipment and export to the target object
The volume of audio-frequency information, until the volume that the electronic equipment is exported to the audio-frequency information of the target object meets described preset
Volume.
Optionally, the size relation according between the extruding force and default extruding force, adjusts the electronic equipment
It exports to the volume of the audio-frequency information of the target object, comprising:
If the extruding force is greater than the default extruding force, the corresponding relationship based on the second preset pressure value and volume will
It is the second volume that the electronic equipment, which is exported to the volume adjustment of the audio-frequency information of the target object,;
If the extruding force is less than the default extruding force, the corresponding relationship based on the second preset pressure value and volume will
It is third volume that the electronic equipment, which is exported to the volume adjustment of the audio-frequency information of the target object,.
A kind of electronic equipment, the electronic equipment include: processor, memory and communication bus;
The communication bus is for realizing the communication connection between processor and memory;
The processor is for executing the volume adjustment program stored in memory, to perform the steps of
When detecting that the electronic equipment is in state of the output audio-frequency information to target object, obtains the electronics and set
The standby extruding force between the target object;Wherein, the electronic equipment be worn on the target object and with the mesh
Object is marked to be in close contact;
According to the size relation between the extruding force and default extruding force, adjusts the electronic equipment and export to the mesh
Mark the volume of the audio-frequency information of object.
Optionally, the processor can also realize following step for executing the volume adjustment program stored in memory
Suddenly
When detecting that the electronic equipment is in state of the output audio-frequency information to the target object, the electricity is acquired
Sub- equipment with extruding force suffered by the target object contact portion.
A kind of computer readable storage medium, the computer-readable recording medium storage have one or more program,
One or more of programs can be executed by one or more processor, to realize the step of volume adjustment described above
Suddenly.
Volume adjusting method, electronic equipment provided by the embodiment of the present invention and computer readable storage medium, work as inspection
When measuring state of the electronic equipment in output audio-frequency information to target object, squeezing between electronic equipment and target object is obtained
Pressure, electronic equipment is worn on target object and is in close contact with target object, according between extruding force and default extruding force
Size relation, adjust electronic equipment export to the volume of the audio-frequency information of target object, in this way, can be worn according to user
Electronic equipment tightness, automatic adjustment electronic equipment export to the volume of the audio-frequency information of user, solve existing skill
In art earphone volume once it is determined that after remain unchanged the problem for causing user's audibility bad always, realize with user
The volume of the audio-frequency information of the tightness adjust automatically output of wearing, improves the quality of the audio-frequency information of output, and improve
The audio of the audio-frequency information of user's uppick.
Detailed description of the invention
Fig. 1 is a kind of flow diagram for volume adjusting method that the embodiment of the present invention provides;
Fig. 2 is the flow diagram for another volume adjusting method that the embodiment of the present invention provides;
Fig. 3 is the flow diagram for another volume adjusting method that the embodiment of the present invention provides;
Fig. 4 is a kind of flow diagram for volume adjusting method that another embodiment of the present invention provides;
Fig. 5 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description.
The embodiment of the present invention provides a kind of volume adjusting method, shown referring to Fig.1, method includes the following steps:
Step 101, when detect electronic equipment be in output audio-frequency information to target object state when, obtain electronics set
The standby extruding force between target object.
Wherein, electronic equipment is worn on target object and is in close contact with target object.
In other embodiments of the invention, step 101, which is worked as, detects that electronic equipment is in output audio-frequency information to target
The extruding force obtained between electronic equipment and target object when the state of object can be realized by electronic equipment;The electronic equipment
It can be the terminal for having the function of exporting audio-frequency information, for example, the electronic equipment may include earphone;Earphone may include indigo plant
Tooth earphone, wired earphone etc..Target object also refers to dress the object of the electronic equipment, such as target object can be and make
With the user etc. of electronic equipment.
Extruding force between electronic equipment and target object also refers to be worn on target object when electronic equipment
When, generated extruding between target object and electronic equipment institute contact portion after being contacted between target object and electronic equipment
Power;In a kind of feasible implementation, after which also refers to user's wearing earphone, the earphone and ear worn
Between generated extruding force;Certainly, the extruding force can serve to indicate that contacted between target object and electronic equipment it is elastic
Degree.
Step 102, according to the size relation between extruding force and default extruding force, adjust electronic equipment and export to target pair
The volume of the audio-frequency information of elephant.
Wherein, step 102 adjusts electronic equipment according to the size relation between extruding force and default extruding force and exports to mesh
The volume for marking the audio-frequency information of object can be realized by electronic equipment;Default extruding force can be pre-set proper
Pressure value, which can be a pressure value section, is also possible to a given pressure value;A kind of feasible
Implementation in, preset pressure value can be electronic equipment when contacting according to user and electronic equipment and export to the audio of user
When the volume user of information feels to be most suitable for, generated extruding force between user and electronic equipment.Certainly, the default extruding force
It can be according to user's history and to carry out audio-frequency information using electronic equipment and export historical data generated to be arranged.
Volume adjusting method provided by the embodiment of the present invention exports audio-frequency information extremely when detecting that electronic equipment is in
When the state of target object, the extruding force between electronic equipment and target object is obtained, electronic equipment is worn on target object
And be in close contact with target object, according to the size relation between extruding force and default extruding force, adjust electronic equipment export to
The volume of the audio-frequency information of target object, in this way, can be automatically adjusted according to the tightness for the electronic equipment that user is worn
Electronic equipment export the volume for solving earphone in the prior art to the volume of the audio-frequency information of user once it is determined that after protect always
The constant problem for causing user's audibility bad is held, the sound for the tightness adjust automatically output worn with user is realized
The volume of frequency information, improves the quality of the audio-frequency information of output, and improves the audio of the audio-frequency information of user's uppick.
Based on previous embodiment, the embodiment of the present invention provides a kind of volume adjusting method, referring to shown in Fig. 2, this method
The following steps are included:
Step 201, when detect electronic equipment be in output audio-frequency information to target object state when, electronic equipment is adopted
Set electron equipment with extruding force suffered by target object contact portion.
Wherein, the state that electronic equipment is in output audio-frequency information to target object also refers to, and electronic equipment is in
Working condition and the state that audio is exported by the electronic equipment;When electronic equipment is in output audio-frequency information to target object
When state, illustrate that electronic equipment can export audio-frequency information to user at this time.In a kind of feasible implementation, if electronics is set
Standby be earphone, target object is user, then extruding force can make when being that earphone is applied on ear by user, earphone and user
Ear between generated extruding force;The extruding force can reflect the elastic situation that user currently wears earphone.
It should be noted that audio-frequency information also refers to the information that can be made a sound.
If step 202, extruding force are greater than default extruding force, electronic equipment exports electronic equipment to the audio of target object
The volume of information is from the first volume adjustment to the second volume.
Wherein, the first volume is the volume that the extruding force of electronic equipment is the audio-frequency information exported when presetting extruding force, the
Two volumes are less than the first volume;Default extruding force is extruding force when electronic equipment is initially opened between target object.
If extruding force between electronic equipment and target object is greater than default extruding force, illustrate the earphone currently worn and
User contacts too closely, just needs the volume by output to user to turn down at this time, the audio letter received to avoid user
The volume of breath is excessive, avoids causing unnecessary injury to the ear of user.
If electronic equipment is exported to target object it should be noted that step 202 extruding force is greater than default extruding force
The volume of audio-frequency information can be accomplished by the following way from the first volume adjustment to the second volume:
If step 202a, extruding force is greater than default extruding force, electronic equipment is calculated between extruding force and default extruding force
First difference.
Wherein, default extruding force also refers to earphone and just starts to work when exporting audio-frequency information, the ear of earphone and user
Extruding force between piece.
Step 202b, corresponding relationship and first difference of the electronic equipment based on the first preset pressure value and volume determines
One volume difference.
Wherein, the first preset pressure value and the corresponding relationship of volume, which can be to preset, is finished and stored in electronic equipment
In;It, can be according to the extruding of the current earphone and user that are calculated after getting the extruding force value of current earphone and user
The difference of force value and default extruding force, it is corresponding with the difference from being obtained in the mapping table of pre-stored pressure value and difference
The first volume difference;It should be noted that the first preset pressure value and the corresponding relationship of volume can be with the first default pressure
The form of the mapping table of force value and volume indicates, is also possible to indicate in the form of function.
Step 202c, electronic equipment determines the second volume based on the first volume difference and the first volume, and by electronic equipment
The volume to the audio-frequency information of target object is exported from the first volume adjustment to the second volume.
Wherein it is possible to subtract the first volume difference with the first volume to obtain the second volume.Electronic equipment is exported to mesh
The volume for marking the audio-frequency information of object can be from the first volume adjustment to the second volume by the volume of earphone output audio-frequency information
From the first volume down to the second volume.
If step 203, extruding force are less than default extruding force, electronic equipment exports electronic equipment to the audio of target object
The volume of information is from the first volume adjustment to third volume.
Wherein, third volume is greater than the first volume.
If electronic equipment is exported to target object it should be noted that step 203 extruding force is less than default extruding force
The volume of audio-frequency information can be accomplished by the following way from the first volume adjustment to third volume:
If extruding force is less than default extruding force, electronic equipment determines third sound based on the first volume difference and the first volume
Amount, and electronic equipment is exported to the volume of the audio-frequency information of target object from the first volume adjustment to third volume.
In other embodiments of the invention, extruding force is less than default extruding force, illustrates between earphone and the ear of user
Extruding force it is smaller namely user is loose compared with contacting between the earphone worn, the audio that can be exported earphone at this time
The volume of information increases to third volume from the first volume.Wherein it is possible to be obtained with the first volume plus the first volume difference
Second volume.
It should be noted that in the present embodiment with the explanation of same steps in other embodiments and identical content, Ke Yican
According to the description in other embodiments, details are not described herein again.
Volume adjusting method provided by the embodiment of the present invention, can be according to the elastic of the electronic equipment that user is worn
Degree, automatic adjustment electronic equipment export the volume one for solving earphone in the prior art to the volume of the audio-frequency information of user
Denier determine after remain unchanged the problem for causing user's audibility bad always, realize with user wear tightness from
The volume of the audio-frequency information of dynamic adjustment output, improves the quality of the audio-frequency information of output, and improve the sound of user's uppick
The audio of frequency information.
Based on previous embodiment, the embodiment of the present invention provides a kind of volume adjusting method, referring to shown in Fig. 3, this method
The following steps are included:
Step 301, when detecting that electronic equipment is in state of the output audio-frequency information to target object, electronic equipment is logical
The pressure sensor for crossing electronic equipment, acquire electronic equipment with extruding force suffered by target object contact portion.
In other embodiments of the invention, pressure sensor can be set in the position that electronic equipment is contacted with target object
Set place.
If step 302, extruding force are more than or less than default extruding force, electronic equipment adjusts electronic equipment and exports to target pair
The volume of the audio-frequency information of elephant is the 4th volume.
Wherein, extruding force is greater than the ear contacts of earphone and user that default extruding force illustrates that user currently wears excessively
Closely, the volume by output to user is just needed to turn down at this time, then the volume for the audio-frequency information that earphone can be exported reduces
For the 4th volume;Extruding force is less than the ear contacts of earphone and user that default extruding force illustrates that user currently wears excessively
Pine, in order to guarantee that the effect for the audio-frequency information heard just needs to tune up output to the volume of user at this time, then can be by ear
The volume of the audio-frequency information of machine output is increased to the 4th volume.
The audio-frequency information that the position for the wearable electronic device that step 303, electronic equipment acquire target object receives connects
Receive volume.
In other embodiments of the invention, if earphone is worn on ear by user, volume can refer to
Be user the audio-frequency information that receives of ear after, the size of the volume for the audio-frequency information that cochlea is sent back.
Step 304, electronic equipment are based on volume of reception size, and whether the 4th volume of detection meets default volume.
Wherein, presetting volume is volume corresponding with extruding force.
In other embodiments of the invention, default volume, which can be, is preset according to the history of user using data
's;Also, the default volume, which can be, meets the volume value that user most preferably listens to demand.It should be noted that default volume can
To be the definite value set, it is also possible to an interval range value.
If step 305, the 4th volume do not meet default volume, electronic equipment adjusts electronic equipment and exports to target object
The volume of audio-frequency information, until the volume that electronic equipment is exported to the audio-frequency information of target object meets default volume.
Wherein, it if the size of the volume for the audio-frequency information that current cochlea returns is unsatisfactory for the size of default volume value, says
The tightness for the earphone that bright active user wears unsuitable earphone currently export audio-frequency information volume size, at this time
The volume that audio-frequency information suitably can be exported to earphone is adjusted, and then proceedes to the audio-frequency information for judging cochlea return
Relationship between volume and default volume;If still not meeting default volume, continue to export earphone in audio letter
The volume of breath is adjusted, until the volume for the audio-frequency information that cochlea returns meets the size of default volume.It needs
It is noted that can be when the volume to earphone output audio-frequency information is adjusted and increase earphone output audio letter
The volume of breath is also possible to reduce the volume of earphone output audio-frequency information;In practical applications, if cochlea returns
The volume of audio-frequency information be greater than default volume, then suitably reducing the volume of earphone output audio-frequency information;If cochlea
The volume of the audio-frequency information of return is less than default volume, then suitably increasing the volume of earphone output audio-frequency information;Specifically
Increase how much how many or reduction can determine according to history using data.
It should be noted that in the present embodiment with the explanation of same steps in other embodiments and identical content, Ke Yican
According to the description in other embodiments, details are not described herein again.
Volume adjusting method provided by the embodiment of the present invention, can be according to the elastic of the electronic equipment that user is worn
Degree, automatic adjustment electronic equipment export the volume one for solving earphone in the prior art to the volume of the audio-frequency information of user
Denier determine after remain unchanged the problem for causing user's audibility bad always, realize with user wear tightness from
The volume of the audio-frequency information of dynamic adjustment output, improves the quality of the audio-frequency information of output, and improve the sound of user's uppick
The audio of frequency information.
Based on previous embodiment, the embodiment of the present invention provides a kind of volume adjusting method, referring to shown in Fig. 4, this method
The following steps are included:
Step 401, when detecting that electronic equipment is in state of the output audio-frequency information to target object, electronic equipment is logical
The pressure sensor for crossing electronic equipment, acquire electronic equipment with extruding force suffered by target object contact portion.
If step 402, extruding force are greater than default extruding force, electronic equipment is corresponding with volume based on the second preset pressure value
Relationship, the volume adjustment that electronic equipment is exported to the audio-frequency information of target object are the second volume.
Wherein, presetting extruding force is extruding force when electronic equipment is initially opened between target object.
If step 403, extruding force are less than default extruding force, electronic equipment is corresponding with volume based on the second preset pressure value
Relationship, the volume adjustment that electronic equipment is exported to the audio-frequency information of target object are third volume.
Wherein, the second volume is different from third volume.
In other embodiments of the invention, if the extruding force between earphone and the ear of user is greater than default extruding force
When, it does not need to obtain the difference between earphone and the extruding force of user's ear time and default extruding force, it can be according to default pressure
The corresponding relationship of force value and volume, directly by the volume down of the audio-frequency information of earphone output to a suitable volume value;Such as
It, can be corresponding with volume according to preset pressure value when extruding force between fruit earphone and the ear of user is less than default extruding force
The volume of the audio-frequency information of earphone output is directly increased to a suitable volume value by relationship.It should be noted that second is pre-
If the corresponding relationship of pressure value and volume can be to be indicated in the form of the second preset pressure value and the mapping table of volume,
Can be is indicated in the form of function.
It should be noted that in the present embodiment with the explanation of same steps in other embodiments and identical content, Ke Yican
According to the description in other embodiments, details are not described herein again.
Volume adjusting method provided by the embodiment of the present invention, can be according to the elastic of the electronic equipment that user is worn
Degree, automatic adjustment electronic equipment export the volume one for solving earphone in the prior art to the volume of the audio-frequency information of user
Denier determine after remain unchanged the problem for causing user's audibility bad always, realize with user wear tightness from
The volume of the audio-frequency information of dynamic adjustment output, improves the quality of the audio-frequency information of output, and improve the sound of user's uppick
The audio of frequency information.
Based on previous embodiment, the embodiment of the present invention provides a kind of electronic equipment, which can be applied to Fig. 1
In the volume adjusting method that~4 corresponding embodiments provide, referring to Figure 5, which includes: processor 51, storage
Device 52 and communication bus 53;
Communication bus 53 is for realizing the communication connection between processor 51 and memory 52;
Processor 51 is for executing the volume adjustment program stored in memory 52, to perform the steps of
When detecting that electronic equipment is in state of the output audio-frequency information to target object, electronic equipment and target are obtained
Extruding force between object;
Wherein, electronic equipment is worn on target object and is in close contact with target object;
According to the size relation between extruding force and default extruding force, adjusts electronic equipment and export to the audio of target object
The volume of information.
In other embodiments of the invention, processor 51 detects that electronic equipment is in output audio letter for executing to work as
When ceasing to the state of target object, the extruding force of part that electronic equipment is contacted with target object is obtained, to perform the steps of
When detecting that electronic equipment is in state of the output audio-frequency information to target object, acquire electronic equipment and mesh
Mark extruding force suffered by object contact part.
In other embodiments of the invention, processor 51 detects that electronic equipment is in output audio letter for executing to work as
When ceasing to the state of target object, acquire electronic equipment with extruding force suffered by target object contact portion, with realize with
Lower step:
When detecting that electronic equipment is in state of the output audio-frequency information to target object, pass through the pressure of electronic equipment
Sensor, acquire electronic equipment with extruding force suffered by target object contact portion.
In other embodiments of the invention, processor 51 is for executing according to big between extruding force and default extruding force
Small relationship adjusts electronic equipment and exports to the volume of the audio-frequency information of target object, to perform the steps of
If extruding force is greater than default extruding force, electronic equipment is exported to the volume of the audio-frequency information of target object from first
Volume adjustment is to the second volume;
Wherein, the first volume is the volume that the extruding force of electronic equipment is the audio-frequency information exported when presetting extruding force, the
Two volumes are less than the first volume;Default extruding force is extruding force when electronic equipment is initially opened between target object;
If extruding force is less than default extruding force, electronic equipment is exported to the volume of the audio-frequency information of target object from first
Volume adjustment is to third volume;
Wherein, third volume is greater than the first volume.
In other embodiments of the invention, if processor 51 is greater than default extruding force for executing extruding force, by electronics
Equipment is exported to the volume of the audio-frequency information of target object from the first volume adjustment to the second volume, to perform the steps of
If extruding force is greater than default extruding force, the first difference between extruding force and default extruding force is calculated;
Corresponding relationship and the first difference based on the first preset pressure value and volume, determine the first volume difference;
The second volume is determined based on the first volume difference and the first volume, and electronic equipment is exported to the sound of target object
The volume of frequency information is from the first volume adjustment to the second volume;
Correspondingly, electronic equipment is exported to the sound of the audio-frequency information of target object if extruding force is less than default extruding force
Amount is from the first volume adjustment to third volume, comprising:
If extruding force is less than default extruding force, third volume is determined based on the first volume difference and the first volume, and will be electric
Sub- equipment is exported to the volume of the audio-frequency information of target object from the first volume adjustment to third volume.
In other embodiments of the invention, processor 51 is for executing according to big between extruding force and default extruding force
Small relationship adjusts electronic equipment and exports to the volume of the audio-frequency information of target object, to perform the steps of
If extruding force is more than or less than default extruding force, adjusts electronic equipment and export to the sound of the audio-frequency information of target object
Amount is the 4th volume;
The volume of reception size for the audio-frequency information that the position of the wearable electronic device of acquisition target object receives;
Based on volume of reception size, detect whether the 4th volume meets default volume;
Wherein, presetting volume is volume corresponding with extruding force;
If the 4th volume does not meet default volume, adjusts electronic equipment and exports to the volume of the audio-frequency information of target object,
Until the volume that electronic equipment is exported to the audio-frequency information of target object meets default volume.
In other embodiments of the invention, processor 51 is for executing according to big between extruding force and default extruding force
Small relationship adjusts electronic equipment and exports to the volume of the audio-frequency information of target object, to perform the steps of
If extruding force is greater than default extruding force, the corresponding relationship based on the second preset pressure value and volume, by electronic equipment
Exporting to the volume adjustment of the audio-frequency information of target object is the second volume;
If extruding force is less than default extruding force, the corresponding relationship based on the second preset pressure value and volume, by electronic equipment
Exporting to the volume adjustment of the audio-frequency information of target object is third volume.
It should be noted that in the present embodiment step performed by processor specific implementation process, be referred to Fig. 1~
The realization process in volume adjusting method that 4 corresponding embodiments provide, details are not described herein again.
Electronic equipment provided by the embodiment of the present invention, can be according to the elastic journey for the electronic equipment that user is worn
Degree, automatic adjustment electronic equipment, which is exported, solves the volume of earphone in the prior art to the volume of the audio-frequency information of user once
The problem for causing user's audibility bad is remained unchanged after determination always, it is automatic to realize the tightness worn with user
The volume for adjusting the audio-frequency information of output, improves the quality of the audio-frequency information of output, and improve the audio of user's uppick
The audio of information.
Based on previous embodiment, the embodiment of the present invention provides a kind of computer readable storage medium, this is computer-readable
Storage medium is stored with one or more program, which can be executed by one or more processor,
To realize following steps:
When detecting that electronic equipment is in state of the output audio-frequency information to target object, electronic equipment and target are obtained
Extruding force between object;
Wherein, electronic equipment is worn on target object and is in close contact with target object;
According to the size relation between extruding force and default extruding force, adjusts electronic equipment and export to the audio of target object
The volume of information.
In other embodiments of the invention, which can be executed by one or more processor and work as
When detecting that electronic equipment is in state of the output audio-frequency information to target object, obtain what electronic equipment was contacted with target object
Partial extruding force, to realize following steps:
When detecting that electronic equipment is in state of the output audio-frequency information to target object, acquire electronic equipment and mesh
Mark extruding force suffered by object contact part.
In other embodiments of the invention, which can be executed by one or more processor and work as
When detecting that electronic equipment is in state of the output audio-frequency information to target object, contacting with target object for electronic equipment is acquired
Extruding force suffered by part, to realize following steps:
When detecting that electronic equipment is in state of the output audio-frequency information to target object, pass through the pressure of electronic equipment
Sensor, acquire electronic equipment with extruding force suffered by target object contact portion.
In other embodiments of the invention, which can execute root by one or more processor
According to the size relation between extruding force and default extruding force, adjusts electronic equipment and export to the sound of the audio-frequency information of target object
Amount, to realize following steps:
If extruding force is greater than default extruding force, electronic equipment is exported to the volume of the audio-frequency information of target object from first
Volume adjustment is to the second volume;
Wherein, the first volume is the volume that the extruding force of electronic equipment is the audio-frequency information exported when presetting extruding force, the
Two volumes are less than the first volume;Default extruding force is extruding force when electronic equipment is initially opened between target object;
If extruding force is less than default extruding force, electronic equipment is exported to the volume of the audio-frequency information of target object from first
Volume adjustment is to third volume;
Wherein, third volume is greater than the first volume.
In other embodiments of the invention, if one or more program can be executed by one or more processor
Extruding force is greater than default extruding force, by electronic equipment export to the volume of the audio-frequency information of target object from the first volume adjustment to
Second volume, to realize following steps:
If extruding force is greater than default extruding force, the first difference between extruding force and default extruding force is calculated;
Corresponding relationship and the first difference based on the first preset pressure value and volume, determine the first volume difference;
The second volume is determined based on the first volume difference and the first volume, and electronic equipment is exported to the sound of target object
The volume of frequency information is from the first volume adjustment to the second volume;
Correspondingly, electronic equipment is exported to the sound of the audio-frequency information of target object if extruding force is less than default extruding force
Amount is from the first volume adjustment to third volume, comprising:
If extruding force is less than default extruding force, third volume is determined based on the first volume difference and the first volume, and will be electric
Sub- equipment is exported to the volume of the audio-frequency information of target object from the first volume adjustment to third volume.
In other embodiments of the invention, which can execute root by one or more processor
According to the size relation between extruding force and default extruding force, adjusts electronic equipment and export to the sound of the audio-frequency information of target object
Amount, to realize following steps:
If extruding force is more than or less than default extruding force, adjusts electronic equipment and export to the sound of the audio-frequency information of target object
Amount is the 4th volume;
The volume of reception size for the audio-frequency information that the position of the wearable electronic device of acquisition target object receives;
Based on volume of reception size, detect whether the 4th volume meets default volume;
Wherein, presetting volume is volume corresponding with extruding force;
If the 4th volume does not meet default volume, adjusts electronic equipment and exports to the volume of the audio-frequency information of target object,
Until the volume that electronic equipment is exported to the audio-frequency information of target object meets default volume.
In other embodiments of the invention, which can execute root by one or more processor
According to the size relation between extruding force and default extruding force, adjusts electronic equipment and export to the sound of the audio-frequency information of target object
Amount, to realize following steps:
If extruding force is greater than default extruding force, the corresponding relationship based on the second preset pressure value and volume, by electronic equipment
Exporting to the volume adjustment of the audio-frequency information of target object is the second volume;
If extruding force is less than default extruding force, the corresponding relationship based on the second preset pressure value and volume, by electronic equipment
Exporting to the volume adjustment of the audio-frequency information of target object is third volume.
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, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention
Formula.Moreover, the present invention, which can be used, can use storage in the computer that one or more wherein includes computer usable program code
The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
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.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (10)
1. a kind of volume adjusting method, the method is applied in electronic equipment, which comprises
When detect the electronic equipment be in output audio-frequency information to target object state when, obtain the electronic equipment with
Extruding force between the target object;Wherein, the electronic equipment be worn on the target object and with the target pair
As being in close contact;
According to the size relation between the extruding force and default extruding force, adjusts the electronic equipment and export to the target pair
The volume of the audio-frequency information of elephant.
2. the method according to claim 1, wherein described ought detect that the electronic equipment is in output audio
Information to target object state when, obtain the extruding force for the part that the electronic equipment is contacted with the target object, comprising:
When detecting that the electronic equipment is in state of the output audio-frequency information to the target object, acquires the electronics and set
It is standby with extruding force suffered by the target object contact portion.
3. according to the method described in claim 2, it is characterized in that, described ought detect that the electronic equipment is in output audio
Information to the target object state when, acquire the electronic equipment with suffered by the target object contact portion squeeze
Pressure, comprising:
When detecting that the electronic equipment is in state of the output audio-frequency information to the target object, set by the electronics
Standby pressure sensor, acquire the electronic equipment with extruding force suffered by the target object contact portion.
4. the method according to claim 1, wherein described according between the extruding force and default extruding force
Size relation adjusts the volume for the audio-frequency information that the electronic equipment is exported to the target object, comprising:
If the extruding force is greater than the default extruding force, the electronic equipment is exported to the audio-frequency information of the target object
Volume from the first volume adjustment to the second volume;Wherein, it is described that first volume, which is the extruding force of the electronic equipment,
The volume of the audio-frequency information exported when default extruding force, second volume are less than first volume;The default extruding force
Extruding force when initially being opened for the electronic equipment between the target object;
If the extruding force is less than the default extruding force, the electronic equipment is exported to the audio-frequency information of the target object
Volume from the first volume adjustment to third volume;Wherein, the third volume is greater than first volume.
If 5. according to the method described in claim 4, it is characterized in that, the extruding force be greater than the default extruding force,
The electronic equipment is exported to the volume of the audio-frequency information of the target object from the first volume adjustment to the second volume, is wrapped
It includes:
If the extruding force is greater than the default extruding force, it is first poor between the extruding force and the default extruding force to calculate
Value;
Corresponding relationship and first difference based on the first preset pressure value and volume, determine the first volume difference;
Determine second volume based on the first volume difference and first volume, and by the electronic equipment export to
The volume of the audio-frequency information of the target object is from the first volume adjustment to second volume;
If the electronic equipment is exported to the target pair correspondingly, the extruding force is less than the default extruding force
The volume of the audio-frequency information of elephant is from the first volume adjustment to third volume, comprising:
If the extruding force is less than the default extruding force, based on described in the first volume difference and first volume determination
Third volume, and the electronic equipment is exported to the volume of the audio-frequency information of the target object from the first volume adjustment to institute
State third volume.
6. the method according to claim 1, wherein described according between the extruding force and default extruding force
Size relation adjusts the volume for the audio-frequency information that the electronic equipment is exported to the target object, comprising:
If the extruding force is more than or less than the default extruding force, adjusts the electronic equipment and export to the target object
The volume of audio-frequency information is the 4th volume;
The volume of reception for acquiring the audio-frequency information that the position of the wearing electronic equipment of the target object receives is big
It is small;
Based on the volume of reception size, detect whether the 4th volume meets default volume;Wherein, the default volume is
Volume corresponding with the extruding force;
If the 4th volume does not meet the default volume, adjusts the electronic equipment and export to the audio of the target object
The volume of information, until the volume that the electronic equipment is exported to the audio-frequency information of the target object meets the default sound
Amount.
7. the method according to claim 1, wherein described according between the extruding force and default extruding force
Size relation adjusts the volume for the audio-frequency information that the electronic equipment is exported to the target object, comprising:
If the extruding force is greater than the default extruding force, the corresponding relationship based on the second preset pressure value and volume will be described
It is the second volume that electronic equipment, which is exported to the volume adjustment of the audio-frequency information of the target object,;
If the extruding force is less than the default extruding force, the corresponding relationship based on the second preset pressure value and volume will be described
It is third volume that electronic equipment, which is exported to the volume adjustment of the audio-frequency information of the target object,.
8. a kind of electronic equipment, which is characterized in that the electronic equipment includes: processor, memory and communication bus;
The communication bus is for realizing the communication connection between processor and memory;
The processor is for executing the volume adjustment program stored in memory, to perform the steps of
When detect the electronic equipment be in output audio-frequency information to target object state when, obtain the electronic equipment with
Extruding force between the target object;Wherein, the electronic equipment be worn on the target object and with the target pair
As being in close contact;
According to the size relation between the extruding force and default extruding force, adjusts the electronic equipment and export to the target pair
The volume of the audio-frequency information of elephant.
9. electronic equipment according to claim 8, which is characterized in that the processor is used to execute to store in memory
Volume adjustment program can also realize following steps
When detecting that the electronic equipment is in state of the output audio-frequency information to the target object, acquires the electronics and set
It is standby with extruding force suffered by the target object contact portion.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or
Multiple programs, one or more of programs can be executed by one or more processor, to realize such as claim 1 to 7
Any one of described in volume adjustment the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811033731.0A CN109324779A (en) | 2018-09-05 | 2018-09-05 | A kind of volume adjusting method, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811033731.0A CN109324779A (en) | 2018-09-05 | 2018-09-05 | A kind of volume adjusting method, electronic equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109324779A true CN109324779A (en) | 2019-02-12 |
Family
ID=65264428
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811033731.0A Pending CN109324779A (en) | 2018-09-05 | 2018-09-05 | A kind of volume adjusting method, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109324779A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111683324A (en) * | 2020-05-27 | 2020-09-18 | 歌尔科技有限公司 | Tone quality adjusting method for bone conduction device, and storage medium |
CN112437374A (en) * | 2020-11-06 | 2021-03-02 | 维沃移动通信有限公司 | Earphone and tone tuning method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120027239A1 (en) * | 2010-07-30 | 2012-02-02 | Kabushiki Kaisha Audio-Technica | Electroacoustic transducer |
CN105246000A (en) * | 2015-10-28 | 2016-01-13 | 维沃移动通信有限公司 | Method for improving sound quality of headset and mobile terminal |
CN105554610A (en) * | 2014-12-29 | 2016-05-04 | 北京小鸟听听科技有限公司 | Method for regulating environmental sound of earphone and earphone |
CN105824529A (en) * | 2016-03-11 | 2016-08-03 | 深圳还是威健康科技有限公司 | Method for controlling music playing and intelligent wearable equipment |
CN108134969A (en) * | 2017-11-30 | 2018-06-08 | 北京松果电子有限公司 | The detection method and device of earphone wearing state |
-
2018
- 2018-09-05 CN CN201811033731.0A patent/CN109324779A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120027239A1 (en) * | 2010-07-30 | 2012-02-02 | Kabushiki Kaisha Audio-Technica | Electroacoustic transducer |
CN105554610A (en) * | 2014-12-29 | 2016-05-04 | 北京小鸟听听科技有限公司 | Method for regulating environmental sound of earphone and earphone |
CN105246000A (en) * | 2015-10-28 | 2016-01-13 | 维沃移动通信有限公司 | Method for improving sound quality of headset and mobile terminal |
CN105824529A (en) * | 2016-03-11 | 2016-08-03 | 深圳还是威健康科技有限公司 | Method for controlling music playing and intelligent wearable equipment |
CN108134969A (en) * | 2017-11-30 | 2018-06-08 | 北京松果电子有限公司 | The detection method and device of earphone wearing state |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111683324A (en) * | 2020-05-27 | 2020-09-18 | 歌尔科技有限公司 | Tone quality adjusting method for bone conduction device, and storage medium |
CN111683324B (en) * | 2020-05-27 | 2021-10-26 | 歌尔科技有限公司 | Tone quality adjusting method for bone conduction device, and storage medium |
CN112437374A (en) * | 2020-11-06 | 2021-03-02 | 维沃移动通信有限公司 | Earphone and tone tuning method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109379653B (en) | Audio transmission method and device, electronic equipment and storage medium | |
CN105326493A (en) | Method and system for monitoring heart rate based on wearable electronic equipment | |
CN113709614B (en) | Volume adjustment method and device and computer readable storage medium | |
CN104080028B (en) | A kind of recognition methods, electronic equipment and earphone | |
CN106170989B (en) | The recognition methods of earphone and device, the control method of earphone and device, earphone | |
CN106792314B (en) | A kind of detection method of ear-sticking headphone and its wearing state | |
CN205622803U (en) | Headset | |
CN109324779A (en) | A kind of volume adjusting method, electronic equipment and computer readable storage medium | |
EP4358602A3 (en) | Signal monitoring method and apparatus | |
CN104991755B (en) | A kind of information processing method and electronic equipment | |
CN105892985A (en) | Method and device for automatically adjusting playing volume of intelligent terminal | |
CN109413555A (en) | Audio-frequency inputting method, device, earphone and electronic equipment | |
CN109104684A (en) | Microphone plug-hole detection method and Related product | |
CN108668017A (en) | Volume reminding method, mode switching method, device, terminal and storage medium | |
CN109151861A (en) | Encoding rate method of adjustment, device and electronic equipment | |
CN109348399A (en) | The control method of terminal and its stereo audio | |
CN112468924A (en) | Earphone noise reduction method and device | |
CN106528041A (en) | Voice output mode switching method and device, and terminal | |
CN107193527A (en) | A kind of audio control method, terminal and computer-readable recording medium | |
CN107734428A (en) | A kind of 3D audio-frequence player devices | |
CN105262887A (en) | Mobile terminal and audio setting method thereof | |
CN104866747A (en) | Information processing method and electronic device | |
CN108234143B (en) | Method, device and equipment for processing messages in live broadcast | |
CN209488772U (en) | A kind of charging box and its system of wireless headset | |
CN105141786A (en) | Music playing control method, system and mobile terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190212 |