技术领域Technical field
本发明属于通信技术领域,涉及基于非扬声器发声的麦克风语音注入方法,尤其涉及一种基于电子设备陶瓷电容发声的麦克风语音注入方法。The invention belongs to the field of communication technology, and relates to a microphone voice injection method based on non-speaker sound generation, and in particular, to a microphone voice injection method based on electronic equipment ceramic capacitor sound generation.
背景技术Background technique
在被监听的场所中,无声地向麦克风注入语音可以实现隐蔽通信,防止说话的内容被窃听。目前,已有将待注入的语音调制到超声波,并利用麦克风的非线性自动解调,从而实现无声地麦克风语音注入的方法。然而,已有的方法需要扬声器来发出超声波,具有一定的局限性。本发明提供一种新的麦克风语音注入方法,该方法能够打破扬声器的限制,采用非扬声器设备,即利用电子设备内部的陶瓷电容发出超声波,无声地向麦克风注入语音,实现隐蔽通信。In a monitored location, silently injecting speech into the microphone can achieve covert communication and prevent the spoken content from being eavesdropped. At present, there are methods that modulate the voice to be injected into ultrasonic waves and use the nonlinearity of the microphone to automatically demodulate, thereby achieving silent microphone voice injection. However, existing methods require speakers to emit ultrasonic waves, which has certain limitations. The present invention provides a new microphone voice injection method, which can break the limitations of speakers and use non-speaker equipment, that is, the ceramic capacitor inside the electronic device is used to emit ultrasonic waves to silently inject voice into the microphone to achieve covert communication.
发明内容Contents of the invention
本发明的目的在于针对现有的麦克风语音注入方法依赖于扬声器发声,提供一种基于非扬声器发声的麦克风语音注入方法,通过在电子设备内部执行一段程序,使电子设备内部陶瓷电容两端的电压发生变化,并由于陶瓷电容的逆压电效应转化为机械振动,从而产生语音信号,注入到麦克风中。本发明采用脉宽调制方式将语音信号调制到超声波,并利用麦克风的非线性作用自动解调,实现了不可听的麦克风语音注入。本发明的语音注入方法不需要使用扬声器发声,而是利用电子设备内部的电容发声,填补了无扬声器语音注入方向的空白。本发明可以用于实现被监听场所的隐蔽语音通信。The object of the present invention is to provide a microphone voice injection method based on non-speaker sound generation in view of the existing microphone voice injection method that relies on loudspeaker sound. By executing a program inside the electronic device, the voltage across the ceramic capacitor inside the electronic device is generated. The change is converted into mechanical vibration due to the inverse piezoelectric effect of the ceramic capacitor, thereby generating a speech signal and injecting it into the microphone. The invention uses pulse width modulation to modulate the voice signal into ultrasonic waves, and utilizes the nonlinear effect of the microphone to automatically demodulate, thereby realizing inaudible microphone voice injection. The voice injection method of the present invention does not require the use of a speaker to produce sound, but uses the capacitor inside the electronic device to produce sound, filling the gap in the voice injection direction without a speaker. The invention can be used to realize covert voice communication in monitored places.
本发明的基于电子设备陶瓷电容发声的麦克风语音注入方法,具体如下:The present invention’s microphone voice injection method based on electronic equipment ceramic capacitor sound generation is as follows:
步骤1:对待注入的语音信号S(t)进行预处理;方法可以如下:Step 1: Preprocess the speech signal S(t) to be injected; the method can be as follows:
步骤1.1:将语音信号S(t)通过低通滤波器,并在不饱和的情况下将信号放大;Step 1.1: Pass the speech signal S(t) through a low-pass filter and amplify the signal without saturation;
步骤1.1.1:使用理想低通滤波器,对语音信号S(t)进行低通滤波,记滤波后的信号为S1(t);Step 1.1.1: Use an ideal low-pass filter to perform low-pass filtering on the speech signal S(t), and record the filtered signal as S1 (t);
步骤1.2.2:取S1(t)的绝对值的最大值max(|S1(t)|对S1(t)进行缩放,得到Step 1.2.2: Take the maximum value max(|S1 (t)| of the absolute value of S1 (t) and scale S1 (t) to get
步骤2:选择脉宽调制载波频率fPWM;方法可以如下:Step 2: Select the pulse width modulation carrier frequency fPWM ; the method can be as follows:
步骤2.1:以频率为f的正弦波为输入,电子设备陶瓷电容发声的声压级为输出,测量得到电子设备陶瓷电容发声的频率响应曲线HL(f);Step 2.1: Taking the sine wave with frequency f as the input and the sound pressure level of the electronic equipment ceramic capacitor as the output, measure the frequency response curve HL (f) of the electronic equipment ceramic capacitor sound;
步骤2.2:以信号为输入,fm频率分量的幅值为输出,测量得到目标麦克风的频率响应曲线HM(f);Step 2.2: Take signal is the input, the amplitude of the frequency component fm is the output, and the frequency response curve HM (f) of the target microphone is measured;
步骤2.3:在满足频率f为不可听频段的条件下,取fPWM=maxf(HL(f)HM(f))作为脉宽调制的载波频率;Step 2.3: Under the condition that frequency f is an inaudible frequency band, take fPWM =maxf (HL (f) HM (f)) as the carrier frequency of pulse width modulation;
步骤3:对待注入的语音信号音频S2进行脉宽调制,其中载波频率为fPWM;方法可以如下:Step 3: Perform pulse width modulation on the voice signal audioS2 to be injected, where the carrier frequency is fPWM ; the method can be as follows:
步骤3.1:将步骤1处理后的待注入语音信号S2(t)以频率fPWM重新采样为S3,表示为S3={x1,x2,…,xn},其中xi=S2(iTPWM),TPWM=1/fPWM,T为语音信号S2(t)的总长度。Step 3.1: Resample the speech signal S2 (t) processed in step 1 to be injected into S3 with frequency fPWM , expressed as S3 ={x1 ,x2 ,…,xn }, wherexi = S2 (iTPWM ), TPWM =1/fPWM , T is the total length of the speech signal S2 (t).
步骤3.2:将S3进行脉宽调制,得到占空比序列D={D1,D2,…,Dn},其中Di为第i个周期的占空比,Step 3.2: Perform pulse width modulation on S3 to obtain the duty cycle sequence D = {D1 , D2 ,..., Dn }, where Di is the duty cycle of the i-th cycle,
步骤4:将脉宽调制后的信号D转化为可在电子设备(必须是具有负载控制功能的电子设备(比如台灯调亮度、电机调转速、屏幕调亮度等)才可以控制其内部陶瓷电容发声)上执行的程序P;Step 4: Convert the pulse-width modulated signal D into an electronic device (must be an electronic device with a load control function (such as desk lamp brightness adjustment, motor speed adjustment, screen brightness adjustment, etc.)) before its internal ceramic capacitor can be controlled to produce sound. ) program P executed on;
步骤4.1:设置脉宽调制定时器,定时周期为初始占空比为D1;Step 4.1: Set the pulse width modulation timer, the timing period is The initial duty cycle is D1 ;
步骤4.2:编写脉宽调制定时器中断函数,在第i个定时周期的中断函数中,通过脉宽调制定时器提供的程序接口设置下一周期的脉宽调制占空比为Di+1;Step 4.2: Write the pulse width modulation timer interrupt function. In the interrupt function of the i-th timing period, set the pulse width modulation duty cycle of the next period to Di+1 through the program interface provided by the pulse width modulation timer;
步骤4.3:设置程序P的触发条件;Step 4.3: Set the trigger conditions of program P;
步骤5:将程序P嵌入电子设备;可以通过固件更新或升级方式嵌入设备内部。Step 5: Embed the program P into the electronic device; it can be embedded into the device through firmware update or upgrade.
步骤6:当需要发送控制指令时,可通过触发条件激活程序P,并将电子设备靠近目标麦克风,从而实现语音注入。Step 6: When control instructions need to be sent, program P can be activated through trigger conditions, and the electronic device can be brought close to the target microphone to achieve voice injection.
本发明具有的有益效果是:The beneficial effects of the present invention are:
本发明利用了陶瓷电容的逆压电效应,实现了基于电子设备陶瓷电容发声的麦克风语音注入方法,可以用于被监听场景下的隐蔽语音通信。尤其是本发明中通过在电子设备上运行一段程序,使电子设备内部的陶瓷电容发出不可听的超声波,无声地向麦克风注入语音信号。相比于已有的麦克风语音注入方法,本发明不需要使用扬声器,只需要具有陶瓷电容的电子设备即可实现麦克风语音注入。The present invention utilizes the inverse piezoelectric effect of ceramic capacitors to implement a microphone voice injection method based on the sound produced by ceramic capacitors of electronic equipment, which can be used for covert voice communication in monitored scenarios. In particular, in the present invention, by running a program on the electronic device, the ceramic capacitor inside the electronic device emits inaudible ultrasonic waves and silently injects voice signals into the microphone. Compared with the existing microphone voice injection method, the present invention does not require the use of a speaker, and only requires an electronic device with a ceramic capacitor to achieve microphone voice injection.
附图说明Description of the drawings
图1是本发明的将语音信号转化为电子设备控制代码的流程图;Figure 1 is a flow chart of converting voice signals into electronic device control codes according to the present invention;
图2是使用图1中生成的代码实现麦克风语音注入的流程图。Figure 2 is a flowchart for implementing microphone voice injection using the code generated in Figure 1.
具体实施方式Detailed ways
下面结合附图对本发明方法做进一步说明。The method of the present invention will be further described below in conjunction with the accompanying drawings.
本发明提供一种基于非麦克风设备发声的智能语音助手隐蔽控制方法,尤其是电子设备陶瓷电容发声方法,与已有智能语音助手隐蔽控制方法中的发声方法不同,该方法利用了台灯电子设备陶瓷电容的逆压电效应,通过程序控制电子设备的陶瓷电容两端的电压,发出无声语音信号,从而实现基于非麦克风设备发声的智能语音助手隐蔽控制。由语音信号生成电子设备控制程序的流程如图1所示,主要包括语音信号预处理、选择脉宽调制的载波频率、对语音信号进行脉宽调制、将脉宽调制后的信号转化为可在电子设备上执行的程序等过程。The present invention provides a method for concealing control of an intelligent voice assistant based on the sound produced by a non-microphone device, especially a method for producing sounds by ceramic capacitors of electronic equipment. This method is different from the methods of producing sounds in the existing concealed control methods of intelligent voice assistants. This method utilizes the ceramics of desk lamp electronic equipment. The inverse piezoelectric effect of the capacitor can program the voltage across the ceramic capacitor of the electronic device to emit a silent voice signal, thereby achieving covert control of the intelligent voice assistant based on the sound produced by the non-microphone device. The process of generating an electronic device control program from a voice signal is shown in Figure 1. It mainly includes voice signal preprocessing, selecting the carrier frequency of pulse width modulation, pulse width modulating the voice signal, and converting the pulse width modulated signal into a signal that can be Processes such as programs executed on electronic devices.
具体如下:details as follows:
步骤1:对待注入的语音信号S进行预处理;Step 1: Preprocess the speech signal S to be injected;
步骤1.1:将语音信号S(t)通过低通滤波器,并在不饱和的情况下将信号放大;Step 1.1: Pass the speech signal S(t) through a low-pass filter and amplify the signal without saturation;
步骤1.1.1:使用理想低通滤波器,对语音信号S(t)进行低通滤波,记滤波后的信号为S1(t);Step 1.1.1: Use an ideal low-pass filter to perform low-pass filtering on the speech signal S(t), and record the filtered signal as S1 (t);
步骤1.1.2:取S1(t)的绝对值的最大值max(|S1(t)|对S1(t)进行缩放,得到Step 1.1.2: Take the maximum value max(|S1 (t)| of the absolute value of S1 (t) and scale S1 (t) to get
步骤2:选择脉宽调制载波频率fPWM;Step 2: Select the pulse width modulation carrier frequency fPWM ;
步骤2.1:以频率为f的正弦波为输入,电子设备陶瓷电容发声的声压级为输出,测量得到电子设备陶瓷电容发声的频率响应曲线HL(f);Step 2.1: Taking the sine wave with frequency f as the input and the sound pressure level of the electronic equipment ceramic capacitor as the output, measure the frequency response curve HL (f) of the electronic equipment ceramic capacitor sound;
步骤2.2:以信号为输入,fm频率分量的幅值为输出,测量得到目标麦克风的频率响应曲线HM(f);Step 2.2: Take signal is the input, the amplitude of the frequency component fm is the output, and the frequency response curve HM (f) of the target microphone is measured;
步骤2.3:在满足频率f为不可听频段的条件下,取fPWM=maxf(HL(f)HM(f))作为脉宽调制的载波频率;Step 2.3: Under the condition that frequency f is an inaudible frequency band, take fPWM =maxf (HL (f) HM (f)) as the carrier frequency of pulse width modulation;
步骤3:对待注入的语音信号音频S2进行脉宽调制,其中载波频率为fPWM;Step 3: Perform pulse width modulation on the voice signal audio S2 to be injected, where the carrier frequency is fPWM ;
步骤3.1:将步骤1处理后的待注入语音信号S2(t)以频率fPWM重新采样为S3,表示为S3={x1,x2,…,xn},其中xi=S2(iTPWM),TPWM=1/fPWM,T为语音信号S2(t)的总长度。Step 3.1: Resample the speech signal S2 (t) processed in step 1 to be injected into S3 with frequency fPWM , expressed as S3 ={x1 ,x2 ,…,xn }, wherexi = S2 (iTPWM ), TPWM =1/fPWM , T is the total length of the speech signal S2 (t).
步骤3.2:将S3进行脉宽调制,得到占空比序列D={D1,D2,…,Dn},其中Di为第i个周期的占空比,Step 3.2: Perform pulse width modulation on S3 to obtain the duty cycle sequence D = {D1 , D2 ,..., Dn }, where Di is the duty cycle of the i-th cycle,
步骤4:将脉宽调制后的信号D转化为可在电子设备(如台灯的单片机)上执行的程序P;Step 4: Convert the pulse-width modulated signal D into a program P that can be executed on an electronic device (such as a microcontroller of a desk lamp);
步骤4.1:设置脉宽调制定时器,定时周期为初始占空比为D1;Step 4.1: Set the pulse width modulation timer, the timing period is The initial duty cycle is D1 ;
步骤4.2:编写脉宽调制定时器中断函数,在第i个定时周期的中断函数中,通过脉宽调制定时器提供的程序接口设置下一周期的脉宽调制占空比为Di+1;Step 4.2: Write the pulse width modulation timer interrupt function. In the interrupt function of the i-th timing period, set the pulse width modulation duty cycle of the next period to Di+1 through the program interface provided by the pulse width modulation timer;
步骤4.3:设置程序P的触发条件;Step 4.3: Set the trigger conditions of program P;
步骤5:将程序P嵌入电子设备;Step 5: Embed the program P into the electronic device;
步骤6:当需要发送控制指令时,可通过触发条件激活程序P,并将电子设备靠近目标麦克风,从而实现语音注入。Step 6: When control instructions need to be sent, program P can be activated through trigger conditions, and the electronic device can be brought close to the target microphone to achieve voice injection.
本发明的实施方法如图2所示。首先,通过上述步骤1-5将待注入的语音信号转化为可在电子设备上运行的控制程序。经过此过程,语音信号被调制到超声波频段,由于脉宽调制的特性,可听频段的语音被保留。其次,该控制程序被执行,控制电子设备的陶瓷电容发声。由于陶瓷电容低频频率响应差,陶瓷电容发出的声波能量主要集中在超声波频段,因此对人耳不可听。最后,陶瓷电容发出的声波被目标麦克风接收,并利用麦克风的非线性自动解调,还原出原始语音,从而实现无声地麦克风语音注入。The implementation method of the present invention is shown in Figure 2. First, through the above steps 1-5, the voice signal to be injected is converted into a control program that can be run on the electronic device. After this process, the speech signal is modulated into the ultrasonic frequency band. Due to the characteristics of pulse width modulation, the speech in the audible frequency band is retained. Secondly, the control program is executed to control the ceramic capacitor of the electronic device to produce sound. Due to the poor low-frequency frequency response of ceramic capacitors, the sound wave energy emitted by ceramic capacitors is mainly concentrated in the ultrasonic frequency band, so it is inaudible to the human ear. Finally, the sound waves emitted by the ceramic capacitor are received by the target microphone, and the nonlinear automatic demodulation of the microphone is used to restore the original speech, thereby achieving silent microphone speech injection.
本发明可用于被监听场景下的语音通信。如人员甲与人员乙需要通话,人员甲处于不安全的场所,其附近可能存在窃听设备。此时,如果甲与乙正常通话,则甲说话的内容将被窃听。甲可以利用具有可调负载功能的电子设备(如台灯)内部的陶瓷电容来发出超声波,并将手机麦克风贴近台灯表面,隐蔽地传输通话内容。具体地,甲可将说话的内容转换成一段程序,将触发条件设置为智能台灯的某一按键被按下或亮度旋钮到达某个刻度;随后,甲通过固件更新方式将这段程序嵌入到智能台灯内部的单片机中;当需要进行隐蔽通话时,甲通过按键或调节亮度旋钮触发该程序,使台灯内部地陶瓷电容振动发出不可听的超声波,无声地将说话的内容注入到电话麦克风中,人员乙即可接收到该说话的内容。The present invention can be used for voice communication in monitored scenarios. If Person A and Person B need to talk to each other, Person A is in an unsafe place, and there may be eavesdropping equipment nearby. At this time, if A and B talk normally, the content of A's speech will be eavesdropped. Person A can use the ceramic capacitor inside an electronic device with adjustable load function (such as a desk lamp) to emit ultrasonic waves, and put the mobile phone microphone close to the surface of the desk lamp to covertly transmit the call content. Specifically, A can convert the spoken content into a program, and set the trigger condition to be that a certain button of the smart desk lamp is pressed or the brightness knob reaches a certain scale; then, A embeds this program into the smart desk lamp through a firmware update. In the microcontroller inside the desk lamp; when a covert call needs to be made, A triggers the program by pressing a button or adjusting the brightness knob, causing the ceramic capacitor inside the desk lamp to vibrate and emit inaudible ultrasonic waves, silently injecting the spoken content into the phone microphone. B can receive the content of the speech.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111659734.7ACN114301569B (en) | 2021-12-30 | 2021-12-30 | Microphone voice injection method based on ceramic capacitor sounding of electronic equipment |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111659734.7ACN114301569B (en) | 2021-12-30 | 2021-12-30 | Microphone voice injection method based on ceramic capacitor sounding of electronic equipment |
| Publication Number | Publication Date |
|---|---|
| CN114301569A CN114301569A (en) | 2022-04-08 |
| CN114301569Btrue CN114301569B (en) | 2024-02-20 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111659734.7AActiveCN114301569B (en) | 2021-12-30 | 2021-12-30 | Microphone voice injection method based on ceramic capacitor sounding of electronic equipment |
| Country | Link |
|---|---|
| CN (1) | CN114301569B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108156291A (en)* | 2017-12-29 | 2018-06-12 | 广东欧珀移动通信有限公司 | Speech signal collection method, device, electronic equipment and readable storage medium |
| CN108172224A (en)* | 2017-12-19 | 2018-06-15 | 浙江大学 | A Machine Learning-Based Defense Against Unspoken Commands to Control Voice Assistants |
| CN108631884A (en)* | 2018-05-15 | 2018-10-09 | 浙江大学 | A kind of sound wave communication method based on nonlinear interaction |
| CN112151059A (en)* | 2020-09-25 | 2020-12-29 | 南京工程学院 | A Channel Attention Weighted Speech Enhancement Method for Microphone Arrays |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108172224A (en)* | 2017-12-19 | 2018-06-15 | 浙江大学 | A Machine Learning-Based Defense Against Unspoken Commands to Control Voice Assistants |
| CN108156291A (en)* | 2017-12-29 | 2018-06-12 | 广东欧珀移动通信有限公司 | Speech signal collection method, device, electronic equipment and readable storage medium |
| CN108631884A (en)* | 2018-05-15 | 2018-10-09 | 浙江大学 | A kind of sound wave communication method based on nonlinear interaction |
| CN112151059A (en)* | 2020-09-25 | 2020-12-29 | 南京工程学院 | A Channel Attention Weighted Speech Enhancement Method for Microphone Arrays |
| Publication number | Publication date |
|---|---|
| CN114301569A (en) | 2022-04-08 |
| Publication | Publication Date | Title |
|---|---|---|
| US11856366B2 (en) | Methods and apparatuses for driving audio and ultrasonic signals from the same transducer | |
| CN108196683B (en) | Sound to haptic effect conversion system using waveforms | |
| US7253350B2 (en) | Vibration source driving device | |
| JP5564475B2 (en) | System and method for controlling a resonant device to generate vibrotactile haptic effects | |
| CN104469607B (en) | Audio and ultrasonic signal processing circuit, ultrasonic signal processing circuit and correlation technique | |
| CN104104775A (en) | Method for automatically adjusting mobile phone ringing tone volume and vibration modes and device thereof | |
| CN108076419A (en) | Linear resonant actuator controller | |
| CN106560722B (en) | Audio device and method for detecting position and movement of object relative to audio device | |
| JP2005204288A (en) | Method of driving directional speaker, and the directional speaker | |
| CN101790118A (en) | Audio-frequency directional loudspeaker system and signal processing method thereof | |
| JP2016518078A (en) | Wireless control system for personal communication devices | |
| US20230327796A1 (en) | Microphone Jammer | |
| CN205160755U (en) | Headset Controls, Headsets & Wearables | |
| CN114301569B (en) | Microphone voice injection method based on ceramic capacitor sounding of electronic equipment | |
| CN117831531A (en) | A method for controlling a mobile phone by voice | |
| JP2001346288A (en) | Parametric speaker | |
| US20050149338A1 (en) | Ultrasonic speaker and audio signal playback control method for ultrasonic speaker | |
| TW202407513A (en) | Audio and haptic signal processing | |
| JP2009290253A (en) | Parametric speaker | |
| CN108631884A (en) | A kind of sound wave communication method based on nonlinear interaction | |
| CN210693953U (en) | Anti-eavesdropping and anti-stealing recording device | |
| TWI505181B (en) | Audio playback system | |
| CN207340170U (en) | A kind of anti-phonographic recorder of low-and high-frequency for mini-session | |
| CN205995032U (en) | Voice-control toy | |
| CN104349243A (en) | Music playing system |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |