CN101364332A - Method implementing audio encoding by CPLD - Google Patents

Method implementing audio encoding by CPLD Download PDF

Info

Publication number
CN101364332A
CN101364332A CNA2008101400063A CN200810140006A CN101364332A CN 101364332 A CN101364332 A CN 101364332A CN A2008101400063 A CNA2008101400063 A CN A2008101400063A CN 200810140006 A CN200810140006 A CN 200810140006A CN 101364332 A CN101364332 A CN 101364332A
Authority
CN
China
Prior art keywords
cpld
coding
audio
audio file
delivered
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
Application number
CNA2008101400063A
Other languages
Chinese (zh)
Inventor
于治楼
毕研山
梁智豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Inspur Software Co Ltd
Original Assignee
Shandong Inspur Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shandong Inspur Software Co Ltd filed Critical Shandong Inspur Software Co Ltd
Priority to CNA2008101400063A priority Critical patent/CN101364332A/en
Publication of CN101364332A publication Critical patent/CN101364332A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a method for implementing the speech coding by using a CPLD, which comprises the following steps: based on the I2S audio protocol, a master processor provides a 2.048MHz clock signal for the CPLD which can complete the coding operation of an audio file by means of the hardware logic function of the CPLD; according to the coding sequence, the clock signal is delivered to an A/D conversion chip to be converted into an analog signal, and then the analog signal is amplified by an operational amplifier and delivered to a loudspeaker for giving a sound; the audio file is recorded by the 'recorder' program of the Windows operating system, and the data format is of 8.000kHz, 8 bits, mono channel and 7kb/second. The main operations are all subjected to the CPLD hardware logical operation, which can greatly reduce the operating burden of the master processor during the audio playing process. Additionally, the CPLD hardware logical operation speed is faster than the program running speed, so that the program running efficiency is improved. The method achieves the effect of reporting the amount in the human voice with the standard Mandarin pronunciation, facilitates the price confirmation of the Merchant and the customer, and avoids the disputes.

Description

A kind of method of utilizing CPLD to realize voice coding
Technical field
The present invention relates to a kind of tax-control cash register scrap build technology, specifically a kind of method of utilizing CPLD to realize voice coding.
Background technology
Present high-grade tax-control cash register design is all developing to hommization, practicability direction, makes the aim that the client obtains better, service is the tax-control cash register design more easily.In the gathering process, trade company if can quote the amount of money with standard mandarin with true man's voice, can make things convenient for trade company and client's price to confirm when the input amount of money, avoids producing dispute to a certain extent.The cashing machine of prior art does not also possess above-mentioned functions at present.
Summary of the invention
The purpose of this invention is to provide the method that a kind of CPLD of utilization realizes voice coding.This method is according to I2S audio protocols standard, the clock signal of accurate 2.048MHz is provided by SOC, utilize CPLD can realize the encoding operation of audio file, order according to coding is delivered to successively and is converted simulating signal in the modulus conversion chip to, amplify through operational amplifier again, can pronounce by loudspeaker.Audio file can be recorded with " sound-track engraving apparatus " program that windows operating system carries, and requirement is that data layout is 8.000kHz, 8, monophony, 7kb/ second.
The invention has the beneficial effects as follows, main operation all is by the computing of CPLD hardware logic, can alleviate the computational burden of primary processor when voice playing is handled greatly, simultaneously because of CPLD hardware logic arithmetic speed far above program operation speed, therefore can improve program run efficient.Can quote the amount of money with standard mandarin with true man's voice, make things convenient for trade company and client's price to confirm, avoid producing dispute.
Description of drawings
Accompanying drawing 1 is to utilize CPLD to realize the circuit theory synoptic diagram of voice coding;
Accompanying drawing 2 is to utilize CPLD to realize the voice coding process flow diagram.
Embodiment
With reference to Figure of description to explaining below the work of the present invention.
The method of utilizing CPLD to realize voice coding of the present invention, be according to I2S audio protocols standard, the clock signal of accurate 2.048MHz is provided by SOC, realize the encoding operation of audio file by CPLD, order according to coding is delivered to successively and is converted simulating signal in the modulus conversion chip to, amplify through operational amplifier again, sound by loudspeaker, audio file can be recorded with " sound-track engraving apparatus " program that windows operating system carries, data layout is 8.000kHz, 8, monophony, 7kb/ second.
Embodiment
CPLD audio coding flow process is introduced: I2S has 3 main signals: 1. serial clock SCLK, also be bit clock (BCLK), i.e. and each data of corresponding DAB, SCLK has 1 pulse.The frequency of SCLK=2 * sample frequency * sampling resolution 2. frame clock LRCK is used for the data of switching right and left sound channel.What transmitting is the data of L channel to LRCK for " 1 " expression, and what then represent to transmit for " 0 " is the data of R channel.The frequency of LRCK equals sample frequency.3. serial data SDATA, the voice data of representing with two's complement exactly.Can be synchronous better between system in order to make, also need to transmit a signal MCLK in addition, be called major clock, be 256 times or 384 times of sample frequency.
This method is applicable to any simple phonetic function of increase that needs, and does not have condition to increase the equipment of dedicated voice chip again.On probation at tide RE-370FB tax-control cash register, obtain good effect.
The present invention is compared with existing technology, and in the gathering process, trade company can use true man's voice when the input amount of money Quote the amount of money with standard mandarin, make things convenient for trade company and client's price to confirm, can for the client provides convenience can also Avoid to a certain extent producing dispute, thereby have good value for applications.

