Motion monitoring method, device, terminal equipment and medium based on wireless earphones

The sound signal is obtained through two microphones in the wireless headphones, the correlation coefficient and low-frequency energy are calculated, the movement speed is determined, and the voice prompt is output based on the preset speed threshold. This solves the problem that existing health monitoring equipment is difficult to effectively monitor and prompt the movement intensity, and realizes motion monitoring and feedback without increasing hardware costs.

CN115022762BActive Publication Date: 2025-05-06GEER TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210610556.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2025-05-06
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

Existing health monitoring equipment is difficult to effectively monitor and indicate exercise intensity, especially when the physical fitness of different groups of people varies greatly.

Method used

The sound signal is obtained through two microphones in the wireless headset, the correlation coefficient and low frequency energy are calculated, the movement speed is determined, and the voice prompt is output based on the preset speed threshold.

Benefits of technology

It realizes motion monitoring through the microphone of wireless headphones without increasing hardware costs, improving real-time feedback and guidance of motion quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115022762B_ABST
    Figure CN115022762B_ABST
Patent Text Reader

Abstract

The present invention discloses a motion monitoring method, device, terminal device and computer-readable storage medium based on wireless headphones, wherein a first sound signal is obtained through the first microphone and a second sound signal is obtained through the second microphone; the motion speed of the wearer of the wireless headphones is determined according to the first sound signal and the second sound signal, and whether the motion speed is greater than a preset speed threshold; if it is confirmed that the motion speed is greater than the speed threshold, a preset voice prompt is output through the speaker. Compared with the traditional wireless headphones that can only be used for listening to songs, the present invention realizes the motion monitoring of users based on wireless headphones without increasing hardware costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of smart wearable devices, and in particular relates to a motion monitoring method, device, terminal device and computer-readable storage medium based on wireless headphones. Background Art

[0002] Nowadays, people are generally paying more and more attention to the quality of exercise. With the continuous advancement of science and technology, TWS (True Wireless Stereo) headphones have been widely used in people's lives. People wear headphones while walking, running and cycling and listen to music while exercising.

[0003] However, the intensity of each person's exercise varies according to their physical fitness. The faster the exercise speed, the higher the intensity. Therefore, everyone's exercise speed should have a certain range during exercise. Various existing health monitoring devices can measure exercise speed and monitor the exercise speed to make appropriate prompts, and the methods used by health monitoring devices on the market are different. Summary of the Invention

[0004] The main purpose of the present invention is to provide a method, apparatus, terminal device, and computer-readable storage medium for monitoring exercise using wireless headphones. The method aims to monitor the speed of a user wearing wireless headphones while exercising, thereby significantly improving the quality of the user's exercise.

[0005] To achieve the above object, the present invention provides a method for monitoring exercise based on a wireless headset, wherein the headset includes a microphone and a speaker, wherein the microphone includes: a first microphone and a second microphone. The method for monitoring exercise based on the wireless headset includes the following steps:

[0006] Acquire a first sound signal through the first microphone and acquire a second sound signal through the second microphone;

[0007] determining a movement speed of the wearer of the wireless headset according to the first sound signal and the second sound signal, and determining whether the movement speed is greater than a preset speed threshold;

[0008] If it is confirmed that the movement speed is greater than the speed threshold, a preset voice prompt is output through the speaker.

[0009] Optionally, the step of determining the motion speed according to the first sound signal and the second sound signal includes:

[0010] calculating a correlation coefficient between the first sound signal and the second sound signal according to the first sound signal and the second sound signal;

[0011] obtaining low-frequency energy from the first microphone or the second microphone;

[0012] The movement speed of the wearer of the wireless headset is determined according to the low-frequency energy and the correlation coefficient.

[0013] Optionally, the first sound signal includes a first positive signal, and the second sound signal includes a second positive signal, and the step of calculating a correlation coefficient between the first sound signal and the second sound signal based on the first sound signal and the second sound signal includes:

[0014] determining the first positive signal of the first sound signal at a preset time, and determining the number of first positive signal points according to the first positive signal;

[0015] determining the second positive signal of the second sound signal, and determining the number of second positive signal points according to the second positive signal;

[0016] The correlation coefficient between the first sound signal and the second sound signal is calculated according to the number of the first positive signal points and the number of the second positive points.

[0017] Optionally, the first sound signal includes a first negative signal, and the second sound signal includes a second negative signal, and the step of calculating a correlation coefficient between the first sound signal and the second sound signal based on the first sound signal and the second sound signal includes:

