CN108429972A - Method for playing music, device, terminal, earphone and readable storage medium storing program for executing - Google Patents

Method for playing music, device, terminal, earphone and readable storage medium storing program for executing Download PDF

Info

Publication number
CN108429972A
CN108429972A CN201810520742.5A CN201810520742A CN108429972A CN 108429972 A CN108429972 A CN 108429972A CN 201810520742 A CN201810520742 A CN 201810520742A CN 108429972 A CN108429972 A CN 108429972A
Authority
CN
China
Prior art keywords
earphone
music
heart rate
user
rate information
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.)
Granted
Application number
CN201810520742.5A
Other languages
Chinese (zh)
Other versions
CN108429972B (en
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810520742.5A priority Critical patent/CN108429972B/en
Publication of CN108429972A publication Critical patent/CN108429972A/en
Application granted granted Critical
Publication of CN108429972B publication Critical patent/CN108429972B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)

Abstract

This application involves a kind of method for playing music, device, terminal, earphone and readable storage medium storing program for executing.This method includes:When earphone is worn on the predeterminated position of user, the pressure change signal that earphone is generated in predetermined position due to vibration is obtained;Heart rate information is obtained according to pressure change signal;It is worn on the predeterminated position of user according to earphone and heart rate information pushes and play music, can increase the pleasant feeling that user uses earphone to recommend and play personalized music for user, meet the individual demand of user without user's manual operation;Meanwhile above-mentioned method for playing music, need not increase additional sensor in earphone can obtain the heart rate information of user, at low cost, and design is simple, has expanded the use function of common headphones, has improved user experience.

Description