Claims (1)

1. method of utilizing CPLD to realize voice coding, it is characterized in that according to I2S audio protocols standard, primary processor provides the clock signal of a 2.048MHz to CPLD, realize the encoding operation of audio file by the hardware logic function of CPLD, order according to coding is delivered to successively and is converted simulating signal in the modulus conversion chip to, amplify through operational amplifier again, sound by loudspeaker, audio file is recorded with " sound-track engraving apparatus " program that windows operating system carries, data layout is 8.000kHz, 8, monophony, 7kb/ second.
CNA2008101400063A 2008-09-12 2008-09-12 Method implementing audio encoding by CPLD Pending CN101364332A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008101400063A CN101364332A (en) 2008-09-12 2008-09-12 Method implementing audio encoding by CPLD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008101400063A CN101364332A (en) 2008-09-12 2008-09-12 Method implementing audio encoding by CPLD

Publications (1)

Publication Number Publication Date
CN101364332A true CN101364332A (en) 2009-02-11

Family

ID=40390685

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008101400063A Pending CN101364332A (en) 2008-09-12 2008-09-12 Method implementing audio encoding by CPLD

Country Status (1)

Country Link
CN (1) CN101364332A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106911987A (en) * 2017-02-21 2017-06-30 珠海全志科技股份有限公司 Main control end, equipment end, the method and system of transmission multichannel audb data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106911987A (en) * 2017-02-21 2017-06-30 珠海全志科技股份有限公司 Main control end, equipment end, the method and system of transmission multichannel audb data
CN106911987B (en) * 2017-02-21 2019-11-05 珠海全志科技股份有限公司 Main control end, equipment end, the method and system for transmitting multichannel audb data

Similar Documents

Publication Publication Date Title
CN104217724B (en) Using the decoding of the multi-channel audio coding bit stream of adaptive hybrid transform
EP1895512A3 (en) Multi-channel encoder
CN101202087B (en) Device and method for testing audio sound-recording
CN101479785B (en) Method for encoding and decoding object-based audio signal and apparatus thereof
CN109660933A (en) A kind of device of simultaneous transmission multi-channel analog audio
CN102592598B (en) Apparatus and method for restoring multi-channel audio signal
WO2022121176A1 (en) Speech synthesis method and apparatus, electronic device, and readable storage medium
CN102915739A (en) Method and apparatus for encoding and decoding high frequency signal
CN103811023A (en) Audio processing device, method and program
CN101192182B (en) Audio- playback test device and method
CN101253555A (en) Multi-channel acoustic signal processing device
CN101364332A (en) Method implementing audio encoding by CPLD
CN101004673A (en) Apparatus to convert analog signal of array microphone into digital signal and computer system including the same
JP2011007823A (en) Sound signal processing system, sound signal decoding device, and processing method and program therefor
WO2024027760A1 (en) Audio processing system and method, and vehicle
TWI455018B (en) Codec devices and operating and driving method thereof
WO2023103749A1 (en) Clock generation method for i2s audio bus, system, and dac circuit
CN106569780A (en) Real-time audio processing method and system for multi-channel digital audio signal
JP2006323314A (en) Apparatus for binaural-cue-coding multi-channel voice signal
CN102332293A (en) Vehicle-mounted digital music player
CN108847067A (en) A kind of Aural-comprehension Training system
JPS60225200A (en) Voice encoder
CN216017039U (en) Multichannel audio frequency inserts resampling device
CN203070758U (en) Audio recording and playing apparatus
TWI804163B (en) Microphone array

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20090211