[0018] determining the first negative signal of the first sound signal, and determining the number of first negative signal points according to the first negative signal;

[0019] determining the second negative signal of the second sound signal, and determining the number of second negative signal points according to the second negative signal;

[0020] The correlation coefficient between the first sound signal and the second sound signal is calculated according to the number of the first negative signal points and the number of the second negative signal points.

[0021] Optionally, the step of calculating a correlation coefficient between the first sound signal and the second sound signal based on the first sound signal and the second sound signal further includes:

[0022] Obtain a first Fourier transform value based on the first sound signal and a second Fourier transform value based on the second sound signal;

[0023] A correlation coefficient between the first sound signal and the second sound signal is calculated based on the first Fourier transform value and the second Fourier transform value.

[0024] Optionally, the step of obtaining low-frequency energy of the first microphone or the second microphone includes:

[0025] Obtaining a first filtered signal after filtering the first sound signal, and obtaining low-frequency energy of the first microphone according to the first filtered signal;

[0026] Alternatively, obtaining a second filtered signal after filtering the second sound signal, and obtaining the low-frequency energy of the second microphone according to the second filtered signal;

[0027] Optionally, the step of determining the movement speed of the earphone according to the low-frequency energy and the correlation coefficient includes:

[0028] The wind speed is determined according to the low-frequency energy and the correlation coefficient, and the movement speed of the wearer of the TWS headset is determined according to the wind speed.

[0029] In addition, to achieve the above-mentioned purpose, the present invention further provides a motion monitoring device based on a wireless headset, characterized in that the motion monitoring device based on a wireless headset comprises:

[0030] an acquisition module, configured to acquire a first sound signal through the first microphone and a second sound signal through the second microphone;

[0031] a determination module, configured to determine a movement speed of the wearer of the wireless headset based on the first sound signal and the second sound signal, and determine whether the movement speed is greater than a preset speed threshold;

[0032] The output module is configured to output a preset voice prompt through the speaker if it is determined that the movement speed is greater than the speed threshold.

[0033] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes: a memory, a processor, and a control program based on motion monitoring of wireless headphones stored on the memory and run on the processor. When the control program for motion monitoring of wireless headphones is executed by the processor, the steps of the control method for motion monitoring of wireless headphones as described above are implemented.

[0034] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a control program for motion monitoring based on wireless headphones is stored. When the control program for motion monitoring based on wireless headphones is executed by a processor, the steps of the control method for motion monitoring based on wireless headphones as described above are implemented.

[0035] An embodiment of the present invention proposes a motion monitoring method, apparatus, terminal device, and computer-readable storage medium based on wireless headphones. The headphones include a microphone and a speaker, wherein the microphone includes a first microphone and a second microphone, and a first sound signal and a second sound signal are obtained through the first microphone and the second microphone; the motion speed of the wearer of the wireless headphones is determined based on the first sound signal and the second sound signal, and it is determined whether the motion speed is greater than a preset speed threshold; if it is confirmed that the motion speed is greater than the speed threshold, a preset voice prompt is output through the speaker.

[0036] The technical solution of the present invention is applied in the process of motion monitoring based on wireless headphones. A first sound signal is obtained through a first microphone included in the wireless headphones and a second sound signal is obtained through a second microphone. Then, the movement speed of the wearer of the wireless headphones is determined based on the first sound signal and the second sound signal. Then, it is determined whether the movement speed is greater than a preset speed threshold. If it is confirmed that the movement speed is greater than the speed threshold, a preset voice prompt is output through the speaker included in the wireless headphones.

[0037] Compared with traditional wireless headphones that can only be used for listening to music, the present invention obtains the first sound signal and the second sound signal through the first microphone and the second microphone included in the wireless headphones themselves, and determines the movement speed of the user wearing the wireless headphones based on the first sound signal and the second sound signal. If it is determined that the movement speed is greater than a preset speed threshold, a preset voice prompt is output through the speaker included in the headphones themselves. Therefore, the present invention enables the movement speed of the user wearing the wireless headphones to be monitored based on the wireless headphones when the user is exercising. Therefore, without increasing the hardware cost, the movement of the user wearing the wireless headphones can be monitored only by the existing microphones of the wireless headphones. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 Schematic diagram of the device structure of the hardware operating environment of the terminal device involved in the embodiment of the present invention;

[0039] Figure 2 This is a flow chart of a first embodiment of a method for motion monitoring based on wireless headphones according to the present invention;

