CN103166831B - Data processing method, terminal and system - Google Patents
Data processing method, terminal and system Download PDFInfo
- Publication number
- CN103166831B CN103166831B CN201110418104.0A CN201110418104A CN103166831B CN 103166831 B CN103166831 B CN 103166831B CN 201110418104 A CN201110418104 A CN 201110418104A CN 103166831 B CN103166831 B CN 103166831B
- Authority
- CN
- China
- Prior art keywords
- data block
- audio data
- terminal
- beginning
- real
- 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.)
- Active
Links
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The invention discloses a kind of data processing method, terminal and system, belong to communication technical field.Described data processing method comprises: when first terminal and the second terminal carry out voice communication, and first terminal obtains the beginning audio data block of real-time recording, and wherein said beginning audio data block carries beginning data block identifier; Whether described first terminal supports stream transmission according to described second terminal of described beginning data block identifier inquiry, if so, sends described beginning audio data block to described second terminal; Described first terminal obtains the end audio data block of real-time recording, and send described end audio data block to described second terminal, wherein said end audio data block carries end data block identification.The embodiment of the present invention shortens the system shorten voice communication time between first terminal and the second terminal.
Description
Technical field
The present invention relates to communication technical field, particularly a kind of data processing method, terminal and system.
Background technology
Q letter is the real-time messages function that QQ address list provides, as long as there is good friend also to use Q to believe in QQ address list, with regard to carrying out voice, group chat with them, sends the operations such as text, expression, picture and Freehandhand-drawing scribble.Wherein, be that the Q letter of exhibition method is called as voice Q and believes with voice, voice Q letter is the one of voice communication.
In prior art, when first terminal and the second terminal carry out voice communication, first terminal is recorded whole voice data and is sent to the second terminal, receives described whole voice data and play by the second terminal.But first terminal just sends voice data after recording complete voice data in prior art, namely recording whole voice data and sending described whole voice data is that order is carried out, and makes the system shorten voice communication time between first terminal and the second terminal extend like this.
Summary of the invention
In order to shorten the system shorten voice communication time between first terminal and the second terminal, embodiments provide a kind of data processing method, terminal and system.Described technical scheme is as follows:
A kind of data processing method, described method comprises:
When first terminal and the second terminal carry out voice communication, first terminal obtains the beginning audio data block of real-time recording, and wherein said beginning audio data block carries beginning data block identifier;
Whether described first terminal supports stream transmission according to described second terminal of described beginning data block identifier inquiry, if so, sends described beginning audio data block to described second terminal;
Described first terminal obtains the end audio data block of real-time recording, and send described end audio data block to described second terminal, wherein said end audio data block carries end data block identification.
A kind of data processing method, described method comprises:
When the second terminal support stream transmission, described second terminal receives described beginning audio data block, obtains and start data block identifier from described in audio data block;
Described second terminal receives described end audio data block, from described end audio data block, obtain end data block identification;
Described beginning audio data block and end audio data block are carried out the integration process of data according to described beginning data block identifier and end data block identification by described second terminal in order, generate audio data file.
A kind of first terminal, comprising:
Acquisition module, for when first terminal and the second terminal carry out voice communication, obtain the beginning audio data block of real-time recording, wherein said beginning audio data block carries beginning data block identifier;
Inquiry sending module, for whether supporting stream transmission according to described second terminal of described beginning data block identifier inquiry, if so, sends described beginning audio data block to described second terminal;
First obtains sending module, and for obtaining the end audio data block of real-time recording, send described end audio data block to described second terminal, wherein said end audio data block carries end data block identification.
A kind of second terminal, comprising:
First receives acquisition module, for when the second terminal support is transmitted as a stream, receives described beginning audio data block, obtains and start data block identifier from described in audio data block;
Second receives acquisition module, for receiving described end audio data block, from described end audio data block, obtains end data block identification;
Integrating generation module, for described beginning audio data block and end audio data block being carried out the integration process of data in order according to described beginning data block identifier and end data block identification, generating audio data file.
A kind of data handling system, comprises above-mentioned first terminal and the second above-mentioned terminal.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is: when first terminal and the second terminal carry out voice communication, if the second terminal support stream transmission, first voice data of real-time recording, second audio data and the 3rd voice data are just sent to the second terminal by first terminal successively in real time, and unlike prior art, first terminal needs etc. send described whole voice data to the second terminal after recording complete voice data again, and the system shorten voice communication time between first terminal and the second terminal is shortened.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of data processing method embodiment provided in the embodiment of the present invention 1;
Fig. 2 is the flow chart of a kind of data processing method embodiment that the embodiment of the present invention 2 provides;
Fig. 3 is the flow chart of a kind of data processing method embodiment that the embodiment of the present invention 3 provides;
Fig. 4 is the flow chart of a kind of data processing method embodiment that the embodiment of the present invention 4 provides;
Fig. 5 is the structural representation of a kind of first terminal embodiment that the embodiment of the present invention 5 provides;
Fig. 6 is the first structural representation of a kind of second terminal embodiment that the embodiment of the present invention 6 provides;
Fig. 7 is the second structural representation of a kind of second terminal embodiment that the embodiment of the present invention 6 provides;
Fig. 8 is the structural representation of a kind of data handling system embodiment that the embodiment of the present invention 7 provides.
Embodiment
The embodiment of the present invention provides a kind of data processing method, terminal and system.
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
In the embodiment of the present invention, the whole voice data of real-time recording is by starting audio data block, middle audio data block and terminate audio data block to form; Wherein, described beginning audio data block is first audio data block of real-time recording; Described end audio data block is last audio data block of real-time recording; Described middle audio data block is between beginning audio data block and terminate between audio data block, and its number is more than or equal to 0, and concrete number is determined according to the duration of recording.Wherein said beginning audio data block, each middle audio data block and end audio data block are an audio data block, the data volume of the data volume Jun Quyige unit of described audio data block, the data volume of a described unit is set to the data volume of a frame (such as: 20ms), this data volume size is decided by sample rate, and described sample rate needs to consider transmitted data on network amount and voice quality two factors.
Embodiment 1
With reference to the flow chart that figure 1, Fig. 1 is a kind of data processing method embodiment that the embodiment of the present invention 1 provides; First terminal in the present embodiment and the second terminal can be mobile phone or PC (PersonalComputer; personal computer); but be not limited thereto, as long as the equipment with the operating system that can realize sound-recording function is all within scope, do not repeat them here.
Described data processing method comprises:
S101: when first terminal and the second terminal carry out voice communication, first terminal obtains the beginning audio data block of real-time recording, and wherein said beginning audio data block carries beginning data block identifier.
S102: whether described first terminal supports stream transmission according to described second terminal of described beginning data block identifier inquiry, if so, sends described beginning audio data block to described second terminal.
S103: described first terminal obtains the end audio data block of real-time recording, send described end audio data block to described second terminal, wherein said end audio data block carries end data block identification.
Further, the taking a step forward of end audio data block of described first terminal acquisition real-time recording comprises:
Described first terminal obtains at least one middle audio data block of real-time recording, and send at least one middle audio data block described to described second terminal, wherein each described middle audio data block carries an intermediate data block identification.
Further, the format of described beginning audio data block, middle audio data block and end audio data block is adaptive multi-beam forming AMR form.
In the present embodiment, when first terminal and the second terminal carry out voice communication, if the second terminal support stream transmission, the beginning audio data block of real-time recording and end audio data block are just sent to the second terminal by first terminal successively in real time, and unlike prior art, first terminal needs etc. send described whole voice data to the second terminal after recording complete voice data again, and the system shorten voice communication time between first terminal and the second terminal is shortened.
Embodiment 2
With reference to the flow chart that figure 2, Fig. 2 is a kind of data processing method embodiment that the embodiment of the present invention 2 provides; First terminal in the present embodiment and the second terminal can be mobile phone or PC (PersonalComputer; personal computer); but be not limited thereto, as long as the equipment with the operating system that can realize sound-recording function is all within scope, do not repeat them here.
Described data processing method comprises:
S201: when the second terminal support stream transmission, described second terminal receives described beginning audio data block, obtains in audio data block and starts data block identifier from described.
S202: described second terminal receives described end audio data block, obtains end data block identification from described end audio data block.
S203: described beginning audio data block and end audio data block are carried out the integration process of data according to described beginning data block identifier and end data block identification by described second terminal in order, generate audio data file.
Further, described second terminal receive described end audio data block before described method also comprise:
Described second terminal receives at least one middle audio data block described, from least one middle audio data block described, obtain all intermediate data block identifications;
Accordingly, described beginning audio data block and end audio data block are carried out the integration process of data according to described beginning data block identifier and end data block identification by described second terminal in order, generate audio data file and are specially:
Described beginning audio data block, at least one middle audio data block and end audio data block are carried out the integration process of data by described second terminal in order according to described beginning data block identifier, all intermediate data block identifications and end data block identification, generate audio data file.
Further, after described generation audio data file, described method also comprises:
When user clicks audio plays, audio data file described in described second terminal plays.
In the present embodiment, when first terminal and the second terminal carry out voice communication, if the second terminal support stream transmission, second terminal just receives the beginning audio data block of real-time recording and end audio data block successively, and beginning audio data block and end audio data block are carried out integration process generation audio data file; And unlike prior art, the second terminal receives described whole voice data after needing to wait first terminal to record complete voice data again, the system shorten voice communication time between first terminal and the second terminal is shortened.
Embodiment 3
With reference to the flow chart that figure 3, Fig. 3 is a kind of data processing method embodiment that the embodiment of the present invention 3 provides; First terminal in the present embodiment and the second terminal can be mobile phone or PC (PersonalComputer; personal computer); but be not limited thereto, as long as the equipment with the operating system that can realize sound-recording function is all within scope, do not repeat them here.
The present embodiment with the number of middle audio data block for 0, namely the whole voice data of real-time recording only by audio data block and terminate audio data block and consist of example and be described.
The present embodiment is described in detail for voice Q letter, and particularly, described data processing method comprises:
S301: when first terminal and the second terminal carry out voice Q letter, first terminal obtains the beginning audio data block of real-time recording, and wherein said beginning audio data block carries beginning data block identifier.
In this step, when first terminal and the second terminal all support voice Q letter and all online time, described first terminal and described second terminal just can be carried out voice Q and believed.
First terminal obtains the beginning audio data block of real-time recording, and wherein said beginning audio data block carries beginning data block identifier; Described beginning data block identifier is used for identifying beginning audio data block when recording starts, and described beginning data block identifier can represent with KAudioStreamSendStart; Particularly, when first terminal starts real-time recording, the audio frequency controller engine in described first terminal obtains and starts audio data block, and the network management module be sent to by described beginning audio data block in described first terminal performs subsequent treatment.
Preferably, the format of described beginning audio data block is AMR (AdaptiveMulti-Rate, adaptive multi-beam forming) form.
S302: whether described first terminal supports stream transmission according to described second terminal of described beginning data block identifier inquiry.
In this step, after described first terminal obtains and starts audio data block, obtain in audio data block from described and start data block identifier, according to described beginning data block identifier, described first terminal knows that recording starts, and described beginning audio data block is the beginning data of input voice, described second terminal of inquiry is now needed whether to support stream transmission.
Particularly, whether the network management module of described first terminal supports stream transmission through server to described second terminal of network management module inquiry of described second terminal.
S303: described second terminal receives described inquiry, sends and acknowledges message to described first terminal, carry inquiry result in wherein said response message.
After described second terminal receives the inquiry of described first terminal transmission, according to own situation, generate inquiry result; Described inquiry result is carried in response message and is sent to described first terminal by described second terminal; Wherein, described inquiry result comprises: support stream transmission, or, do not support stream transmission.
Particularly, after the network management module of described second terminal receives described query, send the network management module acknowledging message to described first terminal through server, in wherein said response message, carry inquiry result.
S304: described first terminal receives described response message, obtains inquiry result from described response message; When described inquiry result is when supporting stream transmission, send described beginning audio data block to described second terminal.
Particularly, the network management module of described first terminal receives described response message, obtains inquiry result from described response message; When described inquiry result, when supporting stream transmission, described beginning audio data block is sent to the network management module of described second terminal through server.
When described inquiry result is when not supporting stream transmission, described first terminal does not send described beginning audio data block to described second terminal, but continue the remainder obtaining whole voice data, until last data block reception of whole voice data is complete, described whole voice data is carried out integration process, send the whole voice data after described integration process to described second terminal.This part similarly to the prior art, does not repeat them here, and specifically can refer to the description that prior art is relevant.
S305: described second terminal receives described beginning audio data block, obtains in audio data block and starts data block identifier from described.
Particularly, the network management module of described second terminal receives described beginning audio data block, obtains and start data block identifier from described in audio data block.
S306: described first terminal obtains the end audio data block of real-time recording, send described end audio data block to described second terminal, wherein said end audio data block carries end data block identification.
In this step, after described first terminal obtains and terminates audio data block, end data block identification is obtained from described end audio data block, wherein said end data block identification be used for identify End of Tape time end audio data block, described end data block identification can represent with KAudioStreamSendEnd; Described first terminal knows End of Tape according to described end data block identification, and described end audio data block is the latter end data of input voice.Particularly, the audio frequency controller engine of described first terminal obtains the end audio data block of real-time recording, send the network management module of described end audio data block to described first terminal, described end audio data block is sent to the network management module of described second terminal by the network management module of described first terminal through server.
Preferably, the format of described end audio data block is AMR (AdaptiveMulti-Rate, adaptive multi-beam forming) form.
In the present embodiment, the process operation that described first terminal obtains the end audio data block of real-time recording can perform after first terminal described in S301 obtains the beginning audio data block of real-time recording, is not limited to and performs after S305.
S307: described second terminal receives described end audio data block, obtains end data block identification from described end audio data block.
Particularly, the network management module of described second terminal receives described end audio data block, from described end audio data block, obtain end data block identification.
S308: described beginning audio data block and end audio data block are carried out the integration process of data according to described beginning data block identifier and end data block identification by described second terminal in order, generate audio data file.
Particularly, described beginning audio data block and end audio data block are carried out the integration process of data according to described beginning data block identifier and end data block identification by the network management module of described second terminal in order, generate audio data file; The audio frequency controller engine notice front-end interface display voice Q letter of described second terminal.
S309: when user clicks audio plays, audio data file described in described second terminal plays.
Particularly, when user clicks the audio plays in the displaying interface of described voice Q letter, the audio frequency controller engine playing audio data file of described second terminal.
In the present embodiment, when first terminal and the second terminal carry out voice communication, if the second terminal support stream transmission, the beginning audio data block of real-time recording and end audio data block are just sent to the second terminal by first terminal successively in real time; By the second terminal receive successively described audio data block and terminate audio data block, and generate audio data file after described beginning audio data block and end audio data block are carried out integration process, when user clicks displaying video, play by the second terminal; And unlike prior art, first terminal needs etc. send described whole voice data to the second terminal after recording complete voice data again, the system shorten voice communication time between first terminal and the second terminal is shortened.
Embodiment 4
With reference to the flow chart that figure 4, Fig. 4 is a kind of data processing method embodiment that the embodiment of the present invention 4 provides; First terminal in the present embodiment and the second terminal can be mobile phone or PC (PersonalComputer; personal computer); but be not limited thereto, as long as the equipment with the operating system that can realize sound-recording function is all within scope, do not repeat them here.
The present embodiment with the whole voice data of real-time recording by audio data block, middle audio data block and terminate audio data block and consist of example and be described, the number of wherein said middle audio data block is at least one.
The present embodiment is described in detail for voice Q letter, and particularly, described data processing method comprises:
S401: when first terminal and the second terminal carry out voice Q letter, first terminal obtains the beginning audio data block of real-time recording, and wherein said beginning audio data block carries beginning data block identifier.
S301 in S401 and embodiment 3 is similar, does not repeat them here, specifically can the associated description of detailed in Example 3.
S402: whether described first terminal supports stream transmission according to described second terminal of described beginning data block identifier inquiry.
S302 in S402 and embodiment 3 is similar, does not repeat them here, specifically can the associated description of detailed in Example 3.
S403: described second terminal receives described inquiry, sends and acknowledges message to described first terminal, carry inquiry result in wherein said response message.
S303 in S403 and embodiment 3 is similar, does not repeat them here, specifically can the associated description of detailed in Example 3.
S404: described first terminal receives described response message, obtains inquiry result from described response message; When described inquiry result is when supporting stream transmission, send described beginning audio data block to described second terminal.
S304 in S404 and embodiment 3 is similar, does not repeat them here, specifically can the associated description of detailed in Example 3.
S405: described second terminal receives described beginning audio data block, obtains in audio data block and starts data block identifier from described.
S305 in S405 and embodiment 3 is similar, does not repeat them here, specifically can the associated description of detailed in Example 3.
S406: described first terminal obtains at least one middle audio data block of real-time recording, send at least one middle audio data block described to described second terminal, wherein each described middle audio data block carries an intermediate data block identification.
In this step, each described middle audio data block all carries an intermediate data block identification; Wherein said intermediate data block identification is that the sequencing of the middle audio data block that the audio frequency controller engine receiving first terminal according to the network management module of first terminal transmits produces.
After described first terminal obtains at least one middle audio data block, all intermediate data block identifications are obtained from least one middle audio data block described, wherein said intermediate data block identification can represent with KAudioStreamSendMid (n), n represents the label order of middle audio data block, and n is positive integer; Described first terminal knows recording well afoot according to described intermediate data block identification, and described second audio data is the mid portion data of input voice.
Particularly, the audio frequency controller engine of described first terminal obtains at least one middle audio data block of real-time recording, send the network management module of at least one middle audio data block described to described first terminal, at least one middle audio data block described is sent to the network management module of described second terminal by the network management module of described first terminal through server.
Preferably, the format of at least one middle audio data block described is AMR (AdaptiveMulti-Rate, adaptive multi-beam forming) form.
In the present embodiment, the process operation that described first terminal obtains at least one middle audio data block of real-time recording can perform after first terminal described in S401 obtains the beginning audio data block of real-time recording, is not limited to and performs after S405.
S407: described second terminal receives at least one middle audio data block described, obtains all intermediate data block identifications from least one middle audio data block described.
Particularly, the network management module of described second terminal receives at least one middle audio data block described, from least one middle audio data block described, obtain all intermediate data block identifications; The number of described intermediate data block identification is at least one.
S408: described first terminal obtains the end audio data block of real-time recording, send described end audio data block to described second terminal, wherein said end audio data block carries end data block identification.
In S408 and embodiment 3, S306 is similar, does not repeat them here, specifically can the associated description of detailed in Example 3.
S409: described second terminal receives described end audio data block, obtains end data block identification from described end audio data block.
In S409 and embodiment 3, S307 is similar, does not repeat them here, specifically can the associated description of detailed in Example 3.
S410: described beginning audio data block, at least one middle audio data block and end audio data block are carried out the integration process of data by described second terminal in order according to described beginning data block identifier, all intermediate data block identifications and end data block identification, generate audio data file.
Particularly, described beginning audio data block, at least one middle audio data block and end audio data block are carried out the integration process of data by the network management module of described second terminal in order according to described beginning data block identifier, all intermediate data block identifications and end data block identification, generate audio data file; The audio frequency controller engine notice front-end interface display voice Q letter of described second terminal.
S411: when user clicks audio plays, audio data file described in described second terminal plays.
Particularly, when user clicks the audio plays in the displaying interface of described voice Q letter, the audio frequency controller engine playing audio data file of described second terminal.
In the present embodiment, in the recording scene of whole voice data, middle audio data block can be recorded separately, and particularly, all middle audio data blocks can divide and once carry out real-time recording, also can carry out real-time recording several times; Middle audio data block also can carry out real-time recording together with beginning audio data block; Middle audio data block also can carry out real-time recording together with end audio data block; The present embodiment does not do concrete restriction to this.
In the present embodiment, when first terminal and the second terminal carry out voice communication, if the second terminal support stream transmission, the beginning audio data block of real-time recording, at least one middle audio data block and end audio data block are just sent to the second terminal by first terminal successively in real time; By the second terminal receive successively described audio data block, at least one middle audio data block and terminate audio data block, and by described beginning audio data block, at least one middle audio data block and terminate audio data block carry out integrations process; And unlike prior art, first terminal needs etc. send described whole voice data to the second terminal after recording complete voice data again, the system shorten voice communication time between first terminal and the second terminal is shortened.
Embodiment 5
With reference to the structural representation that figure 5, Fig. 5 is a kind of first terminal embodiment that the embodiment of the present invention 5 provides; First terminal in the present embodiment and the second terminal can be mobile phone or PC (PersonalComputer; personal computer); but be not limited thereto, as long as the equipment with the operating system that can realize sound-recording function is all within scope, do not repeat them here.
Described first terminal 50 comprises:
Acquisition module 501, for when first terminal and the second terminal carry out voice communication, obtain the beginning audio data block of real-time recording, wherein said beginning audio data block carries beginning data block identifier.
Inquiry sending module 502, for whether supporting stream transmission according to described second terminal of described beginning data block identifier inquiry, if so, sends described beginning audio data block to described second terminal.
First obtains sending module 503, and for obtaining the end audio data block of real-time recording, send described end audio data block to described second terminal, wherein said end audio data block carries end data block identification.
Further, described first terminal 50 also comprises:
Second obtains sending module 504, obtain the end audio data block of real-time recording for described first terminal before, obtain at least one middle audio data block of real-time recording, send at least one middle audio data block described to described second terminal, wherein each described middle audio data block carries an intermediate data block identification.
In the present embodiment, when first terminal and the second terminal carry out voice communication, if the second terminal support stream transmission, the beginning audio data block of real-time recording and end audio data block are just sent to the second terminal by first terminal successively in real time, and unlike prior art, first terminal needs etc. send described whole voice data to the second terminal after recording complete voice data again, and the system shorten voice communication time between first terminal and the second terminal is shortened.
Embodiment 6
With reference to the first structural representation that figure 6, Fig. 6 is a kind of second terminal embodiment that the embodiment of the present invention 6 provides; First terminal in the present embodiment and the second terminal can be mobile phone or PC (PersonalComputer; personal computer); but be not limited thereto, as long as the equipment with the operating system that can realize sound-recording function is all within scope, do not repeat them here.
Described second terminal 60 comprises:
First receives acquisition module 601, for when the second terminal support is transmitted as a stream, receives described beginning audio data block, obtains and start data block identifier from described in audio data block.
Second receives acquisition module 602, for receiving described end audio data block, from described end audio data block, obtains end data block identification.
Integrating generation module 603, for described beginning audio data block and end audio data block being carried out the integration process of data in order according to described beginning data block identifier and end data block identification, generating audio data file.
Further, described second terminal 60 also comprises: the 3rd receives acquisition module 604;
Described 3rd receives acquisition module 604, before receiving described end audio data block, receives at least one middle audio data block described, from least one middle audio data block described, obtains all intermediate data block identifications for described second terminal;
Accordingly, described integration generation module 603 comprises:
Integrate generation unit, for described beginning audio data block, at least one middle audio data block and end audio data block being carried out in order according to described beginning data block identifier, all intermediate data block identifications and end data block identification the integration process of data, generate audio data file;
Further, described second terminal 60 also comprises: playing module 605, and as shown in Figure 7, Fig. 7 is the second structural representation of a kind of second terminal embodiment that the embodiment of the present invention 6 provides;
Described playing module 605, after described generation audio data file, when user clicks audio plays, playing audio data file.
In the present embodiment, when first terminal and the second terminal carry out voice communication, if the second terminal support stream transmission, second terminal just receives the beginning audio data block of real-time recording and end audio data block successively, and beginning audio data block and end audio data block are carried out integration process generation audio data file; And unlike prior art, the second terminal receives described whole voice data after needing to wait first terminal to record complete voice data again, the system shorten voice communication time between first terminal and the second terminal is shortened.
Embodiment 7
With reference to the structural representation that figure 8, Fig. 8 is a kind of data handling system embodiment that the embodiment of the present invention 7 provides; Described voice communication system comprises: first terminal 50 and the second terminal 60; Described first terminal 50 is similar with first terminal described in embodiment 5, does not repeat them here, specifically can see the associated description in embodiment 5; Described second terminal 60 is similar with the second terminal described in embodiment 6, does not repeat them here, specifically can see the associated description in embodiment 6.
First terminal in the present embodiment and the second terminal can be mobile phone or PC (PersonalComputer; personal computer); but be not limited thereto, as long as the equipment with the operating system that can realize sound-recording function is all within scope, do not repeat them here.
In the present embodiment, when first terminal and the second terminal carry out voice communication, if the second terminal support stream transmission, the beginning audio data block of real-time recording, middle audio data block and end audio data block are just sent to the second terminal by first terminal successively in real time; By the second terminal receive successively described audio data block, middle audio data block and terminate audio data block, and by described beginning audio data block, middle audio data block and terminate audio data block carry out integrations process; And unlike prior art, first terminal needs etc. send described whole voice data to the second terminal after recording complete voice data again, the system shorten voice communication time between first terminal and the second terminal is shortened.
It should be noted that, each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For device class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (12)
1. a data processing method, is characterized in that, described method comprises:
When first terminal and the second terminal carry out voice communication, first terminal obtains the beginning audio data block of real-time recording, and wherein said beginning audio data block carries beginning data block identifier;
Whether described first terminal supports stream transmission according to described second terminal of described beginning data block identifier inquiry, if so, sends described beginning audio data block to described second terminal;
Described first terminal obtains the end audio data block of real-time recording, and send described end audio data block to described second terminal, wherein said end audio data block carries end data block identification.
2. method according to claim 1, is characterized in that, the taking a step forward of end audio data block that described first terminal obtains real-time recording comprises:
Described first terminal obtains at least one middle audio data block of real-time recording, and send at least one middle audio data block described to described second terminal, wherein each described middle audio data block carries an intermediate data block identification.
3. method according to claim 2, is characterized in that, the format of described beginning audio data block, middle audio data block and end audio data block is adaptive multi-beam forming AMR form.
4. a data processing method, is characterized in that, described method comprises:
When the second terminal support stream transmission, described second terminal receives the beginning audio data block of the real-time recording that first terminal sends, and obtains and start data block identifier from described in audio data block;
Described second terminal receives the end audio data block of the real-time recording that first terminal sends, from described end audio data block, obtain end data block identification;
Described beginning audio data block and end audio data block are carried out the integration process of data according to described beginning data block identifier and end data block identification by described second terminal in order, generate audio data file.
5. method according to claim 4, is characterized in that, described second terminal receives described taking a step forward of end audio data block and comprises:
Described second terminal receives at least one middle audio data block, from least one middle audio data block described, obtain all intermediate data block identifications;
Accordingly, described beginning audio data block and end audio data block are carried out the integration process of data according to described beginning data block identifier and end data block identification by described second terminal in order, generate audio data file and are specially:
Described beginning audio data block, at least one middle audio data block and end audio data block are carried out the integration process of data by described second terminal in order according to described beginning data block identifier, all intermediate data block identifications and end data block identification, generate audio data file.
6. the method according to claim 4 or 5, is characterized in that, comprises further after described generation audio data file:
When user clicks audio plays, audio data file described in described second terminal plays.
7. a first terminal, is characterized in that, comprising:
Acquisition module, for when first terminal and the second terminal carry out voice communication, obtain the beginning audio data block of real-time recording, wherein said beginning audio data block carries beginning data block identifier;
Inquiry sending module, for whether supporting stream transmission according to described second terminal of described beginning data block identifier inquiry, if so, sends described beginning audio data block to described second terminal;
First obtains sending module, and for obtaining the end audio data block of real-time recording, send described end audio data block to described second terminal, wherein said end audio data block carries end data block identification.
8. first terminal according to claim 7, is characterized in that, comprises further:
Second obtains sending module, obtain the end audio data block of real-time recording for described first terminal before, obtain at least one middle audio data block of real-time recording, send at least one middle audio data block described to described second terminal, wherein each described middle audio data block carries an intermediate data block identification.
9. second terminal, is characterized in that, comprising:
First receives acquisition module, for when the second terminal support is transmitted as a stream, receives the beginning audio data block of the real-time recording that first terminal sends, and obtains and start data block identifier from described in audio data block;
Second receives acquisition module, for receiving the end audio data block of the real-time recording that first terminal sends, from described end audio data block, obtains end data block identification;
Integrating generation module, for described beginning audio data block and end audio data block being carried out the integration process of data in order according to described beginning data block identifier and end data block identification, generating audio data file.
10. the second terminal according to claim 9, is characterized in that, comprise further:
3rd receives acquisition module, before receiving described end audio data block, receives at least one middle audio data block, from least one middle audio data block described, obtain all intermediate data block identifications for described second terminal;
Accordingly, described integration generation module comprises:
Integrate generation unit, for described beginning audio data block, at least one middle audio data block and end audio data block being carried out in order according to described beginning data block identifier, all intermediate data block identifications and end data block identification the integration process of data, generate audio data file.
11. the second terminals according to claim 9 or 10, is characterized in that, comprise further:
Playing module, after described generation audio data file, when user clicks audio plays, playing audio data file.
12. 1 kinds of data handling systems, is characterized in that, comprise first terminal as claimed in claim 7 or 8 and the second terminal as described in any one of claim 9-11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110418104.0A CN103166831B (en) | 2011-12-14 | 2011-12-14 | Data processing method, terminal and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110418104.0A CN103166831B (en) | 2011-12-14 | 2011-12-14 | Data processing method, terminal and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103166831A CN103166831A (en) | 2013-06-19 |
CN103166831B true CN103166831B (en) | 2016-01-20 |
Family
ID=48589582
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110418104.0A Active CN103166831B (en) | 2011-12-14 | 2011-12-14 | Data processing method, terminal and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103166831B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106358070B (en) * | 2015-07-15 | 2020-11-06 | 腾讯科技(深圳)有限公司 | Multimedia file uploading method and device |
CN110290413B (en) * | 2019-07-02 | 2021-12-10 | 广东清汇信息科技股份有限公司 | Multimedia data recording method, playing method and recording sharing system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1221548A (en) * | 1996-04-10 | 1999-06-30 | 艾利森电话股份有限公司 | Minicell segmentation and reassembly |
CN1696923A (en) * | 2004-05-10 | 2005-11-16 | 北京大学 | Networked, multimedia synchronous composed storage and issuance system, and method for implementing the system |
CN1816019A (en) * | 2005-02-03 | 2006-08-09 | 腾讯科技(深圳)有限公司 | Multi-media messege real-time alternating system and realizing method |
CN1825865A (en) * | 2006-03-10 | 2006-08-30 | 深圳市杰特电信控股有限公司 | Automatic recording method and apparatus for communication terminal |
CN101345638A (en) * | 2007-07-12 | 2009-01-14 | 中兴通讯股份有限公司 | Equity system supporting time shift business |
CN101605184A (en) * | 2009-07-23 | 2009-12-16 | 杭州华三通信技术有限公司 | A kind of method and apparatus of VoIP recording |
CN101616222A (en) * | 2009-07-22 | 2009-12-30 | 杭州华三通信技术有限公司 | The way of recording of videoconference and equipment |
-
2011
- 2011-12-14 CN CN201110418104.0A patent/CN103166831B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1221548A (en) * | 1996-04-10 | 1999-06-30 | 艾利森电话股份有限公司 | Minicell segmentation and reassembly |
CN1696923A (en) * | 2004-05-10 | 2005-11-16 | 北京大学 | Networked, multimedia synchronous composed storage and issuance system, and method for implementing the system |
CN1816019A (en) * | 2005-02-03 | 2006-08-09 | 腾讯科技(深圳)有限公司 | Multi-media messege real-time alternating system and realizing method |
CN1825865A (en) * | 2006-03-10 | 2006-08-30 | 深圳市杰特电信控股有限公司 | Automatic recording method and apparatus for communication terminal |
CN101345638A (en) * | 2007-07-12 | 2009-01-14 | 中兴通讯股份有限公司 | Equity system supporting time shift business |
CN101616222A (en) * | 2009-07-22 | 2009-12-30 | 杭州华三通信技术有限公司 | The way of recording of videoconference and equipment |
CN101605184A (en) * | 2009-07-23 | 2009-12-16 | 杭州华三通信技术有限公司 | A kind of method and apparatus of VoIP recording |
Also Published As
Publication number | Publication date |
---|---|
CN103166831A (en) | 2013-06-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021082584A1 (en) | Message exchange method and apparatus, readable medium, and electronic device | |
CN104144470B (en) | A kind of Bluetooth connecting method and client | |
CN102404397A (en) | Message reminding method, device and system | |
CN104754419A (en) | Video-based interaction method and device | |
CN103905885A (en) | Video live broadcast method and device | |
CN104994401A (en) | Barrage processing method, device and system | |
CN103139259A (en) | Method and server of achieving low-flux synchronous message logging | |
CN104639425A (en) | Network expression playing method and system and service equipment | |
CN103886058A (en) | Method and system for issuing information | |
CN107517399A (en) | A kind of synchronous method of media information and server | |
CN104796322A (en) | Message processing method and equipment | |
CN105611408A (en) | Set top box number writing method, set top box and set top box number writing server | |
CN103166831B (en) | Data processing method, terminal and system | |
CN103581700A (en) | Audio and video on demand method, server, terminal and system | |
CN104837046A (en) | Multi-media file processing method and device | |
CN104581367A (en) | Method and device for sharing multimedia content | |
CN103297582B (en) | A kind of method that voice communication content is handled and electronic equipment | |
CN102724639A (en) | Multimedia message manufacture method, device thereof and system thereof | |
CN105376134B (en) | Method and device for displaying communication message | |
CN112734545A (en) | Block chain data sharing method, device and system | |
CN104144105A (en) | Information transmission method, device and system | |
CN106453287A (en) | Multimedia data transmission method, client and server | |
CN103856552A (en) | Method and device for interactive live telecast | |
CN109359179A (en) | Message treatment method, device, terminal device and computer storage medium | |
CN105429981A (en) | Game voice transmission method, terminal, voice service module and game system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |