USB HID microphone supporting Google browser

The USB HID microphone supports Google Chrome with integrated modules for direct recognition and noise reduction, addressing operational complexity and compatibility issues by eliminating the need for script plug-ins, ensuring efficient and clear audio performance.

CN119070845APending Publication Date: 2024-12-03惠州市晟西科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411016313.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-27
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

Existing USB microphones require additional script plug-ins for full functionality, leading to operational complexity and compatibility issues, especially when used with Google Chrome.

Method used

A USB HID microphone designed to support Google Chrome, featuring a pre-stage conversion module, protocol establishment module, button module, volume adjustment module, and noise reduction module, which includes a 16-bit analog-to-digital unit, power amplifier, and optimized spectral subtraction for noise reduction, allowing direct recognition and interaction without script plug-ins.

Benefits of technology

Enables seamless integration with Google Chrome, reducing operational complexity and improving efficiency by eliminating the need for script plug-ins, while ensuring clear audio output and noise reduction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119070845A_ABST
    Figure CN119070845A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of microphone, in particular to a USB (Universal Serial Bus) HID (Human Interface Device) microphone supporting a Google browser, which comprises a main end device and an auxiliary end device, the microphone main body comprises a preceding stage conversion module, a protocol establishment module, a key module, a volume adjustment module and a noise reduction module; the preceding-stage conversion module is used for converting USB digital signals, the protocol establishment module is used for establishing a USB-HID protocol, the key module is used for generating a timestamp which can be identified by a Google browser, the volume adjustment module is used for adaptively adjusting the volume based on collected environment sound, and the noise reduction module is used for reducing noise based on an optimized spectral subtraction method. In the invention, when the PPT key K0 is pressed down or released, the key value of the register is changed, and when the register is monitored, the corresponding call program is started, and the main end equipment directly calls and obtains the timestamp of the change of the microphone key, so that the interactive communication is more convenient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of microphones, and in particular to a USB HID microphone supporting Google Chrome. Background Art

[0002] A microphone is a walkie-talkie accessory that is easy to wear and has clear sound quality. It is suitable for a variety of communication devices, such as car walkie-talkies and video surveillance. It is generally directly connected to a main device that can output analog audio signals as the end of a mobile voice call.

[0003] As a portable terminal, the microphone plays an important role in voice communication. Although the existing USB microphones are compatible with USB2.0 and below specifications, meet the USB-HID standard, and can convert the host's USB audio digital information into analog audio signals, they still have many shortcomings; for example, additional script plug-ins are required to realize complete functions, which not only increases the complexity of operation, but also may cause system compatibility issues and reduce usage efficiency.

[0004] As Google Chrome supports cameras, microphones, and game joysticks (such as Pro, Joy-con), Google Chrome natively supports the recognition and direct use of these peripherals without any script plug-ins, making these peripherals more efficient; and the needs of the modern smart product ecosystem, network control programs are becoming more and more mainstream; therefore, the microphone can be simulated into a handle that supports Google Chrome. When the microphone buttons are operated, it is equivalent to the buttons on the handle, which can be directly recognized by Google Chrome and can of course be used by applications developed based on Google Chrome, eliminating the need for script production and also saving program running. Summary of the invention

[0005] The object of the present invention is to provide a USB HID microphone supporting Google Chrome to solve the problems raised in the above background technology.

[0006] In order to solve the above technical problems, the present invention aims to provide a USB HID microphone supporting Google Chrome, comprising:

[0007] The main device includes the Google browser and the recognition module;

[0008] The microphone body includes a pre-stage conversion module, a protocol establishment module, a button module, a volume adjustment module and a noise reduction module;

[0009] The host device and the microphone body are connected via a USB signal, the pre-stage conversion module is used to convert USB digital signals, the protocol establishment module is used to establish a USB-HID protocol, the button module is used to generate a timestamp that can be recognized by the Google browser, the volume adjustment module adaptively adjusts the volume based on the collected ambient sound, and the noise reduction module reduces noise based on optimized spectral subtraction.

