CN107680605A - A kind of APE format errors data processing method and system - Google Patents
A kind of APE format errors data processing method and system Download PDFInfo
- Publication number
- CN107680605A CN107680605A CN201710907911.6A CN201710907911A CN107680605A CN 107680605 A CN107680605 A CN 107680605A CN 201710907911 A CN201710907911 A CN 201710907911A CN 107680605 A CN107680605 A CN 107680605A
- Authority
- CN
- China
- Prior art keywords
- data block
- data
- block
- current data
- tail
- 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
- 238000003672 processing method Methods 0.000 title claims abstract description 19
- 238000000034 method Methods 0.000 claims description 14
- 230000007257 malfunction Effects 0.000 abstract description 3
- 239000000284 extract Substances 0.000 abstract description 2
- 241000282693 Cercopithecidae Species 0.000 description 1
- 241001269238 Data Species 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
- G10L19/0017—Lossless audio signal coding; Perfect reconstruction of coded audio signal by transmission of coding error
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
- G10L19/04—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
- G10L19/16—Vocoder architecture
Landscapes
- Engineering & Computer Science (AREA)
- Computational Linguistics (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Detection And Prevention Of Errors In Transmission (AREA)
Abstract
The present invention discloses a kind of APE format errors data processing method, including:Obtain current data block;When judging upper data block decoding error, the tail data of a upper data block is extracted;The tail data is placed in before the current data block;The tail data and the current data block are decoded successively.APE format errors data processing method provided by the invention is by analyzing data block, when judging upper data block decoding error, extracts the tail data of a upper data block;Before tail data is placed in into current data block and decoded, can reduce influences caused by APE wrong data, solve the problems, such as in APE Frame Block (block) due to front and rear dependence cause above Block errors cause below Block continuously malfunction.
Description
Technical field
The present invention relates to audio decoding techniques field, more particularly to a kind of APE format errors data processing method and system.
Background technology
APE is a kind of Lossless Compression audio format that Monkey ' s Audio softwares provide.Can be easily on present network
Many APE song is downloaded to, has the mistake that there can be individual data bit in some songs in these songs, causes song broadcasting
Occur noise when putting or there is no sound for a long time.
Compare same class file format FLAC, APE has debugging ability but does not provide error correction, with ensure the lossless of file and
It is pure;So when checking file data error, recovery can not be carried out to wrong data can only reduce wrong data institute as far as possible
The influence brought.
Decoder on the market is typically detecting one for the APE files of this kind of wrong data now
Frame (frame) is inner when there is wrong data, and whole Frame can not be correctly decoded, and such words user sounds may
Have an obvious staccato phenomenon, or decoding output carried out to the voice data of mistake by force, so possibility will export noise or
Person's noise.
The content of the invention
The purpose of the present invention is to overcome above-mentioned technical problem, there is provided a kind of APE format errors data processing method.
The present invention also provides a kind of system for realizing above-mentioned APE format errors data processing method simultaneously.
A kind of APE format errors data processing method, including:
Obtain current data block;
When judging upper data block decoding error, the tail data of a upper data block is extracted;
The tail data is placed in before the current data block;
The tail data and the current data block are decoded successively.
Preferably, the acquisition current data block also includes:
When judging the current data block for frame head, directly the current data block is decoded.
Preferably, the acquisition current data block also includes:
When judging that upper data block decoding is correct, directly the current data block is decoded.
Preferably, it is described decoding is carried out to the tail data and the current data block successively to include:
When occurring wrong in decoding process, the current data block is abandoned, and mistake is carried out to the current data block
Mark.
Preferably, it is described decoding is carried out to the tail data and the current data block successively to include:
When occurring wrong in decoding process, the tail data of the current data block is preserved.
A kind of APE format errors data handling system, including:
Data acquisition module, for obtaining current data block;
Judge module, for when judging upper data block decoding error, extracting the tail data of a upper data block;
First processing module, for the tail data to be placed in before the current data block;
Second processing module, for being decoded successively to the tail data and the current data block.
Preferably, the judge module is additionally operable to when judging the current data block for frame head, directly to described current
Data block is decoded.
Preferably, the judge module is additionally operable to when judging that upper data block decoding is correct, directly to the current number
Decoded according to block.
Preferably, the Second processing module is additionally operable to, when occurring wrong in decoding process, abandon the current data
Block, and error flag is carried out to the current data block.
Preferably, the Second processing module is additionally operable to, when occurring wrong in decoding process, preserve the current data
The tail data of block.
Compared with correlation technique, APE format errors data processing method provided by the invention is by dividing data block
Analysis, when judging upper data block decoding error, extract the tail data of a upper data block;Tail data is placed in current data
Before block and decoded, can reduce influences caused by APE wrong data, solve in APE Frame Block (block) by
Above Block errors are caused to cause the problem of Block continuously malfunctions below in front and rear dependence.
Brief description of the drawings
Fig. 1 is a kind of APE format errors data processing method flow chart of the present invention;
Fig. 2 is the graph of a relation of Frame and Blocks in the embodiment of the present invention;
Fig. 3 is the APE format error data processing method flow charts of an instantiation of the invention;
Fig. 4 is a kind of APE format errors data handling system module frame chart of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only the part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained all other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Referring to Fig. 1, it is a kind of APE format errors data processing method flow chart of the present invention.Including:
Obtain current data block;
When judging upper data block decoding error, the tail data of a upper data block is extracted;
The tail data is placed in before the current data block;
The tail data and the current data block are decoded successively.
Refer to Fig. 2, be all during in general APE decoder solution APE audio files in units of Frame, each
N Blocks is all contained inside Frame.In the prior art, there is mistake if as the data in a Block, and
If causing all Block behind in this Frame all can not normally decode, this will lose many correct effective numbers
According to so as to bring very poor Consumer's Experience.
In one embodiment of the present invention, last four bytes of decoding data can be preserved, because being removed in APE decodings
Outside frame head first Block, other Block can rely on several bytes of a Block ending, if so do not protected
Several bytes of each End of Frame are deposited, next decoding Block will be wrong because of occurring decoding without dependence data above
By mistake, by that analogy, next whole Frame will can not decode because of dependence.
Therefore, solved using the solution of the present invention in APE Frame before Block caused due to front and rear dependence
Block errors cause the problem of Block continuously malfunctions below.It will be preserved when each Block starts decoding may
Last four bytes relied on by next Block are as tail data, if this Block causes to count because of error in data
During according to error, it is possible to rely on previous Block plus it before the data when decoding next Block in this Block
Several byte datas, so as to which the Block after ensureing can be decoded normally, this reduces the shadow that wrong data is brought
Ring.
In an embodiment, the acquisition current data block also includes:When judging the current data block for frame
During head, directly the current data block is decoded.If data block is frame head, show to handle the frame data for the first time,
Therefore directly decode, second of judgement for carrying out decoding correctness again when performing.
In an embodiment, when judging that upper data block decoding is correct, directly the current data block is entered
Row decoding.Directly start to decode if a upper Block is decoded without mistake.
It is described that decoding bag is carried out to the tail data and the current data block successively in an embodiment
Include:When occurring wrong in decoding process, the data are abandoned, and carry out error flag.
If there is the situation of error in data in the present invention, then will abandon and currently the Block of wrong data occur, do
To not influenceing to decode next Block, make it possible to be correctly decoded and export, the influence that will so reduce wrong data and bring.
It is described that decoding bag is carried out to the tail data and the current data block successively in an embodiment
Include:When occurring wrong in decoding process, the tail data of the data block is preserved.Tail data is preserved, so as to follow-up
When judging the data block decoding error, carry out decoding subsequent data according to the tail data, reduce the influence that wrong data is brought.
It is as follows referring to Fig. 3, its execution in an instantiation:
S1, frame data are read, start to decode;
S2, preserve four bytes of current Block endings;
S3, judge whether current Block is frame head, if so, then performing step S6;Otherwise, step S4 is performed;
S4, judge whether a upper Block decodings mistake occur, if so, then performing step S5;Otherwise, step S6 is performed;
S5, four bytes of ending that a upper Block is preserved are read according to big small end and nybble alignment, and this is ended up
Four bytes are placed in before current Block, the data head as current Block;
S6, decoding;
S7, judge whether decoded data error in data occur, if so, then abandoning data and misregistration flag;If
It is no, correct data are exported.
APE format errors data processing method provided by the invention can reduce to be influenceed caused by APE wrong data, solution
Block in APE Frame determined because front and rear dependence causes above Block errors to cause what Block below continuously malfunctioned
Problem.
Present invention simultaneously provides a kind of APE format errors data handling system, referring to Fig. 4, including:
Data acquisition module 1, for obtaining current data block;
Judge module 2, for when judging upper data block decoding error, extracting the tail data of a upper data block;
First processing module 3, for the tail data to be placed in before the current data block;
Second processing module 4, for being decoded successively to the tail data and the current data block.
In an embodiment, the judge module 2 is additionally operable to when judging the current data block for frame head, directly
Connect and the current data block is decoded.
In an embodiment, the judge module 2 is additionally operable to when judging that upper data block decoding is correct, directly
The current data block is decoded.
In an embodiment, the Second processing module 4 is additionally operable to when occurring wrong in decoding process, is abandoned
The current data block, and error flag is carried out to the current data block.
In an embodiment, the Second processing module 4 is additionally operable to when occurring wrong in decoding process, is preserved
The tail data of the current data block.
Embodiments of the invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
- A kind of 1. APE format errors data processing method, it is characterised in that including:Obtain current data block;When judging upper data block decoding error, the tail data of a upper data block is extracted;The tail data is placed in before the current data block;The tail data and the current data block are decoded successively.
- 2. APE format errors data processing method according to claim 1, it is characterised in that the acquisition current data Block also includes:When judging the current data block for frame head, directly the current data block is decoded.
- 3. APE format errors data processing method according to claim 1, it is characterised in that the acquisition current data Block also includes:When judging that upper data block decoding is correct, directly the current data block is decoded.
- 4. the APE format error data processing methods according to claim any one of 1-3, it is characterised in that it is described successively Carrying out decoding to the tail data and the current data block includes:When occurring wrong in decoding process, the current data block is abandoned, and error flag is carried out to the current data block.
- 5. APE format errors data processing method according to claim 1, it is characterised in that described successively to the tail Portion's data and the current data block, which carry out decoding, to be included:When occurring wrong in decoding process, the tail data of the current data block is preserved.
- A kind of 6. APE format errors data handling system, it is characterised in that including:Data acquisition module, for obtaining current data block;Judge module, for when judging upper data block decoding error, extracting the tail data of a upper data block;First processing module, for the tail data to be placed in before the current data block;Second processing module, for being decoded successively to the tail data and the current data block.
- 7. APE format errors data handling system according to claim 6, it is characterised in that the judge module is also used In when judging the current data block for frame head, directly the current data block is decoded.
- 8. APE format errors data handling system according to claim 6, it is characterised in that the judge module is also used In when judging that upper data block decoding is correct, directly the current data block is decoded.
- 9. the APE format error data handling systems according to claim any one of 6-8, it is characterised in that described second Processing module is additionally operable to when occurring wrong in decoding process, abandons the current data block, and the current data block is entered Row error flag.
- 10. the APE format error data processing methods according to claim any one of 6-8, it is characterised in that described second Processing module is additionally operable to, when occurring wrong in decoding process, preserve the tail data of the current data block.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710907911.6A CN107680605A (en) | 2017-09-29 | 2017-09-29 | A kind of APE format errors data processing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710907911.6A CN107680605A (en) | 2017-09-29 | 2017-09-29 | A kind of APE format errors data processing method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107680605A true CN107680605A (en) | 2018-02-09 |
Family
ID=61139320
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710907911.6A Pending CN107680605A (en) | 2017-09-29 | 2017-09-29 | A kind of APE format errors data processing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107680605A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002056601A1 (en) * | 2001-01-10 | 2002-07-18 | Huawei Technologies Co., Ltd. | A method for processing error code of compressed image in transmission |
WO2003047115A1 (en) * | 2001-11-30 | 2003-06-05 | Telefonaktiebolaget Lm Ericsson (Publ) | Method for replacing corrupted audio data |
CN101027717A (en) * | 2004-03-25 | 2007-08-29 | Dts公司 | Lossless multi-channel audio codec |
CN101442675A (en) * | 2008-12-31 | 2009-05-27 | 中兴通讯股份有限公司 | Multimedia play terminal and play method |
-
2017
- 2017-09-29 CN CN201710907911.6A patent/CN107680605A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002056601A1 (en) * | 2001-01-10 | 2002-07-18 | Huawei Technologies Co., Ltd. | A method for processing error code of compressed image in transmission |
WO2003047115A1 (en) * | 2001-11-30 | 2003-06-05 | Telefonaktiebolaget Lm Ericsson (Publ) | Method for replacing corrupted audio data |
CN101027717A (en) * | 2004-03-25 | 2007-08-29 | Dts公司 | Lossless multi-channel audio codec |
CN101442675A (en) * | 2008-12-31 | 2009-05-27 | 中兴通讯股份有限公司 | Multimedia play terminal and play method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103871407B (en) | Method and apparatus for correcting speech recognition error | |
CN110265001B (en) | Corpus screening method and device for speech recognition training and computer equipment | |
US10529340B2 (en) | Voiceprint registration method, server and storage medium | |
CN110085261A (en) | A kind of pronunciation correction method, apparatus, equipment and computer readable storage medium | |
WO2015090215A1 (en) | Voice data recognition method and device for distinguishing regional accent, and server | |
CN110245259A (en) | The video of knowledge based map labels method and device, computer-readable medium | |
CN111986656B (en) | Teaching video automatic caption processing method and system | |
TW200620934A (en) | Processing receive protocol data units | |
WO2006020150A3 (en) | System and apparatus for generating mailers on demand | |
CN103440252B (en) | Information extracting method arranged side by side and device in a kind of Chinese sentence | |
CN109326305B (en) | Method and system for batch testing of speech recognition and text synthesis | |
CN111091811B (en) | Method and device for processing voice training data and storage medium | |
CN112861527A (en) | Event extraction method, device, equipment and storage medium | |
CN105468468A (en) | Data error correction method and apparatus facing question answering system | |
CN111354340B (en) | Data annotation accuracy verification method and device, electronic equipment and storage medium | |
CN109785846B (en) | Role recognition method and device for mono voice data | |
CN108492830A (en) | Method for recognizing sound-groove, device, computer equipment and storage medium | |
CN108109277A (en) | A kind of express delivery pickup method and system | |
CN109308578A (en) | A kind of enterprise's big data analysis system and method | |
CN108595412B (en) | Error correction processing method and device, computer equipment and readable medium | |
CN106021165A (en) | LIN bus decoding, triggering and analyzing technology | |
CN111639529A (en) | Speech technology detection method and device based on multi-level logic and computer equipment | |
CN107977359B (en) | Method for extracting scene information of movie and television scenario | |
Joglekar et al. | Fearless steps challenge phase-3 (fsc p3): Advancing slt for unseen channel and mission data across nasa apollo audio | |
CN111897256A (en) | Children programming control system |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180209 |