CN104681033A - Information encoding and decoding methods and electronic equipment - Google Patents

Information encoding and decoding methods and electronic equipment Download PDF

Info

Publication number
CN104681033A
CN104681033A CN201310638431.6A CN201310638431A CN104681033A CN 104681033 A CN104681033 A CN 104681033A CN 201310638431 A CN201310638431 A CN 201310638431A CN 104681033 A CN104681033 A CN 104681033A
Authority
CN
China
Prior art keywords
customizing messages
file
coding
audio
audio file
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
CN201310638431.6A
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310638431.6A priority Critical patent/CN104681033A/en
Publication of CN104681033A publication Critical patent/CN104681033A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses an information encoding method which is used for solving the technical problem that multiple types of information cannot be stored in a sound recording file in the prior art. The information encoding method comprises the following steps of acquiring specific information and an audio file which takes a code format as an audio encoding format, wherein a code format corresponding to the specific information is a specific encoding format, and the specific encoding format is different from the audio encoding format; adding the specific information into the audio file to obtain a mixed file, wherein the specific information is provided with a specific mark used for recognizing the specific information during decoding; encoding the mixed file in the audio encoding format so as to obtain a hybrid encoding file. The invention further discloses an information decoding method and corresponding electronic equipment.

Description

A kind of information coding, coding/decoding method and electronic equipment
Technical field
The present invention relates to field of computer technology, particularly a kind of information coding, coding/decoding method and electronic equipment.
Background technology
Along with the development of science and technology, electronic technology have also been obtained development at full speed, and the kind of electronic product also gets more and more, and people have also enjoyed the various facilities that development in science and technology brings.The comfortable life that present people can be brought along with development in science and technology by various types of electronic equipment enjoyment.Such as, the electronic equipments such as mobile phone have become an indispensable part in people's life, and people can be strengthened and contacting between other people in mode of making a phone call, send short messages etc. by electronic equipments such as mobile phones.
In prior art, a lot of electronic equipment all has sound-recording function, such as at school, meeting time, electronic equipment can be adopted to record, with the drawback avoiding hand-written record may miss information.
In general, recording file is all adopt some specific waveform recording forms in the electronic device, such as pcm(record format), the data recorded in recording file are voice data, namely can only preserve audio-frequency information in recording file, and have no idea to preserve the information of other types wherein.
For solving this problem, some users can self-defined recording file structure, so not only can preserve voice data, can also preserve the data of some other types.But can there is compatibility issue in self-defined recording file structure, cannot accomplish general.
Visible, there is the technical matters cannot preserving polytype information in recording file in prior art.
Summary of the invention
The embodiment of the present invention provides a kind of information coding, coding/decoding method and electronic equipment, for solving the technical matters cannot preserving polytype information in prior art in recording file.
A kind of information coding method, is applied to electronic equipment, said method comprising the steps of:
Acquisition customizing messages and coded format are the audio file of audio coding formats, and the coded format that described customizing messages is corresponding is specific coding form, and described specific coding form is different from described audio coding formats;
Described customizing messages is added in described audio file, obtains a mixed file; Wherein, described customizing messages has specific identifier, for identifying described customizing messages when decoding;
Described mixed file is encoded with described audio coding formats, obtains hybrid coding file.
Preferably, obtaining coded format is the audio file of audio coding formats, comprising: obtain described audio file by record type.
Preferably, described customizing messages is added in described audio file, obtains a mixed file, comprising: for described customizing messages adds check bit, the described customizing messages adding described check bit is added in described audio file, obtains described mixed file.
Preferably, described customizing messages is added in described audio file, obtains a mixed file, comprising: for described customizing messages adds header, the described customizing messages after adding header is added in described audio file, obtains described mixed file.
A kind of information decoding method, comprises the following steps:
Obtain a hybrid coding file;
When decoding to described hybrid coding file, judge, in described hybrid coding file, whether there is the customizing messages including specific identifier;
When there is described customizing messages in described hybrid coding file, according to particular solution coding mode, described customizing messages is decoded, and according to audio decoder mode, the remaining information in described hybrid coding file is decoded; Wherein, described particular solution coding mode is different from described audio decoder mode.
Preferably, described customizing messages at least comprises Word message and/or pictorial information.
Preferably, when including check bit in described customizing messages, according to particular solution coding mode, described customizing messages being decoded, comprising:
According to described check bit, described customizing messages is verified;
When verify by time, according to described particular solution coding mode, described customizing messages is decoded.
A kind of electronic equipment, comprising:
First acquisition module, for obtaining customizing messages and coded format is the audio file of audio coding formats, the coded format that described customizing messages is corresponding is specific coding form, and described specific coding form is different from described audio coding formats;
Second acquisition module, for being added in described audio file by described customizing messages, obtains a mixed file; Wherein, described customizing messages has specific identifier, for identifying described customizing messages when decoding;
3rd acquisition module, for being encoded with described audio coding formats by described mixed file, obtains hybrid coding file.
Preferably, described first acquisition module specifically for: obtain described audio file by record type.
Preferably, described second acquisition module specifically for: be that described customizing messages adds check bit, the described customizing messages adding described check bit be added in described audio file, obtain described mixed file.
Preferably, described second acquisition module specifically for: be that described customizing messages adds header, the described customizing messages after adding header be added in described audio file, obtain described mixed file.
A kind of electronic equipment, comprising:
4th acquisition module, for obtaining a hybrid coding file;
Judge module, for when decoding to described hybrid coding file, judges whether have the customizing messages including specific identifier in described hybrid coding file;
Decoder module, for when having described customizing messages in described hybrid coding file, decodes to described customizing messages according to particular solution coding mode, and decodes to the remaining information in described hybrid coding file according to audio decoder mode; Wherein, described particular solution coding mode is different from described audio decoder mode.
Preferably, described customizing messages at least comprises Word message and/or pictorial information.
Preferably, when including check bit in described customizing messages, described decoder module specifically for: according to described check bit, described customizing messages is verified; When verify by time, according to described particular solution coding mode, described customizing messages is decoded.
In the embodiment of the present invention, described customizing messages and described audio file are dissimilar information, naturally, the coded format of described customizing messages is different from the coded format of described audio file, then the bit stream of described customizing messages can be added in the bit stream of described audio file, obtain described mixed file, more described mixed file unification is encoded according to described audio coding formats, thus, polytype information can be preserved in recording file.Further, described audio coding formats can be the general format of general audio file, and without the need to User Defined form, can not there is compatibility issue, the method namely in the embodiment of the present invention can realize general, and range of application is comparatively extensive.
Accompanying drawing explanation
Fig. 1 is the main flow figure of information coding method in the embodiment of the present invention;
Fig. 2 is the schematic diagram of mixed file in the embodiment of the present invention;
Fig. 3 is the main flow figure of information decoding method in the embodiment of the present invention;
Fig. 4 is the structural drawing of a kind of electronic equipment in the embodiment of the present invention;
Fig. 5 is the structural drawing of another kind of electronic equipment in the embodiment of the present invention.
Embodiment
Information coding method in the embodiment of the present invention can be applied to electronic equipment, described method can comprise: acquisition customizing messages and coded format are the audio file of audio coding formats, the coded format that described customizing messages is corresponding is specific coding form, and described specific coding form is different from described audio coding formats; Described customizing messages is added in described audio file, obtains a mixed file; Wherein, described customizing messages has specific identifier, for identifying described customizing messages when decoding; Described mixed file is encoded with described audio coding formats, obtains hybrid coding file.
In the embodiment of the present invention, described customizing messages and described audio file are dissimilar information, naturally, the coded format of described customizing messages is different from the coded format of described audio file, then the bit stream of described customizing messages can be added in the bit stream of described audio file, obtain described mixed file, more described mixed file unification is encoded according to described audio coding formats, thus, polytype information can be preserved in recording file.Further, described audio coding formats can be the general format of general audio file, and without the need to User Defined form, can not there is compatibility issue, the method namely in the embodiment of the present invention can realize general, and range of application is comparatively extensive.
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In the embodiment of the present invention, described electronic equipment can be PC(personal computer), notebook, PAD(panel computer), the different electronic equipment of mobile phone, sound-track engraving apparatus, recording pen etc., the present invention is not restricted this.
In addition, term "and/or" herein, being only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, general expression forward-backward correlation is to the relation liking a kind of "or".
Below in conjunction with accompanying drawing, the preferred embodiment of the present invention is described in detail.
Embodiment one
Refer to Fig. 1, the embodiment of the present invention provides a kind of information coding method, and described method can be applied to electronic equipment, and the main flow of described method is as follows:
Step 101: acquisition customizing messages and coded format are the audio file of audio coding formats, and the coded format that described customizing messages is corresponding is specific coding form, and described specific coding form is different from described audio coding formats.
In the embodiment of the present invention, can first obtain described customizing messages, and described audio file, the coded format of described customizing messages is such as described specific coding form, and the coded format of described audio file is such as audio coding formats.Described customizing messages and described audio file are such as dissimilar file, then described specific coding form is obviously different from described audio coding formats.
In the embodiment of the present invention, described customizing messages at least comprises Word message and/or pictorial information.
Such as, if described customizing messages is Word message, then the coded format of described Word message can be Unicode(coded format) coded format, if described customizing messages is image information, then the coded format of described image information can be QCIF(Quarter common intermediate format, CLV Common Intermediate Format) coded format, etc.
In the embodiment of the present invention, described audio coding formats can be the coded format that common audio file has, such as, can be PCM form.
Such as, in the embodiment of the present invention, obtaining described audio file, can be obtain described audio file by record type.Such as, described electronic equipment can have audio input unit, or described electronic equipment can communicate with an audio input unit, and described electronic equipment can obtain described audio file by described audio input unit.
Such as, described audio input unit is a Mike, and described Mike can be arranged on described electronic equipment, and as an ingredient of described electronic equipment, described electronic equipment can control described Mike and obtain described audio file.
Or described Mike and described electronic equipment can be two separate equipment, and described electronic equipment can send request to described Mike, to obtain the described audio file that described Mike obtains.
Described customizing messages can be the information prestored in described electronic equipment, or described customizing messages also can be the information that user inputs, or described customizing messages also can be the information that described electronic equipment obtains from other electronic equipments, and the obtain manner of the present invention to described customizing messages is not restricted.Further, obtain described customizing messages and obtain described audio file, can sequencing be there is no.
Preferably, a kind of possible application scenarios is: user recorded described audio file by described audio input unit, after described audio file is recorded, user may want to record scene when recording described audio file, it may be such as the recording carried out when graduating, user wants to record sight at that time and mood, then user may input passage information, or also may can take some photos, then Word message and/or the photo of user's input just can as described customizing messages.
Step 102: be added in described audio file by described customizing messages, obtains a mixed file; Wherein, described customizing messages has specific identifier, for identifying described customizing messages when decoding.
In the embodiment of the present invention, after the described customizing messages of acquisition, can be bit stream according to the format conversion of described audio file by described customizing messages, and described bit stream be added in the bit stream of described audio file.
Because described customizing messages is not audio-frequency information, therefore, described specific identifier can be set for described customizing messages, so that described customizing messages can be distinguished when decoding.
Preferably, in the embodiment of the present invention, described customizing messages is added in described audio file, obtain a mixed file, can be specifically: for described customizing messages adds check bit, the described customizing messages adding described check bit is added in described audio file, obtains described mixed file.
Can according to the form of described audio file, described customizing messages is converted to bit stream, after described customizing messages is converted to described bit stream, described check bit can be added in described bit stream, to facilitate, described customizing messages is verified, described customizing messages can be made more complete simultaneously.After adding described check bit to described bit stream, described customizing messages can be added in described audio file, obtain described mixed file.
Bit shared by described check bit can be arranged as required, such as, can be one, or can be multidigit.Verification mode can have multiple, such as, can be CRC(Cyclic Redundancy Check, cyclic redundancy check (CRC)), parity checking etc., the present invention is not restricted this.
Described check bit can be added on the optional position of the bit stream that described customizing messages is formed.
Preferably, in the embodiment of the present invention, described customizing messages is added in described audio file, obtain a mixed file, can be specifically: for described customizing messages adds header, the described customizing messages after adding header is added in described audio file, obtain described mixed file.
Can according to the form of described audio file, described customizing messages is converted to bit stream, after described customizing messages is converted to described bit stream, header can be added in described bit stream, the descriptor of described customizing messages can be stored in described header, such as, if with the addition of described header, then described specific identifier can be added in described header.Can decode according to described header when decoding, effectively can accelerate decoding speed.After adding described header to described bit stream, described customizing messages can be added in described audio file, obtain described mixed file.
After the described header of interpolation, described customizing messages is exactly a complete file layout, also easily described customizing messages and described audio file to be distinguished like this when decoding, and being convenient to distinguish the two is different files.
Wherein, when the bit stream formed by described customizing messages adds in the bit stream of described audio file, the bit stream of described customizing messages can be positioned at the diverse location of the bit stream of described audio file.
Such as, the storage format of described mixed file can be as shown in Figure 2, Fig. 2 is the most significant digit being stored in described audio file for described customizing messages, the most significant digit that bit stream by described customizing messages adds the bit stream of described audio file to is example, but actual conditions are not limited thereto, described customizing messages also can be stored in the lowest order of described audio file, namely also the bit stream of described customizing messages can be added to the lowest order of the bit stream of described audio file.
The point of addition of the bit stream of concrete described customizing messages, can determine according to the weights of each of the bit stream of described audio file.Such as, if the weights of the lowest order of the bit stream of described audio file are lower than the weights of the most significant digit of the bit stream of described audio file, then the bit stream of described customizing messages can be added on the lowest order of the bit stream of described audio file, can avoid like this impacting described audio file as far as possible, because user needs most or described audio file, therefore the integrality of described audio file first can be ensured when obtaining described mixed file, ensure that described audio file can normally export, normally receive to enable user.
Step 103: encoded with described audio coding formats by described mixed file, obtains hybrid coding file.
After the described mixed file of acquisition, can encode to described mixed file according to described audio coding formats, described hybrid coding file can be obtained like this.The information of two types is just included, i.e. described customizing messages and described audio file in described hybrid coding file.
In the embodiment of the present invention, when decoding, if decoded with common audio decoder software, what obtain after then may decoding is exactly a complete audio-frequency information, the i.e. complete audio-frequency information that forms of described customizing messages and described audio file, the namely acoustic information that audio output unit exports, but because described customizing messages presents with low noise data, sound is very little, for may be imperceptible user.
And when decoding, if decoded with specific audio decoder software, it can identify described customizing messages, then decode time described customizing messages can be decoded according to the decoding process corresponding with described customizing messages, acquisition can be just described customizing messages.
Example under a concrete scene:
When once getting together, user recorded described audio file by described audio input unit, and the coded format of described audio file is PCM form.
After described audio file is recorded, user wants to record scene when recording described audio file, such as user wants to record sight at that time and mood, then user have input passage information, then the described Word message of user's input just can as described customizing messages.The coded format of described Word message is Unicode coded format.
After the described customizing messages of acquisition, because the coded format of described customizing messages is different from the coded format of described audio-frequency information, then described customizing messages can be encoded according to described audio coding formats by described electronic equipment.
Such as, what carry out described audio-frequency information is 8 codings, 22K samples, then the bit stream of described customizing messages can be expressed as B [1..n], described check bit can be added for described customizing messages, such as, after adding described check bit, described bit stream can be expressed as B [1..n, n+1..m].
In order to can fast decoding when decoding, can also add marking head (i.e. described header) and/or length data for described customizing messages, such as described length data be expressed as p position.
Such as, the weights of the lowest order of described audio file are lower than the weights of the most significant digit of described audio file, the minimum k position of coding then can be utilized to preserve described customizing messages, the bit stream of described customizing messages is the equal of just the voice data of (n+m+p)/k/22K second, so just obtains described mixed file.Wherein, described customizing messages is the equal of low noise data.
When encoding to described mixed file, can the bits per inch in described k bit data according to expanding to 8, most significant digit is 0, encodes to described mixed file according to described audio coding formats.Just can obtain hybrid coding file after coding, in described hybrid coding file, described customizing messages and described audio file are all rendered as the form of voice data.
Refer to Fig. 3, the embodiment of the present invention provides a kind of information decoding method, and described method can be applied to electronic equipment, and the main flow of described method is as follows:
Step 301: obtain a hybrid coding file.
Described electronic equipment can obtain described hybrid coding file.Described hybrid coding file can be the file stored in described electronic equipment, or also can be the file that described electronic equipment obtains from other electronic equipments, etc., the present invention is not restricted this.
Step 302: when decoding to described hybrid coding file, judges whether have the customizing messages including specific identifier in described hybrid coding file.
After the described hybrid coding file of acquisition, described electronic equipment can be decoded to described hybrid coding file.
When decoding, first described electronic equipment can judge whether include described specific identifier in described hybrid coding file.According to the method in embodiment one, time in the bit stream bit stream of described customizing messages being added to described audio file, be for the bit stream of described customizing messages with the addition of described specific identifier.
If described electronic equipment judges to determine that the bit had in described hybrid coding file has described specific identifier, then described electronic equipment can be determined to include described customizing messages in described hybrid coding file.
Preferably, if the bit stream of described first customizing messages includes header, then described electronic equipment can judge whether include described specific identifier in described header.
Step 303: when there is described customizing messages in described hybrid coding file, according to particular solution coding mode, described customizing messages is decoded, and according to audio decoder mode, the remaining information in described hybrid coding file is decoded; Wherein, described particular solution coding mode is different from described audio decoder mode.
If described electronic equipment judges to determine to include described customizing messages in described hybrid coding file, then described electronic equipment can be decoded to described customizing messages according to the described particular solution coding mode corresponding with described customizing messages.According to the difference of described customizing messages, the described particular solution coding mode corresponding from described customizing messages also can be different, such as, described customizing messages can be Word message and/or pictorial information, then corresponding from described customizing messages described particular solution coding mode is naturally also different, the present invention is not restricted this, and those skilled in the art know to select which type of decoding process to the information of what type naturally.
And, in described hybrid coding file, except described customizing messages, remaining should be described audio file, then described electronic equipment can also be decoded to described audio file according to the described audio decoder mode corresponding with described audio file, obtains described audio file.
In the embodiment of the present invention, when decoding to described customizing messages and described audio file, order can be any.Preferably, described customizing messages of can first decoding, described audio file of decoding afterwards.
Preferably, if include described check bit in the bit stream of described customizing messages, if namely include described check bit in described customizing messages, then, according to particular solution coding mode, described customizing messages is decoded, can be specifically: according to described check bit, described customizing messages is verified; When verify by time, according to described particular solution coding mode, described customizing messages is decoded.
Preferably, if include described check bit in the bit stream of described customizing messages, then when decoding to described customizing messages, can also first verify it, verify by after decode again, the security of information can be guaranteed like this, avoid information to be tampered.
Because described customizing messages and described audio file are dissimilar information, naturally described particular solution coding mode and described audio decoder mode i.e. different decoding processes.
Such as, described customizing messages comprises Word message, after then described hybrid coding file being decoded, just can obtain described audio file and described Word message, described Word message may be the record to some scenes during described audio file of acquisition, then user is after the described audio file of acquisition and described Word message, can know or remember scene when obtaining described audio file at once.
About embodiment one and embodiment two, the example under a concrete scene:
When graduating, user recorded described audio file by described audio input unit, and the coded format of described audio file is PCM form.
After described audio file is recorded, user wants to record scene when recording described audio file, such as user wants to record sight at that time and mood, then user have input passage information, then the described Word message of user's input just can as described customizing messages.The coded format of described Word message is Unicode coded format.
After the described customizing messages of acquisition, because the coded format of described customizing messages is different from the coded format of described audio-frequency information, then described customizing messages can be encoded according to described audio coding formats by described electronic equipment.
Such as, what carry out described audio-frequency information is 8 codings, 22K samples, then the bit stream of described customizing messages can be expressed as B [1..n], described check bit can be added for described customizing messages, such as, after adding described check bit, described bit stream can be expressed as B [1..n, n+1..m].
In order to can fast decoding when decoding, can also add marking head (i.e. described header) and/or length data for described customizing messages, such as described length data be expressed as p position.
Such as, the weights of the lowest order of described audio file are lower than the weights of the most significant digit of described audio file, the minimum k position of coding then can be utilized to preserve described customizing messages, the bit stream of described customizing messages is the equal of just the voice data of (n+m+p)/k/22K second, so just obtains described mixed file.Wherein, described customizing messages is the equal of low noise data.
When encoding to described mixed file, can the bits per inch in described k bit data according to expanding to 8, most significant digit is 0, encodes to described mixed file according to described audio coding formats.Just can obtain hybrid coding file after coding, in described hybrid coding file, described customizing messages and described audio file are all rendered as the form of voice data.
After graduation, user wants to listen to the audio frequency recorded when graduating, then user can open described hybrid coding file, is also just equivalent to described electronic equipment and obtains described hybrid coding file.
When decoding to described hybrid coding file, judge, in described hybrid coding file, whether there is the customizing messages including specific identifier.
After the described hybrid coding file of acquisition, described electronic equipment can be decoded to described hybrid coding file.
When decoding, first described electronic equipment can judge whether include described specific identifier in described hybrid coding file.In the present embodiment, because include described header in the bit stream of described customizing messages, then described electronic equipment can judge whether include described specific identifier in described header.
If described electronic equipment judges to determine that the bit had in described hybrid coding file has described specific identifier, then described electronic equipment can be determined to include described customizing messages in described hybrid coding file.
Judge to determine, in described hybrid coding file, there is described customizing messages, then described electronic equipment can be decoded to described customizing messages according to described particular solution coding mode, and decodes to the remaining information in described hybrid coding file according to described audio decoder mode; Wherein, described particular solution coding mode is different from described audio decoder mode.
If described electronic equipment judges to determine to include described customizing messages in described hybrid coding file, then described electronic equipment can be decoded to described customizing messages according to the described particular solution coding mode corresponding with described customizing messages.According to the difference of described customizing messages, the described particular solution coding mode corresponding from described customizing messages also can be different, such as, described customizing messages can be described Word message, then corresponding from described customizing messages described particular solution coding mode is naturally also different, the present invention is not restricted this, and those skilled in the art know to select which type of decoding process to the information of what type naturally.
And, in described hybrid coding file, except described customizing messages, remaining should be described audio file, then described electronic equipment can also be decoded to described audio file according to the described audio decoder mode corresponding with described audio file, obtains described audio file.
Because described customizing messages and described audio file are dissimilar information, naturally described particular solution coding mode and described audio decoder mode i.e. different decoding processes.
Such as, described customizing messages comprises Word message, after then described hybrid coding file being decoded, just can obtain described audio file and described Word message, described Word message may be the record to some scenes during described audio file of acquisition, then user is after the described audio file of acquisition and described Word message, can know or remember scene during graduation at once.
Refer to Fig. 4, based on same inventive concept, the embodiment of the present invention provides a kind of electronic equipment, and described electronic equipment can comprise the first acquisition module 401, second acquisition module 402 and the 3rd acquisition module 403.
First acquisition module 401 may be used for acquisition customizing messages and coded format is the audio file of audio coding formats, and the coded format that described customizing messages is corresponding is specific coding form, and described specific coding form is different from described audio coding formats.
Second acquisition module 402 may be used for described customizing messages to be added in described audio file, obtains a mixed file; Wherein, described customizing messages has specific identifier, for identifying described customizing messages when decoding.
3rd acquisition module 403 may be used for described mixed file to encode with described audio coding formats, obtains hybrid coding file.
Preferably, in the embodiment of the present invention, the first acquisition module 401 specifically may be used for: obtain described audio file by record type.
Preferably, in the embodiment of the present invention, the second acquisition module 402 specifically may be used for: for described customizing messages adds check bit, be added in described audio file by the described customizing messages adding described check bit, obtain described mixed file.
Preferably, in the embodiment of the present invention, the second acquisition module 402 specifically may be used for: for described customizing messages adds header, is added in described audio file by the described customizing messages after adding header, obtains described mixed file.
Refer to Fig. 5, based on same inventive concept, the embodiment of the present invention provides a kind of electronic equipment, and described electronic equipment can comprise the 4th acquisition module 501, judge module 502 and decoder module 503.Preferably, the described electronic equipment in embodiment five and the described electronic equipment in embodiment one to embodiment four can be same electronic equipments.
4th acquisition module 501 may be used for acquisition one hybrid coding file.
Judge module 502 may be used for when decoding to described hybrid coding file, judges whether have the customizing messages including specific identifier in described hybrid coding file.
Decoder module 503 may be used for, when having described customizing messages in described hybrid coding file, decoding to described customizing messages according to particular solution coding mode, and decodes to the remaining information in described hybrid coding file according to audio decoder mode; Wherein, described particular solution coding mode is different from described audio decoder mode.
Preferably, in the embodiment of the present invention, described customizing messages at least comprises Word message and/or pictorial information.
Preferably, in the embodiment of the present invention, when including check bit in described customizing messages, decoder module 503 specifically may be used for: verify described customizing messages according to described check bit; When verify by time, according to described particular solution coding mode, described customizing messages is decoded.
Information coding method in the embodiment of the present invention can be applied to electronic equipment, described method can comprise: acquisition customizing messages and coded format are the audio file of audio coding formats, the coded format that described customizing messages is corresponding is specific coding form, and described specific coding form is different from described audio coding formats; Described customizing messages is added in described audio file, obtains a mixed file; Wherein, described customizing messages has specific identifier, for identifying described customizing messages when decoding; Described mixed file is encoded with described audio coding formats, obtains hybrid coding file.
In the embodiment of the present invention, described customizing messages and described audio file are dissimilar information, naturally, the coded format of described customizing messages is different from the coded format of described audio file, then the bit stream of described customizing messages can be added in the bit stream of described audio file, obtain described mixed file, more described mixed file unification is encoded according to described audio coding formats, thus, polytype information can be preserved in recording file.Further, described audio coding formats can be the general format of general audio file, and without the need to User Defined form, can not there is compatibility issue, the method namely in the embodiment of the present invention can realize general, and range of application is comparatively extensive.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described module or unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that the technical scheme of the application contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each embodiment of the application.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
Specifically, the computer program instructions that described information coding method in the embodiment of the present application is corresponding can be stored in CD, hard disk, on the storage mediums such as USB flash disk, when the computer program instructions corresponding with described information coding method in storage medium is read by an electronic equipment or be performed, comprise the steps:
A kind of information coding method, is applied to electronic equipment, said method comprising the steps of:
Acquisition customizing messages and coded format are the audio file of audio coding formats, and the coded format that described customizing messages is corresponding is specific coding form, and described specific coding form is different from described audio coding formats;
Described customizing messages is added in described audio file, obtains a mixed file; Wherein, described customizing messages has specific identifier, for identifying described customizing messages when decoding;
Described mixed file is encoded with described audio coding formats, obtains hybrid coding file.
Preferably, obtaining coded format is the audio file of audio coding formats, comprising: obtain described audio file by record type.
Preferably, described customizing messages is added in described audio file, obtains a mixed file, comprising: for described customizing messages adds check bit, the described customizing messages adding described check bit is added in described audio file, obtains described mixed file.
Preferably, described customizing messages is added in described audio file, obtains a mixed file, comprising: for described customizing messages adds header, the described customizing messages after adding header is added in described audio file, obtains described mixed file.
Specifically, the computer program instructions that described information decoding method in the embodiment of the present application is corresponding can be stored in CD, hard disk, on the storage mediums such as USB flash disk, when the computer program instructions corresponding with described information decoding method in storage medium is read by an electronic equipment or be performed, comprise the steps:
A kind of information decoding method, comprises the following steps:
Obtain a hybrid coding file;
When decoding to described hybrid coding file, judge, in described hybrid coding file, whether there is the customizing messages including specific identifier;
When there is described customizing messages in described hybrid coding file, according to particular solution coding mode, described customizing messages is decoded, and according to audio decoder mode, the remaining information in described hybrid coding file is decoded; Wherein, described particular solution coding mode is different from described audio decoder mode.
Preferably, described customizing messages at least comprises Word message and/or pictorial information.
Preferably, when including check bit in described customizing messages, according to particular solution coding mode, described customizing messages being decoded, comprising:
According to described check bit, described customizing messages is verified;
When verify by time, according to described particular solution coding mode, described customizing messages is decoded.