[0010] As a further improvement of the technical solution, the USB digital signal output by the host device is converted into an audio signal in the pre-stage conversion module through a 16-bit analog-to-digital unit, and the audio signal is played by the speaker driven by the post-stage power amplifier. The received local microphone signal is converted into a USB digital signal in the pre-stage conversion module through a 16-bit analog-to-digital unit. The pre-stage conversion module also includes other control signals and multiple voltage adjustment units, and the voltage adjustment unit is used for use by the conversion device.

[0011] As a further improvement of the present technical solution, the button module includes a PPT button K0, which controls the on and off of the local microphone and the start of the power amplifier driving the speaker. When the PPT button K0 is pressed, the local microphone starts to collect sound signals and converts them into USB digital signals and sends them back to the host device, and the power amplifier driving the speaker is turned off; when the PTT button K0 is released, the power amplifier is enabled to work, the power amplifier driving the speaker works, and the local microphone is turned off.

[0012] As a further improvement of the present technical solution, the protocol establishment module uses embedded MCU software to establish a handle that the Google Chrome supports for recognition and uploads a HID report when the PPT button K0 is pressed and released, generating a timestamp that can be called by the Google Chrome.

[0013] As a further improvement of the technical solution, the steps of the protocol establishment module detecting the pressing and releasing of the PPT button K0 are as follows: the pressing and releasing of the PPT button K0 is connected to the protocol establishment module, as GPIO3, to control the value change of the HID register, configure the HID protocol HID_IR0[7:6]=00b, the HID register HID_IR1[3:0] is used as the input value of GPIO, the hardware circuit pulls down the GPIO3 pin, and when the PPT button K0 is pressed, the hardware circuit biases GPIO3 to 5V.

[0014] As a further improvement of the technical solution, the sampling rates of the codec in the pre-conversion module include 44.1kHz and 48kHz, and the power amplifier driving the speaker includes a left channel and a right channel.

[0015] As a further improvement of the technical solution, the identification module is used to generate a HID report, and the generated HID report includes an unconnected state and a connected state.

[0016] As a further improvement of the technical solution, the specific steps of the volume adjustment module adaptively adjusting the volume based on the collected ambient sound are:

[0017] Step 1: Use the audio input device to collect environmental sounds;

[0018] Step 2: Perform analog-to-digital conversion to convert the analog sound signal into a digital signal;

[0019] Step 3: The sound intensity is expressed as the root mean square value of the sound signal. The corresponding formula is:

[0020]

[0021] Where I is the root mean square value, N is the number of sampling points, and x(n) is the value of the nth sampling point;

[0022] Step 4: Set multiple sound intensity thresholds and corresponding volume adjustment values.

[0023]

[0024] in, is the final output sound intensity, I1 and I2 are the set sound intensity thresholds, and α and β are the set coefficients.

[0025] As a further improvement of the technical solution, the specific steps of the noise reduction module for noise reduction based on optimized spectral subtraction are:

[0026] Step 1: Divide the audio signal into shorter frames and apply a Hamming window to each frame to reduce the discontinuity of the frame boundaries.

[0027]

[0028] x w (n) = x(n)w(n)

[0029] Where w(n) is the Hamming window function, x(n) is the audio signal, n is the index in the window function, L is the length of the window, and x w (n) is the windowed signal;

[0030] Step 2: Perform fast Fourier transform on each windowed frame to convert the time domain signal into the frequency domain, and we have:

[0031]

[0032] Where j is the imaginary unit, k is the index in the frequency domain, f is the frequency, and X(f) is the spectrum value at frequency f;

[0033] Step 3: In the initial silent segment or noise-dominated segment of the audio signal, estimate the average power spectrum of the noise, which is:

[0034]

[0035] Where N(f) is the estimated spectral amplitude of the noise at frequency f, M is the number of frames in the noise segment, i is the index of the noise segment, and X noise (f,i) is the frequency spectrum of the i-th frame of the noise segment at frequency f;

