Summary of the invention
In view of this, the invention provides a kind of audio frequency transmission method and system, to solve the circumscribed problem in audio transmission life period.
For achieving the above object, the embodiment of the present invention provides following technical scheme:
A kind of audio frequency transmission method, comprising:
The first mobile terminal is determined the mark of the second mobile terminal, sets up the corresponding relation of audio frequency to be sent and described mark;
The first mobile terminal gathers audio frequency, generates original audio stream data, described original audio stream data is converted to the voice data of default form;
The voice data of default form described in the first mobile terminal buffer memory, transfers the voice data of presetting form, uploads voice data and the described mark of transferred default form to audio server;
Audio server receives voice data and the described mark of the default form that described the first mobile terminal uploads, according to described mark, in the time of described the second connection of mobile terminal into network, send voice data to described the second mobile terminal and receive prompting message, to point out described the second mobile terminal to receive the voice data that described the first mobile terminal is uploaded.
Wherein, described in described the first mobile terminal buffer memory, the voice data of default form comprises:
The voice data of described default form is buffered into the default address area of memory space.
Wherein, described in transfer the voice data of default form, voice data from transferred default form to audio server that upload comprises:
In the time that the size of data of the voice data of the default form of described the first mobile terminal buffer memory reaches preset value, the voice data of the described default form that reaches preset data size is backed up;
Transfer the voice data of the default form that reaches preset data size of backup, by that set up in advance and interface channel described audio server, successively the voice data of the default form that reaches preset data size of backup is uploaded to described audio server, and after the voice data of the default form that reaches preset data size of described backup is uploaded successfully, delete the voice data of the default form that reaches preset data size of corresponding buffer memory, until the memory space of described the first mobile terminal no longer exists the voice data of the default form of buffer memory.
Wherein, described in transfer the voice data of default form, voice data from transferred default form to audio server that upload comprises:
In the time that the audio frequency duration corresponding to voice data of the default form of described the first mobile terminal buffer memory reaches preset value, the voice data of the described default form that reaches default audio frequency duration is backed up;
Transfer the voice data of the default form that reaches default audio frequency duration of backup, by that set up in advance and interface channel described audio server, successively the voice data of the default form that reaches default audio frequency duration of backup is uploaded to described audio server, and after the voice data that reaches the default form of presetting audio frequency duration of described backup is uploaded successfully, delete the voice data of the default form that reaches default audio frequency duration of corresponding buffer memory, until the memory space of described the first mobile terminal no longer exists the voice data of the default form of buffer memory.
Wherein, described in transfer the voice data of default form, voice data from transferred default form to audio server that upload comprises:
At described the first mobile terminal buffer memory after the voice data of complete default form, set up the interface channel with described audio server, transfer the voice data of described complete default form, by the interface channel of described foundation, the voice data of described complete default form is uploaded to described audio server, and the voice data of described complete default form is corresponding with gathered complete audio frequency;
Or, at described the first mobile terminal buffer memory after the voice data of complete default form, transfer the voice data of described complete default form, by that set up in advance and interface channel described audio server, the voice data of described complete default form is uploaded to described audio server, and the voice data of described complete default form is corresponding with gathered complete audio frequency.
The embodiment of the present invention also provides a kind of audio transmission system, comprising:
The first mobile terminal, for determining the mark of the second mobile terminal, set up the corresponding relation of audio frequency to be sent and described mark, gather audio frequency, generate original audio stream data, described original audio stream data is converted to the voice data of default form, the voice data of default form described in buffer memory, uploads voice data and the described mark of described default form to audio server;
Audio server, for receiving voice data and the described mark of the default form that described the first mobile terminal uploads, according to described mark, in the time of described the second connection of mobile terminal into network, send voice data to described the second mobile terminal and receive prompting message, to point out described the second mobile terminal to receive the voice data that described the first mobile terminal is uploaded.
Wherein, described the first mobile terminal comprises: the first corresponding relation building module, the first audio recording module, the first coding module, the first memory module, the first control module and first communication module;
Described the first corresponding relation building module, for determining the mark of the second mobile terminal, sets up the corresponding relation of audio frequency to be sent and described mark;
Described the first audio recording module, for gathering audio frequency, generates original audio stream data;
Described the first coding module, for converting described original audio stream data to the voice data of default form;
Described the first memory module, for the voice data of default form described in the voice data at default form described in the buffer memory of default address area or random cache;
Described the first control module, for in the time that the size of data of the voice data of the default form of described the first memory module buffer memory reaches preset value, the voice data of the described default form that reaches preset data size is backed up, transfer the voice data of the default form that reaches preset data size of backup, give described first communication module by the audio data transmission of the default form that reaches preset data size of described backup successively, so that the voice data of the default form that reaches preset data size of backup is uploaded to described audio server by described first communication module, and after the voice data of the default form that reaches preset data size of described backup is uploaded successfully, delete the voice data of described the first default form of reaching preset data size corresponding with voice data that upload memory module buffer memory, until no longer there is the voice data of the default form of buffer memory in described the first memory module,
Described first communication module, for by that set up in advance and interface channel described audio server, is uploaded to described audio server by the voice data of the default form that reaches preset data size of backup successively.
Wherein, described the first mobile terminal comprises: the second corresponding relation building module, the second audio recording module, the second coding module, the second memory module, the second control module and second communication module;
Described the second corresponding relation building module, for determining the mark of the second mobile terminal, sets up the corresponding relation of audio frequency to be sent and described mark;
Described the second audio recording module, for gathering audio frequency, generates original audio stream data;
Described the second coding module, for converting described original audio stream data to the voice data of default form;
Described the second memory module, for the voice data of default form described in the voice data at default form described in the buffer memory of default address area or random cache;
Described the second control module, for in the time that the audio frequency duration corresponding to voice data of the default form of described the second memory module buffer memory reaches preset value, the voice data of the described default form that reaches default audio frequency duration is backed up, transfer the voice data of the default form that reaches default audio frequency duration of backup, give described second communication module by the audio data transmission of the default form that reaches default audio frequency duration of backup successively, so that the voice data of the default form that reaches default audio frequency duration of backup is uploaded to described audio server by described second communication module, and after the voice data that reaches the default form of presetting audio frequency duration of described backup is uploaded successfully, delete the voice data of described the second default form of reaching default audio frequency duration corresponding with voice data that upload memory module buffer memory, until no longer there is the voice data of the default form of buffer memory in described the second memory module,
Described second communication module, for by that set up in advance and interface channel described audio server, is uploaded to described audio server by the voice data of the default form that reaches default audio frequency duration of backup successively.
Wherein, described the first mobile terminal comprises: the 3rd corresponding relation building module, and the 3rd audio recording module, the 3rd coding module, the 3rd memory module, the 3rd control module, interface channel is set up module and third communication module;
Described the 3rd corresponding relation building module, for determining the mark of the second mobile terminal, sets up the corresponding relation of audio frequency to be sent and described mark;
Described the 3rd audio recording module, for gathering audio frequency, generates original audio stream data;
Described the 3rd coding module, for converting described original audio stream data to the voice data of default form;
Described the 3rd memory module, for the voice data of default form described in the voice data at default form described in the buffer memory of default address area or random cache;
Described the 3rd control module, be used at described the 3rd memory module buffer memory after the voice data of complete default form, transfer the voice data of described complete default form, give described third communication module by the audio data transmission of described complete default form, so that the voice data of described complete default form is uploaded to described audio server by described third communication module, the voice data of described complete default form is corresponding with the complete audio frequency that described the 3rd audio recording module gathers;
Described interface channel is set up module, at described the 3rd memory module buffer memory after the voice data of complete default form, set up the interface channel with described audio server;
Described third communication module, for setting up by described interface channel the interface channel that module is set up, is uploaded to described audio server by the voice data of described complete default form.
Wherein, described the first mobile terminal comprises: the 4th corresponding relation building module, the 4th audio recording module, the 4th coding module, the 4th memory module, the 4th control module, and the 4th communication module;
Described the 4th corresponding relation building module, for determining the mark of the second mobile terminal, sets up the corresponding relation of audio frequency to be sent and described mark;
Described the 4th audio recording module, for gathering audio frequency, generates original audio stream data;
Described the 4th coding module, for converting described original audio stream data to the voice data of default form;
Described the 4th memory module, for the voice data of default form described in the voice data at default form described in the buffer memory of default address area or random cache;
Described the 4th control module, be used at described the 4th memory module buffer memory after the voice data of complete default form, transfer the voice data of described complete default form, give described the 4th communication module by the audio data transmission of described complete default form, so that the voice data of described complete default form is uploaded to described audio server by described the 4th communication module, the voice data of described complete default form is corresponding with the complete audio frequency that described the 4th audio recording module gathers;
Described the 4th communication module, for by that set up in advance and interface channel described audio server, is uploaded to described audio server by the voice data of described complete default form.
Based on technique scheme, the audio frequency transmission method that the embodiment of the present invention provides, the original audio stream data that the first mobile terminal generates collection audio frequency converts the voice data of default form to, the voice data of default form described in buffer memory, after the voice data of default form described in buffer memory, transfer the voice data of default form, upload the mark of voice data and second mobile terminal of transferred default form to audio server; Audio server is receiving after the voice data and described mark of the default form that the first mobile terminal uploads, will be in the time of the second connection of mobile terminal into network, send voice data to described the second mobile terminal and receive prompting message, to point out described the second mobile terminal to receive the voice data that described the first mobile terminal is uploaded.The audio frequency transmission method providing by the embodiment of the present invention, if the second mobile terminal sends in voice data just in time access network at the first mobile terminal, audio server receives prompting the second mobile terminal the second mobile terminal and sends to the voice data of audio server so, realizes the reception of the voice data that the second mobile terminal sends the first mobile terminal; If the second mobile terminal does not have access network in the time that the first mobile terminal sends voice data, audio server will be in the time of the second connection of mobile terminal into network so, the voice data of pointing out the first mobile terminal that the second mobile terminal audio reception server stores to send, realizes the reception of the voice data that the second mobile terminal sends the first mobile terminal; The audio frequency transmission method that the embodiment of the present invention provides is when the first mobile terminal sends audio frequency, and do not require that the second mobile terminal must be connected into network simultaneously, the second mobile terminal sends any moment access network after audio frequency at the first mobile terminal, all can receive the voice data that the first mobile terminal sends by audio server, the audio frequency transmission method that the embodiment of the present invention provides has solved the circumscribed problem in the audio transmission life period of prior art, has realized the audio data transmission that does not rely on room and time.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The flow chart of the audio frequency transmission method that Fig. 1 provides for the embodiment of the present invention, with reference to Fig. 1, the method can comprise:
Step S100, the first mobile terminal are determined the mark of the second mobile terminal, set up the corresponding relation of audio frequency to be sent and described mark;
In the embodiment of the present invention, the first mobile terminal is audio frequency transmit leg, and the second mobile terminal is audio interface debit, for the embodiment of the present invention, any mobile terminal will become the first mobile terminal in the time sending audio frequency, and any mobile terminal of wanting audio reception will become the second mobile terminal.
The mark of the second mobile terminal can be IMSI(international mobile subscriber identity) etc. the physical label of mobile terminal, if the accredited members that the first mobile terminal and the second mobile terminal are same voice applications, as the member of a certain Video chat application, the mark of the second mobile terminal also can be the second registration ID moving, user name etc.
The embodiment of the present invention, before the first mobile terminal carries out audio recording, need to determine the transmission object of the audio frequency of recording, therefore before recording audio, should first determine the mark of the second mobile terminal, concrete, can carry out the selected of the second mobile terminal by the first mobile terminal contact person list or application buddy list, the first mobile terminal extracts the mark of the second mobile terminal of storage automatically, set up the corresponding relation of institute's recording audio (being audio frequency to be sent) and the second mobile terminal identification, so that the second mobile terminal follow-up carry out audio frequency send time, can determine audio interface debit.
Step S200, the first mobile terminal gather audio frequency, generate original audio stream data, described original audio stream data are converted to the voice data of default form;
The voice data of default form described in step S300, the first mobile terminal buffer memory, transfers the voice data of presetting form, uploads voice data and the described mark of transferred default form to audio server;
In the embodiment of the present invention, the first mobile terminal can limit recording audio, and the voice data of recording is uploaded on limit; Also can, after voice data all records, upload complete voice data; For limit recording audio, the situation of the voice data of recording is uploaded on limit, needs the first mobile terminal to login in advance audio server, just can, in the time of recording audio, carry out uploading of voice data by login is that set up in advance with interface channel audio server; After all recording for voice data, upload the situation of complete voice data, the first mobile terminal can be logined audio server in advance, carry out uploading of voice data by login is that set up in advance with interface channel audio server, also can be after voice data have all been recorded, carry out the login of audio server, the interface channel of foundation and audio server, realizes uploading of voice data.
Optionally, the first mobile terminal can be the voice data at the default form of the default address area of memory space buffer memory, thereby can preset at the storage area of specifying the searching of voice data of form, realizes the obtaining of voice data of presetting easily form; Described in obvious the first mobile terminal buffer memory, the voice data of default form can be also the appointment of not carrying out storage area, but in memory space, preset the random cache of the voice data of form, preset the situation of the voice data of form for random cache, the form that can entirely search by the first mobile terminal stores space, realizes obtaining of voice data to default form.
Step S400, audio server receive voice data and the described mark of the default form that described the first mobile terminal uploads, according to described mark, in the time of described the second connection of mobile terminal into network, send voice data to described the second mobile terminal and receive prompting message, to point out described the second mobile terminal to receive the voice data that described the first mobile terminal is uploaded.
If audio server is in the time receiving the voice data of the default form that the first mobile terminal uploads and described mark, the second mobile terminal is in network connection state, audio server can be in receiving the voice data of default form, send voice data to the second mobile terminal and receive prompting message, to point out described the second mobile terminal to receive the voice data that described the first mobile terminal is uploaded, thereby can be in the time that the first mobile terminal request receives the voice data that the first mobile terminal uploads, the voice data of the default form that audio server is uploaded the first mobile terminal is transmitted to the second mobile terminal.
If audio server is in the time receiving the voice data of the default form that the first mobile terminal uploads and described mark, the second mobile terminal is not in network connection state, audio server can be stored received voice data, until the second mobile terminal is in the time of network connection state, send voice data to the second mobile terminal and receive prompting message, to point out described the second mobile terminal to receive the voice data that described the first mobile terminal is uploaded, and in the time that the first mobile terminal request receives the voice data that the first mobile terminal uploads, the voice data of the default form that audio server is uploaded the first mobile terminal is transmitted to the second mobile terminal.
The audio frequency transmission method that the embodiment of the present invention provides, the original audio stream data that the first mobile terminal generates collection audio frequency converts the voice data of default form to, the voice data of default form described in buffer memory, after the voice data of default form described in buffer memory, transfer the voice data of default form, upload the mark of voice data and second mobile terminal of transferred default form to audio server; Audio server is receiving after the voice data and described mark of the default form that the first mobile terminal uploads, will be in the time of the second connection of mobile terminal into network, send voice data to described the second mobile terminal and receive prompting message, to point out described the second mobile terminal to receive the voice data that described the first mobile terminal is uploaded.The audio frequency transmission method providing by the embodiment of the present invention, if the second mobile terminal sends in voice data just in time access network at the first mobile terminal, audio server receives prompting the second mobile terminal the second mobile terminal and sends to the voice data of audio server so, realizes the reception of the voice data that the second mobile terminal sends the first mobile terminal; If the second mobile terminal does not have access network in the time that the first mobile terminal sends voice data, audio server will be in the time of the second connection of mobile terminal into network so, the voice data of pointing out the first mobile terminal that the second mobile terminal audio reception server stores to send, realizes the reception of the voice data that the second mobile terminal sends the first mobile terminal; The audio frequency transmission method that the embodiment of the present invention provides is when the first mobile terminal sends audio frequency, and do not require that the second mobile terminal must be connected into network simultaneously, the second mobile terminal sends any moment access network after audio frequency at the first mobile terminal, all can receive the voice data that the first mobile terminal sends by audio server, the audio frequency transmission method that the embodiment of the present invention provides has solved the circumscribed problem in the audio transmission life period of prior art, has realized the audio data transmission that does not rely on room and time.
Optionally, default form can be OGG(ogg Vorbis) audio file formats, this form can carry out audio format decoding on all mobile terminals, realizes the unification of audio file transmissions form.
Shown in already described Fig. 1 in step S300, the first mobile terminal is transferred the voice data of default form above, and voice data from transferred default form to audio server that upload can be: the first mobile terminal limit recording audio, and the voice data of recording is uploaded on limit; Also can be: the first mobile terminal, after voice data all records, is uploaded complete voice data.
For the first mobile terminal limit recording audio, the situation of the voice data of recording is uploaded on limit, can be in the time that the size of data of the voice data of the default form of the first mobile terminal buffer memory reaches preset value, upload size of data and reach the voice data of the default form of preset value.With reference to Fig. 2, Fig. 2 shows the first mobile terminal and uploads the method flow diagram of voice data, and the method can comprise:
Step S310, judge whether the size of data of the voice data of the default form of the memory space buffer memory of the first mobile terminal reaches preset value, if so, performs step S311, if not, S310 is until judged result is yes to execution step;
If the voice data of default form is to be buffered in the default address area of memory space of the first mobile terminal, can directly judge whether the size of data that store this default address area reaches preset value, this preset value can be set according to concrete condition, and the embodiment of the present invention is not limited.
Step S311, the voice data of the default form that reaches preset data size is backed up;
Step S312, transfer the voice data of the default form that reaches preset data size of backup, by that set up in advance and interface channel described audio server, the voice data of the default form that reaches preset data size of backup is uploaded to described audio server, and deletes the voice data of the default form corresponding with uploading voice data of the memory space buffer memory of the first mobile terminal;
Wherein, the voice data of the default form that reaches preset data size of backup is uploaded to described audio server and need to relies on that set up and interface channel audio server in advance, the first mobile terminal need to be logined audio server in advance, establishes a connection with audio server; Concrete, in the time that the voice data of the default form that reaches preset data size of backup is uploaded to described audio server, if the connection status of the first mobile terminal and audio server is in normal connection status, directly upload, if the first mobile terminal with the connection status of audio server in being connected abnormality, etc. to be connectedly carry out again uploading of voice data after normal, after voice data is uploaded successfully, delete the voice data of the default form corresponding with uploading voice data of buffer memory.
Step S313, judge whether the memory space of the first mobile terminal also exists the voice data of the default form of buffer memory, if so, performs step S310, if not, process ends.
It should be noted that, carry out uploading of voice data by method shown in Fig. 2, the size of data of the voice data of the default form of the last buffer memory of memory space of the first mobile terminal does not likely reach preset value, but the last part that now voice data of buffer memory is audio recording, therefore method shown in Fig. 2 can be in the time having determined that audio recording finishes, and uploads the voice data of this part.
Further can be optimized method shown in Fig. 2, when the size of data of the voice data of the default form of the first mobile terminal stores spatial cache does not reach preset value, and the size of data of the voice data of institute's buffer memory in Preset Time in the time of constant state, judge that audio recording finishes, upload this size of data and do not reach the voice data of preset value.
Method shown in Fig. 2, in the time that the size of data of the voice data of the default form of described the first mobile terminal buffer memory reaches preset value, backs up the voice data of the described default form that reaches preset data size; Transfer the voice data of the default form that reaches preset data size of backup, by that set up in advance and interface channel described audio server, successively the voice data of the default form that reaches preset data size of backup is uploaded to described audio server, and after the voice data of the default form that reaches preset data size of described backup is uploaded successfully, delete the voice data of the default form that reaches preset data size of corresponding buffer memory, until the memory space of described the first mobile terminal no longer exists the voice data of the default form of buffer memory.Can ceaselessly clear up by which the first mobile terminal the spatial cache making new advances, therefore not need to take the hardware store expense that mobile terminal is very high.
For the first mobile terminal limit recording audio, the situation of the voice data of recording is uploaded on limit, can also be in the time that the audio frequency duration corresponding to voice data of the default form of the first mobile terminal buffer memory reaches preset value, upload the voice data of the default form that once reaches default audio frequency duration.With reference to Fig. 3, Fig. 3 shows the first mobile terminal and uploads the other method flow chart of voice data, and the method can comprise:
Step S320, judge whether the audio frequency duration corresponding to voice data of the default form of the memory space buffer memory of the first mobile terminal reaches preset value, if so, performs step S321, if not, S320 is until judged result is yes to execution step;
If the voice data of default form is to be buffered in the default address area of memory space of the first mobile terminal, can directly judge whether audio frequency duration corresponding to voice data of storing this default address area reaches preset value, this preset value can be set according to concrete condition, and the embodiment of the present invention is not limited.
Step S321, the voice data of the default form that reaches default audio frequency duration is backed up;
Step S322, transfer the voice data of the default form of the default audio frequency duration of reaching of backup, by that set up in advance and interface channel described audio server, the voice data of the default form that reaches default audio frequency duration of backup is uploaded to described audio server, and deletes the voice data of the default form corresponding with uploading voice data of the memory space buffer memory of the first mobile terminal;
Wherein, the voice data of the default form of default reaching of backup audio frequency duration is uploaded to described audio server and need to relies on that set up and interface channel audio server in advance, need the first mobile terminal to login in advance audio server, establish a connection with audio server; Concrete, in the time that the voice data of the default form that reaches default audio frequency duration of backup is uploaded to described audio server, if the connection status of the first mobile terminal and audio server is in normal connection status, directly upload, if the first mobile terminal with the connection status of audio server in being connected abnormality, etc. to be connectedly carry out again uploading of voice data when normal, after voice data is uploaded successfully, delete the voice data of the default form corresponding with uploading voice data of buffer memory.
Step S323, judge whether the memory space of mobile terminal also exists the voice data of the default form of buffer memory, if so, performs step S320, if not, process ends.
It should be noted that, carry out uploading of voice data by method shown in Fig. 3, the audio frequency duration corresponding to voice data of the default form of the last buffer memory of memory space of the first mobile terminal likely do not reach preset value, but the last part that voice data is now audio recording, now can be in the time having determined that audio recording finishes, upload the voice data of this part.
Method shown in Fig. 3, in the time that audio frequency duration corresponding to the voice data of the default form of described the first mobile terminal buffer memory reaches preset value, backs up the voice data of the described default form that reaches default audio frequency duration; Transfer the voice data of the default form that reaches default audio frequency duration of backup, by that set up in advance and interface channel described audio server, successively the voice data of the default form that reaches default audio frequency duration of backup is uploaded to described audio server, and after the voice data that reaches the default form of presetting audio frequency duration of described backup is uploaded successfully, delete the voice data of the default form that reaches default audio frequency duration of corresponding buffer memory, until the memory space of described the first mobile terminal no longer exists the voice data of the default form of buffer memory.Can ceaselessly clear up by which the first mobile terminal the spatial cache making new advances, therefore not need to take the hardware store expense that handheld device is very high.
The first mobile terminal also can, after voice data all records, be uploaded complete voice data.To this, the first mobile terminal is before voice data is recorded, can login in advance audio server, set up the annexation with audio server, carry out uploading of voice data by this interface channel of setting up in advance, concrete, at described the first mobile terminal buffer memory after the voice data of complete default form, the first mobile terminal can be transferred the voice data of described complete default form, by that set up in advance and interface channel described audio server, the voice data of described complete default form is uploaded to described audio server, wherein, the voice data of described complete default form is corresponding with gathered complete audio frequency.The first mobile terminal also can be after voice data all records, login audio server, set up the annexation with audio server, carry out uploading of voice data by the interface channel of setting up, concrete, at described the first mobile terminal buffer memory after the voice data of complete default form, the first mobile terminal can be set up the interface channel with described audio server, transfer the voice data of described complete default form, by the interface channel of described foundation, the voice data of described complete default form is uploaded to described audio server.
The audio transmission system below embodiment of the present invention being provided is introduced, and the audio transmission system of below introducing is corresponding with above-described audio frequency transmission method, and both can cross-reference.
The structural representation of the audio transmission system that Fig. 4 provides for the embodiment of the present invention, with reference to Fig. 4, this system can comprise: the first mobile terminal 100, audio server 200 and the second mobile terminal 300;
Wherein, the first mobile terminal 100, for determining the mark of the second mobile terminal 300, set up the corresponding relation of audio frequency to be sent and described mark, gather audio frequency, generate original audio stream data, described original audio stream data is converted to the voice data of default form, described in buffer memory, preset the voice data of form, upload voice data and the described mark of described default form to audio server 200;
Audio server 200, for receiving voice data and the described mark of the default form that described the first mobile terminal 100 uploads, according to described mark, in the time of the second mobile terminal 300 access network, send voice data to the second mobile terminal 300 and receive prompting message, to point out the second mobile terminal 300 to receive the voice data that the first mobile terminal 100 is uploaded.
The structured flowchart of the first mobile terminal that Fig. 5 provides for the embodiment of the present invention, with reference to Fig. 5, the first mobile terminal can comprise:
The first corresponding relation building module 110, the first audio recording module 111, the first coding module 112, the first memory module 113, the first control modules 114 and first communication modules 115;
Wherein, the first corresponding relation building module 110, for determining the mark of the second mobile terminal 300, sets up the corresponding relation of audio frequency to be sent and described mark;
The first audio recording module 111, for gathering audio frequency, generates original audio stream data;
The first coding module 112, for converting described original audio stream data to the voice data of default form;
The first memory module 113, for the voice data of default form described in the voice data at default form described in the buffer memory of default address area or random cache;
The first control module 114, for in the time that the size of data of the voice data of the default form of the first memory module 113 buffer memorys reaches preset value, the voice data of the described default form that reaches preset data size is backed up, transfer the voice data of the default form that reaches preset data size of backup, successively by the audio data transmission of the default form that reaches preset data size of described backup to first communication module 115, so that the voice data of the default form that reaches preset data size of backup is uploaded to audio server 200 by first communication module 115, and after the voice data of the default form that reaches preset data size of described backup is uploaded successfully, delete the voice data of the first memory module default forms of reaching preset data size corresponding with voice data that upload 113 buffer memorys, until no longer there is the voice data of the default form of buffer memory in the first memory module 113,
First communication module 115, for by that set up in advance and interface channel audio server 200, is uploaded to audio server 200 by the voice data of the default form that reaches preset data size of backup successively.
Optionally, the first coding module 112 and the first control module 114 can be integrated in one.
Another structured flowchart of the first mobile terminal that Fig. 6 provides for the embodiment of the present invention, with reference to Fig. 6, the first mobile terminal can comprise:
The second corresponding relation building module 120, the second audio recording module 121, the second coding module 122, the second memory module 123, the second control modules 124 and second communication modules 125;
Wherein, the second corresponding relation building module 120, for determining the mark of the second mobile terminal 300, sets up the corresponding relation of audio frequency to be sent and described mark;
The second audio recording module 121, for gathering audio frequency, generates original audio stream data;
The second coding module 122, for converting described original audio stream data to the voice data of default form;
The second memory module 123, for the voice data of default form described in the voice data at default form described in the buffer memory of default address area or random cache;
The second control module 124, for in the time that the audio frequency duration corresponding to voice data of the default form of the second memory module 123 buffer memorys reaches preset value, the voice data of the described default form that reaches default audio frequency duration is backed up, transfer the voice data of the default form that reaches default audio frequency duration of backup, successively by the audio data transmission of the default form of default reaching of backup audio frequency duration to second communication module 125, so that the voice data of the default form that reaches default audio frequency duration of backup is uploaded to audio server 200 by second communication module 125, and after the voice data that reaches the default form of presetting audio frequency duration of described backup is uploaded successfully, delete the voice data of the second memory module default forms of reaching default audio frequency duration corresponding with voice data that upload 123 buffer memorys, until no longer there is the voice data of the default form of buffer memory in the second memory module 123,
Second communication module 125, for by that set up in advance and interface channel audio server 200, is uploaded to audio server 200 by the voice data of the default form that reaches default audio frequency duration of backup successively.
Optionally, the second coding module 122 and the second control module 124 can be integrated in one.
The another structured flowchart of the first mobile terminal that Fig. 7 provides for the embodiment of the present invention, with reference to Fig. 7, the first mobile terminal can comprise: the 3rd corresponding relation building module 130, the 3rd audio recording module 131, the 3rd coding module 132, the 3rd memory module 133, the three control modules 134, interface channel is set up module 135 and third communication module 136.
Wherein, the 3rd corresponding relation building module 130, for determining the mark of the second mobile terminal 300, sets up the corresponding relation of audio frequency to be sent and described mark;
The 3rd audio recording module 131, for gathering audio frequency, generates original audio stream data;
The 3rd coding module 132, for converting described original audio stream data to the voice data of default form;
The 3rd memory module 133, for the voice data of default form described in the voice data at default form described in the buffer memory of default address area or random cache;
The 3rd control module 134, be used at described the 3rd memory module buffer memory after the voice data of complete default form, transfer the voice data of described complete default form, by the audio data transmission of described complete default form to third communication module 136, so that the voice data of described complete default form is uploaded to audio server 200 by third communication module 136, the voice data of described complete default form is corresponding with the complete audio frequency that the 3rd audio recording module 131 gathers;
Interface channel is set up module 135, at the 3rd memory module 133 buffer memorys after the voice data of complete default form, set up the interface channel with audio server 200;
Third communication module 136, for set up the interface channel that module 135 is set up by interface channel, is uploaded to audio server 200 by the voice data of described complete default form.
Optionally, the 3rd coding module 132 and the 3rd control module 134 can be integrated in one.
Another structured flowchart again of the first mobile terminal that Fig. 8 provides for the embodiment of the present invention, with reference to Fig. 8, the first mobile terminal can comprise: the 4th corresponding relation building module 140, the 4th audio recording module 141, the 4th coding module 142, the 4th memory module 143, the four control modules 144, and the 4th communication module 145;
Wherein, the 4th corresponding relation building module 140, for determining the mark of the second mobile terminal 300, sets up the corresponding relation of audio frequency to be sent and described mark;
The 4th audio recording module 141, for gathering audio frequency, generates original audio stream data;
The 4th coding module 142, for converting described original audio stream data to the voice data of default form;
The 4th memory module 143, for the voice data of default form described in the voice data at default form described in the buffer memory of default address area or random cache;
The 4th control module 144, be used at the 4th memory module 143 buffer memorys after the voice data of complete default form, transfer the voice data of described complete default form, give the 4th communication module 145 by the audio data transmission of described complete default form, so that the voice data of described complete default form is uploaded to audio server 200 by the 4th communication module 145, the voice data of described complete default form is corresponding with the complete audio frequency that the 4th audio recording module 141 gathers;
The 4th communication module 145, for by that set up in advance and interface channel audio server 200, is uploaded to audio server 200 by the voice data of described complete default form.
The audio transmission system that the embodiment of the present invention provides does not also require when the first mobile terminal sends audio frequency, the second mobile terminal must be connected into network simultaneously, the second mobile terminal sends any moment access network after audio frequency at the first mobile terminal, all can receive the voice data that the first mobile terminal sends, the audio frequency transmission method that the embodiment of the present invention provides has solved the circumscribed problem in the audio transmission life period of prior art, has realized the audio data transmission that does not rely on room and time.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.For the disclosed device of embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates referring to method part.
Professional can also further recognize, unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein, can realize with electronic hardware, computer software or the combination of the two, for the interchangeability of hardware and software is clearly described, composition and the step of each example described according to function in the above description in general manner.These functions are carried out with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can realize described function with distinct methods to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
The software module that the method for describing in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to carry out, or the combination of the two is implemented.Software module can be placed in the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.To the above-mentioned explanation of the disclosed embodiments, make professional and technical personnel in the field can realize or use the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiment, General Principle as defined herein can, in the situation that not departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.