The automatic sound-recording function of conversingTechnical field
The present invention relates to electronic device field, relate in particular to the automatic sound-recording function of a kind of conversation.The user make a return journey the electricity process in, mobile phone can enroll the user make a return journey the electricity call-information, make things convenient for the user to remove to inquire about the voice messaging in the communication process.
Background technology
At present a kind of can be to contact person's the conversation function of recording automatically.When people when using mobile phone or telephone set, it is very important that some conversations are arranged, and need remain.This demand has just been satisfied in realization of the present invention.The user can open the automatic sound-recording function of conversation according to the needs of oneself.When setting up (comprising incoming call and/or exhalation) when taking on the telephone, this time conversation just begins recording from a moment of connecting, and hangs up up to phone.Recording can be stored in mobile phone and the telephone set, can supply the user to access this calling record at any time.Such invention, the function that has made things convenient for the user can listen to repeatedly, practicality very convenient to use for important conversation.
Summary of the invention
To the disappearance of existing platform mobile phone in this function, the object of the invention provides a kind of automatic sound-recording function of conversation that on mobile phone, adds.
Goal of the invention of the present invention realizes through following technical scheme.
The automatic sound-recording function of conversing; Design corresponding menu structure,, be written to the disk space of mobile phone automatically according to user's audio files; The memory space that comprises fuselage internal memory and T-Flash card; If mobile phone does not have the T-flash card, storage medium can be transformed on the system space of mobile phone automatically, and the name form of storage can automatic distinguishing SIM1 card and SIM2 card and the electric telephone number of making a return journey simultaneously.Described cellphone subscriber opens the automatic sound-recording function of conversation through the control of MENU menu item; When setting up when taking on the telephone (comprise incoming call or breathe out); Whether mobile phone calling interface mmi_sndrec_entry_in_call has opened automatic conversation camping function through judging in the mobile phone, whether have the file of effective document storage in the mobile phone; Whether there are enough memory headrooms to remove this time of access calling record; If under the situation that all conditions all satisfy, will get into the recording call interface automatically, accomplish the calling record function of this conversation.When this conversation of setting up (comprises incoming call; Or breathe out) when being hung up; The automatic calling interface mmi_sndrec_stop_record of the inner meeting of program; Eject automatic prompting frame, point out the user whether to preserve this dialog context once more, the user can according to current dialog context information whether importance confirm whether to preserve current this dialog context.
The design of described menu structure adopts high bright and hiding menu structure to show.
The storage format of two kinds of patterns is adopted in the input of sound and storage, divides audio format and the size that takies memory space.
In the time of the insufficient memory of mobile phone, can store into automatically on the T-flash card, reach big capacity storage.
After described calling record finished, the acoustic medium medium of storage can come together to name automatically with the electric user's that makes a return journey the number date on the same day to distinguish SIM.
Description of drawings
Fig. 1 demonstrates sketch map for the present invention;
Fig. 2 is a code flow sketch map of the present invention;
Fig. 3 is end of conversation demonstration sketch map of the present invention;
Fig. 4 starts the demonstration graph signal for the present invention records;
Fig. 5 is routine demonstration sketch map for the present invention begins to record;
Fig. 6 is chkdsk example demonstration sketch map of the present invention;
Fig. 7 is End of Tape example demonstration sketch map of the present invention.
Embodiment
How further specify the present invention below in conjunction with accompanying drawing 1-Fig. 7 realizes:
Embodiment 1
As shown in Figure 1, whole summary description figure of this invention, we can design user's the various statements of requirements and relevant mobile phone reply in the relevant summary design of definition, and optimize the calling record interface simultaneously, make the user feel perfect.We can remove to detect user's disk space when accomplishing start each time, if user's disk space less than the preset value of system, we can go to point out the user to remove to carry out Disk Cleanup.
Simultaneously, we also can remove to detect disk space in the process of calling record, prevent the user in communication process next time because disk space can not be recorded inadequately memory function.
As shown in Figure 2, the code flow of startup calling record is accomplished corresponding style flow chart.
As shown in Figure 3, finish this calling record, function m mi_sndrec_get_new_file obtains the new filename and the form of file.The suffix of the file of the audio format of storage is wav and amr.Audio files shows tonequality and takies the different of memory space because of the difference of storage format.
As shown in Figure 4, judge this flow process of whether can recording normally, otherwise report an error that the recording flow process finishes.
As shown in Figure 5, recording starts beginning, and the MMI layer sends message through past L4 layer, after L4 receives message, and the operating process of beginning feedback user.Read the audio files of calling record, be written to then in the disk, save as the audio files of corresponding form.
As shown in Figure 6, behind the End of Tape, can whether preserve by automatically prompting user, if the user abandons this calling record, directly turn back to standby interface.
As shown in Figure 7, after calling record finished, system can detect disk space automatically, if disk space does not reach the preset value of system, can point out user's defrag space.