CN105677871A - Audio file classifying method and device and file manager - Google Patents

Audio file classifying method and device and file manager Download PDF

Info

Publication number
CN105677871A
CN105677871A CN201610015073.7A CN201610015073A CN105677871A CN 105677871 A CN105677871 A CN 105677871A CN 201610015073 A CN201610015073 A CN 201610015073A CN 105677871 A CN105677871 A CN 105677871A
Authority
CN
China
Prior art keywords
file
audio file
class
classification
audio
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.)
Pending
Application number
CN201610015073.7A
Other languages
Chinese (zh)
Inventor
卢良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201610015073.7A priority Critical patent/CN105677871A/en
Publication of CN105677871A publication Critical patent/CN105677871A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an audio file classifying method and device and a file manager. The method includes the steps of extracting all audio files in a system, obtaining classification routes of all the audio files, and classifying the corresponding audio files through the corresponding classifying routes on the basis of preset classifications. By means of the scheme, the defects that in the prior art, use is not convenient, time and labor are wasted and user experience is poor can be overcome, and the advantages of being convenient to use, saving time and labor and being good in use experience are achieved.

Description

The sorting technique of a kind of audio file, device and file manager
Technical field
The present invention relates to technical field of data processing, in particular it relates to the sorting technique of a kind of audio file, device and file manager.
Background technology
Operating system now uses file manager to control the access to file. For audio file, generally classify by audio format. Wherein, audio format refers to be play or audio file in mobile phone, is the process to audio files number, mould conversion. Audio format makes rapid progress, for instance: CD form, WAVE (* .WAV), AIFF, AU, MP3, MIDI, WMA, RealAudio, VQF, OggVorbis, AAC, APE.
Along with the development of Internet technology, internet audio storehouse is included substantial amounts of audio file, in order to realize the effective management to internet audio storehouse, it is necessary to audio file is classified. The classification of audio frequency is divided into a class all audio files by existing file manager exactly, and whole audio files is shown to user in a list. Existing this scheme is unfavorable for user's experience, cumbersome when user searches relevant audio file, is unfavorable for that user checks.
In prior art, exist in-convenience in use, waste time and energy and the defect such as poor user experience.
Summary of the invention
It is an object of the invention to, for drawbacks described above, it is proposed to the sorting technique of a kind of audio file, device and file manager, check efficiency to improve.
One aspect of the present invention provides the sorting technique of a kind of audio file, including: all audio files in extraction system; Obtain the parent path of each audio file; Based on default classification, by corresponding parent path, corresponding audio file is classified.
Preferably, the method also includes: the result of described classification is displayed.
Preferably, the method also includes: the classification of predetermined system sound intermediate frequency classification and path thereof; Wherein, described classification is configured to the first to the N class based on the arrangement of user's use habit, and N is natural number, and N class described in when N is more than 1 is configured to the audio file of the classification before will not belong to N class and is classified as a class.
Preferably, all audio files in extraction system, including: by the mode locating file of scanning system internal memory and obtain corresponding file name; Corresponding file suffixes name is extracted, by the mode of comparison document suffix name, it is judged that search whether gained file is audio file based on described file name; When determining that lookup gained file is audio file, extract corresponding audio file, and the path searching all audio files of gained is left in preset group.
Preferably, obtain the parent path of each audio file, including: the path of each audio file is obtained based on described array; The corresponding file management class of coordinates measurement according to each audio file; Based on corresponding file management class, carry out computing by calling parent function, obtain the parent path of corresponding audio file.
Preferably, by corresponding parent path, corresponding audio file is classified, including: based on the path in the parent path of corresponding audio file and described classification, carry out comparing by class, to judge whether corresponding audio file belongs to the respective classes before N class; And, when determining that corresponding audio file belongs to the respective classes before N class, corresponding audio file is sorted out to the category and carries out storage of linked list; Or, when determining that corresponding audio file is not belonging to the respective classes before N class, corresponding audio file is sorted out to N class and stores.
Preferably, the result of described classification is displayed, including: after corresponding with the first to N apoplexy due to endogenous wind for user interface audio file is associated, the first to N class is shown on default view display control; Described view showing, control carries out clicking monitor, when user clicks the first to N apoplexy due to endogenous wind any sort, reuse described view display control and such array is loaded and shows concrete audio file; Based on the loaded and displayed of audio file concrete in respective class, the information of the size of corresponding audio file, title is shown in an item by described view display control, and user opens corresponding audio file by clicking corresponding item.
Preferably, described classification, including: music player class, FM recording class, telephonograph class and other classes; Wherein, other classes described, the audio file being configured to will not belong to described music player class, FM recording class and telephonograph class is classified as a class.
Matching with said method, another aspect of the present invention provides the sorter of a kind of audio file, including: audio extraction unit, for audio files all in extraction system; Parent path acquiring unit, for obtaining the parent path of each audio file; Audio classification unit, for based on default classification, classifying to corresponding audio file by corresponding parent path.
Preferably, this device also includes: result display unit, for the result of described classification is displayed.
Preferably, this device also includes: classification presets unit, for classification and the path thereof of the classification of predetermined system sound intermediate frequency; Wherein, described classification is configured to the first to the N class based on the arrangement of user's use habit, and N is natural number, and N class described in when N is more than 1 is configured to the audio file of the classification before will not belong to N class and is classified as a class.
Preferably, audio extraction unit, including: ff module, it is used for the mode locating file by scanning system internal memory and obtains corresponding file name; File judge module, for extracting corresponding file suffixes name based on described file name, by the mode of comparison document suffix name, it is judged that searches whether gained file is audio file; Audio path memory module, for when determining that lookup gained file is audio file, extracting corresponding audio file, and left in preset group in the path searching all audio files of gained.
Preferably, parent path acquiring unit, including: audio path acquisition module, for obtaining the path of each audio file based on described array; File management class generation module, for the corresponding file management class of coordinates measurement according to each audio file; Parent path computing module, for based on corresponding file management class, carrying out computing by calling parent function, obtain the parent path of corresponding audio file.
Preferably, audio classification unit, including: path comparison module, it is used for the parent path based on corresponding audio file and the path of described classification, carries out comparing by class, to judge whether corresponding audio file belongs to the respective classes before N class; And, same paths processing module, for when determining that corresponding audio file belongs to the respective classes before N class, sorting out corresponding audio file to the category and carry out storage of linked list; Or, different paths processing module, for when determining that corresponding audio file is not belonging to the respective classes before N class, sorting out corresponding audio file to N class and store.
Preferably, result display unit, including: classification display module, after corresponding with the first to N apoplexy due to endogenous wind for user interface audio file is associated, the first to N class is shown on default view display control; File display module, monitors for described view showing, control carries out clicking, and when user clicks the first to N apoplexy due to endogenous wind any sort, reuses described view display control and such array is loaded and show concrete audio file; File Open module, for the loaded and displayed based on audio file concrete in respective class, the information of the size of corresponding audio file, title is shown in an item by described view display control, and user opens corresponding audio file by clicking corresponding item.
Preferably, described classification, including: music player class, FM recording class, telephonograph class and other classes; Wherein, other classes described, the audio file being configured to will not belong to described music player class, FM recording class and telephonograph class is classified as a class.
Matching with said apparatus, further aspect of the present invention provides a kind of file manager, including: the sorter of above-described audio file.
The solution of the present invention, by the scan full hard disk to mobile phone EMS memory, audio file is screened, custom according to the most frequently used audio file of people, it is divided into system music player, FM recording, telephonograph, other this four classes, the audio file in mobile phone is carried out inducing classification according to this four class and shows. User's inconvenience when using file manager to see audio classification can be solved and show the problems such as complicated and unintelligible, improving the efficiency checked.
Further, the solution of the present invention, by the internal memory scan full hard disk to mobile phone, judge whether the file scanned belongs to audio file by the comparison of file suffixes name, if audio file, just according to the parent path obtaining file, by parent path judge this document whether be belonging to music player deposit path, FM recording deposit path, telephonograph deposit path, carry out classifying and carrying out storage of linked list according to judged result, if being all not belonging to these three to deposit path, classify as other this classification, thus improving Consumer's Experience.
Further, the solution of the present invention, user can be allowed when clicking the music assorting of file manager, and first it is seen that system music player, FM recording, telephonograph, other these subclassification, user just can check associated documents list according to the demand of oneself. This scheme put together than prior art all audio frequency file, succinct, understands, promotes the experience of user, easy-to-look-up file, improves efficiency.
Thus, the solution of the present invention solves by being screened by audio file and classifying by use habit, to check audio file more easily, promote and check convenience, reduce the problem checking difficulty, thus, overcome in prior art in-convenience in use, waste time and energy and the defect of poor user experience, it is achieved easy to use, time saving and energy saving and beneficial effect that Consumer's Experience is good.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from description, or understand by implementing the present invention.
Below by drawings and Examples, technical scheme is described in further detail.
Accompanying drawing explanation
Accompanying drawing is for providing a further understanding of the present invention, and constitutes a part for description, is used for together with embodiments of the present invention explaining the present invention, is not intended that limitation of the present invention. In the accompanying drawings:
Fig. 1 is the flow chart of an embodiment of the sorting technique of the audio file of the present invention;
Fig. 2 is the flow chart of an embodiment of the method sound intermediate frequency extraction process of the present invention;
Fig. 3 be the present invention method in the flow chart of an embodiment that processes of parent path acquisition;
Fig. 4 is the flow chart of an embodiment of the method sound intermediate frequency classification process of the present invention;
Fig. 5 be the present invention method in the flow chart of an embodiment that processes of result display;
Fig. 6 is the structural representation of an embodiment of the sorter of the audio file of the present invention;
Fig. 7 is the flow chart of an Application Example of the method for the present invention;
Fig. 8 is the design sketch of an Application Example of assembly of the invention.
In conjunction with accompanying drawing, in the embodiment of the present invention, accompanying drawing labelling is as follows:
100-classification presets unit; 102-audio extraction unit; 1022-ff module; 1024-file judge module; 1026-audio path memory module; 104-parent path acquiring unit; 1042-audio path acquisition module; 1044-file management class generation module; 1046-parent path computing module; 106-audio classification unit; 1062-path comparison module; 1064-same paths processing module; 1066-difference path processing module; 108-result display unit; 1082-classification display module; 1084-file display module; 1086-File Open module.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with the specific embodiment of the invention and corresponding accompanying drawing, technical solution of the present invention is clearly and completely described. Obviously, described embodiment is only a part of embodiment of the present invention, rather than whole embodiments. Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
According to embodiments of the invention, it is provided that the sorting technique of a kind of audio file, the flow chart of an embodiment of the method for the present invention as shown in Figure 1. The sorting technique of this audio file includes:
In step S100 place, predetermined system sound intermediate frequency classification classification and path; Wherein, described classification is configured to the first to the N class based on the arrangement of user's use habit, N is natural number, and N class described in when N is more than 1 is configured to the audio file of the classification before will not belong to N class and is classified as a class (such as: other classifications). Preferably, when N is more than 1, the classification before described N class, including: music player class, FM record class, telephonograph class. Wherein, the path (such as: initial path) of described classification pre-sets, for instance: can arrange according to application (such as: music player, FM recording, telephonograph) the known storing path that respective classes in audio file said system (such as: cell phone system) is corresponding. The classification classified by preset audio and path thereof, it is preferable that can arrange voluntarily according to user preferences and use habit, it is possible to make audio classification more smooth and easy, more flexible, and then be conducive to promoting Consumer's Experience and property easy to use.
Wherein, the classification of audio file is set to music player class, FM records class, telephonograph class and other classes, it is possible to improve versatility and the reliability of audio classification.
Alternatively, before step S130, by step S100, foundation can be provided for the classification of step S130, and this foundation can be arranged voluntarily according to user preferences and use habit so that the motility of audio classification is greatly improved, and then be conducive to promoting Consumer's Experience and property easy to use.
In step S110 place, all audio files in extraction system. By audio files all in extraction system, to classify for all audio files in classifying in follow audio, be conducive to improving accuracy and the reliability of audio classification, and then it is more convenient, relatively reliable that user is used.
Below in conjunction with the flow chart of an embodiment of the method sound intermediate frequency extraction process of the present invention shown in Fig. 2, further illustrate the concrete process of the audio extraction of step S110.
Step S210, by the mode locating file of scanning system internal memory and obtain corresponding file name. Found the file name of gained file by the mode locating file scanned acquisition, mode of searching is easy, and can improve accuracy and the reliability of the result searched and obtain.
Step S220, extracts corresponding file suffixes name based on described file name, by the mode of comparison document suffix name, it is judged that search whether gained file is audio file. By extraction document suffix name the mode that compares, it is judged that search whether gained file is audio file, it is judged that mode is easy, reliable, it is judged that result is accurate.
Step S230, when determining that lookup gained file is audio file, extracts corresponding audio file, and is left in the path searching all audio files of gained in preset group (being preferably Dynamic Array). Extracting by searching when gained file is audio file in confirmation, extracting mode is reliable, easy; Stored by Dynamic Array, make the storage of audio file flexibly, can real-time update or carry out peer link, and then make the use of user convenient, it is also beneficial to reduce, by the mode updated and link, the space that audio file takies in Installed System Memory due to renewal.
In step S120 place, obtain the parent path of each audio file. By obtaining the parent path of each audio file, affording the basis of comparison for follow audio classification, mode of operation is reliable, is conducive to promoting convenience and the reliability of audio classification.
Below in conjunction with the flow chart of the embodiment that parent path acquisition in the method for the present invention shown in Fig. 3 processes, further illustrate the concrete process that the parent path of step S120 obtains.
Step S310, obtains the path of each audio file based on described array. By obtaining path and the audio path of each audio file in array, it is possible to accurately know the path of each audio file, the mode of acquisition is reliable, and the result of acquisition is accurate.
Step S320, according to the corresponding file management class of the coordinates measurement of each audio file. The path of each audio file by obtaining, generates corresponding file management class, carries out classifying and dynamic memory in the way of making audio file pass through file manager, is conducive to promoting the convenience that user uses.
Step S330, based on corresponding file management class, carries out computing by calling parent function, obtains the parent path of corresponding audio file. Preferably, parent function may include that the getParent () method of File class. The mode of computing is carried out by calling parent function, the file management class of each audio file is converted to the parent path of correspondence, audio file and file manager are matched, so that user can manage and use audio file by file manager, and property easy to use is greatly improved.
In step S130 place, based on default classification, by corresponding parent path, corresponding audio file is classified. By the parent path of default classification and acquisition, realize audio classification, the audio file making parent path identical is classified in corresponding classification, user can be allowed when clicking the music assorting of file manager, first it is seen that the several subclassification based on pre-set categories that show of system, user just can check associated documents list according to the demand of oneself; Make depositing and showing more short and sweet of audio file, it is possible to facilitate user to search audio file, and search efficiency can be improved, be conducive to promoting the experience of user.
Below in conjunction with the flow chart of the embodiment that the method sound intermediate frequency classification of the present invention shown in Fig. 4 processes, further illustrate the concrete process of the audio classification of step S130.
Step S410, based on the path in the parent path of corresponding audio file and described classification, carries out comparing by class, to judge whether corresponding audio file belongs to the respective classes before N class. By the mode being undertaken comparing by class by the path in the parent path of each audio file and default classification, it is judged that the generic of each audio file, it is judged that mode is reliable, it is judged that result accuracy is good.
Step S420, alternatively, when determining that corresponding audio file belongs to the respective classes before N class, sorts out corresponding audio file to the category and carries out storage of linked list. By the audio file confirming classification carries out classification and storage of linked list accordingly, one conveniently makes the audio file confirming classification accurately to sort out, and can use Installed System Memory flexibly on the other hand, facilitates user to manage and use.
Wherein, chained list is storage organization discontinuous, non-sequential on a kind of physical memory cell, and the logical order of data element is to be realized by the pointer link orders in chained list. Chained list is made up of a series of nodes (in chained list, each element is called node), and node can be dynamically generated at runtime. Using list structure that array linked list can be overcome to need to be known a priori by the shortcoming of size of data, list structure can make full use of audio file said system (such as: cell phone system) memory headroom, it is achieved internal memory dynamically manages flexibly.
Step S430, alternatively, when determining that corresponding audio file is not belonging to the respective classes before N class, sorts out corresponding audio file to N class and stores. By the audio file that cannot confirm classification is carried out centralized stores and management, can reduce minority file (namely cannot confirm the audio file of classification on the one hand, general negligible amounts) Installed System Memory that takies when being separately stored as respective classes and program runtime, more convenient user management and lookup on the other hand, hommization is better.
In step S140 place, the result of described classification is displayed. By the display based on audio classification result, it is possible to provide the user the mode that a kind of audio file based on audio classification carries out loading and using so that, more hommization more convenient based on the use of the audio file of audio classification.
Below in conjunction with the flow chart of the embodiment that result display in the method for the present invention shown in Fig. 5 processes, further illustrate the concrete process that the result of step S140 shows.
Step S510, after being associated by corresponding with the first to N apoplexy due to endogenous wind for user interface audio file, is shown in the first to N class on default view display control. Preferably, described view display control, including: ListView control or GridView control. By will confirm that the audio file of classification is associated with user interface and is displayed by control so that user can use and check corresponding audio file flexibly, and easy to use, experience is good.
Step S520, shows that to described view control carries out clicking and monitors, and when user clicks the first to N apoplexy due to endogenous wind any sort, reuses described view display control and such array is loaded and show concrete audio file. Audio file after audio classification is loaded by clicking the mode monitored and shows, the Installed System Memory that in corresponding document dynamic memory and link process, temporary file takies can be reduced, and dynamic updates, making using and managing hommization more of audio file, the experience of user is also better.
Step S530, based on the loaded and displayed of audio file concrete in respective class, the information of the size of corresponding audio file, title is shown in an item by described view display control, and user opens corresponding audio file by clicking corresponding item. By the mode of loaded and displayed, open the audio file being explicitly shown specifying information so that user selects convenient, directly perceived, more improve the experience of user.
In one embodiment, after step s 130, alternatively, by step S140, the mode that a kind of audio file based on audio classification carries out loading and using can be provided the user so that, more hommization more convenient based on the use of the audio file of audio classification.
Through substantial amounts of verification experimental verification, adopt the technical scheme of the present embodiment, by the scan full hard disk to mobile phone EMS memory, audio file is screened, custom according to the most frequently used audio file of people, it is divided into system music player, FM recording, telephonograph, other this four classes, the audio file in mobile phone is carried out inducing classification according to this four class and shows. User's inconvenience when using file manager to see audio classification can be solved and show the problems such as complicated and unintelligible, improving the efficiency checked.
According to embodiments of the invention, additionally provide the sorter of a kind of audio file of the sorting technique corresponding to audio file. The structural representation of one embodiment of assembly of the invention shown in Figure 6. The sorter of this audio file, including: audio extraction unit 102, parent path acquiring unit 104 and audio classification unit 106; And include alternatively: classification presets unit 100 and/or result display unit 108.
In one embodiment, classification presets unit 100, for classification and the path thereof of the classification of predetermined system sound intermediate frequency; Wherein, described classification is configured to the first to the N class based on the arrangement of user's use habit, N is natural number, and N class described in when N is more than 1 is configured to the audio file of the classification before will not belong to N class and is classified as a class (such as: other classifications). The category is preset the concrete function of unit 100 and processes referring to step S100. Preferably, when N is more than 1, the classification before described N class, including: music player class, FM record class, telephonograph class. Wherein, the path (such as: initial path) of described classification pre-sets, for instance: can arrange according to application (such as: music player, FM recording, telephonograph) the known storing path that respective classes in audio file said system (such as: cell phone system) is corresponding. The classification classified by preset audio and path thereof, it is preferable that can arrange voluntarily according to user preferences and use habit, it is possible to make audio classification more smooth and easy, more flexible, and then be conducive to promoting Consumer's Experience and property easy to use.
Wherein, the classification of audio file is set to music player class, FM records class, telephonograph class and other classes, it is possible to improve versatility and the reliability of audio classification.
Alternatively, unit 100 is preset, it is possible to the classification for audio classification unit 106 provides foundation, and this foundation can be arranged voluntarily according to user preferences and use habit by classification, the motility making audio classification is greatly improved, and then is conducive to promoting Consumer's Experience and property easy to use.
In one embodiment, audio extraction unit 102, for audio files all in extraction system. The concrete function of this audio extraction unit 102 and process are referring to step S110. By audio files all in extraction system, to classify for all audio files in classifying in follow audio, be conducive to improving accuracy and the reliability of audio classification, and then it is more convenient, relatively reliable that user is used.
Preferably, audio extraction unit 102, including: ff module 1022, file judge module 1024 and audio path memory module 1026.
In one example, ff module 1022, it is used for the mode locating file by scanning system internal memory and obtains corresponding file name. This document is searched the concrete function of module 1022 and processes referring to step S210. By the mode locating file scanned the file name obtaining lookup gained file, mode of operation is easy, and can improve accuracy and the reliability of the result searched and obtain.
In one example, file judge module 1024, for extracting corresponding file suffixes name based on described file name, by the mode of comparison document suffix name, it is judged that searches whether gained file is audio file. The concrete function of this document judge module 1024 and process are referring to step S220. By extraction document suffix name the mode that compares, filtering out audio file from searching in gained file, mode of operation is easy, reliable, and the selection result is accurate.
In one example, audio path memory module 1026, for when determining that lookup gained file is audio file, extracting corresponding audio file, and the path searching all audio files of gained left in preset group (being preferably Dynamic Array). The concrete function of this audio path memory module 1026 and process are referring to step S230. Extracting by searching when gained file is audio file in confirmation, extracting mode is reliable, easy; Stored by Dynamic Array, make the storage of audio file flexibly, can real-time update or carry out peer link, and then make the use of user convenient, it is also beneficial to reduce, by the mode updated and link, the space that audio file takies in Installed System Memory due to renewal.
In one embodiment, parent path acquiring unit 104, for obtaining the parent path of each audio file. The concrete function of this parent path acquiring unit 104 and process are referring to step S120. By obtaining the parent path of each audio file, affording the basis of comparison for follow audio classification, mode of operation is reliable, is conducive to promoting convenience and the reliability of audio classification.
Preferably, parent path acquiring unit 104, including: audio path acquisition module 1042, file management class generation module 1044 and parent path computing module 1046.
In one example, audio path acquisition module 1042, for obtaining the path of each audio file based on described array. The concrete function of this audio path acquisition module 1042 and process are referring to step S310. By obtaining path and the audio path of each audio file in array, it is possible to accurately know the path of each audio file, the mode of acquisition is reliable, and the result of acquisition is accurate.
In one example, file management class generation module 1044, for the corresponding file management class of coordinates measurement according to each audio file. The concrete function of this document management class generation module 1044 and process are referring to step S320. The path of each audio file by obtaining, generates corresponding file management class, carries out classifying and dynamic memory in the way of making audio file pass through file manager, is conducive to promoting the convenience that user uses.
In one example, parent path computing module 1046, for based on corresponding file management class, carrying out computing by calling parent function, obtain the parent path of corresponding audio file. The concrete function of this parent path computing module 1046 and process are referring to step S330. Preferably, parent function may include that the getParent () method of File class. The mode of computing is carried out by calling parent function, the file management class of each audio file is converted to the parent path of correspondence, audio file and file manager are matched, so that user can manage and use audio file by file manager, and property easy to use is greatly improved.
In one embodiment, audio classification unit 106, for based on default classification, classifying to corresponding audio file by corresponding parent path. The concrete function of this audio classification unit 106 and process are referring to step S130. By the parent path of default classification and acquisition, realize audio classification, the audio file making parent path identical is classified in corresponding classification, user can be allowed when clicking the music assorting of file manager, first it is seen that the several subclassification based on pre-set categories that show of system, user just can check associated documents list according to the demand of oneself; Make depositing and showing more short and sweet of audio file, it is possible to facilitate user to search audio file, and search efficiency can be improved, be conducive to promoting the experience of user.
Preferably, audio classification unit 106, including: path comparison module 1062; And include alternatively: same paths processing module 1064 and different paths processing module 1066.
In one example, path comparison module 1062, it is used for the parent path based on corresponding audio file and the path of described classification, carries out comparing by class, to judge whether corresponding audio file belongs to the respective classes before N class. The concrete function of this path comparison module 1062 and process are referring to step S410. By the mode being undertaken comparing by class by the path in the parent path of each audio file and default classification, it is judged that the generic of each audio file, it is judged that mode is reliable, it is judged that result accuracy is good.
In one example, same paths processing module 1064, for when determining that corresponding audio file belongs to the respective classes before N class, sorting out corresponding audio file to the category and carry out storage of linked list. The concrete function of this same paths processing module 1064 and process are referring to step S420. By the audio file confirming classification carries out classification and storage of linked list accordingly, one conveniently makes the audio file confirming classification accurately to sort out, and can use Installed System Memory flexibly on the other hand, facilitates user to manage and use.
Wherein, chained list is storage organization discontinuous, non-sequential on a kind of physical memory cell, and the logical order of data element is to be realized by the pointer link orders in chained list. Chained list is made up of a series of nodes (in chained list, each element is called node), and node can be dynamically generated at runtime. Using list structure that array linked list can be overcome to need to be known a priori by the shortcoming of size of data, list structure can make full use of audio file said system (such as: cell phone system) memory headroom, it is achieved internal memory dynamically manages flexibly.
In one example, different paths processing module 1066, for when determining that corresponding audio file is not belonging to the respective classes before N class, sorting out corresponding audio file to N class and store. The concrete function of this difference path processing module 1066 and process are referring to step S430. By the audio file that cannot confirm classification is carried out centralized stores and management, can reduce minority file (namely cannot confirm the audio file of classification on the one hand, general negligible amounts) Installed System Memory that takies when being separately stored as respective classes and program runtime, more convenient user management and lookup on the other hand, hommization is better.
In one embodiment, result display unit 108, for displaying the result of described classification. The concrete function of this result display unit 108 and process are referring to step S140. By the display based on audio classification result, it is possible to provide the user the mode that a kind of audio file based on audio classification carries out loading and using so that, more hommization more convenient based on the use of the audio file of audio classification.
Preferably, result display unit 108, including: classification display module 1082, file display module 1084 and File Open module 1086.
In one example, classification display module 1082, after corresponding with the first to N apoplexy due to endogenous wind for user interface audio file is associated, the first to N class is shown on default view display control. The concrete function of category display module 1082 and process are referring to step S510. Preferably, described view display control, including: ListView control or GridView control. By will confirm that the audio file of classification is associated with user interface and is displayed by control so that user can use and check corresponding audio file flexibly, and easy to use, experience is good.
In one example, file display module 1084, monitoring for described view being shown control carries out clicking, when user clicks the first to N apoplexy due to endogenous wind any sort, reusing described view display control and such array loaded and shows concrete audio file. The concrete function of this document display module 1084 and process are referring to step S520. Audio file after audio classification is loaded by clicking the mode monitored and shows, the Installed System Memory that in corresponding document dynamic memory and link process, temporary file takies can be reduced, and dynamic updates, making using and managing hommization more of audio file, the experience of user is also better.
In one example, File Open module 1086, for the loaded and displayed based on audio file concrete in respective class, the information of the size of corresponding audio file, title is shown in an item by described view display control, and user opens corresponding audio file by clicking corresponding item. This document is opened the concrete function of module 1086 and processes referring to step S530. By the mode of loaded and displayed, open the audio file being explicitly shown specifying information so that user selects convenient, directly perceived, more improve the experience of user.
Alternatively, by result display unit 108, it is possible to provide the user the mode that a kind of audio file based on audio classification carries out loading and using so that, more hommization more convenient based on the use of the audio file of audio classification.
The process realized due to the device of the present embodiment and function essentially correspond to the embodiment of the method shown in earlier figures 1 to Fig. 5, principle and example, therefore not detailed part in the description of the present embodiment, may refer to the related description in previous embodiment, do not repeat at this.
Through substantial amounts of verification experimental verification, adopt technical scheme, by the internal memory scan full hard disk to mobile phone, judge whether the file scanned belongs to audio file by the comparison of file suffixes name, if audio file, just obtain the parent path (such as: use getParent () method) of file, judge that what whether this document be belonging to music player deposits path by parent path, what FM recorded deposits path, telephonograph deposit path, carry out classifying and carrying out storage of linked list according to judged result, if being all not belonging to these three to deposit path, classify as other this classification, thus improving Consumer's Experience.
According to embodiments of the invention, additionally provide a kind of file manager of the sorter corresponding to audio file. This document manager includes: the sorter of above-described audio file.
Such as: referring to the example shown in Fig. 7, Fig. 8, a kind of audio classification in this document manager realize step, it is possible to including:
Step one, first find out audio file: enter application and adopt for circulate (one of statement in programming language, for circulating execution) method carry out the lookup of file of mobile phone EMS memory, realize process is not only wanted locating file what for circulated, file also to utilize File (local file host-host protocol) apoplexy due to endogenous wind getName () method (pointer of the character being directed to user's input of return) obtain the title of file one by one, (position that a string value specified finally occurs is can return to again through communication method using common lastIndexOf (), appointment position in a character string is searched for from back to front) obtain suffix name, realize the judgement of audio file by the comparison of suffix name and select, the path of whole audio files is left in an ArrayList.
Step 2, ArrayList obtained above (Dynamic Array) is obtained by for circulation the path of each file, according to coordinates measurement File file, then pass through the path that the getParent () method of File class obtains the parent of each audio file, by path with our known music player, the parent path that obtains, the path of FM recording, the path contrast of telephonograph, classify, if the parent of this document is not belonging to path enumerated supra, it is classified as other classification, the path of each file is stored the ArrayList under each classification by the result according to classification, so as the source that file below shows.
Wherein, getParent () method is the SDK (SoftwareDevelopmentKit of windows platform, it it is the code bag used of software development, after the SDK bag of corresponding development language is installed, just can develop the software of corresponding language) function, this function performance: this function obtains a parent window handle specifying subwindow.
If function success, return value is parent window handle. If window is without parent window, then function returns NULL (null value). If wanting to obtain more error message, GetLastError function please be call. Wherein, the value that GetLastError returns is arranged by calling SetLastError or SetLastErrorEx in api function.
Preferably, when carrying out document classification, step one and step 2 can realize in same circulation, need not separate.
Step 3, so far, required document source obtains, and namely classification is complete, and classification results is exactly the ArrayList of ArrayList, FM recording of the file depositing player, the ArrayList of telephonograph, other Arrylist that classify; At Activity, (being an application component, it is provided that a screen, user can be used to mutual in order to complete a certain task; In this application component, all operations is all closely related with user, it is one to be responsible for and the mutual assembly of user) upper carry out loaded and displayed by ListView and classify, Adapter (adapter) is used to be shown on ListView control by four classification, adapter Main Function is by UI (UserInterface, user interface) layout and data are associated, effect is as shown in Figure 8, carry out ListView clicking and monitor, when user clicks one type, reuse ListView by file concrete for the ArrayList loaded and displayed of this apoplexy due to endogenous wind. Preferably, when being embodied as, ListView control can use GridView control to replace.
Wherein, ListView control can use four kinds of different views display projects, by ListView control, by the row of item design with or without row header, and can show adjoint icon and text. GridView control provides the base feature set identical with ListView control, adds a large amount of extension simultaneously and improves, being the common controls that a function is very powerful.
Step 4, when entering under concrete classification, the size of file, title are generated the information of time and are shown in each item (item) by ListView, click item and can open this music file.
The process realized due to the file manager of the present embodiment and function essentially correspond to the embodiment of the device shown in earlier figures 1 to Fig. 5, principle and example, therefore not detailed part in the description of the present embodiment, may refer to the related description in previous embodiment, do not repeat at this.
Through substantial amounts of verification experimental verification, adopt technical scheme, user can be allowed when clicking music assorting (i.e. the audio classification) of file manager, first it is seen that system music player, FM recording, telephonograph, other these subclassification, user just can check associated documents list according to the demand of oneself. This scheme put together than prior art all audio frequency file, succinct, understands, promotes the experience of user, easy-to-look-up file, improves efficiency.
To sum up, skilled addressee readily understands that, under the premise do not conflicted, above-mentioned each advantageous manner can freely combine, superposition.
It can further be stated that, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, commodity or equipment not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, commodity or equipment. When there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, commodity or equipment.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program. Therefore, the present invention can adopt the form of complete hardware embodiment, complete software implementation or the embodiment in conjunction with software and hardware aspect. And, the present invention can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) wherein including computer usable program code.
The foregoing is only embodiments of the invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations. All within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within scope of the presently claimed invention.

