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 a part of embodiment of the present invention, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of recording data sharing method and terminal, can in Recording Process, by recording auto Segmentation, be a plurality of recording fragments and carry out real-time sharing.Following examples are elaborated respectively.
The method and apparatus of the embodiment of the present invention can be applied in the instant messaging application such as micro-letter, footpath between fields, footpath between fields.
Refer to Fig. 1, Fig. 1 shows the process flow diagram of a kind of recording data sharing method that the embodiment of the present invention provides.As shown in Figure 1, this recording data sharing method can comprise the following steps:
S101: in Recording Process, pause recording is divided into a plurality of recording fragments according to scheduled duration or the sound that detects;
Particularly, the method that recording is divided into a plurality of recording fragments detecting according to scheduled duration in Recording Process can be: receive the steering order that starts recording, record and start timing, (for example judge whether to arrive scheduled duration, 10 minutes), if arrival scheduled duration, read and generate the recording fragment in scheduled duration, and reclocking and recording, if do not arrive, judge whether to receive the steering order that finishes recording, if receive the steering order that finishes recording, stop recording, and the zero hour of reading and generate scheduled duration is to the recording fragment receiving between moment of the steering order that finishes recording.The method that recording is divided into a plurality of recording fragments detecting according to scheduled duration in Recording Process can also be: receive the steering order that starts recording, record and start timing, whether the audio amplitude that detects recording in scheduled duration is lower than default threshold value, if lower than default threshold value, whether the audio amplitude of judgement recording (for example arrives default threshold value lower than the duration of threshold value, 1 minute), if arrival threshold value, the initial time that reads and generate scheduled duration is to the audio amplitude of described recording just lower than the recording fragment between the moment of thresholding, and the step of recording described in repeating and starting timing.
S102: recording fragment is shared;
Particularly, after can be in Recording Process pausing and generate recording fragment according to scheduled duration or the sound that detects, can share in this recording fragment of naming a person for a particular job sliced time of each fragment of recording, so that recipient's high-speed receiving to sound bite and reply, is shared thereby realized fast.
In the recording data sharing method providing at Fig. 1, can be in Recording Process according to scheduled duration or the sound that detects, pause recording is divided into a plurality of recording fragments, and these recording fragments are shared, thereby can simplify the real-time sharing troublesome operation step of the recording data of recording for a long time.
Refer to Fig. 2, Fig. 2 shows the process flow diagram of the another kind of recording data sharing method that the embodiment of the present invention provides.As shown in Figure 2, this recording data sharing method can comprise the following steps:
S201: start recording;
Particularly, can receive the control signal that user starts recording, responsive control signal to be to record, and recording on one side, preserve the recording data that record on one side.
S202: skip the noiseless part recorded segment start time;
Particularly, can skip the noiseless part of beginning, the start time of record recording fragment.
S203: long recording time timing;
Particularly, calculate the long recording time of current recording fragment to be split.
S204: whether long recording time arrives scheduled duration T;
Particularly, can judge whether the long recording time of current recording fragment to be split for example arrives scheduled duration T(, ten minutes), if reach, this flow process goes to step S207; If do not arrive, this flow process goes to step S205.
S205: whether audio amplitude is lower than noiseless threshold value;
Particularly, can judge that the audio amplitude of recording, whether lower than default noiseless threshold value, judges the pause that whether occurs sound in Recording Process, if audio amplitude lower than noiseless thresholding, this flow process goes to step S206; If audio amplitude is not lower than noiseless threshold value, this flow process goes to step S210.
S206: whether noiseless duration arrives threshold value T2;
Particularly, can judge whether audio amplitude for example arrives default threshold value T2(lower than the lasting duration of noiseless thresholding, 2 minutes), if arrive, this flow process goes to step S207; If do not arrive, this flow process goes to step S210.
S207: recorded segment finish time;
Particularly, long recording time in current recording fragment to be split arrives scheduled duration T, or, while occurring that noiseless duration is more than or equal to the situation of threshold value T2 in the scheduled duration T of current recording fragment to be split, can record the finish time of this recording fragment to be split, record the time point that long recording time has just arrived scheduled duration T, or record audio amplitude is just lower than the time point of noiseless thresholding.
S208: generate fragment zero hour to the recording fragment of fragment between the finish time;
Particularly, can read and generate the audio fragment between fragment just arrived scheduled duration T the zero hour moment to long recording time, or, read and generate fragment zero hour to audio amplitude just lower than the recording fragment between the moment of noiseless thresholding.
S209: preserve recording fragment, and share;
Particularly, the recording fragment of generation can be preserved, and this recording fragment is shared with to the webserver or recipient.
S210: whether arrive recording ending;
Particularly, judge whether to arrive recording ending, for example, judge whether to receive the steering order that user stops recording, if arrive recording ending, be shared with to recipient to the recording fragment that receives user and stop between moment of steering order of recording the zero hour of last scheduled duration, and process ends; If do not arrive recording ending, this flow process transfers back to step S202, to continue being partitioned into next recording fragment in Recording Process, until End of Tape.
In the recording data sharing method providing at Fig. 2, can be in Recording Process according to scheduled duration or the sound that detects, pause recording is divided into a plurality of recording fragments, preserve respectively this plurality of recording fragments, and share in this recording fragment of naming a person for a particular job sliced time of each recording fragment, thereby can simplify the troublesome operation step of the long-time recording data of real-time sharing.
Refer to Fig. 3, Fig. 3 shows the structural representation of a kind of terminal that the embodiment of the present invention provides.This terminal 30 can be, for example, and computing machine, smart mobile phone or IPAD etc.As shown in Figure 4, this terminal 30 can comprise that recording fragment is cut apart module 301 and the fragment sharing module 302 of recording, wherein:
Recording fragment is cut apart module 301, for pausing recording is divided into a plurality of recording fragments according to scheduled duration or the sound that detects in Recording Process, particularly, the method that recording is divided into a plurality of recording fragments detecting according to scheduled duration in Recording Process can be: receive the steering order that starts recording, record and start timing, (for example judge whether to arrive scheduled duration, 10 minutes), if arrival scheduled duration, read and generate the recording fragment in scheduled duration, and reclocking and recording, if do not arrive, judge whether to receive the steering order that finishes recording, if receive the steering order that finishes recording, stop recording, and the zero hour of reading and generate scheduled duration is to the recording fragment receiving between moment of the steering order that finishes recording.The method that recording is divided into a plurality of recording fragments detecting according to scheduled duration in Recording Process can also be: receive the steering order that starts recording, record and start timing, whether the audio amplitude that detects recording in scheduled duration is lower than default threshold value, if lower than default threshold value, whether the audio amplitude of judgement recording (for example arrives default threshold value lower than the duration of threshold value, 1 minute), if arrival threshold value, the initial time that reads and generate scheduled duration is to the audio amplitude of described recording just lower than the recording fragment between the moment of thresholding, and the step of recording described in repeating and starting timing.
Recording fragment sharing module 302, shares for cut apart the recording fragment that module 301 is split to form in recording fragment; Particularly, after pausing and generate recording fragment according to scheduled duration or the sound that detects in Recording Process, can share in this recording fragment of naming a person for a particular job sliced time of each fragment of recording, so that recipient's high-speed receiving to sound bite and reply, is shared thereby realized fast.
Wherein, the terminal that Fig. 3 provides can be in Recording Process be paused recording is divided into a plurality of recording fragments according to scheduled duration or the sound that detects, and the fragment of these can being recorded shares, thereby can simplify the troublesome operation step of the recording data of the long-time recording of real-time sharing.
Refer to Fig. 4, Fig. 4 shows the structural representation of the another kind of terminal that the embodiment of the present invention provides.Wherein, the terminal shown in Fig. 4 40 is that terminal 30 is as shown in Figure 3 optimized and obtains.In the terminal 40 shown in Fig. 4, the first memory module 401 and the second memory module 402 have further been comprised, and recording fragment is cut apart module 301 can specifically comprise the first receiving element 3011, the first recording unit 3012, duration judging unit 3013, the first generation unit 3014, instruction detection unit 3015 and the second generation unit 3016, wherein:
The first receiving element 3011, for receiving the steering order that starts recording.
The first recording unit 3012, for recording and starting timing.
Duration judging unit 3013, for example, for judging whether to arrive scheduled duration (, 10 minutes).
The first generation unit 3014, for when duration judging unit 3013 is sentenced out arrival scheduled duration,, generate the recording fragment in scheduled duration, and notify the first 3012 reclockings of recording unit and recording.
Instruction detection unit 3015, while not arriving scheduled duration for sentencing out at duration judging unit 3013, detects and whether receives the steering order that finishes recording.
When the second generation unit 3016 receives for detecting at instruction detection unit 3015 steering order that finishes recording,, stop recording, and the zero hour that generates scheduled duration is to the recording fragment receiving between the moment that finishes the steering order of recording.
Further, the first memory module 401, for recording and start after timing at the first cutting unit 3011 or the second cutting unit 3012, preserves the recording data of recording.
The second memory module 402, for cutting apart module 301 when recording fragment after Recording Process is divided into recording a plurality of recording fragments according to scheduled duration or the sound pause that detects, preserve respectively a plurality of recording fragments, when a plurality of recording fragments generate, preserve.
Wherein, the terminal that Fig. 4 provides can be divided into a plurality of recording fragments according to scheduled duration by recording in Recording Process, preserve respectively this plurality of recording fragments, and share in this recording fragment of naming a person for a particular job sliced time of each recording fragment, thereby can simplify the troublesome operation step of the long-time recording data of real-time sharing.
Refer to Fig. 5, Fig. 5 shows the structural representation of the another kind of terminal that the embodiment of the present invention provides.Wherein, the terminal shown in Fig. 5 50 is that terminal 30 as shown in Figure 3 and the terminal 40 shown in Fig. 4 are optimized and obtain.In the terminal 50 shown in Fig. 5, recording fragment is cut apart module 301 can specifically comprise the second receiving element 3017, the second recording unit 3018, audio detection unit 3019, pause duration judging unit 30110, the 3rd generation unit 30111 and notification unit 30112, wherein:
The second receiving element 3017, for receiving the steering order that starts recording.
The second recording unit 3018, for recording and starting timing.
Audio detection unit 3019, for the audio amplitude that detects recording in scheduled duration whether lower than default threshold value.
Pause duration judging unit 30110, for audio amplitude that described recording detected in audio detection unit 3019, whether during lower than default threshold value, whether the audio amplitude of judgement recording arrives default threshold value lower than the duration of thresholding.
The 3rd generation unit 30111, while arriving default threshold value for the audio amplitude of judging recording at pause duration judging unit 30110 lower than the duration of thresholding, the initial time that generates scheduled duration is to the audio amplitude of recording just lower than the recording fragment between the moment of thresholding.
Notification unit 30112, for the initial time that generates scheduled durations at the 3rd generation unit 30111 to the audio amplitude of described recording just lower than the recording fragment between the moment of thresholding after, notify the second 3018 reclockings of recording unit and recording.
Wherein, the terminal that Fig. 5 provides can be paused recording is divided into a plurality of recording fragments according to sound in Recording Process, preserve respectively this plurality of recording fragments, and share in this recording fragment of naming a person for a particular job sliced time of each recording fragment, thereby can simplify the troublesome operation step of the long-time recording data of real-time sharing.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is to come the hardware that instruction is relevant to complete by program, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, ROM (read-only memory) (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc.
Step in embodiment of the present invention method can be carried out according to actual needs order and adjusted, merges and delete.
Module in embodiment of the present invention device or unit can merge according to actual needs, divide and delete.
The recording data sharing method and the terminal that above the embodiment of the present invention are provided are described in detail, applied specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.