[0036] Step 4: Calculate the priori signal-to-noise ratio and the spectrum amplitude after noise reduction:

[0037]

[0038] Among them, γ(f) is the prior signal-to-noise ratio, Y(f) is the spectrum amplitude value at frequency f after noise reduction, max means taking the maximum value, μ is the over-reduction factor, φ is the lower limit control factor, and σ(f) is the compensation factor;

[0039] Step 5: Phase correction to retain the phase information of the original audio signal;

[0040] Step 6: Perform inverse fast Fourier transform on the processed frequency domain signal and convert it back to the time domain;

[0041] Step 7: overlap and add the processed frames to obtain the final noise-reduced audio signal.

[0042] Compared with the prior art, the present invention has the following beneficial effects: in the USB HID microphone supporting Google Chrome, the HID register can be notified when the PPT button K0 is pressed or released, and the key value of the HID register can be changed. When the host application monitors the register, the call requirement of the terminal microphone can be read in time, and the corresponding call program can be started. The host device directly calls to obtain the timestamp of the microphone button change, which is more convenient for interactive communication. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is the overall structure diagram of the present invention;

[0044] Figure 2 It is a structural diagram of the master-end device in the present invention;

[0045] Figure 3 It is a structural diagram of the microphone body in the present invention;

[0046] Figure 4 It is a structural diagram of the front-stage conversion module in the present invention.

[0047] The meanings of the various marks in the figure are as follows: 10, main end device; 100, Google Chrome; 101, identification module; 20, microphone body; 200, pre-stage conversion module; 201, protocol establishment module; 202, button module; 203, volume adjustment module; 204, noise reduction module. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] like Figure 1-Figure 4 As shown, the purpose of this embodiment is to provide a USB HID microphone supporting Google Chrome, including:

[0050] The host device 10 includes Google Chrome 100 and an identification module 101. Google Chrome 100 is a free, open source web browser known for its simple user interface, fast browsing speed, excellent security, and rich extension library, which facilitates the consistency of browsing data and settings on different platforms;

[0051] The microphone body 20 includes a pre-stage conversion module 200, a protocol establishment module 201, a button module 202, a volume adjustment module 203 and a noise reduction module 204;

[0052] The host device 10 and the microphone body 20 are connected via a USB signal, the pre-stage conversion module 200 is used to convert USB digital signals, the protocol establishment module 201 is used to establish a USB-HID protocol, the button module 202 is used to generate a timestamp that can be recognized by the Google browser 100, the volume adjustment module 203 adaptively adjusts the volume based on the collected ambient sound, and adjusts the sound intensity of the microphone body 20 according to the different ambient sound intensities to ensure that the user can clearly hear the sound output by the host device 10, and the noise reduction module 204 reduces noise based on optimized spectral subtraction. Spectral subtraction is an algorithm widely used in the field of speech enhancement. It is to subtract the spectrum of the noise signal from the spectrum of the noisy signal to obtain a spectrum estimate of the pure speech.

[0053] In this embodiment, the USB digital signal output by the host device 10 is converted into an audio signal by a 16-bit analog-to-digital unit in the pre-stage conversion module 200, and the audio signal is played by the speaker driven by the post-stage power amplifier. The received local microphone signal is converted into a USB digital signal by the 16-bit analog-to-digital unit in the pre-stage conversion module 200. The pre-stage conversion module 200 also includes other control signals and a variety of voltage adjustment units. The voltage adjustment unit is used for use by the conversion device. The host device 10 reads the PPT button K0 state in the button module 202, thereby actively turning on the local microphone or the power amplifier to drive the speaker to achieve half-duplex communication, thereby solving the problem that the USB interface protocol has only 4 wires, all of which have been used for digital communication and power supply, and there is no separate wire core for transmitting the state change of the button.

[0054] Furthermore, the button module 202 includes a PPT button K0, which controls the on and off of the local microphone and the start of the power amplifier driving the speaker. When the PPT button K0 is pressed, the local microphone starts to collect sound signals and converts them into USB digital signals and sends them back to the main device 10, and the power amplifier driving the speaker is turned off; when the PTT button K0 is released, the power amplifier is enabled to work, the power amplifier driving the speaker works, and the local microphone is turned off.

[0055] Furthermore, the protocol establishment module 201 uses the embedded MCU software to establish a handle that is supported and recognized by Google Chrome 100 and uploads a HID report when the PPT button K0 is pressed and released, generating a timestamp that can be called by Google Chrome 100. The embedded application does not need to constantly call the script to query the status of the PPT button K0, thus saving application resources and improving operating speed and efficiency. A handle that is supported by the original code of Google Chrome 100 is specially developed, so that the microphone can be directly recognized and the status of the PPT button K0 can be directly queried.

[0056] Furthermore, the steps for the protocol establishment module 201 to detect the pressing and releasing of the PPT button K0 are as follows: the pressing and releasing of the PPT button K0 is connected to the protocol establishment module 201, as GPIO3, to control the value change of the HID register, and configure the HID protocol HID_IR0[7:6]=00b. At this time, the HID register HID_IR1[3:0] is used as the input value of the GPIO, and the hardware circuit pulls down the GPIO3 pin. When the PPT button K0 is pressed, the hardware circuit biases GPIO3 to 5V, so that the change of the hardware circuit can change the change of the register value.

[0057] Furthermore, the sampling rates of the codec in the pre-conversion module 200 include 44.1kHz and 48kHz, and both sampling rates can be freely selected. The power amplifier drives the speaker including left channel and right channel, stereo output, and the sound signal integrated chip can be used to process the sound signal.

[0058] Furthermore, the identification module 101 is used to generate a HID report, and the generated HID report includes an unconnected state and a connected state. For example, when using a computer, the unconnected state and the connected state are displayed on a web page in the Google browser 100, which is convenient for the user to determine the connection status of the microphone body 20.

[0059] In this embodiment, the specific steps of the volume adjustment module 203 adaptively adjusting the volume based on the collected ambient sound are:

[0060] Step 1: Use the audio input device to collect ambient sound, and use the sound sensor to collect ambient sound;

[0061] Step 2: Perform analog-to-digital conversion to convert the analog sound signal into a digital signal using a common AD chip;

[0062] Step 3: The sound intensity is expressed as the root mean square value of the sound signal. The corresponding formula is:

[0063]

[0064] Where I is the root mean square value, N is the number of sampling points, and x(n) is the value of the nth sampling point;

[0065] Step 4: Set multiple sound intensity thresholds and corresponding volume adjustment values.

[0066]

[0067] in, is the final output sound intensity, I1 and I2 are the set sound intensity thresholds, α and β are the set coefficients;

[0068] By adopting a segmented sound adjustment strategy, the sound played by the microphone body 20 can be adjusted to a suitable position. When the ambient sound intensity is low, the output sound intensity remains unchanged. When the ambient sound intensity is high, the sound intensity is adjusted according to different set coefficients α and β according to different intervals, thereby saving the trouble of users adjusting by themselves and preventing the microphone body 20 from emitting a sound that is too low or too high. For example, when the ambient sound is lower than 30 decibels, it can be set as a quiet environment threshold, when the ambient sound is higher than 70 decibels, it can be set as a noisy environment threshold, and when the ambient sound is between 30 decibels and 70 decibels, it can be set as a medium environment threshold.

[0069] In this embodiment, the specific steps of the noise reduction module 204 performing noise reduction based on the optimized spectral subtraction method are as follows:

[0070] Step 1: Split the audio signal into shorter frames to facilitate local analysis of the audio. Apply a Hamming window to each frame to reduce discontinuity at the frame boundaries, reduce spectrum leakage, and make subsequent frequency domain analysis more accurate.

[0071]

[0072] x w (n) = x(n)w(n)

[0073] Where w(n) is the Hamming window function, x(n) is the audio signal, n is the index in the window function, L is the length of the window, and x w (n) is the windowed signal;

