CN1811961A - 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 PDF

Info

Publication number
CN1811961A
CN1811961A CNA2006100333503A CN200610033350A CN1811961A CN 1811961 A CN1811961 A CN 1811961A CN A2006100333503 A CNA2006100333503 A CN A2006100333503A CN 200610033350 A CN200610033350 A CN 200610033350A CN 1811961 A CN1811961 A CN 1811961A
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.)
Granted
Application number
CNA2006100333503A
Other languages
Chinese (zh)
Other versions
CN100433166C (en
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CNB2006100333503A priority Critical patent/CN100433166C/en
Publication of CN1811961A publication Critical patent/CN1811961A/en
Application granted granted Critical
Publication of CN100433166C publication Critical patent/CN100433166C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)

Abstract

This invention relates to a generation method for MP3 files including: 1, segmenting the phone data in a MP3 file, 2, generating corresponding MP3 address list based on the address of the segment in the phone data, 3, combining the address list, phone data and file labels to a MP3 file with the address list to provide the play equipment to locate positions of the segments for the play and a method is also disclosed.

Description

The generation method of mp3 file and to the player method of generated MP 3 file
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 is the audio-visual compression standard of a kind of activity, and 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 the MP3 speech data; 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.Be 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 is 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 carries out segmentation separately to the speech data of each mp3 file.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, generate 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, 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.
Speech data after combination of address table, the merging and the file label after the merging generate the mp3 file of being with address table.New mp3 file, its address table be 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-0xFA 0xFB-0xFF ……
?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:
0X00 ?0X01 0X02 0X03 0X04
The Track numbering The Index numbering Address bit
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 listen?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?talk?to 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 Track2 Index3 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.
CNB2006100333503A 2006-01-27 2006-01-27 MP3 file generating method and playing method for generated MP3 file Expired - Fee Related CN100433166C (en)

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 true CN1811961A (en) 2006-08-02
CN100433166C 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)

Cited By (2)

* Cited by examiner, † Cited by third party
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
CN113010186A (en) * 2021-02-05 2021-06-22 武汉联特科技股份有限公司 Firmware and application data integration method and system applied to optical module

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW332961B (en) * 1996-02-09 1998-06-01 Sony Co Ltd Recording media
CN1259739A (en) * 1999-01-06 2000-07-12 何刚 Method of selectively reproducing acoustic material
US20060292049A1 (en) * 2003-09-04 2006-12-28 Tetsuya Nagasaka Process for producing rutile

Cited By (3)

* Cited by examiner, † Cited by third party
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
CN113010186A (en) * 2021-02-05 2021-06-22 武汉联特科技股份有限公司 Firmware and application data integration method and system applied to optical module
CN113010186B (en) * 2021-02-05 2023-03-21 武汉联特科技股份有限公司 Firmware and application data integration method and system applied to optical module

Also Published As

Publication number Publication date
CN100433166C (en) 2008-11-12

Similar Documents

Publication Publication Date Title
CN1305065C (en) Data reproducing method and data reproducing device
CN1236445C (en) Caption MP3 player having caption display function, caption MP3 data format and method of reproducing caption MP3 data
CN1368732A (en) Multi-bit-stream data storage medium and equipment and method for recording/reconstruction multi-bit-stream
CN101060606A (en) Reproducing method for reproducing text-based subtitle data
CN1396545A (en) Reproducing equipment and method for providing bookmark information
CN101540847A (en) Caption producing system and caption producing method
CN101059982A (en) Storage medium including metadata and reproduction apparatus and method therefor
CN101079301A (en) Device and method for text to audio mapping, and animation of the text
CN1122996C (en) Apparatus and method for producing reproduction time of optical disc
CN1771553A (en) Storage medium in which audio-visual data with event information is recorded, and reproducing apparatus and reproducing method thereof
CN104793575A (en) Situation sound and light generating system, situation sound and light generating method and situation playing unit
CN1811961A (en) MP3 file generating method and playing method for generated MP3 file
CN1402539A (en) Method and device for recording and reproducing video data, and information storage medium thereof
CN1794216A (en) Method of synchronous playing voice frequency document and corresponding literal data
CN1787101A (en) Multimedia editing method
CN101448094A (en) Method for rapidly importing media material
CN1909641A (en) Edit system and method for multimedia synchronous broadcast
CN102110459B (en) Playing terminal and multimedia file playing method and device thereof
CN1845249A (en) MP3 multi-language sound-word synchronizing interactive learning data making and playing method and device
CN1601459A (en) Data synchronous method definition data sychronous format method and memory medium
CN113206853B (en) Video correction result storage improvement method
CN1292430C (en) Method for distributing voce channel identifier and method for selecting voce channel
CN1276425C (en) Method for choosing audio frequency channel of audio frequency/video frequency data flow
CN1666287A (en) Method and arrangement for the generation of an identification data block
CN101222480B (en) Method for generating ISO media file according to RTP package and reading method thereof

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