[0040] Figure 3 Schematic diagram of the operation flow involved in an embodiment of the motion monitoring method based on wireless headphones of the present invention;

[0041] Figure 4 Schematic diagram of the functional modules of an embodiment of a motion monitoring device based on a wireless headset according to the present invention.

[0042] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION

[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0044] Reference Figure 1 , Figure 1 This is a schematic diagram of the device structure of the hardware operating environment of the terminal device involved in the embodiment of the present invention.

[0045] The terminal device in the embodiment of the present invention may be a wireless headset with integrated motion monitoring, and the wireless headset includes two microphones and a speaker.

[0046] like Figure 1 As shown, the terminal device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may optionally also be a storage device independent of the aforementioned processor 1001.

[0047] Those skilled in the art will understand that Figure 1 The terminal device structure shown in the figure does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0048] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a motion monitoring program based on a wireless headset.

[0049] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client and communicate data with the client; and the processor 1001 can be used to call the motion monitoring program based on wireless headphones stored in the memory 1005 to implement various embodiments of the motion monitoring method based on wireless headphones of the present invention.

[0050] Based on the above-mentioned terminal device, various embodiments of the motion monitoring method based on a wireless headset of the present invention are proposed. In each embodiment of the motion monitoring method based on a wireless headset of the present invention, the motion monitoring method based on a wireless headset of the present invention is applied to the process of monitoring the motion of the headset wearer using the wireless headset.

[0051] Please refer to Figure 2 , Figure 2 This is a flow chart of the first embodiment of the method for monitoring exercise using a wireless headset. In the first embodiment of the method for monitoring exercise using a wireless headset, the headset includes a microphone and a speaker, wherein the microphone includes a first microphone and a second microphone. The method for monitoring exercise using a wireless headset includes:

[0052] Step S10: acquiring a first sound signal through the first microphone and acquiring a second sound signal through the second microphone;

[0053] In this embodiment, when the terminal device monitors the movement speed of the user wearing the wireless headset through the wireless headset, the terminal device obtains a first sound signal through the first microphone of the wireless headset and obtains a second sound signal through the second microphone of the wireless headset.

[0054] For example, Figure 3 As shown in the operation flow diagram, in this embodiment, the wireless headset can be specifically a TWS (True Wireless Stereo) headset, and the terminal device enters the sports health mode by responding to multiple triggering methods. The sports triggering method can be specifically different methods such as touch, button, voice, gesture, head movement and mobile phone control. It should be understood that it is not limited to the above-mentioned multiple triggering methods, but can also be other triggering methods. The terminal device determines that the first microphone is the main microphone and the second microphone is the secondary microphone. After the terminal device enters the sports health mode, the first sound signal x1 is obtained through the first microphone (i.e., the main microphone) and the second sound signal x2 is obtained through the second microphone (i.e., the secondary microphone). It should be understood that the terminal device can also determine that the first microphone is the secondary microphone and the second microphone is the main microphone.

[0055] Step S20: determining a movement speed of the wearer of the wireless headset according to the first sound signal and the second sound signal, and determining whether the movement speed is greater than a preset speed threshold;

[0056] In this embodiment, after the terminal device obtains a first sound signal through the first microphone of the wireless headset and a second sound signal through the second microphone of the headset, it determines the movement speed of the wearer of the wireless headset based on the first sound signal and the second sound signal, and further determines whether the movement speed is greater than a preset speed threshold.

[0057] Exemplarily, after the terminal device obtains the first sound signal x1 through the main microphone of the TWS headset and the second sound signal x2 through the secondary microphone, it determines the movement speed V of the user wearing the TWS headset based on the first sound signal x1 and the second sound signal x2, and further determines whether the movement speed is greater than a preset speed threshold H.

[0058] Optionally, in some feasible embodiments, in the above step S20, the step of determining the movement speed of the wearer of the wireless headset according to the first sound signal and the second sound signal may include the following steps:

[0059] Step S201: calculating a correlation coefficient between the first sound signal and the second sound signal according to the first sound signal and the second sound signal;

[0060] In this embodiment, the terminal device calculates a correlation coefficient between a first sound signal acquired by a first microphone of the wireless headset and a second sound signal acquired by a second microphone.

[0061] Exemplarily, the terminal device calculates the correlation coefficient χ between the first sound signal x1 obtained by the main microphone of the TWS headset and the second sound signal x2 obtained by the secondary microphone. 2 It should be noted that the terminal device calculates the correlation coefficient of x1 and x2 by the number of points in each frame signal or by Fourier transform.

