Audio recording and conversion method for Bluetooth earphones
The method secures audio recording in Bluetooth earphones by processing audio signals with watermark embedding and detection, addressing confidentiality issues and ensuring high-quality audio output.
Patent Information
- Application Number
- JP2026518356
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-09-12
- Filing Date
- 2025-02-27
- Publication Date
- 2026-11-19
AI Technical Summary
Conventional Bluetooth earphones lack effective measures to ensure the confidentiality and security of audio recording data, focusing primarily on audio transmission and sound quality rather than data protection.
A method involving real-time audio signal processing, watermark embedding, and detection to secure audio recording, including noise reduction, signal amplification, and conversion to analog format with embedded watermarks for security verification.
Enhances the confidentiality and security of recorded audio data while maintaining high quality, providing a natural auditory experience through secure and integral audio signal reconstruction.
Smart Images

Figure 2026538947000001_ABST
Abstract
Description
TECHNICAL FIELD
[0001] This application claims priority to the Chinese patent application with application number CN202411279492.2 filed with the China National Intellectual Property Administration on September 12, 2024, entitled "Audio Recording and Conversion Method for Bluetooth Earphones", the entire content of which is incorporated into this application by reference. The present application relates to the field of audio recording and conversion technology, and specifically relates to an audio recording and conversion method for Bluetooth earphones. (Bluetooth is a registered trademark, and this note will be omitted hereinafter) BACKGROUND ART
[0002] In the rapidly evolving modern digital age, Bluetooth earphones, as representative personal audio devices, have permeated every aspect of our lives. From daily commutes to sports and fitness, and even to remote work and online education, Bluetooth earphones have gained a broad user base due to their convenience, wireless freedom and high sound quality. However, with technological advancements and the diversification of application scenarios, users' functional demands for Bluetooth earphones are increasing, and in particular, the aspect of audio security conversion and management has become an urgent and important issue.
[0003] However, in practical applications, conventional audio recording by Bluetooth earphones still has several drawbacks. For example, since conventional Bluetooth earphones mainly focus on the stability of audio transmission and the presentation of sound quality, there are obvious defects in ensuring the confidentiality of converting audio recording data. SUMMARY OF THE INVENTION PROBLEMS TO BE SOLVED BY THE INVENTION
[0004] To overcome the above defects of the prior art, the embodiments of the present application provide an audio recording and conversion method for Bluetooth earphones, aiming to solve the problems described in the Background Art section above. MEANS FOR SOLVING THE PROBLEMS
[0005] To achieve the above objective, this application provides the following technical solutions.
[0006] Step A1: Turn on the Bluetooth function of the audio source device, pair it via Bluetooth, and check the recording settings.
[0007] Stage A2: During the recording process, the built-in microphone of the Bluetooth earphones collects the audio signal in real time and processes the collected audio signal to obtain a digital signal.
[0008] Stage A3: Embed a watermark into the processed digital signal, and calculate a watermark evaluation value based on the embedded watermark.
[0009] Stage A4: Convert the watermarked digital signal to an analog signal, and reconstruct the audio signal.
[0010] Stage A5: Perform watermark detection on the reconstructed audio signal and compare the detected watermarks.
[0011] Preferably, in step A1, after turning on Bluetooth on the sound source device, ensure that it is in a "discoverable" state so that surrounding Bluetooth devices can find it, enter pairing mode for the Bluetooth audio device to be connected according to the instructions, click "Search for devices" on the Bluetooth settings page of the sound source device to have the device scan for surrounding Bluetooth devices, find and click the name of the Bluetooth audio device to be connected from the scan results.
[0012] When the user lightly touches the dedicated "Record" button on the Bluetooth earphone, the built-in microphone of the Bluetooth earphone immediately activates and prepares to receive a voice signal. At the same time, the Bluetooth earphone sends a recording start signal to the paired smart device via Bluetooth. After the paired smart device receives the recording start signal, a notification for the recording application immediately appears on the screen. The system displays a message to the user in a user-friendly interface and clear language saying, "Recording will begin shortly. Please select your desired audio format." The user selects the WAV audio format from the options provided on the interface according to their needs. After selecting the audio format, the system displays an overview of the current recording settings. The user needs to carefully review these settings to ensure they meet their needs. If changes are needed, the user clicks on the corresponding option to adjust them. After confirming the recording settings, the user clicks the "Start Recording" button, and the system begins recording according to the set parameters.
[0013] Preferably, in step A2, signal amplification and noise reduction processing are performed on the collected audio signal, and the noise reduction processing method is specifically as follows:
[0014] Stage B1: The collected audio signal is preprocessed, and the preprocessing includes removing the DC component to reduce the effects of noise during processing and applying a window function in the signal pre-stage.
[0015] Step B2: Using the Fast Fourier Transform, the time-domain signal is converted to a frequency-domain representation, and after obtaining the spectrum, the spectrum is expressed as an amplitude spectrum and a phase spectrum.
[0016] Stage B3: Select a section that does not contain useful signals and perform noise estimation. Calculate the spectrum of the noise section to obtain the amplitude spectrum of that section. In this stage, apply a smoothing process to the noise spectrum to obtain a more stable noise model.
[0017] Step B4: Perform spectral subtraction processing on the amplitude spectrum of the original signal to obtain a second amplitude spectrum, and the calculation method of the second amplitude spectrum is specifically as follows.
[0018] [Formula]
[0019] Here, F(a) represents the second amplitude spectrum obtained after noise removal, G(a) represents the estimated noise amplitude spectrum, H(a) represents the amplitude spectrum of the noise signal, β represents the over-subtraction coefficient used to further reduce residual noise, and max represents the function used to compare two values and select the larger one.
[0020] Step B5: Construct a new spectrum by combining the noise-removed amplitude spectrum with the phase spectrum of the original signal, and the calculation method of the new spectrum is specifically as follows.
[0021] [Formula]
[0022] Here, F(a)0 represents the constructed new spectrum, F(a) represents the second amplitude spectrum obtained after noise removal, eL(a) represents the phase spectrum representing the original noise-containing signal, and δ(a) represents the phase angle of the a-th frequency component.
[0023] Step B6: Use Inverse Fast Fourier Transform to transform the noise-removed spectrum into the time domain, so as to obtain the processed speech signal.
[0024] The specific method for performing signal amplification on the speech signal is as follows:
[0025] Step C1: Convert the audio signal that has undergone noise removal into an electrical signal. This electrical signal is usually extremely weak and may only be detectable by delicate electronic components.
[0026] Step C2: The weak audio signal is input to a preamplifier, which amplifies the intensity of the weak signal to a processable level,
[0027] Step C3: The preamplifier is provided with a gain adjustment function, and the user sets the gain value as needed. Here, the gain refers to the signal amplification ratio, and a reasonable gain setting ensures that the audio signal is prevented from being excessively distorted or mixed with noise,
[0028] Step C4: The amplified signal is subjected to subsequent digital signal processing, the signal is further clarified, and various audio effects are applied.
[0029] Preferably, in the step A3, after embedding a watermark into the digital signal, the calculation method for the calculated watermark evaluation value and watermark stability value is specifically as follows.
[0030] [Formula]
[0031] Here, Wd represents the watermark stability value, X represents the correlation coefficient, I represents the frequency domain watermark evaluation value, D represents the first capacitance value, and the calculation method for the watermark sampling ratio is specifically as follows.
[0032] [Formula]
[0033] Here, Z represents the sampling ratio of the watermark, q(b) represents the sampling value of the host audio signal before the watermark is embedded in the audio, q0(b) represents the sampling value of the host audio signal after the watermark is embedded in the audio, T represents the total number of samples, and the method for calculating the watermark evaluation value is specifically as follows.
[0034]
number
[0035] Here, Q represents the watermark evaluation value, X represents the correlation coefficient, Z represents the watermark sampling ratio, and Wd represents the watermark stability value.
[0036] Preferably, in step A4, a DAC device is selected, the DAC's reference voltage, output range, and resolution are set, the converted digital signal is extracted, the prepared digital signal value is written to the DAC's data input register, and the system waits for the conversion to begin. Based on the DAC's design, the conversion is triggered by an external signal, and during the conversion process, the DAC's clock signal is ensured to be accurate so that the digital signal is converted as planned. After the DAC completes the conversion, a stable analog signal is obtained from the output terminal. This process is affected by the DAC's setup time. The output analog signal is smoothed by a filter to obtain a more natural audio waveform. After the DAC and filtering, the signal is converted into a continuous analog waveform, and this continuous analog waveform becomes the reconstructed audio signal.
[0037] Preferably, in step A5, watermark information is extracted from the reconstructed audio signal, and the extracted watermark information is calculated to obtain a watermark similarity value. Specifically, the method for calculating the watermark similarity value is as follows.
[0038]
number
[0039] Here, V represents the watermark similarity value, S represents the sample point, M represents the number of audio frames, and N(e,f) represents the amplitude value of the f-th frequency point in the e-th frame. Based on the calculated watermark similarity value, if the calculated watermark similarity value is equal to a preset watermark similarity threshold, a security command is output and the audio signal is saved to the built-in memory of the Bluetooth earphone. If the calculated watermark similarity value is not equal to a preset watermark similarity threshold, a danger command is output and the process proceeds to step A2. [Effects of the Invention]
[0040] This application provides a method for recording and converting audio for Bluetooth earphones, which are paired via Bluetooth to a sound source device and support direct recording operation and audio format selection on the Bluetooth earphones. The system automatically processes and embeds a watermark into the recorded audio signal, then converts the digital signal to an analog signal to reconstruct the audio output, and finally, performs watermark detection on the reconstructed audio to ensure the security and integrity of the audio data. This method improves the confidentiality and security of the recorded data, and the reconstructed audio signal is of high quality, providing the user with a more natural and realistic auditory experience. [Brief explanation of the drawing]
[0041] [Figure 1] This is a schematic diagram of the process of the method described in this application. [Modes for carrying out the invention]
[0042] The following describes the technical solutions in the embodiments of this application clearly and completely, in combination with the drawings of the embodiments of this application, and it is clear that the embodiments described are only a part of the embodiments of this application, not all of them. All other embodiments that a person skilled in the art can obtain without creative effort based on the embodiments of this application are within the scope of protection of this application.
[0043] Referring to Figure 1, this application provides a method for recording and converting audio for Bluetooth earphones, which includes the following steps:
[0044] Step A1: Turn on the Bluetooth function of the sound source device, establish a pairing connection via Bluetooth, and confirm the recording settings. In Step A1, after turning on Bluetooth on the sound source device, ensure that it is in a "discoverable" state so that nearby Bluetooth devices can find it. For the Bluetooth audio device to be connected, enter pairing mode according to the instructions in the manual, click "Search for devices" on the Bluetooth settings page of the sound source device to have the device scan for nearby Bluetooth devices, find and click the name of the Bluetooth audio device to be connected from the scan results, and in this case, the sound source device will establish a connection with the Bluetooth audio device.
[0045] When the user lightly touches the dedicated "Record" button on the Bluetooth earphone, the built-in microphone of the Bluetooth earphone immediately activates and prepares to receive a voice signal. At the same time, the Bluetooth earphone sends a recording start signal to the paired smart device via Bluetooth. After the paired smart device receives the recording start signal, a notification for the recording application immediately appears on the screen. The system displays the user with a user-friendly interface and clear language, saying, "Recording will begin shortly. Please select your desired audio format." The user selects the WAV audio format from the options provided on the interface according to their needs. After selecting the audio format, the system displays an overview of the current recording settings. The user needs to carefully check these settings to ensure they meet their needs. If changes are needed, the user clicks on the corresponding option to adjust them. After confirming the recording settings, the user clicks the "Start Recording" button, and the system starts recording according to the set parameters. Here, the recording setting parameters include the selected format, recording quality, and enabling / disabling the noise reduction function. The WAV format can maintain high sound quality.
[0046] Stage A2: During the recording process, the built-in microphone of the Bluetooth earphones collects the audio signal in real time and processes the collected audio signal to obtain a digital signal. In Stage A2, signal amplification and noise reduction processing are performed on the collected audio signal. Specifically, the noise reduction processing method is as follows:
[0047] Stage B1: The collected audio signal is preprocessed, and the preprocessing includes removing the DC component to reduce the effects of noise during processing and applying a window function in the signal pre-stage.
[0048] Step B2: Using the Fast Fourier Transform, the time-domain signal is converted to a frequency-domain representation, and after obtaining the spectrum, the spectrum is expressed as an amplitude spectrum and a phase spectrum.
[0049] Stage B3: Select a section that does not contain useful signals and perform noise estimation. Calculate the spectrum of the noise section to obtain the amplitude spectrum of that section. In this stage, apply a smoothing process to the noise spectrum to obtain a more stable noise model.
[0050] Stage B4: A spectral subtraction method is applied to the amplitude spectrum of the original signal to obtain a second amplitude spectrum. The calculation method for the second amplitude spectrum is specifically as follows:
[0051]
number
[0052] Here, F(a) represents the second amplitude spectrum obtained after denoising, G(a) represents the estimated noise amplitude spectrum, H(a) represents the amplitude spectrum of the noise signal, β represents the subtraction coefficient used to further reduce residual noise, and max represents the count used to compare the two values and select the larger one.
[0053] Stage B5: A new spectrum is constructed by combining the amplitude spectrum after noise reduction with the phase spectrum of the original signal. The calculation method for the new spectrum is specifically as follows:
[0054]
number
[0055] Here, F(a)0 represents the newly constructed spectrum, F(a) represents the second amplitude spectrum obtained after denoising, eL(a) represents the phase spectrum representing the original noise-containing signal, and δ(a) represents the phase angle of the a-th frequency component.
[0056] Step B6: Using the inverse fast Fourier transform, the denoised spectrum is converted to the time domain to obtain the processed audio signal. Voice detection is performed on the denoised audio, and it is determined whether or not there is voice in the denoised audio based on the voice confirmation value. The calculation method for the voice confirmation value is specifically as follows.
[0057]
number
[0058] Here, R represents the audio confirmation value, N(e,f) represents the amplitude value of the f-th frequency point in the e-th frame, H represents the total number of audio frames, ρ represents the length of the spectral window, and f max f represents the upper limit of the amplitude value at the frequency point. min This represents the lower limit of the amplitude value at the frequency point. The pre-processed audio signal to be measured is framed and windowed. It is then windowed using a Hamming window with a frame length of 32 milliseconds and a frame shift of 16 milliseconds. Next, a Fourier transform of length 8192 points is performed to obtain the audio signal to be measured. Frame division and windowing: The audio signal is divided into consecutive frames, each with a length of 32 milliseconds, and there is a 16-millisecond overlap (frame shift) between adjacent frames. This is to capture the time-varying characteristics of the signal when analyzing the audio signal.
[0059] Hamming window windowing: To reduce spectral leaks, each frame is multiplied by a single Hamming window function. The Hamming window is a commonly used window function that provides better frequency resolution and lower sidelobe levels in the frequency domain.
[0060] Fourier Transform: An 8192-point Fourier transform is performed on each windowed frame, which converts the audio signal from the time domain to the frequency domain to obtain the spectral signal.
[0061] The method for calculating N(e,f) is as follows:
[0062]
number
[0063] Here, N(e,f) represents the amplitude value of the f-th frequency point in the e-th frame, T represents the harmonic value, and ρ represents the length of the spectral window. The calculated audio confirmation value is compared with a preset audio confirmation value threshold. If the calculated audio confirmation value is greater than the preset audio confirmation value threshold, it is determined that there is audio in the audio. If the calculated audio confirmation value is less than the preset audio confirmation value threshold, it is determined that there is no audio in the audio. The method for performing signal amplification on the audio signal is specifically as follows:
[0064] Stage C1: The audio signal, after noise reduction, is converted into an electrical signal. This electrical signal is usually very weak and may only be detectable by delicate electronic components.
[0065] Stage C2: A weak audio signal is input to the preamplifier, which amplifies the strength of the weak signal to a manageable level.
[0066] Stage C3: The preamplifier is equipped with a gain adjustment function, allowing the user to set the gain value as needed. Here, gain refers to the ratio of signal amplification, and a reasonable gain setting ensures that the audio signal is not excessively distorted or noisy.
[0067] Stage C4: The amplified signal is subjected to subsequent digital signal processing, further clarifying the signal and applying various audio effects.
[0068] Stage A3: A watermark is embedded in the processed digital signal, and a watermark evaluation value is calculated based on the embedded watermark. Specifically, the method for calculating the first capacitance value is as follows:
[0069]
number
[0070] Here, D represents the first capacitance value, E represents the bandwidth of the voice carrier signal, J represents the watermarking efficiency, K represents the attack power, and the method for calculating the frequency domain watermarking evaluation value is specifically as follows.
[0071]
number
[0072] Here, I represents the frequency domain watermark evaluation value, a represents the sampling frequency of the audio signal, P represents the number of watermark bits embedded in each audio frequency domain section, L represents the length of the audio time domain section, R0 represents the number of audio time domain sections, and R1 represents the number of audio frequency domain sections. The method for calculating the correlation coefficient is as follows:
[0073]
number
[0074] Here, X represents the correlation coefficient, t represents the original watermark bit value, t0 represents the detected watermark bit value, and the method for calculating the watermark stability value is specifically as follows.
[0075]
number
[0076] Here, Wd represents the watermark stability value, X represents the correlation coefficient, I represents the frequency domain watermark evaluation value, and D represents the first capacitance value. Specifically, the method for calculating the watermark sampling ratio is as follows.
[0077]
number
[0078] Here, Z represents the sampling ratio of the watermark, q(b) represents the sampling value of the host audio signal before the watermark is embedded in the audio, q0(b) represents the sampling value of the host audio signal after the watermark is embedded in the audio, T represents the total number of samples, and the method for calculating the watermark evaluation value is specifically as follows.
[0079]
number
[0080] Here, Q represents the watermark evaluation value, X represents the correlation coefficient, Z represents the watermark sampling ratio, and Wd represents the watermark stability value. The calculated watermark evaluation value is compared with a preset watermark evaluation threshold. If the calculated watermark evaluation value is greater than the preset watermark evaluation threshold, a success command is output and the process proceeds to stage A5. If the calculated watermark evaluation value is less than the preset watermark evaluation threshold, a failure command is output and the watermark is re-embedded.
[0081] Stage A4: The watermarked digital signal is converted to an analog signal and the audio signal is reconstructed. In Stage A4, a DAC device is selected, the DAC's reference voltage, output range, and resolution are set, the converted digital signal is extracted, the prepared digital signal value is written to the DAC's data input register, and the system waits for the conversion to begin. Based on the DAC's design, the conversion is triggered by an external signal. During the conversion process, the DAC's clock signal is kept accurate so that the digital signal is converted as planned. After the DAC completes the conversion, a stable analog signal is obtained from the output terminal. This process is affected by the DAC's setup time. The output analog signal is smoothed by a filter to obtain a more natural audio waveform. After the DAC and filtering, the signal is converted to a continuous analog waveform, and this continuous analog waveform becomes the reconstructed audio signal.
[0082] DAC stands for Digital-to-Analog Converter.
[0083] Stage A5: Perform watermark detection on the reconstructed audio signal and compare the detected watermarks. In Stage A5, watermark information is extracted from the reconstructed audio signal, and the extracted watermark information is calculated to obtain a watermark similarity value. Specifically, the method for calculating the watermark similarity value is as follows.
[0084]
number
[0085] Here, V represents the watermark similarity value, S represents the sample point, M represents the number of audio frames, and N(e,f) represents the amplitude value of the f-th frequency point in the e-th frame. Based on the calculated watermark similarity value, if the calculated watermark similarity value is equal to a preset watermark similarity threshold, a security command is output and the audio signal is saved to the built-in memory of the Bluetooth earphone. If the calculated watermark similarity value is not equal to a preset watermark similarity threshold, a danger command is output and the process proceeds to step A2.
[0086] It should be noted that the pre-set values in this application are determined based on specific circumstances, and in this embodiment, no specific restrictions are imposed on specific numerical values.
[0087] Finally, the above description is merely a preferred embodiment of the present application and does not limit the present application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present application should all be included within the scope of protection of the present application.
Claims
1. A method for recording and converting audio for Bluetooth earphones, Step A1: Turn on the Bluetooth function of the audio source device, establish a pairing connection via Bluetooth, and confirm the recording settings. Stage A2: During the recording process, the built-in microphone of the Bluetooth earphones collects the audio signal in real time and processes the collected audio signal to obtain a digital signal. Stage A3: Embed a watermark into the processed digital signal, and calculate a watermark evaluation value based on the embedded watermark. Stage A4: Convert the watermarked digital signal into an analog signal, and reconstruct the audio signal. Stage A5: The method for recording and converting audio for Bluetooth earphones, characterized by performing watermark detection on the reconstructed audio signal and determining the detected watermark.
2. In step A2 described above, signal amplification and noise reduction processing are performed on the collected audio signal. Specifically, the noise reduction processing method is as follows: Stage B1: The collected audio signal is preprocessed, and the preprocessing includes removing the DC component to reduce the effects of noise during processing and applying a window function in the signal pre-stage. Step B2: Using the Fast Fourier Transform, the time-domain signal is converted to a frequency-domain representation, and after obtaining the spectrum, the spectrum is represented as an amplitude spectrum and a phase spectrum. Stage B3: Select a section that does not contain useful signals and perform noise estimation, calculate the spectrum of the noise section and obtain the amplitude spectrum of that section. Stage B4: A spectral subtraction method is applied to the amplitude spectrum of the original signal to obtain a second amplitude spectrum. The calculation method for the second amplitude spectrum is specifically as follows: [Math 1] Here, F(a) represents the second amplitude spectrum obtained after denoising, G(a) represents the estimated noise amplitude spectrum, H(a) represents the amplitude spectrum of the noise signal, β represents the subtraction factor used to further reduce residual noise, and max represents the count used to compare the two values and select the larger one. Stage B5: A new spectrum is constructed by combining the amplitude spectrum after noise reduction with the phase spectrum of the original signal. The calculation method for the new spectrum is specifically as follows: [Math 2] Here, F(a) 0 represents the newly constructed spectrum, F(a) represents the second amplitude spectrum obtained after denoising, eL(a) represents the phase spectrum representing the original noise-containing signal, and δ(a) represents the phase angle of the a-th frequency component. Step B6: The process involves using the inverse fast Fourier transform to convert the denoised spectrum into the time domain and obtain the processed audio signal. The method for recording and converting audio for Bluetooth earphones according to claim 1.
3. Voice detection is performed on the denoised audio, and the presence or absence of voice in the denoised audio is determined by the voice confirmation value. The calculation method for the voice confirmation value is specifically as follows: [Math 3] Here, R represents the audio confirmation value, N(e, f) represents the amplitude value of the f-th frequency point in the e-th frame, H represents the total number of audio frames, ρ represents the length of the spectral window, and f max f represents the upper limit of the amplitude value at the frequency point. min This represents the lower limit of the amplitude value at the frequency point. The calculation method for N(e, f) is specifically as follows: [Math 4] Here, N(e, f) represents the amplitude value of the f-th frequency point in the e-th frame, T represents the harmonic value, and ρ represents the length of the spectral window. The system is characterized by comparing the calculated audio confirmation value with a preset audio confirmation value threshold. If the calculated audio confirmation value is greater than the preset audio confirmation value threshold, it is determined that there is audio in the audio. If the calculated audio confirmation value is less than the preset audio confirmation value threshold, it is determined that there is no audio in the audio. The method for recording and converting audio for Bluetooth earphones according to claim 2.
4. In step A3, after embedding a watermark in the digital signal, the watermark evaluation value is calculated, and the method for calculating the first capacitance value is specifically as follows: [Math 5] Here, D represents the first capacitance value, E represents the bandwidth of the voice carrier signal, J represents the watermark efficiency, and K represents the attack power. The calculation method for the frequency domain watermark evaluation value is specifically as follows: [Math 6] Here, I represents the frequency domain watermark evaluation value, a represents the sampling frequency of the audio signal, P represents the number of watermark bits embedded in each audio frequency domain section, L represents the length of the audio time domain section, R0 represents the number of audio time domain sections, and R 1 This is characterized by representing the number of audio frequency domain intervals. The method for recording and converting audio for Bluetooth earphones according to claim 1.
5. The method for calculating the watermark stability value is as follows: [Number 7] Here, Wd represents the watermark stability value, X represents the correlation coefficient, I represents the frequency domain watermark evaluation value, and D represents the first capacitance value. The method for calculating the sampling ratio of the watermark is as follows: Equation 8 Here, Z represents the sampling ratio of the watermark, q(b) represents the sampling value of the host audio signal before the watermark is embedded in the audio, and q 0 (b) represents the sampling value of the host audio signal after the watermark has been embedded in the audio, and T represents the total number of samples. The method for recording and converting audio for Bluetooth earphones according to claim 4.
6. The method for calculating the watermark evaluation value is as follows: [Number 9] Here, Q represents the watermark evaluation value, X represents the correlation coefficient, Z represents the watermark sampling ratio, and Wd represents the watermark stability value. The method for recording and converting audio for Bluetooth earphones according to claims 4 and 5.
7. In step A4, the DAC device is selected, the DAC's reference voltage, output range, and resolution are set, the converted digital signal is extracted, the prepared digital signal value is written to the DAC's data input register, and the system waits for the conversion to begin. Based on the DAC's design, the conversion is triggered by an external signal, and during the conversion process, the DAC's clock signal is ensured to be accurate so that the digital signal is converted as planned. After the DAC completes the conversion, a stable analog signal is obtained from the output terminal, the output analog signal is smoothed by a filter to obtain a more natural audio waveform, and after the DAC and filtering, the signal is converted into a continuous analog waveform, and the continuous analog waveform becomes the reconstructed audio signal. The method for recording and converting audio for Bluetooth earphones according to claim 1.
8. In step A5, watermark information is extracted from the reconstructed audio signal, and the extracted watermark information is used to obtain a watermark similarity value. The method for calculating the watermark similarity value is specifically as follows: [Number 10] Here, V represents the watermark similarity value, S represents the sample point, M represents the number of audio frames, and N(e, f) represents the amplitude value of the f-th frequency point in the e-th frame. The system is characterized by the following: it calculates based on the calculated watermark similarity value, outputs a security command if the calculated watermark similarity value is equal to a preset watermark similarity threshold, and outputs a danger command if the calculated watermark similarity value is not equal to a preset watermark similarity threshold. The method for recording and converting audio for Bluetooth earphones according to claim 1.
9. The system is characterized by the following: when the control terminal receives a security command, it saves the audio signal to the built-in memory of the Bluetooth earphone, and when the control terminal receives a dangerous command, it proceeds to stage A2. The method for recording and converting audio for Bluetooth earphones according to claim 8.