Method for playing music, device, terminal, earphone and readable storage medium storing program for executing
Technical field
This application involves field of communication technology, more particularly to a kind of method for playing music, device, terminal, earphone and can Read storage medium.
Background technology
With the development of the communication technology, smart machine incorporates in people's life closely, substantially improves the life of people It is living, while people also increasingly pay attention to movement and with health.Wherein, judge when heart rate information user whether health important indicator One of.
Many people like listening to music with earphone during movement, in order to measure the heart rate in motion process, The user usually needs to dress the ancillary equipments such as additional sphygmomanometer, pedometer, cardiotachometer, bracelet to monitor the real-time heart rate of user Information is made troubles to user.Meanwhile traditional earphone be typically only capable to realize playback and radio reception function, None- identified user, And meet the individual demand of different user.
Invention content
A kind of method for playing music of the embodiment of the present application offer, device, terminal, earphone and readable storage medium storing program for executing, can be with base The heart rate information of user is obtained in earphone and pushes music, it is at low cost, it disclosure satisfy that the individual demand of different user.
A kind of method for playing music, including:
When earphone is worn on the predeterminated position of user, obtain earphone the predetermined position acquire due to vibrate And the pressure change signal generated;
Heart rate information is obtained according to the pressure change signal;
It is worn on the predeterminated position of user according to earphone and heart rate information pushes and plays music.
A kind of music player, including:
Signal acquisition module when predeterminated position for being worn on user when earphone, obtains earphone in the default position The pressure change signal of the place's of setting acquisition generated due to vibration;
Heart rate acquisition module, for obtaining heart rate information according to the pressure change signal;
Music playing module, for being worn on the predeterminated position of user according to earphone and heart rate information pushes and plays sound It is happy.
A kind of terminal, including memory and processor store computer-readable instruction, described instruction quilt in the memory When the processor executes so that the processor executes the step of above method.
A kind of computer readable storage medium is stored thereon with computer program, when computer program is executed by processor The step of realizing the above method.
A kind of earphone, the earphone include memory, processor and storage on a memory and can run on a processor The step of computer program, processor are electrically connected with memory, which realizes the above method when executing computer program.
Above-mentioned method for playing music, device, terminal, earphone and computer readable storage medium, when earphone is worn on use When the predeterminated position at family, the pressure change signal generated due to vibration that earphone is acquired in predetermined position is obtained;According to pressure Power variable signal obtains heart rate information;It is worn on the predeterminated position of user according to earphone and heart rate information pushes and plays sound It is happy, it can be increased user to recommend and play personalized music for user and use the pleased of earphone without user's manual operation Happy sense, meets the individual demand of user;Meanwhile above-mentioned method for playing music, additional biography need not be increased in earphone Sensor can obtain the heart rate information of user, at low cost, and design is simple, has expanded the use function of common headphones, has improved use Family Experience Degree.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is the application environment schematic diagram of method for playing music in one embodiment;
Fig. 2 is the internal structure schematic diagram of terminal in one embodiment;
Fig. 3 is the flow diagram of method for playing music in one embodiment;
Fig. 4 is obtains the stream of pressure changing information generated due to vibration in the predetermined position in one embodiment Cheng Tu;
Fig. 5 is the flow chart of method for playing music in another embodiment;
Fig. 6 is to be worn on the predeterminated position of user according to earphone in one embodiment and heart rate information pushes and plays sound Happy flow chart;
Fig. 7 be in one embodiment when status indication be prenatal culture label when, play the flow chart of music;
Fig. 8 be in another embodiment when status indication be prenatal culture label when, play the flow chart of music;
Fig. 9 be in one embodiment when the status indication is movement mark, play the flow chart of music;
Figure 10 is the structure diagram of music player in one embodiment;
Figure 11 is the block diagram with the part-structure of the relevant mobile phone of terminal provided by the embodiments of the present application.
Specific implementation mode
It is with reference to the accompanying drawings and embodiments, right in order to make the object, technical solution and advantage of the application be more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
Unless otherwise defined, all of technologies and scientific terms used here by the article and belong to the technical field of the application The normally understood meaning of technical staff is identical.The term used in the description of the present application is intended merely to description tool herein The purpose of the embodiment of body, it is not intended that limitation the application.
Fig. 1 is the application environment schematic diagram that method of controlling operation thereof is inputted in one embodiment.As shown in Figure 1, this applies ring Border includes terminal 110 and the earphone 120 that is communicated with the terminal 110.
Wherein, being played in terminal 110 has audio signal, which includes but be not limited to song, video sound, conversation voice Deng terminal 110 is communicatively coupled with earphone 120.The type of earphone 120 can be In-Ear Headphones, PlayGear Stealth and head Headset etc., terminal 110 can be communicated with earphone 120 by wired or wireless mode, realize the transmission of data.
Application program (Application, APP) is installed, application program refers to a certain or more to complete in terminal 110 The computer program of item particular job, it operates in user mode, can be interacted with user, has visual user circle Face.Terminal 110 is interacted by application program and user, such as terminal 110 can play user by music application The song liked simultaneously recommends song etc. to user.
Fig. 2 is the internal structure schematic diagram of terminal in one embodiment.The terminal 110 includes being connected by system bus Processor, memory and display screen.Wherein, which supports the fortune of entire terminal 110 for providing calculating and control ability Row.Memory for storing data, program, and/or instruction code etc., at least one computer program is stored on memory, should Computer program can be executed by processor, to realize the music side suitable for terminal 110 provided in the embodiment of the present application Method.Memory may include that the non-volatile memories such as magnetic disc, CD, read-only memory (Read-Only Memory, ROM) are situated between Matter or random access memory (Random-Access-Memory, RAM) etc..For example, in one embodiment, memory packet Include non-volatile memory medium and built-in storage.Non-volatile memory medium is stored with operating system, database and computer journey Sequence.A kind of method for playing music relevant data provided for realizing above each embodiment are provided in the database. The computer program can be performed by processor, for realizing a kind of music side that each embodiment of the application is provided Method.Built-in storage provides the fortune of cache for operating system, database and the computer program in non-volatile memory medium Row environment.Display screen can be touch screen, for example be capacitance plate or electrical screen, be used for the interface information of display terminal 110, display Screen includes bright screen state and screen state of going out.The terminal 110 can be mobile phone, tablet computer or personal digital assistant or wearable Equipment etc..
It will be understood by those skilled in the art that structure shown in Figure 2, is only tied with the relevant part of application scheme The block diagram of structure, does not constitute the restriction for the terminal 110 being applied thereon to application scheme, and specific terminal 110 can wrap It includes than more or fewer components as shown in the figure, either combine certain components or is arranged with different components.
As shown in figure 3, for the flow chart of method for playing music in one embodiment, the music side in the present embodiment Method is described for running on the terminal in Fig. 1 and/or earphone.The method for playing music, includes the following steps 302 ~step 306:
Step 302:When earphone is worn on the predeterminated position of user, obtain what earphone was acquired in the predetermined position The pressure change signal generated due to vibration.
When user needs to listen to music using earphone, see video or receive calls etc., according to the type of earphone by ear Machine is worn on predeterminated position to receive the audio signal propagated on earphone.Wherein, predeterminated position can be user duct in, ear Piece, the positions such as belly.For example, In-Ear, PlayGear Stealth can be placed in duct, headphone can be according to different User group is worn on ear or on the belly of pregnant woman, for the foetus playing audio signal for user or pregnant woman.
When earphone is worn on user's ear or when in duct, duct can be blocked due to earphone between earphone and user's ear And a relatively closed cavity is formed, the contraction vibration of auditory canal wall can cause the variation of the cavity internal pressure.Wherein, ear-drum Movement is usually synchronous with the pulse of artery, and the change of pressure size can be by the microphone or electroacoustic transducer on earphone in duct It collects.
A relatively closed chamber can be formed when earphone is worn on the belly of pregnant woman, between earphone and the belly of pregnant woman Body, the contraction vibration of belly can cause the variation of the cavity internal pressure.Wherein, belly vibration usually with the heart rate of foetus It is synchronous, cavity internal pressure size between belly and earphone change can by earphone microphone or electroacoustic transducer acquire It arrives.
It should be noted that in step 302, obtains the pressure that earphone is generated in the predetermined position due to vibration and become Change signal it is to be understood that the processor in earphone is obtained by ear microphone or the collected pressure change letter of electroacoustic transducer Number, it is understood that it is to be obtained by ear microphone or the collected pressure of electroacoustic transducer with the terminal that the earphone is communicated Power variable signal, that is, the pressure change signal of acquisition is transferred to terminal by earphone carries out follow-up relevant treatment.
Step 304:Heart rate information is obtained according to the pressure change signal.
The bounce of heart has certain periodicity, and the bounce of heart can cause the contraction of auditory canal wall to be vibrated, according to acquisition Period of pressure change signal can reflect the bounce rule of heart to a certain extent, then the week of the pressure change signal The inverse of phase is heart rate information.
Further, the collected signal of microphone can also be filtered, to obtain the pressure change signal, Interference of the outside noise to pressure change signal can be excluded, period more specific pressure change signal can be also obtained, Signal waveforms are formed according to the pressure change signal, the pressure can be calculated by detecting the interval time of two neighboring wave crest The signal period of variable signal, which can reflect the bounce rule of heart to a certain extent, then the pressure change The inverse in the period of signal is heart rate information.
It should be noted that in step 302, heart rate information is obtained it is to be understood that ear according to the pressure change signal Processor in machine obtains heart rate information according to the pressure change signal, it is understood that is to be communicated with the earphone Terminal obtains pressure change signal, and obtains heart rate information according to pressure change signal, that is, the end communicated with the earphone End obtains heart rate information.
Step 306:It is pushed according to the predeterminated position and heart rate information and plays music.
Different heart rate informations can be used for characterizing different user groups, for example, residing for the heart rate of different age group user Range is different, 162 beats/min of the Fetal Heart Rate average out to before being pregnant 20 weeks, in 21~30 weeks Fetal Heart Rate average out to 147 that are pregnant Beat/min, in 31~40 139 beats/min of the pregnant week Fetal Heart Rate average out to that are pregnant;Neonatal normal heartbeat is 120-140 times/ Point;- 1 year old January was 110-130 beats/min;2-3 Sui is 100-120 beats/min;Adult normal heart rate is 60~100 beats/min;Always Year popular feeling jump is slower than young man.Meanwhile different heart rate informations can be also used for characterizing the movement state information of same user, example Such as, sleep state (40-70 beats/min), static (60-90 beats/min) state, ambulatory status, road-work state etc..
Can be that user pushes music list, and plays according to the heart rate information of predeterminated position and acquisition that earphone is worn Music in music list.For example, when earphone is placed in duct by user, it could be aware that and work as according to current heart rate information The motion state of preceding user pushes according to current motion state and plays the song for meeting current motion state;When user will When earphone is placed on the belly of user, the pregnant week phase of user foetus is could be aware that according to the heart rate information currently obtained, Meet the fetal music of current pregnant week phase according to the push of pregnant week phase, and plays the fetal music.
Above-mentioned method for playing music can wear the predeterminated position of earphone according to user, and be obtained accordingly in predeterminated position Heart rate information, according to the heart rate information of acquisition be user push and plays the music to match with the heart rate information, without use Family manual operation can increase the pleasant feeling that user uses earphone to recommend and play personalized music for user, meet The individual demand of user;Meanwhile above-mentioned method for playing music, need not increase additional sensor in earphone can obtain The heart rate information at family is taken, at low cost, design is simple, has expanded the use function of common headphones, has improved user experience.
It should be noted that step 302- steps 306, the executive agent of each step can be terminal, can also be ear Machine, here, not further limited.
Fig. 4 is obtains the stream of pressure changing information generated due to vibration in the predetermined position in one embodiment Cheng Tu.In one embodiment, the pressure changing information generated due to vibration in the predetermined position is obtained, including:
Step 402:Obtain the detection signal that earphone is acquired in the predetermined position.
Specifically, the detection signal in predetermined position can be acquired based on the electroacoustic transducer of earphone.Wherein, electroacoustic Energy converter is loud speaker, and the corresponding electric signal of audio signal can be converted into the acoustic signals that user can hear.Meanwhile electricity Sonic transducer is very sensitive to the sound wave in user's ear internal structure (duct), can cause the vibration of diffuser, band The dynamic coil being connected with cone makees the movement of cutting magnetic line in the magnetic field of permanent magnet, to generate the variation with sound wave And the electric current (the phenomenon that generating electric current is physically being known as electromagnetic induction phenomenon) changed, meanwhile, it will be exported at coil both ends The electromotive force of audio.Therefore, electroacoustic transducer can be used for acquiring the pressure change caused by the contraction vibration of auditory canal wall The pressure change signal and environmental disturbances signal of generation.That is, electroacoustic transducer can also be used as microphone to use.
It is understood that detection signal includes the pressure that pressure change generates caused by the contraction vibration of auditory canal wall Variable signal and the noise signal that heart rate information detection is interfered.Noise signal includes ambient noise and circuit noise, Ambient noise is external environment sound, and circuit noise is noise caused by earphone built-in circuit, is the build-in attribute of earphone.
When using the electroacoustic transducer in earphone come acquire due to auditory canal wall contraction vibration caused by pressure change generation Pressure change signal and when noise signal, acoustic echo letter need not be acquired by the way that microphone is additionally arranged in earphone Number, cost has been saved, the internal structure of earphone is simplified.
Optionally, it can also be acquired caused by the contraction vibration of auditory canal wall by the microphone being arranged in earphone The pressure change signal and noise signal that pressure change generates.Wherein, a cavity is set in earphone, microphone is installed In this cavity, there is hole at the ear casing that the mouth of the cavity is bonded, the cavity and the ear being bonded with hole when earphone is worn Exterior feature constitutes confined space.
Step 404:The detection signal is filtered, to filter out the interference signal in the detection signal, is obtained Take the pressure change signal.
Since the frequency of pulsatile motion is relatively low (0.3Hz-3Hz or so), and the noise frequency of outside noise signal is relatively Height can eliminate the influence of outside high-frequency noise by low-pass filter according to this feature.For example, low-pass filter can be with Select cutoff frequency for FIR filter of 5Hz etc..Wherein, low-pass filtering process can be carried out in earpiece side, can also be in terminal Side carry out, also can by filter be arranged in earphone, can also by filter be arranged in terminal, the present embodiment to this not It is defined.
Specifically, the detection signal acquired in predetermined position by microphone is first obtained, then with low-pass filter to wheat The detection signal of gram elegance collection carries out low-pass filtering, has obtained pressure change signal, and then can more accurately reflect user's heart Rate information.
Fig. 5 is the flow chart of method for playing music in another embodiment.In one embodiment, method for playing music is also Including:
Step 502:Status indication of the user to the operating mode of the earphone is obtained, the status indication includes at least silent Recognize label, movement mark and prenatal culture label.
The operating mode of earphone includes at least normal mode, motor pattern and prenatal culture pattern, corresponding status indication point It Wei not default label, movement mark and prenatal culture label.User can according to the demand of oneself come by the physical button of earphone or Corresponding operating mode is adjusted and be arranged with terminal that earphone is attached, for example, when user needs movement, can will be worked Pattern switching is motor pattern;When user needs to carry out prenatal culture for foetus, operating mode can be switched to prenatal culture pattern Deng.
Arbitrary wearing can be obtained based on the earphone when earphone is in normal mode when that is, status indication is default label The heart rate information of the earphone, and recommend music for the user, namely the user group using earphone is not limited.
When earphone is in motor pattern, i.e. status indication is movement mark.Such as user carry out on foot, running, cycle, Climb the mountain etc. various movements when, the current heart rate information of user can be obtained based on earphone, is user's recommendation according to the heart rate information With the music of current user heart rate information match, there is the company of music not only people can be allowed to feel to be in a cheerful frame of mind, it is impassioned in addition Music can also excite people move potential and cultivate a strong will, to reach better movement effects.
When earphone is in prenatal culture pattern, i.e. status indication marks for prenatal culture.Earphone is worn on the belly of user, is based on Earphone can obtain the heart rate information of user foetus, be that fetus recommends to match with the heart rate information according to the heart rate information Music, for foetus carry out prenatal culture.Wherein, embryo music education is stimulated by constantly imposing music appropriate to fetus, Aixs cylinder, dendron and the development of cynapse for promoting its neuron lay the foundation to optimize posteriori intelligence and development music talent. In terms of physiological action, fetal music causes the stimulation of pregnant woman and Fetal Hearing Monitored nervous organ by melodious pleasant acoustics The excitement of brain cell.
It should be noted that status indication have uniqueness, can with combinations such as different numbers, character, letters shape At, according to the status indication of acquisition can correspond to obtain current earphone operating mode.
Step 504:Prompt user that the earphone is worn on the predeterminated position according to the status indication.
Prompt user that earphone is worn on predeterminated position according to the status indication of acquisition, wherein predeterminated position can be to use The ear (duct) at family, or the belly of user.It is corresponding pre- when status indication is default label and movement mark If position is ear (duct);When status indication is that prenatal culture marks, corresponding predeterminated position is belly.According to the shape of acquisition State label can prompt user that earphone is worn on predeterminated position corresponding with status indication.
Wherein, it can be earphone voice prompt to prompt the prompting mode of user, or terminal display reminding and/voice Prompt.Earphone can prompt user in the form of voice broadcast, such as play " earphone is placed in duct " or " by earphone Be placed on belly " preset audio.Certainly, terminal can also be to prompt user in the form of voice broadcast, can also be Show that earphone needs picture or word of the predeterminated position placed etc. in terminal.
Step 506:Detect whether the earphone is worn on the predeterminated position based on the audio signal that earphone plays.
When user wear earphone when, can according to earphone play audio signal come detect the earphone whether be worn on it is default At position.Specifically, obtain the currently playing audio signal s (t) of earphone, at the same recording audio signal s (t) through duct duct or Belly reflects and the acoustic echo signal r (t) of vibration and formation, according to the audio signal s (t) of acquisition and acoustic echo signal r (t) it is assured that the acoustic echo impulse response w (t) of current earphone position.Wherein, audio signal s (t), acoustics return Acoustical signal r (t) and acoustic echo impulse response w (t) can be indicated with following formula:
R (t)=s (t) * w (t)
In formula, w (t) is a parameter that can reflect earphone and user's ear or belly coupling, can be used for characterizing ear Machine is placed on user's ear (duct) or is placed on the spatial-acoustic feature of belly.In formula, audio signal is s (t), acoustics Echo signal is that the voicefrequency circuit that r (t) can be arranged by earphone or electronic equipment is monitored and obtained, and then can obtain and earphone The associated echo impulse response w (t) in current location.
Further, earphone can be worn on to the first predetermined position (duct), and measure multiple echo impulse responses, To form first group of echo impulse response;Correspondingly, earphone can be worn on to the second predetermined position (belly), measure multiple Echo impulse response, to form second group of echo impulse response, according to the first echo impulse response of acquisition and second group of echo Impulse response forms database, the echo impulse response of acquisition is compared with the data in database, and then judge earphone Whether predeterminated position is worn on.For example, when the echo impulse response obtained is consistent with the data in database, then illustrate that earphone is worn It is worn over predeterminated position, while also can determine that the more specific location information of predeterminated position.
Fig. 6 is to be worn on the predeterminated position of user according to earphone in one embodiment and heart rate information pushes and plays sound Happy flow chart.In one embodiment, the predeterminated position of user is worn on according to earphone and heart rate information is pushed and played Music, including:
Step 602:Musical database corresponding with the status indication is called according to the status indication.
A kind of one musical database of status indication correspondence.Specifically, default label corresponds to and first music database;Fortune Dynamic label is corresponding and the second musical database, prenatal culture label correspond to third database.Wherein, each musical database includes The music etc. of a variety of styles.For example, the music in first music database may include that (children, blueness are few for suitable different age group Year, adult, the elderly) nursery rhymes, popular song, red song and square dance song etc. instantly;Sound in second musical database Pleasure may include that timing, rhythmical image be appropriate and suitable different motion state (sit quietly, walking, jog, climb the mountain, hurrying up, making a spurt) Body-building musical, body-building musical can reduce feeling of fatigue and enhance enthusiasm, while body-building musical can block feeling of fatigue and laborious Sense improves movement effects.Music in third musical database may include being suitble to different pregnant and perinatal periods (pregnant early stage, second trimester, pregnant Late period) have rhythm gentle, smooth, without the lyrics, the sentiment of melody answers gentle, sweet fetal music.
It should be noted that the music in musical database can be counted based on big data and be obtained, user can be to sound Music in happy database such as is updated, replaces, deleting at the operations.Wherein, musical database can be stored in terminal, can also Storage is in the server that terminal is communicated.
Step 604:The music list to match with the heart rate information is obtained in the musical database.
According to the status indication of acquisition, the musical database to match with state marked price can be obtained, and in the music The music list to match with user's Current heart rate is obtained in database.
When status indication is default label, according to the heart rate information currently obtained, the age information of user can be obtained, In first music database, the music list of the age information is met to user push.Specifically, different age group user Range residing for heart rate is different, and neonatal normal heartbeat is 120-140 beats/min;- 1 year old January was 110-130 beats/min;2-3 Sui It is 100-120 beats/min;Adult normal heart rate is 60~100 beats/min;The elderly's heartbeat is slower than young man.For example, obtain Heart rate information is 100-120 beats/min, could be aware that the user of currently used earphone is 2-3 Sui child, then in the music number According in library nursery rhymes etc. are pushed to user.
When status indication is movement mark, according to the heart rate information currently obtained, the motion state of user can be obtained, Such as the movements such as sleep, sit quietly, walking, jog, climb the mountain, hurrying up, making a spurt.Wherein, under static state, user's heart rate value is general Between 60~90, at maximum heart rate=220- ages of normal adults, when movement, does not exceed the maximum heart rate generally.Such as table Shown in 1:
Table 1 is the mapping table of heart rate information and motion state
In the second musical database, which is met to user push according to the motion state of active user Music list.
When status indication is that prenatal culture marks, pregnant woman foetus can be obtained according to the heart rate information currently obtained Age information can also obtain the pregnancy period of pregnant woman.For example, 162 beats/min of the Fetal Heart Rate average out to before being pregnant 20 weeks, In 21~30 weeks 147 beats/min of the average out to that are pregnant, in 139 beats/min of 31~40 pregnant week average out to of pregnancy.It is obtained according to current Heart rate information could be aware that the gestation of current pregnant woman, such as:Pregnant early stage, second trimester and pregnant late period.It can be according to pregnant woman Gestation, can be that it pushes corresponding music list.
For example, in pregnant early stage, the rhythmicity vibration of music is also a kind of good stimulation to the brain growth of fetus, this will promote Make fetal brain development.Pregnant early stage can select relaxation and happiness, humorous interesting, dulect music, as the purine of mermaid sings, Warm happiness, sunday park, Chinese olive tree etc.;In second trimester, there is first time movement of the foetus in fetus, indicates the maincenter of fetus Nervous system has broken up completion;Hearing, the eyesight of fetus start to develop rapidly, and gradually to the external world apply pressure, action, Sound makes corresponding reaction, and fetal music content can be more more rich, increases easily active, slightly allegro melody, mother Mother and baby increase interaction, such as drop the lyric holy flute quintet light breeze of the happy farmer of B the first piano concertos of ditty and blow, mutually stay liquor-saturated Deng;It is in the stage for the growth that body and mind is gradually stablized, cerebral neuron growth at full speed, the sense of hearing in the tire baby in pregnant late period Organ has been reached maturity, and structure is substantially identical with when being born, and at this moment can select both soft and full of hope pleasure Song, such as light night wind play the fetal music in the summer on my baby seashore of relative.
Step 606:The sound in the music list is played according to default broadcast strategy corresponding with the status indication It is happy.
After obtaining the music list to match with the heart rate information in the musical database, can according to state Corresponding default broadcast strategy is marked to play the music in music list.For example, when status indication is that prenatal culture marks, The information such as volume, the time that the music of required broadcasting can be filtered, while can also limit broadcasting, to protect tire The safety of youngster baby avoids causing it unnecessary injury etc..
Method for playing music in the present embodiment can be believed based on the status indication of earphone according to the heart rate currently obtained Breath pushes different music with different user groups, and the music of push can also be played out according to default broadcast strategy, The pleasant feeling using earphone for increasing user, has expanded the use function of common headphones, has improved user experience, meet use The individual demand at family.
Fig. 7 is the flow chart that further embodiment plays music.In one embodiment, when the status indication is prenatal culture When label, the broadcasting music, including:
Step 702:Obtain the pending audio that the music sound intermediate frequency frequency is higher than predeterminated frequency;
Wherein, the audio signal value that predeterminated frequency can receive for fetus.Specifically, predeterminated frequency can be set as 2000 Hertz.Obtain the pending audio signal for being higher than predeterminated frequency in music to be played.
Step 704:Low-pass filtering treatment is carried out to the pending audio, to filter the pending audio.
Audio by low-pass filter by the audio frequency in received music higher than predeterminated frequency is filtered, It to filter out to the harmful audio of fetus, and then can be good at protecting the hearing of fetus, avoid medium-high frequency sound to fetus Hearing cause to damage.
Step 706:In preset time, according to the music after default volume playback process.
Wherein, prenatal culture duration in preset time, can generally be set as 10-15 minutes.In the preset time of the setting, root Filtered treated music is played according to default volume.The size of wherein default volume can be heard according to adult across palm Volume in microphone, also that is, fetus is debugged in the volume that intrauterine can be heard;Thick pregnant of stomach wall Woman, volume can be somewhat larger;The thin pregnant woman of stomach wall, volume should be appropriate smaller.
In the present embodiment, when playing the music of music list, the audio higher than predeterminated frequency can be filtered, It to filter out to the harmful audio of fetus, and then can be good at protecting the hearing of fetus, avoid medium-high frequency sound to fetus Hearing cause to damage;It, can by controlling the size of the duration played, volume meanwhile when playing the music after being filtered Broadcasting music to further avoid long-time, high-decibel causes to damage to the hearing of fetus.
Fig. 8 be one embodiment in, when status indication be prenatal culture mark when, it is described play music flow chart.At one In embodiment, when status indication is that prenatal culture marks, the broadcasting music further includes:
Step 802:It prompts the user whether to record the heart rate signal.
When status indication is that prenatal culture marks, the heart rate signal obtained is the heart rate signal of fetus, that is, Fetal Heart Rate. When obtaining Fetal Heart Rate, prompt the user whether to record the heart rate signal.Prompting mode can carry for voice prompt, display Show.For example, the voice prompt of " whether recording Fetal Heart Rate " can be sent out, which can be played by earphone, also may be used Directly to be played by terminal;It can also be displayed on the terminals " whether to record fetal rhythm by way of showing picture and/or word The prompt message of rate ".
It should be noted that prompting the user whether that the prompting mode recorded to heart rate signal, suggestion content are equal again It is not further limited, it can be according to the self-defined setting of needs of user.
Step 804:The trigger action for receiving user records the heart rate information based on the earphone.
The trigger action of user is received, which is used to indicate earphone and executes the operation for recording the heart rate information.Its In, trigger action can be user-defined speech trigger, such as " recording Fetal Heart Rate ", can also be based on terminal or earphone Touch control operations such as click, sliding etc..Again, not further to the trigger action of user to be limited.
When terminal or earphone receive the trigger action of user, microphone or electroacoustic transducer based on earphone record institute State heart rate information.
Method for playing music in the present embodiment can be recorded the heart rate information of fetus based on earphone, and be recorded to it Storage is marked in the Fetal Heart Rate of system, can give over to the Experience Degree that user is improved as souvenir.
Fig. 9 is the flow chart that music is played in another embodiment.In one embodiment, when the status indication is fortune When dynamic label, the broadcasting music, including:
Step 902:When playing music, the heart rate information of active user is detected according to predetermined period.
When the status indication of earphone is movement mark, it can be played according to the current heart rate information of user and be believed with the heart rate The matched music of manner of breathing.During playing music, the heart rate information of active user is detected according to predetermined period.Wherein, in advance If the period could be provided as 10-30 minutes.When needing to detect the heart rate information of user, suspend the music being currently played, Based on the pressure change signal generated due to vibration in earphone acquisition duct, and obtain the heart rate information of active user.
Step 904:When the heart rate information is persistently more than the first default heart rate value, the behaviour for reminding active user is executed Make.
When the heart rate information detected is persistently more than the first default heart rate value, the operation for reminding active user is executed.Its In, the first default heart rate value is 80%~90% maximum heart rate, maximum heart rate=220- ages of normal adults.Persistently it is more than The heart rate information that first default heart rate value can be understood as measuring twice in succession is all higher than the first default heart rate value.When the heart rate When information is persistently more than the first default heart rate value, the operation for reminding active user is executed.Wherein it is possible to be reminded by earphone, bell The modes such as sound prompting, vibrating alert, display alarm remind user's stopped taking exercises, take a good rest.In the present embodiment, not Limit its alerting pattern, reminded contents.
Step 906:When the heart rate information is less than the second default heart rate value, the sound being currently played is closed or suspended It is happy.
When the heart rate information detected is less than the second default heart rate value, the music for being currently used in broadcasting is closed or suspended. Wherein, the second default heart rate value can be set as 40~60 points/time, that is, when the heart rate information detected is less than 40~60 points/time When, it is believed that active user has been enter into sleep state, can control the music that closing or pause are currently played, to reduce Power consumption caused by due to playing music.
Although should be understood that the corresponding flow chart of above-described embodiment in each step according to arrow instruction successively It has been shown that, but these steps are not the inevitable sequence indicated according to arrow to be executed successively.Unless expressly state otherwise herein, There is no stringent sequences to limit for the execution of these steps, these steps can execute in other order.Moreover, in Fig. 3-9 At least part step may include multiple sub-steps either these sub-steps of multiple stages or stage be not necessarily Synchronization executes completion, but can execute at different times, and the execution sequence in these sub-steps or stage also need not Be so carry out successively, but can with other steps either the sub-step of other steps or at least part in stage in turn or Person alternately executes.
As shown in Figure 10, in one embodiment, a kind of music player is provided, which includes:
Signal acquisition module 1010 when predeterminated position for being worn on user when earphone, obtains earphone described pre- If the pressure change signal generated due to vibration at position;
Heart rate acquisition module 1020, for obtaining heart rate information according to the pressure change signal;
Music playing module 1030, for being worn on the predeterminated position of user according to earphone and heart rate information is pushed and broadcast It puts the music on.
Above-mentioned music player can wear the predeterminated position of earphone according to user, and be obtained accordingly in predeterminated position Heart rate information, according to the heart rate information of acquisition be user push and plays the music to match with the heart rate information, without use Family manual operation can increase the pleasant feeling that user uses earphone to recommend and play personalized music for user, meet The individual demand of user;Meanwhile above-mentioned method for playing music, need not increase additional sensor in earphone can obtain The heart rate information at family is taken, at low cost, design is simple, has expanded the use function of common headphones, has improved user experience.
In one embodiment, music player further includes:
Mark acquisition module, the status indication for obtaining user to the operating mode of the earphone, the status indication It is marked including at least default label, movement mark and prenatal culture;
Reminding module, for prompting user that the earphone is worn on the predeterminated position according to the status indication;
Judgment module, the audio signal for being played based on earphone detect whether the earphone is worn on the default position It sets.
In one embodiment, signal acquisition module, including:
Collecting unit, the detection signal acquired in the predetermined position for obtaining earphone;
Filter unit is believed for being filtered to the detection signal with filtering out the noise in the detection signal Number, obtain the pressure change signal.
In one embodiment, music playing module, including:
Call unit, for calling musical database corresponding with the status indication according to the status indication;
List acquiring unit is arranged for obtaining the music to match with the heart rate information in the musical database Table;
Broadcast unit, for being played in the music list according to default broadcast strategy corresponding with the status indication Music.
In one embodiment, when the status indication is that prenatal culture marks, the broadcast unit is for obtaining the sound Happy sound intermediate frequency frequency is higher than the pending audio of predeterminated frequency;Low-pass filtering treatment is carried out to the pending audio, with filtering The pending audio;In preset time, according to the music after default volume playback process.
In one embodiment, when the status indication is that prenatal culture marks, the broadcast unit is additionally operable to prompt user Whether the heart rate signal is recorded;The trigger action for receiving user records the heart rate information based on the earphone.
In one embodiment, when the status indication is movement mark, when the broadcast unit is used to play music, The heart rate information of active user is detected according to predetermined period;When the heart rate information is persistently more than the first default heart rate value, hold Row reminds the operation of user;When the heart rate information is less than the second default heart rate value, closes or pause is currently played Music.
The division of modules is only used for for example, in other embodiments in above-mentioned music player, can be by sound Music playing device is divided into different modules as required, to complete all or part of function of above-mentioned music player.
Specific about music player limits the restriction that may refer to above for method for playing music, herein not It repeats again.Modules in above-mentioned music player can be realized fully or partially through software, hardware and combinations thereof.On Stating each module can be embedded in or independently of in the processor in computer equipment, can also store in a software form in the form of hardware In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
Realizing for modules in the music player provided in the embodiment of the present application can be the shape of computer program Formula.The computer program can be run in terminal or server.The program module that the computer program is constituted is storable in terminal Or on the memory of server.When the computer program is executed by processor, the music described in the embodiment of the present application is realized The step of playback method.
The embodiment of the present application also provides a kind of earphone, which includes acquisition module, memory, processor and is stored in On memory and the computer program that can run on a processor, the processor respectively with the acquisition module, memory electricity Connection, the acquisition module are used to acquire the pressure change signal generated due to vibration, the place in the predetermined position Reason device realizes the method for playing music as described in the various embodiments described above when executing the computer program.
In one embodiment, the acquisition module is electroacoustic transducer, and the electroacoustic transducer is for playing the sound Frequency signal, and for acquiring the pressure change signal generated due to vibration in the predetermined position, wherein the electroacoustic changes Energy device is loud speaker or loudspeaker.
In one embodiment, the acquisition module is microphone, for being acquired due to vibration in the predetermined position And the pressure change signal generated.
Further, when acquisition module is microphone, which further includes loud speaker, and the loud speaker is described for playing Audio signal.
The embodiment of the present application also provides a kind of computer readable storage mediums.One or more is executable comprising computer The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors When so that the processor executes the method for playing music as described in the various embodiments described above.
The embodiment of the present application also provides a kind of computer program products.A kind of computer program product including instruction, When run on a computer so that computer executes the method for playing music described in the various embodiments described above.
The embodiment of the present application also provides a kind of terminal devices.As shown in figure 11, for convenience of description, it illustrates only and this Apply for that the relevant part of embodiment, particular technique details are not disclosed, please refers to the embodiment of the present application method part.The terminal is set Include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS for that can be The arbitrary terminal device such as (Point of Sales, sell electronic equipment), vehicle-mounted computer, Wearable is with terminal device For mobile phone:
Figure 11 is the block diagram with the part-structure of the relevant mobile phone of terminal device provided by the embodiments of the present application.Reference chart 11, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 1110, memory 1120, input unit 1130, display unit 1140, sensor 1150, voicefrequency circuit 1160, Wireless Fidelity (wireless fidelity, WiFi) module 1170, processor The components such as 1180 and power supply 1190.It will be understood by those skilled in the art that handset structure shown in Figure 11 does not constitute opponent The restriction of machine may include either combining certain components or different components arrangement than illustrating more or fewer components.
Wherein, RF circuits 1110 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station After downlink information receives, handled to processor 1180;The data of uplink can also be sent to base station.In general, RF circuits include But be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 1110 can also be communicated with network and other equipment by radio communication.It is above-mentioned wireless Communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, Short message service (Short Messaging Service, SMS) etc..
Memory 1120 can be used for storing software program and module, and processor 1180 is stored in memory by operation 1120 software program and module, to execute various function application and the data processing of mobile phone.Memory 1120 can be led To include program storage area and data storage area, wherein program storage area can storage program area, needed at least one function Application program (such as the application program of sound-playing function, application program of image player function etc.) etc.;It data storage area can Storage uses created data (such as audio data, address list etc.) etc. according to mobile phone.In addition, memory 1120 can wrap High-speed random access memory is included, can also include nonvolatile memory, for example, at least disk memory, a flash memories Part or other volatile solid-state parts.
Input unit 1130 can be used for receiving the number or character information of input, and generates and set with the user of mobile phone 1100 It sets and the related key signals of function control inputs.Specifically, input unit 1130 may include operation panel 1131 and other Input equipment 1132.Operation panel 1131, alternatively referred to as touch screen collect user on it or neighbouring touch operation (are compared Such as user is using finger, stylus any suitable object or attachment on operation panel 1131 or near operation panel 1131 Operation), and corresponding attachment device is driven according to preset formula.In one embodiment, operation panel 1131 can Including both touch detecting apparatus and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and examine The signal that touch operation is brought is surveyed, touch controller is transmitted a signal to;Touch controller is received from touch detecting apparatus to be touched Information is touched, and is converted into contact coordinate, then gives processor 1180, and order that processor 1180 is sent can be received and added To execute.Furthermore, it is possible to realize operation panel using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves 1131.In addition to operation panel 1131, input unit 1130 can also include other input equipments 1132.Specifically, other are inputted Equipment 1132 can include but is not limited to one in physical keyboard, function key (such as volume control button, switch key etc.) etc. Kind is a variety of.
Display unit 1140 can be used for showing information input by user or be supplied to user information and mobile phone it is each Kind menu.Display unit 1140 may include display panel 1141.In one embodiment, liquid crystal display may be used (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, ) etc. OLED forms configure display panel 1141.In one embodiment, operation panel 1131 can cover display panel 1141, When operation panel 1131 detects on it or after neighbouring touch operation, processor 1180 is sent to determine touch event Type is followed by subsequent processing device 1180 and provides corresponding visual output on display panel 1141 according to the type of touch event.Although In fig. 11, operation panel 1131 and display panel 1141 are to realize the input and input of mobile phone as two independent components Function, but in some embodiments it is possible to operation panel 1131 and display panel 1141 are integrated and are realized the input of mobile phone And output function.
Mobile phone 1100 may also include at least one sensor 1150, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor may include ambient light sensor and range sensor, wherein ambient light sensor can be according to ring The light and shade of border light adjusts the brightness of display panel 1141, and range sensor can close display when mobile phone is moved in one's ear Panel 1141 and/or backlight.Motion sensor may include acceleration transducer, can detect all directions by acceleration transducer The size of upper acceleration can detect that size and the direction of gravity when static, the application that can be used to identify mobile phone posture is (such as horizontal Vertical screen switches), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, Other sensors such as hygrometer, thermometer, infrared sensor etc..
Voicefrequency circuit 1160, loud speaker 1161 and microphone 1162 can provide the audio interface between user and mobile phone.Sound The transformed electric signal of the audio data received can be transferred to loud speaker 1161 by frequency circuit 1160, by 1161 turns of loud speaker It is changed to voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1162, by voicefrequency circuit Audio data is converted to after 1160 receptions, then by after the processing of audio data output processor 1180, can be sent out through RF circuits 1110 Another mobile phone is given, or audio data is exported to memory 1120 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1170 Part, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Figure 11 is shown WiFi module 1170, but it is understood that, and it is not belonging to must be configured into for mobile phone 1100, it can save as needed Slightly.
Processor 1180 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, By running or execute the software program and/or module that are stored in memory 1120, and calls and be stored in memory 1120 Interior data execute the various functions and processing data of mobile phone, to carry out whole monitoring to mobile phone.In one embodiment, Processor 1180 may include one or more processing units.In one embodiment, processor 1180 can integrate application processor And modem, wherein the main processing operation system of application processor, user interface and application program etc.;Modem Main processing wireless communication.It is understood that above-mentioned modem can not also be integrated into processor 1180.For example, The processor 1180 can integrate application processor and baseband processor, baseband processor with and the composable tune such as other peripheral chips Modulator-demodulator.Mobile phone 1100 further includes the power supply 1190 (such as battery) powered to all parts, it is preferred that power supply can pass through Power-supply management system and processor 1180 are logically contiguous, to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.
In one embodiment, mobile phone 1100 can also include camera, bluetooth module etc..
In the embodiment of the present application, when the processor included by the mobile phone executes the computer program of storage on a memory Realize above-mentioned described method for playing music.
When the execution of the computer program run on a processor, the equipment cost of monitoring user health data is saved, Keep the mode that user obtains health data more convenient, and promotes the man-machine interaction experience of user.
Used in this application may include to any reference of memory, storage, database or other media is non-volatile And/or volatile memory.Suitable nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access Memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as It is static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously Cannot the limitation to the application the scope of the claims therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, under the premise of not departing from the application design, various modifications and improvements can be made, these belong to the guarantor of the application Protect range.Therefore, the protection domain of the application patent should be determined by the appended claims.