[0062] Optionally, in some feasible embodiments, the first sound signal includes a first positive signal, and the second sound signal includes a second positive signal. The above step S201 may include the following steps:

[0063] Step S2011: determining the first positive signal of the first sound signal, and determining the number of first positive signal points according to the first positive signal;

[0064] In this embodiment, the terminal device determines a first positive signal through a first sound signal acquired by a first microphone of the wireless headset, and further determines the number of first positive signal points based on the first positive signal.

[0065] For example, in this embodiment, the terminal device obtains the first positive signal of the first sound signal x1 at time 0~k (ie, each frame) through the main microphone of the TWS headset, and determines the number of first positive signal points according to the first positive signal. Among them, n in the formula of the number of first positive signal points represents the sequence number of the first positive signal point (if there are n first positive signal points).

[0066] Step S2012: determining the second positive signal of the second sound signal, and determining the number of second positive signal points according to the second positive signal;

[0067] In this embodiment, the terminal device determines a second positive signal through a second sound signal acquired by a second microphone of the wireless headset, and further determines the number of second positive signal points based on the second positive signal.

[0068] For example, in this embodiment, the terminal device obtains the second positive signal of the second sound signal x2 at time 0~k (ie, each frame) through the main microphone of the TWS headset, and determines the number of second positive signal points according to the second positive signal Among them, n in the formula of the number of second positive signal points represents the sequence number of the second positive signal point (if there are n second positive signal points).

[0069] Step S2013: Calculating a correlation coefficient between the first sound signal and the second sound signal according to the number of the first positive signal points and the number of the second positive points.

[0070] In this embodiment, the terminal device calculates the correlation coefficient between the first sound signal and the second sound signal based on the first number of positive points obtained from the first sound signal of the wireless headset and the second number of positive points obtained from the second sound signal of the wireless headset.

[0071] For example, in this embodiment, the terminal device obtains the first positive point number according to the first sound signal x1 of the TWS headset. and the second number of positive points obtained according to the second sound signal x2 of the TWS headset Calculate the correlation coefficient χ between the first sound signal x1 and the second sound signal x2 2 .

[0072] It should be noted that, in this embodiment, the terminal device first lists a matrix of the number of signal points of the main microphone and the secondary microphone at time 0 to k:

[0073]

[0074] Among them 11 for That is, the number of the first positive points, o21 for That is, the second number of positive points, then the correlation coefficient χ between the first sound signal x1 and the second sound signal x2 2 for:

[0075]

[0076] Wherein, N=2*k, k is the length of each frame.

[0077] Optionally, in some feasible embodiments, the first sound signal includes a first negative signal, and the second sound signal includes a second negative signal. The above step S201 may further include the following steps:

[0078] Step S2014: determining a first negative signal of the first sound signal, and determining the number of first positive signal points according to the first positive signal;

[0079] In this embodiment, the terminal device determines a first negative signal through a first sound signal acquired by a first microphone of the wireless headset, and further determines the number of first negative signal points based on the first negative signal.

[0080] For example, in this embodiment, the terminal device obtains the first negative signal of the first sound signal x1 at time 0~k (ie, each frame) through the main microphone of the TWS headset, and determines the number of first negative signal points according to the first negative signal. Among them, n in the formula of the number of first negative signal points represents the sequence number of the first negative signal point (if there are n first negative signal points).

[0081] Step S2015: determining the second negative signal of the second sound signal, and determining the number of second negative signal points according to the second negative signal;

[0082] In this embodiment, the terminal device determines a second negative signal through a second sound signal acquired by a second microphone of the wireless headset, and further determines the number of second negative signal points based on the second negative signal.

[0083] For example, in this embodiment, the terminal device obtains the second negative signal of the second sound signal x2 at time 0~k (ie, each frame) through the main microphone of the TWS headset, and determines the number of second negative signal points according to the second negative signal. Among them, n in the formula of the number of second negative signal points represents the sequence number of the second negative signal point (if there are n second negative signal points).

[0084] Step S2016: Calculating a correlation coefficient between the first sound signal and the second sound signal according to the first number of negative signal points and the second number of negative signal points.

[0085] In this embodiment, the terminal device calculates the correlation coefficient between the first sound signal and the second sound signal based on the first number of negative points obtained from the first sound signal of the wireless headset and the second number of negative points obtained from the second sound signal of the wireless headset.