[0074] Step 2: Perform a fast Fourier transform on each windowed frame to convert the time domain signal into the frequency domain and the time domain audio signal into the frequency domain representation. The signal can be processed and analyzed in the frequency domain to identify the energy distribution of different frequency components.

[0075]

[0076] Where j is the imaginary unit, k is the index in the frequency domain, f is the frequency, and X(f) is the spectrum value at frequency f;

[0077] Step 3: In the initial silent segment or noise-dominated segment of the audio signal, estimate the average power spectrum of the noise to provide characteristic information of the noise for subsequent noise reduction processing, so as to more accurately subtract the noise from the audio.

[0078]

[0079] Where N(f) is the estimated spectral amplitude of the noise at frequency f, M is the number of frames in the noise segment, i is the index of the noise segment, and X noise (f,i) is the frequency spectrum of the i-th frame of the noise segment at frequency f;

[0080] Step 4: Calculate the priori signal-to-noise ratio and the spectrum amplitude after noise reduction:

[0081]

[0082] Among them, γ(f) is the prior signal-to-noise ratio, Y(f) is the spectrum amplitude value at frequency f after noise reduction, max means taking the maximum value, μ is the over-reduction factor, φ is the lower limit control factor, σ(f) is the compensation factor, the prior signal-to-noise ratio is used to measure the relative strength of useful information and noise in the audio signal, and the calculation of the spectrum amplitude after noise reduction is based on the prior signal-to-noise ratio and noise estimation to determine how to adjust the original spectrum to achieve noise reduction;

[0083] Step 5: Phase correction: retain the phase information of the original audio signal to ensure the temporal accuracy and continuity of the restored audio after noise reduction processing, and avoid phase distortion leading to a decrease in sound quality.

[0084] Step 6: Perform inverse fast Fourier transform on the processed frequency domain signal and convert it back to the time domain, and convert the processed frequency domain signal back to the time domain to obtain a time domain audio signal after noise reduction processing;

[0085] Step 7: Overlap and add the processed frames to obtain the final noise-reduced audio signal. By overlapping and adding the processed frames, the discontinuity and mutation caused by the frame processing are eliminated, making the final noise-reduced audio signal smoother and more natural.

[0086]

[0087] Wherein, O is the length of the overlapping part of two adjacent frames, y1(n) and y2(n) are the time domain audio signals subjected to noise reduction processing obtained from step 6, and are the audio signals of two adjacent frames, and y(n) is the signal after overlapping and adding.

[0088] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments. The above embodiments and descriptions are only preferred examples of the present invention and are not intended to limit the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.

Claims

1. A USB HID microphone supporting Google Chrome, characterized in that: include: A host device (10), comprising a Google browser (100) and an identification module (101); A microphone body (20) comprises a pre-stage conversion module (200), a protocol establishment module (201), a key module (202), a volume adjustment module (203) and a noise reduction module (204); The host device (10) and the microphone body (20) are connected via a USB signal, the pre-stage conversion module (200) is used to convert USB digital signals, the protocol establishment module (201) is used to establish a USB-HID protocol, the key module (202) is used to generate a timestamp that can be recognized by the Google browser (100), the volume adjustment module (203) adaptively adjusts the volume based on the collected ambient sound, and the noise reduction module (204) reduces noise based on optimized spectral subtraction.

2. The USB HID microphone supporting Google Chrome according to claim 1, characterized in that: The pre-stage conversion module (200) converts the USB digital signal output by the host device (10) into an audio signal through a 16-bit analog-to-digital unit, and drives the speaker to play the audio signal through a post-stage power amplifier. The pre-stage conversion module (200) converts the received local microphone signal into a USB digital signal through a 16-bit analog-to-digital unit. The pre-stage conversion module (200) also includes a plurality of voltage adjustment units, which are used for use by the conversion device.

