A method and device for guiding sleep by music, a computer device and a storage medium
By combining BLE transmission commands with an audio conversion chip, the vibration of the audio oscillator is controlled through dual channels, solving the problem that existing smart pillows cannot simultaneously guide sleep through touch and hearing, and achieving diversified sleep guidance effects with low power consumption.
Patent Information
- Application Number
- CN202210597143.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-30
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2042-05-30
AI Technical Summary
Existing smart pillows cannot combine music with vibration to guide sleep through both touch and hearing. Furthermore, the vibration device and audio are inconsistent, resulting in poor control and high cost.
By combining BLE transmission commands with an audio conversion chip, the vibration of the audio oscillator is controlled through dual channels to achieve high and low frequency regulation of the audio signal and vibration waveform control. The motor and speaker vibration are linked to form a multi-curve simulation of breathing sensation.
It enables sleep guidance through both touch and hearing, reduces power consumption, avoids the high power consumption problem of traditional Bluetooth technology, and provides more freedom in vibration waveform control and a wider range of editing capabilities.
Smart Images

Figure CN115192851B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of sleep aid technology, and in particular to a method, apparatus, computer device, and storage medium for music-guided sleep. Background Technology
[0002] The fast pace of life and increased work pressure can lead to high levels of mental stress, causing many people to have difficulty falling asleep or experience frequent dreams, which can eventually lead to sub-health conditions. Listening to music before bed can be a great way to relax and relieve stress, helping to induce sleep and improve sleep quality.
[0003] To improve sleep, various smart pillows have emerged on the market. These typically incorporate music chips and speakers, meaning they simply play music during use. To further enhance sleep, some pillows include vibrating devices to create vibration-guided sleep pillows. However, music and vibration are not combined, failing to simultaneously guide sleep through both touch and hearing. Furthermore, existing sleep-guided pillows suffer from several technological flaws. The vibrating devices often vibrate incompatible with the audio frequencies, and vibration control is poor, posing potential safety hazards to users. Additionally, their high cost contributes to the overall expense for users. Summary of the Invention
[0004] To address the issue that existing smart pillows on the market have limited functionality and fail to combine music and vibration to simultaneously guide sleep through touch and hearing, this invention provides a method, device, computer equipment, and storage medium for music-guided sleep, enabling diversified sleep guidance methods and providing sleep guidance through both touch and hearing.
[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0006] In a first aspect, in one embodiment of the present invention, a method for music-guided sleep is provided, applied to a sleep aid device having audio and vibration, the method comprising the following steps:
[0007] Acquire BLE transmission instructions sent by the control terminal, wherein the BLE transmission instructions include audio signals;
[0008] An audio conversion chip is used to convert the BLE transmission commands to different levels, and the sleep aid device can be controlled independently via the BLE transmission commands.
[0009] The high and low frequencies of the audio signal are edited and controlled by the control terminal, and the vibration waveform is adjusted to control the vibration of the audio vibrator in the sleep aid device.
[0010] As a further embodiment of the present invention, the control terminal is a mobile device with an app installed, and the mobile device is connected to the sleep aid device via Bluetooth BLE.
[0011] As a further aspect of the present invention, the BLE transmission command is level-converted using an audio conversion chip, including: using the audio conversion chip for logic control to control the high and low levels of the BLE transmission command, and outputting the corresponding level according to a fixed communication protocol.
[0012] As a further aspect of the present invention, the high and low frequencies of the audio signal are edited according to the control terminal, including: before obtaining the BLE transmission command, the pitch, peaks, troughs, and phase of the transmitted file are freely edited through an app in the control terminal.
[0013] As a further aspect of the present invention, the method of controlling the sleep aid device independently via BLE transmission commands further includes:
[0014] The audio signal is given to the flash in the form of a segmented curve. The audio signal is processed into segments and then transmitted via BLE to form a complete audio curve, which is then directly output.
[0015] As a further aspect of the present invention, the method of controlling the sleep aid device independently via BLE transmission commands further includes:
[0016] The sleep aid device uses a dual-channel control to make the audio oscillator vibrate according to a target curve; wherein, the dual-channel control includes the following of uplink data and downlink data.
[0017] As a further embodiment of the present invention, the first channel in the dual channels is used for data feedback and uplink data feedback, while the second channel is used for command adjustment.
[0018] As a further aspect of the present invention, the BLE transmission command controls the sleep aid device independently, and the uplink data is provided as timed feedback.
[0019] As a further aspect of the present invention, the audio vibrator in the sleep aid device adopts a motor and speaker vibration linkage method, and uses dual-channel control to make the audio vibrator vibrate according to the target curve; wherein, when the motor vibrates, the mobile phone transmits the potential signal to the motor through the low-power communication module to control the motor to vibrate according to the curve; when the speaker vibrates, the mobile phone transmits the audio signal to the speaker through the high-power communication module to control the speaker to vibrate according to the curve.
[0020] Secondly, in another embodiment of the present invention, a device for music-guided sleep is provided, comprising:
[0021] The BLE transmission module is used to acquire BLE transmission commands sent by the control terminal, so as to control the sleep aid device individually through the BLE transmission commands;
[0022] An audio conversion module is used to convert the BLE transmission commands to different levels using an audio conversion chip, and to control the sleep aid device independently via the BLE transmission commands.
[0023] The control terminal is used to send BLE transmission commands, and also to edit and control the high and low frequencies of the audio signal, adjust the vibration waveform, and control the vibration of the audio oscillator in the sleep aid device.
[0024] An audio oscillator is installed inside a sleep aid device and vibrates according to a target curve using a linkage between a motor and a speaker.
[0025] Thirdly, in another embodiment of the present invention, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor loads and executes the computer program to implement the steps of a music-guided sleep method.
[0026] Fourthly, in another embodiment of the present invention, a storage medium is provided storing a computer program that, when loaded and executed by a processor, implements the steps of the music-guided sleep method.
[0027] The technical solution provided by this invention has the following beneficial effects:
[0028] The method, apparatus, computer device, and storage medium for music-guided sleep provided by this invention use low-frequency resonance of sound waves to simulate the sensation of breathing at different frequencies through multiple curves, thereby guiding the breathing frequency and solving the mechanical feeling of motor vibration; by adjusting the vibration curve and sound wave method through BLE, the problem of high power consumption and high throughput of BT audio transmission is solved, avoiding the problems of excessive power consumption and low communication, and facilitating the use of dual-channel control to make the oscillator vibrate according to the target curve; and by embedding audio processing, the problem of vibration following in the absence of transmission is solved.
[0029] These or other aspects of the invention will become more apparent from the following description of embodiments. It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. In the drawings:
[0031] Figure 1This is a schematic diagram illustrating the application configuration of a music-guided sleep method and system according to an embodiment of the present invention.
[0032] Figure 2 This is a flowchart of a music-guided sleep method according to an embodiment of the present invention.
[0033] Figure 3 This is a system block diagram of a music-guided sleep device according to an embodiment of the present invention. Detailed Implementation
[0034] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0035] The flowchart shown in the attached diagram is for illustrative purposes only and does not necessarily include all content and operations / steps, nor does it necessarily have to be performed in the order described. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation.
[0036] It should be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0037] It should be understood that, in order to clearly describe the technical solutions of the embodiments of the present invention, the terms "first" and "second" are used in the embodiments of the present invention to distinguish identical or similar items with essentially the same function and effect. For example, the first channel and the second channel are only used to distinguish different channels and do not limit their order. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" do not necessarily mean they are different.
[0038] It should also be understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0039] Because various smart pillows on the market simply play music without combining music and vibration, they cannot simultaneously guide sleep through tactile and auditory stimulation. Existing sleep-inducing pillows also suffer from numerous technical flaws. The vibration devices inside the pillow often vibrate incompatible with the audio frequencies, and the vibration control is poor, posing potential safety hazards to users. Furthermore, their high cost contributes to the overall high operating costs for users.
[0040] In response to the problem that existing smart pillows on the market have limited functions and cannot combine music and vibration to simultaneously guide sleep through touch and hearing, this invention provides a method, device, computer equipment, and storage medium for music-guided sleep.
[0041] Specifically, the embodiments of the present invention will be further described below with reference to the accompanying drawings.
[0042] Please see Figure 2 , Figure 2 This is a flowchart of a music-guided sleep method provided in an embodiment of the present invention, such as... Figure 2 As shown, the method for music-guided sleep includes steps S10 to S30.
[0043] S10. Obtain the BLE transmission command sent by the control terminal, wherein the BLE transmission command includes an audio signal;
[0044] S20. The BLE transmission command is converted to a different level using an audio conversion chip, and the sleep aid device 103 is controlled separately through the BLE transmission command.
[0045] S30. According to the control terminal, the high and low frequencies of the audio signal are edited and controlled to adjust the vibration waveform and control the vibration of the audio vibrator 105 in the sleep aid device 103.
[0046] In the embodiments of this invention, current sleep aid methods on the market use traditional Bluetooth technology for transmission, which suffers from problems such as excessive power consumption when transmitting large files, inability to maintain long standby times, and overly complex audio file creation. In contrast to current sleep aid solutions, the music-guided sleep method of this invention uses BLE transmission commands, level conversion to control the vibration of the audio vibrator 105, resulting in more flexible vibration waveforms, a wider editing range, and the ability to be freely adjusted via an app.
[0047] In an embodiment of the present invention, the control terminal is a mobile device with an app installed, and the mobile device can also communicate with the sleep aid device 103 via Bluetooth BLE. The mobile device can be a mobile phone, computer, or tablet, and communicates with the sleep aid device 103 through the installed app.
[0048] In an embodiment of the present invention, the sleep aid device 103 may be a smart pillow with an embedded audio vibrator 105.
[0049] When using an audio conversion chip to convert the BLE transmission command level, the audio conversion chip performs logic control to control the high and low levels of the BLE transmission command, and outputs the corresponding level according to a fixed communication protocol.
[0050] In an embodiment of the present invention, editing the high and low frequencies of the audio signal according to the control terminal includes: before obtaining the BLE transmission command, freely editing the pitch, peaks, troughs, and phase of the transmitted file through an app in the control terminal.
[0051] In an embodiment of the present invention, the step of controlling the sleep aid device 103 separately via BLE transmission commands further includes: sending the audio signal to the flash in the form of a segmented curve, processing the audio signal into segments, generating a complete audio curve via BLE transmission, and directly outputting the complete audio curve.
[0052] This invention employs BLE transmission commands to control the sleep aid device 103 independently. Unlike conventional BLE, this invention sends the entire audio signal to the flash memory in a segmented curve format. The audio signal is divided into segments and transmitted via BLE, creating a difference from existing BT audio modes. Furthermore, a complete audio curve is generated during audio transmission and directly output. In other words, the pure application audio is sent to the flash memory.
[0053] In an embodiment of the present invention, the step of controlling the sleep aid device 103 separately via BLE transmission commands further includes: the sleep aid device 103 employs dual-channel control to vibrate the audio oscillator 105 according to a target curve; wherein, the dual-channel control includes the following of uplink data and downlink data.
[0054] In an embodiment of the present invention, the first channel of the dual channels is used for data feedback, specifically for uplink data feedback, while the second channel is used for command adjustment. The BLE transmission command controls the sleep aid device 103 independently, and the uplink data is timed feedback.
[0055] When the oscillator vibrates according to the target curve under dual-channel control, the main function of this invention is to control the sleep aid device 103 separately using BLE transmission commands, with data being timed feedback.
[0056] In an embodiment of the present invention, the audio vibrator in the sleep aid device 103 uses a vibration linkage between a motor 106 and a speaker 107, and utilizes dual-channel control to make the audio vibrator 105 vibrate according to a target curve. Specifically, when the motor 106 vibrates, the mobile phone transmits a potential signal to the motor 106 through a low-power communication module to control the motor 106 to vibrate according to the curve; when the speaker 107 vibrates, the mobile phone transmits an audio signal to the speaker 107 through a high-power communication module to control the speaker 107 to vibrate according to the curve.
[0057] In this invention, a combination of motor 106 and speaker 107 is used. A mobile phone or other carrier transmits a potential signal to motor 106 via BLE or other low-power communication modules to control motor 106 to vibrate along a curve; or a mobile phone or other carrier transmits an audio signal to speaker 107 via BT or other high-throughput communication modules to control speaker 107 to vibrate along a curve. This effectively avoids the problems of excessive power consumption and low communication volume, and controls the vibrator to vibrate along the target curve through dual-channel control.
[0058] It should be understood that although the above description follows a certain order, these steps are not necessarily executed in that order. Unless otherwise expressly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, some steps in this embodiment may include multiple steps or multiple stages, which are not necessarily completed at the same time, but may be executed at different times. The execution order of these steps or stages is not necessarily sequential, but may be performed alternately or in turn with other steps or at least a portion of the steps or stages in other steps.
[0059] See Figure 1 and Figure 3 As shown, one embodiment of the present invention provides a music-guided sleep device, the system including a control terminal 101, a BLE transmission module 102, an audio conversion module 104, and an audio oscillator 105.
[0060] In this embodiment of the invention, the BLE transmission module 102 is used to acquire BLE transmission commands sent by the control terminal 101, so as to control the sleep aid device 103 independently through the BLE transmission commands.
[0061] The audio conversion module 104 is used to convert the BLE transmission command level using the audio conversion chip, and to control the sleep aid device 103 independently through the BLE transmission command.
[0062] The control terminal 101 is used to send BLE transmission commands, and also to edit and control the high and low frequencies of the audio signal, adjust the vibration waveform, and control the audio oscillator 105 in the sleep aid device 103 to vibrate.
[0063] The audio vibrator 105 is installed in the sleep aid device 103 and vibrates according to the target curve by means of vibration linkage between the motor 106 and the speaker 107.
[0064] In an embodiment of the present invention, when the BLE transmission command is level-converted using an audio conversion chip and the sleep aid device 103 is controlled independently via the BLE transmission command, the control terminal 101 has an app installed on it and a smart pillow with an embedded audio vibrator 105 connected via a BLE transmission module 102. After the control terminal 101 sends the BLE transmission command, the sleep aid device 103 receives it and performs level conversion via an audio conversion module 104. The sleep aid device 103 is then controlled independently via the BLE transmission command, and the audio vibrator 105 vibrates according to the target curve using a vibration linkage between the motor 106 and the speaker 107.
[0065] When the music-guided sleep device of the present invention is working, it converts the entire audio signal into segmented audio conversion signals in the form of a segmented curve. The audio conversion signals are transmitted to the device in the form of BLE transmission commands to control the device independently. The BLE transmission commands are converted into level control to vibrate the audio vibrator (motor 106 and speaker 107). When the motor 106 vibrates, the mobile phone transmits the potential signal to the motor 106 through a low-power communication module to control the motor 106 to vibrate according to the curve. When the speaker 107 vibrates, the mobile phone transmits the audio signal to the speaker 107 through a high-power communication module to control the speaker 107 to vibrate according to the curve.
[0066] The music-guided sleep device of this invention uses low-frequency sound wave resonance to simulate different frequencies of breathing sensations through multiple curves, guiding the breathing frequency and solving the mechanical feeling of motor 106 vibration; it uses BLE to adjust the vibration curve and sound wave mode for rhythmic following, solving the problems of high power consumption and high throughput of BT audio transmission, avoiding excessive power consumption and low communication, facilitating the use of dual-channel control to make the oscillator vibrate according to the target curve, using wireless communication command interaction, low power consumption, and long standby time; through embedded audio processing, it solves the problem of vibration following in the absence of transmission, and the sound wave sensation of micro-vibration low-frequency resonance frequency is solved.
[0067] It should be noted that the music-guided sleep device performs a music-guided sleep method as described in the foregoing embodiment. Therefore, the music-guided sleep method will not be described in detail in this embodiment.
[0068] In one embodiment, a computer device is also provided, including at least one processor and a memory communicatively connected to the at least one processor. The memory stores instructions executable by the at least one processor. The instructions, when executed by the at least one processor, cause the at least one processor to perform the music-guided sleep method, wherein the processor, when executing the instructions, implements the steps in the above-described method embodiments:
[0069] The BLE transmission command sent by the control terminal 101 is acquired, wherein the BLE transmission command includes an audio signal;
[0070] The BLE transmission command is converted to a different level using an audio conversion chip, and the sleep aid device 103 is controlled independently via the BLE transmission command.
[0071] The high and low frequencies of the audio signal are edited and controlled by the control terminal 101, and the vibration waveform is adjusted to control the vibration of the audio vibrator 105 in the sleep aid device 103.
[0072] In this context, "computer device," also known as "PC," refers to an intelligent electronic device that can perform predetermined processing procedures such as numerical calculations and / or logical calculations by running predetermined programs or instructions. It may include a processor and memory, with the processor executing pre-stored instructions in memory to perform the predetermined processing procedures, or the predetermined processing procedures being performed by hardware such as ASICs, FPGAs, and DSPs, or a combination of both. Computer devices include, but are not limited to, servers, personal computers, laptops, tablets, and smartphones.
[0073] The computer equipment includes user equipment and network equipment. The user equipment includes, but is not limited to, computers, smartphones, and PDAs; the network equipment includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing, which is a type of distributed computing consisting of a super virtual computer composed of a group of loosely coupled computers. The computer equipment can operate independently to implement the present invention, or it can connect to a network and interact with other computer equipment within the network to implement the present invention. The network in which the computer equipment is located includes, but is not limited to, the Internet, wide area networks (WANs), metropolitan area networks (MANs), local area networks (LANs), and VPN networks.
[0074] In one embodiment of the present invention, a storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements the steps in the above-described method embodiments:
[0075] The BLE transmission command sent by the control terminal 101 is acquired, wherein the BLE transmission command includes an audio signal;
[0076] The BLE transmission command is converted to a different level using an audio conversion chip, and the sleep aid device 103 is controlled independently via the BLE transmission command.
[0077] The high and low frequencies of the audio signal are edited and controlled by the control terminal 101, and the vibration waveform is adjusted to control the vibration of the audio vibrator 105 in the sleep aid device 103.
[0078] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the methods described above. Furthermore, any references to memory, storage, databases, or other media used in the embodiments provided by this invention can include at least one of non-volatile and volatile memory.
[0079] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method of music-guided sleep, characterized by, The method is applied to a sleep-aiding device with audio and vibration, and comprises the following steps: A BLE transmission instruction sent by a control terminal is acquired, wherein the BLE transmission instruction comprises an audio signal; An audio conversion chip is used to convert the level of the BLE transmission instruction, and the sleep-aiding device is controlled by the BLE transmission instruction alone; The high and low frequencies of the control audio signal are edited according to the control terminal, the vibration waveform is regulated, and the audio vibrator in the sleep-aiding device is controlled to vibrate; The sleep-aiding device is controlled by the BLE transmission instruction alone, and further comprises: The sleep-aiding device uses double-channel control to make the audio vibrator vibrate according to a target curve, wherein the double-channel control comprises uplink data and downlink data following; The first channel in the double-channel is used for data feedback, and the second channel is used for instruction adjustment; The audio vibrator in the sleep-aiding device uses a motor and a loudspeaker vibration linkage mode, and the audio vibrator is controlled to vibrate according to a target curve by using double-channel control, wherein when the motor is used for vibration, a mobile phone transmits a potential signal to the motor through a low-power communication module to control the motor to vibrate according to the curve; and when the loudspeaker is used for vibration, the mobile phone transmits an audio signal to the loudspeaker through a high-power communication module to control the loudspeaker to vibrate according to the curve.
2. The method of guiding sleep by music according to claim 1, characterized by, The control terminal is a mobile device installed with an app, and the mobile device communicates with the sleep-aiding device through Bluetooth BLE.
3. The method of guiding sleep by music according to claim 1, wherein, The audio conversion chip is used to convert the level of the BLE transmission instruction, which comprises logical control by the audio conversion chip, control of the high and low levels of the BLE transmission instruction, and output of corresponding levels according to a fixed communication protocol.
4. The method of guiding sleep by music according to claim 3, characterized by, The high and low frequencies of the control audio signal are edited according to the control terminal, which comprises free editing of the rhythm, crest, trough and phase of a transmission file by an app in the control terminal before the BLE transmission instruction is acquired.
5. The method of guiding sleep by music according to claim 2, wherein, The sleep-aiding device is controlled by the BLE transmission instruction alone, and further comprises: The audio signal is given to a flash in the form of a segmented curve, the audio signal is segmented, a complete audio curve is formed by BLE transmission, and the complete audio curve is directly output.
6. A device for music- guided sleep according to the method of any one of claims 1 to 5, characterized in that It comprises: A BLE transmission module is used to acquire a BLE transmission instruction sent by a control terminal to control the sleep-aiding device by the BLE transmission instruction alone; An audio conversion module is used to convert the level of the BLE transmission instruction by an audio conversion chip to control the sleep-aiding device by the BLE transmission instruction alone; A control terminal is used to send a BLE transmission instruction and edit the high and low frequencies of a control audio signal to regulate the vibration waveform and control the audio vibrator in the sleep-aiding device to vibrate; An audio vibrator is used to be installed in the sleep-aiding device.
7. A computer device, comprising: The computer device comprises a processor, a memory, and a music-guided sleep program stored in the memory and executable by the processor, wherein when the music-guided sleep program is executed by the processor, the steps of the music-guided sleep method in any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a music-guided sleep program, and the music-guided sleep program, when executed by a processor, implements the steps of the music-guided sleep method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Systems and methods for energy efficient and low power distributed automatic speech recognition on wearable devices
CN108694938A
Non-invasive sound vibration stimulation system, control method, headrest and head-mounted equipment
CN113332122A
Pillow
CN213721185U