CN112783465A - Method and device for adjusting background music applied to intelligent earphone - Google Patents

Method and device for adjusting background music applied to intelligent earphone Download PDF

Info

Publication number
CN112783465A
CN112783465A CN202010481078.5A CN202010481078A CN112783465A CN 112783465 A CN112783465 A CN 112783465A CN 202010481078 A CN202010481078 A CN 202010481078A CN 112783465 A CN112783465 A CN 112783465A
Authority
CN
China
Prior art keywords
user
background music
information
adjusting
preset
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.)
Pending
Application number
CN202010481078.5A
Other languages
Chinese (zh)
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.)
Shenzhen Ruier Electronic Co ltd
Original Assignee
Shenzhen Ruier Electronic Co 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 Shenzhen Ruier Electronic Co ltd filed Critical Shenzhen Ruier Electronic Co ltd
Priority to CN202010481078.5A priority Critical patent/CN112783465A/en
Publication of CN112783465A publication Critical patent/CN112783465A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/48Other medical applications
    • A61B5/4806Sleep evaluation
    • A61B5/4812Detecting sleep stages or cycles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Abstract

The embodiment of the application discloses a method and a device for adjusting background music, wherein the method comprises the following steps: acquiring state information of a user; judging whether the state information of the user is matched with a preset state parameter; and if so, adjusting the currently played background music according to a preset adjusting mode. In the embodiment of the application, the intelligent earphone judges whether the state information of the user is matched with the preset state parameter by detecting the state information of the user, and adjusts the background music played by the intelligent earphone according to the preset adjusting mode under the condition that the state information of the user is matched with the preset state parameter. Firstly, the intelligent earphone can adjust the background music without manual operation of a user, and the user operation is simplified; secondly, the intelligent earphone associates the regulation of the background music with the state parameters of the user, so that the regulation of the background music by the intelligent earphone can better meet the requirements of the user, and the regulation is more intelligent and humanized.

Description