Claims (14)

1. a kind of method for playing music, which is characterized in that including:
When earphone is worn on the predeterminated position of user, obtains earphone and produced due to vibration what the predetermined position acquired Raw pressure change signal;
Heart rate information is obtained according to the pressure change signal;
The predeterminated position and heart rate information worn according to earphone push and play music.
2. according to the method described in claim 1, it is characterized in that, further including:
Status indication of the user to the operating mode of the earphone is obtained, the status indication includes at least default label, movement Label and prenatal culture label;
Prompt user that the earphone is worn on the predeterminated position according to the status indication;
Detect whether the earphone is worn on the predeterminated position based on the audio signal that earphone plays.
3. according to the method described in claim 1, it is characterized in that, the acquisition is produced in the predetermined position due to vibration Raw pressure changing information, including:
Obtain the detection signal that earphone is acquired in the predetermined position;
The detection signal is filtered, to filter out the noise signal in the detection signal, the pressure is obtained and becomes Change signal.
4. according to the method described in claim 2, it is characterized in that, the predeterminated position worn according to earphone and heart rate letter Breath pushes and plays music, including:
Musical database corresponding with the status indication is called according to the status indication;
The music list to match with the heart rate information is obtained in the musical database;
The music in the music list is played according to default broadcast strategy corresponding with the status indication.
5. according to the method described in claim 2, it is characterized in that, when the status indication be prenatal culture mark when, the broadcasting Music, including:
Obtain the pending audio that the music sound intermediate frequency frequency is higher than predeterminated frequency;
Low-pass filtering treatment is carried out to the pending audio, to filter the pending audio;
In preset time, according to the music after default volume playback process.
6. according to the method described in claim 5, it is characterized in that, further including:
It prompts the user whether to record the heart rate signal;
The trigger action for receiving user records the heart rate information based on the earphone.
7. according to the method described in claim 2, it is characterized in that, when the status indication be movement mark when, the broadcasting Music, including:
When playing music, the heart rate information of active user is detected according to predetermined period;
When the heart rate information is persistently more than the first default heart rate value, the operation for reminding user is executed;
When the heart rate information is less than the second default heart rate value, the music being currently played is closed or suspended.
8. a kind of music player, which is characterized in that including:
Signal acquisition module when predeterminated position for being worn on user when earphone, obtains earphone in the predetermined position The pressure change signal of acquisition generated due to vibration;
Heart rate acquisition module, for obtaining heart rate information according to the pressure change signal;
Music playing module, predeterminated position and heart rate information for being worn according to earphone push and play music.
9. a kind of terminal, including memory and processor, computer-readable instruction, described instruction quilt are stored in the memory When the processor executes so that the processor executes the step of method as described in any one of claim 1 to 7.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method as described in any one of claim 1 to 7 is realized when being executed by processor.
11. a kind of earphone, which is characterized in that including:Acquisition module, memory, processor and storage are on a memory and can be The computer program run on processor, the processor are electrically connected with the acquisition module, memory respectively, the acquisition mould Block is used to acquire the pressure change signal generated due to vibration in the predetermined position;The processor executes the calculating The step of any one of claim 1 to 7 the method is realized when machine program.
12. earphone according to claim 11, which is characterized in that the acquisition module is electroacoustic transducer, the electroacoustic Energy converter is for playing the audio signal, and the pressure change for being generated due to vibration in predetermined position acquisition Signal.
13. earphone according to claim 11, which is characterized in that the acquisition module is microphone, for described pre- If acquiring the pressure change signal generated due to vibration at position.
14. earphone according to claim 13, which is characterized in that further include for playing raising one's voice for the audio signal Device.
CN201810520742.5A 2018-05-28 2018-05-28 Music playing method, device, terminal, earphone and readable storage medium Active CN108429972B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810520742.5A CN108429972B (en) 2018-05-28 2018-05-28 Music playing method, device, terminal, earphone and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810520742.5A CN108429972B (en) 2018-05-28 2018-05-28 Music playing method, device, terminal, earphone and readable storage medium

