CN100433166C - MP3 file generating method and playing method for generated MP3 file - Google Patents
MP3 file generating method and playing method for generated MP3 file Download PDFInfo
- Publication number
- CN100433166C CN100433166C CNB2006100333503A CN200610033350A CN100433166C CN 100433166 C CN100433166 C CN 100433166C CN B2006100333503 A CNB2006100333503 A CN B2006100333503A CN 200610033350 A CN200610033350 A CN 200610033350A CN 100433166 C CN100433166 C CN 100433166C
- Authority
- CN
- China
- Prior art keywords
- file
- address
- speech data
- address table
- segmentation
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)
Abstract
The present invention relates to a generation method for MP3 files, which comprises the following steps: 1), segmenting the voice data in the MP3 file; 2), generating a corresponding MP3 address list based on the address of each segment in the voice data; 3), combining the address list, the voice data and file labels to form an MP3 file with the address list. Because the MP3 file generated by the method has the address list corresponding to each segment position, playing tools can use the MP3 file to exactly position each segment position for playing. The present invention also provides a playing method for the MP3 file with the address list.
Description
Technical field
The present invention relates to speech data by the generation method of the mp3 file of segmentation with to the player method of the mp3 file of segmentation.
Background technology
MPEG (Moving Picture Experts Group) Chinese Motion Picture Experts Group by name, it is the audio-visual compression standard of a kind of activity, MP3 then refers to the 3rd layer (Layer-3) of MPEG voice layer. existing mp3 file is made up of file label and speech data two parts, and wherein file label has write down information such as author, bent name, special edition. as shown in the table:
ID3V2 | General file label has comprised the author at present, composition, and information such as special edition, length are unfixing |
Frame … … Frame | Speech data, show as a series of frame, number determines the length of each FRAME not fix by file size and frame length, also may fix, determine each FRAME to be divided into the bit rate that frame head and data entity two parts frame head have write down mp3 again by bit rate bitrate, sampling rate, information such as version, separate between each frame |
ID3V1 | Old-fashioned file label is substituted by ID3V2, has comprised the author, composition, and information such as special edition, length are 128BYTE. |
When playing a plurality of mp3 file, playout software is discerned the position at the speech data part place of each mp3 file (a corresponding first song or other voice) by file label, can switch fast according to user's order and play any one mp3 file, from the beginning its limitation can only play selected song after being to switch, and can not specify one of them position in the song to begin to play.
Summary of the invention
But the objective of the invention is to provide a mp3 file that the position begins to play in a kind of specified speech data.
Another object of the present invention is to provide the player method of playing this mp3 file.
The present invention provides the generation method of mp3 file, and its step comprises:
1) speech data in the mp3 file is carried out segmentation;
2) generate corresponding MP3 address table according to the address of each segmentation in speech data;
3) address table, speech data and file label combination are generated the mp3 file of being with address table.
Because the mp3 file that this method generated has and each segmentation position corresponding address table, so play the position that can supply the broadcast instrument accurately to locate each segmentation.
The present invention gives the player method to the mp3 file of above-mentioned band address table, and its step comprises:
A) receive the play command that requires to play assigned address;
B) in the address table of mp3 file, find out and specified position corresponding address;
C) begin to play the MP3 speech data from this address.
Because the broadcast instrument is found out the sectional address corresponding with this section according to the address table in the mp3 file, so the user needs only wherein one section that specifies in the mp3 file, the broadcast instrument can be found out corresponding address and begin in specified position to play.
Description of drawings
Fig. 1 is the process flow diagram of the generation method of mp3 file;
Fig. 2 is the process flow diagram to the player method of the mp3 file that is generated;
Fig. 3 is the process flow diagram of the player method of embodiment one;
Fig. 4 is the realization figure that embodiment one generated and play mp3 file.
Embodiment
Embodiment one
As Fig. 1, the generation method of mp3 file, its step comprises:
1) speech data in the mp3 file is carried out segmentation;
2) generate corresponding MP3 address table according to the address of each segmentation in speech data;
3) address table, speech data and file label combination are generated the mp3 file of being with address table.
The mp3 file structure such as the following table that generate:
0x00--0x08 | 0x09--0x0A | 0x0B--N*5 | …… | …… |
File label | The address table size | Address table data | The MP3 speech data | ID3V1 (can omit) |
As Fig. 2, to the player method of the mp3 file of above-mentioned band address table, its step comprises:
A) receive the play command that requires to play assigned address;
B) in the address table of mp3 file, find out and specified position corresponding address;
C) begin to play the MP3 speech data from this address.
Steps A wherein) can receive the order of various ways in, as make the code-reading (as bar code) of a plurality of correspondences in advance according to each segmentation, the user operates code reader (as photoelectric pen) and reads code-reading and be converted into the order that has assigned address accordingly and be input to player, player with this assigned address as index, find out corresponding address, just can play MP 3 speech datas; And for example player is provided with button or touch-screen, the positional information that the user will play by button or touch-screen input, and player is found out corresponding address according to this positional information, just can play the MP3 speech data. as shown in Figure 3.
The implementation procedure of present embodiment can be with reference to figure 4.
Embodiment two
With the WINONCD of voice software for editing mp3 file is carried out segmentation, generate a file with the CD form bursting. serve as the speech data corresponding address table in generation and the mp3 file, need convert the sectional address of CD form to the address of MP3 format, its transfer principle is as follows:
MP3 address=(MP3 frame length MP3 frame rate) reproduction time;
CD address=(CD frame length CD frame rate) reproduction time;
No matter with MP3 format, CD form or other form spanned file, the reproduction time of same speech data is certain, so, can get: MP3 address=(CD address MP3 frame length)/(the every frame time CD of MP3 frame rate CD frame length) in conjunction with above-mentioned two formula disappear wherein " reproduction time " variable;
Because MP3 frame length, the every frame time of MP3, CD frame rate and CD frame length are constant, so the CD address of specified position data can be converted into the MP3 address, generate the MP3 address table, then address table embedded the mp3 file that former mp3 file generates the band address table.
In like manner can draw the formula that other format address is converted into the MP3 address:
MP3 address=(this extended formatting MP3 frame length)/(this extended formatting frame length of this extended formatting frame rate of the every frame time of MP3).
Embodiment three
The present embodiment introduction merges the method that a plurality of mp3 files generate the mp3 file of a band address table, and its step is as follows:
Merge the file label of former each mp3 file, generate new file label.
The speech data that merges a plurality of mp3 files, speech data to each mp3 file carries out segmentation separately. according to the former mp3 file under each segmentation, this section speech data in affiliated mp3 file fragment sequence number and the address in the speech data after merging, generating corresponding MP3 address table. the index of address table is divided into two-layer: the mp3 file under its high-rise this section of expression speech data, its low layer is represented the fragment sequence number of this section speech data in affiliated mp3 file; The address in the speech data of this segmentation after merging is then represented in the pairing address of each index.
Speech data after combination of address table, the merging and the file label after the merging, generate the mp3 file of band address table. new mp3 file, its address table is owing to contain two layer indexs, plays so can supply the broadcast instrument accurately to locate any a section of any one mp3 file. the structure of the address table data of new mp3 file such as following table:
?0x00-0x04 | 0x050-0x09 | …… | 0xF5-0xF9 | 0xFA-0xFE | …… |
?Track1 ?index1 | Track1 index2 | Track2 index1 | Track2 index2 |
Track wherein represents high layer index, and Index represents low layer index, and wherein the content of address 0x00-0x04 is:
Below be the storage example of the mp3 file that generated:
Track and Index numbering | Play content | Corresponding MP3 address |
Track1?Index1 | ?Where?are?we?going? | 0x000000 |
Track1?Index2 | ?We’re?going?to?the ?museum. | 0x000010 |
Track1?Index3 | ?Can?I?play?at?the ?museum? | 0x000023 |
Track1?Index4 | ?No,you?mustn’t?play ?there. | 0x000035 |
Track2?Index1 | We’re?going?to?learn lots?of?things. | 0x00004B |
Track2?Index2 | We?must?look?and hsten?carefully | 0x000062 |
Track2?Index3 | Then?we’re?going?to go?to?the?hospital | 0x000077 |
Track2?Index4 | Why? | 0x00008E |
Track2?Index5 | Because?Grandma?is there.She?has?a?fever | 0x000098 |
Track2?Index6 | Can?we?talkto Grandma? | 0x0000AF |
For the user, Track1 Index1 represents first (or first first first of singing) of first piece of article, and Track1 Index2 represents second of first piece of article, and Track2Index3 represents the 3rd of second piece of article, and the rest may be inferred.
Comparatively speaking, if the speech data in the single mp3 file is carried out segmentation, because of it need not to represent mp3 file under every section speech data only to need the fragment sequence number of every section speech data of expression in this mp3 file, so address table only need get final product by a layer index.
Claims (6)
1.MP3 the generation method of file, its step comprises:
1) speech data in the mp3 file is carried out segmentation;
2) generate corresponding MP3 address table according to the address of each segmentation in speech data;
3) address table, speech data and file label combination are generated the mp3 file of being with address table.
2. the generation method of claim 1 is characterized in that, if with other form beyond the MP3 speech data is carried out segmentation, then step 2 in step 1)) be:
2.1) according to MP3 frame length, the every frame time of MP3, this other format frame speed and this other format frame length the address of each segmentation is converted into the MP3 address;
2.2) generate corresponding MP3 address table according to the MP3 address that converses.
3. claim 1 or 2 generation method is characterized in that its step comprises:
1) merges the speech data of a plurality of mp3 files, the speech data of each mp3 file is carried out segmentation separately;
2) generate corresponding MP3 address table according to the former mp3 file under each segmentation, this section speech data fragment sequence number and the address in the speech data after merging thereof in affiliated mp3 file, the index of address table is divided into two-layer: the mp3 file under its high-rise this section of expression speech data, and its low layer is represented the fragment sequence number of this section speech data in affiliated mp3 file; The address in the speech data of this segmentation after merging is then represented in the pairing address of each index;
3) speech data after combination of address table, the merging and the file label after the merging generate the mp3 file of band address table.
4. the player method of the mp3 file that the generation method by the described mp3 file of claim 1 is generated, its step comprises:
A) receive the play command that requires to play assigned address;
B) in the address table of mp3 file, find out and specified position corresponding address;
C) begin to play the MP3 speech data from this address.
5. the player method of claim 4 is characterized in that, steps A) be: the order that has assigned address from code reader, received.
6. the player method of claim 4 is characterized in that, steps A) be: the order that has assigned address from touch-screen, received.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100333503A CN100433166C (en) | 2006-01-27 | 2006-01-27 | MP3 file generating method and playing method for generated MP3 file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006100333503A CN100433166C (en) | 2006-01-27 | 2006-01-27 | MP3 file generating method and playing method for generated MP3 file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1811961A CN1811961A (en) | 2006-08-02 |
CN100433166C true CN100433166C (en) | 2008-11-12 |
Family
ID=36844820
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006100333503A Expired - Fee Related CN100433166C (en) | 2006-01-27 | 2006-01-27 | MP3 file generating method and playing method for generated MP3 file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100433166C (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102855904A (en) * | 2012-09-12 | 2013-01-02 | 松翰科技股份有限公司 | Sound/video file processing method, playing control method and playing system |
CN113010186B (en) * | 2021-02-05 | 2023-03-21 | 武汉联特科技股份有限公司 | Firmware and application data integration method and system applied to optical module |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1259739A (en) * | 1999-01-06 | 2000-07-12 | 何刚 | Method of selectively reproducing acoustic material |
CN1441428A (en) * | 1996-02-09 | 2003-09-10 | 索尼公司 | Device and method for producing recording data and reproducing recording medium |
WO2005024827A2 (en) * | 2003-09-04 | 2005-03-17 | Koninklijke Philips Electronics N.V. | Navigating audio books using auditory cues |
-
2006
- 2006-01-27 CN CNB2006100333503A patent/CN100433166C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1441428A (en) * | 1996-02-09 | 2003-09-10 | 索尼公司 | Device and method for producing recording data and reproducing recording medium |
CN1259739A (en) * | 1999-01-06 | 2000-07-12 | 何刚 | Method of selectively reproducing acoustic material |
WO2005024827A2 (en) * | 2003-09-04 | 2005-03-17 | Koninklijke Philips Electronics N.V. | Navigating audio books using auditory cues |
Also Published As
Publication number | Publication date |
---|---|
CN1811961A (en) | 2006-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101079301B (en) | Time sequence mapping method for text to audio realized by computer | |
EP2831762B1 (en) | Transcription of speech | |
EP1693829B1 (en) | Voice-controlled data system | |
EP1693830B1 (en) | Voice-controlled data system | |
CN101840719B (en) | Reproduction apparatus and/or method for storage medium including metadata | |
CN102754159A (en) | Metadata time marking information for indicating a section of an audio object | |
US8275814B2 (en) | Method and apparatus for encoding/decoding signal | |
US8713069B2 (en) | Playlist search device, playlist search method and program | |
CN101540847A (en) | Caption producing system and caption producing method | |
MY154156A (en) | High density interactive media guide | |
CN108536302A (en) | A kind of teaching method and system based on human body gesture and voice | |
HK1099405A1 (en) | Text subtitle processing apparatus | |
CN103226947A (en) | Mobile terminal-based audio processing method and device | |
CN101088085A (en) | Portable audio playback device and method for operation thereof | |
CN101540183A (en) | Playing device and audio output method | |
CN101859586A (en) | Moving picture indexing method and moving picture reproducing device | |
CN100433166C (en) | MP3 file generating method and playing method for generated MP3 file | |
CN104347097A (en) | Click-to-play type song playing method and player | |
DE602004027919D1 (en) | INFORMATIONAL MEDIUM AND PLAYBACK APPARATUS AND METHOD FOR INTERACTIVE GRAPHIC STREAM AND METHOD THEREFOR | |
JP2018146961A (en) | Voice reproduction device and voice reproduction program | |
CN202939968U (en) | Digital voice/audio video file playing device | |
CN1332365C (en) | Method and device for sync controlling voice frequency and text information | |
CN102043768A (en) | Method and device for manufacturing bookmarks of e-book | |
CN102855904A (en) | Sound/video file processing method, playing control method and playing system | |
CN1601459A (en) | Data synchronous method definition data sychronous format method and memory medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1096763 Country of ref document: HK |
|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: WD Ref document number: 1096763 Country of ref document: HK |
|
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20081112 Termination date: 20150127 |
|
EXPY | Termination of patent right or utility model |