CN106776684A - A kind of audio file management method, device and terminal - Google Patents
A kind of audio file management method, device and terminal Download PDFInfo
- Publication number
- CN106776684A CN106776684A CN201610973122.8A CN201610973122A CN106776684A CN 106776684 A CN106776684 A CN 106776684A CN 201610973122 A CN201610973122 A CN 201610973122A CN 106776684 A CN106776684 A CN 106776684A
- Authority
- CN
- China
- Prior art keywords
- file
- audio file
- audio
- record
- information
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/61—Indexing; Data structures therefor; Storage structures
Abstract
The invention discloses a kind of audio file management method, device and terminal, by to record using audio file press from both sides under audio file check, when a certain audio file does not exist under checking audio file folder, by record using media database in the file record of the audio file be set to unactivated state, and it is arranged to the file record of unactivated state, do not shown in the user mutual display interface of recording application.So, when audio file changes, after causing former audio file not exist, file record of the audio file in media database is not deleted, and after the audio file for changing recovers, file record of the audio file in media database can be corresponded to and given for change;Meanwhile, the file record of unactivated state does not show in the user mutual display interface of recording application and can avoid that non-existent file is played out and edited, and can further lift the satisfaction of Consumer's Experience.
Description
Technical field
The present invention relates to file management field, more specifically to a kind of audio file management method, device and end
End.
Background technology
In the mobile Internet epoch, with popularizing for intelligent terminal, the sound-recording function of terminal is more and more intelligent,
The frequency of use more and more higher of recording application.
Recording at present is applied in operation, and the file record in meeting calling system media database is corresponding so as to find
Audio file under file.But, if the audio file under file changes, now recording application is operated again
When, the corresponding file record of audio file changed in the media database of system can be deleted.For example, recording application
Recording broadcasting list in the corresponding audio file such as " audio 1 ", " audio 2 ", " audio 3 " be all stored in SD (Secure
Digital, safe digital) card in, the SD card is removed, hereafter again to " audio 1 ", " audio in the recording broadcasting list of recorder
2 " when, " audio 3 " etc. is operated (such as the operation such as broadcasting or editor), it is found that above-mentioned audio file does not exist, now
The file record of above-mentioned each audio file in the media database of recording application can be deleted.Therefore, existing recording should
During used in operation, correspondence renewal will not be actively carried out to the file record in media database according to the change of audio file,
Cause when file does not exist, user operates in the User Interface of recording application to non-existent file, can send out
Existing this document has not existed, and misleading user has carried out unnecessary operation;Meanwhile, existing recording is applied to non-existent text
When part is operated and found that this document does not exist, the renewal to the file record in database is directly to delete this document note
Record, comes back to when during former audio file being pressed from both sides, due to being deleted for this document record this results in non-existent file
It can not normally be recovered, be reduced the satisfaction of Consumer's Experience.
The content of the invention
The technical problem to be solved in the present invention is:Current recording is applied in operation, will not be according to the change of audio file
Change and correspondence renewal is actively carried out to the file record in media database, the operation of user can be misled, meanwhile, to not existing
File when being operated and being found that this document does not exist, the renewal to the file record in database is directly to delete this document
Record, when result in non-existent file and coming back in former audio file folder, due to this document record be deleted without
It can normally be recovered, be reduced the satisfaction of Consumer's Experience.For the technical problem, there is provided a kind of audio file management
Method, device and terminal.
In order to solve the above technical problems, the present invention provides a kind of audio file management method, methods described includes:
To record using audio file press from both sides under audio file check;
When checking a certain audio file under audio file folder and not existing, by the media database of the recording application
In the file record of the audio file be set to unactivated state;Be unactivated state file record it is described recording application
User mutual display interface is not shown.
Further, the audio file under being pressed from both sides to the audio file carries out inspection to be included:Scanography and/or fixed point inspection
Look into:
The scanography includes:
When the default condition of scanning is triggered, the audio file attribute of the lower current each audio file of the audio file folder is obtained
Information, and obtain the file attribute record information in current each file record in the media database;
The audio file attribute information for obtaining is matched with each file attribute record information, according to matching
Result determines the update status of audio file;
Fixed point inspection includes:
During a certain audio file update notification of the audio file folder for receiving third-party application transmission, audio text is obtained
The audio file attribute information of part, and obtain the file attribute record information of the audio file in the media database;
The audio file attribute information for obtaining is matched with the file attribute record information, is tied according to matching
Fruit determines the update status of audio file.
Further, the audio file under being pressed from both sides to the audio file check when including scanography, described default
The condition of scanning includes following at least one:
Recording application starts or enters the user mutual display interface of recording application;
External memory card is removed or inserted;
The audio file folder content update for receiving third-party application transmission is notified.
Further, the audio file attribute information and the file attribute record information include will obtain described in
Audio file attribute information is matched with the file attribute record information, and the renewal of audio file is determined according to matching result
Situation includes:
When the file store path and file duration in a certain file attribute record information and each audio file attribute
When store path and file duration in information are all mismatched, determine that the corresponding audio file of this document attribute record information is not deposited
;
When the file store path and file duration in a certain audio file attribute information and each file attribute record
When store path and file duration in information are all mismatched, determine that the corresponding audio file of audio file attribute information is new
Increase file;
When the file store path and file duration in a certain audio file attribute information are remembered with a certain file attribute
When store path and file duration in record information are all matched, but the corresponding file record of this document attribute record information is not swash
During state living, the corresponding audio file of audio file attribute information is determined to recover file;
File duration in the file duration in a certain audio file attribute information with a certain file attribute record information
Match, and the two file store path for including is mismatched and this document attribute record information and other each file attribute informations
When all mismatching, determine that the corresponding audio files storage path of the audio file attribute information is changed;
File in the file duration in a certain audio file attribute information and at least two file attribute record information
Duration is matched, but in file store path in the audio file attribute information and at least two file attribute records information
Store path when all mismatching, determine that the corresponding audio file of audio file attribute information is newly-increased file;
File in the file store path in a certain audio file attribute information with a certain file attribute record information
Store path is matched, and the two file duration for including is mismatched and this document attribute record information and other each file attributes
When information is all mismatched, determine that the corresponding audio file duration of the audio file attribute information is changed.
Further, when it is determined that result for audio file for recover file when, also including the audio file is corresponding
File record is revised as state of activation by unactivated state;
When it is determined that result for audio file be newly-increased file when, also added including extracting the file record of the newly-increased file
In the media database;
When it is determined that result changed for audio files storage path when, also including by the audio file corresponding file note
Store path in record is updated to the store path in the audio file attribute information of the audio file.
When it is determined that result changed for audio file duration when, also including by the corresponding file record of the audio file
The file duration file duration that is updated in the audio file attribute information of the audio file.
Further, methods described also includes:
State is unactivated state and meets the file record of failure condition as failure in obtaining the media database
File record, the failure condition is that unused time exceedes preset time value and/or frequency of use is less than default frequency of use;
The obsolete documents record that will be got is deleted.
Further, at least part of file record in the media database includes crucial recovery attribute information, described
Key recovers attribute information includes that file remark information, file tag information and time get at least one in information ready;
Methods described also includes:Using a certain state it is unactivated state and meets the file record of failure condition as mistake
It is such as no also including judging whether include crucial recovery attribute information in this document record before effect file record, then as
Obsolete documents are recorded.
Further, the invention provides a kind of audio file managing device, described device includes:
File checking module, for record using audio file press from both sides under audio file check;
Processing module, for when a certain audio file does not exist under checking the audio file folder, by the recording
Using media database in the file record of the audio file be set to unactivated state;It is the file record of unactivated state
Do not shown in the user mutual display interface of the recording application.
Further, the file checking module is used to, when the default condition of scanning is triggered, obtain the audio file folder
The audio file attribute information of lower current each audio file, and obtain current each file record in the media database
File attribute record information;The audio file attribute information for obtaining and each file attribute record information are carried out
Match somebody with somebody, the update status of audio file are determined according to matching result;
And/or, the file checking mould is used for a certain audio text of the audio file folder for receiving third-party application transmission
During part update notification, the audio file attribute information of the audio file is obtained, and obtain audio text in the media database
The file attribute record information of part;The audio file attribute information for obtaining and the file attribute record information are carried out
Match somebody with somebody, the update status of audio file are determined according to matching result.
Further, the audio file attribute information and the file attribute record information include the file checking
Mould is used for:
Judge that file store path and file duration in a certain file attribute record information belong to each audio file
Store path and file duration in property information all mismatch the corresponding audio file of breath and do not exist;
Judge that file store path and file duration in a certain audio file attribute information are remembered with each file attribute
When store path and file duration in record information are all mismatched, determine that the corresponding audio file of audio file attribute information is
Newly-increased file;
Judge the file store path and file duration and a certain file attribute in a certain audio file attribute information
Store path and file duration in record information are all matched, but the corresponding file record of this document attribute record information is not swash
During state living, the corresponding audio file of audio file attribute information is determined to recover file;
When judging the file in file duration in a certain audio file attribute information and a certain file attribute record information
Matching long, and the two file store path for including is mismatched and this document attribute record information is believed with other each file attributes
When breath is all mismatched, determine that the corresponding audio files storage path of the audio file attribute information is changed;
Judge the text in the file duration and at least two file attribute record information in a certain audio file attribute information
Part duration is matched, but file store path and at least two file attribute records information in the audio file attribute information
In store path when all mismatching, determine that the corresponding audio file of audio file attribute information is newly-increased file;
Judge the text in file store path in a certain audio file attribute information and a certain file attribute record information
Part store path is matched, and the two file duration for including is mismatched and this document attribute record information and other each file category
When property information is all mismatched, determine that the corresponding audio file duration of the audio file attribute information is changed.
Further, the processing module is additionally operable to the result determined in the file checking module for audio file is extensive
During multiple file, the corresponding file record of the audio file is revised as state of activation by unactivated state.
Further, present invention also offers a kind of terminal comprising above-mentioned audio file managing device.
Beneficial effect
Audio file management method, device and terminal that the present invention is provided, under being pressed from both sides by the audio file to recording application
Audio file checked, when check audio file folder under a certain audio file do not exist when, by record application media
The file record of the audio file is set to unactivated state in database, and is arranged to the file record of unactivated state,
Do not shown in the user mutual display interface of recording application.So, when audio file changes, former audio file is caused
After not existing, file record of the audio file in media database is not deleted, after the audio file for changing recovers,
File record of the audio file in media database can be corresponded to and given for change;Meanwhile, the file record of unactivated state is in recording
The user mutual display interface of application does not show can avoid that non-existent file is played out and edited, and improve user's body
The satisfaction tested.
Brief description of the drawings
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the hardware architecture diagram for realizing the optional mobile terminal of each embodiment one of the invention.
Fig. 2 is the audio file management method schematic flow sheet that the embodiment of the present invention one is provided;
Fig. 3 is the scanography schematic flow sheet that the embodiment of the present invention one is provided;
Fig. 4 is the fixed point check process schematic diagram that the embodiment of the present invention one is provided;
Fig. 5 is the audio file screening process schematic diagram that the embodiment of the present invention one is provided;
Fig. 6 is the obsolete documents record purge schematic flow sheet that the embodiment of the present invention one is provided;
Fig. 7 is the display interface figure of a certain recording application that the embodiment of the present invention one is provided;
Fig. 8 is the terminal structure schematic diagram comprising audio file managing device that the embodiment of the present invention three is provided;
Fig. 9 is the audio file managing device structural representation that the embodiment of the present invention three is provided;
Figure 10 is a kind of more specifically audio file managing device structural representation that the embodiment of the present invention three is provided;
Figure 11 is a kind of audio file management method schematic flow sheet that the embodiment of the present invention four is provided.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The terminal of each embodiment of the invention is realized referring now to Description of Drawings.In follow-up description, using being used for
The suffix of such as " module ", " part " or " unit " of element is represented only for being conducive to explanation of the invention, itself is not
There is specific meaning.Therefore, " module " can be used mixedly with " part ".
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention can include such as mobile phone,
Smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP are (portable
Multimedia player), the mobile terminal and the such as fixed terminal of numeral TV, desktop computer etc. of guider etc..
Hereinafter it is assumed that terminal is mobile terminal, however, it will be understood by those skilled in the art that, except being used in particular for moving purpose
Outside element, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware architecture diagram for realizing the optional mobile terminal of each embodiment one of the invention.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user input
Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190
Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups for showing
Part, can alternatively implement more or less component, and the element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system
Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module
112nd, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server
Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent
The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information
And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting
Signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase
Pass information can also be provided via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 is received.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of DMB (DMB)
The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast
Receiver module 111 can receive signal and broadcast by using various types of broadcast systems.Especially, broadcasting reception module 111
Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video
Broadcast-hand-held (DVB-H), Radio Data System, the received terrestrial digital broadcasting integrated service of forward link media (MediaFLO@)
Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111 may be constructed such that and be adapted to provide for extensively
Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via broadcasting reception module 111 receive broadcast singal and/
Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point etc.), exterior terminal and clothes
Business at least one of device and/or receive from it radio signal.Such radio signal can include voice call signal,
Video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro
(WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant
Tooth TM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybee TM etc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module
Typical case be GPS (global positioning system).According to current technology, GPS module 115 is calculated and comes from three or more satellites
Range information and correct time information and the Information application triangulation for calculating, so as to according to longitude, latitude
Highly accurately calculate three-dimensional current location information.Currently, defended using three for calculating the method for position and temporal information
Star and the position that is calculated by using other satellite correction and the error of temporal information.Additionally, GPS module 115
Can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include the He of camera 121
Microphone 1220, the static map that 121 pairs, camera is obtained in Video Capture pattern or image capture mode by image capture apparatus
The view data of piece or video is processed.Picture frame after treatment may be displayed on display module 151.At camera 121
Picture frame after reason can be stored in memory 160 (or other storage mediums) or carried out via wireless communication unit 110
Send, two or more cameras 121 can be provided according to the construction of mobile terminal.Microphone 122 can telephone calling model,
Sound (voice data) is received via microphone in logging mode, speech recognition mode etc. operational mode, and can be by this
The acoustic processing of sample is voice data.Audio (voice) data after treatment can be converted in the case of telephone calling model
The form that mobile communication base station can be sent to via mobile communication module 112 is exported.Microphone 122 can be implemented various types of
Noise eliminate (or suppress) algorithm eliminating (or suppression) in the noise for receiving and producing during sending audio signal or
Interference.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input
Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch
Plate (for example, detection due to being touched caused by resistance, pressure, electric capacity etc. change sensitive component), roller, rocking bar etc.
Deng.Especially, when touch pad is superimposed upon on display module 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, (for example, mobile terminal 1 00 opens or closes shape
State), the presence or absence of the contact (that is, touch input) of the position of mobile terminal 1 00, user for mobile terminal 1 00, mobile terminal
The acceleration or deceleration movement of 100 orientation, mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00
The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed
The sliding-type phone is opened or closed.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or
Whether person's interface unit 170 couples with external device (ED).Sensing unit 140 can include proximity transducer 141.
Interface unit 170 is connected the interface that can pass through with mobile terminal 1 00 as at least one external device (ED).For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can be that storage uses each of mobile terminal 1 00 for verifying user
Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included
Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know
Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for reception and come from
The input (for example, data message, electric power etc.) of the external device (ED) and input that will be received is transferred in mobile terminal 1 00
One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 can serve as allowing by it by electricity
Power provides to the path of mobile terminal 1 00 from base or can serve as allowing the various command signals being input into from base to pass through it
It is transferred to the path of mobile terminal.Be can serve as recognizing that mobile terminal is from the various command signals or electric power of base input
The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio and/or tactile manner
Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).
Output unit 150 can include display module 151, dio Output Modules 152, alarm modules 153 etc..
Display module 151 may be displayed on the information processed in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity
During words call mode, display module 151 can show and converse or other communicate (for example, text messaging, multimedia file
Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern
Or during image capture mode, display module 151 can show the image of capture and/or the image of reception, show video or figure
UI or GUI of picture and correlation function etc..
Meanwhile, when display module 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display module
151 can serve as input unit and output device.Display module 151 can include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent
Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific
Desired implementation method, mobile terminal 1 00 can include two or more display modules (or other display devices), for example, moving
Dynamic terminal can include outside display module (not shown) and internal display module (not shown).Touch-screen can be used to detect touch
Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
It is that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode
The voice data transducing audio signal of middle storage and it is output as sound.And, dio Output Modules 152 can be provided and movement
The audio output (for example, call signal receives sound, message sink sound etc.) of the specific function correlation that terminal 100 is performed.
Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm modules 153 can provide output and be notified to mobile terminal 1 00 with by event.Typical event can be with
Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm modules
153 can in a different manner provide output with the generation of notification event.For example, alarm modules 153 can be in the form of vibrating
Output is provided, when calling, message or some other entrance communication (incoming communication) are received, alarm mould
Block 153 can provide tactile output (that is, vibrating) to notify to user.Exported by providing such tactile, even if
When in pocket of the mobile phone of user in user, user also can recognize that the generation of various events.Alarm modules 153
The output of the generation of notification event can be provided via display module 151 or dio Output Modules 152.
Memory 160 can store software program for the treatment and control operation performed by controller 180 etc., Huo Zheke
Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And
And, memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal
Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many
Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can perform memory with by network connection
The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data
Communication, video calling etc. related control and treatment.In addition, controller 180 can be included for reproducing (or playback) many matchmakers
The multi-media module 181 of volume data, multi-media module 181 can be constructed in controller 180, or can be structured as and control
Device 180 is separated.Controller 180 can be with execution pattern identifying processing, the handwriting input that will be performed on the touchscreen or picture
Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit
Appropriate electric power needed for part and component.
Various implementation methods described herein can be with use such as computer software, hardware or its any combination of calculating
Machine computer-readable recording medium is implemented.Implement for hardware, implementation method described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein
At least one in electronic unit is implemented, and in some cases, such implementation method can be implemented in controller 180.
For software implementation, the implementation method of such as process or function can with allow to perform the single of at least one function or operation
Software module is implemented.Software code can be come by the software application (or program) write with any appropriate programming language
Implement, software code can be stored in memory 160 and performed by controller 180.
So far, oneself according to its function through describing mobile terminal.Below, for the sake of brevity, will description such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is used as showing
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
It is described in detail below by way of specific embodiment.
First embodiment
The present embodiment provides a kind of audio file management method, and it can be used in the daily life of user, to audio text
Part is checked;And when checking a certain audio file and not existing, by the file record of the audio file in media database
It is set to unactivated state.If so audio file recovers, the file note in the corresponding media database of the audio file
Record information will not lose, and improve the satisfaction of Consumer's Experience.
It should be appreciated that in the present embodiment, it refers to that audio file was present that audio file does not exist, but should when checking
Audio file has not existed.For example, there being audio file 1 in SD card, the SD card is removed, now checked, audio file 1 is just
Do not exist, the file record of media database middle pitch frequency file 1 is set to unactivated state.Audio file is in the absence of including forever
Long be deleted or temporarily be removed, behind can recover two kinds of situations.
In the present embodiment, audio file management method can be found in shown in Fig. 2, including:
S201:To record using audio file press from both sides under audio file check;
S202:A certain audio file is not when existing under checking audio file folder, by the media database of application of recording
The file record of the audio file is set to unactivated state.
It is that the file record of unactivated state is not shown in the user mutual display interface of recording application in the present embodiment
Show.It should be appreciated that user mutual display interface can be refreshed, by refreshing at user mutual display interface only display
In the file record of state of activation, the file record for unactivated state is hidden.
It is that the file record of unactivated state can be activated after activation condition is met in the present embodiment, file after activation
Record information will not lose.
It should be appreciated that in the present embodiment, recording application can correspond to an audio file folder, it is also possible to which correspondence is multiple
Audio file is pressed from both sides.For example, one audio file folder of recording application correspondence, checks that the audio under being pressed from both sides only for the audio file is literary
Part is carried out, and the remaining paper folder outside will not being pressed from both sides to the audio file is checked.
Again for example, recording application two audio files of correspondence are pressed from both sides, one of audio file sandwiched is placed in the storage of terminal
In device, another is arranged in SD card, and the audio file that checking can be directed under foregoing two audio file folder is carried out, when wherein any
When audio file under one audio file folder changes, corresponding audio file can be checked and be whether there is.Should
Understand, in this example, the memory or SD card sound intermediate frequency file of terminal can only not set one, it is also possible to set many
It is individual.
It should be appreciated that in the present embodiment, user mutual display interface including but not limited to:Playlist display interface
With Document Editing display interface.When judging that certain audio file does not exist, the file record of the audio file will not be in played column
The user mutual display interface such as table display interface and Document Editing display interface is shown.
In the present embodiment, the mode that the audio file under being pressed from both sides to audio file is checked at least includes scanography and determines
One kind in point inspection.
The process that is checked of audio file under being pressed from both sides to audio file by scanography mode referring to Fig. 3, including:
S301:Judge whether the default condition of scanning triggers;If so, going to S302;Otherwise, S306 is gone to;
S302:Obtain the audio file attribute information of the lower current each audio file of audio file folder;
S303:File attribute record information in acquisition media database in current each file record;
S304:The audio file attribute information of acquisition is matched with each file attribute record information;
S305:The update status of audio file are determined according to matching result.
S306:Return to step S301 is judged next time.
It is worth noting that, in the present embodiment, the condition of scanning is preset with, only when the default condition of scanning is triggered,
Audio file under being pressed from both sides to audio file by scanography mode is checked.The inspection can be to the institute under audio file folder
There is audio file to be checked.
It should be appreciated that the default condition of scanning at least includes that recording application starts or enter the user mutual of recording application
Display interface;External memory card is removed or inserted;Receive third-party application transmission audio file folder content update notify in
One kind.Include at least one in following three kinds of situations:
When recording application starts or enters the user mutual display interface of recording application, for example, when recording application,
Or when being back to playlist display interface, all audio files under being pressed from both sides to audio file are scanned inspection.
When external memory card is removed or is inserted, for example, when SD card removal occurring or inserting, under being pressed from both sides to audio file
All audio files are scanned inspection.It should be appreciated that the external memory card in the present embodiment refers to memory space,
In addition to foregoing SD card, U can be can also be using its memory space and access terminal as the External memory equipment in extension storage space
The External memory equipments such as disk, mobile hard disk.
When the audio file folder content update for receiving third-party application transmission is notified, for example, registration listening broadcast, when
When recording application receives such broadcast, all audio files under being pressed from both sides to audio file are scanned inspection.It should be appreciated that
Now audio file folder content update notifies it is to notify that all audio files under being pressed from both sides to audio file are scanned inspection.
The process that is checked of audio file under being pressed from both sides to audio file by pinpointing test mode referring to Fig. 4, including:
S401:Judge whether that the renewal of a certain audio file of the audio file folder for receiving third-party application transmission is led to
Know;If so, going to S402;Otherwise, S406 is gone to;
S402:Obtain the audio file attribute information of the audio file;
S403:Obtain the file attribute record information of the audio file in media database;
S404:The audio file attribute information of acquisition is matched with file attribute record information;
S405:The update status of audio file are determined according to matching result.
S406:Return to step S401 is judged next time.
It is worth noting that, in the present embodiment, it is only a certain under the audio file folder for receiving third-party application transmission
During the update notification of audio file, the audio file under just being pressed from both sides to audio file by way of pinpointing and checking is checked.
The inspection sends a certain audio file under the audio file folder of update notification and is checked only for third-party application.
For example, registration listening broadcast, when recording using audio file press from both sides under a certain audio file change when, can receive
To the broadcast that the audio file has been updated is informed, the audio file attribute information and file attribute of the audio file are then obtained
Record information is simultaneously matched, so that it is determined that the update status of audio file.
It should be appreciated that the renewal of a certain audio file of the audio file folder that the third-party application for receiving sends is led to
Know, can inform that recording has been updated using the audio file, fixed point inspection can be carried out;Can also be comprising the audio
The notice of file attribute information and the current file attribute information of the audio file before file renewal.
For example, the update notification that third-party application sends only informs audio file folder subaudio frequency file 1 be updated, this
The audio file attribute information of the acquisition audio file is needed afterwards, while obtaining the file category of the audio file in media database
Property record information, then matched and determined update result.
Again for example, in the update notification that sends of third-party application, inform before audio file folder subaudio frequency file 1 updates
File attribute information and current file attribute information, then recording application can directly according to current file attribute information with obtain
The file attribute record information of the media database middle pitch frequency file 1 got is matched and is determined to update result.
In the present embodiment, file attribute record information can directly to be obtained by way of obtaining whole file record,
The information for the part matched with audio file attribute information can only be extracted.
In the present embodiment, audio file attribute information and file attribute record information include the audio for being used to be matched
File attribute information and file attribute record information at least include the present embodiment in, the audio file in the case where being pressed from both sides to audio file
Before being checked, including primary screening is carried out to the file under audio file folder, select the audio file under file.Specifically
, referring to Fig. 5, screening process includes:
S501:Judge whether file suffixes is the audio formats such as .mp3/.amr;If so, going to S504;Otherwise, go to
S502;
S502:Resolution file header;
S503:Judge Mimetype whether comprising " audio/ " field;If so, going to S504;Otherwise, terminate.
S504:Determine that this document is audio file.
Specifically, for example, the file 1 received under update notification sound intermediate frequency file is updated, then to the suffix of file 1
Judged, if the audio format such as .mp3/.amr, then judged that file 1 is audio file, is checked;If not
.mp3/.amr audio format is waited, then the header of resolution file 1, judges its Mimetype whether comprising " audio/ " field etc.
To determine whether audio file, if comprising, judge that file 1 is audio file, checked, if not including, judge text
Part 1 is not audio file, is not checked.
It should be appreciated that recording using the lower audio file of audio file folder can be to the text under audio file folder
Part carries out the audio file after primary screening, can directly be checked;Can also not screen, be sieved again before inspection
Choosing.
In the present embodiment, referring to Fig. 6, audio file management method also includes:
S601:Obtain the file record in media database;
S602:Judge whether the file record for obtaining is unactivated state;If so, going to S603;Otherwise, S605 is gone to;
S603:Judge whether the file record for obtaining meets failure condition;If so, going to S604;Otherwise, S605 is gone to;
S604:The file record of acquisition is recorded and deleted as obsolete documents.
S605:This document record is held in media database relaying continuation of insurance.
In the present embodiment, failure condition includes that unused time exceedes preset time value and frequency of use and used less than default
At least one in frequency.Then wherein presetting frequency of use can be:Number of times/All Files that a certain file record is previously used
The total degree that record is previously used;Or this document number of times for being used daily of record etc..I.e. failure condition at least includes following three
The situation of example:
For example, it is assumed that preset time value is 30 days, file record 1 is not used for 31 days, then judge that file record 1 is expired
Sufficient failure condition, if file record 1 is unactivated state, file record 1 is recorded for obsolete documents, and file record 1 is deleted.
For example, it is assumed that default frequency of use is the 0.1 (number of times that a certain file record is previously used/All Files record quilt
Used total degree), the frequency of use of file record 1 is 0.09, then judge that file record 1 meets failure condition, if file is remembered
Record 1 is unactivated state, then file record 1 is obsolete documents record, and file record 1 is deleted.
Again for example, it is assumed that preset time value is 6 months, it is 0.1 to preset frequency of use, and file record 1 did not made more than 6 months
With, and the frequency of use of file record 1 is less than 0.1 simultaneously, then judge that file record 1 meets failure condition, if file record 1 is not for
State of activation, then file record 1 is obsolete documents record, and file record 1 is deleted.
In the present embodiment, using a certain state it is unactivated state and meets the file record of failure condition as failure text
Before part record, also include:Judge whether recover attribute information comprising key in this document record, it is such as no, then as mistake
Effect file record.
It should be appreciated that the crucial attribute information that recovers includes:File remark information, file tag information and time beat
At least one in point information;At least part of file record in media database includes that the key recovers attribute information.With Fig. 7
As a example by, Fig. 7 is the display interface figure of a certain recording application, wherein 71 is file remark information, including recording picture and word etc.
Information;72 is file tag information, and label information is " interview " in figure;73 get information ready for the time.
Each operating procedure of audio file management method that the present embodiment is provided specifically can be by being implemented in end as shown in Figure 1
Controller in end is realized.
The audio file management method that the present embodiment is provided, the audio file under being pressed from both sides by the audio file to recording application
Checked, when a certain audio file does not exist under checking audio file folder, will be somebody's turn to do in the media database of application of recording
The file record of audio file is set to unactivated state, and is arranged to the file record of unactivated state, is applied in recording
User mutual display interface do not shown.So, after audio file state updates, the audio file state update before
File record in media database is not deleted, and after the audio file that state updates recovers, the audio file is in media
File record in database can be corresponded to be given for change;Meanwhile, the file record of unactivated state shows in the user mutual of recording application
Showing that interface does not show can avoid playing and editing non-existent file, improve the satisfaction of Consumer's Experience.
Second embodiment
In order to be better understood from the present invention, the present embodiment on the basis of first embodiment, with audio file attribute information
As a example by including with file attribute record information, further example is done to audio file management method detailed process of the invention and is said
It is bright.
In the present embodiment, the audio file attribute information of acquisition is matched with file attribute record information, according to
The update status for determining audio file with result include:
When the file store path and file duration in a certain file attribute record information and each audio file attribute information
In store path and file duration when all mismatching, determine that the corresponding audio file of this document attribute record information does not exist;
It should be appreciated that the present embodiment middle pitch frequency file is in the absence of including being forever deleted or being temporarily removed two kinds of feelings
Condition.
For example, after third-party application (such as file manager) deletes certain audio file, under traversal recording file folder
All Files, file store path and file duration in the file attribute record information of original audio file with it is existing
Each audio file attribute information in store path and file duration all mismatch, determine that the audio file does not exist, update
Corresponding file record in database, and it is set to unactivated state.
Again for example, certain audio file sandwiched is placed in SD card, there is part audio file in audio file folder.Remove the SD
Block, now part audio file is temporarily lost (be temporarily removed), travel through the All Files under existing recording file folder, be stored in
File store path and file duration and existing each sound in the file attribute record information of the part audio file in SD card
Store path and file duration in frequency file attribute information are all mismatched, and determine that the part audio file does not exist, and update number
According to corresponding file record in storehouse, and it is set to unactivated state.
When the file store path and file duration in a certain audio file attribute information and each file attribute record information
In store path and file duration when all mismatching, determine that the corresponding audio file of audio file attribute information is newly-increased text
Part.
In the present embodiment, when it is determined that result for audio file be newly-increased file when, extract the file note of the newly-increased file
Record is added in media database.
For example, an audio file 1 is increased newly in the case where recording file is pressed from both sides by third-party application (such as file manager), now
Obtain each file attribute record in file store path and file duration and the media database in the attribute information of audio file 1
Store path and file duration in information are all mismatched, it is determined that audio file 1 is newly-increased file, extracts audio file 1
File record is added in media database.
When the file store path and file duration in a certain audio file attribute information are believed with a certain file attribute record
When store path and file duration in breath are all matched, but the corresponding file record of this document attribute record information is un-activation shape
During state, the corresponding audio file of audio file attribute information is determined to recover file.
In the present embodiment, when it is determined that result for audio file for recover file when, by the corresponding file of the audio file
Record is revised as state of activation by unactivated state.
For example, certain audio file sandwiched is placed in SD card, there is part audio file in audio file folder.Remove before
The SD card, now moves into the SD card.During due to removing before, the corresponding document record in media database is not deleted
Remove, now check the file store path and file duration and media that still can be found in the part audio file attribute information
Store path and file duration matching in database in certain partial document attribute record information, it is determined that the part audio file
To recover file, while the corresponding file record of part audio file is revised as into state of activation by unactivated state.
File duration in the file duration in a certain audio file attribute information with a certain file attribute record information
Match, and the two file store path for including is mismatched and this document attribute record information and other each file attribute informations
When all mismatching, determine that the corresponding audio files storage path of the audio file attribute information is changed.
In the present embodiment, when it is determined that result changed for audio files storage path when, also including by the audio file
Store path in corresponding file record is updated to the store path in the audio file attribute information of the audio file.
For example, by certain audio file RNTO alternative document name when, now the audio file is still suffered from, its file attribute
Store path changes in information, but other attribute informations do not change.This is the corresponding audio of audio file attribute information
A kind of concrete condition that file store path is changed.Now by the file duration and media data in audio file attribute information
File duration matching in All Files attribute record information in storehouse, necessarily there is the file in a file attribute record information
Duration can the match is successful, if this document duration file attribute record information only one of which that the match is successful, and both file deposits
Storage path is mismatched, and the store path of this document attribute record information is changed in the audio file current file attribute information
Store path, other information keep it is constant.
File in the file duration in a certain audio file attribute information and at least two file attribute record information
Duration is matched, but in file store path in the audio file attribute information and at least two file attribute records information
Store path when all mismatching, determine that the corresponding audio file of audio file attribute information is newly-increased file;
With reference to upper example, during by certain audio file RNTO alternative document name, now the audio file is still suffered from, its file
Store path changes in attribute information, but other attribute informations do not change.Now by the text in audio file attribute information
Part duration is matched with the file duration in the All Files attribute record information in media database, and discovery has multiple file attributes
File duration in record information is matched, then do not know to be changed for the store path, and it is new to be to determine the audio file
Increase file, the file record for extracting the audio file is added in media database.
File in the file store path in a certain audio file attribute information with a certain file attribute record information
Store path is matched, and the two file duration for including is mismatched and this document attribute record information and other each file attributes
When information is all mismatched, determine that the corresponding audio file duration of the audio file attribute information is changed.
In the present embodiment, when it is determined that result changed for audio file duration when, also including by the audio file correspondence
File record in the file duration file duration that is updated in the audio file attribute information of the audio file.
For example, after deleting certain audio file under audio file folder, copying into a new audio file, and be named as the quilt
Delete the filename of audio file.Now the store path of file does not change, and file duration is changed.This is audio file category
A kind of concrete condition that the file duration of the property corresponding audio file of information is changed.Now by audio file attribute information
Store path is matched with the store path in the All Files attribute record information in media database, necessarily has a file to belong to
Property record information in store path can the match is successful, if both file duration mismatch, by this document attribute record information
In the file duration file duration that is changed in the audio file current file attribute information, other information keeps constant.
It should be appreciated that the present embodiment sound intermediate frequency file attribute information also includes modification with file attribute record information
Time.After being modified to a certain audio file, store path and file duration in its audio file attribute information with it is right
Store path and file duration in the file attribute record information answered still are matched, then correspond to modification this document attribute record letter
Modification time is the modification time in the audio file attribute information in breath.
With reference to upper example, after deleting certain audio file under audio file folder, a new audio file is copied into, and be named as
The filename of the deleted audio file.If now having store path energy and the file duration in a file attribute record information
The match is successful with the store path in audio file attribute information and file duration, then only change this document attribute record information
Middle modification time is the modification time in the audio file attribute information.
Each operating procedure of audio file management method that the present embodiment is provided specifically can be by being implemented in end as shown in Figure 1
Controller in end is realized.
The audio file management method that the present embodiment is provided, according to audio file attribute information and file attribute record information
Middle store path can respectively be illustrated with the Different matching situation of file duration.Make a concrete analysis of in difference more
The operation processing method of the audio file under new situation, realize audio file delete, recover, after modification in media database
The recovery and reservation of the key message of respective file record, improve the satisfaction of Consumer's Experience.
3rd embodiment
Reference picture 8, a kind of terminal structure schematic diagram that Fig. 8 is provided for third embodiment of the invention, including audio file pipe
Reason device 2, the structure of audio file managing device 2 referring to Fig. 9, including:
File checking module 21, for record using audio file press from both sides under audio file check.
Processing module 22, for when a certain audio file does not exist under checking audio file folder, recording being applied into it
The file record of the audio file is set to unactivated state in media database.
It is that the file record of unactivated state is not shown in the user mutual display interface of recording application in the present embodiment
Show.
It is that the file record of unactivated state can be activated after activation condition is met in the present embodiment, file after activation
Record information will not lose.
It should be appreciated that in the present embodiment, recording application can correspond to an audio file folder, it is also possible to which correspondence is multiple
Audio file is pressed from both sides.For example, recording application only one audio file of correspondence folder, file checking module 21 when checking, only for this
Audio file under audio file folder is carried out, and the remaining paper folder outside will not being pressed from both sides to the audio file is checked.
Again for example, recording application two audio files of correspondence are pressed from both sides, one of audio file sandwiched is placed in the storage of terminal
In device, another is arranged in SD card, and during inspection, file checking module 21 can be directed to the audio text under foregoing two audio file folder
Part is carried out, and when the audio file under wherein any one audio file folder changes, file checking module 21 can be examined
Corresponding audio file is found to whether there is.It should be appreciated that in this example, the memory or SD card sound intermediate frequency file of terminal
One can only not be set, it is also possible to set multiple.
It should be appreciated that in the present embodiment, user mutual display interface including but not limited to:Playlist display interface
With Document Editing display interface.
In the present embodiment, the recording of file checking module 21 pairs using audio file press from both sides under audio file carry out inspection bag
Include:When the default condition of scanning is triggered, the audio file attribute information of the lower current each audio file of audio file folder is obtained, and obtained
Take the file attribute record information in current each file record in media database;Will obtain audio file attribute information with
Each file attribute record information is matched, and the update status of audio file are determined according to matching result;
And/or, when a certain audio file update notification of audio file folder of third-party application transmission is received, obtain
The audio file attribute information of the audio file, and obtain the file attribute record information of the audio file in media database;
The audio file attribute information of acquisition is matched with file attribute record information, audio file is determined according to matching result
Update status.
It is worth noting that, in the present embodiment, file checking module 21 is applied when the default condition of scanning is triggered to recording
The lower audio file of audio file folder checked, all audio files under audio file folder can be checked.
It should be appreciated that in the present embodiment, the default condition of scanning at least includes recording application startup or enters recording should
User mutual display interface;External memory card is removed or inserted;Receive in the audio file folder of third-party application transmission
Hold the one kind in three kinds of update notification.Specifically:
When file checking module 21 detects recording application starts or enter the user mutual display interface of recording application,
For example, into recording using when or when being back to playlist display interface, all audio files under being pressed from both sides to audio file
Checked.
When file checking module 21 detects external memory card to be removed or insert, for example, when generation SD card is removed or is inserted
Fashionable, all audio files under being pressed from both sides to audio file are checked.
When the audio file folder content update for receiving third-party application transmission is notified, for example, registration listening broadcast, when
When recording application receives such broadcast, all audio files under file checking module 21 is pressed from both sides to audio file are checked.Should
When understanding, now audio file folder content update notifies it is all under circular document checks module 21 to audio file folder
Audio file is checked.
It is worth noting that, in the present embodiment, file checking module 21 is receiving the audio text of third-party application transmission
During a certain audio file update notification of part folder to record using audio file press from both sides under audio file check, be only pin
The a certain audio file sent to third-party application under the audio file folder of update notification is checked.
For example, registration listening broadcast, when recording using audio file press from both sides under a certain audio file change when, file
Check that module 21 can receive the broadcast for informing that the audio file has been updated, then obtain the audio file attribute of the audio file
Information and file attribute record information are simultaneously matched, so that it is determined that the update status of audio file.
It should be appreciated that the renewal of a certain audio file of the audio file folder that the third-party application for receiving sends is led to
Know, can inform that the audio file has been updated, the audio file can be checked;Can also be comprising the audio
The notice of file attribute information and the current file attribute information of the audio file before file renewal.
In the present embodiment, file checking module 21 can be belonged to directly obtaining file by way of obtaining whole file record
Property record information, it is also possible to only extract the information for the part matched with audio file attribute information.
In the present embodiment, audio file attribute information and file attribute record information include being used for file checking module 21
The audio file attribute information and file attribute record information for being matched at least include the present embodiment in, file checking module
21 are additionally operable to:
Judge that file store path and file duration in a certain file attribute record information are believed with each audio file attribute
When store path and file duration in breath are all mismatched, determine that the corresponding audio file of this document attribute record information is not deposited
.
It should be appreciated that the present embodiment middle pitch frequency file is in the absence of including being forever deleted or being temporarily removed two kinds of feelings
Condition.For example, certain audio file is deleted by third-party application (such as file manager), or, remove preserving part audio text
The SD card of part.
Judge that file store path and file duration in a certain audio file attribute information are believed with each file attribute record
When store path and file duration in breath are all mismatched, determine that the corresponding audio file of audio file attribute information is newly-increased
File.For example, increasing an audio file newly in the case where recording file is pressed from both sides by third-party application (such as file manager).
Judge the file store path and file duration and a certain file attribute record in a certain audio file attribute information
Store path and file duration in information are all matched, but the corresponding file record of this document attribute record information is un-activation shape
During state, the corresponding audio file of audio file attribute information is determined to recover file.
In the present embodiment, when the result that file checking module 21 determines for audio file is processing module when recovering file
The corresponding file record of the audio file is revised as state of activation by 22 by unactivated state.For example, preserving portion by what is removed
The SD card of partial frequency file is moved into again, now processing module 22 by the corresponding file record of audio file in SD card by not swashing
Status modifier living is state of activation.
When judging the file in file duration in a certain audio file attribute information and a certain file attribute record information
Matching long, and the two file store path for including is mismatched and this document attribute record information is believed with other each file attributes
When breath is all mismatched, determine that the corresponding audio files storage path of the audio file attribute information is changed.For example, by certain audio
File RNTO alternative document name, and file duration in the audio file attribute information only with media database in one
File duration matching in file attribute record information.
Judge the text in the file duration and at least two file attribute record information in a certain audio file attribute information
Part duration is matched, but in file store path and at least two file attribute record information in the audio file attribute information
When store path is all mismatched, determine that the corresponding audio file of audio file attribute information is newly-increased file.For example, by certain sound
In frequency file RNTO alternative document name, and file duration in the audio file attribute information and media database two or
File duration matching in more than two file attribute record information.
Judge the text in file store path in a certain audio file attribute information and a certain file attribute record information
Part store path is matched, and the two file duration for including is mismatched and this document attribute record information and other each file category
When property information is all mismatched, determine that the corresponding audio file duration of the audio file attribute information is changed.For example, deleting audio
After certain audio file under file, a new audio file is copied into, and be named as the filename of the deleted audio file
When.In the present embodiment, audio file management also includes audio file screening module 23, referring to Figure 10, in file checking mould
Before block 21 is checked the audio file under audio file folder, the file under being pressed from both sides to audio file carries out primary screening, selects
Audio file under file.Specifically, whether can be by file suffixes be the audio formats such as .mp3/.amr, or pass through
Whether resolution file header, its Mimetype includes " audio/ " field etc. to determine whether audio file.
For example, the file 1 that file checking module 21 is received under update notification sound intermediate frequency file is updated, audio file
Screening module 23 is judged the suffix of file 1, if the audio format such as .mp3/.amr, then judges that file 1 is audio text
Part, is checked;If not audio formats such as .mp3/.amr, then the header of resolution file 1, judges that its Mimetype is
It is no to determine whether audio file comprising " audio/ " field etc., if comprising, judge that file 1 is audio file, examined
Look into, if not including, judge that file 1 is not audio file, do not checked.
It should be appreciated that recording using audio file press from both sides under audio file can be audio file screening module 23
File under being pressed from both sides to audio file carries out the audio file after primary screening, can directly be checked;Can also not screen,
Screened again before inspection.
In the present embodiment, state is unactivated state and meets mistake during processing module 22 is additionally operable to obtain media database
The file record of effect condition is recorded as obsolete documents, and the obsolete documents record that will be got is deleted.
In the present embodiment, failure condition includes that unused time exceedes preset time value and frequency of use and used less than default
At least one in frequency.Then wherein presetting frequency of use can be:Number of times/All Files that a certain file record is previously used
The total degree that record is previously used;Or this document number of times for being used daily of record etc..
In the present embodiment, a certain state is unactivated state and meets the file record of failure condition by processing module 22
Before being recorded as obsolete documents, can also judge in this document record whether to recover attribute information comprising crucial, it is such as no, then by its
Recorded as obsolete documents.
It should be appreciated that the crucial attribute information that recovers includes:File remark information, file tag information and time beat
At least one in point information;At least part of file record in media database includes that the key recovers attribute information.This reality
The concrete structure for applying the terminal comprising audio file managing device 2 provided in example is referred to Fig. 1.Wherein document management apparatus
The function of 2 file checking module 21, processing module 22 and audio file screening module 23 can be by terminal as shown in Figure 1
Controller realize, file checking module 21, processing module 22 and audio file screening module 23 can be specifically configured in such as Fig. 1
In the controller of shown terminal.
The terminal comprising audio file managing device 2 that the present embodiment is provided, should by the 21 pairs of recording of file checking module
With audio file press from both sides lower audio file and checked, when a certain audio file does not exist under checking audio file and pressing from both sides,
The file record of the audio file in the media database of application of recording is set to unactivated state by processing module 22, and is set
The file record of unactivated state is set to, is not shown in the user mutual display interface of recording application.So, when audio text
After part state updates, the audio file state updates the preceding file record in media database and is not deleted, in state more
After new audio file recovers, file record of the audio file in media database can be corresponded to and given for change;Meanwhile, un-activation shape
The file record of state is not shown in the user mutual display interface of recording application, it is to avoid user plays and editor does not exist
File, improve the satisfaction of Consumer's Experience.
Fourth embodiment
In order to be better understood from the present invention, the present embodiment on the basis of 3rd embodiment, with audio file attribute information
As a example by including with file attribute record information, the one kind for the terminal comprising audio file managing device 2 provided the present invention
Optional specific work process does further illustration, referring to Figure 11, including:
S1101:File under audio file screening module 23 is pressed from both sides to audio file is screened;
Audio file screening module 23 when being screened, can to File header information according to file suffixes and parsing etc. come
Judged, filtered out the audio file under audio file folder.
S1102:File checking module 21 is checked audio file;
File checking module 21 can be triggered and receive the audio text of third-party application transmission according to the default condition of scanning
Part folder content update notifies that determination respectively is that all audio files under audio file folder are checked, or only to audio
Specific audio frequency file under file is checked.
Wherein, in startup recording application, or the user mutual display interface that recording is applied is entered, or external memory card is removed
Or insertion (such as SD card into and out), or receive the audio file folder content update of third-party application transmission and notify (such as
Listen to the broadcast message of registration) when, all audio files under file checking module 21 can be pressed from both sides to audio file are checked.
S1103:File checking module 21 determines the update status of audio file according to the result for checking;
File checking module 21 can respectively obtain in the audio file attribute information of audio file and matchmaker when checking
In file attribute record information in volume data storehouse in file record, and matched, audio text is determined according to matching result
The update status of part.
The update status of audio file at least include:Audio file does not exist;Audio file is newly-increased file;Audio file
To recover file;Audio file by change this several situation.
S1104:Processing module 22 carries out different media databases and updates operation respectively according to the difference of update status;
Wherein audio file does not exist and includes:Original audio file is deleted situations such as being removed with SD card, now media number
Unactivated state is set to according to the respective file record in storehouse.
Audio file is that newly-increased file includes:Copy situations such as under new audio file is pressed from both sides to audio file, now in matchmaker
Corresponding file record is added in volume data storehouse, and is set to state of activation.
Audio file includes to recover file:Situations such as SD card is reinserted, will now correspond in media database
The file record of unactivated state is set to state of activation.Audio file is included by modification:Audio file RNTO other
Filename or delete recording file after, copy one audio file of the same name situations such as, now in media database will correspondence text
File attribute record information in part record is modified, and the file record state of modification does not change.
S1105:Processing module 22 meets failure condition and including closing in deleting the file record in unactivated state
Key recovers the file record of attribute information.
The concrete structure of the terminal comprising audio file managing device 2 provided in the present embodiment is referred to Fig. 1.Wherein
The function of the file checking module 21, processing module 22 and audio file screening module 23 of document management apparatus 2 can be by such as
The controller of the terminal shown in Fig. 1 realizes that file checking module 21, processing module 22 and audio file screening module 23 specifically may be used
To be configured in the controller of terminal as shown in Figure 1.
The terminal comprising audio file managing device 2 that the present embodiment is provided, carries out such as renaming when audio file, deletes
Except, remove the operation such as SD card when, the file record of media data database data can real-time synchronization update, it is ensured that audio file and file
The uniformity of record;Meanwhile, at synchronized media data storehouse, whether there is according to audio file, by the state of audio file point
Activation and unactivated state are not set to, it is ensured that the integrality of audio file information;Meet default deletion bar in file record
After part, this document record can be deleted, it is to avoid discarded record record takes the problem of media database data space, improves use
The satisfaction of family experience.
It should be noted that herein, term " including ", "comprising" or its any other variant be intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also include other key elements being not expressly set out, or also include for this process, method, article or device institute are intrinsic
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably implementation method.Based on such understanding, technical scheme is substantially done to prior art in other words
The part for going out contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used to so that a station terminal equipment (can be mobile phone, computer, clothes
Business device, air-conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Implementation method, above-mentioned specific embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under enlightenment of the invention, in the case of present inventive concept and scope of the claimed protection is not departed from, can also make a lot
Form, these are belonged within protection of the invention.
Claims (12)
1. a kind of audio file management method, including:
To record using audio file press from both sides under audio file check;
When checking a certain audio file under audio file folder and not existing, will in the media database of the recording application this
The file record of audio file is set to unactivated state;For the user that the file record of unactivated state is applied in the recording
Interaction display interface is not shown.
2. audio file management method as claimed in claim 1, it is characterised in that the audio lower to audio file folder is literary
Part carries out inspection to be included:Scanography and/or fixed point are checked:
The scanography includes:
When the default condition of scanning is triggered, the audio file attribute letter of the lower current each audio file of the audio file folder is obtained
Breath, and obtain the file attribute record information in current each file record in the media database;
The audio file attribute information for obtaining is matched with each file attribute record information, according to matching result
Determine the update status of audio file;
Fixed point inspection includes:
During a certain audio file update notification of the audio file folder for receiving third-party application transmission, the audio file is obtained
Audio file attribute information, and obtain the file attribute record information of the audio file in the media database;
The audio file attribute information for obtaining is matched with the file attribute record information, it is true according to matching result
The update status of accordatura frequency file.
3. audio file management method as claimed in claim 2, it is characterised in that the audio lower to audio file folder is literary
Part check when including scanography that the default condition of scanning includes following at least one:
Recording application starts or enters the user mutual display interface of recording application;
External memory card is removed or inserted;
The audio file folder content update for receiving third-party application transmission is notified.
4. audio file management method as claimed in claim 2 or claim 3, it is characterised in that the audio file attribute information and
The file attribute record information is included the audio file attribute information for obtaining and the file attribute record information
Matched, the update status for determining audio file according to matching result include:
When the file store path and file duration in a certain file attribute record information and each audio file attribute information
In store path and file duration when all mismatching, determine that the corresponding audio file of this document attribute record information does not exist;
When the file store path and file duration in a certain audio file attribute information and each file attribute record information
In store path and file duration when all mismatching, determine that the corresponding audio file of audio file attribute information is newly-increased text
Part;
When the file store path and file duration in a certain audio file attribute information are believed with a certain file attribute record
When store path and file duration in breath are all matched, but the corresponding file record of this document attribute record information is un-activation shape
During state, the corresponding audio file of audio file attribute information is determined to recover file;
When the file duration in a certain audio file attribute information is matched with the file duration in a certain file attribute record information,
And the two file store path for including mismatch and this document attribute record information and other each file attribute informations not
During matching, determine that the corresponding audio files storage path of the audio file attribute information is changed;
File duration in the file duration in a certain audio file attribute information and at least two file attribute record information
Depositing in matching, but file store path in the audio file attribute information and at least two file attribute records information
When storage path all mismatches, determine that the corresponding audio file of audio file attribute information is newly-increased file;
When the file storage in the file store path in a certain audio file attribute information with a certain file attribute record information
Route matching, and the two file duration for including mismatches and this document attribute record information and other each file attribute informations
When all mismatching, determine that the corresponding audio file duration of the audio file attribute information is changed.
5. audio file management method as claimed in claim 4, it is characterised in that when it is determined that result for audio file be extensive
During multiple file, also including the corresponding file record of the audio file is revised as into state of activation by unactivated state;
When it is determined that result for audio file be newly-increased file when, also including extract the file record of the newly-increased file add it is described
In media database;
When it is determined that result changed for audio files storage path when, also including by the corresponding file record of the audio file
The store path store path that is updated in the audio file attribute information of the audio file;
When it is determined that result changed for audio file duration when, also including by the text in the corresponding file record of the audio file
Part duration is updated to the file duration in the audio file attribute information of the audio file.
6. the audio file management method as described in claim any one of 1-3, it is characterised in that methods described also includes:
State is unactivated state and meets the file record of failure condition as obsolete documents in obtaining the media database
Record, the failure condition is that unused time exceedes preset time value and/or frequency of use is less than default frequency of use;
The obsolete documents record that will be got is deleted.
7. audio file management method as claimed in claim 6, it is characterised in that at least part of in the media database
File record includes crucial recovery attribute information, and the crucial attribute information that recovers includes that file remark information, file label are believed
Breath and time get at least one in information ready;
Methods described also includes:Using a certain state it is unactivated state and meets the file record of failure condition as failure text
It is such as no also including judging whether include crucial recovery attribute information in this document record before part record, then as failure
File record.
8. a kind of audio file managing device, including:
File checking module, for record using audio file press from both sides under audio file check;
Processing module, for when a certain audio file does not exist under checking the audio file folder, the recording being applied
Media database in the file record of the audio file be set to unactivated state;It is the file record of unactivated state in institute
The user mutual display interface for stating recording application is not shown.
9. audio file managing device as claimed in claim 8, it is characterised in that the file checking module is used for default
When the condition of scanning is triggered, the audio file attribute information of the lower current each audio file of the audio file folder is obtained, and obtain institute
State the file attribute record information in current each file record in media database;The audio file attribute letter that will be obtained
Breath is matched with each file attribute record information, and the update status of audio file are determined according to matching result;
And/or, the file checking mould is used for a certain audio file of the audio file folder for receiving third-party application transmission more
It is new to obtain the audio file attribute information of the audio file when notifying, and obtain the audio file in the media database
File attribute record information;The audio file attribute information for obtaining is matched with the file attribute record information,
The update status of audio file are determined according to matching result.
10. audio file managing device as claimed in claim 9, it is characterised in that the audio file attribute information and institute
State file attribute record information is used for including the file checking mould:
Judge that file store path and file duration in a certain file attribute record information are believed with each audio file attribute
Store path and file duration in breath all mismatch the corresponding audio file of breath not to be existed;
Judge that file store path and file duration in a certain audio file attribute information are believed with each file attribute record
When store path and file duration in breath are all mismatched, determine that the corresponding audio file of audio file attribute information is newly-increased
File;
Judge the file store path and file duration and a certain file attribute record in a certain audio file attribute information
Store path and file duration in information are all matched, but the corresponding file record of this document attribute record information is un-activation shape
During state, the corresponding audio file of audio file attribute information is determined to recover file;
Judge the file duration in file duration in a certain audio file attribute information and a certain file attribute record information
Match somebody with somebody, and the two file store path for including mismatch and this document attribute record information and other each file attribute informations all
During mismatch, determine that the corresponding audio files storage path of the audio file attribute information is changed;
When judging the file in the file duration and at least two file attribute record information in a certain audio file attribute information
In matching long, but file store path in the audio file attribute information and at least two file attribute records information
When store path is all mismatched, determine that the corresponding audio file of audio file attribute information is newly-increased file;
Judge that the file store path in a certain audio file attribute information is deposited with the file in a certain file attribute record information
Storage route matching, and the two file duration for including is mismatched and this document attribute record information is believed with other each file attributes
When breath is all mismatched, determine that the corresponding audio file duration of the audio file attribute information is changed.
11. audio file managing devices as claimed in claim 10, it is characterised in that the processing module is additionally operable to described
The result that file checking module determines is when recovering file, by the corresponding file record of the audio file by not swashing for audio file
Status modifier living is state of activation.
12. a kind of terminals, it is characterised in that including the audio file managing device as described in claim any one of 8-11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610973122.8A CN106776684B (en) | 2016-10-28 | 2016-10-28 | Audio file management method and device and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610973122.8A CN106776684B (en) | 2016-10-28 | 2016-10-28 | Audio file management method and device and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106776684A true CN106776684A (en) | 2017-05-31 |
CN106776684B CN106776684B (en) | 2021-01-22 |
Family
ID=58971985
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610973122.8A Active CN106776684B (en) | 2016-10-28 | 2016-10-28 | Audio file management method and device and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106776684B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595500A (en) * | 2018-03-18 | 2018-09-28 | 平安科技(深圳)有限公司 | Sound recordings management-control method, system, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101799851A (en) * | 2009-12-31 | 2010-08-11 | 黄定 | Method for canceling activation after networking activation of software |
CN102999564A (en) * | 2012-11-06 | 2013-03-27 | 华为技术有限公司 | Method, device and equipment for writing in data |
US20160026996A1 (en) * | 2007-09-12 | 2016-01-28 | Devicefidelity, Inc. | Selectively switching antennas of transaction cards |
CN105426386A (en) * | 2015-10-23 | 2016-03-23 | 小米科技有限责任公司 | File synchronization method and apparatus, and terminal device |
-
2016
- 2016-10-28 CN CN201610973122.8A patent/CN106776684B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160026996A1 (en) * | 2007-09-12 | 2016-01-28 | Devicefidelity, Inc. | Selectively switching antennas of transaction cards |
CN101799851A (en) * | 2009-12-31 | 2010-08-11 | 黄定 | Method for canceling activation after networking activation of software |
CN102999564A (en) * | 2012-11-06 | 2013-03-27 | 华为技术有限公司 | Method, device and equipment for writing in data |
CN105426386A (en) * | 2015-10-23 | 2016-03-23 | 小米科技有限责任公司 | File synchronization method and apparatus, and terminal device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595500A (en) * | 2018-03-18 | 2018-09-28 | 平安科技(深圳)有限公司 | Sound recordings management-control method, system, computer equipment and storage medium |
CN108595500B (en) * | 2018-03-18 | 2022-09-30 | 平安科技(深圳)有限公司 | Recording management and control method, system, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106776684B (en) | 2021-01-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103926981B (en) | Electronic equipment and its control method | |
CN106055246B (en) | A kind of mobile terminal and its operating method | |
KR101952170B1 (en) | Mobile device using the searching method | |
CN102713816B (en) | Digital signage equipment and using method thereof | |
US9710153B2 (en) | Electronic device and method of controlling the same | |
KR20090039960A (en) | Mobile terminal and mehod of displaying information therein | |
CN105791592A (en) | Information prompting method and mobile terminal | |
CN106571136A (en) | Voice output device and method | |
CN106610770A (en) | Picture viewing method and device | |
CN106547886A (en) | Application program recommends method, device, terminal and server | |
CN106941443A (en) | One population historical record checks terminal and method | |
CN106559563A (en) | Image processing method and device | |
CN106409286A (en) | Method and device for implementing audio processing | |
CN106598538A (en) | Method and system for updating instruction set | |
CN106993093A (en) | A kind of image processing apparatus and method | |
CN107133508A (en) | Application management method and mobile terminal | |
CN105763911A (en) | Method and terminal for video playing | |
CN107229468A (en) | A kind of file backup method and mobile terminal | |
CN106776684A (en) | A kind of audio file management method, device and terminal | |
CN105787030B (en) | A kind of mobile terminal and its method for handling data | |
CN106777251A (en) | A kind of file management method and device | |
CN106557555A (en) | media playing method and device | |
CN106066883A (en) | Audio video document list synchronization apparatus and method | |
CN106911486A (en) | A kind of message push processing method, apparatus and system | |
CN106357923A (en) | Version management method and version management device as well as mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |