Disclosure of Invention
The application provides a sleeping instrument capable of changing the rhythm of electric waves, a method thereof and a computer readable medium, which aim to solve the technical problem of single rhythm of output low-frequency electric waves.
In a first aspect, the present application provides a sleep apparatus capable of changing a rhythm of an electric wave, comprising: the audio acquisition module is connected with the audio conversion module and used for acquiring an audio signal of the target equipment; the audio conversion module is used for generating an electric wave signal matched with the rhythm change of the audio signal according to the audio signal; and the electric wave output module is connected with the audio conversion module through a connecting wire and is used for outputting pulse electric waves according to the electric wave signals.
Optionally, the audio conversion module of the sleep monitor includes: and the audio codec is used for decoding the first audio signal to obtain a second audio signal, and recoding the second audio signal into an electric wave signal matched with the rhythm change of the first audio signal in a modulation mode.
Optionally, the electric wave output module of the sleep apparatus includes: and the electrode is arranged at the tail end of the connecting wire connected with the audio conversion module and used for outputting pulse electric waves according to the electric wave signals, wherein the pulse electric waves are used for stimulating the brain of the target object so as to assist the target object to sleep.
Optionally, the sleep apparatus further comprises: and the audio selection module is used for selecting the candidate audio signal by the target object.
Optionally, the sleep apparatus further comprises: and the wireless earphone module is connected with the audio conversion module and the electric wave output module and is used for receiving the audio signal of the target device and outputting the audio signal to the target object, so that the audio signal is output to the target object while the pulse electric wave is output to the target object.
Optionally, the sleep apparatus further comprises: and the sleep monitoring module is connected with the audio conversion module and used for monitoring the sleep-in time and the deep sleep time of the target object and recommending music to the target object according to the sleep-in time and the deep sleep time.
In a second aspect, the present application provides a method of converting the rhythm of an electric wave, comprising: acquiring an audio signal of a target device; generating an electric wave signal matched with the rhythm change of the audio signal according to the audio signal; a pulse radio wave is output based on the radio wave signal.
Alternatively, generating an electric wave signal matching the change in the rhythm of the audio signal from the audio signal includes: and decoding the first audio signal to obtain a second audio signal, and recoding the second audio signal into an electric wave signal matched with the rhythm change of the first audio signal in a modulation mode.
Optionally, decoding a first audio signal to obtain a second audio signal, and re-encoding the second audio signal into the electric wave signal matching with the change of the rhythm of the first audio signal by modulation includes: sampling the first audio signal to obtain a second audio signal; the second audio signal is quantized using a plurality of preset thresholds and the electrical wave signal matching the change in tempo of the first audio signal is encoded.
Optionally, the method further comprises: an audio signal is output to a target object so that the audio signal is output to the target object while a pulse wave is output to the target object.
Optionally, the method further comprises: and monitoring the sleep-in time and the deep sleep time of the target object, and recommending music to the target object according to the sleep-in time and the deep sleep time.
In a third aspect, the present application also provides a computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform any of the methods of the second aspect.
Compared with the related art, the technical scheme provided by the embodiment of the application has the following advantages:
the utility model provides a technical scheme adopts the audio conversion module, audio acquisition module and electric wave output module that are connected with the audio conversion module, acquire the audio signal of target device through the audio frequency, generate the electric wave signal who matches with audio signal rhythm change according to the audio signal through the audio conversion module, output pulse electric wave according to electric wave signal through electric wave output module, the problem that the low frequency electric wave rhythm of the output of sleep appearance is single has been solved, can stimulate people's brain in order to assist the sleep jointly through audio frequency and pulse electric wave, can also effectively promote the coverage of product, make this product can be applicable to more crowds.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 some embodiments of the present application, but not all 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.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
According to an aspect of embodiments of the present application, there is provided an embodiment of a sleep apparatus capable of changing a rhythm of a wave.
As shown in fig. 1, the sleep apparatus capable of changing the rhythm of electric waves may include: the audio acquisition module 101 is connected with the audio conversion module 103 and is used for acquiring an audio signal of the target device; the audio conversion module 103 is used for generating an electric wave signal matched with the rhythm change of the audio signal according to the audio signal; and the electric wave output module 105 is connected with the audio conversion module 103 through a connecting line and is used for outputting pulse electric waves according to the electric wave signals.
In the embodiment of the application, adopt the audio conversion module, audio acquisition module and electric wave output module that are connected with the audio conversion module, acquire the audio signal of target device through the audio acquisition module, generate the electric wave signal who matches with audio signal rhythm change according to audio signal through the audio conversion module, output the pulse electric wave according to the electric wave signal through the electric wave output module, the problem that the low frequency electric wave rhythm of having solved the output of sleep appearance is single is makeed this product can be applicable to more crowds.
Optionally, the audio conversion module of the sleep monitor includes: and the audio codec is used for decoding the first audio signal to obtain a second audio signal, and recoding the second audio signal into an electric wave signal matched with the rhythm change of the first audio signal in a modulation mode.
In the embodiment of the application, a continuous audio signal in time is sampled according to a preset sampling frequency, peaks and troughs which change constantly in music are captured, the captured signal is quantized into a discrete digital signal by adopting a preset quantization threshold value, and finally the discrete digital signal is encoded into an electric wave signal matched with the rhythm change of the audio signal. The preset quantization threshold may be determined according to the highest point of the peak and the lowest point of the valley, or may be a limited non-overlapping subinterval divided in advance from the range of continuous amplitude variation. The scheme provided by the embodiment of the application can generate the electric wave signal corresponding to the continuous change of the rhythm according to the continuous change of the wave amplitude of the whole song of music, and has particularly remarkable effect on assisting sleep.
Optionally, the electric wave output module of the sleep apparatus includes: and the electrode is arranged at the tail end of the connecting wire connected with the audio conversion module and used for outputting pulse electric waves according to the electric wave signals, wherein the pulse electric waves are used for stimulating the brain of the target object so as to assist the target object to sleep.
In the embodiment of the application, the electrode can be connected with the audio conversion module through a connecting wire, and the electrode outputs corresponding pulse electric waves according to electric wave signals generated by the audio conversion module. The electrodes may be strapped to an ear clip that is used to secure the electrodes in a fixed position in the ear.
Optionally, the sleep apparatus further comprises: and the audio selection module is used for selecting the candidate audio signal by the target object.
In the embodiment of the application, when the sleep apparatus capable of transforming the rhythm of the electric wave is implemented as hardware, the sleep apparatus can be connected with an audio playing device, such as a mobile phone, through a connecting line and an access plug, as shown in fig. 2, the audio playing device selects different music, and the pulse electric wave can be generated according to the music preference of a user. The sleep device can also be provided with various music materials, and the selection can be directly carried out through the button of the sleep device.
Optionally, the sleep apparatus further comprises: and the wireless earphone module is connected with the audio conversion module and the electric wave output module and is used for receiving the audio signal of the target device and outputting the audio signal to the target object, so that the audio signal is output to the target object while the pulse electric wave is output to the target object.
In the embodiment of the application, the sleep device and the wireless earphone can be combined, and can exist independently or can be integrated into the sleep earphone, as shown in fig. 3. During the use, two main parts of wireless headset hang respectively on the ear, in the ear is filled in to the in-ear loudspeaker, the elastic arm can be adjusted, the other end electrode laminating back of the ear head skin of main part simultaneously, the main part passes through bluetooth module and connects the cell-phone after, cell-phone control main part output music sound wave, simultaneously through electrode output with broadcast music source with rhythm waveform (let sound wave digital signal turn into the signal of telecommunication that emulation user got into the rhythm of sleep through the modulation mode) pulse electric wave amazing brain, under the combined action of sound wave and electric wave, let the people fall asleep more easily. When music sound waves are output, pulse electric waves with the same rhythm as the music source are also output, and the purpose of assisting sleep is achieved more effectively.
Optionally, the sleep apparatus further comprises: and the sleep monitoring module is connected with the audio conversion module and used for monitoring the sleep-in time and the deep sleep time of the target object and recommending music to the target object according to the sleep-in time and the deep sleep time.
In the embodiment of the application, the time that the user enters the sleep and the time that the user deeply sleeps can be monitored by a monitoring means, music with a good sleep assisting effect on the user is selected from the feedback of the monitoring result, and the music is recommended to the user. The monitoring means can be monitoring through devices such as a bracelet and the like, and is not repeated herein.
In the embodiment of the application, adopt the audio conversion module, audio acquisition module and electric wave output module that are connected with the audio conversion module, acquire the audio signal of target device through the audio frequency, generate the electric wave signal that matches with audio signal rhythm change through the audio conversion module according to audio signal, output pulse electric wave according to electric wave signal through electric wave output module, the problem that the low frequency electric wave rhythm of the output of sleep appearance is single has been solved, make through audio frequency selection module and wireless earphone module again can stimulate people's brain in order to assist the sleep jointly through audio frequency and pulse electric wave, can also effectively promote the coverage of product, let this product can be applicable to more crowds.
It should be noted that, the above module as a part of the sleep apparatus may be implemented by hardware or software, that is, optionally, the sleep apparatus capable of transforming the rhythm of the electric wave provided in this embodiment of the application may be implemented by a hardware circuit, or implemented by a sleep apparatus application program, as shown in fig. 4, the audio is directly converted into the electric wave signal by the sleep apparatus application program and output the electric wave signal.
According to still another aspect of the embodiments of the present application, as shown in fig. 5, there is provided a method capable of transforming a rhythm of an electric wave, including the steps of:
step S502: acquiring an audio signal of a target device;
step S504: generating an electric wave signal matched with the rhythm change of the audio signal according to the audio signal;
step S506: a pulse radio wave is output based on the radio wave signal.
It should be noted that step S502 in this embodiment may be executed by the audio acquisition module 101 in this embodiment, step S504 in this embodiment may be executed by the audio conversion module 103 in this embodiment, and step S506 in this embodiment may be executed by the electric wave output module 105 in this embodiment.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments.
Alternatively, generating an electric wave signal matching the change in the rhythm of the audio signal from the audio signal includes: and decoding the first audio signal to obtain a second audio signal, and recoding the second audio signal into an electric wave signal matched with the rhythm change of the first audio signal in a modulation mode.
Optionally, decoding a first audio signal to obtain a second audio signal, and re-encoding the second audio signal into the electric wave signal matching with the change of the rhythm of the first audio signal by modulation includes: sampling the first audio signal to obtain a second audio signal; the second audio signal is quantized using a plurality of preset thresholds and the electrical wave signal matching the change in tempo of the first audio signal is encoded.
Optionally, the method further comprises: an audio signal is output to a target object so that the audio signal is output to the target object while a pulse wave is output to the target object.
Optionally, the method further comprises: and monitoring the sleep-in time and the deep sleep time of the target object, and recommending music to the target object according to the sleep-in time and the deep sleep time.
The sleep device provided by the embodiment of the application comprises a memory and a processor, wherein a computer program which can run on the processor is stored in the memory, and the processor executes the computer program to realize the steps.
The memorizer and the processor in the sleep instrument are communicated with the communication interface through a communication bus. The communication bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
There is also provided, in accordance with yet another aspect of an embodiment of the present application, a computer-readable medium having non-volatile program code executable by a processor.
Optionally, in an embodiment of the present application, a computer readable medium is configured to store program code for the processor to perform the following steps:
step S502: acquiring an audio signal of a target device;
step S504: generating an electric wave signal matched with the rhythm change of the audio signal according to the audio signal;
step S506: a pulse radio wave is output based on the radio wave signal.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
When the embodiments of the present application are specifically implemented, reference may be made to the above embodiments, and corresponding technical effects are achieved.
For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable logic devices (P L D), Field-Programmable Gate arrays (FPGAs), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units performing the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. 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.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or may be implemented in the form of a software product stored in a storage medium 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 methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk. It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is merely exemplary of the present application and is presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.