Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
The wearable device provided in the embodiment of the present invention includes that Intelligent bracelet, smartwatch and smart phone etc. move
Dynamic terminal.With the continuous development of Screen Technology, the appearance of the screens form such as flexible screen, Folding screen, smart phone etc. is mobile eventually
End can also be used as wearable device.The wearable device provided in the embodiment of the present invention may include: RF (Radio
Frequency, radio frequency) unit, WiFi module, audio output unit, A/V (audio/video) input unit, sensor, display
The components such as unit, user input unit, interface unit, memory, processor and power supply.
It will be illustrated by taking wearable device as an example in subsequent descriptions, referring to Fig. 1, its each implementation to realize the present invention
A kind of hardware structural diagram of wearable device of example, which may include: RF (Radio
Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104,
Sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, Yi Ji electricity
The components such as source 111.It will be understood by those skilled in the art that wearable device structure shown in Fig. 1 is not constituted to wearable
The restriction of equipment, wearable device may include perhaps combining certain components or difference than illustrating more or fewer components
Component layout.
It is specifically introduced below with reference to all parts of the Fig. 1 to wearable device:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, radio frequency list
Uplink information can be sent to base station by member 101, and after the downlink information that in addition can also be sent base station receives, being sent to can be worn
The processor 110 for wearing equipment is handled, and base station can be to the downlink information that radio frequency unit 101 is sent and be sent out according to radio frequency unit 101
What the uplink information sent generated, it is also possible to actively push away to radio frequency unit 101 after the information update for detecting wearable device
It send, for example, base station can penetrating to wearable device after detecting that geographical location locating for wearable device changes
Frequency unit 101 sends the message informing of geographical location variation, and radio frequency unit 101, can should after receiving the message informing
The processor 110 that message informing is sent to wearable device is handled, and it is logical that the processor 110 of wearable device can control the message
Know on the display panel 1061 for being shown in wearable device;In general, radio frequency unit 101 include but is not limited to antenna, at least one
Amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also pass through channel radio
Letter communicated with network and other equipment, specifically may include: by wireless communication with the server communication in network system, example
Such as, wearable device can download file resource from server by wireless communication, for example can download and answer from server
With program, after wearable device completes the downloading of a certain application program, if the corresponding file of the application program in server
Resource updates, then the server can be by wireless communication to the message informing of wearable device push resource updates, to remind
User is updated the application program.Any communication standard or agreement can be used in above-mentioned wireless communication, including but not limited to
GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General
Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access
2000, CDMA 2000), (Wideband Code Division Multiple Access, wideband code division are more by WCDMA
Location), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, time division synchronous
CDMA), (Frequency Division Duplexing-Long Term Evolution, frequency division duplex are long by FDD-LTE
Phase evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex are drilled for a long time
Into) etc..
In one embodiment, wearable device 100 can access existing communication network by insertion SIM card.
In another embodiment, wearable device 100 can be come real by the way that esim card (Embedded-SIM) is arranged
Existing communication network is now accessed, by the way of esim card, the inner space of wearable device can be saved, reduce thickness.
It is understood that although Fig. 1 shows radio frequency unit 101, but it is understood that, radio frequency unit 101 its
And it is not belonging to must be configured into for wearable device, it can according to need within the scope of not changing the essence of the invention and save completely
Slightly.Wearable device 100 can realize the communication connection with other equipment or communication network separately through wifi module 102,
The embodiment of the present invention is not limited thereto.
WiFi belongs to short range wireless transmission technology, and wearable device can help user to receive and dispatch by WiFi module 102
Email, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1
WiFi module 102 is shown, but it is understood that, and it is not belonging to must be configured into for wearable device, it completely can root
It is omitted within the scope of not changing the essence of the invention according to needs.
Audio output unit 103 can be in call signal reception pattern, call mode, record in wearable device 100
When under the isotypes such as mode, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data that person stores in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit
103 can also provide audio output relevant to the specific function that wearable device 100 executes (for example, call signal reception sound
Sound, message sink sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
In one embodiment, wearable device 100 includes one or more cameras, by opening camera,
It can be realized the capture to image, realize the functions such as take pictures, record a video, the position of camera, which can according to need, to be configured.
Wearable device 100 further includes at least one sensor 105, for example, optical sensor, motion sensor and other
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ring
The light and shade of border light adjusts the brightness of display panel 1061, proximity sensor can when wearable device 100 is moved in one's ear,
Close display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions
The size of (generally three axis) acceleration, can detect that size and the direction of gravity, can be used to identify mobile phone posture when static
It (for example pedometer, is struck using (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function
Hit) etc..
In one embodiment, wearable device 100 further includes proximity sensor, can by using proximity sensor
Wearable device can be realized non-contact manipulation, provide more modes of operation.
In one embodiment, wearable device 100 further includes heart rate sensor, when wearing, by close to using
Person can be realized the detecting of heart rate.
In one embodiment, wearable device 100 can also include that fingerprint sensor can by reading fingerprint
Realize the functions such as safety verification.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
In one embodiment, display panel 1061 uses flexible display screen, and wearable using flexible display screen sets
For when wearing, screen is able to carry out bending, to more be bonded.Optionally, the flexible display screen can use OLED screen
Body and graphene screen body, in other embodiments, the flexible display screen is also possible to other display materials, the present embodiment
It is not limited thereto.
In one embodiment, the display panel 1061 of wearable device can take rectangle, ring when convenient for wearing
Around.In other embodiments, other modes can also be taken.
User input unit 107 can be used for receiving the number or character information of input, and generate and wearable device
User setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch behaviour of user on it or nearby
Make (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel
Operation near 1071), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touching
Two parts of detection device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch behaviour
Make bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.This
Outside, touch panel 1071 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touching
Panel 1071 is controlled, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072
It can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operation
One of bar etc. is a variety of, specifically herein without limitation.
In one embodiment, one or more buttons have can be set in the side of wearable device 100.Button can be with
The various ways such as short-press, long-pressing, rotation are realized, to realize a variety of operating effects.The quantity of button can be different to be multiple
It can be applied in combination between button, realize a variety of operating functions.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing wearable device as two independent components, but in certain embodiments,
Touch panel 1071 and display panel 1061 can be integrated and be realized the function that outputs and inputs of wearable device, specifically herein
Without limitation.For example, processor 110 can be controlled when receiving the message informing of a certain application program by radio frequency unit 101
The message informing show in a certain predeterminable area of display panel 1061 by system, the predeterminable area and touch panel 1071 certain
One region is corresponding, can be to corresponding to area on display panel 1061 by carrying out touch control operation to a certain region of touch panel 1071
The message informing shown in domain is controlled.
Interface unit 108 be used as at least one external device (ED) connect with wearable device 100 can by interface.Example
Such as, external device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, You Xianhuo
Wireless data communications port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in wearable device 100 or can
For transmitting data between wearable device 100 and external device (ED).
In one embodiment, wearable device 100 interface unit 108 using contact structure, by contact with
Corresponding other equipment connection, realizes the functions such as charging, connection.Use contact can be with waterproof.
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of wearable device, utilizes various interfaces and the entire wearable device of connection
Various pieces, by running or execute the software program and/or module that are stored in memory 109, and call and be stored in
Data in memory 109 execute the various functions and processing data of wearable device, to carry out to wearable device whole
Monitoring.Processor 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulation
Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processing
Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Wearable device 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply
111 can be logically contiguous by power-supply management system and processor 110, thus charged by power-supply management system realization management,
The functions such as electric discharge and power managed.
Although Fig. 1 is not shown, wearable device 100 can also be including bluetooth module etc., and details are not described herein.It is wearable to set
Standby 100, by bluetooth, can connect with other terminal devices, realize communication and the interaction of information.
Fig. 2-Fig. 4 is please referred to, is the structure under a kind of a kind of embodiment of wearable device provided in an embodiment of the present invention
Schematic diagram.Wearable device in the embodiment of the present invention, including flexible screen.In wearable device expansion, flexible screen is in
Strip;When wearable device is in wearing state, flexible screen bending is annular in shape.Fig. 2 and Fig. 3 show wearable device
Structural schematic diagram when screen is unfolded, Fig. 4 show structural schematic diagram when wearable device screen-bending.
Based on above-mentioned each embodiment, it can be seen that if the equipment is wrist-watch, bracelet or wearable device
When, the screen of the equipment can not overlay device watchband region, can also be with the watchband region of overlay device.Here, this Shen
It please propose a kind of optional embodiment, in the present embodiment, the equipment for wrist-watch, bracelet or wearable can be set
Standby, the equipment includes screen and interconnecting piece.The screen can be flexible screen, and the interconnecting piece can be watchband.It can
Choosing, the screen of the equipment or the viewing area of screen can be partly or completely covered on the watchband of equipment.Such as Fig. 5
Shown, Fig. 5 is a kind of a kind of hardware schematic of embodiment of wearable device provided by the embodiments of the present application, the equipment
Screen extends to two sides, and part is covered on the watchband of equipment.In other embodiments, the screen of the equipment can also be with
It is all covered on the watchband of the equipment, the embodiment of the present application is not limited thereto.
Based on above-mentioned wearable device hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
Referring to Fig. 6, in wearable device volume adjusting method first embodiment of the present invention, wearable device volume adjustment
Method includes:
Step S10 is obtained between wearable device and user's head when detecting that wearable device is adjusting volume
First distance and wearable device tune after volume;
The embodiment of the present invention is mainly the volume that is adjusted by user, in conjunction between wearable device and user's head away from
Noisy degree from, environment, determines the preferred volume of user, then the environment according to locating for wearable device, such as wearable device
The noisy degree of the distance between user's head, wearable device local environment dynamically adjusts the volume of wearable device, makes
Obtain the volume that the volume that user receives is always user preference.
When detecting that user is adjusting wearable device volume, the between wearable device and user's head is obtained
One distance, and obtain volume after the tune of wearable device volume after the adjustment.Wherein it is possible to using some position on head as base
Standard, such as ear, then ear is exactly first distance at a distance from wearable device.The mode of detection first distance can be, and pass through
Camera acquisition user's head portrait simultaneously calculates first distance by algorithm, or by infrared sensor etc. detect first away from
From.
Wherein, first distance, refer to user when adjusting wearable device volume, the datum mark of user's head with it is wearable
The distance between equipment, user's head refer to the head of wearable device user.Volume after tune refers to that user sets wearable
After standby volume adjustment, do not change wearable device volume in preset time again.Such as, user adjusts by wearable device volume 1
To volume 2, in preset time 1 minute, do not change again, then volume 2 is volume after adjusting;If user is by wearable device
After volume 1 is adjusted to volume 2, volume 2 is adjusted to volume 3 again after 30 seconds, does not change volume again in preset time 1 minute
3, then volume 3 is volume after adjusting.
Optionally, the step of obtaining the first distance between wearable device and user's head include:
Step A1 acquires user's head portrait by wearable device camera;
When user adjusts wearable device volume, wearable device camera can be clapped the setting of wearable device camera
Take the photograph the position of user's head portrait;Wearable device camera referred herein, which can be, is integrated setting with wearable device,
It is also possible to independent separate setting, but in order to accurately calculate user's head and wearable device by wearable device camera
Between first distance, be preferably integrated setting with wearable device.In order to obtain wearable device and user's head it
Between first distance, firstly, by wearable device camera acquire user's head portrait.
The first distance between wearable device and user's head is calculated according to user's head portrait in step A2.
Then, collected user's head portrait is calculated by algorithm, the wearable device for calculating acquisition user's head portrait is taken the photograph
As head is at a distance from user's head, to obtain the first distance between wearable device and user's head.For example, being based on user
Head portrait occupied ratio in entirely shooting image, determines the first distance between wearable device and user's head, wherein the
One distance is inversely proportional with occupation proportion.
In the present embodiment, user's head portrait is acquired by wearable device camera, passes through algorithm further according to user's head portrait
The distance between wearable device camera and user's head is calculated, can accurately calculate wearable device and uses account
The distance between portion, further to be provided according to the preferred volume that the distance between wearable device and user's head calculate user
Accurate data.
Step S20 determines the preferred volume of user according to volume after first distance and tune;
Specifically, a kind of embodiment is to determine that volume is in the loss ratio for transmitting first distance generation after adjusting, and be based on damage
In the loss volume generated after transmitting first distance, (volume generates volume in transmission first distance after adjusting after the determining tune of loss-rate
The product of volume after loss ratio and tune), then volume after tune is subtracted to the loss volume that volume generates after adjusting, it is effective to obtain user
Received volume, using the effectively received volume of user as the preferred volume of user.A kind of embodiment is to determine volume after adjusting
The loss ratio that volume generates under the noisy degree of current environment after the loss ratio and tune that transmission first distance generates, and base
In the loss volume generated after transmitting first distance, (volume produces volume in transmission first distance after adjusting after loss ratio is determined and adjusted
The product of volume after raw loss ratio and tune), adjust after volume generated under the noisy degree of current environment loss volume (i.e. adjust after
The product of volume after loss ratio and tune that volume generates under the noisy degree of current environment), after volume after tune is then subtracted tune
The loss volume of volume generation simultaneously subtracts the loss volume generated under the noisy degree of current environment, obtains user and effectively receives
Volume, using the effectively received volume of user as the preferred volume of user.The preferred volume of user will be used as subsequent adjustment can
The adjustment standard of the foundation of wearable device volume, wearable device volume is, when wearable device is sent out apart from user's head distance
Wearable device volume is adjusted when changing or wearable device local environment change, and is guaranteed in wearable device volume
After adjustment, effective volume that user can receive remains the preferred volume of user.
Wherein, preferred volume, for volume after transmitting first distance, user receives effective volume after referring to tune.
Optionally, step S20 includes:
Step S21 obtains the first noisy degree of wearable device local environment;
When adjusting wearable device volume by sensor acquisition user, the size of the noisy sound of external environment,
So that it is determined that the noisy degree of wearable device local environment.Wherein, the first noisy degree refers to that user is adjusting wearable device
When volume, the size of the noisy sound of wearable device local environment, such as the decibel of noise.
Step S22 determines the preferred volume of user according to volume after the first noisy degree, first distance and tune.
Determine the volume noisy degree of volume in current environment after the loss ratio and tune that transmission first distance generates after adjusting
The loss ratio of lower generation, and based on loss ratio determine adjust after volume generated after transmit first distance loss volume (i.e. tune after
Volume transmission first distance generate loss ratio and tune after volume product), adjust after volume under the noisy degree of current environment
The loss volume of generation, then volume after tune is subtracted to the loss volume that volume generates after adjusting (volume is in current environment after adjusting
Noisy degree under after the loss ratio that generates and tune volume product) and subtract the loss generated under the noisy degree of current environment
Volume obtains the effectively received volume of user, using the effectively received volume of user as the preferred volume of user.
In the present embodiment, the noisy degree and wearable device of comprehensive wearable device local environment and user's head
First distance, after volume transmits first distance under the noisy degree of current environment after tune, when being transmitted to user, user can be connect
The effective volume received, so that it is determined that the preferred volume of user, adjusts wearable device volume for subsequent automatic dynamic and be provided with
Accurate foundation is imitated, so that the effective volume for being transferred to user remains the preferred volume of user.
Step S30 obtains the motion state of wearable device;
Specifically, wearable device can obtain the fortune of wearable device by motion sensor with in-built motion sensor
The move distance of dynamic direction and wearable device.Wherein, motion state refers to all directions of wearable device movement, with
And the move distance of all directions.
Step S40 adjusts wearable device volume according to motion state and preferred volume.
Specifically, a kind of embodiment is, according to the motion state of wearable device, to judge that wearable device movement is
No deviation user's head.If wearable device movement does not need the volume of adjustment wearable device without departing from user's head.
If wearable device movement deviate user's head, according to the motion state of wearable device calculate wearable device movement away from
From, and calculate wearable device movement after, wearable device is at a distance from user's head.Then it is moved according to wearable device
Afterwards at a distance from user's head, the loss ratio of the volume under the distance is calculated;Loss ratio and user further according to volume it is inclined
Good volume, the volume adjusted needed for determining are how many, i.e., the target volume of determining wearable device;Finally, by wearable device
Volume adjustment be target volume.
A kind of embodiment is, according to the motion state of wearable device, to judge whether wearable device movement deviates
User's head.If wearable device movement further obtains wearable device current environment without departing from user's head
Noisy degree and judge whether the noisy degree of wearable device current environment identical as the first noisy degree, if wearable set
The noisy degree of standby current environment is identical as the first noisy degree, then does not need the volume of adjustment wearable device;If wearable
The noisy degree of equipment current environment and the first noisy degree be not identical, it is determined that the local environment after wearable device movement
Loss ratio under noisy degree, further according to the loudness loss ratio of local environment noisy degree and the preferred volume of user, needed for determining
The volume of adjustment is how many, i.e., the target volume of determining wearable device;Finally, being target by the volume adjustment of wearable device
Volume.
A kind of embodiment is, if wearable device movement deviates user's head, according to the movement shape of wearable device
State calculates wearable device move distance, and after calculating wearable device movement, wearable device and user's head away from
From.Then after moving according to wearable device at a distance from user's head, the loss ratio of the volume under the distance is calculated, is obtained
The noisy degree of local environment after wearable device movement, and determine after wearable device movement under the noisy degree of local environment
Loss ratio;Further according to local environment noisy degree loudness loss than after the movement of, wearable device at a distance from user's head under sound
The loss ratio of amount and the preferred volume of user, the volume adjusted needed for determining are how many, i.e., the target of determining wearable device
Volume;Finally, being target volume by the volume adjustment of wearable device.
In the present embodiment, when user adjusts wearable device volume, by obtaining wearable device and user's head
The distance between and the tune of wearable device after volume, determine the preferred volume of user;And according to the movement of wearable device
State dynamically adjusts the volume of wearable device, and the received effective volume of user is allowed to remain the preference sound of user
Amount.It avoids since wearable device volume is fixed, when wearable device position changes, will lead to user can not understand knowledge
The problem of not even identification is not less than wearable device sound.
Optionally, in wearable device volume adjusting method second embodiment of the present invention, based on reality described in above-mentioned Fig. 6
Example is applied, step S40 includes:
Step S41 determines the second distance between wearable device and user's head according to motion state;
Specifically, according to the move distance of all directions of wearable device movement and all directions, judge wearable
Whether equipment moving deviates user's head.If wearable device movement deviates user's head, according to wearable device movement
Direction and distance, and calculate wearable device movement after, the distance between wearable device and user's head.Wherein, second
Distance, under the conditions of referring to that user does not have active accommodation wearable device, the distance between wearable device and user's head.
Step S42 determines the receivable effective volume ratio of user according to second distance;
Then the distance between with user's head after being moved according to wearable device, determine after wearable device movement with
The loss ratio of the lower volume of the distance between user's head;At a distance from after wearable device moves between user's head
The loss ratio of lower volume calculates the receivable effective volume ratio of user.Wherein, effective volume ratio refers to that user can receive
The ratio between effective volume and the actual play volume of wearable device of wearable device.
Optionally, step S42 includes:
Step B1, if the first pre-determined distance when second distance is in user's running between wearable device and user's head
Section, it is determined that effective volume ratio is the first preset value;
When second distance is in the first pre-determined distance section, (the distance between wearable device and user's head are in
First pre-determined distance section), it is considered as user and is running, wearable device is closer to user's head, and effective volume ratio is arranged
For the first preset value.Or according to all directions of wearable device movement and the move distance of all directions, judgement can be worn
Wear whether equipment deviates user's head.If wearable device deviates user's head, is further deviateed according to wearable device and used
The direction of motion and move distance behind account portion, determine the amplitude of user's arm;And judge the size of the amplitude of user's arm, if
The amplitude of user's arm is within a preset range, then it is assumed that user is running, and sets first for effective volume ratio at this time and presets
Value.Wherein, the first preset value can be arranged according to specific requirements, not limit the numerical value of the first preset value in the present embodiment
System.First pre-determined distance section can be arranged according to specific requirements, in the present embodiment to the number in the first pre-determined distance section
Value is with no restrictions.
Step B2, if the second pre-determined distance when second distance is in user's walking between wearable device and user's head
Section, it is determined that effective volume ratio is the second preset value, wherein the second preset value is less than the first preset value.
When second distance is in the second pre-determined distance section, (the distance between wearable device and user's head are in
Second pre-determined distance section), it is considered as user and is walking, the distance between wearable device and user's head is maximum, will be had
Effect volume ratio is set as the first preset value.Or the movement of all directions and all directions according to wearable device movement
Distance, judges whether wearable device deviates user's head.If wearable device deviates user's head, further basis can be worn
The direction of motion and move distance after wearing equipment deviation user's head, determine the amplitude of user's arm;And judge user's arm
The size of amplitude, if the amplitude of user's arm is greater than preset threshold, then it is assumed that user is walking, and wearable device and uses account
The distance between portion is maximum, sets the second preset value for effective volume ratio.Wherein, the second pre-determined distance section can basis
Specific requirements and be arranged, with no restrictions to the numerical value in the second pre-determined distance section in the present embodiment.Second preset value can root
It is arranged according to specific requirements, with no restrictions to the numerical value of the second preset value in the present embodiment.Wherein, the second preset value is less than
One preset value, to guarantee that the broadcast sound volume of wearable device when walking is greater than the broadcast sound volume in running, so that user exists
The effective volume received when walking and running remains the preferred volume of user.Because of user's arm bending when running, more
Close to user's head, loudness loss is smaller, and effective volume ratio is big;User's arm is vertical when walking, relatively from user's head
Far, loudness loss is bigger, and effective volume ratio is small;As shown in fig. 7, Fig. 7 is user in running, wearable device and account is used
One schematic diagram of a scenario in the distance between portion, wherein wearable device is worn in user's wrist, at this time user's arm bending,
Wearable device is apart from user's head relative close.As shown in figure 8, Fig. 8 be user when walking, wearable device and use account
One schematic diagram of a scenario in the distance between portion, wherein wearable device is worn in user's wrist, and user's arm is vertical at this time,
Wearable device apart from user's head relatively far away from.
In the present embodiment, because of user's arm bending when running, closer to user's head, loudness loss is smaller, has
It is big to imitate volume ratio;User's arm is vertical when walking, and relatively far away from from user's head, loudness loss is bigger, and effective volume ratio is small.
By setting the second preset value for the volume effective ratio of user when walking and setting volume effective ratio of the user in running
The first preset value is set to, and the second preset value is less than the first preset value, to guarantee the broadcasting sound of wearable device when walking
Amount is greater than the broadcast sound volume in running, so that effective volume that user receives in walking and running remains user's
Preferred volume;Wearable device volume is avoided to fix, for user in running or walking, wearable device deviates user's head,
User can receive effective volume down of wearable device, cause user that can not understand that identification even identification is set less than wearable
The problem of standby sound.
Step S43 adjusts wearable device volume according to effective volume ratio, until the receivable effective volume of user is
Preferred volume.
Using the preferred volume of user divided by effective volume ratio, the target volume of wearable device is obtained, i.e. determination can be worn
Wear the volume adjusted needed for equipment is how many;Finally, being target volume by the volume adjustment of wearable device, so that user can connect
The effective volume received is the preferred volume of user.If wearable device movement is without departing from user's head, not needing adjustment can
The volume of wearable device.
For example, the preferred volume of user is 20 decibels, when the head distance of wearable device and user are 60 centimetres, effectively
Volume ratio is 80%, then is 25 decibels by the volume adjustment of wearable device;Wearable device and the head distance of user are 80
Centimetre when, effective volume ratio be 50%, then by the volume adjustment of wearable device be 40 decibels.
In the present embodiment, by the motion state according to wearable device, determine wearable device and user's head it
Between distance, and according to the distance between wearable device and user's head determine the receivable effective volume ratio of user, according to
The receivable effective volume ratio of user adjusts wearable device volume;When so that wearable device position changing, Yong Hujie
The effective volume received remains the preferred volume of user;Wearable device volume is avoided to fix, after user's arm motion,
Wearable device deviates user's head, and user can receive effective volume down of wearable device, cause user that can not understand
The problem of identification is even identified less than wearable device sound.
Optionally, in wearable device volume adjusting method 3rd embodiment of the present invention, based on reality described in above-mentioned Fig. 6
Example is applied, step S42 includes:
Step C10 obtains the second noisy degree of wearable device local environment
In the case where user does not have active accommodation wearable device volume, the noisy of external environment is obtained by sensor
The size of sound, so that it is determined that the noisy degree of wearable device local environment.Wherein, the second noisy degree refers to that user does not have
Under the conditions of active accommodation wearable device, the size of the noisy sound of wearable device local environment, such as the decibel of noise.
Step C20 determines the receivable effective volume ratio of user according to second distance and the second noisy degree.
Specifically, a kind of embodiment is, if second distance is equal to first distance, to determine volume according to the second noisy degree
Loss ratio, the receivable effective volume ratio of user is then calculated according to the loss ratio of volume.
A kind of embodiment is, if second distance is not equal to first distance, it is determined that the volume generated under second distance
Loss ratio and the loudness loss generated under the second noisy degree ratio, then calculate effective volume ratio under second distance,
And effective volume ratio under the second noisy degree, finally integrate second distance under effective volume ratio and in the second noisy degree
Under effective volume ratio, calculate the receivable effective volume ratio of user.
In the present embodiment, by comprehensive wearable device at a distance from user's head and wearable device local environment
Noisy degree determines the receivable effective volume ratio of user, so that being accurately calculated for the receivable effective volume ratio of user, is
It further calculates the volume adjusted needed for wearable device and provides accurate data, so that wearable device sound adjusted
Amount, the receivable effective volume of user more meets the preferred volume of user after transmission.
Optionally, step C20 includes:
Step C21 is determined caused by second distance apart from loss ratio;
It specifically, can be by presetting one apart from loss ratio caused by the distance between wearable device and user's head
The distance between a wearable device and user's head and the default mapping that there are one-to-one correspondence mapping relations apart from loss ratio
Table;When determining caused by second distance apart from loss ratio, acquisition and wearable device and user directly in default mapping table
Head between distance there are mapping relations apart from loss ratio.
For example, when wearable device and the head distance of user are 60 centimetres, caused by apart from loss ratio 20%;It is wearable
The head distance of equipment and user be 80 centimetres when, caused by apart from loss ratio be 50%.
Optionally, step C21 includes:
Step E1, if the second pre-determined distance when second distance is in user's running between wearable device and user's head
Section, it is determined that caused by second distance apart from loss ratio be third preset value;
When second distance is in the first pre-determined distance section, (the distance between wearable device and user's head are in
First pre-determined distance section), it is considered as user and is running, wearable device is closer to user's head, will be caused by second distance
Third preset value is set as apart from loss ratio.Or according to wearable device deviate user's head after the direction of motion and movement away from
From determining the amplitude of user's arm;And judge the size of the amplitude of user's arm, if the amplitude of user's arm is in preset range
It is interior, then it is assumed that user is running, and wearable device is closer to user's head, will be arranged caused by second distance apart from loss ratio
For third preset value.Wherein, third preset value can be arranged according to specific requirements, in the present embodiment to third preset value
Numerical value is with no restrictions.First pre-determined distance section can be arranged according to specific requirements, in the present embodiment to first it is default away from
Numerical value from section is with no restrictions.
Step E2, if the second pre-determined distance when second distance is in user's walking between wearable device and user's head
Section, it is determined that apart from loss ratio be the 4th preset value caused by second distance, wherein third preset value is default less than the 4th
Value.
When second distance is in the second pre-determined distance section, (the distance between wearable device and user's head are in
Second pre-determined distance section), it is considered as user and is walking, the distance between wearable device and user's head is maximum, by the
The 4th preset value is set as apart from loss ratio caused by two distances.Or deviate the movement after user's head according to wearable device
Direction and move distance determine the amplitude of user's arm;And judge the size of the amplitude of user's arm, if the amplitude of user's arm
Greater than preset threshold, then it is assumed that user is walking, the distance between wearable device and user's head be maximum, by second away from
Loss ratio is set as the 4th preset value with a distance from caused by.Wherein, the 4th preset value can be arranged according to specific requirements, at this
In embodiment with no restrictions to the numerical value of the 4th preset value.Second pre-determined distance section can be arranged according to specific requirements,
In the present embodiment with no restrictions to the numerical value in the second pre-determined distance section.
Wherein, third preset value is less than the 4th preset value, to guarantee that the broadcast sound volume of wearable device when walking is greater than
Broadcast sound volume in running, so that effective volume that user receives in walking and running remains the preference sound of user
Amount.Because user's arm bending when running, closer to user's head, loudness loss is smaller;User's arm is vertical when walking, from
Relatively far away from, loudness loss is bigger for user's head;As shown in fig. 7, Fig. 7 is user in running, wearable device and user
One schematic diagram of a scenario on the distance between head, wherein wearable device is worn in user's wrist, at this time the user hand crook of the arm
Song, wearable device is apart from user's head relative close.As shown in figure 8, Fig. 8 be user when walking, wearable device and use
One schematic diagram of a scenario in the distance between account portion, wherein wearable device is worn in user's wrist, and user's arm hangs down at this time
Directly, wearable device apart from user's head relatively far away from.
In the present embodiment, by setting the 4th preset value for the volume effective ratio of user when walking and by user
It is set as third preset value apart from loss ratio in running, and third preset value can be worn less than the 4th preset value with guarantee
The broadcast sound volume of equipment when walking is worn greater than the broadcast sound volume in running, so that user received in walking and running
Effective volume remains the preferred volume of user;It avoids wearable device volume to fix, user, can in running or walking
Wearable device deviates user's head, and user can receive effective volume down of wearable device, causes user that can not understand and knows
The problem of not even identification is not less than wearable device sound
Step C22 determines noisy loss ratio caused by the second noisy degree;
Specifically, noisy loss ratio caused by the second noisy degree can pass through default second noisy degree and noisy damage
There is the default mapping table for corresponding mapping relations in loss-rate;When determining noisy loss ratio caused by the second noisy degree, directly
There are loss ratios at a distance from mapping relations with the second noisy degree for acquisition in default mapping table.
For example, the second noisy degree be 60 decibels when, caused by noisy loss ratio 20%;It is 90 decibels in the second noisy degree
When, caused by noisy loss ratio be 50%.
Step C23 determines the receivable effective volume ratio of user according to apart from loss ratio and noisy loss ratio.
When user does not have active accommodation wearable device, determine that the distance between wearable device and user's head cause
The noisy loss ratio caused by the noisy degree of loss ratio and wearable device local environment after, according to apart from loss ratio
Total losses ratio is calculated with noisy loss ratio, then according to total losses effective volume ratio more receivable than determining user.
For example, being 20% apart from loss ratio, noisy loss ratio is 10%, then than 30%, user is receivable to be had total losses
Imitating volume ratio is 70%.
In the present embodiment, it apart from loss ratio caused by by comprehensive wearable device at a distance from user's head, can wear
Noisy loss ratio caused by the noisy degree of equipment local environment is worn, determines the total losses ratio of wearable device volume, so that it is determined that
The receivable effective volume ratio of user, so that the receivable effective volume ratio of user is accurately calculated, to further calculate
The volume adjusted needed for wearable device provides accurate data, so that wearable device volume adjusted, after transmission
The receivable effective volume of user more meets the preferred volume of user.
In addition, the embodiment of the present invention also proposes that a kind of wearable device, wearable device include: memory 109, processor
110 and it is stored in the wearable device volume adjustment program that can be run on memory 109 and on processor 110, it is wearable to set
Standby volume adjustment program realizes the step of above-mentioned each embodiment of wearable device volume adjusting method when being executed by processor 110
Suddenly.
In addition, the readable storage medium storing program for executing is stored with one or one the present invention also provides a kind of readable storage medium storing program for executing
A procedure above, the one or more programs can also be executed by one or more than one processor for real
The step of each embodiment of existing above-mentioned wearable device volume adjusting method.
The specific embodiment of wearable device and readable storage medium storing program for executing (i.e. computer readable storage medium) of the present invention
It expands content and above-mentioned each embodiment of wearable device volume adjusting method is essentially identical, this will not be repeated here.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.