Claims (17)

1. the sorting technique of an audio file, it is characterised in that including:
All audio files in extraction system;
Obtain the parent path of each audio file;
Based on default classification, by corresponding parent path, corresponding audio file is classified.
2. method according to claim 1, it is characterised in that the method also includes:
The result of described classification is displayed.
3. method according to claim 1 and 2, it is characterised in that the method also includes:
The classification of predetermined system sound intermediate frequency classification and path thereof; Wherein,
Described classification is configured to the first to the N class based on the arrangement of user's use habit, and N is natural number, and N class described in when N is more than 1 is configured to the audio file of the classification before will not belong to N class and is classified as a class.
4. according to the method one of claim 1-3 Suo Shu, it is characterised in that all audio files in extraction system, including:
By the mode locating file of scanning system internal memory and obtain corresponding file name;
Corresponding file suffixes name is extracted, by the mode of comparison document suffix name, it is judged that search whether gained file is audio file based on described file name;
When determining that lookup gained file is audio file, extract corresponding audio file, and the path searching all audio files of gained is left in preset group.
5. method according to claim 4, it is characterised in that obtain the parent path of each audio file, including:
The path of each audio file is obtained based on described array;
The corresponding file management class of coordinates measurement according to each audio file;
Based on corresponding file management class, carry out computing by calling parent function, obtain the parent path of corresponding audio file.
6. according to the method one of claim 3-5 Suo Shu, it is characterised in that by corresponding parent path, corresponding audio file is classified, including:
Based on the path in the parent path of corresponding audio file and described classification, carry out comparing by class, to judge whether corresponding audio file belongs to the respective classes before N class; And,
When determining that corresponding audio file belongs to the respective classes before N class, corresponding audio file is sorted out to the category and carries out storage of linked list; Or,
When determining that corresponding audio file is not belonging to the respective classes before N class, corresponding audio file is sorted out to N class and stores.
7. according to the method one of claim 3-6 Suo Shu, it is characterised in that the result of described classification is displayed, including:
After corresponding with the first to N apoplexy due to endogenous wind for user interface audio file is associated, the first to N class is shown on default view display control;
Described view showing, control carries out clicking monitor, when user clicks the first to N apoplexy due to endogenous wind any sort, reuse described view display control and such array is loaded and shows concrete audio file;
Based on the loaded and displayed of audio file concrete in respective class, the information of the size of corresponding audio file, title is shown in an item by described view display control, and user opens corresponding audio file by clicking corresponding item.
8. according to the method one of claim 1-7 Suo Shu, it is characterised in that described classification, including: music player class, FM recording class, telephonograph class and other classes; Wherein, other classes described, the audio file being configured to will not belong to described music player class, FM recording class and telephonograph class is classified as a class.
9. the sorter of an audio file, it is characterised in that including:
Audio extraction unit, for audio files all in extraction system;
Parent path acquiring unit, for obtaining the parent path of each audio file;
Audio classification unit, for based on default classification, classifying to corresponding audio file by corresponding parent path.
10. device according to claim 9, it is characterised in that this device also includes:
Result display unit, for displaying the result of described classification.
11. the device according to claim 9 or 10, it is characterised in that this device also includes:
Classification presets unit, for classification and the path thereof of the classification of predetermined system sound intermediate frequency; Wherein,
Described classification is configured to the first to the N class based on the arrangement of user's use habit, and N is natural number, and N class described in when N is more than 1 is configured to the audio file of the classification before will not belong to N class and is classified as a class.
12. according to the device one of claim 9-11 Suo Shu, it is characterised in that audio extraction unit, including:
Ff module, is used for the mode locating file by scanning system internal memory and obtains corresponding file name;
File judge module, for extracting corresponding file suffixes name based on described file name, by the mode of comparison document suffix name, it is judged that searches whether gained file is audio file;
Audio path memory module, for when determining that lookup gained file is audio file, extracting corresponding audio file, and left in preset group in the path searching all audio files of gained.
13. device according to claim 12, it is characterised in that parent path acquiring unit, including:
Audio path acquisition module, for obtaining the path of each audio file based on described array;
File management class generation module, for the corresponding file management class of coordinates measurement according to each audio file;
Parent path computing module, for based on corresponding file management class, carrying out computing by calling parent function, obtain the parent path of corresponding audio file.
14. according to the device one of claim 11-13 Suo Shu, it is characterised in that audio classification unit, including:
Path comparison module, is used for the parent path based on corresponding audio file and the path of described classification, carries out comparing by class, to judge whether corresponding audio file belongs to the respective classes before N class; And,
Same paths processing module, for when determining that corresponding audio file belongs to the respective classes before N class, sorting out corresponding audio file to the category and carry out storage of linked list; Or,
Different paths processing module, for when determining that corresponding audio file is not belonging to the respective classes before N class, sorting out corresponding audio file to N class and store.
15. according to the device one of claim 11-14 Suo Shu, it is characterised in that result display unit, including:
Classification display module, after being associated by corresponding with the first to N apoplexy due to endogenous wind for user interface audio file, is shown on default view display control by the first to N class;
File display module, monitors for described view showing, control carries out clicking, and when user clicks the first to N apoplexy due to endogenous wind any sort, reuses described view display control and such array is loaded and show concrete audio file;
File Open module, for the loaded and displayed based on audio file concrete in respective class, the information of the size of corresponding audio file, title is shown in an item by described view display control, and user opens corresponding audio file by clicking corresponding item.
16. according to the device one of claim 9-15 Suo Shu, it is characterised in that described classification, including: music player class, FM recording class, telephonograph class and other classes; Wherein, other classes described, the audio file being configured to will not belong to described music player class, FM recording class and telephonograph class is classified as a class.
17. a file manager, it is characterised in that including: the sorter of the audio file as described in as arbitrary in claim 9-16.
CN201610015073.7A 2016-01-08 2016-01-08 Audio file classifying method and device and file manager Pending CN105677871A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610015073.7A CN105677871A (en) 2016-01-08 2016-01-08 Audio file classifying method and device and file manager

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610015073.7A CN105677871A (en) 2016-01-08 2016-01-08 Audio file classifying method and device and file manager