Method and device for adjusting background music applied to intelligent earphone
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for adjusting background music.
Background
Along with the development of intelligent product production technology, earphone varieties distributed in the market are increasingly diversified, and people can use earphones more widely, relating to various aspects of life. Such as listening to high quality music, business offices, online entertainment, electronic competitions, live telecast, etc. By wearing the earphone, the listening effect of the user can be improved, and the experience feeling is better. Especially, the intelligent earphone better meets the use requirements of some users, keeps strong forward momentum and becomes the key point of investment of some investors.
However, with the development of science and technology, people hope to make daily life more intelligent and convenient, so that the functional requirements on intelligent products are more strict. Aiming at the field of the most application of the intelligent earphones, namely music playing, more convenient and more humanized function setting is also expected. However, in the aspect of music playing, the functions of the smart earphones in the current market cannot completely meet the requirements of users.
Disclosure of Invention
The embodiment of the application provides a method and a device for adjusting background music. By implementing the method, the intelligent and humanized adjustment of the background music is realized.
In a first aspect, a method for adjusting background music is applied to a smart headset, and the method includes:
acquiring state information of a user;
judging whether the state information of the user is matched with a preset state parameter;
and if so, adjusting the currently played background music according to a preset adjusting mode.
In a second aspect, an adjustment device, comprising: a communication unit, a processing unit, wherein,
the processing unit is used for acquiring the state information of the user;
the processing unit is further configured to determine whether the state information of the user matches a preset state parameter;
and if so, adjusting the currently played background music according to a preset adjusting mode.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a data interface, where the processor reads instructions stored on a memory through the data interface, and performs a method according to the first aspect to the third aspect and any optional implementation manner described above.
In a fifth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform some or all of the steps described in the first aspect of the present application.
In a sixth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first aspect of embodiments of the present application. The computer program product may be a software installation package.
Therefore, in the embodiment of the application, the intelligent headset judges whether the state information of the user is matched with the preset state parameter by detecting the state information of the user, and adjusts the background music played by the intelligent headset according to the preset adjusting mode under the condition that the state information of the user is matched with the preset state parameter. Firstly, the intelligent earphone can adjust the background music without manual operation of a user, and the user operation is simplified; secondly, the intelligent earphone associates the regulation of the background music with the state parameters of the user, so that the regulation of the background music by the intelligent earphone can better meet the requirements of the user, and the regulation is more intelligent and humanized.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a background music adjusting system provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a background music adjusting method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another background music adjusting method provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of functional units of an adjustment device provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
At present, the volume of the earphone can be adjusted through a button or a control interface of the existing earphone, and the control of sound is realized. However, this method requires manual operation and control. The adjustment span of the volume is large, fine adjustment cannot be achieved, and the volume is inconvenient to use and greatly influenced in the condition that many users do not adjust or do not want to adjust manually.
In order to solve the above problem, an embodiment of the present application provides a method for adjusting background music, which is applied to an intelligent headset. The following detailed description is made with reference to the accompanying drawings.
First, please refer to the schematic structural diagram of the adjusting system shown in fig. 1, which includes the smart headset 110 and the terminal 120. The smart headset 110 is in communication connection with the terminal 120. The specific mode of the communication connection can be any one or more of wireless high-fidelity Wi-Fi connection, Bluetooth connection, mobile data connection and hotspot connection.
The smart headset 110 may be a monitoring headset, a hi-fi headset, a noise reduction headset, or a portable headset, and may be configured in a head-wearing type, an in-ear type, or an earplug type. The impedance may be 16-32 ohms (omega) and the sensitivity is typically 90-120 decibels db.
The terminal 120 may include, for example, a distributed storage server, a legacy server, a mass storage system, a desktop computer, a notebook computer, a tablet computer, a palm computer, a smart phone, a portable digital player, a smart watch, a smart bracelet, and the like. The terminal includes, but is not limited to, a device with a communication function, a smart phone, a tablet computer, a notebook computer, a desktop computer, a portable digital player, a smart band, a smart watch, and the like.
The earphone of this application embodiment can be the intelligent earphone that includes the artificial intelligence chip, and still can include microprocessor among the intelligent earphone, microprocessor and artificial intelligence chip among the intelligent earphone come interconnect communication through the dedicated channel, but microprocessor independent control intelligence earphone work, microprocessor also can be under the guide of artificial intelligence chip control intelligence earphone work, some intelligent control strategies can be exported for microprocessor to the artificial intelligence chip, guide the better work of microprocessor. The microprocessor can construct a microprocessor software platform, the artificial intelligence chip can construct an artificial intelligence chip software platform, the microprocessor software platform and the artificial intelligence chip software platform are two mutually independent software platforms, and the artificial intelligence chip software platform is in communication connection with the microprocessor software platform.
Wherein, artificial intelligence chip and microprocessor all can be through bluetooth communication module or wired link and mobile terminal communication connection, and mobile terminal can be through sending dormancy instruction to the microprocessor of arbitrary one intelligent earphone in intelligent earphone pair (intelligent earphone pair is including two earphones that pair), and this microprocessor gets into dormant state from waking up the state, and when the microprocessor of intelligent earphone was in dormant state, the audio playback function of this intelligent earphone will be invalid so. The mobile terminal can also instruct the artificial intelligence chip to inform the microprocessor to enter the awakening state from the dormancy state by sending the awakening instruction to the artificial intelligence chip of the intelligent earphone. In some possible embodiments, the artificial intelligence chip may always be in the wake-up state when the power is normally supplied. In some possible embodiments, the microprocessor in the sleep state can only receive the instruction from the artificial intelligence chip, that is, the dedicated channel between the microprocessor and the artificial intelligence chip is not closed at this time, but all other communication channels of the microprocessor are in the closed state, and for example, the microprocessor in the sleep state can only receive the instruction from the artificial intelligence chip, that is, the microprocessor in the sleep state can only be woken up by the artificial intelligence chip. When the artificial intelligence chip fails to wake up the microprocessor in the dormant state, the artificial intelligence chip can be switched to a microprocessor working mode to control the intelligent earphone to work instead of the microprocessor, and when the artificial intelligence chip is switched to the microprocessor to work, the artificial intelligence chip can be switched to the microprocessor to work.
The technical solution of the embodiment of the present application may be implemented based on the communication system with the architecture illustrated in fig. 1 by way of example or a modified architecture thereof.
Referring to fig. 2, fig. 2 is a schematic flow chart of a method for adjusting background music according to an embodiment of the present application, where the method may include, but is not limited to, the following steps:
201. acquiring state information of a user;
specifically, the state information of the intelligent headset for detecting the user may be detected according to a certain period, or may be triggered by a certain condition. Triggering conditions such as that the brightness of the external environment is detected by the intelligent earphone to be lower than 10nits, or the decibel of the external noise is lower than 20 decibels and the like; or the headset does not receive the control instruction from the terminal within a certain time, for example, the control instruction from the terminal is not received for more than five minutes. When a preset detection period is reached or a trigger condition is met, triggering the intelligent earphone to acquire the state information of the user, wherein the state information of the user comprises any one or more of the following: heart rate information of a user, breathing depth information of the user, external environment information and the like.
202. Judging whether the state information of the user is matched with a preset state parameter;
specifically, after the state information of the user is acquired, the intelligent headset further matches the state information with preset state parameters to see whether the state information is matched with the preset state parameters. The preset state parameters are some parameters which are preset by the user and reflect different states of the user, or strongly related parameters. Parameters reflecting different states of the user, such as that the user presets a state that the heart rate is awake for 60 times/min-100 times/min, and the heart rate is asleep for 40 times/min-60 times/min. In addition, the sleep depth can be distinguished according to specific heart rate times.
Optionally, the status information includes any one or more of the following: heart rate information of a user, breathing depth information of the user and external environment information; the judging whether the state information of the user is matched with the preset state parameter includes: detecting whether sound information included by the external environment information matches a sound decibel interval included by the preset state parameter or not, and whether brightness information included by the external environment information matches a brightness interval included by the preset state parameter or not; and/or determining the user sleep depth according to the user heart rate information and/or the user breathing depth information, and detecting whether the sleep depth is matched with a sleep depth interval included by the preset state parameters.
Specifically, the heart rate information of the user is, for example, the user presets that the heart rate is awake from 60 times/min to 100 times/min, and the heart rate is asleep from 40 times/min to 60 times/min. Furthermore, 40 times/min-50 times/min are the first-level sleep depth, 50 times/min-60 times/min are the second-level sleep depth, and the first-level sleep depth is deeper than the second-level sleep depth. And (4) user breathing depth information, namely breathing depth of the user in different states. For example, the breathing depth of the user from waking to sleeping is divided into different levels, the sleeping depth in waking is 0, and the sleeping depth in a sound sleeping state is 10. Or the heart rate information of the user and the breathing depth information of the user can be combined to determine the sleeping depth of the user together, and whether the sleeping depth is matched with a sleeping depth interval included by the preset state parameter or not is detected. Further, different sleep depths correspond to different background music or different modes of the same background music. Such as a remix mode or an unvoiced mode. The external environment information includes sound information and/or brightness information. For example, the external sound decibel corresponding to the sound information is 25 decibels, and the brightness information is 600 nits. The sound decibel interval is less than or equal to 30 decibels, or more than 300 decibels; the luminance range is 20 nits or less, or 500 nits or more. The sound decibel interval is matched by 25 decibels, and the current brightness interval is matched by 500 nits. Further, different sound information and/or different brightness information correspond to different background music or different modes of the same background music. Such as a remix mode or an unvoiced mode.
203. And if so, adjusting the currently played background music according to a preset adjusting mode.
Specifically, after acquiring the state information of the user and the preset state parameters and performing matching processing on the state information and the preset state parameters, the intelligent headset determines that the state information and the preset state parameters are matched, for example, the number of heart rates included in the state information of the current user is 50, and a sleep depth interval of the user included in the preset state parameters is a sleep state when the heart rate is in a range from 40 times/minute to 60 times/minute. And adjusting the background music played by the intelligent earphone according to a preset adjusting mode.
It can be seen that, in the embodiment of the application, the intelligent headset judges whether the state information of the user matches the preset state parameter by detecting the state information of the user, and adjusts the background music played by the intelligent headset according to the preset adjusting mode under the condition that the state information of the user matches the preset state parameter. Firstly, the intelligent earphone can adjust the background music without manual operation of a user, and the user operation is simplified; secondly, the intelligent earphone associates the regulation of the background music with the state parameters of the user, so that the regulation of the background music by the intelligent earphone can better meet the requirements of the user, and the regulation is more intelligent and humanized.
In accordance with the above embodiments, please refer to fig. 3, fig. 3 is a flowchart illustrating another method for adjusting background music according to an embodiment of the present application, which may include, but is not limited to, the following steps:
301. detecting state information of a terminal, wherein the terminal is in communication connection with the intelligent earphone;
specifically, the intelligent headset can be in communication connection with the terminal, and the connection mode can be any one or more of wireless high-fidelity Wi-Fi connection, Bluetooth connection, mobile data connection and hotspot connection. The two can send information and instruction to each other, and receive the instruction sent by the other, and acquire the state of the other, in short, the two can fully satisfy the communication function. The intelligent earphone detects the state information of the terminal, and the next operation is determined conveniently based on the state information of the terminal.
302. If the state information of the terminal is matched with preset terminal state information, acquiring the state information of a user;
optionally, the state information of the terminal matches preset terminal state information, which includes any one or more of the following: the duration time that the screen brightness value of the terminal is lower than the brightness threshold exceeds the time threshold, and the frequency of interface or application switching of the terminal is lower than the switching frequency threshold.
Specifically, when the user uses the smart headset and the smart headset is still in electrical connection with the terminal, such as at night, the user is browsing some applications of the terminal and listening to songs through the smart headset. Usually, the user will touch or slide the application interface at times, and the terminal will also detect the operation instructions applied by the user on the terminal interface and execute the instructions, so that the terminal presents different changes, such as the change of the screen brightness value, the frequency of switching the interface or application of the terminal, and the like. And the intelligent earphone in communication connection with the terminal can acquire the state information of the terminal. For example, the screen brightness threshold preset by the user is 10nits, the time threshold is 60s, and the switching frequency threshold of the interface or application of the terminal is 2 times/minute, or 5 times/minute-1 time/minute. When the intelligent earphone detects that the screen brightness value included in the state information of the terminal is 5nits, the screen brightness value is 5nits and lasts for 62s, and obviously, the duration that the screen brightness value of the terminal is lower than the brightness threshold exceeds the time threshold, the intelligent earphone determines that the state information of the terminal is matched with the preset terminal state information; or, when the intelligent headset detects that the interface or application switching frequency of the terminal included in the state information of the terminal is 0 times/minute, and it is obvious that the interface or application switching frequency of the terminal is lower than the switching frequency threshold, the intelligent headset determines that the state information of the terminal matches the preset terminal state information. Further, under the former condition, the intelligent earphone acquires the state information of the user.
303. Judging whether the state information of the user is matched with a preset state parameter;
304. and if so, adjusting the currently played background music according to a preset adjusting mode.
Step 303-.
Therefore, when the intelligent earphone needs to automatically adjust the played background music, the accuracy of judging the current state of the user is improved by judging the state information of the terminal and the state information of the user. Further, the background music played by the intelligent earphone is adjusted according to a preset adjusting mode. The intelligent earphone realizes intelligent adjustment of background music without receiving an operation instruction sent by a user or a terminal, and realizes an intelligent adjustment mode. The intelligent degree and the functionality of background music are adjusted through the intelligent earphone are improved.
In a possible example, after determining whether the state information of the user matches the preset state parameter, the method further includes: detecting face feature information of the user; determining whether the user is a preset authority user or not according to the face feature information; and if the user is determined to be the authorized user, executing a step of adjusting the background music played by the intelligent earphone according to a preset adjusting mode.
Specifically, it can be understood that, after determining whether the state information of the user matches the preset state parameter, the two match. Because the user sets the authority in advance, the face recognition is carried out on the user, namely the face characteristic information of the current user is extracted, and whether the current user has the authority is judged. For example, a user inputs a face image of the user into an intelligent earphone or a terminal in advance, the intelligent earphone or the terminal extracts feature information of the face image and stores the feature information, so that when face recognition verification is performed next time, the extracted face feature information of the current user is compared with the face feature information stored in advance, and whether the user is a preset authority user is determined.
For example, the terminal extracts the face feature information, and optionally, for improving the accuracy of feature extraction, face feature information extraction model training is performed in advance for the terminal. The training process of the face feature information extraction model comprises the following steps:
acquiring X face area images of the user, and carrying out N key point labels on each face area image in the X face area images to obtain X face area images with N key point labels; inputting the X face region images marked with N key points into a primary face feature information extraction model to generate X groups of feature parameters; inputting a face image of the user in a natural expression state, and acquiring characteristic parameters of the face image of the user in the natural expression state to obtain target characteristic parameters; and fitting and optimizing the X groups of characteristic parameters to obtain X groups of general two-dimensional face standard model parameters, calculating loss values of the target characteristic parameters and the X groups of characteristic parameters through iterative processing, and obtaining the high-grade face characteristic information extraction model when the loss values are smaller than a loss threshold value. The two-dimensional face standard model parameters comprise any one or more of the identity parameters, expression parameters and posture parameters.
Further, the terminal detects the face feature information of the user, and the method includes: and acquiring the face image of the user, inputting the face image of the user into the high-level face feature information extraction model, and generating the face feature information of the user.
The X face region images may be acquired face image data sets of about 10 ten thousand faces with each pose distributed uniformly, all types of faces including faces, all age groups distributed uniformly, balanced gender ratio, and wide face shape coverage. After the face images are collected, face detection is carried out on the 10 ten thousand face images by using a face detection algorithm to obtain a face area, the face area is cut, then key point detection is carried out on the cut face area by using an N-point face key point marking algorithm to obtain face image data with N key point marks after cutting. Inputting the X face region images marked with N key points into a primary face feature information extraction model to generate X groups of feature parameters. The key point labels may be 106 key point labels, 100 key point labels, and the like. Each vertex of the two-dimensional face region corresponds to different coordinates and numbers, such as 55 for the right eye corner, 65 for the left eye corner, and so on.
The advanced face feature information extraction model is shown as the following formula:
Figure BDA0002517409060000091
wherein
Figure BDA0002517409060000092
For an average face, X represents the ith face identity orthogonal basis, BiRepresents the ith orthogonal base, alpha, of the individual's facial expressioniRepresenting the ith personal face identity parameter, betaiIndicating the ith personal facial expression parameter.
In addition, if the user has multiple authorized users preset, for example, the multiple authorized users include a first user and a second user, as shown in table 1, different music lists and different adjustment manners may be set for the first user and the second user. For example, the first user corresponds to a first music menu and a first adjustment mode. The second user corresponds to the second music list, and the second adjusting mode comprises adjusting the rhythm and the frequency, and adjusting the content comprises decibel size, sound effect and the like. The curve adjustment is smoother, single phase is relatively slow, the gradient of the adjustment is large, but the adjustment is fast.
Authorized user Music sheet Adjusting content Adjusting content Regulating rhythm Adjusting frequency
First user First music sheet First division interval The first sound effect Curve adjustment 1 time/10 min
Second user Second music sheet Second sub-interval The second sound effect Fold line adjustment 1 time/5 min
TABLE 1
Therefore, after judging whether the state information of the current user is matched with the preset state parameters, for example, it is verified that the state information of the user is matched with the preset state parameters, the face feature information of the user is detected, so as to verify whether the current user is a preset authority user, and after the verification is passed, the step of adjusting the background music played by the intelligent earphone according to a preset adjusting mode is executed. The safety of the user's own authority is improved. And when a plurality of authority users exist, different music lists and different adjusting modes are set for different users, so that the adjusting mode is more personalized.
In a possible example, if yes, adjusting the currently played background music according to a preset adjustment manner includes: detecting whether the background music is matched with the background music corresponding to the external environment information, and if not, switching the background music into the background music corresponding to the external environment information; adjusting the background music according to the sleep depth of the user, wherein the adjusting the background music comprises adjusting the content of the background music and the specific adjusting mode; wherein adjusting the content of the background music comprises at least one of: adjusting the decibel size of the background music, and adjusting the sound effect of the background music; wherein, the specific mode of regulation includes at least one of the following: the rhythm of the regulation, the frequency of the regulation.
Specifically, after the state information of the user is judged to be matched with the preset state parameters, as described above, any one or more of the heart rate information of the user, the breathing depth information of the user and the external environment information of the user are matched with the preset state parameters. For example, the current night is judged by the brightness information and the depth information included in the external environment information, and the light is turned off. The background music played currently is loud music, the corresponding background music in the night light-off mode of the user is light music in advance, and a corresponding song list is provided. Obviously, if the currently played background music is the loud music which does not match the night light-off environment corresponding to the current external environment information, the background music is switched to the background music in the light music menu corresponding to the night light-off environment. Or, the intelligent headset judges the time of getting up of the user by detecting the external environment information, for example, a getting up alarm clock set by the user is detected, or the brightness information is greater than a preset brightness interval. And the current background music of the intelligent earphone is a song list in the light music or background music of hypnosis music, and other background music which is set by the user and is not matched with the getting-up situation, and then the background music is switched to the background music which is preset by the user and is in accordance with the getting-up situation, and the like. In addition, different background music, different sound effects and the like can be set for the scenes of sports, reading, meetings, video calls and the like.
Further, the background music is adjusted according to the sleep depth of the user, for example, if the current sleep depth of the user is a third-level sleep depth, that is, a light sleep mode, the currently played background music is adjusted to a decibel level and a sound effect corresponding to the light sleep mode. The sound effect is the effect of music, the sound dyeing processing is carried out on the sound, and after the sound dyeing processing is carried out, the sound effect which best meets the user preference is presented for the user. The background music is more pleasant and more resistant to listening. Wherein, the sound dyeing is the process of processing sound effect. The adjusting mode specifically comprises the following steps: the adjusted rhythm is adjusted according to a certain curve, such as the decibel size of background music, and the adjusted frequency is adjusted every minute or every ten minutes. And when detecting that the user is in the first-level sleep state, the intelligent earphone directly turns off the background music and adjusts the intelligent earphone to be in the dormant state. And when detecting that the external environment information changes, such as the external environment information is bright, the brightness value included in the external environment brightness information is greater than the brightness interval by 500 nits, and the decibel corresponding to the sound information is greater than the sound interval by 300 decibels, gradually adjusting the background music according to the adjusted rhythm to help the user to wake up slowly without being awakened suddenly to influence the sleep quality of the user.
Therefore, the user can better meet the personalized requirements of the user by presetting the adjusting mode and the adjusting content of the intelligent earphone. The intelligent degree of adjusting the background music of the intelligent earphone is improved.
Referring to fig. 4, fig. 4 is a schematic diagram of functional units of an adjusting apparatus 400 according to an embodiment of the present disclosure, where the adjusting apparatus 400 may be the smart headset 110 itself, or an internal or external device of the smart headset 110. The adjusting device 400 includes: a processing unit 410, a communication unit 420, wherein,
the processing unit is used for acquiring the state information of the user;
the processing unit is further configured to determine whether the state information of the user matches a preset state parameter;
and if so, adjusting the currently played background music according to a preset adjusting mode.
In a possible example, before the obtaining of the status information of the user, the processing unit is further configured to: detecting state information of a terminal, wherein the terminal is in communication connection with the intelligent earphone; judging whether the state information of the terminal is matched with preset terminal state information or not; and if so, executing the step of acquiring the state information of the user.
In a possible example, after determining whether the status information of the user matches the preset status parameter, the processing unit is further configured to: detecting face feature information of the user; determining whether the user is a preset authority user or not according to the face feature information; and if the user is determined to be the authorized user, executing a step of adjusting the background music played by the intelligent earphone according to a preset adjusting mode.
In one possible example, the status information includes any one or more of: heart rate information of a user, breathing depth information of the user and external environment information; in the aspect of determining whether the state information of the user matches a preset state parameter, the processing unit is specifically configured to: detecting whether sound information included by the external environment information matches a sound decibel interval included by the preset state parameter or not, and whether brightness information included by the external environment information matches a brightness interval included by the preset state parameter or not; and/or determining the user sleep depth according to the user heart rate information and/or the user breathing depth information, and detecting whether the sleep depth is matched with a sleep depth interval included by the preset state parameters.
In a possible example, in the case that the background music played by the smart headset is adjusted according to a preset adjustment manner, the processing unit is specifically configured to: detecting whether the background music is matched with the background music corresponding to the external environment information, and if not, switching the background music into the background music corresponding to the external environment information; adjusting the background music according to the sleep depth of the user, wherein the adjusting the background music comprises adjusting the content of the background music and the specific adjusting mode; wherein adjusting the content of the background music comprises at least one of: adjusting the decibel size of the background music, and adjusting the sound effect of the background music; wherein, the specific mode of regulation includes at least one of the following: the rhythm of the regulation, the frequency of the regulation.
Referring to the schematic structural diagram of the electronic device 500 shown in fig. 5, the electronic device 500 includes a processor 510, a memory 520, one or more programs 521, and a communication interface 530. Wherein the one or more programs 521 are stored in the memory 520 and configured to be executed by the processor, and the programs include instructions for executing the steps of the method for adjusting background music in the above embodiments of the present application. Processor 510 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 510 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). Processor 510 may also include a main processor and a coprocessor, where the main processor is a processor, also called a Central Processing Unit (CPU), for Processing data in the wake-up state; a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, processor 510 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
Memory 520 may include one or more computer-readable storage media, which may be non-transitory. Memory 520 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 520 is at least used for storing a computer program, wherein after being loaded and executed by the processor 510, the computer program can implement relevant steps in the management method of multi-element subject hardware disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 520 may also include an operating system, data, and the like, and the storage manner may be a transient storage or a permanent storage. The operating system may include Windows, Unix, Linux, and the like. The data may include, but is not limited to, terminal interaction data, terminal device signals, and the like.
In some embodiments, the electronic device may further include an input-output interface, a communication interface, a power source, and a communication bus.
Those skilled in the art will appreciate that the disclosed architecture of the present embodiment is not intended to be limiting of electronic devices and may include more or fewer components.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
While the present disclosure has been described with reference to particular embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present disclosure.

