CN109189234A - A kind of mechanical keyboard with audio input and output function - Google Patents
A kind of mechanical keyboard with audio input and output function Download PDFInfo
- Publication number
- CN109189234A CN109189234A CN201811183801.0A CN201811183801A CN109189234A CN 109189234 A CN109189234 A CN 109189234A CN 201811183801 A CN201811183801 A CN 201811183801A CN 109189234 A CN109189234 A CN 109189234A
- Authority
- CN
- China
- Prior art keywords
- capacitor
- output
- chip
- voice
- pin
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 239000003990 capacitor Substances 0.000 claims description 118
- 238000012545 processing Methods 0.000 claims description 38
- 230000006870 function Effects 0.000 claims description 34
- 230000005611 electricity Effects 0.000 claims description 15
- 238000000034 method Methods 0.000 claims description 13
- 239000013078 crystal Substances 0.000 claims description 9
- 230000008569 process Effects 0.000 claims description 9
- 238000004088 simulation Methods 0.000 claims description 9
- 230000007423 decrease Effects 0.000 claims description 3
- 230000004044 response Effects 0.000 claims description 3
- 230000003321 amplification Effects 0.000 claims description 2
- 238000003199 nucleic acid amplification method Methods 0.000 claims description 2
- 241000209140 Triticum Species 0.000 claims 1
- 235000021307 Triticum Nutrition 0.000 claims 1
- 238000000605 extraction Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 10
- 230000006872 improvement Effects 0.000 description 9
- 230000005236 sound signal Effects 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 238000005070 sampling Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 210000004556 brain Anatomy 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000009432 framing Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/0202—Constructional details or processes of manufacture of the input device
- G06F3/021—Arrangements integrating additional peripherals in a keyboard, e.g. card or barcode reader, optical scanner
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- General Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Analogue/Digital Conversion (AREA)
Abstract
The invention discloses a kind of mechanical keyboards with audio input and output function, including a keyboard body, a pcb board is provided in the keyboard body, further include the computer main board for being set in keyboard body and being electrically connected to pcb board, the voice input/output module for being electrically connected to computer main board is provided in the keyboard body.Mechanical keyboard provided by the invention with audio input and output function, it is also integrated with the function of host computer Yu voice input and output other than having the function of conventional keypad, as long as an i.e. mechanical keyboard, the all working that normal computer is completed can be completed, it realizes and uses whenever and wherever possible as computer, and accurate voice input and output can be carried out, to outgoing carrying and use and bring very big convenience, compared with conventional computer, it reduces costs, reduces volume, improve the convenience used.
Description
Technical field
The present invention relates to a kind of mechanical keyboard more particularly to a kind of mechanical keyboards with audio input and output function.
Background technique
Keyboard is a kind of commonly used equipment of input operation of computer, and it is complete to be required to keyboard for either notebook or desktop computer
It is operated at input.Therefore, either at home, office or outgoing, being required to be equipped with keyboard could complete normally to operate
Input demand.Meanwhile need to arrange in pairs or groups upper host computer, display etc., complete work.However, host computer, display and keyboard
Combine, not only purchase cost is high, and volume and weight are all larger, movement to equipment and carrying bring it is very big not
Just.
Therefore, host computer function is integrated on keyboard, is research theme more important at present, not only subtracts as a result,
The small volume and weight of conventional computer host, and very big convenience is brought to using.
Meanwhile in the use process of usually computer, it is often necessary to use voice input (such as voice-enabled chat etc.) and language
Sound output (such as video playing, voice broadcasting etc.) function.Therefore, it is necessary to increase upper corresponding microphone and loudspeaking for computer
Device.And after host computer function is integrated on keyboard, how to increase for keyboard and go up audio input and output function, is a need
The problem of wanting primary study.
Summary of the invention
In view of the above deficiencies, the purpose of the present invention is to provide a kind of mechanical keyboard with audio input and output function,
It is also integrated with the function of host computer Yu voice input and output other than having the function of conventional keypad, as long as an i.e. machine
The all working that normal computer is completed can be completed in tool keyboard, realizes and uses whenever and wherever possible as computer, and can carry out accurate
Voice input and output subtract to outgoing carrying and using bringing very big convenience, compared with conventional computer, reduce costs
Small volume, improves the convenience used.
The technical scheme adopted by the invention to achieve the purpose is as follows:
A kind of mechanical keyboard with audio input and output function, including a keyboard body, are arranged in the keyboard body
There is a pcb board, which is characterized in that further include the computer main board for being set in keyboard body and being electrically connected to pcb board, in the key
The voice input/output module for being electrically connected to computer main board is provided in disk ontology.
As a further improvement of the present invention, the voice input/output module includes the language for being electrically connected to computer main board
Sound baseband processing unit, is electrically connected to audio base band processing unit at the radio circuit for being electrically connected to audio base band processing unit
A memory, be electrically connected to audio base band processing unit a microphone, be electrically connected to the one of audio base band processing unit and raise
Sound device, the microphone access for being connected to microphone and the loudspeaker access for being connected to loudspeaker.
As a further improvement of the present invention, the audio base band processing unit includes:
Dsp chip, for completing the processing of voice baseband signal, channel encoder/decoder including voice signal is added/mentions
Win the confidence enable, group/tear open frame operation;
Fpga chip completes decoding and logic control to the QPSK modulation and demodulation of dsp chip output code flow;FPGA core
Piece is electrically connected to radio circuit, and dsp chip is connect by the second serial port with fpga chip;
Voice coding module is electrically connected to microphone, for carrying out CVSD modulation to voice signal
Voice coding, dsp chip are connect by the first serial port with voice coding module;
Speech decoding module is electrically connected to loudspeaker, for realizing to digital signal decoding and voice signal put
Greatly, dsp chip is connect by the first serial port with speech decoding module;
Flash chip is used to store system program;
Sram chip, the external data memory as dsp chip extension;
Bus driver, for connecting dsp chip and Flash chip and dsp chip and sram chip.
As a further improvement of the present invention, first serial port and the second serial port are the channel McBSP.
As a further improvement of the present invention, the radio circuit include a radio frequency chip U1, resistance R1, capacitor C1~
C15, inductance L1~L4 and crystal oscillator Y1, wherein the 4th pin of radio frequency chip U1 is respectively connected to the one end capacitor C1 and 3.3V electricity
Pressure, the capacitor C1 other end are connected to the one end capacitor C2, and the capacitor C1 other end is connected to the 5th pin of radio frequency chip U1;It should
The 8th pin of radio frequency chip U1 is respectively connected to capacitor C4 and the one end crystal oscillator Y1, and the crystal oscillator Y1 other end is respectively connected to capacitor
9th pin of the 10th pin of C6 and radio frequency chip U1, radio frequency chip U1 is respectively connected to capacitor C5 and 3.3V voltage;This is penetrated
The 11st pin of frequency chip U1 is respectively connected to capacitor C7 and 3.3V voltage;The 12nd pin of radio frequency chip U1 is respectively connected to
The one end inductance L1 and the one end capacitor C8, the inductance L1 other end are connected to capacitor C9, and the capacitor C8 other end is respectively connected to electricity
Feel the one end L2 and the one end inductance L3, the inductance L2 other end is respectively connected to the 13rd pin of capacitor C13 Yu radio frequency chip U1, should
The inductance L3 other end is respectively connected to the one end capacitor C10 and the one end inductance L4, and the inductance L4 other end is respectively connected to capacitor C11
With capacitor C12;The 14th pin of radio frequency chip U1 is respectively connected to capacitor C14 and 3.3V voltage, and the of radio frequency chip U1
15 pins are respectively connected to capacitor C15 and 3.3V voltage;The 17th pin of radio frequency chip U1 is connected to resistance R1, the radio frequency core
The 18th pin of piece U1 is respectively connected to capacitor C3 and 3.3V voltage.
As a further improvement of the present invention, the voice input/output module further includes speech iput circuit, the voice
Input circuit includes resistance R2~R6 and capacitor C16~C20, wherein the anode of the microphone is respectively connected to the one end resistance R3
With the one end capacitor C16, the resistance R3 other end is respectively connected to capacitor C20 anode and the one end resistance R2, and capacitor C20 cathode connects
It is connected to simulation ground terminal VSS, the resistance R2 other end is connected to microphone power VMIC;The capacitor C16 other end is respectively connected to electricity
The one end R5 and audio base band processing unit are hindered, the resistance R5 other end is respectively connected to the one end resistance R6, the one end capacitor C18, electricity
Hold the one end C19 and reference voltage VCM, the capacitor C18 other end is respectively connected to the capacitor C19 other end and simulation ground terminal VSS;
The cathode of the microphone is respectively connected to the one end resistance R4 and the one end capacitor C17, and the capacitor C17 other end is respectively connected to resistance
The R6 other end and audio base band processing unit, the resistance R4 other end are connected to simulation ground terminal VSS.
As a further improvement of the present invention, the voice input/output module further includes voice output circuit, the voice
Output circuit includes audio-frequency power amplifier U2, resistance R7, volume potentiometer R8 and capacitor C21~C25, wherein resistance R7
One end is respectively connected to audio base band processing unit, the one end capacitor C22 and the one end volume potentiometer R8, the resistance R7 other end point
It is not connected to the capacitor C22 other end, the volume potentiometer R8 other end, the one end capacitor C23 are drawn with the 3rd of audio-frequency power amplifier U2
Foot;The adjustable side of volume potentiometer R8 is connected to the one end capacitor C24, and the capacitor C24 other end is connected to Audio power amplifier
The 5th pin of device U2;The capacitor C23 other end is respectively connected to the 4th pin and the 6th pin of audio-frequency power amplifier U2;It should
The 7th pin of audio-frequency power amplifier U2 is respectively connected to the 8th pin of audio-frequency power amplifier U2, capacitor C25 anode and electricity
Hold the one end C21, the capacitor C21 other end is connected to capacitor C25 cathode;The 1st pin of audio-frequency power amplifier U2 draws with the 2nd
Foot is connected to loudspeaker.
As a further improvement of the present invention, the voice coding module realizes voice coding, voice signal x using CVSD
(t) sampled to obtain digital signal x (n), digital signal x (n) and integrator output signal xp(n) output bias signal after comparing
D (n), obtains output digital coding c (n) after deviation signal is quantified, which is used as the polarity of integrator output voltage gradient simultaneously
Control the input signal of signal and integrator output voltage gradient size logic;Within each clock cycle, if voice signal is greater than product
Divide device output signal, then adjudicating output is 1, and integrator output rises an amount rank δ;If voice signal is less than integrator output letter
Number, then adjudicating output is 0, one amount rank δ of integrator output decline;
(1) as x (n) >=xp(n) when, comparator exports d (n) >=0, and quantified device encodes to obtain, c (n)=1;
If coding output c (n) occur 3 company " 1 " codes, i.e. c (n)=c (n-1)=c (n-2)=1, then measure rank δ (n)=
β×δ(n-1)+δ0, single order predictive coding value is xp(n)=xp(n-1)+δ(n);Otherwise rank δ (n)=β × δ (n-1) is measured, single order
Predictive coding value is xp(n)=xp(n-1)+δ(n);
(2) as x (n) < xp(n) when, comparator exports d (n) < 0, and quantified device encodes to obtain, c (n)=0;
If coding output c (n) occur 3 company " 0 " codes, i.e. c (n)=c (n-1)=c (n-2)=0, then measure rank δ (n)=
β×δ(n-1)+δ0, single order predictive coding value is xp(n)=xp(n-1)-δ(n);Otherwise rank δ (n)=β × δ (n-1) is measured, single order
Predictive coding value is xp(n)=xp(n-1)-δ(n);
Wherein, β is the factor of control amount rank decaying, is met τ=T/ (1- β), i.e. β=1-T/ τ, T indicate voice signal
Period, τ indicate syllable time constant.
As a further improvement of the present invention, the speech decoding module realizes speech decoding using CVSD, for coding
One inverse process of process increases a low-pass filter, the output waveform for smoothed integral device after integrator;
(1) when c (n)=1, the output of integrator:
xQD(n)=xQD(n-1)+δ(n)
xQDF(n)=xQD(n)*h(n);
(2) when c (n)=0, then the output of integrator:
xQD(n)=xQD(n-1)-δ(n)
xQDF(n)=xQD(n)*h(n);
Wherein, the impulse response of low-pass filter is h (n).
As a further improvement of the present invention, it is provided in the keyboard body side and is electrically connected to the several of computer main board
USB interface, the microphone access pass through by-passing signal line with loudspeaker access respectively and are connected with USB interface.
The invention has the benefit that by adding computer main board and voice input/output module, machine in mechanical keyboard
Tool keyboard is also integrated with host computer and audio input and output function, can be used as with language in addition to having the function of conventional keypad
The host computer of sound input/output function uses, and can be directly connected to display or projector by USB interface can serve as
Computation uses without additionally increasing host computer, imparts the more functions of mechanical keyboard.When going out, as long as taking
Band mechanical keyboard, so that it may it is used whenever and wherever possible as computer, accurate voice input can also be carried out and voice plays, with
Conventional computer is compared, and is reduced costs, and volume and weight are reduced, and improves the convenience used.
Above-mentioned is the general introduction of inventive technique scheme, below in conjunction with attached drawing and specific embodiment, is done further to the present invention
Explanation.
Detailed description of the invention
Fig. 1 is the external structure schematic diagram of mechanical keyboard of the present invention;
Fig. 2 is the schematic diagram of internal structure of mechanical keyboard of the present invention;
Fig. 3 is the structural block diagram of voice input/output module of the present invention;
Fig. 4 is the structural block diagram of audio base band processing unit of the present invention;
Fig. 5 is the schematic diagram of radio circuit of the present invention;
Fig. 6 is the schematic diagram of speech iput circuit of the present invention;
Fig. 7 is the schematic diagram of voice output circuit of the present invention;
Fig. 8 is the block diagram of CVSD voice coding of the present invention;
Fig. 9 is CVSD encryption algorithm flow chart of the present invention;
Figure 10 is CVSD decoding algorithm flow chart of the present invention.
Specific embodiment
Further to illustrate the present invention to reach the technical means and efficacy that predetermined purpose is taken, below in conjunction with attached drawing
And preferred embodiment, detailed description of specific embodiments of the present invention.
Fig. 1 and Fig. 2 are please referred to, the embodiment of the present invention provides a kind of mechanical keyboard with audio input and output function, packet
A keyboard body 1 is included, a pcb board 2 is provided in the keyboard body 1.The present embodiment mechanical keyboard further includes being set to keyboard
Ontology 1 is interior and is electrically connected to a computer main board 3 of pcb board 2, is provided in the keyboard body 1 and is electrically connected to computer main board 3
One voice input/output module 4.Meanwhile it being provided in 1 side of keyboard body and being electrically connected to several USB of computer main board 3 and connect
Mouth 5, can be connected to other equipment, such as display, projector etc. by USB interface 5.
The present embodiment is main used in common computer by adding computer main board 3, computer main board 3 inside mechanical keyboard
Plate, the institute with mainboard in conventional computer host is functional, while so that mechanical keyboard is had its original function, can be used as computer
Host uses, and being directly connected to the equipment such as display by USB interface 5 can serve as computation, without additionally increasing electricity
Brain server uses.
Meanwhile voice input/output module 4 is additionally arranged on mechanical keyboard, make mechanical keyboard that there is voice input and voice
Output function, specifically, voice inputs voice input when most common purposes is voice-enabled chat, it certainly further include that other pass through
Input voice is converted into text, carries out the purposes such as saving;The most common purposes of voice output is the broadcasting of voice, such as voice is chatted
The voice of other side is played in it, there are also video playings, music etc. certainly.
Mechanical keyboard provided in this embodiment is also integrated with computer other than the basis with conventional keypad function as a result,
Host and audio input and output function impart the more functions of mechanical keyboard.When going out, as long as carrying mechanical keyboard,
It can be used whenever and wherever possible as computer, voice input can also be carried out and voice plays, very big convenience is brought to user
Property.
In the present embodiment, specifically, as shown in figure 3, the voice input/output module includes being electrically connected to computer master
One audio base band processing unit of plate, is electrically connected to audio base band at the radio circuit for being electrically connected to audio base band processing unit
One memory of processing unit, the microphone for being electrically connected to audio base band processing unit are electrically connected to audio base band processing list
One loudspeaker of member is connected to a microphone access of microphone and is connected to a loudspeaker access of loudspeaker, wherein should
Microphone access passes through by-passing signal line with loudspeaker access respectively and is connected with USB interface, the voice received by microphone
Signal can pass on computer main board, naturally it is also possible to which voice signal is passed to other by USB interface by by-passing signal line
In equipment.
In the present embodiment, as shown in figure 4, the audio base band processing unit includes:
Dsp chip, for completing the processing of voice baseband signal, channel encoder/decoder including voice signal is added/mentions
Win the confidence enable, group/tear open frame operation;
Fpga chip completes decoding and logic control to the QPSK modulation and demodulation of dsp chip output code flow;FPGA core
Piece is electrically connected to radio circuit, and dsp chip is connect by the second serial port with fpga chip;
Voice coding module is electrically connected to microphone, for carrying out CVSD modulation to voice signal
Voice coding, dsp chip are connect by the first serial port with voice coding module;
Speech decoding module is electrically connected to loudspeaker, for realizing to digital signal decoding and voice signal put
Greatly, dsp chip is connect by the first serial port with speech decoding module;
Flash chip, is used to store system program, when system electrification, under the control of bootstrap, in Flash chip
Data be automatically loaded into the ram in slice of dsp chip, and automatic running;
Sram chip, the external data memory as dsp chip extension;
Bus driver, for connecting dsp chip and Flash chip and dsp chip and sram chip, bus driver
SN74LVTH16245 can be used, improve the driving capability of dsp bus.
In the present embodiment, first serial port and the second serial port are the channel McBSP, and dsp chip passes through McBSP
Channel is communicated with voice coding module, speech decoding module and junior's fpga chip respectively, realize data reception and
It sends.
The present embodiment dsp chip selects TMS320VC5409, and command speed can most reach 100MIPS fastly, can be realized
Requirement of the module to handling in real time.ROM capacity is 16K × 16 in piece, and double addressing RAM capability bit 32K × 16 in piece can
To reduce the capacity of chip external memory.Peripheral hardware is abundant in TMS320VC5409 piece, there is software waiting state generator, host interface
HPI, clock generator, 3 multichannel buffer serial port McBSP etc. can satisfy the demand of module data transmission.McBSP
With flexible interface capability, can both realize full-duplex communication, directly with the industry standard interface of codec,
It can be realized and be connected by serial port and ADC/DAC.The interface of TMS320VC5409 can easily carry out the design of peripheral circuit,
When with the chip external memory of low speed, it can be automatically inserted into latent period, to solve the matching of speed.
Fpga chip selects the EP2C20F256C8 device of low cost CycloneII series, and the total number of pins of the chip is 256
Root, wherein user I/O pin is 152, and RAM total amount is 239616bit (29.25KB), logic unit (LE) 18752.Its
I/O interface quantity and internal resource can satisfy the demand of this system completely.
Voice coding module includes signal amplifilter and speech coder, and signal amplification circuit filter selects LM356
Operational amplifier can be used for sampling and synchronous circuit, fast A/D C and DAC, broad band amplifier, low-noise amplifier etc..
Speech decoding module includes sound decorder and phonetic incepting filtering and amplifying circuit, and speech decoding chip still uses
MC3418, phonetic incepting filtering and amplifying circuit select low-power audio amplifier LM386, and voltage gain range is 20~200V.
Flash chip uses AT29LV020 chip, and the memory space for constituting 256K × 8 is deposited as the extension of dsp chip
Reservoir, for saving the program and data of dsp chip operation.
Sram chip uses CY7C1006D chip, and capacity is 64K × 16, the external data storage as dsp chip extension
Device.
Bus driver uses 16 BITBUS network driver SN74LVTH16245, for improving the driving capability of bus, so as to
Expanding peripherals.SN74LVTH16245 can be matched with the address of DSP, data/address bus, and it is defeated can to bear 0~7V by operating voltage 3.3V
Enter voltage, it can be with the TTL hardware compatibility of the DSP and 5V of 3.3V.
By, it can be achieved that voice signal sends and receives process, being respectively as follows: the present embodiment provides audio base band processing unit
1, voice signal transmission process:
(1) initial work of load, fpga chip configuration of dsp chip program etc. is carried out after system power-on reset;
(2) voice becomes audio signal by microphone, encodes, is transformed into using the CVSD of voice coding module
The serial audio data stream of 16kb/s;
(3) audio data stream is input to dsp chip by the channel McBSP of dsp chip, and dsp chip carries out channel coding,
Signaling and framing information is added, to enhance error correcting capability;Then it is exported by the channel McBSP to fpga chip and carries out subsequent place
Reason.
(4) in order to enhance error correcting capability, fpga chip will carry out QPSK modulation to output code flow, and pass through radio circuit later
Transmitting, realizes the transmission of digital speech.
2, voice signal receive process:
(1) fpga chip receives audio digital signals by radio circuit, carries out QPSK demodulation.
(2) signal after QPSK is demodulated enters dsp chip by the channel McBSP of dsp chip, and dsp chip completes letter
Number channel decoding, extract signaling and tear frame open, then export to speech decoding module by the channel McBSP.
(3) data are carried out CVSD decoding by speech decoding module, are converted into audio signal, and send to loudspeaker also primitive
Sound so far completes the reception of voice signal.
Audio base band processing unit provided in this embodiment realizes language using dsp chip and fpga chip as control core
The functions such as the digitlization of sound signal and coding/decoding, data transmission.Digitlization and coding/decoding to voice use continuous variable
Slope delta coded modulation CVSD.Dsp chip is used to realize the function of audio base band processing, and fpga chip completes digital signal
QPSK modulating/demodulating.Audio base band processing unit provided in this embodiment can be converted to analog voice signal to be transmitted
Digital baseband signal, thus using fixed frequency in channel.
In the present embodiment, as shown in figure 5, the radio circuit include a radio frequency chip U1, resistance R1, capacitor C1~
C15, inductance L1~L4 and crystal oscillator Y1, the present embodiment radio frequency chip U1 select radio frequency chip CC1100.The 4th of radio frequency chip U1
Pin is respectively connected to the one end capacitor C1 and 3.3V voltage, and the capacitor C1 other end is connected to the one end capacitor C2, and capacitor C1 is another
One end is connected to the 5th pin of radio frequency chip U1;The 8th pin of radio frequency chip U1 is respectively connected to capacitor C4 and crystal oscillator Y1 mono-
End, the crystal oscillator Y1 other end are respectively connected to the 10th pin of capacitor C6 Yu radio frequency chip U1, the 9th pin of radio frequency chip U1
It is respectively connected to capacitor C5 and 3.3V voltage;The 11st pin of radio frequency chip U1 is respectively connected to capacitor C7 and 3.3V voltage;
The 12nd pin of radio frequency chip U1 is respectively connected to the one end inductance L1 and the one end capacitor C8, and the inductance L1 other end is connected to electricity
Hold C9, the capacitor C8 other end is respectively connected to the one end inductance L2 and the one end inductance L3, and the inductance L2 other end is respectively connected to
The 13rd pin of capacitor C13 and radio frequency chip U1, the inductance L3 other end are respectively connected to the one end capacitor C10 and inductance L4 mono-
End, the inductance L4 other end are respectively connected to capacitor C11 and capacitor C12;The 14th pin of radio frequency chip U1 is respectively connected to
Capacitor C14 and 3.3V voltage, the 15th pin of radio frequency chip U1 are respectively connected to capacitor C15 and 3.3V voltage;The radio frequency core
The 17th pin of piece U1 is connected to resistance R1, and the 18th pin of radio frequency chip U1 is respectively connected to capacitor C3 and 3.3V voltage.
In the present embodiment, as shown in fig. 6, the voice input/output module further includes speech iput circuit, the voice
Input circuit includes resistance R2~R6 and capacitor C16~C20, wherein the anode of the microphone is respectively connected to the one end resistance R3
With the one end capacitor C16, the resistance R3 other end is respectively connected to capacitor C20 anode and the one end resistance R2, and capacitor C20 cathode connects
It is connected to simulation ground terminal VSS, the resistance R2 other end is connected to microphone power VMIC;The capacitor C16 other end is respectively connected to electricity
The one end R5 and audio base band processing unit are hindered, the resistance R5 other end is respectively connected to the one end resistance R6, the one end capacitor C18, electricity
Hold the one end C19 and reference voltage VCM, the capacitor C18 other end is respectively connected to the capacitor C19 other end and simulation ground terminal VSS;
The cathode of the microphone is respectively connected to the one end resistance R4 and the one end capacitor C17, and the capacitor C17 other end is respectively connected to resistance
The R6 other end and audio base band processing unit, the resistance R4 other end are connected to simulation ground terminal VSS.
When against microphone talk, 1 foot and 2 feet in circuit diagram will generate variation with the sound of microphone input
Waveform, and the waveform of two-way reverse phase is formed in audio base band processing unit, the amplified audio signal of audio is carried out, voice is passed through
Baseband processing unit is converted into digital quantity, is saved in memory, and then these digital audio and video signals are carried out with the processing in later period.
In the present embodiment, as shown in fig. 7, the voice input/output module further includes voice output circuit, the voice
Output circuit includes audio-frequency power amplifier U2, resistance R7, volume potentiometer R8 and capacitor C21~C25, wherein resistance R7
One end is respectively connected to audio base band processing unit, the one end capacitor C22 and the one end volume potentiometer R8, the resistance R7 other end point
It is not connected to the capacitor C22 other end, the volume potentiometer R8 other end, the one end capacitor C23 are drawn with the 3rd of audio-frequency power amplifier U2
Foot;The adjustable side of volume potentiometer R8 is connected to the one end capacitor C24, and the capacitor C24 other end is connected to Audio power amplifier
The 5th pin of device U2;The capacitor C23 other end is respectively connected to the 4th pin and the 6th pin of audio-frequency power amplifier U2;It should
The 7th pin of audio-frequency power amplifier U2 is respectively connected to the 8th pin of audio-frequency power amplifier U2, capacitor C25 anode and electricity
Hold the one end C21, the capacitor C21 other end is connected to capacitor C25 cathode;The 1st pin of audio-frequency power amplifier U2 draws with the 2nd
Foot is connected to loudspeaker.
Audio signal exports 9 ends being sent in circuit diagram by audio base band processing unit, passes through the tune of volume potentiometer R8
Section end is sent to audio-frequency power amplifier U2 (SPY0030), and after audio is amplified, audio signal is exported from audio-frequency power amplifier U2
Sound is played through the port J2 external loudspeaker.
In the present embodiment, as shown in figure 8, the voice coding module realizes voice coding, voice signal x using CVSD
(t) sampled to obtain digital signal x (n), digital signal x (n) and integrator output signal xp(n) output bias signal after comparing
D (n), obtains output digital coding c (n) after deviation signal is quantified, which is used as the polarity of integrator output voltage gradient simultaneously
Control the input signal of signal and integrator output voltage gradient size logic;Within each clock cycle, if voice signal is greater than product
Divide device output signal, then adjudicating output is 1, and integrator output rises an amount rank δ;If voice signal is less than integrator output letter
Number, then adjudicating output is 0, one amount rank δ of integrator output decline.
As shown in figure 9, whole process is all the digital signal after sampling, x (n) indicates the sampling of input speech signal
Value, xp(n) the single order predicted value for being x (n), d (n) are x (n) and xp(n) error signal between, module Q is quantizer, to d
(n) quantified to obtain exports coding signal c (n), module Q-1Mainly according to c (n) come the size of dynamic adjustment amount rank δ.Mould
Block L is a simple level translator, and as c (n)=1, then L output is 1, and as c (n)=0, then L output is 0.
(1) as x (n) >=xp(n) when, comparator exports d (n) >=0, and quantified device encodes to obtain, c (n)=1;
If coding output c (n) occur 3 company " 1 " codes, i.e. c (n)=c (n-1)=c (n-2)=1, then measure rank δ (n)=
β×δ(n-1)+δ0, single order predictive coding value is xp(n)=xp(n-1)+δ(n);Otherwise rank δ (n)=β × δ (n-1) is measured, single order
Predictive coding value is xp(n)=xp(n-1)+δ(n);
(2) as x (n) < xp(n) when, comparator exports d (n) < 0, and quantified device encodes to obtain, c (n)=0;
If coding output c (n) occur 3 company " 0 " codes, i.e. c (n)=c (n-1)=c (n-2)=0, then measure rank δ (n)=
β×δ(n-1)+δ0, single order predictive coding value is xp(n)=xp(n-1)-δ(n);Otherwise rank δ (n)=β × δ (n-1) is measured, single order
Predictive coding value is xp(n)=xp(n-1)-δ(n);
Wherein, β is the factor of control amount rank decaying, is met τ=T/ (1- β), i.e. β=1-T/ τ, T indicate voice signal
Period, τ indicate syllable time constant, under normal circumstances, τ=5~10ms, T=0.33~3.3ms.
Meanwhile the speech decoding module realizes speech decoding using CVSD, is an inverse process of cataloged procedure, such as
Shown in Figure 10, a low-pass filter, the output waveform for smoothed integral device are increased after integrator;
(1) when c (n)=1, the output of integrator:
xQD(n)=xQD(n-1)+δ(n)
xQDF(n)=xQD(n)*h(n);
(2) when c (n)=0, then the output of integrator:
xQD(n)=xQD(n-1)-δ(n)
xQDF(n)=xQD(n)*h(n);
Wherein, the impulse response of low-pass filter is h (n).
The feature amount of the being exactly rank δ of CVSD maximum is capable of the slope of real-time tracking input speech signal waveform.When output code goes out
Now connect " 1 " code or even " 0 " code, then illustrate that the slope of signal waveform is larger, therefore measure rank δ and need appropriate increase, otherwise measures rank δ
Keep lesser value.It is higher than 32kb/s generally for data speed, then the adjustment for measuring rank δ is based on preceding 4 companies " 1 " or to connect
" 0 " code;32kb/s is lower than for data speed, then the adjustment for measuring rank δ is based on preceding 3 companies " 1 " or to connect " 0 " code.When not
When there is above-mentioned pattern, amount rank is then correspondingly reduced.
In CVSD coded modulation, amount rank δ changes and adjust automatically with voice signal G-bar, to realize more
Track input speech signal well.Meanwhile in digital speech code modulation, CVSD has many advantages, such as, it is only necessary to use
1bit information can indicate the difference of adjacent samples signal;And CVSD has good robustness, even if due to channel item
Part is bad to cause receiving end still can understand there are certain bit error rate, the voice signal of coding, finally in fpga chip
Realize CVSD modulation function.
The above described is only a preferred embodiment of the present invention, be not intended to limit the scope of the present invention,
Therefore technical characteristic same as or similar to the above embodiments of the present invention is used, and obtained other structures, in guarantor of the invention
Within the scope of shield.
Claims (10)
1. a kind of mechanical keyboard with audio input and output function, including a keyboard body, are provided in the keyboard body
One pcb board, which is characterized in that further include the computer main board for being set in keyboard body and being electrically connected to pcb board, in the keyboard
The voice input/output module for being electrically connected to computer main board is provided in ontology.
2. the mechanical keyboard according to claim 1 with audio input and output function, which is characterized in that the voice is defeated
Enter output module to include the audio base band processing unit for being electrically connected to computer main board, be electrically connected to audio base band processing unit
One radio circuit, the memory for being electrically connected to audio base band processing unit, the wheat for being electrically connected to audio base band processing unit
Gram wind, is connected to a microphone access of microphone and is connected to and raise the loudspeaker for being electrically connected to audio base band processing unit
One loudspeaker access of sound device.
3. the mechanical keyboard according to claim 2 with audio input and output function, which is characterized in that the voice base
Tape handling unit includes:
Dsp chip, for completing the processing of voice baseband signal, channel encoder/decoder, addition including voice signal/extraction letter
It enables, group/tear frame operation open;
Fpga chip completes decoding and logic control to the QPSK modulation and demodulation of dsp chip output code flow;Fpga chip electricity
It is connected to radio circuit, dsp chip is connect by the second serial port with fpga chip;
Voice coding module is electrically connected to microphone, for carrying out CVSD modulation voice to voice signal
Coding, dsp chip are connect by the first serial port with voice coding module;
Speech decoding module is electrically connected to loudspeaker, for realizing the amplification of decoding and voice signal to digital signal,
Dsp chip is connect by the first serial port with speech decoding module;
Flash chip is used to store system program;
Sram chip, the external data memory as dsp chip extension;
Bus driver, for connecting dsp chip and Flash chip and dsp chip and sram chip.
4. the mechanical keyboard according to claim 3 with audio input and output function, which is characterized in that first string
Row mouth and the second serial port are the channel McBSP.
5. the mechanical keyboard according to claim 2 with audio input and output function, which is characterized in that the radio frequency electrical
Road includes a radio frequency chip U1, resistance R1, capacitor C1~C15, inductance L1~L4 and crystal oscillator Y1, wherein radio frequency chip U1's
4th pin is respectively connected to the one end capacitor C1 and 3.3V voltage, and the capacitor C1 other end is connected to the one end capacitor C2, capacitor C1
The other end is connected to the 5th pin of radio frequency chip U1;The 8th pin of radio frequency chip U1 is respectively connected to capacitor C4 and crystal oscillator Y1
One end, the crystal oscillator Y1 other end are respectively connected to the 10th pin of capacitor C6 Yu radio frequency chip U1, and the 9th of radio frequency chip U1 is drawn
Foot is respectively connected to capacitor C5 and 3.3V voltage;The 11st pin of radio frequency chip U1 is respectively connected to capacitor C7 and 3.3V electricity
Pressure;The 12nd pin of radio frequency chip U1 is respectively connected to the one end inductance L1 and the one end capacitor C8, the connection of the inductance L1 other end
To capacitor C9, the capacitor C8 other end is respectively connected to the one end inductance L2 and the one end inductance L3, and the inductance L2 other end connects respectively
It is connected to the 13rd pin of capacitor C13 Yu radio frequency chip U1, the inductance L3 other end is respectively connected to the one end capacitor C10 and inductance L4
One end, the inductance L4 other end are respectively connected to capacitor C11 and capacitor C12;The 14th pin of radio frequency chip U1 is separately connected
To capacitor C14 and 3.3V voltage, the 15th pin of radio frequency chip U1 is respectively connected to capacitor C15 and 3.3V voltage;The radio frequency
The 17th pin of chip U1 is connected to resistance R1, and the 18th pin of radio frequency chip U1 is respectively connected to capacitor C3 and 3.3V electricity
Pressure.
6. the mechanical keyboard according to claim 2 with audio input and output function, which is characterized in that the voice is defeated
Entering output module further includes speech iput circuit, which includes resistance R2~R6 and capacitor C16~C20, wherein
The anode of the microphone is respectively connected to the one end resistance R3 and the one end capacitor C16, and the resistance R3 other end is respectively connected to capacitor
C20 anode and the one end resistance R2, capacitor C20 cathode are connected to simulation ground terminal VSS, and the resistance R2 other end is connected to Mike's wind-powered electricity generation
Source VMIC;The capacitor C16 other end is respectively connected to the one end resistance R5 and audio base band processing unit, the resistance R5 other end point
It is not connected to the one end resistance R6, the one end capacitor C18, the one end capacitor C19 and reference voltage VCM, capacitor C18 other end difference
It is connected to the capacitor C19 other end and simulation ground terminal VSS;The cathode of the microphone is respectively connected to the one end resistance R4 and capacitor C17
One end, the capacitor C17 other end are respectively connected to the resistance R6 other end and audio base band processing unit, and the resistance R4 other end connects
It is connected to simulation ground terminal VSS.
7. the mechanical keyboard according to claim 2 with audio input and output function, which is characterized in that the voice is defeated
Entering output module further includes voice output circuit, which includes audio-frequency power amplifier U2, resistance R7, volume electricity
Position device R8 and capacitor C21~C25, wherein the one end resistance R7 is respectively connected to audio base band processing unit, the one end capacitor C22
With the one end volume potentiometer R8, the resistance R7 other end be respectively connected to the capacitor C22 other end, the volume potentiometer R8 other end,
3rd pin of the one end capacitor C23 and audio-frequency power amplifier U2;The adjustable side of volume potentiometer R8 is connected to capacitor C24 mono-
End, the capacitor C24 other end are connected to the 5th pin of audio-frequency power amplifier U2;The capacitor C23 other end is respectively connected to sound
The 4th pin and the 6th pin of frequency power amplifier U2;The 7th pin of audio-frequency power amplifier U2 is respectively connected to audio function
The 8th pin, capacitor C25 anode and one end capacitor C21 of rate amplifier U2, it is negative that the capacitor C21 other end is connected to capacitor C25
Pole;The 1st pin and the 2nd pin of audio-frequency power amplifier U2 is connected to loudspeaker.
8. the mechanical keyboard according to claim 3 with audio input and output function, which is characterized in that the voice coder
Code module realizes voice coding using CVSD, and voice signal x (t) is sampled to obtain digital signal x (n), digital signal x (n) with
Integrator output signal xp(n) output bias signal d (n) after comparing obtains output digital coding c after deviation signal is quantified
(n), which is used as the polarity control signal of integrator output voltage gradient and the input of integrator output voltage gradient size logic simultaneously
Signal;Within each clock cycle, if voice signal is greater than integrator output signal, adjudicating output is 1, in integrator output
Rise an amount rank δ;If voice signal is less than integrator output signal, adjudicating output is 0, integrator output one amount rank of decline
δ;
(1) as x (n) >=xp(n) when, comparator exports d (n) >=0, and quantified device encodes to obtain, c (n)=1;
If 3 company " 1 " codes occurs in coding output c (n), i.e. c (n)=c (n-1)=c (n-2)=1 then measures rank δ (n)=β × δ
(n-1)+δ0, single order predictive coding value is xp(n)=xp(n-1)+δ(n);Otherwise rank δ (n)=β × δ (n-1) is measured, single order prediction
Encoded radio is xp(n)=xp(n-1)+δ(n);
(2) as x (n) < xp(n) when, comparator exports d (n) < 0, and quantified device encodes to obtain, c (n)=0;
If 3 company " 0 " codes occurs in coding output c (n), i.e. c (n)=c (n-1)=c (n-2)=0 then measures rank δ (n)=β × δ
(n-1)+δ0, single order predictive coding value is xp(n)=xp(n-1)-δ(n);Otherwise rank δ (n)=β × δ (n-1) is measured, single order prediction
Encoded radio is xp(n)=xp(n-1)-δ(n);
Wherein, β is the factor of control amount rank decaying, is met τ=T/ (1- β), i.e. β=1-T/ τ, T indicate the period of voice signal,
τ indicates syllable time constant.
9. the mechanical keyboard according to claim 8 with audio input and output function, which is characterized in that the voice is translated
Code module using CVSD realize speech decoding, be cataloged procedure an inverse process, increased after integrator one it is low
Bandpass filter, the output waveform for smoothed integral device;
(1) when c (n)=1, the output of integrator:
xQD(n)=xQD(n-1)+δ(n)
xQDF(n)=xQD(n)*h(n);
(2) when c (n)=0, then the output of integrator:
xQD(n)=xQD(n-1)-δ(n)
xQDF(n)=xQD(n)*h(n);
Wherein, the impulse response of low-pass filter is h (n).
10. the mechanical keyboard according to claim 2 with audio input and output function, which is characterized in that in the key
Disk ontology side is provided with several USB interfaces for being electrically connected to computer main board, which leads to respectively with loudspeaker access
By-passing signal line is crossed to be connected with USB interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811183801.0A CN109189234A (en) | 2018-10-11 | 2018-10-11 | A kind of mechanical keyboard with audio input and output function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811183801.0A CN109189234A (en) | 2018-10-11 | 2018-10-11 | A kind of mechanical keyboard with audio input and output function |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109189234A true CN109189234A (en) | 2019-01-11 |
Family
ID=64947762
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811183801.0A Pending CN109189234A (en) | 2018-10-11 | 2018-10-11 | A kind of mechanical keyboard with audio input and output function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109189234A (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001216071A (en) * | 2000-02-02 | 2001-08-10 | Isao Minamii | Sheet cover for keyboard of personal computer using dust collecting sheet |
CN101534578A (en) * | 2008-03-11 | 2009-09-16 | 乐金电子(中国)研究开发中心有限公司 | Mobile phone with audio input and output function and method for audio input and output |
CN202583943U (en) * | 2012-02-17 | 2012-12-05 | 青岛海信移动通信技术股份有限公司 | Audio circuit and tablet computer with voice function |
CN202587132U (en) * | 2012-02-23 | 2012-12-05 | 青岛海信移动通信技术股份有限公司 | Voice call circuit with echo suppression function and flat panel computer |
CN205158284U (en) * | 2015-10-19 | 2016-04-13 | 胡恒 | Take computer's intelligent keyboard |
CN205680062U (en) * | 2016-05-26 | 2016-11-09 | 深圳市百泰实业股份有限公司 | Projected keyboard |
CN206470646U (en) * | 2017-01-09 | 2017-09-05 | 黄培花 | Keyboard computer |
CN206946433U (en) * | 2017-05-10 | 2018-01-30 | 深圳汉诺威国际机器人发展股份有限公司 | A kind of intelligent sound computer keyboard device |
CN214278890U (en) * | 2018-10-11 | 2021-09-24 | 东莞市大小电子科技有限公司 | Mechanical keyboard with voice input and output functions |
CN219370293U (en) * | 2023-03-15 | 2023-07-18 | 长治市卓怡恒通信息安全有限公司 | Keyboard and host integrated machine |
-
2018
- 2018-10-11 CN CN201811183801.0A patent/CN109189234A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001216071A (en) * | 2000-02-02 | 2001-08-10 | Isao Minamii | Sheet cover for keyboard of personal computer using dust collecting sheet |
CN101534578A (en) * | 2008-03-11 | 2009-09-16 | 乐金电子(中国)研究开发中心有限公司 | Mobile phone with audio input and output function and method for audio input and output |
CN202583943U (en) * | 2012-02-17 | 2012-12-05 | 青岛海信移动通信技术股份有限公司 | Audio circuit and tablet computer with voice function |
CN202587132U (en) * | 2012-02-23 | 2012-12-05 | 青岛海信移动通信技术股份有限公司 | Voice call circuit with echo suppression function and flat panel computer |
CN205158284U (en) * | 2015-10-19 | 2016-04-13 | 胡恒 | Take computer's intelligent keyboard |
CN205680062U (en) * | 2016-05-26 | 2016-11-09 | 深圳市百泰实业股份有限公司 | Projected keyboard |
CN206470646U (en) * | 2017-01-09 | 2017-09-05 | 黄培花 | Keyboard computer |
CN206946433U (en) * | 2017-05-10 | 2018-01-30 | 深圳汉诺威国际机器人发展股份有限公司 | A kind of intelligent sound computer keyboard device |
CN214278890U (en) * | 2018-10-11 | 2021-09-24 | 东莞市大小电子科技有限公司 | Mechanical keyboard with voice input and output functions |
CN219370293U (en) * | 2023-03-15 | 2023-07-18 | 长治市卓怡恒通信息安全有限公司 | Keyboard and host integrated machine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112863547B (en) | Virtual resource transfer processing method, device, storage medium and computer equipment | |
KR20190005103A (en) | Electronic device-awakening method and apparatus, device and computer-readable storage medium | |
CN104052846A (en) | Voice communication method and system in game application | |
CN101207774A (en) | System for conversing SWF format file to video file and implementation method thereof | |
CN202041916U (en) | Sound control mouse | |
CN106896933A (en) | Phonetic entry is converted into method, device and the voice-input device of text input | |
CN201955956U (en) | Mutual converter for sentence and voice for deaf mute to be communicated with outside | |
CN207473563U (en) | A kind of speech processes mouse | |
CN206672078U (en) | A kind of sound card for possessing voice control function | |
CN109189234A (en) | A kind of mechanical keyboard with audio input and output function | |
CN102074150A (en) | Sentence and speech conversion device for the deaf to communicate with outside world | |
CN108052511A (en) | Multilingual translation device based on accent recognition | |
CN214278890U (en) | Mechanical keyboard with voice input and output functions | |
CN208094741U (en) | A kind of intelligent microphone based on speech recognition technology | |
CN201946294U (en) | Vehicle-mounted speech conversion device | |
CN207925131U (en) | Read aloud equipment | |
CN104299616A (en) | Voice base-band processing system based on DSP chip and FPGA chip | |
CN210156109U (en) | Thing networking wisdom piano system | |
CN109065042A (en) | A kind of electronic equipment and a kind of method of information processing | |
CN103124372A (en) | Multifunctional remote controller | |
CN202939967U (en) | Intelligent blue-ray player | |
CN214544375U (en) | MQA-based full-decoding output high-definition audio system | |
CN104660173A (en) | Signal amplification circuit for use in voice recognition | |
CN217214142U (en) | Intelligent voice terminal equipment for intelligent voice conversion | |
CN209471749U (en) | A kind of smart key voice lines |
Legal Events
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 |