3. The USB HID microphone supporting Google Chrome according to claim 1, characterized in that: The button module (202) comprises a PPT button K0, which controls the on and off of a local microphone and the start of a power amplifier-driven speaker. When the PPT button K0 is pressed, the local microphone starts to collect sound signals and converts them into USB digital signals and sends them back to the host device (10), and the power amplifier-driven speaker is turned off; when the PTT button K0 is released, the power amplifier is enabled to work, the power amplifier-driven speaker works, and the local microphone is turned off.

4. The USB HID microphone supporting Google Chrome according to claim 1, characterized in that: The protocol establishment module (201) uses embedded MCU software to establish a handle that the Google Chrome (100) supports identification and uploads a HID report when the PPT key K0 is pressed and released, generating a timestamp that can be called by the Google Chrome (100).

5. The USB HID microphone supporting Google Chrome according to claim 1, characterized in that: The protocol establishment module (201) detects the pressing and releasing of the PPT button K0 in the following steps: the pressing and releasing of the PPT button K0 is connected to the protocol establishment module (201), used as GPIO3, controls the value change of the HID register, configures the HID protocol HID_IR0[7:6]=00b, uses the HID register HID_IR1[3:0] as the input value of the GPIO, pulls down the GPIO3 pin on the hardware circuit, and biases the GPIO3 on the hardware circuit to 5V when the PPT button K0 is pressed.

6. The USB HID microphone supporting Google Chrome according to claim 1, characterized in that: The sampling rates of the codec in the pre-conversion module (200) include 44.1kHz and 48kHz, and the power amplifier drives the speaker including a left channel and a right channel.

7. The USB HID microphone supporting Google Chrome according to claim 1, characterized in that: The identification module (101) is used to generate a HID report, and the generated HID report includes an unconnected state and a connected state.

8. The USB HID microphone supporting Google Chrome according to claim 1, characterized in that: The specific steps of the volume adjustment module (203) adaptively adjusting the volume based on the collected ambient sound are as follows: Step 1: Use the audio input device to collect environmental sounds; Step 2: Perform analog-to-digital conversion to convert the analog sound signal into a digital signal; Step 3: The sound intensity is expressed as the root mean square value of the sound signal. The corresponding formula is: Where I is the root mean square value, N is the number of sampling points, and x(n) is the value of the nth sampling point; Step 4: Set multiple sound intensity thresholds and corresponding volume adjustment values. in, is the final output sound intensity, I1 and I2 are the set sound intensity thresholds, and α and β are the set coefficients.

9. The USB HID microphone supporting Google Chrome according to claim 1, characterized in that: The specific steps of the noise reduction module (204) for performing noise reduction based on the optimized spectral subtraction method are as follows: Step 1: Divide the audio signal into shorter frames and apply a Hamming window to each frame to reduce the discontinuity of the frame boundaries. x w (n)=x(n)w(n) Where w(n) is the Hamming window function, x(n) is the audio signal, n is the index in the window function, L is the length of the window, and x w (n) is the windowed signal; Step 2: Perform fast Fourier transform on each windowed frame to convert the time domain signal into the frequency domain, and we have: Where j is the imaginary unit, k is the index in the frequency domain, f is the frequency, and X(f) is the spectrum value at frequency f; Step 3: In the initial silent segment or noise-dominated segment of the audio signal, estimate the average power spectrum of the noise, which is: Where N(f) is the estimated spectral amplitude of the noise at frequency f, M is the number of frames in the noise segment, i is the index of the noise segment, and X noise (f,i) is the frequency spectrum of the i-th frame of the noise segment at frequency f; Step 4: Calculate the priori signal-to-noise ratio and the spectrum amplitude after noise reduction: Among them, γ(f) is the prior signal-to-noise ratio, Y(f) is the spectrum amplitude value at frequency f after noise reduction, max means taking the maximum value, μ is the over-reduction factor, φ is the lower limit control factor, and σ(f) is the compensation factor; Step 5: Phase correction to retain the phase information of the original audio signal; Step 6: Perform inverse fast Fourier transform on the processed frequency domain signal and convert it back to the time domain; Step 7: Perform overlap-addition on the processed frames to obtain the final noise-reduced audio signal.