Claims (10)

1. A method for adjusting background music, which is applied to a smart headset, comprises the following steps:
acquiring state information of a user;
judging whether the state information of the user is matched with a preset state parameter;
and if so, adjusting the currently played background music according to a preset adjusting mode.
2. The method of claim 1, wherein prior to obtaining the status information of the user, the method further comprises:
detecting state information of a terminal, wherein the terminal is in communication connection with the intelligent earphone;
judging whether the state information of the terminal is matched with preset terminal state information or not;
and if so, executing the step of acquiring the state information of the user.
3. The method of claim 1, wherein after determining whether the status information of the user matches the preset status parameter, the method further comprises:
detecting face feature information of the user;
determining whether the user is a preset authority user or not according to the face feature information;
and if the user is determined to be the authorized user, executing a step of adjusting the background music played by the intelligent earphone according to a preset adjusting mode.
4. The method of claim 1, wherein the status information comprises any one or more of: heart rate information of a user, breathing depth information of the user and external environment information;
the judging whether the state information of the user is matched with the preset state parameter includes:
detecting whether sound information included by the external environment information matches a sound decibel interval included by the preset state parameter or not, and whether brightness information included by the external environment information matches a brightness interval included by the preset state parameter or not; and/or the presence of a gas in the gas,
determining the user sleep depth according to the user heart rate information and/or the user breathing depth information, and detecting whether the sleep depth is matched with a sleep depth interval included in the preset state parameters.
5. The method of claim 4, wherein if yes, adjusting the currently played background music according to a preset adjustment manner comprises:
detecting whether the background music is matched with the background music corresponding to the external environment information, and if not, switching the background music into the background music corresponding to the external environment information;
adjusting the background music according to the sleep depth of the user, wherein the adjusting the background music comprises adjusting the content of the background music and the specific adjusting mode;
wherein adjusting the content of the background music comprises at least one of: adjusting the decibel size of the background music, and adjusting the sound effect of the background music;
wherein, the specific mode of regulation includes at least one of the following: the rhythm of the regulation, the frequency of the regulation.
6. An adjustment device, characterized in that the adjustment device comprises: a communication unit, a processing unit, wherein,
the processing unit is used for acquiring the state information of the user;
the processing unit is further configured to determine whether the state information of the user matches a preset state parameter;
and if so, adjusting the currently played background music according to a preset adjusting mode.
7. The adjustment device of claim 6, wherein before the obtaining of the status information of the user, the processing unit is further configured to:
detecting state information of a terminal, wherein the terminal is in communication connection with the intelligent earphone;
judging whether the state information of the terminal is matched with preset terminal state information or not;
and if so, executing the step of acquiring the state information of the user.
8. The adjusting apparatus according to claim 6, wherein after determining whether the status information of the user matches the preset status parameter, the processing unit is further configured to:
detecting face feature information of the user;
determining whether the user is a preset authority user or not according to the face feature information;
and if the user is determined to be the authorized user, executing a step of adjusting the background music played by the intelligent earphone according to a preset adjusting mode.
9. The adjustment device of claim 6, characterized in that the status information comprises any one or more of the following: heart rate information of a user, breathing depth information of the user and external environment information;
the processing unit is specifically configured to determine whether the state information of the user matches a preset state parameter:
detecting whether sound information included by the external environment information matches a sound decibel interval included by the preset state parameter or not, and whether brightness information included by the external environment information matches a brightness interval included by the preset state parameter or not; and/or the presence of a gas in the gas,
determining the user sleep depth according to the user heart rate information and/or the user breathing depth information, and detecting whether the sleep depth is matched with a sleep depth interval included in the preset state parameters.
10. The adjusting apparatus according to claim 6, wherein if yes, the currently played background music is adjusted according to a preset adjusting manner, and the processing unit is specifically configured to:
detecting whether the background music is matched with the background music corresponding to the external environment information, and if not, switching the background music into the background music corresponding to the external environment information;
adjusting the background music according to the sleep depth of the user, wherein the adjusting the background music comprises adjusting the content of the background music and the specific adjusting mode;
wherein adjusting the content of the background music comprises at least one of: adjusting the decibel size of the background music, and adjusting the sound effect of the background music;
wherein, the specific mode of regulation includes at least one of the following: the rhythm of the regulation, the frequency of the regulation.
CN202010481078.5A 2020-05-31 2020-05-31 Method and device for adjusting background music applied to intelligent earphone Pending CN112783465A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010481078.5A CN112783465A (en) 2020-05-31 2020-05-31 Method and device for adjusting background music applied to intelligent earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010481078.5A CN112783465A (en) 2020-05-31 2020-05-31 Method and device for adjusting background music applied to intelligent earphone