Claims (14)

1. an information coding method, is applied to electronic equipment, said method comprising the steps of:
Acquisition customizing messages and coded format are the audio file of audio coding formats, and the coded format that described customizing messages is corresponding is specific coding form, and described specific coding form is different from described audio coding formats;
Described customizing messages is added in described audio file, obtains a mixed file; Wherein, described customizing messages has specific identifier, for identifying described customizing messages when decoding;
Described mixed file is encoded with described audio coding formats, obtains hybrid coding file.
2. the method for claim 1, is characterized in that, obtaining coded format is the audio file of audio coding formats, comprising: obtain described audio file by record type.
3. method as claimed in claim 1 or 2, it is characterized in that, described customizing messages is added in described audio file, obtain a mixed file, comprise: for described customizing messages adds check bit, the described customizing messages adding described check bit is added in described audio file, obtains described mixed file.
4. method as claimed in claim 1 or 2, it is characterized in that, described customizing messages is added in described audio file, obtain a mixed file, comprise: for described customizing messages adds header, described customizing messages after adding header is added in described audio file, obtains described mixed file.
5. an information decoding method, comprises the following steps:
Obtain a hybrid coding file;
When decoding to described hybrid coding file, judge, in described hybrid coding file, whether there is the customizing messages including specific identifier;
When there is described customizing messages in described hybrid coding file, according to particular solution coding mode, described customizing messages is decoded, and according to audio decoder mode, the remaining information in described hybrid coding file is decoded; Wherein, described particular solution coding mode is different from described audio decoder mode.
6. method as claimed in claim 5, it is characterized in that, described customizing messages at least comprises text message and/or pictorial information.
7. method as claimed in claim 5, is characterized in that, when including check bit in described customizing messages, decoding, comprising according to particular solution coding mode to described customizing messages:
According to described check bit, described customizing messages is verified;
When verify by time, according to described particular solution coding mode, described customizing messages is decoded.
8. an electronic equipment, comprising:
First acquisition module, for obtaining customizing messages and coded format is the audio file of audio coding formats, the coded format that described customizing messages is corresponding is specific coding form, and described specific coding form is different from described audio coding formats;
Second acquisition module, for being added in described audio file by described customizing messages, obtains a mixed file; Wherein, described customizing messages has specific identifier, for identifying described customizing messages when decoding;
3rd acquisition module, for being encoded with described audio coding formats by described mixed file, obtains hybrid coding file.
9. electronic equipment as claimed in claim 8, is characterized in that, described first acquisition module specifically for: obtain described audio file by record type.
10. electronic equipment as claimed in claim 8 or 9, it is characterized in that, described second acquisition module specifically for: be that described customizing messages adds check bit, the described customizing messages adding described check bit be added in described audio file, obtain described mixed file.
11. electronic equipments as claimed in claim 8 or 9, is characterized in that, described second acquisition module specifically for: be that described customizing messages adds header, the described customizing messages after adding header be added in described audio file, obtain described mixed file.
12. 1 kinds of electronic equipments, comprising:
4th acquisition module, for obtaining a hybrid coding file;
Judge module, for when decoding to described hybrid coding file, judges whether have the customizing messages including specific identifier in described hybrid coding file;
Decoder module, for when having described customizing messages in described hybrid coding file, decodes to described customizing messages according to particular solution coding mode, and decodes to the remaining information in described hybrid coding file according to audio decoder mode; Wherein, described particular solution coding mode is different from described audio decoder mode.
13. electronic equipments as claimed in claim 12, it is characterized in that, described customizing messages at least comprises Word message and/or pictorial information.
14. electronic equipments as described in claim 12 or 13, is characterized in that, when including check bit in described customizing messages, described decoder module specifically for: according to described check bit, described customizing messages is verified; When verify by time, according to described particular solution coding mode, described customizing messages is decoded.
CN201310638431.6A 2013-12-02 2013-12-02 Information encoding and decoding methods and electronic equipment Pending CN104681033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310638431.6A CN104681033A (en) 2013-12-02 2013-12-02 Information encoding and decoding methods and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310638431.6A CN104681033A (en) 2013-12-02 2013-12-02 Information encoding and decoding methods and electronic equipment

