Summary of the invention
The large problem of data volume that can cause recorded file to occupy for the way of recording that provides in prior art is provided, the embodiment of the present invention provides a kind of way of recording, device and terminal.Described technical scheme is as follows:
First aspect, provides a kind of way of recording, and described method comprises:
Whether the voice messaging that detection collects is effective information;
If testing result, for being effective information, is recorded described voice messaging;
If testing result, for not being effective information, is not recorded described voice messaging.
In the possible implementation of the first of first aspect, whether the voice messaging that described detection collects is effective information, comprising:
Whether the volume that detects described voice messaging reaches volume threshold;
If testing result is for reaching described volume threshold, determine that described voice messaging is effective information;
If testing result is not for reaching described volume threshold, determine that described voice messaging is not effective information.
In the possible implementation of the second of first aspect, before whether the volume of the described voice messaging of described detection reaches volume threshold, described method also comprises:
Obtain the volume of the historical voice messaging gathering;
According to the volume getting, just upgrade described volume threshold.
In the third possible implementation of first aspect, the volume that described basis gets is just upgraded described volume threshold, comprising:
By the volume that in the volume getting, volume is minimum, upgrade described volume threshold.
In the 4th kind of possible implementation of first aspect, whether the voice messaging that described detection collects is effective information, comprising:
By noise identification model, described voice messaging is carried out to degree of confidence detection;
The degree of confidence obtaining if detect, lower than predetermined threshold, determines that described voice messaging is effective information;
If detect the degree of confidence obtaining, be not less than described predetermined threshold, determine that described voice messaging is not effective information.
In the 5th kind of possible implementation of first aspect, described method also comprises:
If testing result for not being effective information, is calculated and be take the last time voice messaging to be detected be moment of effective information accumulative total duration that is the finish time as initial time, current time;
In the position of recording the voice messaging of described initial time collection, insert event flag, described event flag is used to indicate and when playing recorded file to described position, plays the blank recording with described accumulative total duration, and after playing described blank recording, continues to play the content of described recorded file.
Second aspect, provides a kind of recording device, and described recording device comprises:
Whether information detection module is effective information for detection of the voice messaging collecting;
The first object module, when being effective information, records described voice messaging for the testing result at described information detection module;
The second object module, when being not effective information, does not record described voice messaging for the testing result at described information detection module.
In the possible implementation of the first of second aspect, described information detection module, comprising:
Whether volume detecting unit, reach volume threshold for detection of the volume of described voice messaging;
The first result unit, when reaching described volume threshold, determines that described voice messaging is effective information for the testing result in described volume detecting unit;
The second result unit, when not reaching described volume threshold, determines that described voice messaging is not effective information for the testing result in described volume detecting unit.
In the possible implementation of the second of second aspect, described device also comprises:
Volume acquisition module, for obtaining the volume of the historical voice messaging gathering;
Threshold value update module, just upgrades described volume threshold for the volume getting according to described volume acquisition module.
In the third possible implementation of second aspect, described threshold value update module, also upgrades described volume threshold for the minimum volume of volume volume by getting.
In the 4th kind of possible implementation of second aspect, described information detection module, comprising:
Information detecting unit, for carrying out degree of confidence detection by noise identification model to described voice messaging;
The 3rd result unit, when detecting the degree of confidence obtain lower than predetermined threshold, determines that described voice messaging is effective information for the testing result in described information detecting unit;
The 4th result unit, while being not less than described predetermined threshold for the testing result in described information detecting unit for detecting the degree of confidence obtaining, determines that described voice messaging is not effective information.
In the 5th kind of possible implementation of second aspect, described device also comprises:
Duration calculation module,, calculates and take the last time voice messaging to be detected be moment of effective information accumulative total duration that is the finish time as initial time, current time when being not effective information for the testing result at described information detection module;
Information flag module, for inserting event flag in the position of recording the voice messaging of described initial time collection, described event flag is used to indicate and when playing recorded file to described position, plays the blank recording with described accumulative total duration, and after playing described blank recording, continues to play the content of described recorded file.
The third aspect, provides a kind of terminal, and it comprises the recording device in the various implementations that second aspect or second aspect provide.
The beneficial effect of the technical scheme that the embodiment of the present invention provides is:
Whether the voice messaging collecting by detection is effective information, thus in testing result when being effective information, recorded speech information, and in testing result when being not effective information, recorded speech information not.Solved in prior art owing to starting request and all carry out recording to receiving in whole time period of ending request receiving, thus the data volume that the recorded file causing occupies large problem; Reached and can the invalid information in the voice messaging collecting not recorded, thus the effect of the data volume that minimizing recorded file occupies.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, the present invention is described in further detail, and obviously, described embodiment is only a part of embodiment of the present invention, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making all other embodiment that obtain under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment mono-
Please refer to Fig. 1, it shows the method flow diagram of the way of recording that the embodiment of the present invention one provides, and this way of recording can comprise:
Step 101, detects whether the voice messaging collecting is effective information;
Step 102, if testing result is for being effective information, recorded speech information;
Step 103, if testing result is not for being effective information, recorded speech information not;
In sum, the way of recording that the present embodiment provides, whether the voice messaging collecting by detection is effective information, thus in testing result when being effective information, recorded speech information, and in testing result when being not effective information, recorded speech information not.Solved in prior art owing to starting request and all carry out recording to receiving in whole time period of ending request receiving, thus the data volume that the recorded file causing occupies large problem; Reached and can the invalid information in the voice messaging collecting not recorded, thus the effect of the data volume that minimizing recorded file occupies.
Embodiment bis-
Please refer to Fig. 2, it shows the method flow diagram of the way of recording that the embodiment of the present invention two provides, and this way of recording can comprise:
Step 201, obtains the volume of the historical voice messaging gathering;
Recorded program in user opens a terminal and click and to start recording after, terminal can Real-time Collection voice messaging, and for the execution of subsequent step, terminal can be obtained the volume of the historical voice messaging gathering.
Concrete, in order to reduce the processing complexity of terminal, terminal can be obtained the once volume of the historical voice messaging gathering every predetermined amount of time, and wherein the historical voice messaging gathering refers to the voice messaging gathering in the historical time section before current slot; Such as, terminal is obtained the volume of the voice messaging once gathering in it previous month week about; Also can be all voice messagings that current slot gathers before; And the counting accuracy of the more subsequent steps of number of the volume getting is higher.
Step 202, just upgrades volume threshold according to the volume getting;
Recorded program can arrange the volume threshold that a volume training of speaking according to masses obtains when dispatching from the factory, and the volume of speaking due to different user difference to some extent all, such as some user's the volume of speaking is lower, the volume that some user speaks is higher; So for the use habit of being more close to the users, after terminal gets the volume of the historical voice messaging gathering, terminal can be upgraded volume threshold according to the volume getting.
Wherein, the step that terminal is upgraded volume threshold according to the volume getting can comprise: by the volume that in the volume getting, volume is minimum, upgrade volume threshold.
Concrete, in the volume of the voice messaging that the history getting in terminal gathers, in the situation that hypothesis noise is certain, the volume that volume is minimum can be similar to the minimal volume that representative of consumer is spoken within the time period before, that is to say, volume is not probably the voice messaging that user says lower than other voice messaging of minimal volume, so terminal can be upgraded volume threshold by the volume that in the volume getting, volume is minimum.
Such as, the volume threshold of recorded program setting is 40dB, and user A one's voice in speech belongs to higher crowd, and the minimal volume that he speaks is 45dB; And user B one's voice in speech belongs to crowd on the low side, its minimal volume of speaking is 35dB; So for user A, the volume collecting is all likely noise lower than the voice messaging of 45dB, so record noise for fear of terminal, thereby reduce the size of the data volume of recorded file, the volume that in the volume that terminal can get, volume is minimum is set to new volume threshold; Similarly, for user B, the minimal volume of the sound of speaking of user B is lower than volume threshold 40dB, so it is too high that volume threshold is set for this user, when reality is used, for the sound user that can allow terminal collect user need to improve the volume of oneself, using method is inconvenience extremely, so use for the ease of user, the minimum volume 35dB that terminal can gather is set to volume threshold.
It should be noted that, step 201 and step 202 are optional steps, and when actual realization, terminal can adopt the volume threshold of recorded program acquiescence and directly perform step 203, and the present embodiment does not limit this.
Step 203, whether the volume that detects voice messaging reaches volume threshold; If testing result is for reaching volume threshold, determine that voice messaging is effective information, perform step 204, if testing result is not for reaching volume threshold, determine that voice messaging is invalid information, performs step 206;
Whether the volume that terminal can detect the voice messaging of collection reaches volume threshold.Such as, the volume of the voice messaging of terminal collection is 43dB, and volume threshold is 35dB, and whether the volume 43dB that terminal can detect the voice messaging of collection reaches volume threshold 35dB.
If testing result is for reaching volume threshold, determines that voice messaging is effective information, and perform step 204;
If the volume that the testing result of terminal is the voice messaging that collects reaches volume threshold, the sound of speaking that probably comprises user in the voice messaging of now terminal collection is described, and this part voice messaging voice messaging that user needs often, so now terminal can determine that voice messaging is effective information, and jumps to step 204.
If testing result is not for reaching volume threshold, determines that voice messaging is not effective information, and perform step 206.
And if the testing result of terminal is not for reaching volume threshold, illustrate and in the voice messaging of the current collection of terminal, there is no fear of the sound of speaking that comprises user, it is all very likely noise around, this part voice messaging is garbage for user, so it is not effective information that terminal can be determined voice messaging, and now jumps to step 206.
Concrete, when actual realization, the step whether volume of terminal detection voice messaging reaches volume threshold can also comprise: whether the volume that terminal detects the voice messaging gathering in historical time section reaches volume threshold, and wherein historical time section refers to that be the time period that collects the moment of voice messaging and have scheduled duration the finish time.Such as, historical time section is 3S, after terminal collects current voice messaging, whether the volume that terminal can detect the voice messaging gathering in 3S before all reaches volume threshold; If testing result is for all reaching volume threshold, terminal can determine that the voice messaging of current collection is effective information; Otherwise if the testing result of terminal is not for all reaching volume threshold, terminal can determine that the voice messaging of current collection is not effective information, the present embodiment does not repeat them here.
In addition, the mode whether volume that the present embodiment just detects voice messaging reaches volume threshold judges whether voice messaging is effective information, when actual realization, whether the voice messaging that terminal can also detect collection is noise, and in testing result when being not noise, determine that voice messaging is effective information, the present embodiment is to judging that whether voice messaging is that definite mode of effective information does not limit.
Step 204, filters voice messaging, removes the noise information in voice messaging;
If the testing result of terminal is that the voice messaging collecting is effective information; owing to being subject to the impact of surrounding environment; in the voice messaging of terminal collection, conventionally can comprise the noise from environment; so size for the data volume that further minimizing recorded file occupies; terminal can also first be filtered voice messaging, thereby removes the noise information in voice messaging.When actual realization, terminal can detect vad algorithm by sound end and remove the noise in voice messaging.Concrete, due to the frequency of user's speech utterance and the frequency of noises such as vehicle whistle, keyboard sound or animal cry different, so in order to remove these noises, terminal can be filtered the voice messaging collecting by vad algorithm, and after terminal is removed noise information, terminal can perform step 205.Certainly when actual realization, terminal can also remove the noise information in voice messaging by the mode of high-pass filtering or low-pass filtering, and the present embodiment does not limit its specific implementation.
Step 205, recorded speech information;
Terminal is recorded the voice messaging collecting.
Step 206, not recorded speech information.
If the testing result of terminal is that the voice messaging collecting is not effective information, the data volume now occupying in order to reduce recorded file, terminal can not recorded the voice messaging collecting.
When actual realization, in order better to reproduce scene at that time when playing recorded file, thereby improve user, experience, in the testing result of terminal, when being not effective information, terminal can also be carried out following steps:
The first, calculate and take the last time voice messaging to be detected be moment of effective information accumulative total duration that is the finish time as initial time, current time;
Terminal can be calculated and take the last time voice messaging to be detected be moment of effective information accumulative total duration that is the finish time as initial time, current time.Concrete, owing to all may occurring pausing between two sections of voice, so when terminal detects voice messaging and is not effective information, terminal can be calculated the dead time between two sections of voice messagings that gather in this recording process, is also that terminal can be calculated the last time the moment that the historical voice messaging gathering is effective information to be detected be the accumulative total duration that initial time, current time are the finish time.
Such as, with user, use terminal to be recorded as example to user and good friend's conversation content, after user sends inquiry, good friend has thought deeply 5S problem has been answered,, during the 5S of good friend's thinking, the voice messaging that terminal can detect collection is not effective information; And detect while not being effective information in terminal, terminal can be obtained the last time, and voice messaging to be detected be that effective information is also the initial time of this pause, and calculate from initial time and start to take the accumulative total duration that current time is the finish time, thereby obtain total duration of this pause.
The second, in the position of recording the voice messaging of initial time collection, insert event flag.
In order to be marked in recorded file, when occurred pausing and how long having paused, after terminal calculates accumulative total duration, terminal can be inserted event flag in the position of recording the voice messaging of initial time collection.Wherein, event flag is used to indicate plays the blank recording with accumulative total duration when playing recorded file to position, and after playing blank recording, continues to play the content of recorded file.
Such as, user is to good friend's inquiry " you know how tomato is said in English ", good friend answers " tomato " after having thought deeply 5S, when terminal detects the voice messaging of the previous moment collection of voice messaging " tomato ", it is not effective information that terminal can detect voice messaging, and calculate accumulative total duration be 5S, now terminal can be inserted event flag in the position of finish time of recorded content " you know how tomato is said in English ", thereby during the recorded file of having recorded in terminal plays, after playing " you know how tomato is said in English ", terminal can read event flag, thereby no longer continue to play the subsequent content of recorded file, but play according to the content of event flag indication, also play the blank recording of 5S, and the content in recorded file is play in continuation after 5S, also continue the recording that play content is " tomato ".
In sum, the way of recording that the present embodiment provides, whether the voice messaging collecting by detection is effective information, thus in testing result when being effective information, recorded speech information, and in testing result when being not effective information, recorded speech information not.Solved in prior art owing to starting request and all carry out recording to receiving in whole time period of ending request receiving, thus the data volume that the recorded file causing occupies large problem; Reached and can the invalid information in the voice messaging collecting not recorded, thus the effect of the data volume that minimizing recorded file occupies.
The present embodiment is by only recording volume lower than the voice messaging of volume threshold, in the recorded file that makes finally to obtain, do not comprise blank information, thereby when playing recorded file, user's stand-by period in the time of can avoiding playing invalid information, and then improve the effect that user experiences; In addition, the present embodiment, by first remove the noise in voice messaging between recording, has further reduced the data space that recorded file occupies.
Although the present embodiment is not recorded the voice messaging that is not effective information, but, by inserting event flag in the position of recording the last effective information, make playing recorded file when inserting the position of event flag, can play the blank recording of accumulative total duration, and after the blank recording that plays event flag indication, continue to play the content in recorded file; When having reached the data space occupying in minimizing recorded file, when playing recorded file, still can be similar to the full content restoring while recording, and the recording in voice messaging is not time period of effective information restoring is the clean recording after denoising, thereby give user the effect that good user experiences.
Embodiment tri-
Please refer to Fig. 3, it shows the method flow diagram of the way of recording that the embodiment of the present invention three provides, and this way of recording can comprise:
Step 301, carries out degree of confidence detection by noise identification model to the voice messaging collecting; The degree of confidence obtaining if detect, lower than predetermined threshold, determines that voice messaging is effective information and performs step 302; If detect the degree of confidence obtaining, be not less than predetermined threshold, determine that voice messaging is not effective information and performs step 303;
Recorded program in user opens a terminal and click and to start recording after, terminal can Real-time Collection voice messaging, and by noise identification model, the voice messaging collecting is carried out to degree of confidence detection.Wherein, in noise identification model, can comprise common interference noise, such as s cough, raspberry, the sound of closing the door, doorbell sound, knock or vehicle whistle sound etc.
The content comprising due to noise identification model is the training pattern of interference noise, so the degree of confidence detecting in terminal is during lower than predetermined threshold, illustrate now and voice messaging can not be confirmed as to noise information, also be that voice messaging is the effective information useful to user, so terminal now can determine that the voice messaging collecting is effective information, and continue execution step 302;
And if the degree of confidence that terminal detects is not less than predetermined threshold, explanation now can determine that voice messaging is exactly noise information, so now terminal can determine that the voice messaging collecting is not effective information, can continue to perform step 303.
Step 302, recorded speech information;
Terminal is recorded the voice messaging collecting.
Step 303, not recorded speech information.
If the testing result of terminal is that the voice messaging collecting is not effective information, the data volume now occupying in order to reduce recorded file, terminal can not recorded the voice messaging collecting.
When actual realization, in order better to reproduce scene at that time when playing recorded file, thereby improve user, experience, in the testing result of terminal, when being not effective information, terminal can also be carried out following steps:
The first, calculate and take the last time voice messaging to be detected be moment of effective information accumulative total duration that is the finish time as initial time, current time;
Terminal can be calculated and take the last time voice messaging to be detected be moment of effective information accumulative total duration that is the finish time as initial time, current time.Concrete, owing to all may occurring pausing between two sections of voice, so when terminal detects voice messaging and is not effective information, terminal can be calculated the dead time in the middle of the voice messaging that gathers in this recording process, is also that terminal can be calculated the last time the moment that the historical voice messaging gathering is effective information to be detected be the accumulative total duration that initial time, current time are the finish time.
Such as, with user, use terminal to be recorded as example to user and good friend's conversation content, after user sends inquiry, good friend has thought deeply 5S problem has been answered,, during the 5S of good friend's thinking, the voice messaging that terminal can detect collection is not effective information; And detect while not being effective information in terminal, terminal can be obtained the last time, and voice messaging to be detected be that effective information is also the initial time of this pause, and calculate from initial time and start to take the accumulative total duration that current time is the finish time, thereby obtain total duration of this pause.
The second, in the position of recording the voice messaging of initial time collection, insert event flag.
In order to be marked in recorded file, when occurred pausing and how long having paused, after terminal calculates accumulative total duration, terminal can be inserted event flag in the position of recording the voice messaging of initial time collection.Wherein, event flag is used to indicate plays the blank recording with accumulative total duration when playing recorded file to position, and after playing blank recording, continues to play the content of recorded file.
Such as, user is to good friend's inquiry " you know how tomato is said in English ", good friend answers " tomato " after having thought deeply 5S, when terminal detects the voice messaging of the previous moment collection of voice messaging " tomato ", it is not effective information that terminal can detect voice messaging, and calculate accumulative total duration be 5S, now terminal can be inserted event flag in the position of finish time of recorded content " you know how tomato is said in English ", thereby during the recorded file of having recorded in terminal plays, after playing " you know how tomato is said in English ", terminal can read event flag, thereby no longer continue to play the subsequent content of recorded file, but play according to the content of event flag indication, also play the blank recording of 5S, and the content in recorded file is play in continuation after 5S, also continue the recording that play content is " tomato ".
In sum, the speech method that the present embodiment provides, whether the voice messaging collecting by detection is effective information, thus in testing result when being effective information, recorded speech information, and in testing result when being not effective information, recorded speech information not.Solved in prior art owing to starting request and all carry out recording to receiving in whole time period of ending request receiving, thus the data volume that the recorded file causing occupies large problem; Reached and can the invalid information in the voice messaging collecting not recorded, thus the effect of the data volume that minimizing recorded file occupies.
The present embodiment is by using noise identification model to carry out degree of confidence detection to voice messaging, and the degree of confidence obtaining in detection is during lower than predetermined threshold, and confirmation voice messaging is effective information; And the degree of confidence obtaining in detection is while being not less than predetermined threshold, determines that voice messaging is not effective information; Thereby only record testing result and be effective information voice messaging and do not record the voice messaging that testing result is invalid information, reached and can reduce the required data space occupying of invalid information in recorded file, and when playing recorded file, can only play the effective information useful to user, thereby improved the efficiency of user's obtaining information, and then improved the effect that user experiences.
Although the present embodiment is not recorded the voice messaging that is not effective information, but, by inserting event flag in the position of recording the last effective information, make playing recorded file when inserting the position of event flag, can play the blank recording of accumulative total duration, and after the blank recording that plays event flag indication, continue to play the content in recorded file; When having reached the data space occupying in minimizing recorded file, when playing recorded file, still can be similar to the full content restoring while recording, and the recording in voice messaging is not time period of effective information restoring is the clean recording after denoising, thereby give user the effect that good user experiences.
It should be noted that, the present embodiment is just to be used noise identification model to carry out degree of confidence detection to voice messaging, noise identification model comprises common interference noise, thereby determine whether voice messaging is that effective information is example, when actual realization, the content of the effective information needing according to different use scenes users is also different, such as, user is in U.S. street corner and domestic good friend chat, and record this chat content by mobile phone, under this scene, user is only concerned about the Chinese information that good friend says, and and be indifferent to the particular content of the english information of periphery, also now english information is not just effective information for user, in noise identification model under this scene, except common interference noise, English training pattern can also be set, so the particular content in noise identification model can be provided with according to different user demands different contents, the present embodiment does not limit the particular content in noise identification model.
Embodiment tetra-
Please refer to Fig. 4, it shows the block diagram of the recording device that the embodiment of the present invention four provides, this recording device can be realized and be become all or part of in terminal by software, hardware or both combinations, and this recording device can comprise: information detection module 410, the first object module 420 and the second object module 430;
Whether information detection module 410 is effective information for detection of the voice messaging collecting;
The first object module 420, when being effective information, records described voice messaging for the testing result at described information detection module 410;
The second object module 430, when being not effective information, does not record described voice messaging for the testing result at described information detection module 410.
In sum, the recording device that the present embodiment provides, whether the voice messaging collecting by detection is effective information, thus in testing result when being effective information, recorded speech information, and in testing result when being not effective information, recorded speech information not.Solved in prior art owing to starting request and all record to receiving in whole time period of ending request receiving, thus the data volume that the recorded file causing occupies large problem; Reached and can the invalid information in the voice messaging collecting not recorded, thus the effect of the data volume that minimizing recorded file occupies.
Embodiment five
Please refer to Fig. 5 A, it shows the block diagram of the recording device that the embodiment of the present invention five provides, this recording device can be realized and be become all or part of in terminal by software, hardware or both combinations, and this recording device can comprise: information detection module 510, the first object module 520 and the second object module 530;
Whether information detection module 510 is effective information for detection of the voice messaging collecting;
The first object module 520, when being effective information, records described voice messaging for the testing result at described information detection module 510;
The second object module 530, when being not effective information, does not record described voice messaging for the testing result at described information detection module 510.
In the possible implementation of the first of the present embodiment, described information detection module 510, comprising:
Whether volume detecting unit 511, reach volume threshold for detection of the volume of described voice messaging;
The first result unit 512, when reaching described volume threshold, determines that described voice messaging is effective information for the testing result in described volume detecting unit 511;
The second result unit 513, when not reaching described volume threshold, determines that described voice messaging is not effective information for the testing result in described volume detecting unit 511.
In the possible implementation of the second of the present embodiment, described device also comprises:
Volume acquisition module 540, for obtaining the volume of the historical voice messaging gathering;
Threshold value update module 550, just upgrades described volume threshold for the volume getting according to described volume acquisition module 540.
In the third possible implementation of the present embodiment,
Described threshold value update module 550, also upgrades described volume threshold for the minimum volume of volume volume by getting.
In the 4th kind of possible implementation of the present embodiment, described information detection module 510, comprising:
Information detecting unit 514, for carrying out degree of confidence detection by noise identification model to described voice messaging;
The 3rd result unit 515, when detecting the degree of confidence obtain lower than predetermined threshold, determines that described voice messaging is effective information for the testing result in described information detecting unit 514;
The 4th result unit 516, while being not less than described predetermined threshold for the testing result in described information detecting unit 514 for detecting the degree of confidence obtaining, determines that described voice messaging is not effective information.
In the 5th kind of possible implementation of the present embodiment, described device also comprises:
Duration calculation module 560,, calculates and take the last time voice messaging to be detected be moment of effective information accumulative total duration that is the finish time as initial time, current time when being not effective information for the testing result at described information detection module;
Information flag module 570, for inserting event flag in the position of recording the voice messaging of described initial time collection, described event flag is used to indicate and when playing recorded file to described position, plays the blank recording with described accumulative total duration, and after playing described blank recording, continues to play the content of described recorded file.
In sum, the recording device that the present embodiment provides, whether the voice messaging collecting by detection is effective information, thus in testing result when being effective information, recorded speech information, and in testing result when being not effective information, recorded speech information not.Solved in prior art owing to starting request and all carry out recording to receiving in whole time period of ending request receiving, thus the data volume that the recorded file causing occupies large problem; Reached and can the invalid information in the voice messaging collecting not recorded, thus the effect of the data volume that minimizing recorded file occupies.
The present embodiment is by only recording volume lower than the voice messaging of volume threshold, in the recorded file that makes finally to obtain, do not comprise blank information, thereby when playing recorded file, user's stand-by period in the time of can avoiding playing invalid information, and then improve the effect that user experiences; In addition, the present embodiment, by first remove the noise in voice messaging between recording, has further reduced the data space that recorded file occupies.
Although the present embodiment is not recorded the voice messaging that is not effective information, but, by inserting event flag in the position of recording the last effective information, make playing recorded file when inserting the position of event flag, can play the blank recording of accumulative total duration, and after playing blank recording, continue to play the content in recorded file; When having reached the data space occupying in minimizing recorded file, when playing recorded file, still can be similar to the full content restoring while recording, thereby give user the effect that good user experiences.
It should be noted that: the recording device that above-described embodiment provides and terminal are when recording, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the inner structure of the equipment of being about to is divided into different functional modules, to complete all or part of function described above.In addition, the embodiment of the method for the recording device that above-described embodiment provides and terminal and the way of recording belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.