Publications (1)

Publication Number Publication Date
CN112783465A true CN112783465A (en) 2021-05-11

Family

ID=75749147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010481078.5A Pending CN112783465A (en) 2020-05-31 2020-05-31 Method and device for adjusting background music applied to intelligent earphone

Country Status (1)

Country Link
CN (1) CN112783465A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115633121A (en) * 2022-09-26 2023-01-20 联想(北京)有限公司 Adjusting method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180078732A1 (en) * 2016-09-16 2018-03-22 Bose Corporation Sleep assistance device
CN109388366A (en) * 2018-08-21 2019-02-26 奇酷互联网络科技(深圳)有限公司 Intelligence adjusts method, mobile terminal and the computer readable storage medium of volume
CN109413537A (en) * 2018-12-20 2019-03-01 歌尔科技有限公司 Audio signal playback method, device and earphone
CN109561219A (en) * 2018-12-21 2019-04-02 努比亚技术有限公司 Music adjusting method, device, mobile terminal and readable storage medium storing program for executing
CN110491419A (en) * 2019-08-26 2019-11-22 广东小天才科技有限公司 A kind of control method for playing back, system and terminal device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180078732A1 (en) * 2016-09-16 2018-03-22 Bose Corporation Sleep assistance device
CN109388366A (en) * 2018-08-21 2019-02-26 奇酷互联网络科技(深圳)有限公司 Intelligence adjusts method, mobile terminal and the computer readable storage medium of volume
CN109413537A (en) * 2018-12-20 2019-03-01 歌尔科技有限公司 Audio signal playback method, device and earphone
CN109561219A (en) * 2018-12-21 2019-04-02 努比亚技术有限公司 Music adjusting method, device, mobile terminal and readable storage medium storing program for executing
CN110491419A (en) * 2019-08-26 2019-11-22 广东小天才科技有限公司 A kind of control method for playing back, system and terminal device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115633121A (en) * 2022-09-26 2023-01-20 联想(北京)有限公司 Adjusting method and device