Publications (1)

Publication Number Publication Date
CN104681033A true CN104681033A (en) 2015-06-03

Family

ID=53315984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310638431.6A Pending CN104681033A (en) 2013-12-02 2013-12-02 Information encoding and decoding methods and electronic equipment

Country Status (1)

Country Link
CN (1) CN104681033A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027488A (en) * 2016-04-29 2016-10-12 努比亚技术有限公司 Device and method for obtaining data
CN107031540A (en) * 2017-04-24 2017-08-11 大陆汽车投资(上海)有限公司 Sound processing system and audio-frequency processing method suitable for automobile
CN107733556A (en) * 2016-08-12 2018-02-23 北京小米移动软件有限公司 Message checking method and device
CN113193922A (en) * 2021-04-29 2021-07-30 高新兴科技集团股份有限公司 Data transmission method based on audio as carrier, data extraction method and device and computing equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1152843A (en) * 1995-09-19 1997-06-25 新日本制铁株式会社 Image/audio coding and decoding device
CN1205154A (en) * 1996-08-07 1999-01-13 松下电器产业株式会社 Picture and sound decoding device picture and sound encoding device and information transmission system
CN1271938A (en) * 1999-04-24 2000-11-01 Lg电子株式会社 Numerical data broadcastor and data processing method and data storage medium
CN1379952A (en) * 1999-09-03 2002-11-13 托马斯·W·米耶 Coding of digital information
US20060106597A1 (en) * 2002-09-24 2006-05-18 Yaakov Stein System and method for low bit-rate compression of combined speech and music
CN101110889A (en) * 2006-07-19 2008-01-23 深圳市朗科科技有限公司 Method and device for automatically recording document forming information in output document
CN103024601A (en) * 2011-09-23 2013-04-03 吕品 Audio coding method and device, information collection method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1152843A (en) * 1995-09-19 1997-06-25 新日本制铁株式会社 Image/audio coding and decoding device
CN1205154A (en) * 1996-08-07 1999-01-13 松下电器产业株式会社 Picture and sound decoding device picture and sound encoding device and information transmission system
CN1271938A (en) * 1999-04-24 2000-11-01 Lg电子株式会社 Numerical data broadcastor and data processing method and data storage medium
CN1379952A (en) * 1999-09-03 2002-11-13 托马斯·W·米耶 Coding of digital information
US20060106597A1 (en) * 2002-09-24 2006-05-18 Yaakov Stein System and method for low bit-rate compression of combined speech and music
CN101110889A (en) * 2006-07-19 2008-01-23 深圳市朗科科技有限公司 Method and device for automatically recording document forming information in output document
CN103024601A (en) * 2011-09-23 2013-04-03 吕品 Audio coding method and device, information collection method and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027488A (en) * 2016-04-29 2016-10-12 努比亚技术有限公司 Device and method for obtaining data
CN107733556A (en) * 2016-08-12 2018-02-23 北京小米移动软件有限公司 Message checking method and device
CN107733556B (en) * 2016-08-12 2021-09-07 北京小米移动软件有限公司 Message checking method and device
CN107031540A (en) * 2017-04-24 2017-08-11 大陆汽车投资(上海)有限公司 Sound processing system and audio-frequency processing method suitable for automobile
CN107031540B (en) * 2017-04-24 2020-06-26 大陆投资(中国)有限公司 Sound processing system and audio processing method suitable for automobile
CN113193922A (en) * 2021-04-29 2021-07-30 高新兴科技集团股份有限公司 Data transmission method based on audio as carrier, data extraction method and device and computing equipment