Publications (2)

Publication Number Publication Date
CN108429972A true CN108429972A (en) 2018-08-21
CN108429972B CN108429972B (en) 2019-12-27

Family

ID=63164242

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810520742.5A Active CN108429972B (en) 2018-05-28 2018-05-28 Music playing method, device, terminal, earphone and readable storage medium

Country Status (1)

Country Link
CN (1) CN108429972B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109688503A (en) * 2019-01-15 2019-04-26 浙江强脑科技有限公司 Psychological response condition detecting system and method
CN109765784A (en) * 2019-01-11 2019-05-17 深圳市迷购网络科技有限公司 Headset control method, earphone and computer readable storage medium
CN111966319A (en) * 2020-07-16 2020-11-20 珠海市杰理科技股份有限公司 Audio control method, device, system, storage medium and terminal
CN112416285A (en) * 2019-08-20 2021-02-26 奇酷互联网络科技(深圳)有限公司 Intelligent earphone playing method, intelligent earphone and storage medium
CN113425276A (en) * 2021-06-28 2021-09-24 南昌勤胜电子科技有限公司 Heart rate monitoring method, earphone and computer storage medium
CN113475094A (en) * 2020-01-29 2021-10-01 谷歌有限责任公司 Different head detection in headphones
CN113536027A (en) * 2021-07-27 2021-10-22 咪咕音乐有限公司 Music recommendation method, device, equipment and computer readable storage medium
CN113891209A (en) * 2021-09-27 2022-01-04 深圳艾创力科技有限公司 Earphone noise reduction method, system, device and storage medium
CN114385108A (en) * 2021-12-23 2022-04-22 咪咕音乐有限公司 Comment display method, device and storage medium in music playing process

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2710074Y (en) * 2004-07-13 2005-07-13 黄茂雄 Auditory device for listening fetal heart sound
CN201015222Y (en) * 2007-02-08 2008-01-30 杨健飞 Earmuff music player
WO2010079257A1 (en) * 2009-01-07 2010-07-15 Tampereen Teknillinen Yliopisto A device, an apparatus and a method for measuring biological information
CN202352116U (en) * 2011-12-21 2012-07-25 王洪芬 Novel antenatal training device
CN202601189U (en) * 2012-05-17 2012-12-12 深圳市达人电器有限公司 Music playing apparatus and device for fetus and infant
CN104244127A (en) * 2014-08-25 2014-12-24 歌尔声学股份有限公司 Heart rate detection method applied to ear phone and ear phone capable of detecting heart rate
CN106340314A (en) * 2016-08-23 2017-01-18 乐视控股(北京)有限公司 Music playing method and headphone
US20170111722A1 (en) * 2015-10-20 2017-04-20 Bragi GmbH Multi-point Multiple Sensor Array for Data Sensing and Processing System and Method
CN106658256A (en) * 2016-10-27 2017-05-10 努比亚技术有限公司 Earphone, terminal and terminal control method
CN106687958A (en) * 2016-12-08 2017-05-17 深圳市汇顶科技股份有限公司 Audio playing device, system and method
CN107569217A (en) * 2017-08-29 2018-01-12 上海展扬通信技术有限公司 A kind of control method of intelligent earphone and the intelligent earphone

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2710074Y (en) * 2004-07-13 2005-07-13 黄茂雄 Auditory device for listening fetal heart sound
CN201015222Y (en) * 2007-02-08 2008-01-30 杨健飞 Earmuff music player
WO2010079257A1 (en) * 2009-01-07 2010-07-15 Tampereen Teknillinen Yliopisto A device, an apparatus and a method for measuring biological information
CN202352116U (en) * 2011-12-21 2012-07-25 王洪芬 Novel antenatal training device
CN202601189U (en) * 2012-05-17 2012-12-12 深圳市达人电器有限公司 Music playing apparatus and device for fetus and infant
CN104244127A (en) * 2014-08-25 2014-12-24 歌尔声学股份有限公司 Heart rate detection method applied to ear phone and ear phone capable of detecting heart rate
US20170111722A1 (en) * 2015-10-20 2017-04-20 Bragi GmbH Multi-point Multiple Sensor Array for Data Sensing and Processing System and Method
CN106340314A (en) * 2016-08-23 2017-01-18 乐视控股(北京)有限公司 Music playing method and headphone
CN106658256A (en) * 2016-10-27 2017-05-10 努比亚技术有限公司 Earphone, terminal and terminal control method
CN106687958A (en) * 2016-12-08 2017-05-17 深圳市汇顶科技股份有限公司 Audio playing device, system and method
CN107569217A (en) * 2017-08-29 2018-01-12 上海展扬通信技术有限公司 A kind of control method of intelligent earphone and the intelligent earphone

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
栾文民: "《家庭实用医学大典》", 31 January 1997, 北京:中国青年出版社 *
欧德赛: "《父母决定孩子一生的300个胎教忠告》", 31 January 2004, 北京:中国和平出版社 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109765784A (en) * 2019-01-11 2019-05-17 深圳市迷购网络科技有限公司 Headset control method, earphone and computer readable storage medium
CN109688503A (en) * 2019-01-15 2019-04-26 浙江强脑科技有限公司 Psychological response condition detecting system and method
CN109688503B (en) * 2019-01-15 2020-11-06 浙江强脑科技有限公司 Psychological perception state detection system and method
CN112416285A (en) * 2019-08-20 2021-02-26 奇酷互联网络科技(深圳)有限公司 Intelligent earphone playing method, intelligent earphone and storage medium
CN113475094A (en) * 2020-01-29 2021-10-01 谷歌有限责任公司 Different head detection in headphones
CN113475094B (en) * 2020-01-29 2024-04-19 谷歌有限责任公司 Different head detection in headphones
CN111966319A (en) * 2020-07-16 2020-11-20 珠海市杰理科技股份有限公司 Audio control method, device, system, storage medium and terminal
CN111966319B (en) * 2020-07-16 2024-04-23 珠海市杰理科技股份有限公司 Audio control method, device, system, storage medium and terminal
CN113425276A (en) * 2021-06-28 2021-09-24 南昌勤胜电子科技有限公司 Heart rate monitoring method, earphone and computer storage medium
CN113536027A (en) * 2021-07-27 2021-10-22 咪咕音乐有限公司 Music recommendation method, device, equipment and computer readable storage medium
CN113891209A (en) * 2021-09-27 2022-01-04 深圳艾创力科技有限公司 Earphone noise reduction method, system, device and storage medium
CN114385108A (en) * 2021-12-23 2022-04-22 咪咕音乐有限公司 Comment display method, device and storage medium in music playing process