Publications (1)

Publication Number Publication Date
CN105677871A true CN105677871A (en) 2016-06-15

Family

ID=56299881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610015073.7A Pending CN105677871A (en) 2016-01-08 2016-01-08 Audio file classifying method and device and file manager

Country Status (1)

Country Link
CN (1) CN105677871A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019085591A1 (en) * 2017-11-02 2019-05-09 深圳市网心科技有限公司 Intelligent hardware device, intelligent disk data processing method, and storage medium
CN109933576A (en) * 2019-03-04 2019-06-25 百度在线网络技术(北京)有限公司 Audio SDK library method for building up and device, electronic equipment and computer-readable medium
CN111462753A (en) * 2020-04-03 2020-07-28 深圳市友杰智新科技有限公司 Voice recognition method and device and computer equipment
CN111148007B (en) * 2019-12-25 2021-12-24 歌尔股份有限公司 Tone quality adjusting method, wireless transmitting equipment, tone quality adjusting system and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1656455A (en) * 2002-09-05 2005-08-17 八十岛广至 Method for managing file using network structure, operation object display limiting program, and recording medium
CN103246483A (en) * 2013-04-24 2013-08-14 Tcl集团股份有限公司 Method, system and intelligent terminal for scanning files
CN103618947A (en) * 2013-11-22 2014-03-05 北京奇虎科技有限公司 Method and device for displaying television external device files
US20140156665A1 (en) * 2012-12-03 2014-06-05 Adobe Systems Incorporated Automatic document classification via content analysis at storage time
CN103970779A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Method, device and equipment for classifying documents
CN104050186A (en) * 2013-03-13 2014-09-17 厦门歌乐电子企业有限公司 Information classifying method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1656455A (en) * 2002-09-05 2005-08-17 八十岛广至 Method for managing file using network structure, operation object display limiting program, and recording medium
US20140156665A1 (en) * 2012-12-03 2014-06-05 Adobe Systems Incorporated Automatic document classification via content analysis at storage time
CN103970779A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Method, device and equipment for classifying documents
CN104050186A (en) * 2013-03-13 2014-09-17 厦门歌乐电子企业有限公司 Information classifying method and device
CN103246483A (en) * 2013-04-24 2013-08-14 Tcl集团股份有限公司 Method, system and intelligent terminal for scanning files
CN103618947A (en) * 2013-11-22 2014-03-05 北京奇虎科技有限公司 Method and device for displaying television external device files

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
肖剑: "高质量自适应音频系统的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019085591A1 (en) * 2017-11-02 2019-05-09 深圳市网心科技有限公司 Intelligent hardware device, intelligent disk data processing method, and storage medium
CN109933576A (en) * 2019-03-04 2019-06-25 百度在线网络技术(北京)有限公司 Audio SDK library method for building up and device, electronic equipment and computer-readable medium
CN109933576B (en) * 2019-03-04 2021-06-11 百度在线网络技术(北京)有限公司 Sound effect SDK library establishing method and device, electronic equipment and computer readable medium
CN111148007B (en) * 2019-12-25 2021-12-24 歌尔股份有限公司 Tone quality adjusting method, wireless transmitting equipment, tone quality adjusting system and medium
CN111462753A (en) * 2020-04-03 2020-07-28 深圳市友杰智新科技有限公司 Voice recognition method and device and computer equipment
CN111462753B (en) * 2020-04-03 2023-02-28 深圳市友杰智新科技有限公司 Voice recognition method and device and computer equipment