Similar Documents

Publication Publication Date Title
US20080119953A1 (en) Device and System for Utilizing an Information Unit to Present Content and Metadata on a Device
US20080141180A1 (en) Apparatus and Method for Utilizing an Information Unit to Provide Navigation Features on a Device
TW200508857A (en) Methods and systems for recording user actions in computer programs
CN104681033A (en) Information encoding and decoding methods and electronic equipment
CN105677512B (en) Data processing method and device and electronic equipment
CN101149812A (en) Interactive information service method based on paper writing, service system and interactive reading matter
CN104392712A (en) Method and device for realizing karaoke function
KR20170027260A (en) communication method and electronic devices thereof
CN105556598A (en) Selective watermarking of channels of multichannel audio
CN103646048A (en) Method and device for achieving multimedia pictures
CN104053131A (en) Text communication information processing method and related equipment
CN105609122A (en) Control method and device of terminal device
CN103714724A (en) Information processing method and electronic device
CN112533185B (en) Sound network distribution method and device, computer equipment and storage medium
CN104378807A (en) Method for rapidly establishing connection and electronic devices
CN110838298A (en) Method, device and equipment for processing multi-channel audio data and storage medium
CN106788993A (en) A kind of encryption communication method, device and electronic equipment
CN105654973A (en) Audio file processing method and system
CN102623034A (en) Method and device for realizing mutual positioning and character fast recording of video data and text data
CN103139049B (en) Information interacting method
KR101868795B1 (en) System for providing sound effect
KR101403719B1 (en) System and method for audio available of file conversion
CN104536570A (en) Information processing method and device of intelligent watch
CN104123112A (en) Image processing method and electronic equipment
CN102682772A (en) Data sending method, data receiving method, data sending equipment and data receiving equipment

Legal Events

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

Application publication date: 20150603

RJ01 Rejection of invention patent application after publication