Also Published As

Publication number Publication date
CN108429972B (en) 2019-12-27

Similar Documents

Publication Publication Date Title
CN108429972A (en) Method for playing music, device, terminal, earphone and readable storage medium storing program for executing
CN108803859A (en) Information processing method, device, terminal, earphone and readable storage medium storing program for executing
WO2020191582A1 (en) Smart watch having embedded wireless earbud, and information broadcasting method
CN108391207A (en) Data processing method, device, terminal, earphone and readable storage medium storing program for executing
CN106535044A (en) Intelligent sound equipment playing control method and music playing control system
TW201510740A (en) Method and system for communicatively coupling a wearable computer with one or more non-wearable computers
CN108763901A (en) Ear line information acquisition method and device, terminal, earphone and readable storage medium storing program for executing
CN109558100A (en) Adjusting method, terminal and the computer readable storage medium of screen display parameters
CN108710486A (en) Audio frequency playing method, device, earphone and computer readable storage medium
CN110070863A (en) A kind of sound control method and device
CN203539336U (en) Voice interactive intelligent fitness sport wristband
CN106878390A (en) Electronic pet interaction control method, device and wearable device
CN106210355A (en) A kind of method and apparatus of hypnosis
CN108429970A (en) Audio frequency playing method, device, terminal, earphone and readable storage medium storing program for executing
CN205160790U (en) Take osteoacusis intelligence wrist -watch audiphone of bluetooth and speech exchange
CN107734426A (en) Acoustic signal processing method, terminal and computer-readable recording medium
CN106210266A (en) A kind of acoustic signal processing method and audio signal processor
CN110246513A (en) The processing method and mobile terminal of voice signal
CN108540665A (en) Based on flexible terminal and its massage method, computer readable storage medium
CN108353227A (en) Continue sound pressure level monitoring
CN110083331A (en) Wearable device play mode control method, device, wearable device and medium
CN108735194A (en) The reminding method and device of beat
US9700279B2 (en) Hands-free stethoscope
CN108922224B (en) Position prompting method and related product
CN108810787A (en) Foreign matter detecting method and device based on audio frequency apparatus, 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
GR01 Patent grant
GR01 Patent grant