Embodiment
In recent years, the electronic installation of the formula that much is easy to carry (for example: PDA, mobile phone and digital camera etc..), all increased the function of broadcast voice document (as: music), but, the form of these voice documents all adopts the standard format of MP3, yet, the voice document of this MP3 standard format shared storage space in these electronic installations is quite big, therefore, desire on these electronic installations, to play the voice document of this MP3 standard format, support needing the storer of larger capacity, thus, to suitable big of the burden of Storage Media (that is: these electronic installations), therefore, be necessary to dwindle the amount of capacity of the voice document of MP3 standard format, play again.
The present invention promptly is according to this development trend, make electronic installation when downloading the voice document (as: music) of a standard format (as: MP3), can be by the compressed format of definition voluntarily set in this electronic installation, voice document with this standard format, convert the compressed format that this defines voluntarily earlier to, to be stored to this electronic installation through this voice document after the conversion again, and play by this electronic installation, so, the compressed format that defines voluntarily by the present invention, can get rid of the unnecessary capacity of part in the voice document of primary standard form, significantly reduce the encoding rate of digital speech, save the storage space of this electronic installation, can keep the effect of original speech play simultaneously again.
In the present invention, see also shown in Figure 1ly, on the electronic installation of this formula that is easy to carry, be respectively equipped with a storer 11, in order to the usefulness of storage data; Digital-to-analog signal converter 13 is in order to convert audio digital signals to the human acoustic pattern voice signal that can experience; Loudspeaker 14 are in order to play back the acoustic pattern voice signal; And central processing unit 12, in order to control this device main frame and aforementioned each interelement normal operation.
Moreover, by the voice document of known original standard compression form (as: MP3), be by following expression:
Frame()
{
header();
audio_data()
ancillary_data()
}
Wherein this Frame () is a data transmission unit, that is: package is represented the content (because the voice document of MP3 standard format is according to the frame number that it comprised, playing one by one) of the compressed format of each frame (Frame) in the voice document; This header () is a frame head; The voice data of this audio_data () for being comprised in each frame (Frame), its content is relevant with the song content in this voice document; This ancillary_data () is an auxiliary data, and its content is also relevant with song content.
In the present invention, because the form of this audio_data () voice data, with the form of this ancillary_data () auxiliary data, identical with original standard compression form respectively (as: MP3), be to belong to known technology, therefore, the present invention will not give unnecessary details in detail at this.In known technology, can the content of this audio_data () voice data and ancillary_data () auxiliary data be encrypted, because this encryption method is not a patented claim emphasis of the present invention, so also will not give unnecessary details in detail at this.
Principal character of the present invention, be at this frame head form header () in the voice document of aforementioned known standard compressed format (as: MP3), adopt a voice compression format that defines voluntarily, data in this frame head form is divided into many fragments, make them different with original standard format, its concrete form is as follows:
header()
{
frame_mark:12bit
INC_copyright:1bit
voice_quality:6bit
stereo_select:2bit
padding:1bit
}
, this frame_mark:12bit wherein is to represent that each frame compression data accounts for 12 bits (bit) in this voice document; This INC_copyright:1bit is to represent its copyrighted data to account for 1 bit (bit); This voice_quality:6bit is to represent its tonequality data to account for 6 bits (bit); This stereo_select:2bit is that the stereo selection of representative accounts for 2 bits (bit); This padding:1bit is to represent its data to fill up to account for 1 bit (bit).
Below enumerate an embodiment now, at the control program in this electronic installation (that is: format conversion process), describe in detail, how to pass through following converse routine of the present invention, see also shown in Figure 2, with the voice document of the MP3 standard format downloaded, the conversion cost invention is the voice compression format of definition voluntarily:
(1) at first, the central processing unit 12 of this electronic installation is when downloading the voice document of this MP3 standard format, open this voice document earlier, it is carried out the initialization operation, with the frame head of discerning each frame compressed content in this voice document (because for the voice document of MP3 standard format, is according to its bit (bit), so before control program carries out, the bit (bit) that is comprised in the voice document of need to this MP3 standard format carries out the initialization operation.);
(2) seek synchronization character (SYNCWORD), and judged whether to find synchronization character (this synchronization character means the frame_mark among the frame head header () in the present invention), if found synchronization character, then carry out synchronous processing by bit, and continuation the following step, if do not find synchronization character, then withdraw from this converse routine;
(3) judge again whether this voice document is the ISO138183 normative document, this ISO138183 normative document is (Motion Picture Expert Group in the Motion Picture Expert Group 2.5, abbreviation MPEG2.5) audio compress standard file, the employed specification of the voice document of MP3 standard format, promptly belong to this kind audio compress standard, if this ISO138183 normative document then continues the following step, if not this ISO138183 normative document then withdraws from this converse routine;
(4) again at the header () of each frame compressed content in the voice document of this MP3 standard format, resolve, remove useless bit, and the primary standard format conversion is the voice compression format (that is: the form among the aforementioned frame head header ()) that defines voluntarily;
(5) to the content of audio_data () voice data in each frame compressed content and ancillary_data () auxiliary data, encrypt;
(6) judge whether this voice document finishes conversion, if, then withdraw from this converse routine, if not, then continue step (2), seek the synchronization character in the next frame compressed content, up to whole voice document be converted finish till.
So, can be with the voice document of MP3 standard format, the conversion cost invention is the voice compression format of definition voluntarily, and it is stored in the storer 11 of this electronic installation.
In the present invention, if desire will convert the voice document of the compressed format of definition voluntarily to, when playing out in this electronic installation certainly, can be by following playing program (that is: format conversion process), see also shown in Figure 3ly,, handle the voice document of this compressed format that defines voluntarily:
(1) at first, the central processing unit 12 of this electronic installation will be opened the voice document of this stored compressed format that defines voluntarily earlier, and it is carried out the initialization operation, with the frame head (header) of discerning each frame compressed content in this voice document;
(2) seek synchronization character, and judge whether to have found synchronization character, if found synchronization character, then, carry out the synchronization operation, and continue the following step,, then withdraw from this playing program if do not find synchronization character according to the bit that it comprised;
(3) judge again whether this voice document is the voice compression format that defines voluntarily, if this voice compression format that defines voluntarily then continues the following step, if not this voice compression format that defines voluntarily then withdraws from this playing program;
(4) to the content of audio_data () voice data in each frame compressed content and ancillary_data () auxiliary data, be decrypted;
(5) data after will deciphering are imported this digital-to-analog signal converter 13, after audio digital signals being converted to the human acoustic pattern voice signal that can experience, play back by these loudspeaker 14 again;
(6) judge whether this voice document finishes, if, then withdraw from this playing program, if not, then continue step (2), seek the synchronization character in the next frame compressed content, until whole voice document be played finish till.
So, the compressed format that defines voluntarily by the present invention, can get rid of the unnecessary capacity of part in the voice document, significantly reduce the encoding rate of digital speech, reduce the capacity of voice document, the storage space of saving this electronic installation, the while can keep the effect of original speech play again, effectively solve traditional electronic devices when playing this MP3 voice document, need the shortcoming of larger capacity storer.
The above only is a best specific embodiment of the present invention.Feature of the present invention is not limited thereto, and anyly is familiar with present technique field person in field of the present invention, can think easily and variation or modification, all should be encompassed in the appended claim scope.