[0086] For example, in this embodiment, the terminal device obtains the first number of negative points according to the first sound signal x1 of the TWS headset. and the number of second negative points obtained according to the second sound signal x2 of the TWS headset Calculate the correlation coefficient χ between the first sound signal x1 and the second sound signal x2 2 .

[0087] It should be noted that, in this embodiment, the terminal device first lists a matrix of the number of signal points of the main microphone and the secondary microphone at time 0 to k (ie, each frame):

[0088]

[0089] Among them 12 for That is, the number of the first negative points, o 22 for That is, the second number of negative points, then the correlation coefficient χ between the first sound signal x1 and the second sound signal x2 2 for:

[0090]

[0091] Wherein, N=2*k, k is the length of each frame.

[0092] Optionally, in some feasible embodiments, the above step S201 may further include the following steps:

[0093] Step S2017: obtaining a first Fourier transform value according to the first sound signal and obtaining a second Fourier transform value according to the second sound signal;

[0094] In this embodiment, after the terminal device obtains a first sound signal through the first microphone of the wireless headset and a second sound signal through the second microphone, it obtains a first Fourier transform value based on the first sound signal and a second Fourier transform value based on the two sound signals.

[0095] Exemplarily, in this embodiment, after the terminal device obtains the first sound signal x1 through the main microphone of the TWS headset and obtains the second sound signal x2 according to the secondary microphone, the terminal device obtains the first Fourier transform value Y1(K) after FFT (Fast Fourier Transform Algorithm) according to the first sound signal x1, and obtains the second Fourier transform value Y2(K) after FFT according to the second sound signal x2.

[0096] Step S2018: Calculating a correlation coefficient between the first sound signal and the second sound signal according to the first Fourier transform value and the second Fourier transform value.

[0097] In this embodiment, the terminal device calculates the correlation coefficient between the first sound signal and the second sound signal based on a first Fourier transform value obtained from the first sound signal of the wireless headset and a second Fourier transform value obtained from the second sound signal of the wireless headset.

[0098] Exemplarily, in this embodiment, the terminal device calculates the correlation coefficient φ between the first sound signal x1 of the TWS headset and the second sound signal x2 of the TWS headset according to the first Fourier transform value Y1(K) obtained and the second Fourier transform value Y2(K) obtained. The correlation coefficient φ is defined as follows:

[0099]

[0100] Among them, the correlation coefficient φ is defined by It is the conjugate of the second Fourier transform value Y2(K), 32 is 32 sub-bands which are one quarter of the 8kHz bandwidth divided into 128 sub-bands, and K is the sub-band number.

[0101] Step S202: obtaining low-frequency energy of the first microphone or the second microphone;

[0102] In this embodiment, the terminal device obtains the low-frequency energy of the first microphone according to the first sound signal of the first microphone, or obtains the second low-frequency energy of the second microphone according to the second sound signal of the second microphone.

[0103] For example, in this embodiment, the terminal device obtains the low-frequency energy P of the main microphone according to the first sound signal x1 of the main microphone. low , or obtain the low-frequency energy P of the secondary microphone according to the second sound signal x2 of the main microphone low .

[0104] Optionally, in some feasible embodiments, the above step S202 may include the following steps:

[0105] Step S2021: obtaining a first filtered signal after filtering the first sound signal, and obtaining low-frequency energy of the first microphone according to the first filtered signal;

[0106] In this embodiment, the terminal device obtains a first filtered signal after filtering the first sound signal obtained by the first microphone of the wireless headset, and then obtains the low-frequency energy of the first microphone according to the first filtered signal.

[0107] For example, in this embodiment, the terminal device passes the first sound signal x1 obtained by the main microphone of the TWS headset through a low-pass filter, and the upper cutoff frequency of the low-pass filter is f H , the upper cutoff frequency can be specifically f H =1500Hz, the low-pass filter can be implemented by an IIR filter (ie, a recursive filter), and the terminal device obtains the first filtered signal x1 after the first sound signal x1 is filtered. LP , according to the first filtered signal x1 LP Obtain the low-frequency energy P of the first sound signal low , the low frequency energy P low The definition is as follows:

[0108] Step S2022: Alternatively, obtaining a second filtered signal after filtering the second sound signal, and obtaining the low-frequency energy of the second microphone according to the second filtered signal;

[0109] In this embodiment, the terminal device obtains a second filtered signal obtained by filtering the second sound signal obtained by the second microphone of the wireless headset, and obtains the low-frequency energy of the second microphone according to the second filtered signal.

