CN108363530A - Electronic device, method for playing music and related product - Google Patents
Electronic device, method for playing music and related product Download PDFInfo
- Publication number
- CN108363530A CN108363530A CN201810150098.7A CN201810150098A CN108363530A CN 108363530 A CN108363530 A CN 108363530A CN 201810150098 A CN201810150098 A CN 201810150098A CN 108363530 A CN108363530 A CN 108363530A
- Authority
- CN
- China
- Prior art keywords
- mood
- eeg signal
- user
- value
- song
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 230000036651 mood Effects 0.000 claims abstract description 217
- 210000004556 brain Anatomy 0.000 claims abstract description 116
- 230000008451 emotion Effects 0.000 claims abstract description 76
- 238000013507 mapping Methods 0.000 claims description 30
- 230000008859 change Effects 0.000 claims description 18
- 230000002996 emotional effect Effects 0.000 claims description 18
- 238000006243 chemical reaction Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 13
- 238000004891 communication Methods 0.000 claims description 9
- 241000208340 Araliaceae Species 0.000 claims description 6
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims description 6
- 235000003140 Panax quinquefolius Nutrition 0.000 claims description 6
- 235000008434 ginseng Nutrition 0.000 claims description 6
- 239000000284 extract Substances 0.000 claims description 5
- 238000013497 data interchange Methods 0.000 claims description 2
- 238000012545 processing Methods 0.000 description 25
- 238000010586 diagram Methods 0.000 description 16
- 230000006870 function Effects 0.000 description 15
- 210000003128 head Anatomy 0.000 description 10
- 238000001514 detection method Methods 0.000 description 7
- 238000001914 filtration Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000033764 rhythmic process Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000000605 extraction Methods 0.000 description 4
- 230000004118 muscle contraction Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000002224 dissection Methods 0.000 description 3
- 238000007781 pre-processing Methods 0.000 description 3
- 206010027940 Mood altered Diseases 0.000 description 2
- 230000003321 amplification Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000007510 mood change Effects 0.000 description 2
- 238000003199 nucleic acid amplification method Methods 0.000 description 2
- 230000001052 transient effect Effects 0.000 description 2
- 206010027951 Mood swings Diseases 0.000 description 1
- 230000007177 brain activity Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 230000007717 exclusion Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000002156 mixing Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 238000011002 quantification Methods 0.000 description 1
- 239000011435 rock Substances 0.000 description 1
- 210000004761 scalp Anatomy 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
- G06F3/015—Input arrangements based on nervous system activity detection, e.g. brain waves [EEG] detection, electromyograms [EMG] detection, electrodermal response detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0482—Interaction with lists of selectable items, e.g. menus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/01—Indexing scheme relating to G06F3/01
- G06F2203/011—Emotion or mood input determined on the basis of sensed human body parameters such as pulse, heart rate or beat, temperature of skin, facial expressions, iris, voice pitch, brain activity patterns
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Dermatology (AREA)
- General Health & Medical Sciences (AREA)
- Neurology (AREA)
- Neurosurgery (AREA)
- Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)
Abstract
A kind of electronic device of the embodiment of the present application offer, method for playing music and its Related product, wherein electronic device, including brain wave sensor and processor, brain wave sensor are coupled with processor, and this method includes:The first eeg signal of user is acquired by brain wave sensor;The first mood of user is determined according to the first eeg signal;It determines corresponding first song book of the first mood, determines corresponding the first play parameter for playing the first song book of the first mood;The first song book is played according to the first play parameter.The embodiment of the present application can realize the emotion control music according to user.
Description
Technical field
This application involves signal processing technology fields, and in particular to a kind of electronic device, method for playing music and its correlation
Product.
Background technology
As the improvement of people's living standards, the electronic devices such as mobile phone have become a kind of necessity, mobile phone is being used
When equal electronic devices, many users can use music playback function.Electronic equipment plays back music is used in user, is broadcast in song
It will appear different moods when putting, user needs selection and current emotional phase in electronic device manually when mood changes
Corresponding song plays out, thus intelligent relatively low in playback of songs.
Invention content
A kind of electronic device of the embodiment of the present application offer, method for playing music and its Related product, can realize according to use
The emotion control music at family.
The first aspect of the embodiment of the present application provides a kind of electronic device, including brain wave sensor and processor, institute
Brain wave sensor is stated to couple with the processor, wherein
The brain wave sensor, the first eeg signal for acquiring user;
The processor, the first mood for determining the user according to first eeg signal;Described in determination
Corresponding first song book of first mood determines corresponding the first broadcasting ginseng for playing first song book of first mood
Number;First song book is played according to first play parameter.
The second aspect of the embodiment of the present application provides a kind of method for playing music, is applied to electronic device, the electronics
Device includes brain wave sensor, and this method includes:
The first eeg signal of user is acquired by the brain wave sensor;
The first mood of the user is determined according to first eeg signal;
It determines corresponding first song book of first mood, determines that first mood is corresponding and play first song
First play parameter of song collection;
First song book is played according to first play parameter.
The third aspect of the embodiment of the present application provides a kind of music player, is applied to electronic device, electronic device
Including brain wave sensor, music player includes collecting unit, determination unit and broadcast unit, wherein
The collecting unit, the first eeg signal for acquiring user by the brain wave sensor;
The determination unit, the first mood for determining the user according to first eeg signal;And really
Determine corresponding first song book of first mood, determines that first mood is corresponding and play the first of first song book
Play parameter;
The broadcast unit, for playing first song book according to first play parameter.
The fourth aspect of the embodiment of the present application provides a kind of electronic device, including processor, memory, communication interface and
One or more programs, wherein said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned
It manages device to execute, above procedure includes the instruction for executing the step in the embodiment of the present application second aspect.
5th aspect of the embodiment of the present application provides a kind of computer readable storage medium, wherein above computer can
Read computer program of the storage medium storage for electronic data interchange, wherein above computer program makes computer execute
The step some or all of as described in the embodiment of the present application second aspect.
6th aspect of the embodiment of the present application provides a kind of computer program product, wherein above computer program is produced
Product include the non-transient computer readable storage medium for storing computer program, and above computer program is operable to make meter
Calculation machine executes the step some or all of as described in the embodiment of the present application second aspect.The computer program product can be
One software installation packet.
Implement the embodiment of the present application, has the advantages that:
As can be seen that by the embodiment of the present application, electronic device is first by brain wave sensor to the brain wave of user
Signal is acquired, and secondly, the mood of user is determined according to the eeg signal, again, determines that the mood of user corresponds to
Song book and determine play the song book needed for play parameter, finally, according to play parameter play song book.As it can be seen that
Electronic device can carry out analyzing processing to the brain wave of user and obtain the mood of user, and according to the mood of user come intelligentized
It determines the song book for needing to play and play parameter, and song book is played out according to play parameter, relative to existing use
Family needs to select song corresponding with its mood in an electronic manually, and the selection for capableing of intelligence is corresponding with user emotion
Song and play out, and then the intelligent and convenience to playback of songs can be improved to a certain extent.
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.
Figure 1A provides a kind of schematic diagram of electronic device for the embodiment of the present application;
Figure 1B is a kind of possible structural schematic diagram of brain wave sensor in the embodiment of the present application Figure 1A;
Fig. 1 C are another structural schematic diagram of brain wave sensor in the embodiment of the present application Figure 1A;
Fig. 1 D provide a kind of structural schematic diagram of electrod-array for the embodiment of the present application;
Fig. 1 E provide a kind of exemplary plot of the signal processing circuit of brain wave sensor for the embodiment of the present application;
Fig. 2A provides a kind of flow diagram of method for playing music for the embodiment of the present application;
Fig. 2 B provide a kind of waveform diagram being segmented to third eeg signal for the embodiment of the present application;
Fig. 3 provides the flow diagram of another method for playing music for the embodiment of the present application;
Fig. 4 provides the flow diagram of another method for playing music for the embodiment of the present application;
Fig. 5 is a kind of structural schematic diagram of electronic device provided by the embodiments of the present application;
Fig. 6 provides a kind of structural schematic diagram of music player for the embodiment of the present application.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
Term " first ", " second " in the description and claims of this application and above-mentioned attached drawing etc. are for distinguishing
Different objects, rather than for describing particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that
It is to cover and non-exclusive includes.Such as process, method, system, product or the equipment for containing series of steps or unit do not have
It is defined in the step of having listed or unit, but further includes the steps that optionally not listing or unit, or optionally also wrap
It includes for other intrinsic steps of these processes, method, product or equipment or unit.
" embodiment " mentioned in this application is it is meant that a particular feature, structure, or characteristic described can be in conjunction with the embodiments
Included at least one embodiment of the application.The phrase, which occurs, in each position in the description might not each mean phase
Same embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art are explicitly
Implicitly understand, embodiments described herein can be combined with other embodiments.
Electronic device involved by the embodiment of the present application may include various handheld devices with wireless communication function,
Mobile unit, wearable device, computing device or other processing equipments and various forms for being connected to radio modem
User equipment (user equipment, UE), mobile station (mobile station, MS), terminal device (terminal
Device) etc..For convenience of description, apparatus mentioned above is referred to as electronic device.
In order to be better understood from the technical solution of the application, first music is applied to provided by the embodiments of the present application below
The electronic device of method is introduced.A is please referred to Fig.1, Figure 1A provides a kind of signal of electronic device for the embodiment of the present application
Figure.As shown in Figure 1A, electronic device 100 includes:Shell 110, the circuit board 120 being set in the shell 110, brain wave pass
Sensor 140 and the display screen 130 being set on the shell 110 are provided with processor 1201 and storage on the circuit board 120
Device 1202, the processor 1201 are connected with the brain wave sensor 140, memory 1202 and the display screen 130,
Wherein,
The brain wave sensor 140, the first eeg signal for acquiring user;
The memory 1202 can be used for storing mapping relations and mood etc. between song book, characteristic value and mood value
Mapping relations between grade and play parameter;
The processor 1201, the first mood for determining the user according to first eeg signal;It determines
Corresponding first song book of first mood determines that first mood is corresponding and plays the first of first song book and broadcast
Put parameter;First song book is played according to first play parameter.
Wherein, brain wave sensor 140 is properly termed as brain wave chip, brain wave receiver etc., brain wave sensing again
Device 140 is integrated in an electronic, has special signal processing circuit, and connect with the processor of electronic device, according to acquisition
Signal type can be divided into current type brain wave sensor and electromagnetic type brain wave sensor, the acquisition of current type brain wave sensor
The bioelectricity that cortex generates, electromagnetic type brain wave sensor acquire the electromagnetic wave radiated when human brain activity.It is appreciated that
It is that the specific form of the brain wave sensor 140 can be diversified, not do unique restriction herein.
B is please referred to Fig.1, Figure 1B is that a kind of possible structure of brain wave sensor 140 in the embodiment of the present application Figure 1A is shown
It is intended to.As shown in Figure 1B, brain wave sensor includes signal picker 210, sender unit 220, signal receiver 230 and letter
Number processing circuit 240, wherein signal picker 210 is connected with sender unit 220, signal receiver 230 and signal processing
Circuit 240 is connected, wherein signal picker 210 is used to acquire the eeg signal of user, and signal processing circuit 240 can be with
Analog filtering processing, A/D conversions and digital filtering, i.e. signal are carried out to 210 collected eeg signal of signal picker to adopt
After storage 210 collects eeg signal, signal receiver 230, signal receiver 230 are sent to by sender unit 220
By the signal transmission received to signal processing circuit 240, signal processing circuit 240 carries out simulation filter to eeg signal first
Wave processing, the noise signal in eeg signal is filtered out, then will be filtered after signal be converted into number by A/D
The digital signal is being carried out digital filtering by word signal by digital filter, to the higher brain wave letter of output signal-to-noise ratio
Number arrive electronic device processor.
Optionally, signal picker 210 can be wearable signal picker, which for example can be with
It is the signal acquisition helmet, signal picker 210 can also be patch type signal picker, can be attached to the head of user, right
The eeg signal of user is acquired, and signal picker 210 can also be contactless signal picker, with user in vapour
Using for electronic equipment plays back song in vehicle, which can be set to the roof position of car seat
It sets, can be annular array, which has without being contacted with driver's body, can
User experience is promoted to a certain extent.
C to Fig. 1 E is please referred to Fig.1, as shown in Fig. 1 C to Fig. 1 E, the alternatively possible structural schematic diagram of brain wave sensor,
Brain wave sensor 140 may include electrod-array and signal processing module, wherein the electronic array, which is embedded in scalp, captures god
The structure of electric signal through member, electrode section is needle-shaped array, and it may include instrument amplifier which, which divides, low
Bandpass filter circuit, high-pass filtering circuit, A/D conversion circuits and interface circuit etc..
Wherein, the processor 1201 includes application processor and baseband processor, and processor is the control of electronic device
Center is stored in memory using the various pieces of various interfaces and the entire electronic device of connection by running or executing
Interior software program and/or module, and the data being stored in memory are called, execute various functions and the place of electronic device
Data are managed, to carry out integral monitoring to electronic device.Wherein, the main processing operation system of application processor, user interface and
Application program etc., baseband processor mainly handle wireless communication.It is understood that above-mentioned baseband processor can not also integrate
Into processor.Memory 1202 can be used for storing software program and module, and processor is stored in memory by operation
Software program and module, to execute various function application and the data processing of electronic device.Memory 1202 can be main
Including storing program area and storage data field, wherein storing program area can storage program area, answering needed at least one function
With program etc.;Storage data field can be stored uses created data etc. according to electronic device.In addition, memory 1202 can be with
Can also include nonvolatile memory, for example, at least disk memory, a flash memory including high-speed random access memory
Device or other volatile solid-state parts.
As can be seen that by the embodiment of the present application, electronic device is first by brain wave sensor to the brain wave of user
Signal is acquired, and secondly, the mood of user is determined according to the eeg signal, again, determines that the mood of user corresponds to
Song book and determine play the song book needed for play parameter, finally, according to play parameter play song book.As it can be seen that
Electronic device can carry out analyzing processing to the brain wave of user and obtain the mood of user, and according to the mood of user come intelligentized
It determines the song book for needing to play and play parameter, and song book is played out according to play parameter, relative to existing use
Family needs to select song corresponding with its mood in an electronic manually, and the selection for capableing of intelligence is corresponding with user emotion
Song and play out, and then the intelligent and convenience to playback of songs can be improved to a certain extent.
Optionally, in terms of determining corresponding the first play parameter for playing first song book of first mood,
The processor 1201 is specifically used for:Obtain the target emotion of first mood corresponding with first eeg signal
Value;Determine the corresponding target emotion grade of the target emotion value;According to reflecting between preset mood grade and play parameter
Relationship is penetrated, determines corresponding first play parameter of the target emotion grade.
As it can be seen that in this example, by the mood value of user emotion, the mood of user is subjected to quantification treatment, is obtained specific
The data that can be analyzed are being worth to mood grade according to the mood, and are having different broadcastings according to different mood grades
Parameter determines the corresponding play parameter of mood grade, is joined eeg signal to play by conversion process by above-mentioned
Number, can further promote the intelligent and convenience to music to a certain extent.
Optionally, in terms of the target emotion value for obtaining first mood corresponding with first eeg signal,
The processor 1201 also particularly useful for:First eeg signal is pre-processed, obtains referring to eeg signal;It is right
It is described to carry out analog-to-digital conversion with reference to eeg signal, obtain target eeg signal;Extract the mesh of the target eeg signal
Mark characteristic value;According to the mapping relations between preset characteristic value and mood value, determine that the object feature value is corresponding described
Target emotion value.
As it can be seen that in this example, electronic device is by pre-processing and can filter out in eeg signal to eeg signal
Noise signal, noise signal such as contraction of muscle will produce the fluctuation of different frequency and amplitude, this fluctuation meeting and brain wave
Signal is mixed in together while being collected by signal picker, serious dry to be caused to the dissection process of eeg signal
It disturbs, filters out the influence that this noise like can reduce noise signal to a certain extent to eeg signal, filtered signal is passed through
Brain wave digital signal is obtained after crossing analog-to-digital conversion, promotes the accuracy analyzed signal to a certain extent, while extracting brain
Characteristic value in electric wave signal determines the corresponding target of characteristic value further according to the mapping relations between characteristic value and mood value
Mood value can convert eeg signal to required mood value in terms of characteristics extraction, to a certain extent promotion pair
The accuracy of eeg signal parsing, and then the accuracy of system is improved to a certain extent.
Optionally, the processor 1201 also particularly useful for:The of the user is acquired by the brain wave sensor
Two eeg signals;It determines corresponding first average energy value of first eeg signal, determines second eeg signal
Corresponding second average energy value;It is more than default energy in the absolute value of the difference of first average energy value and second average energy value
When measuring threshold value, the second mood of the user is determined according to second eeg signal;It is sung according to second mood
Song search, obtains the second song book;Obtain the second play parameter corresponding with second mood;Ginseng is played according to described second
Number plays second song book.
As it can be seen that in this example, when being played out to a certain specific song, the eeg signal of user is adopted
Collection, while the average energy value of collected eeg signal being compared with the average energy value of the first eeg signal, two
When the average energy value absolute value of the difference of person is more than preset energy threshold value, search corresponding with collected eeg signal the
Two song books simultaneously play out the song book, can to user when listening a certain song, mood varies widely when, it is right
User plays song book corresponding with user's current emotional, lifting system can be fitted to a certain extent to user emotion variation
Ying Xing, thus the accuracy and real-time of lifting system to a certain extent.
Optionally, the processor 1201 also particularly useful for:In the target song in playing first song book, lead to
Cross the third eeg signal that the brain wave sensor acquires the user;According to the acquiring brain waves time by the tritencepehalon
Electric wave signal is segmented, and multistage eeg signal is obtained;Each section of brain wave in the multistage eeg signal is determined respectively
The mean square deviation of signal obtains multiple mean square deviations;According to the multiple mean square deviation, the emotional change trend of the user is determined;Root
Play parameter adjusting parameter is determined according to the emotional change trend of the user;Described in play parameter adjusting parameter adjusting
First play parameter obtains third play parameter;The target song is played according to the third play parameter.
As it can be seen that in this example, when playing a certain specific song, the brain wave of user is acquired, then will
The brain wave of user carries out segment processing according to the sequencing of acquisition, and seeks the mean square deviation of every section of eeg signal, so
The variation tendency for determining user emotion according to the tendency of the mean square deviation afterwards is determining play parameter according to the variation tendency
Play parameter is adjusted in adjusting parameter, and with this, electronic device can in time be adjusted according to the variation tendency of user emotion
To the play parameter of song, enables the rhythm for quickly keeping up with user emotion variation to a certain extent, promote user experience
Simultaneously also can lifting system to a certain extent accuracy and practicability.
Fig. 2A is please referred to, Fig. 2A provides a kind of flow diagram of method for playing music for the embodiment of the present application.Using
In electronic device shown in figure 1A, as shown in Figure 2 A, method for playing music includes the following steps:
201, electronic device acquires the first eeg signal of user by brain wave sensor.
Optionally, electronic device can carry out the eeg signal of user by the signal picker of brain wave sensor
Acquisition.
Optionally, it establishes using the position of brain wave sensor as origin system, the horizontal axis of the coordinate system is distance,
The longitudinal axis is direction, the distance be in the geometric center and electronic device of user's head region between brain wave sensor away from
From the direction is direction of the user's head region relative to brain wave sensor.Brain wave sensor determines the head of user
Area of space where portion, area of space where user's head is the brain wave generating region for including user's head, and is determined
The coordinate where region where user's head adjusts brain wave sensor from initial detecting region then according to the coordinate
For where user's head area of space and by the detection power adjustment of brain wave sensor be and user's head where space
The detection power that region adapts to, wherein brain wave sensor has initial detecting region and initial detecting power, that is, is opening brain
When radio wave sensor, the region that brain wave sensor is detected is initial detecting region, and detects brain wave in the region and believe
Number detection power be initial detecting power.
Optionally, the area of space where the head zone for detecting power and user of brain wave sensor is passed with brain wave
The distance between sensor is associated, increases the detection power of brain wave sensor when apart from farther out, is reduced when distance is closer
The detection power of brain wave sensor.
The detection zone of adjustment brain wave sensor and detection power through the above way, can be promoted to a certain extent
To the accuracy that eeg signal is detected, while the energy consumption of brain wave sensor can be also reduced to a certain extent.
202, electronic device determines the first mood of user according to the first eeg signal.
Optionally, mood library is pre-established, mood library includes the characteristic value collection and user emotion of user's eeg signal
Mapping relations.User emotion may include very sad, sad, more sad, common mood, more happy, happy and non-
Normally opened heart etc., this is illustrated for sentencing happily, that is, detects multiple eeg signals of the user under happy mood, respectively
Determine the characteristic value of each eeg signal.The characteristic value of eeg signal may include following at least one:Frequency, wave
Shape, frequency spectrum, amplitude, extreme point, energy value etc., by taking frequency as an example, the mood swing of different frequencies, user is different, the heart
When feelings are general, frequency is smaller, and when mood happiness, frequency is larger.It is for happy and characteristic value is frequency, to establish by user emotion
Mood library may include following steps:
2021, electronic device determines each brain by detecting multiple eeg signals of the user under happy mood
The frequency values of electric wave signal.
2022, the frequency values are classified as frequency value set corresponding with happy mood.
2023, by the above-mentioned method for establishing eeg signal and the mapping relations of happy mood, determine user at it
The frequency value set of eeg signal corresponding with the mood under its mood.
2024, the mapping relations stored between each mood and frequency value set obtain mood library.
A kind of mapping relations such as table 1 of possible characteristic value collection (frequency) and user emotion is established out through the above steps
It is shown:
The mapping table of 1 mood of table and characteristic value collection (frequency)
User emotion | Characteristic value collection (frequency) |
It is very sad | (A~B] |
It is sad | (B~C] |
It is more sad | (C~D] |
Common mood | (D~E] |
It is more happy | (E~F] |
Happily | (F~G] |
It is very happy | (G~E] |
Wherein, frequency values are to be indicated using frequency values segment, and A, B, C, D, E, F, G are the endpoint of frequency separation.
Optionally, the first eeg signal that the first eeg signal is obtained to numeric type after analog to digital conversion, from this
Its frequency values is extracted in eeg signal, it is the first mood that the corresponding mood of the frequency values is matched in mood library.
By the above method, the mapping relations of the characteristic value and user emotion of establishing eeg signal establish mood library,
Can eeg signal be subjected to feature extraction, relative to the correspondence of storage eeg signal and user emotion, certain journey
The memory occupancy volume that mood library is reduced on degree, saves memory headroom, meanwhile, when obtaining user emotion, it is only necessary to by user's brain
The characteristic value of electric wave signal is matched in mood library, is matched with user emotion relative to by eeg signal, can
Matched complexity is reduced to a certain extent, reduces the time needed for matching and promotes the matching efficiency of electronic device.
203, electronic device determines corresponding first song book of first mood, determines that first mood is corresponding and broadcasts
Put the first play parameter of first song book.
Optionally, first, electronic device obtains the target emotion value of the first mood corresponding with the first eeg signal;So
Afterwards, the corresponding target emotion grade of target emotion value is determined, finally, according to reflecting between preset mood grade and play parameter
Relationship is penetrated, determines corresponding first play parameter of target emotion grade.
Optionally, a kind of in terms of the mood value that electronic device obtains the first mood corresponding with the first eeg signal
Possible mode includes the following steps:
2031, the first eeg signal is pre-processed, obtains referring to eeg signal.
Optionally, carrying out pretreated mode to the first eeg signal can be:First eeg signal is carried out just
Then secondary analog filtering is being amplified processing by low-noise amplifier to filtered eeg signal, finally will amplification
Eeg signal afterwards obtains referring to eeg signal by mixing.
Optionally, the filtering device filtered for the first time to the first eeg signal for example can be SAW filter
There is low-loss and the higher characteristic of Out-of-band rejection Deng, SAW filter, the noise in the first eeg signal can be believed
It number is filtered out well, the electric wave that noise signal is for example generated by contraction of muscle, parsing meeting of such electric wave to brain wave
The stronger interference of noise, therefore, the above method can promote the accuracy subsequently parsed to brain wave to a certain extent.
Processing is amplified to eeg signal by low-noise amplifier, low-noise amplifier has its own generation
The more low characteristic of interference, it may have to the function that eeg signal is amplified, therefore, processing is amplified to eeg signal
And the interference that itself device generates eeg signal is smaller, can be promoted to a certain extent subsequently brain wave is parsed it is accurate
Property.
2032, to carrying out analog-to-digital conversion with reference to eeg signal, target eeg signal is obtained.
It optionally, then will be at amplification to being amplified processing using programmable logic amplifier with reference to eeg signal
Eeg signal after reason arrives target eeg signal into analog-to-digital conversion excessively.
2033, the object feature value of target eeg signal is extracted.
Optionally, the object feature value of eeg signal includes at least two characteristic parameters of frequency and/or amplitude.
Optionally, the target eeg signal that target eeg signal is obtained to numeric type after analog to digital conversion, from this
Its frequency and/amplitude are extracted in eeg signal as object feature value.
2034, according to the mapping relations between preset characteristic value and mood value, determine that the object feature value is corresponding
The target emotion value.
Optionally, the different moods of user have different mood values, mood value ranging from from 0 to 100 between, by feelings
Thread is gradually increased from very sad to very happy trend, for example, very sad mood value be (0-15], sad mood
Value for (15-30], more sad mood value be (30-45], the mood value of common mood be (45-60], more happy feelings
Thread value be (60-75], happy mood value be (75-90] and very happy mood value for (90-100], a kind of possible spy
Mapping relations such as table 2 between value indicative (frequency) and mood value:
The mapping table of table 2 characteristic value (frequency) and mood value
Characteristic value (frequency) | Mood value |
(A-B] | (0~15] |
(B-C] | (15~30] |
(C-D] | (30~45] |
(D-E] | (45~60] |
(E-F] | (60~75] |
(F-G] | (75~90] |
(G-E] | (90~100] |
For very sad, when the characteristic value of the brain wave of user is in the First Eigenvalue, then use may determine that
The mood at family is very sad, and the use is being determined according to the mapping relations between user emotion and mood value shown in table 2
The target emotion value at family be present in (0-15] in.
Optionally, in terms of electronic device determines the corresponding mood grade of mood value, by having difference under same mood
Mood grade, different mood grades is had different mood values, is illustrated for very sad, very sad to divide
For the first estate, the second grade and the tertiary gradient, the first estate is corresponding with the first subcharacter value set, the second sub- grade and the
Two characteristic value collections are corresponding and the tertiary gradient is corresponding with third subcharacter value set, wherein above-mentioned first subcharacter value collection
Conjunction, the second subcharacter value set and third subcharacter value set belong to fisrt feature value set, and the mood value of the first estate is (0
~5], the mood value of the second grade be (5~10] and the tertiary gradient mood value be (10~15], if object feature value is located at
In second feature value set, it is determined that it is the second mood grade to go out the corresponding mood grade of object feature value, then can be obtained
The corresponding mood value of object feature value be (5~10] between mood value.One kind between mood value and mood grade is possible
Mapping relations are as shown in table 3:
The mapping table of table 3 mood value and mood grade
Mood value | Mood grade |
(0~5] | The first estate |
(5~10] | Second grade |
(10~15] | The tertiary gradient |
Optionally, play parameter may include following at least one:Volume, tone, rhythm, background picture, audio, sound channel,
Play mode (single cycle, played in order, shuffle), download, version (A singer sings version, B singer sings version), music
Style (for example, rock and roll, DJ) etc..Different moods has different play parameter, meanwhile, the difference in same mood grade
Mood value has different sub- play parameter.For example, with play parameter for cheerful and light-hearted type sound when mood is very sad
Happy play parameter, compared with low pitch, rhythm compared with slow, audio is heavier, compared with low pitch and rural style etc..Feelings in the first estate
Thread value be (0-5] when, sub- play parameter such as can be very slow rhythm, compared with low pitch and compared with amount of bass, it is above-mentioned
By way of example only, play parameter can also include other possible parameters and mapping relations.
It, can be according to the associated keyword of user emotion in terms of determining the first song book according to the first mood of user
It determines the first song book, for example, when mood is very sad, then chooses with very sad relevant song as the first song
Collection, the number of songs of the first song book can also be pre-set by system by user's sets itself, do not limited herein.
204, electronic device plays first song book according to first play parameter.
Optionally, in a possible example, since user is in playback of songs, mood can constantly occur various
Variation, for example, the mood of user is unhappy when playing first music collection, after playing a period of time, mood is delayed
It is common mood with variation, if continuing to play and unhappy corresponding music, seems outdated or even can be by user
Mood becomes unhappy again, then needs to search again for song progress corresponding with the mood according to the mood after variation at this time
It plays.
To solve the above problems, a kind of possible method is:Electronic device acquires the of user by brain wave sensor
Then two eeg signals determine corresponding first average energy value of the first eeg signal and determine the second eeg signal pair
The second average energy value answered, when the absolute value of the difference of the first average energy value and the second average energy value is more than preset energy threshold value,
Determine the second mood of user according to the second eeg signal, then after song search carried out according to the second mood obtain the second song
Collection and acquisition the second play parameter corresponding with the second mood, finally play the second song book according to the second play parameter.
Optionally, determine that a kind of possible mode of average energy value is by eeg signal:It is sensed by energy measuring
Device obtains energy value of the eeg signal in preset time, and it is brain wave to seek mean value of the energy value within the period
The average energy value of signal, wherein preset time can specifically be set according to different users, can also be passed by brain wave
The eeg signal of sensor acquisition user and analyze user emotional change rate, determined between preset time according to the rate
Every.It, can since the prefixed time interval can generate the time interval suitable for the user for different users
The practicability and accuracy of electronic device are promoted to a certain extent.
Optionally, a kind of possible method of preset energy threshold value set as:Electronic device obtains user and is in one kind
The average energy value of multiple eeg signals and determining each eeg signal under mood, removes energy in multiple eeg signal
The peak and minimum for measuring mean value, then seek the average energy value of remaining eeg signal, then electronic device passes through again
Same method obtains average energy value of the user under another mood, finally by the difference of the average energy value of aforementioned two kinds of moods
Absolute value, which is used as, refers to preset energy threshold value, and thus method will produce multiple with reference to preset energy threshold value, take with reference to preset energy
Minimum value is as preset energy threshold value in threshold value.
Optionally, song search, when obtaining the second song book, the second song of electronic device pair are being carried out according to the second mood
The song that the song and electronic device itself that concentration includes do not store downloads the song in internet.
Optionally, when downloading song using first network, electronic device is monitored downloading rate, works as downloading rate
When less than preset value, the eeg signal of user is acquired, which is analyzed to obtain the mood of user,
If the mood of user has of short duration fluctuate widely, first network is switched to communication quality more preferably the second network,
In, communication quality includes at least downloading rate.
Optionally, the preset value of downloading rate for example can be that 200kB/s, 250kB/s are equivalent, and occurrence can basis
When downloading song, play the minimum speed limit needed for the song and set, certainly, user can also the sets itself value, this
Place does not limit.
Optionally, there is user emotion of short duration fluctuation can be understood as user after waiting for a period of time, and mood goes out
Unexpected variation is showed, such as due to that cannot download the song or cannot timely hear the irritated heart that song shows
Reason.
As can be seen that in this example, the eeg signal of user can be acquired and be analyzed, obtains and user emotion
The adaptable song book of variation, and the song book is played, it can adapt to mood of the mood of user when playing first music collection
After playing a period of time, mood changes, and can be searched again for according to the mood after its variation corresponding with the mood
Song play out, improve the intelligent and hommization of electronic device to a certain extent.
Optionally, for user in the specific song in listening the first song book, the mood of user may be according to song
Bent melody and change, be adjusted therefore, it is necessary to the broadcast mode to song, to adapt to the mood of user.
In another possible example, in the target song in playing first song book, passed by brain wave
Sensor acquires the third eeg signal of user;Third eeg signal is segmented according to the acquiring brain waves time, is obtained
Multistage eeg signal;The mean square deviation for determining each section of eeg signal in multistage eeg signal respectively obtains multiple square
Difference;According to multiple mean square deviations, the emotional change trend of user is determined;Play parameter tune is determined according to the emotional change trend of user
Whole parameter;The first play parameter is adjusted according to play parameter adjusting parameter, obtains third play parameter;According to third play parameter
Play target song.
Optionally, a kind of possible mode of user emotion variation tendency is segmented and obtained to third eeg signal
For:Eeg signal is divided into 10 sections according to the acquiring brain waves time, respectively t0, t1, t2, t3, t4, t5, t6, t7, t8 and
T9, every section of time interval is 0.01ms, wherein the variation of mood of the eeg signal due to user in each period,
There may be different waveforms;With this can by eeg signal it is discrete be that a discrete function as shown in Figure 2 B can basis
Subsequent time is determined in the variation of the mean square deviation (a) of user's eeg signal of t0, t1, t2, t3, t4, t5, t6, t7, t8 and t9
The variation tendency of user emotion can then predict the feelings of user's subsequent time for example, the mood of user is happy when the t9 moment
Thread will be changed towards more happy trend.
Optionally, according to user emotion variation tendency above-mentioned, i.e. variation is more happy by user emotion, determines to broadcast
Parameter adjustment parameter is put, which can be adjusted to the first play parameter and more happily think matched play parameter,
It is third play parameter with the play parameter more happily to match, last electronic device is according to the third play parameter to broadcasting
Put target song.
As can be seen that in this example, for user in the specific song in listening the first song book, the mood of user can
Can be changed according to the melody of song, can by predict user subsequent time eeg signal to song
Play parameter is adjusted, to adapt to the mood of user, the hommization of the electronic device promoted to a certain extent and reality
The property used.
As can be seen that by the embodiment of the present application, electronic device is first by brain wave sensor to the brain wave of user
Signal is acquired, and secondly, the mood of user is determined according to the eeg signal, again, determines that the mood of user corresponds to
Song book and determine play the song book needed for play parameter, finally, according to play parameter play song book.As it can be seen that
Electronic device can carry out analyzing processing to the brain wave of user and obtain the mood of user, and according to the mood of user come intelligentized
It determines the song book for needing to play and play parameter, and song book is played out according to play parameter, relative to existing use
Family needs to select song corresponding with its mood in an electronic manually, and the selection for capableing of intelligence is corresponding with user emotion
Song and play out, and then the intelligent and convenience to playback of songs can be improved to a certain extent.
Referring to Fig. 3, Fig. 3 provides the flow diagram of another method for playing music for the embodiment of the present application.Such as Fig. 3
Shown, method for playing music includes the following steps:
301, the first eeg signal of user is acquired by the brain wave sensor.
302, the first mood of the user is determined according to first eeg signal.
303, corresponding first song book of first mood is determined.
304, first eeg signal is pre-processed, obtains referring to eeg signal.
305, analog-to-digital conversion is carried out with reference to eeg signal to described, obtains target eeg signal.
306, the object feature value of the target eeg signal is extracted.
307, according to the mapping relations between preset characteristic value and mood value, the corresponding institute of the object feature value is determined
State target emotion value.
308, the corresponding target emotion grade of the target emotion value is determined.
309, according to the mapping relations between preset mood grade and play parameter, the target emotion grade pair is determined
First play parameter answered.
310, first song book is played according to first play parameter.
311, the second eeg signal of the user is acquired by the brain wave sensor.
312, it determines corresponding first average energy value of first eeg signal, determines second eeg signal pair
The second average energy value answered.
313, it is more than preset energy threshold value in the absolute value of the difference of first average energy value and second average energy value
When, the second mood of the user is determined according to second eeg signal.
314, song search is carried out according to second mood, obtains the second song book.
315, it obtains the second play parameter corresponding with second mood and institute is played according to second play parameter
State the second song book.
As can be seen that by the embodiment of the present application, electronic device is by pre-processing and can filter out to eeg signal
Noise signal in eeg signal, noise signal such as contraction of muscle will produce the fluctuation of different frequency and amplitude, this wave
Dynamic meeting is mixed in together with eeg signal while being collected by signal picker, to be made to the dissection process of eeg signal
At serious interference, the influence that this noise like can reduce noise signal to a certain extent to eeg signal is filtered out, extracts brain
Characteristic value in electric wave signal determines the corresponding target of characteristic value further according to the mapping relations between characteristic value and mood value
Mood value can convert eeg signal to required mood value in terms of characteristics extraction, to a certain extent promotion pair
The accuracy of eeg signal parsing, and then the accuracy of system is improved to a certain extent.Meanwhile to a certain first specific
Song when playing out, judged when user emotion changes by collected user's eeg signal, search with
The corresponding song book of mood after variation and play can to user when listening a certain song, mood varies widely when,
Corresponding with user's current emotional song book is played to user, user emotion can be changed lifting system to a certain extent
Adaptability, thus the accuracy and real-time of lifting system to a certain extent.
Referring to Fig. 4, Fig. 4 provides the flow diagram of another method for playing music for the embodiment of the present application.Such as Fig. 4
Shown, method for playing music includes the following steps:
401, the first eeg signal of user is acquired by the brain wave sensor.
402, the first mood of the user is determined according to first eeg signal.
403, corresponding first song book of first mood is determined.
404, first eeg signal is pre-processed, obtains referring to eeg signal.
405, analog-to-digital conversion is carried out with reference to eeg signal to described, obtains target eeg signal.
406, the object feature value of the target eeg signal is extracted.
407, according to the mapping relations between preset characteristic value and mood value, the corresponding institute of the object feature value is determined
State target emotion value.
408, the corresponding target emotion grade of the target emotion value is determined.
409, according to the mapping relations between preset mood grade and play parameter, the target emotion grade pair is determined
First play parameter answered.
410, first song book is played according to first play parameter.
411, in the target song in playing first song book, the use is acquired by the brain wave sensor
The third eeg signal at family.
412, the third eeg signal is segmented according to the acquiring brain waves time, obtains multistage brain wave letter
Number.
413, the mean square deviation for determining each section of eeg signal in the multistage eeg signal respectively obtains multiple square
Difference.
414, according to the multiple mean square deviation, the emotional change trend of the user is determined.
415, play parameter adjusting parameter is determined according to the emotional change trend of the user.
416, first play parameter is adjusted according to the play parameter adjusting parameter, obtains third play parameter;
417, the target song is played according to the third play parameter.
As can be seen that by the embodiment of the present application, electronic device is by pre-processing and can filter out to eeg signal
Noise signal in eeg signal, noise signal such as contraction of muscle will produce the fluctuation of different frequency and amplitude, this wave
Dynamic meeting is mixed in together with eeg signal while being collected by signal picker, to be made to the dissection process of eeg signal
At serious interference, the characteristic value in eeg signal is extracted, further according to the mapping relations between characteristic value and mood value, is determined
Go out the corresponding target emotion value of characteristic value, eeg signal can be converted to required mood in terms of characteristics extraction
Value, promotes the accuracy parsed to eeg signal, and then improve the accuracy of system to a certain extent to a certain extent.
Meanwhile when playing a certain specific song, the brain wave of user is acquired, determine the variation tendency of user emotion,
Play parameter is adjusted, with this, electronic device can be according to the variation tendency of user emotion, and song is broadcast in adjustment in time
Parameter is put, enables quickly to keep up with the rhythm of user emotion variation to a certain extent, promoting user experience simultaneously also can one
Determine the accuracy and practicability of lifting system in degree.
It is consistent with above-described embodiment, referring to Fig. 5, Fig. 5 is a kind of knot of electronic device provided by the embodiments of the present application
Structure schematic diagram, as shown, the electronic device includes processor, memory, communication interface and one or more programs,
In, said one or multiple programs are stored in above-mentioned memory, and are configured to be executed by above-mentioned processor, above procedure
It include the instruction for executing following steps;
The first eeg signal of user is acquired by the brain wave sensor;
The first mood of the user is determined according to first eeg signal;
It determines corresponding first song book of first mood, determines that first mood is corresponding and play first song
First play parameter of song collection;
First song book is played according to first play parameter.
In a possible example, the of first song book is played the determination first mood is corresponding
In terms of one play parameter, the instruction in described program is specifically used for executing following operation:It obtains and first eeg signal
The target emotion value of corresponding first mood;Determine the corresponding target emotion grade of the target emotion value;According to default
Mood grade and play parameter between mapping relations, determine the target emotion grade it is corresponding it is described first play ginseng
Number.
In another possible example, first mood corresponding with first eeg signal is obtained described
Target emotion value in terms of, instruction in described program is also particularly useful for executing following operation:To first eeg signal
It is pre-processed, obtains referring to eeg signal;Analog-to-digital conversion is carried out with reference to eeg signal to described, obtains target brain wave
Signal;Extract the object feature value of the target eeg signal;It is closed according to the mapping between preset characteristic value and mood value
System, determines the corresponding target emotion value of the object feature value.
In another possible example, the instruction in described program is also particularly useful for operation below executing:By described
Brain wave sensor acquires the second eeg signal of the user;Determine corresponding first energy of first eeg signal
Mean value determines corresponding second average energy value of second eeg signal;In first average energy value and second energy
When measuring the absolute value of the difference of mean value more than preset energy threshold value, the second of the user is determined according to second eeg signal
Mood;Song search is carried out according to second mood, obtains the second song book;It obtains and second mood corresponding second
Play parameter;Second song book is played according to second play parameter.
In another possible example, the instruction in described program is also particularly useful for operation below executing:Playing institute
When stating the target song in the first song book, the third eeg signal of the user is acquired by the brain wave sensor;
The third eeg signal is segmented according to the acquiring brain waves time, obtains multistage eeg signal;Institute is determined respectively
The mean square deviation for stating each section of eeg signal in multistage eeg signal obtains multiple mean square deviations;According to the multiple mean square deviation,
Determine the emotional change trend of the user;Play parameter adjusting parameter is determined according to the emotional change trend of the user;According to
First play parameter is adjusted according to the play parameter adjusting parameter, obtains third play parameter;It is played according to the third
Parameter plays the target song.
It is above-mentioned that mainly the scheme of the embodiment of the present application is described from the angle of method side implementation procedure.It is appreciated that
, for electronic device in order to realize above-mentioned function, it comprises execute the corresponding hardware configuration of each function and/or software mould
Block.Those skilled in the art should be readily appreciated that, in conjunction with each exemplary unit of embodiment description presented herein
And algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function actually with
Hardware or computer software drive the mode of hardware to execute, and depend on the specific application and design constraint item of technical solution
Part.Professional technician specifically can realize described function to each using distinct methods, but this reality
Now it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out electronic device according to the above method example division of functional unit, for example, can
Each functional unit is divided with each function of correspondence, two or more functions can also be integrated in a processing unit
In.The form that hardware had both may be used in above-mentioned integrated unit is realized, can also be realized in the form of SFU software functional unit.It needs
It is noted that be schematical, only a kind of division of logic function to the division of unit in the embodiment of the present application, it is practical real
It is current that there may be another division manner.
Consistent with the above, referring to Fig. 6, Fig. 6 provides a kind of structure of music player for the embodiment of the present application
Schematic diagram.Applied to electronic device, electronic device includes brain wave sensor, and music player includes collecting unit 601, really
Order member 602 and broadcast unit 603, wherein
Collecting unit 601, the first eeg signal for acquiring user by the brain wave sensor;
Determination unit 602, the first mood for determining the user according to first eeg signal;And it determines
Corresponding first song book of first mood determines that first mood is corresponding and plays the first of first song book and broadcast
Put parameter;
Broadcast unit 603, for playing first song book according to first play parameter.
As can be seen that by the embodiment of the present application, music player is first by brain wave sensor to the brain of user
Electric wave signal is acquired, and secondly, the mood of user is determined according to the eeg signal, again, determines the mood of user
Corresponding song book and the determining play parameter played needed for the song book finally play song book according to play parameter.It can
See, electronic device can carry out the brain wave of user analyzing processing and obtain the mood of user, and according to the mood of user come intelligence
Change determines the song book for needing to play and play parameter, and is played out to song book according to play parameter, relative to existing
User need to select corresponding with its mood song in an electronic manually, be capable of intelligent selection and user emotion phase
Corresponding song simultaneously plays out, and then can improve the intelligent and convenience to playback of songs to a certain extent.
Optionally, in terms of determining corresponding the first play parameter for playing first song book of first mood,
The determination unit 602 is specifically used for:Obtain the target emotion of first mood corresponding with first eeg signal
Value;Determine the corresponding target emotion grade of the target emotion value;According to reflecting between preset mood grade and play parameter
Relationship is penetrated, determines corresponding first play parameter of the target emotion grade.
Optionally, in terms of the target emotion value for obtaining first mood corresponding with first eeg signal,
The determination unit 602 also particularly useful for:First eeg signal is pre-processed, obtains referring to eeg signal;
Analog-to-digital conversion is carried out with reference to eeg signal to described, obtains target eeg signal;Extract the target eeg signal
Object feature value;According to the mapping relations between preset characteristic value and mood value, the corresponding institute of the object feature value is determined
State target emotion value.
Optionally, the determination unit 602 also particularly useful for:The of the user is acquired by the brain wave sensor
Two eeg signals;It determines corresponding first average energy value of first eeg signal, determines second eeg signal
Corresponding second average energy value;It is more than default energy in the absolute value of the difference of first average energy value and second average energy value
When measuring threshold value, the second mood of the user is determined according to second eeg signal;It is sung according to second mood
Song search, obtains the second song book;Obtain the second play parameter corresponding with second mood;Ginseng is played according to described second
Number plays second song book.
Optionally, the determination unit 602 also particularly useful for:In the target song in playing first song book,
The third eeg signal of the user is acquired by the brain wave sensor;According to the acquiring brain waves time by the third
Eeg signal is segmented, and multistage eeg signal is obtained;Each section of brain electricity in the multistage eeg signal is determined respectively
The mean square deviation of wave signal obtains multiple mean square deviations;According to the multiple mean square deviation, the emotional change trend of the user is determined;
Play parameter adjusting parameter is determined according to the emotional change trend of the user;Institute is adjusted according to the play parameter adjusting parameter
The first play parameter is stated, third play parameter is obtained;The target song is played according to the third play parameter.
The embodiment of the present application also provides a kind of computer storage media, wherein computer storage media storage is for electricity
The computer program that subdata exchanges, it is any as described in above method embodiment which so that computer is executed
A kind of some or all of method for playing music step.
The embodiment of the present application also provides a kind of computer program product, and the computer program product includes storing calculating
The non-transient computer readable storage medium of machine program, the computer program make computer execute such as above method embodiment
Described in some or all of any type method for playing music step.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because
According to the application, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily the application
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, for example, the unit division, it is only a kind of
Division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit,
Can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in applying for bright each embodiment can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of software program module.
If the integrated unit is realized in the form of software program module and sells or use as independent product
When, it can be stored in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or
Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products
Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment
(can be personal computer, server or network equipment etc.) executes all or part of each embodiment the method for the application
Step.And memory above-mentioned includes:USB flash disk, read-only memory (read-only memory, ROM), random access memory
The various media that can store program code such as (random access memory, RAM), mobile hard disk, magnetic disc or CD.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer-readable memory, memory
May include:Flash disk, read-only memory, random access device, disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and
Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas;
Meanwhile for those of ordinary skill in the art, according to the thought of the application, can in specific embodiments and applications
There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.
Claims (13)
1. a kind of electronic device, which is characterized in that including brain wave sensor and processor, the brain wave sensor with it is described
Processor couples, wherein
The brain wave sensor, the first eeg signal for acquiring user;
The processor, the first mood for determining the user according to first eeg signal;Determine described first
Corresponding first song book of mood determines corresponding the first play parameter for playing first song book of first mood;
First song book is played according to first play parameter.
2. electronic device according to claim 1, which is characterized in that in the corresponding broadcasting of the determination first mood
In terms of first play parameter of first song book, the processor is specifically used for:It obtains and first eeg signal
The target emotion value of corresponding first mood;Determine the corresponding target emotion grade of the target emotion value;According to default
Mood grade and play parameter between mapping relations, determine the target emotion grade it is corresponding it is described first play ginseng
Number.
3. electronic device according to claim 2, which is characterized in that in the acquisition and first eeg signal pair
In terms of the target emotion value for first mood answered, the processor also particularly useful for:To first eeg signal into
Row pretreatment obtains referring to eeg signal;Analog-to-digital conversion is carried out with reference to eeg signal to described, obtains target brain wave letter
Number;According to the mapping relations between preset characteristic value and mood value, the corresponding target feelings of the object feature value are determined
Thread value.
4. electronic device according to any one of claims 1 to 3, which is characterized in that the processor also particularly useful for:It is logical
Cross the second eeg signal that the brain wave sensor acquires the user;Determine first eeg signal corresponding
One average energy value determines corresponding second average energy value of second eeg signal;First average energy value with it is described
When the absolute value of the difference of second average energy value is more than preset energy threshold value, the user is determined according to second eeg signal
The second mood;Song search is carried out according to second mood, obtains the second song book;It obtains corresponding with second mood
The second play parameter;Second song book is played according to second play parameter.
5. electronic device according to any one of claims 1 to 3, which is characterized in that the processor also particularly useful for:
When playing the target song in first song book, the third brain wave of the user is acquired by the brain wave sensor
Signal;The third eeg signal is segmented according to the acquiring brain waves time, obtains multistage eeg signal;It is true respectively
The mean square deviation of each section of eeg signal, obtains multiple mean square deviations in the fixed multistage eeg signal;According to the multiple equal
Variance determines the emotional change trend of the user;Play parameter adjustment ginseng is determined according to the emotional change trend of the user
Number;First play parameter is adjusted according to the play parameter adjusting parameter, obtains third play parameter;According to the third
Play parameter plays the target song.
6. a kind of method for playing music, which is characterized in that be applied to electronic device, the electronic device includes brain wave sensing
Device, the method includes:
The first eeg signal of user is acquired by the brain wave sensor;
The first mood of the user is determined according to first eeg signal;
It determines corresponding first song book of first mood, determines that first mood is corresponding and play first song book
The first play parameter;
First song book is played according to first play parameter.
7. according to the method described in claim 6, it is characterized in that, the determination first mood is corresponding to play described the
First play parameter of one song book, including:
Obtain the target emotion value of first mood corresponding with first eeg signal;
Determine the corresponding target emotion grade of the target emotion value;
According to the mapping relations between preset mood grade and play parameter, determine that the target emotion grade is corresponding described
First play parameter.
8. the method according to the description of claim 7 is characterized in that described obtain institute corresponding with first eeg signal
The target emotion value of the first mood is stated, including:
First eeg signal is pre-processed, obtains referring to eeg signal;
Analog-to-digital conversion is carried out with reference to eeg signal to described, obtains target eeg signal;
Extract the object feature value of the target eeg signal;
According to the mapping relations between preset characteristic value and mood value, the corresponding target feelings of the object feature value are determined
Thread value.
9. according to claim 6 to 8 any one of them method, which is characterized in that the method further includes:
The second eeg signal of the user is acquired by the brain wave sensor;
It determines corresponding first average energy value of first eeg signal, determines second eeg signal corresponding second
Average energy value;
When the absolute value of the difference of first average energy value and second average energy value is more than preset energy threshold value, according to institute
State the second mood that the second eeg signal determines the user;
Song search is carried out according to second mood, obtains the second song book;
Obtain the second play parameter corresponding with second mood;
Second song book is played according to second play parameter.
10. according to claim 6 to 8 any one of them method, which is characterized in that the method further includes:
In the target song in playing first song book, the third of the user is acquired by the brain wave sensor
Eeg signal;
The third eeg signal is segmented according to the acquiring brain waves time, obtains multistage eeg signal;It is true respectively
The mean square deviation of each section of eeg signal, obtains multiple mean square deviations in the fixed multistage eeg signal;
According to the multiple mean square deviation, the emotional change trend of the user is determined;
Play parameter adjusting parameter is determined according to the emotional change trend of the user;
First play parameter is adjusted according to the play parameter adjusting parameter, obtains third play parameter;
The target song is played according to the third play parameter.
11. a kind of music player, which is characterized in that be applied to electronic device, the electronic device includes brain wave sensing
Device, the music player include collecting unit, determination unit and broadcast unit, wherein
The collecting unit, the first eeg signal for acquiring user by the brain wave sensor;
The determination unit, the first mood for determining the user according to first eeg signal;And determine institute
Corresponding first song book of the first mood is stated, determines corresponding the first broadcasting for playing first song book of first mood
Parameter;
The broadcast unit, for playing first song book according to first play parameter.
12. a kind of electronic device, which is characterized in that including processor, memory, communication interface, and one or more programs,
One or more of programs are stored in the memory, and are configured to be executed by the processor, described program packet
It includes for executing the instruction such as the step in claim 6-10 any one of them methods.
13. a kind of computer readable storage medium, which is characterized in that computer program of the storage for electronic data interchange,
In, the computer program makes computer execute such as claim 6-10 any one of them methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810150098.7A CN108363530B (en) | 2018-02-13 | 2018-02-13 | Electronic device, method for playing music and Related product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810150098.7A CN108363530B (en) | 2018-02-13 | 2018-02-13 | Electronic device, method for playing music and Related product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108363530A true CN108363530A (en) | 2018-08-03 |
CN108363530B CN108363530B (en) | 2019-10-18 |
Family
ID=63002394
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810150098.7A Expired - Fee Related CN108363530B (en) | 2018-02-13 | 2018-02-13 | Electronic device, method for playing music and Related product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108363530B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110353705A (en) * | 2019-08-01 | 2019-10-22 | 秒针信息技术有限公司 | A kind of method and device identifying mood |
CN110808041A (en) * | 2019-09-24 | 2020-02-18 | 深圳市火乐科技发展有限公司 | Voice recognition method, intelligent projector and related product |
CN113364916A (en) * | 2021-06-07 | 2021-09-07 | 维沃移动通信有限公司 | Method and device for determining emotion information, electronic equipment and storage medium |
CN113545970A (en) * | 2021-06-30 | 2021-10-26 | 易念科技(深圳)有限公司 | Control method of electronic equipment and electronic equipment |
CN113556603A (en) * | 2021-07-21 | 2021-10-26 | 维沃移动通信(杭州)有限公司 | Method and device for adjusting video playing effect and electronic equipment |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103218034A (en) * | 2012-01-19 | 2013-07-24 | 联想(北京)有限公司 | Application object adjusting method and electronic device |
CN104202644A (en) * | 2014-09-29 | 2014-12-10 | 深圳市九洲电器有限公司 | Standardized output method, device, set-top box and system for brain wave signals |
CN104281264A (en) * | 2014-09-26 | 2015-01-14 | 上海闻泰电子科技有限公司 | Intelligent data transmission system and method |
CN105824888A (en) * | 2016-03-10 | 2016-08-03 | 深圳创达云睿智能科技有限公司 | Music playing control method and device based on brain waves |
CN106527683A (en) * | 2016-09-29 | 2017-03-22 | 珠海格力电器股份有限公司 | Device and method for controlling media player to play, head-mounted device and system |
CN106560765A (en) * | 2016-06-14 | 2017-04-12 | 深圳创达云睿智能科技有限公司 | Method and device for content interaction in virtual reality |
CN106648058A (en) * | 2016-10-10 | 2017-05-10 | 珠海格力电器股份有限公司 | Song switching method and device |
CN107085512A (en) * | 2017-04-24 | 2017-08-22 | 广东小天才科技有限公司 | Audio playing method and mobile terminal |
CN107515925A (en) * | 2017-08-24 | 2017-12-26 | 北京小米移动软件有限公司 | Method for playing music and device |
CN107527634A (en) * | 2017-07-14 | 2017-12-29 | 昆明理工大学 | A kind of device of brain wave control music |
-
2018
- 2018-02-13 CN CN201810150098.7A patent/CN108363530B/en not_active Expired - Fee Related
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103218034A (en) * | 2012-01-19 | 2013-07-24 | 联想(北京)有限公司 | Application object adjusting method and electronic device |
CN104281264A (en) * | 2014-09-26 | 2015-01-14 | 上海闻泰电子科技有限公司 | Intelligent data transmission system and method |
CN104202644A (en) * | 2014-09-29 | 2014-12-10 | 深圳市九洲电器有限公司 | Standardized output method, device, set-top box and system for brain wave signals |
CN105824888A (en) * | 2016-03-10 | 2016-08-03 | 深圳创达云睿智能科技有限公司 | Music playing control method and device based on brain waves |
CN106560765A (en) * | 2016-06-14 | 2017-04-12 | 深圳创达云睿智能科技有限公司 | Method and device for content interaction in virtual reality |
CN106527683A (en) * | 2016-09-29 | 2017-03-22 | 珠海格力电器股份有限公司 | Device and method for controlling media player to play, head-mounted device and system |
CN106648058A (en) * | 2016-10-10 | 2017-05-10 | 珠海格力电器股份有限公司 | Song switching method and device |
CN107085512A (en) * | 2017-04-24 | 2017-08-22 | 广东小天才科技有限公司 | Audio playing method and mobile terminal |
CN107527634A (en) * | 2017-07-14 | 2017-12-29 | 昆明理工大学 | A kind of device of brain wave control music |
CN107515925A (en) * | 2017-08-24 | 2017-12-26 | 北京小米移动软件有限公司 | Method for playing music and device |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110353705A (en) * | 2019-08-01 | 2019-10-22 | 秒针信息技术有限公司 | A kind of method and device identifying mood |
CN110808041A (en) * | 2019-09-24 | 2020-02-18 | 深圳市火乐科技发展有限公司 | Voice recognition method, intelligent projector and related product |
CN110808041B (en) * | 2019-09-24 | 2021-01-12 | 深圳市火乐科技发展有限公司 | Voice recognition method, intelligent projector and related product |
CN113364916A (en) * | 2021-06-07 | 2021-09-07 | 维沃移动通信有限公司 | Method and device for determining emotion information, electronic equipment and storage medium |
CN113364916B (en) * | 2021-06-07 | 2023-03-28 | 维沃移动通信有限公司 | Method and device for determining emotion information, electronic equipment and storage medium |
CN113545970A (en) * | 2021-06-30 | 2021-10-26 | 易念科技(深圳)有限公司 | Control method of electronic equipment and electronic equipment |
CN113545970B (en) * | 2021-06-30 | 2024-04-30 | 易念科技(深圳)有限公司 | Control method of electronic equipment and electronic equipment |
CN113556603A (en) * | 2021-07-21 | 2021-10-26 | 维沃移动通信(杭州)有限公司 | Method and device for adjusting video playing effect and electronic equipment |
CN113556603B (en) * | 2021-07-21 | 2023-09-19 | 维沃移动通信(杭州)有限公司 | Method and device for adjusting video playing effect and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108363530B (en) | 2019-10-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108363530B (en) | Electronic device, method for playing music and Related product | |
CN110019931B (en) | Audio classification method and device, intelligent equipment and storage medium | |
CN109299318A (en) | Method, apparatus, storage medium and the terminal device that music is recommended | |
CN104361016B (en) | Method and device for adjusting music playing effect according to motion state | |
CN101667422B (en) | Method and device for adjusting mode of song accompaniment | |
CN104636111B (en) | Information processing method and electronic equipment | |
CN105404642B (en) | A kind of audio frequency playing method and user terminal | |
DE102012103553A1 (en) | AUDIO SYSTEM AND METHOD FOR USING ADAPTIVE INTELLIGENCE TO DISTINCT THE INFORMATION CONTENT OF AUDIOSIGNALS IN CONSUMER AUDIO AND TO CONTROL A SIGNAL PROCESSING FUNCTION | |
US20080160943A1 (en) | Method and apparatus to post-process an audio signal | |
CN105824888A (en) | Music playing control method and device based on brain waves | |
CN106775568A (en) | Sound effect adjusting method and device and mobile terminal | |
CN107481735A (en) | Method for converting audio sound production, server and computer readable storage medium | |
CN108919953A (en) | Music adjusting method, device and storage medium | |
CN103456329B (en) | A kind of multimedia method of broadcasting, device and mobile terminal | |
CN108735192B (en) | System and method for evaluating piano playing tone quality by combining music | |
CN113035160B (en) | Music automatic editing implementation method and device based on similarity matrix and storage medium | |
CN111640411A (en) | Audio synthesis method, device and computer readable storage medium | |
CN110753922A (en) | Emotion-based content recommendation method and device, head-mounted device and storage medium | |
CN108600526A (en) | Alarm clock control method and related product | |
CN110580914A (en) | Audio processing method and equipment and device with storage function | |
CN108392201A (en) | Brain training method and relevant device | |
CN108429853A (en) | Electronic device, method for switching network and Related product | |
CN112866770B (en) | Equipment control method and device, electronic equipment and storage medium | |
CN104750868B (en) | A kind of multimedia file play list method for building up and device | |
CN112037739B (en) | Data processing method and device and electronic equipment |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191018 |