Similar Documents

Publication Publication Date Title
Diba et al. Extraction, correlation, and abstraction of event data for process mining
Abai et al. User requirement analysis in data warehouse design: a review
US20020022974A1 (en) Display of patent information
US20100058113A1 (en) Multi-layer context parsing and incident model construction for software support
CN107111625A (en) Realize the method and system of the efficient classification and exploration of data
CN105677871A (en) Audio file classifying method and device and file manager
Shihab An exploration of challenges limiting pragmatic software defect prediction
CN109726105A (en) Test data building method, device, equipment and storage medium
CN111858713A (en) Object-based government information asset management method and system
CN110806975A (en) Applet application management system
CN107102922A (en) Internal-memory detection method, device and electronic equipment
CN110704524A (en) House source recording method, device and equipment and computer readable storage medium
JP4839087B2 (en) Workflow management system
CN112270628A (en) Intellectual property theme library management method and system
CN102880450B (en) Instant communication windows management method and equipment
CN107679209A (en) Expression formula generation method of classifying and device
Chaturvedi et al. Service evolution analytics: change and evolution mining of a distributed system
Mireles et al. A classification approach of sustainability aware requirements methods
CN112860899B (en) Label generation method and device, computer equipment and computer readable storage medium
CN104461864A (en) Java source code defect detecting method and system based on Eclipse plugin
Subramanian et al. Systems dynamics-based modeling of data warehouse quality
CN112650673A (en) Method and device for creating test case in transaction tracking system and electronic equipment
CN117592450A (en) Panoramic archive generation method and system based on employee information integration
CN101655844A (en) Device, method and equipment for information data interaction for processing information data
Barbucha et al. Detecting communities in organizational social network based on e-mail communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160615

RJ01 Rejection of invention patent application after publication