Invention content
To solve the above-mentioned problems, the present invention provides a kind of methods automatically switching music according to the demand of user can
Enter automatic switchover mode and played in order music pattern by voice input selection, and when positioned at automatic switchover mode, it can
By detecting the lung capacity or breathing situation of user, judges the age bracket of user and judge the motion conditions of user, and adjust
The broadcasting type of music.
It is a still further object of the present invention to provide a kind of electronic equipments that can automatically switch music.
In order to achieve the above objectives, the present invention provides a kind of method automatically switching music, include the following steps:
S1, the voice input signal for acquiring user;
S2, judge whether the voice input signal matches with the first voice messaging or the second voice messaging, if with institute
The matching of the first voice messaging is stated, then controls mobile phone and enters automatic switchover mode, if being matched with second voice messaging, control
Mobile phone played in order music;
Wherein, it if the voice input signal is matched with first voice messaging, controls mobile phone and enters automatic switchover
Pattern, specially:
It is set to the spirometric data of the moving situation sensor senses user in earphone, and sends it to control mould
Block;The control module receives the moving situation data, and by the moving situation data respectively with first threshold and second
Threshold value is compared, and will switch the music played in earphone according to comparison result;
When the moving situation data are more than or equal to the first threshold, the music played in earphone is switched to
Allegro music or the music of the first specified singer;
When the moving situation data are more than the second threshold and are less than the first threshold, by what is played in earphone
Music is switched to the music of slow rhythm or the music of the second specified singer;
When the moving situation data are less than the second threshold, the music played in earphone is closed or cut
It is changed to light music.
When user needs electronic equipment to enter automatic switchover mode, the language to match with the first voice signal only need to be inputted
Sound signal, can enter automatic switchover mode, by detect user lung capacity or breathing situation, judge user age and
Whether user is kept in motion, if the lung capacity detected is larger, then judging that the user is younger, will automatically switch to play
Some allegro songs judge the user for elderly population or weakling, then automatically if the lung capacity detected is smaller
Switching plays the song of some slow rhythms.Or;
If the respiratory rate detected is very fast, judge that user is kept in motion, then automatically switches to play suitable movement
Song judge that user is in resting state if the respiratory rate detected is slower, light music will be automatically switched to.Or;
User can also input with the matched voice signal of the second voice signal, be switched to the pattern of played in order music.
Preferably, wherein when the moving situation data be spirometric data when, the first threshold be 1000~
2000mL, the second threshold are 500~1000mL.
Preferably, wherein when the moving situation data are breath data, the breath data is respiratory capacity or exhales
Inhale rhythm.
Preferably, wherein the breath data is breath rhythm:
The first threshold refers to that the gas volume breathed out in 5s is 500~1000mL;
The second threshold refers to that the gas volume breathed out in 5s is 100~500mL.
Preferably, wherein the breath data is breath rhythm:
It is 10~30s that the first threshold, which refers to the breathing primary time,;
It is 3~10s that the second threshold, which refers to the breathing primary time,.
A kind of electronic equipment automatically switching music, including:
Voice acquisition module is set in the earphone being connect with mobile phone, and the voice acquisition module is for acquiring user
Voice input signal;
Moving situation sensor is set in the earphone being connect with mobile phone, and the moving situation sensor is for obtaining
The moving situation data of user;
Data memory module is inside previously stored with the first voice messaging, the second voice messaging, first threshold and the second threshold
Value, the data memory module are arranged in the mobile phone;
Control module is arranged in the mobile phone, and the control module receives the voice input signal and transfers institute
State pre-stored first voice messaging of data memory module and the second voice messaging, and by the voice input signal respectively with
First voice messaging and second voice messaging are compared, then judge the voice input signal whether with it is described
First voice messaging or second voice messaging match, and carry out function switch according to judging result;
If the voice input signal is matched with first voice messaging, the control module receives the moving situation
Sensor send moving situation data, and by the moving situation data respectively with the first threshold and the second threshold
It is compared, switches the music played in earphone according to comparison result;
If the voice input signal is matched with second voice messaging, the control module controls the mobile phone sequence
Play music.
Preferably, wherein if the voice input signal is matched with first voice messaging, the control module connects
Receive the moving situation data that the moving situation sensor is sent, and by the moving situation data respectively with the first threshold
It is compared with the second threshold, switches the music played in earphone according to comparison result, specially:
When the moving situation data are more than or equal to the first threshold, the music played in earphone is switched to
Allegro music or the music of the first specified singer;
When the moving situation data are more than the second threshold and are less than the first threshold, by what is played in earphone
Music is switched to the music of slow rhythm or the music of the second specified singer;
When the moving situation data are less than the second threshold, the music played in earphone is closed or cut
It is changed to light music.
Preferably, wherein when the moving situation sensor is lung capacity sensor, the first threshold is 1000
~2000mL, the second threshold are 500~1000mL.
Preferably, wherein when the moving situation sensor is respiration transducer, the moving situation data are to exhale
Pipette:
The first threshold refers to that the gas volume breathed out in 5s is 500~1000mL;
The second threshold refers to that the gas volume breathed out in 5s is 100~500mL.
Preferably, wherein when the moving situation sensor is respiration transducer, the moving situation data are to exhale
Inhale rhythm:
It is 10~30s that the first threshold, which refers to the breathing primary time,;
It is 3~10s that the second threshold, which refers to the breathing primary time,.
The beneficial effects of the present invention are:
1, the present invention provides a kind of methods automatically switching music, according to the demand of user, can be inputted and be selected by voice
It selects and enters automatic switchover mode and played in order music pattern, and when positioned at automatic switchover mode, it can be by detecting user's
Lung capacity or breathing situation, judge the age bracket of user and judge the motion conditions of user, and adjust the broadcasting type of music.
2, it is a still further object of the present invention to provide a kind of electronic equipment that can automatically switch music, the electronic equipment poles
The earth meets contemporary Man's Demands.
Specific implementation mode
Present invention will be described in further detail below with reference to the accompanying drawings, to enable those skilled in the art with reference to specification text
Word can be implemented according to this.
The present invention provides a kind of methods automatically switching music, include the following steps:
S1, the voice input signal for acquiring user;
S2, judge whether the voice input signal matches with the first voice messaging or the second voice messaging, if with institute
The matching of the first voice messaging is stated, then controls mobile phone and enters automatic switchover mode, if being matched with second voice messaging, control
Mobile phone played in order music;
Wherein, it if the voice input signal is matched with first voice messaging, controls mobile phone and enters automatic switchover
Pattern, specially:
It is set to the spirometric data of the moving situation sensor senses user in earphone, and sends it to control mould
Block;The control module receives the moving situation data, and by the moving situation data respectively with first threshold and second
Threshold value is compared, and will switch the music played in earphone according to comparison result;
When the moving situation data are more than or equal to the first threshold, the music played in earphone is switched to
Allegro music or the music of the first specified singer;
When the moving situation data are more than the second threshold and are less than the first threshold, by what is played in earphone
Music is switched to the music of slow rhythm or the music of the second specified singer;
When the moving situation data are less than the second threshold, the music played in earphone is closed or cut
It is changed to light music.
When user needs electronic equipment to enter automatic switchover mode, the language to match with the first voice signal only need to be inputted
Sound signal, can enter automatic switchover mode, by detect user lung capacity or breathing situation, judge user age and
Whether user is kept in motion, if the lung capacity detected is larger, then judging that the user is younger, will automatically switch to play
Some allegro songs judge the user for elderly population or weakling, then automatically if the lung capacity detected is smaller
Switching plays the song of some slow rhythms.Or;
If the respiratory rate detected is very fast, judge that user is kept in motion, then automatically switches to play suitable movement
Song judge that user is in resting state if the respiratory rate detected is slower, light music will be automatically switched to.Or;
User can also input with the matched voice signal of the second voice signal, be switched to the pattern of played in order music.
In one of the embodiments, when the moving situation data are spirometric data, the first threshold is
1000~2000mL, the second threshold are 500~1000mL.
In one of the embodiments, when the moving situation data are breath data, the breath data is respiratory capacity
Or breath rhythm.
The breath data is breath rhythm in one of the embodiments,:The first threshold refers to being breathed out in 5s
Gas volume be 500~1000mL;The second threshold refers to that the gas volume breathed out in 5s is 100~500mL.
The breath data is breath rhythm in one of the embodiments,:The first threshold refers to that breathing is primary
Time is 10~30s;It is 3~10s that the second threshold, which refers to the breathing primary time,.
The present invention also provides a kind of electronic equipments automatically switching music, including:
Voice acquisition module is used to acquire the voice input signal of user;
Moving situation sensor is set in the earphone being connect with mobile phone, and the moving situation sensor is for obtaining
The moving situation data of user;
Data memory module is inside previously stored with the first voice messaging, the second voice messaging, first threshold and the second threshold
Value, the data memory module are arranged in the mobile phone;
Control module is arranged in the mobile phone, and the control module receives the voice input signal and transfers institute
State pre-stored first voice messaging of data memory module and the second voice messaging, and by the voice input signal respectively with
First voice messaging and second voice messaging are compared, then judge the voice input signal whether with it is described
First voice messaging or second voice messaging match, and carry out function switch according to judging result;
If the voice input signal is matched with first voice messaging, the control module receives the moving situation
Sensor send moving situation data, and by the moving situation data respectively with the first threshold and the second threshold
It is compared, switches the music played in earphone according to comparison result;
If the voice input signal is matched with second voice messaging, the control module controls the mobile phone sequence
Play music.
Wherein, if the voice input signal is matched with first voice messaging, the control module receives the fortune
The moving situation data that dynamic situation sensors are sent, and by the moving situation data respectively with the first threshold and described the
Two threshold values are compared, and switch the music played in earphone according to comparison result, specially:
When the moving situation data are more than or equal to the first threshold, the music played in earphone is switched to
Allegro music or the music of the first specified singer;
When the moving situation data are more than the second threshold and are less than the first threshold, by what is played in earphone
Music is switched to the music of slow rhythm or the music of the second specified singer;
When the moving situation data are less than the second threshold, the music played in earphone is closed or cut
It is changed to light music.
In one of the embodiments, when the moving situation sensor is lung capacity sensor, the first threshold
For 1000~2000mL, the second threshold is 500~1000mL.
In one of the embodiments, when the moving situation sensor is respiration transducer, the moving situation number
According to for respiratory capacity:The first threshold refers to that the gas volume breathed out in 5s is 500~1000mL;The second threshold refers to
The gas volume breathed out in 5s is 100~500mL.
In one of the embodiments, when the moving situation sensor is respiration transducer, the moving situation number
According to for breath rhythm:It is 10~30s that the first threshold, which refers to the breathing primary time,;The second threshold refers to that breathing is primary
Time be 3~10s.
Although the embodiments of the present invention have been disclosed as above, but its is not only in the description and the implementation listed
With.It can be applied to various suitable the field of the invention completely.It for those skilled in the art, can be easily
Realize other modification.Therefore without departing from the general concept defined in the claims and the equivalent scope, the present invention is simultaneously unlimited
In specific details and legend shown and described herein.