Summary of the invention
The invention mainly solves the technical problem of providing a kind of methods and shifting that can adjust font size fast, rapidly
Dynamic terminal.
To solve above-mentioned technical proposal, a kind of technical solution provided by the invention is: a kind of shifting of adjustable font size
Dynamic terminal, the mobile terminal includes: apart from detection module, speech recognition module, analysis module and processing module;
The distance between the screen for being used to detect user's face Yu the mobile terminal apart from detection module, and will inspection
The range data measured is sent to the analysis module;
The speech recognition module is used to receive and identify the voice about adjustment font size that the user issues and refers to
It enables, and the voice messaging recognized is sent to the analysis module;
The analysis module be used to receive from it is described apart from detection module send described in the range data that detects with/
Or the voice messaging recognized that the speech recognition module is sent, according to the range data detected and/or institute
The voice messaging recognized is stated, analyzes and obtain the size that current font needs to adjust, and the current font is needed
The size of adjustment is sent to the processing module;
The processing module is used for the size for needing to adjust according to the current font, adjusts to current font
It is whole, and show font adjusted.
Wherein, the analysis module is specifically used for when only receiving the range data detected, according to preset
Corresponding relationship between distance threshold and font size, is analyzed and to obtain font corresponding to the range data detected big
It is small, and then determine the size that current font needs to adjust.
Wherein, the analysis module is specifically used for when only receiving the voice messaging recognized, according to preset language
Corresponding relationship between message breath and font size, is analyzed and to obtain font corresponding to the voice messaging recognized big
It is small, and then determine the size that current font needs to adjust.
Wherein, the analysis module is specifically used for not only receiving the range data detected but also receives described recognize
Voice messaging when, according to preset voice messaging prior to range data and preset voice messaging and font size it
Between corresponding relationship, analyze and obtain font size corresponding to the voice messaging recognized, and then determine current word
Body needs the size adjusted.
Wherein, the phonetic order includes normal, big and super large.
In order to solve the above technical problems, another technical solution provided by the invention is: a kind of adjustable font size
Method, which comprises
The distance between user's face and the screen of mobile terminal are detected,
Receive and identify the phonetic order about adjustment font size that the user issues;
According to the range data detected and/or the voice messaging recognized, analyzes and obtain current font and need to adjust
Whole size;
According to the size that the current font needs to adjust, current font is adjusted, and shows adjusted
Font.
Wherein, the range data and/or the voice messaging recognized that the basis detects, analyze and obtain current word
The step of size that body needs to adjust, comprising:
When only receiving the range data detected, according to pair between preset distance threshold and font size
It should be related to, analyze and obtain font size corresponding to the range data detected, and then determine that current font needs
The size of adjustment.
Wherein, the range data and/or the voice messaging recognized that the basis detects, analyze and obtain current word
The step of size that body needs to adjust, comprising:
When only receiving the voice messaging recognized, according to corresponding between preset voice messaging and font size
Relationship is analyzed and obtains font size corresponding to the voice messaging recognized, and then determines that current font needs to adjust
Whole size.
Wherein, the range data and/or the voice messaging recognized that the basis detects, analyze and obtain current word
The step of size that body needs to adjust, comprising:
When not only receiving the range data detected but also receiving the voice messaging recognized, according to preset language
Message is ceased prior to the corresponding relationship between range data and preset voice messaging and font size, is analyzed and is obtained institute
Font size corresponding to the voice messaging recognized is stated, and then determines the size that current font needs to adjust.
Wherein, the phonetic order includes normal, big and super large.
The beneficial effects of the present invention are: be in contrast to the prior art, adjustable font size provided by the invention
Mobile terminal can be received according to analysis module from it is described apart from detection module send described in the range data that detects and/or
The size that current font needs to adjust is analyzed and obtained to the voice messaging recognized that the speech recognition module is sent,
The font size of mobile terminal is so adjusted convenient for user, in addition, mobile terminal can be certainly when user's inconvenience issues phonetic order
It is dynamic that font is adjusted, be easy to use, can meet the needs of different user is checked, facilitate user different occasion different times according to
The demand of oneself is switched fast font size.
Specific embodiment
The present invention will be described in detail with reference to the accompanying drawings and examples.
Referring to Fig. 1, the present invention provides a kind of mobile terminal 100 of adjustable font size, mobile terminal 100 can be but
It is not limited to mobile phone, computer.In one embodiment, mobile terminal 100 includes: apart from detection module 10, speech recognition module
20, analysis module 30 and processing module 40.
It is used to detect the distance between the screen of user's face Yu mobile terminal 100 apart from detection module 10, and will test
To range data be sent to analysis module 30.
It is appreciated that user can preset threshold according to demand, by detected range data distinguish it is corresponding away from
From in section.In a specific embodiment, threshold value includes at least 30cm and 50cm, in this way, being classified into less than or equal to 30cm, greatly
In 30cm and it is less than or equal to 50cm, greater than tri- distance segments of 50cm.
Speech recognition module 20 is used to receive and identify the phonetic order about adjustment font size of user's sending, and will
The voice messaging recognized is sent to analysis module 30.
It is appreciated that user can preset voice messaging according to demand, in order to the phonetic order that is issued according to user into
Row analysis pairing.
Wherein, phonetic order includes normal, big and super large.
It is appreciated that user can not also issue any phonetic order about adjustment font size.
Analysis module 30 is for receiving from the range data detected sent apart from detection module 10 and/or voice knowledge
The voice messaging recognized that other module 20 is sent, according to the range data detected and/or the voice messaging recognized, analysis
And the size that current font needs to adjust is obtained, and need the size adjusted to be sent to processing module 40 current font.
Wherein, analysis module 30 is specifically used for when only receiving the range data detected, according to preset apart from threshold
Be worth the corresponding relationship between font size, analyze and the range data that is detected corresponding to font size, and then really
The size that font before settled needs to adjust.
Analysis module 30 is specifically used for when only receiving the voice messaging recognized, according to preset voice messaging and font
Corresponding relationship between size, analyze and the voice messaging that is recognized corresponding to font size, and then determine current
Font needs the size adjusted.
Analysis module 30 is specifically used for the root when not only receiving the range data detected but also receiving the voice messaging recognized
According to preset voice messaging prior to the corresponding relationship between range data and preset voice messaging and font size, divide
Analyse and the voice messaging that is recognized corresponding to font size, and then determine the size that current font needs to adjust.
Processing module 40 is used for the size for needing to adjust according to current font, is adjusted to current font, and show
Show font adjusted.
In a specific embodiment, the distance detected be in less than or equal to 30cm distance segment, when only receive away from
When from data, font shows that state is Normal (1.0), and issues voice prompting, such as " distance is too close, please treasure eyes ",
Normal (1.0) is defined as the font size value of the receptible the most comfortable of user;
The distance detected is in greater than 30cm and is less than or equal to the distance segment of 50cm, when only receiving range data,
Font shows that state is Large (1.1), and Large (1.1) is defined as 1.1 times of Normal (1.0) font size value;
The distance detected is in the distance segment greater than 50cm, and when only receiving range data, font shows that state is
Extra Large (1.15), Extra Large (1.15) are defined as 1.15 times of Normal (1.0) font size value.
When the distance detected is in the distance segment less than or equal to 30cm, when phonetic order is normal, font is shown
State is Normal (1.0), and issues voice prompting, such as " distance is too close, please treasure eyes ", when phonetic order is big, word
Body shows that state is Large (1.1), and when phonetic order is super large, font shows that state is Extra Large (1.15);
When the distance detected is in greater than 30cm and is less than or equal to the distance segment of 50cm, when phonetic order is normal
When, font shows that state is Normal (1.0), and when phonetic order is big, font shows that state is Large (1.1), works as voice
When instruction is super large, font shows that state is Extra Large (1.15);
When the distance detected is in the distance segment greater than 50cm, when phonetic order is normal, font shows that state is
Normal (1.0), when phonetic order is big, font shows that state is Large (1.1), when phonetic order is super large, font
Display state is Extra Large (1.15).
Present embodiment provide adjustable font size mobile terminal 100 can according to analysis module 30 receive from away from
The voice messaging recognized point that the range data detected and/or speech recognition module 20 sent from detection module 10 is sent
The size that current font needs to adjust is analysed and obtained, the font size of mobile terminal 100 is so adjusted convenient for user, in addition,
When user's inconvenience issues phonetic order, mobile terminal 100 can automatically be adjusted font, be easy to use, can be met different user
The demand checked facilitates user to be switched fast font size according to their own needs in different occasion different times.
Referring to Fig. 2, the mobile terminal 200 of adjustable font size provided by the invention, in another embodiment, packet
It includes: processor 210 and memory 220.
Processor 210 is used to detect the distance between the screen of user's face Yu mobile terminal 200, receives and identifies user
The phonetic order about adjustment font size issued.
It is appreciated that user can be configured the threshold value and voice messaging of distance according to demand.
Processor 210 is also used to analyze and worked as according to the range data detected and/or the voice messaging recognized
Preceding font needs the size adjusted.
Specifically, processor 210 is used for when only detecting range data, according to preset distance threshold and font size
Between corresponding relationship, analyze and the range data that is detected corresponding to font size, and then determine current font
The size for needing to adjust;Processor 210 is used for when only receiving and identifying voice messaging, according to preset voice messaging and word
Corresponding relationship between body size, analyze and the voice messaging that is recognized corresponding to font size, and then determine current
Font need the size that adjusts;Processor 210 is used for when not only detecting range data but also receiving and identifying voice messaging,
According to preset voice messaging prior to the corresponding relationship between range data and preset voice messaging and font size,
Analyze and the voice messaging that is recognized corresponding to font size, and then determine the size that current font needs to adjust.
Processor 210 is also used to the size for needing to adjust according to current font, is adjusted to current font, and show
Show font adjusted.
Memory 220 is for storing voice messaging, the preset voice messaging for detecting range data, receiving and identifying
And preset threshold value.
Processor 210 in the mobile terminal 200 for the adjustable font size that present embodiment provides is according to detected
Range data and/or the voice messaging that recognizes analyze and obtain the size that current font needs to adjust, so convenient for using
Family adjusts the font size of mobile terminal 200, in addition, mobile terminal 200 can be automatic right when user's inconvenience issues phonetic order
Font adjustment, is easy to use, can meet the needs of different user is checked, facilitate user in different occasion different times according to oneself
Demand be switched fast font size.
Referring to Fig. 3, the present invention also provides a kind of method of adjustable font size, method includes:
Step S101 detects the distance between user's face and the screen of mobile terminal.
It is appreciated that before being detected, can with pre-determined distance threshold value, by distance detected distinguish it is corresponding away from
From in section.In one embodiment, threshold value includes at least 30cm and 50cm, and distance is divided into less than or equal to 30cm, is greater than
30cm and be less than or equal to 50cm, be greater than tri- distance segments of 50cm.
Step S102 receives and identifies the phonetic order about adjustment font size of user's sending.
Wherein, phonetic order includes normal, big and super large.
Step S103 is analyzed according to the range data detected and/or the voice messaging recognized and is obtained current word
Body needs the size adjusted.
Specifically, when only receiving the range data detected, according between preset distance threshold and font size
Corresponding relationship, analyze and the range data that is detected corresponding to font size, and then determine that current font needs
The size of adjustment;
When only receiving the voice messaging recognized, according to the corresponding pass between preset voice messaging and font size
System, analyze and the voice messaging that is recognized corresponding to font size, and then it is big to determine that current font needs adjust
It is small;
It is excellent according to preset voice messaging when not only receiving the range data detected but also receiving the voice messaging recognized
Prior to the corresponding relationship between range data and preset voice messaging and font size, the language analyzing and recognized
The corresponding font size of message breath, and then determine the size that current font needs to adjust.
Step S104 needs the size adjusted according to current font, is adjusted to current font, and show adjustment
Font afterwards.
In a specific embodiment, the distance detected be in less than or equal to 30cm distance segment, when only receive away from
When from data, font shows that state is Normal (1.0), and issues voice prompting, such as " distance is too close, please treasure eyes ",
Normal (1.0) is defined as the font size value of the receptible the most comfortable of user;
The distance detected is in greater than 30cm and is less than or equal to the distance segment of 50cm, when only receiving range data,
Font shows that state is Large (1.1), and Large (1.1) is defined as 1.1 times of Normal (1.0) font size value;
The distance detected is in the distance segment greater than 50cm, and when only receiving range data, font shows that state is
Extra Large (1.15), Extra Large (1.15) are defined as 1.15 times of Normal (1.0) font size value.
When the distance detected is in the distance segment less than or equal to 30cm, when phonetic order is normal, font is shown
State is Normal (1.0), and issues voice prompting, such as " distance is too close, please treasure eyes ", when phonetic order is big, word
Body shows that state is Large (1.1), and when phonetic order is super large, font shows that state is Extra Large (1.15);
When the distance detected is in greater than 30cm and is less than or equal to the distance segment of 50cm, when phonetic order is normal
When, font shows that state is Normal (1.0), and when phonetic order is big, font shows that state is Large (1.1), works as voice
When instruction is super large, font shows that state is Extra Large (1.15);
When the distance detected is in the distance segment greater than 50cm, when phonetic order is normal, font shows that state is
Normal (1.0), when phonetic order is big, font shows that state is Large (1.1), when phonetic order is super large, font
Display state is Extra Large (1.15).
The method of adjustable font size provided by the invention passes through according to detected range data and/or voice knowledge
The size that current font needs to adjust is analyzed and obtained to the voice messaging recognized that other module is sent, and is so convenient for user's tune
The font size of whole mobile terminal, in addition, mobile terminal can be automatically to font tune when user's inconvenience carries out sending phonetic order
It is whole, be easy to use, can meet the needs of different user is checked, facilitate user different occasion different times according to their own needs
It is switched fast font size.
Mode the above is only the implementation of the present invention is not intended to limit the scope of the invention, all to utilize this
Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it is relevant to be applied directly or indirectly in other
Technical field is included within the scope of the present invention.