[0110] For example, in this embodiment, the terminal device passes the second sound acquired by the secondary microphone of the TWS headset through a low-pass filter, and the upper cutoff frequency of the low-pass filter is f H , the upper cutoff frequency can be specifically f H =1500Hz, the low-pass filter can be implemented by an IIR filter (ie, a recursive filter), and the terminal device obtains the second filtered signal x2 after the second sound signal x2 is filtered. LP , according to the second filtered signal x2 LP Get the low-frequency energy P of the second sound signal low , the low frequency energy P low The definition is as follows:

[0111]

[0112] Step S203: determining the movement speed of the wearer of the wireless headset according to the low-frequency energy and the correlation coefficient.

[0113] In this embodiment, the terminal device determines the correlation coefficient through the first sound signal x1 and the second sound signal x2, and then obtains the low-frequency energy of the first microphone or the low-frequency energy of the second microphone of the wireless headset, and then determines the movement speed of the wireless headset based on the correlation coefficient and the low-frequency energy.

[0114] For example, in this embodiment, the terminal device determines the correlation coefficient of x1 and x2 according to the first sound signal x1 and the second sound signal x2, and then obtains the low-frequency energy P of the first microphone of the TWS headset. low Or the low-frequency energy P of the second microphone low , then according to the correlation coefficient and the low-frequency energy P low Determine the movement speed V of the TWS headset.

[0115] Optionally, in some feasible embodiments, the above step S203 may include the following steps:

[0116] Step S2031: determining a wind speed according to the low-frequency energy and the correlation coefficient, and determining the movement speed of the wearer of the wireless headset according to the wind speed.

[0117] In this embodiment, the terminal device determines the correlation coefficient between the first sound signal and the second sound signal of the wireless headset based on the first sound signal and the second sound signal, then obtains the low-frequency energy of the first microphone or the low-frequency energy of the second microphone, and then determines the wind speed based on the correlation coefficient and the low-frequency energy, and finally determines the movement speed of the wearer of the wireless headset based on the wind speed.

[0118] For example, in this embodiment, the terminal device determines the correlation coefficient of the first sound signal x1 and the second sound signal x2 according to the first sound signal x1 and the second sound signal x2 through the wind speed calculation module M of the TWS headset, and then obtains the low-frequency energy P of the main microphone of the TWS headset. low Or the low-frequency energy P of the secondary microphone low , then according to the correlation coefficient and the low-frequency energy P low The wind speed is determined, and finally the movement speed V of the wearer of the TWS headset is determined based on the wind speed.

[0119] Alternatively, illustratively, in this embodiment, if the terminal device determines the correlation coefficient χ between the first sound signal x1 and the second sound signal x2 2 >30 and low frequency energy P low >1.60*10 -2When the wind speed is above 3 m / s, the movement speed of the corresponding TWS headset wearer is determined in a preset comparison table according to the wind speed.

[0120] Step S30: If it is confirmed that the movement speed is greater than the speed threshold, a preset voice prompt is output through the speaker;

[0121] In this embodiment, after the terminal device determines whether the movement speed of the wearer of the wireless headset is greater than a preset speed threshold, if it is confirmed that the movement speed is greater than the speed threshold, a preset voice prompt is output through the speaker of the wireless headset.

[0122] Exemplarily, in this embodiment, after the terminal device determines whether the movement speed V of the wearer of the TWS headset is greater than the preset speed threshold H, if it is confirmed that the movement speed V is greater than the speed threshold H, that is, V≥H, a preset voice prompt is output through the speaker of the headset, thereby prompting the user wearing the headset that the movement speed is too fast.

[0123] It should be noted that, in this embodiment, the terminal device responds to the user wearing headphones by interacting with the headphones to set the voice prompt speed level or threshold H, and the interaction method includes but is not limited to voice recognition, BLE (Bluetooth Low Energy) instructions and touch control.

[0124] Thus, in this embodiment, when the terminal device monitors the movement speed of the user wearing the wireless headset through the wireless headset, it obtains a first sound signal through the first microphone of the wireless headset and a second sound signal through the second microphone of the wireless headset; thereafter, after the terminal device obtains the first sound signal through the first microphone of the wireless headset and the second sound signal through the second microphone of the headset, it determines the movement speed of the wearer of the wireless headset based on the first sound signal and the second sound signal, and further determines whether the movement speed is greater than a preset speed threshold; finally, after the terminal device determines whether the movement speed of the wearer of the wireless headset is greater than the preset speed threshold, if it is confirmed that the movement speed is greater than the speed threshold, the preset voice prompt is output through the speaker of the wireless headset.