Similar Documents

Publication Publication Date Title
US10657945B2 (en) Noise control method and device
US20180152163A1 (en) Noise control method and device
CN104272599B (en) Apparatus and method for exporting audio
US20190228755A1 (en) Noise control method and device
CN106126167B (en) A kind of sound effect treatment method and terminal device
CN107040660A (en) Control method, device and the mobile terminal of mobile terminal playing volume
CN109218535A (en) Intelligence adjusts method, apparatus, storage medium and the terminal of volume
CN104898821B (en) The method and electronic equipment of a kind of information processing
US11068230B2 (en) Bluetooth speaker, and intelligent control method for playing audio
CN111083289B (en) Audio playing method and device, storage medium and mobile terminal
CN105912296A (en) Voice control method and system
CN106850981A (en) A kind of quarter-bell method for closing and device
CN107122156A (en) A kind of method for controlling volume and terminal
CN107193527A (en) A kind of audio control method, terminal and computer-readable recording medium
CN111895631A (en) Air conditioning system control method, air conditioner, computer device, and computer-readable storage medium
CN107301862A (en) A kind of audio recognition method, identification model method for building up, device and electronic equipment
CN105824427A (en) Method and system for volume adjustment on basis of gesture operation
CN109981904A (en) A kind of method for controlling volume and terminal device
CN107404587B (en) Audio playing control method, audio playing control device and mobile terminal
CN112394901A (en) Audio output mode adjusting method and device and electronic equipment
EP4184310A1 (en) Volume recommendation method and apparatus, device and storage medium
CN112783465A (en) Method and device for adjusting background music applied to intelligent earphone
CN113422866B (en) Volume adjusting method and device, storage medium and electronic equipment
CN108269460B (en) Electronic screen reading method and system and terminal equipment
US20210082405A1 (en) Method for Location Reminder and Electronic Device

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