Specific embodiment
Accompanying drawing in below in conjunction with the embodiment of the present invention, to the embodiment of the present invention in technical scheme carry out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the present invention, rather than whole embodiment.Based on this
Embodiment in invention, the every other reality obtained under the premise of creative work is not made by those of ordinary skill in the art
Example is applied, the scope of protection of the invention is belonged to.
The embodiment of the invention discloses the embodiment of the invention discloses a kind of recording data sharing method and terminal, Neng Gou
Recording is divided into multiple recording fragments automatically in Recording Process and carries out real-time sharing.Following examples are carried out specifically respectively
Bright.
The method and apparatus of the embodiment of the present invention can be applied in the instant messaging applications such as wechat, footpath between fields footpath between fields.
Refer to Fig. 1, the flow chart that Fig. 1 shows a kind of recording data sharing method provided in an embodiment of the present invention.Such as
Shown in Fig. 1, the recording data sharing method may comprise steps of:
S101:In Recording Process, paused according to scheduled duration or the sound for detecting and recording is divided into multiple recording
Fragment;
Specifically, the method that recording is divided into multiple recording fragments for being detected according to scheduled duration in Recording Process
Can be:The control instruction for starting to record is received, is recorded and is started timing, judge whether to reach scheduled duration(For example, 10
Minute)If reaching scheduled duration, reading and generate the recording fragment in scheduled duration, and reclocking and recording, if not arriving
Reach, then judge whether to receive the control instruction for terminating recording, if receiving the control instruction for terminating recording, stop recording,
And read and generate the start time of scheduled duration to the recording fragment between the moment for receiving the control instruction for terminating recording.
In Recording Process according to the method that recording is divided into multiple recording fragments that scheduled duration is detected can also be:Reception is opened
Whether begin the control instruction that records, and is recorded and is started timing, detect the audio amplitude of recording less than pre- in scheduled duration
If threshold value, if less than default threshold value, judge the audio amplitude that records less than threshold value duration whether reach pre-
If threshold value(For example, 1 minute)If reaching threshold value, reading and generate the sound of the initial time of scheduled duration to the recording
Frequency vibration width is just below the recording fragment between the moment of thresholding, and repeats described the step of recorded and started timing.
S102:Recording fragment is shared;
Specifically, can be paused according to scheduled duration or the sound for detecting in Recording Process after generating recording fragment,
The recording fragment can be shared in the sliced time point of each recording fragment, so that recipient quickly receives voice sheet
Section is simultaneously replied, it is achieved thereby that fast sharing.
In the recording data sharing method that Fig. 1 is provided, can be in Recording Process according to scheduled duration or the sound for detecting
Sound to pause and be divided into multiple recording fragments by recording, and these recording fragments are shared, long so as to simplify real-time sharing
The troublesome operation step of the recording data of time recording.
Refer to Fig. 2, the flow chart that Fig. 2 shows another kind of recording data sharing method provided in an embodiment of the present invention.
As shown in Fig. 2 the recording data sharing method may comprise steps of:
S201:Start to record;
Specifically, can receive user start record control signal, responsive control signal to be recorded, and record
Sound, preserves the recording data for recording.
S202:Skip the unvoiced section recorded segment time started;
Specifically, the unvoiced section of beginning, the time started of record recording fragment can skip.
S203:Long recording time timing;
Specifically, that is, the long recording time of recording fragment currently to be split is calculated.
S204:Whether long recording time reaches scheduled duration T;
Specifically, can determine whether whether the long recording time of recording fragment currently to be split reaches scheduled duration T(For example, ten
Minute)If reaching, this flow process goes to step S207;If not reaching, this flow process goes to step S205.
S205:Whether audio amplitude is less than noiseless threshold value;
Specifically, can determine whether that the audio amplitude that records whether less than default noiseless threshold value, that is, is judged in Recording Process
Whether the pause of sound is occurred, if audio amplitude is less than noiseless thresholding, this flow process goes to step S206;If audio amplitude is not low
In noiseless threshold value, then this flow process goes to step S210.
S206:Whether noiseless duration reaches threshold value T2;
Specifically, can determine whether whether audio amplitude reaches default threshold value T2 less than the duration of noiseless thresholding(For example,
2 minutes)If reaching, this flow process goes to step S207;If not reaching, this flow process goes to step S210.
S207:Recorded segment finish time;
Specifically, the long recording time in recording fragment currently to be split reaches scheduled duration T, or, currently treating point
When occurring the situation that noiseless duration is more than or equal to threshold value T2 in scheduled duration T of the recording fragment that cuts, this is can record to be split
The finish time of recording fragment, i.e. record long recording time just arrive to the time point of scheduled duration T, or, record audio amplitude is firm
Time point less than noiseless thresholding.
S208:Fragment start time is generated to the recording fragment between fragment finish time;
Specifically, can read and generate between the moment that fragment start time just arrives to scheduled duration T to long recording time
Audio fragment, or, read and generate the recording between moment of the fragment start time to audio amplitude just below noiseless thresholding
Fragment.
S209:Recording fragment is preserved, and is shared;
Specifically, the recording fragment of generation can be preserved, and by the recording fragment be shared with the webserver or
Recipient.
S210:Whether arrival recording ends up;
Specifically, judge whether to reach recording ending, for example, it may be judged whether the control for receiving user's stopping recording referring to
Order, if reaching recording ending, the start time of last scheduled duration is referred to the control for receiving user's stopping recording
Recording fragment between the moment of order is shared with recipient, and process ends;If not reaching recording ending, this flow process goes back to
To step S202, to continue to be partitioned into next recording fragment in Recording Process, till End of Tape.
In the recording data sharing method that Fig. 2 is provided, can be in Recording Process according to scheduled duration or the sound for detecting
Sound pauses and for recording to be divided into multiple recording fragments, preserves this multiple recording fragment, and dividing in each recording fragment respectively
Cut time point to share the recording fragment, so as to the troublesome operation step of real-time sharing long-time recording data can be simplified.
Fig. 3 is referred to, Fig. 3 shows a kind of structural representation of terminal provided in an embodiment of the present invention.The terminal 30 can
To be, for example, computer, smart mobile phone or IPAD etc..As shown in figure 4, the terminal 30 can include recording fragment segmentation module
301 and recording fragment sharing module 302, wherein:
Recording fragment segmentation module 301, will for being paused according to scheduled duration or the sound for detecting in Recording Process
Recording is divided into multiple recording fragments;Specifically, many according to being divided into recording of detecting of scheduled duration in Recording Process
Individual recording fragment method can be:The control instruction for starting to record is received, is recorded and is started timing, judge whether to reach
Scheduled duration(For example, 10 minutes)If reaching scheduled duration, reading and generate the recording fragment in scheduled duration, and again
Timing and recording, if not reaching, judge whether to receive the control instruction for terminating recording, if receiving the control for terminating recording
Instruction, then stop recording, and read and generate start time of scheduled duration to receive the control instruction that terminates to record when
Recording fragment between quarter.The side that recording is divided into multiple recording fragments detected according to scheduled duration in Recording Process
Method can also be:The control instruction for starting to record is received, and is recorded and is started timing, the sound of recording is detected in scheduled duration
Whether frequency vibration width is less than default threshold value, if less than default threshold value, judging that the audio amplitude that records is less than threshold value
Duration whether reach default threshold value(For example, 1 minute)If, reach threshold value, read and generate scheduled duration initial when
The audio amplitude of the recording is carved into just below the recording fragment between the moment of thresholding, and repeats described recording simultaneously
The step of starting timing.
Recording fragment sharing module 302, the recording fragment for being split to form in recording fragment segmentation module 301 are carried out point
Enjoy;Specifically, paused according to scheduled duration or the sound for detecting in Recording Process after generating recording fragment, can be each
The recording fragment is shared by the sliced time point of individual recording fragment, so that recipient quickly receives sound bite and carries out
Reply, it is achieved thereby that fast sharing.
Wherein, the terminal that Fig. 3 is provided can be paused according to scheduled duration or the sound for detecting in Recording Process will recording
Multiple recording fragments are divided into, and these recording fragments can be shared, so as to real-time sharing long-time recording can be simplified
The troublesome operation step of recording data.
Fig. 4 is referred to, Fig. 4 shows the structural representation of another kind of terminal provided in an embodiment of the present invention.Wherein, Fig. 4
Shown terminal 40 is that terminal 30 as shown in Figure 3 is optimized and obtains.In the terminal 40 shown in Fig. 4, further include
First memory module 401 and the second memory module 402, and fragment segmentation module 301 of recording may particularly include the first reception list
First 3011, first recoding unit 3012, duration judging unit 3013, the first signal generating unit 3014,3015 and of instruction detection unit
Second signal generating unit 3016, wherein:
First receiving unit 3011, starts the control instruction that records for receiving.
First recoding unit 3012, for being recorded and being started timing.
Duration judging unit 3013, for judging whether to reach scheduled duration(For example, 10 minutes).
First signal generating unit 3014, for when duration judging unit 3013 sentences out arrival scheduled duration, generate predetermined
Recording fragment in duration, and notify 3012 reclocking of the first recoding unit and recording.
Instruction detection unit 3015, for when duration judging unit 3013 is sentenced out and do not reach scheduled duration, detection is
The no control instruction for receiving end recording.
Second signal generating unit 3016 receives the control instruction for terminating recording for detecting in instruction detection unit 3015
When, stop recording, and the start time of scheduled duration is generated to the record between the moment for receiving the control instruction for terminating recording
Tablet section.
Further, the first memory module 401, for being recorded in the first cutting unit 3011 or the second cutting unit 3012
Sound simultaneously after starting timing, preserves the recording data of recording.
Second memory module 402, for splitting module 301 in Recording Process according to scheduled duration or inspection when recording fragment
The sound for measuring pauses after recording is divided into multiple recording fragments, preserves multiple recording fragments respectively, i.e., in multiple recording
Fragment is preserved when generating.
Wherein, recording can be divided into multiple recording fragments according to scheduled duration in Recording Process by the terminal that Fig. 4 is provided,
Preserve this multiple recording fragment respectively, and the recording fragment is shared by the sliced time point in each recording fragment, from
And the troublesome operation step of real-time sharing long-time recording data can be simplified.
Fig. 5 is referred to, Fig. 5 shows the structural representation of another kind of terminal provided in an embodiment of the present invention.Wherein, Fig. 5
Shown terminal 50 is that terminal 30 as shown in Figure 3 and the terminal 40 shown in Fig. 4 are optimized and obtain.At the end shown in Fig. 5
In end 50, recording fragment segmentation module 301 may particularly include the second receiving unit 3017, the inspection of the second recoding unit 3018, audio frequency
Unit 3019, pause duration judging unit 30110, the 3rd signal generating unit 30111 and notification unit 30112 is surveyed, wherein:
Second receiving unit 3017, starts the control instruction that records for receiving.
Second recoding unit 3018, for being recorded and being started timing.
Whether audio detection unit 3019, for detecting the audio amplitude of recording less than default thresholding in scheduled duration
Value.
Pause duration judging unit 30110, for detecting the audio amplitude of the recording in audio detection unit 3019
During whether less than default threshold value, judge whether the audio amplitude that records reaches default threshold value less than the duration of thresholding.
In pause duration judging unit 30110,3rd signal generating unit 30111, for judging that the audio amplitude that records is less than
When the duration of thresholding reaches default threshold value, the initial time of scheduled duration is generated to the audio amplitude that records just below thresholding
Recording fragment between moment.
Notification unit 30112, for generating the initial time of scheduled duration to the recording in the 3rd signal generating unit 30111
Audio amplitude just below the recording fragment between the moment of thresholding after, notify 3018 reclocking of the second recoding unit and record
Sound.
Wherein, the terminal that Fig. 5 is provided can be paused according to sound in Recording Process and for recording is divided into multiple recording fragments,
Preserve this multiple recording fragment respectively, and the recording fragment is shared by the sliced time point in each recording fragment, from
And the troublesome operation step of real-time sharing long-time recording data can be simplified.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
Completed with instructing the hardware of correlation by program, the program can be stored in a computer-readable recording medium, storage
Medium can include:Flash disk, read only memory(Read-Only Memory, ROM), random access device(Random Access
Memory, RAM), disk or CD etc..
Step in present invention method can carry out order adjustment according to actual needs, merge and delete.
Module or unit in embodiment of the present invention device can be merged according to actual needs, divide and be deleted.
The above recording data sharing method provided by the embodiment of the present invention and terminal are described in detail, herein
Apply specific case to be set forth principle of the invention and embodiment, the explanation of above example is only intended to help
Understand the method for the present invention and its core concept;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention,
Will change in specific embodiments and applications, in sum, this specification content is should not be construed as to this
The restriction of invention.