[0125] Thus, the present invention achieves obtaining the first sound signal and the second sound signal through the first microphone and the second microphone of the wireless headset, then determining the correlation coefficient and the low-frequency energy based on the first sound signal and the second sound signal, and finally determining the wind speed based on the correlation coefficient and the low-frequency energy, and then determining the corresponding movement speed based on the wind speed. If the movement speed is greater than a preset speed threshold, a preset voice prompt is output through the speaker of the wireless headset. Therefore, without increasing the hardware cost, the movement of the user wearing the wireless headset can be monitored only by the existing microphone of the wireless headset.

[0126] In addition, the present invention also provides a motion monitoring device based on wireless headphones, please refer to Figure 4 , Figure 4 This is a functional module diagram of an embodiment of a motion monitoring device based on wireless headphones according to the present invention. Figure 4 As shown, the motion monitoring device based on wireless earphones of the present invention includes:

[0127] an acquisition module 10, configured to acquire a first sound signal through the first microphone and a second sound signal through the second microphone;

[0128] a determination module 20, configured to determine a movement speed of the wearer of the wireless headset based on the first sound signal and the second sound signal, and determine whether the movement speed is greater than a preset speed threshold;

[0129] The output module 30 is configured to output a preset voice prompt through the speaker if it is determined that the movement speed is greater than the speed threshold.

[0130] Optionally, the determination module 20 includes:

[0131] a calculation unit, configured to calculate a correlation coefficient between the first sound signal and the second sound signal based on the first sound signal and the second sound signal;

[0132] an acquiring unit, configured to acquire low-frequency energy of the first microphone or the second microphone;

[0133] A determination unit is configured to determine the movement speed of the wearer of the wireless headset according to the low-frequency energy and the correlation coefficient.

[0134] Optionally, the computing unit includes:

[0135] a first determining subunit, configured to determine the first positive signal of the first sound signal, and determine the number of first positive signal points according to the first positive signal;

[0136] a second determining subunit, configured to determine the second positive signal of the second sound signal, and determine the number of second positive signal points according to the second positive signal;

[0137] The first calculation subunit is configured to calculate a correlation coefficient between the first sound signal and the second sound signal according to the number of the first positive signal points and the number of the second positive points.

[0138] Optionally, the computing unit further includes:

[0139] a third determining subunit, configured to determine the first negative signal of the first sound signal, and determine the number of first negative signal points according to the first negative signal;

[0140] a fourth determining subunit, configured to determine the second negative signal of the second sound signal, and determine the number of second negative signal points according to the second negative signal;

[0141] The second calculation subunit is configured to calculate a correlation coefficient between the first sound signal and the second sound signal according to the number of the first negative signal points and the number of the second negative signal points.

[0142] Optionally, the computing unit further includes:

[0143] a first acquiring subunit, configured to obtain a first Fourier transform value according to the first sound signal and a second Fourier transform value according to the second sound signal;

[0144] The third calculation subunit is configured to calculate a correlation coefficient between the first sound signal and the second sound signal according to the first Fourier transform value and the second Fourier transform value.

[0145] Optionally, the acquisition unit includes:

[0146] a second acquiring subunit, configured to acquire a first filtered signal after filtering the first sound signal, and obtain the low-frequency energy of the first microphone according to the first filtered signal;

[0147] The third acquisition subunit is configured to acquire a second filtered signal after the second sound signal is filtered, and obtain the low-frequency energy of the second microphone according to the second filtered signal.

[0148] Optionally, the determining unit includes:

[0149] A fifth determining subunit is configured to determine a wind speed according to the low-frequency energy and the correlation coefficient, and determine a movement speed of the wearer of the wireless headset according to the wind speed.

[0150] The present invention also provides a computer storage medium, which stores a motion monitoring program based on a wireless headset. When the motion monitoring program based on a wireless headset is executed by a processor, the steps of the motion monitoring program method based on a wireless headset as described in any of the above embodiments are implemented.

[0151] The specific embodiments of the computer storage medium of the present invention are basically the same as the above embodiments of the motion monitoring program method based on wireless headphones, and will not be described in detail here.

[0152] The present invention also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps of the motion monitoring method based on wireless headphones as described in any of the above embodiments.

[0153] The specific embodiments of the computer storage medium of the present invention are basically the same as the above embodiments of the motion monitoring method based on wireless headphones, and are not described in detail here.

[0154] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.

[0155] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.

[0156] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0157] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A motion monitoring method based on wireless headphones, characterized in that: The wireless headset comprises a microphone and a speaker, wherein the microphone comprises: a first microphone and a second microphone, and the motion monitoring method of the wireless headset comprises: Acquire a first sound signal through the first microphone and acquire a second sound signal through the second microphone; Calculating a correlation coefficient between the first sound signal and the second sound signal according to the first sound signal and the second sound signal; Acquire low-frequency energy of the first microphone or the second microphone; determining the movement speed of the wearer of the headset according to the low-frequency energy and the correlation coefficient, and determining whether the movement speed is greater than a preset speed threshold; If it is confirmed that the movement speed is greater than the speed threshold, a preset voice prompt is output through the speaker.

2. The motion monitoring method based on wireless headphones according to claim 1, characterized in that: The first sound signal includes: a first positive signal, the second sound signal includes: a second positive signal, and the step of calculating the correlation coefficient between the first sound signal and the second sound signal according to the first sound signal and the second sound signal includes: Determine the first positive signal of the first sound signal, and determine the number of first positive signal points according to the first positive signal; Determine the second positive signal of the second sound signal, and determine the number of second positive signal points according to the second positive signal; The correlation coefficient between the first sound signal and the second sound signal is calculated according to the first number of positive signal points and the second number of positive points.

3. The motion monitoring method based on wireless headphones according to claim 1, characterized in that: The first sound signal includes: a first negative signal, the second sound signal includes: a second negative signal, and the step of calculating the correlation coefficient between the first sound signal and the second sound signal according to the first sound signal and the second sound signal further includes: Determine the first negative signal of the first sound signal, and determine the number of first negative signal points according to the first negative signal; Determine the second negative signal of the second sound signal, and determine the number of second negative signal points according to the second negative signal; The correlation coefficient between the first sound signal and the second sound signal is calculated according to the first number of negative signal points and the second number of negative signal points.

4. The motion monitoring method based on wireless earphones as claimed in claim 1, characterized in that: The step of calculating the correlation coefficient between the first sound signal and the second sound signal according to the first sound signal and the second sound signal further includes: Obtain a first Fourier transform value according to the first sound signal and obtain a second Fourier transform value according to the second sound signal; A correlation coefficient between the first sound signal and the second sound signal is calculated according to the first Fourier transform value and the second Fourier transform value.

5. The motion monitoring method based on wireless earphones as claimed in claim 1, characterized in that: The step of acquiring low-frequency energy of the first microphone or the second microphone includes: Acquire a first filtered signal after filtering the first sound signal, and obtain low-frequency energy of the first microphone according to the first filtered signal; Alternatively, a second filtered signal is obtained after the second sound signal is filtered, and the low-frequency energy of the second microphone is obtained according to the second filtered signal.

6. The motion monitoring method based on wireless earphones as claimed in claim 1, characterized in that: The step of determining the movement speed of the earphone according to the low-frequency energy and the correlation coefficient comprises: The wind speed is determined according to the low-frequency energy and the correlation coefficient, and the movement speed of the wearer of the wireless headset is determined according to the wind speed.

7. A headphone sports monitoring device, characterized in that: The motion monitoring device based on wireless earphones comprises: an acquisition module, configured to acquire a first sound signal through the first microphone and acquire a second sound signal through the second microphone; a determination module, configured to calculate a correlation coefficient between the first sound signal and the second sound signal according to the first sound signal and the second sound signal; obtain low-frequency energy of the first microphone or the second microphone; determine the movement speed of the wearer of the headset according to the low-frequency energy and the correlation coefficient, and determine whether the movement speed is greater than a preset speed threshold; The output module is used to output a preset voice prompt through the speaker if it is confirmed that the movement speed is greater than the speed threshold.

8. A terminal device, characterized in that: The terminal device includes: a memory, a processor, and a control program for motion monitoring based on a wireless headset stored in the memory and executable on the processor. When the control program for motion monitoring based on a wireless headset is executed by the processor, the steps of the motion monitoring method based on a wireless headset as described in any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a control program for motion monitoring based on a wireless headset, and when the control program for motion monitoring based on a wireless headset is executed by a processor, the steps of the control method for motion monitoring based on a wireless headset as described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Method and apparatus for measuring speed and mobile terminal thereof

    CN101358990A

  • Motion monitoring control method, intelligent wearable equipment and storage medium

    CN108766572A