CN105868424A - Audio file naming method and device and electronic equipment - Google Patents

Audio file naming method and device and electronic equipment Download PDF

Info

Publication number
CN105868424A
CN105868424A CN201610478842.7A CN201610478842A CN105868424A CN 105868424 A CN105868424 A CN 105868424A CN 201610478842 A CN201610478842 A CN 201610478842A CN 105868424 A CN105868424 A CN 105868424A
Authority
CN
China
Prior art keywords
audio file
described audio
name
fragment
true
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
Application number
CN201610478842.7A
Other languages
Chinese (zh)
Other versions
CN105868424B (en
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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201610478842.7A priority Critical patent/CN105868424B/en
Publication of CN105868424A publication Critical patent/CN105868424A/en
Application granted granted Critical
Publication of CN105868424B publication Critical patent/CN105868424B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/686Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title or artist information, time, location or usage information, user ratings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/635Filtering based on additional data, e.g. user or group profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/683Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Library & Information Science (AREA)
  • Multimedia (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 naming method, an audio file naming device and electronic equipment, and solves the problem that in the prior art, a user is very inconvenient to search and browse audio files. At a client, the method comprises: acquiring audio file information of an audio file; extracting an audio clip with a preset time length from the audio file; sending the audio file information and the audio clip to a server so that the server determines the real name of the audio file according to the audio clip and the audio file information; receiving the real name of the audio file returned by the server; and correcting the original name of the audio file according to the real name of the audio file. The invention is suitable for correcting the names of the audio files downloaded by the user.

Description

Audio file naming method, device and electronic equipment
Technical field
The present invention relates to technical field of audio/video, particularly relate to a kind of audio file naming method, device and electricity Subset.
Background technology
At present, cellphone subscriber oneself listens the needs of song to meet, and can install audio player on mobile phone, Then audio file is downloaded by network, by these audio files of audio player plays.Generally, audio frequency wound Audio file, when creating audio file, can be named, such as, by one by the person of building according to certain form Individual song files is named with the form of " song title-singer ".
Audio file owing to downloading in users from networks is probably and is created by different founders, and not With founder may be different to the name form of audio file, thus cause the audio file that user downloads Name form is disorderly and unsystematic, is not easy to very much user's fast search and browses.It addition, for song files, Some song with same names is probably is sung by different singers, and some founder is creating this song Only it is named with song title during bent file, lacks singer's title, cause user in search and to browse song Easily produce during file and obscure.Additionally, audio file may be modified name in communication process, give and use Family is searched for and is browsed audio file and makes troubles.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of audio file naming method, device and electronic equipment, User's search can be easy to and browse audio file.
First aspect, the embodiment of the present invention provides a kind of audio file naming method, and described method is applied to visitor Family end, described method includes:
Obtain the audio file information of audio file;
The audio fragment of scheduled duration is extracted from described audio file;
Send described audio file information and described audio fragment to server so that described server according to Described audio fragment and described audio file information determine the true name of described audio file;
Receive the true name of the described audio file that described server returns;
True name according to described audio file carries out error correction to the former name of described audio file.
In conjunction with first aspect, in the first embodiment of first aspect, described from described audio file The audio fragment extracting scheduled duration includes: when total duration of described audio file is less than described scheduled duration, Extract whole described audio file as audio fragment.
In conjunction with the first embodiment of first aspect, in the second embodiment of first aspect, described True name according to described audio file carries out error correction to the former name of described audio file and includes: when described When the true name of audio file is inconsistent with the former name of described audio file, former by described audio file Name replaces with the true name of described audio file;True name and described audio frequency when described audio file When the former name of file is consistent, the former name keeping described audio file is constant.
In conjunction with the second embodiment of first aspect, in the third embodiment of first aspect, described Audio file information includes file path and former name.
Second aspect, the embodiment of the present invention provides a kind of audio file naming method, and described method is applied to clothes Business device, described method includes:
Receiving audio file information and audio fragment that client sends, described audio fragment is from audio frequency literary composition Part extracts and obtains;
The true name of described audio file is determined according to described audio fragment and described audio file information;
The true name of described audio file is sent, so that described client is according to described sound to described client The true name of frequency file carries out error correction to the former name of described audio file.
In conjunction with second aspect, in the first embodiment of second aspect, described according to described audio fragment Determine that with described audio file information the true name of described audio file includes:
Described audio fragment is resolved, obtains unique mark of described audio file;
Unique using described audio file identifies with described audio file information as index, searches described audio frequency The true name of file.
In conjunction with the first embodiment of second aspect, in the second embodiment of second aspect, described Resolving described audio fragment, the unique mark obtaining described audio file includes: from described audio frequency sheet Extracting the song label of described audio file in Duan, described song label includes singer's name, song title, specially Collect name;
Described uniquely identifying with described audio file information as index using described audio file, searches described The true name of audio file includes: song label and described audio file information with described audio file are made For index, have in storage in the song label of audio file and the mapping table of audio file information and true name Search the true name of described audio file.
In conjunction with the second embodiment of second aspect, in the third embodiment of second aspect, described Audio file information includes file path and former name.
The third aspect, the embodiment of the present invention provides a kind of audio file name device, and described device is positioned at client End, described device includes:
Acquiring unit, for obtaining the audio file information of audio file;
Extraction unit, for extracting the audio fragment of scheduled duration from described audio file;
First transmitting element, for sending described audio file information and described audio fragment to server, So that described server determines the true of described audio file according to described audio fragment and described audio file information Real name;
First receives unit, for receiving the true name of the described audio file that described server returns;
Error correction unit, for the true name according to described audio file described audio file former named into Row error correction.
In conjunction with the third aspect, in the first embodiment of the third aspect, described extraction unit, for working as When total duration of described audio file is less than described scheduled duration, extract whole described audio file as audio frequency Fragment.
In conjunction with the first embodiment of the third aspect, in the second embodiment of the third aspect, described Error correction unit, when the former name of truly name and described audio file when described audio file is inconsistent, The former name of described audio file is replaced with the true name of described audio file;When described audio file When truly naming consistent with the former name of described audio file, the former name keeping described audio file is constant.
In conjunction with the second embodiment of the third aspect, in the third embodiment of the third aspect, described Audio file information includes file path and former name.
Fourth aspect, the embodiment of the present invention provides a kind of audio file name device, and described device is positioned at service Device, described device includes:
Second receives unit, for receiving audio file information and the audio fragment that client sends, described Audio fragment obtains for extracting from audio file;
Determine unit, for determining described audio file according to described audio fragment and described audio file information True name;
Second transmitting element, for sending the true name of described audio file to described client, so that institute State client, according to the true name of described audio file, the former name of described audio file is carried out error correction.
In conjunction with fourth aspect, in the first embodiment of fourth aspect, described determine that unit includes:
Obtain subelement, for described audio fragment is resolved, obtain unique mark of described audio file Know;
Search subelement, for the unique mark using described audio file with described audio file information as rope Draw, search the true name of described audio file.
In conjunction with the first embodiment of fourth aspect, in the second embodiment of fourth aspect, described Obtain subelement, for extracting the song label of described audio file, described song from described audio fragment Label includes singer's name, song title, album name;
Described lookup subelement, includes for searching the true name of described audio file: with described audio frequency literary composition The song label of part and described audio file information as index, storage have audio file song label and Audio file information and the mapping table of true name search truly naming of described audio file.
In conjunction with the second embodiment of fourth aspect, in the third embodiment of fourth aspect, described Audio file information includes file path and former name.
5th aspect, the embodiment of the present invention provides a kind of electronic equipment, and described electronic equipment includes: housing, Processor, memory, circuit board and power circuit, wherein, circuit board is placed in the space that housing surrounds Portion, processor and memory are arranged on circuit boards;Power circuit, for for each of above-mentioned electronic equipment Circuit or device are powered;Memory is used for storing executable program code;Processor is by reading in memory The executable program code of storage runs the program corresponding with executable program code, is applied to for execution Aforementioned arbitrary described audio file naming method of client.
6th aspect, the embodiment of the present invention provides a kind of electronic equipment, and described electronic equipment includes: housing, Processor, memory, circuit board and power circuit, wherein, circuit board is placed in the space that housing surrounds Portion, processor and memory are arranged on circuit boards;Power circuit, for for each of above-mentioned electronic equipment Circuit or device are powered;Memory is used for storing executable program code;Processor is by reading in memory The executable program code of storage runs the program corresponding with executable program code, is applied to for execution Aforementioned arbitrary described audio file naming method of server.
The embodiment of the present invention provide a kind of audio file naming method, device and electronic equipment, client to Server sends audio file information and the audio fragment of the scheduled duration of extraction, service from audio file Device determines truly naming and returning of described audio file according to described audio fragment and described audio file information To client, the former name of described audio file is carried out by client according to the true name of described audio file Error correction.Compared with prior art, the nonstandard former name of audio file can be corrected as unified by the present invention The proper naming of form, consequently facilitating user searches for and browses audio file.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, describe below In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying On the premise of going out creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of audio file naming method embodiment one of the present invention;
Fig. 2 is the flow chart of audio file naming method embodiment two of the present invention;
Fig. 3 is the structural representation of audio file of the present invention name device embodiment one;
Fig. 4 is the structural representation of audio file of the present invention name device embodiment two;
Fig. 5 is the structural representation of electronic equipment embodiment one of the present invention;
Fig. 6 is the structural representation of electronic equipment embodiment two of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawings the embodiment of the present invention is described in detail.
It will be appreciated that described embodiment be only the present invention a part of embodiment rather than whole realities Execute example.Based on the embodiment in the present invention, those of ordinary skill in the art are not before making creative work Put all other embodiments obtained, broadly fall into the scope of protection of the invention.
Fig. 1 is the flow chart of audio file naming method embodiment one of the present invention, and described method is applied to client End, as it is shown in figure 1, the method for the present embodiment may include that
Step 11, the audio file information of acquisition audio file.
In the present embodiment, described audio file information includes file path and former name.
Step 12, from described audio file, extract the audio fragment of scheduled duration.
In the present embodiment, the audio fragment of scheduled duration can be extracted from described audio file at random.Optional Ground, described scheduled duration can be 3 seconds.When total duration of described audio file is less than described scheduled duration, Extract whole described audio file as audio fragment.
Step 13, send described audio file information and described audio fragment to server, so that described clothes Business device determines the true name of described audio file according to described audio fragment and described audio file information.
In the present embodiment, first described audio fragment is resolved by server, obtains described audio file Unique mark, then identifies with described audio file information as index using the unique of described audio file, looks into Look for the true name of described audio file.Wherein, in the media database of server, storage has audio file Unique mark identifies and sound with audio file information and the mapping table of true name, unique according to audio file Frequency file information, it is possible to find the true name of correspondence in described mapping table.
Step 14, receive the true name of the described audio file that described server returns.
In the present embodiment, the form of described true name predefines in the server, each audio file True name has identical form.Such as, for song files, the true life of storage in server The form of name can be: song title-singer's name-album name.
Step 15, true name according to described audio file carry out error correction to the former name of described audio file.
In the present embodiment, when truly naming of described audio file is inconsistent with the former name of described audio file Time, the former name of described audio file is replaced with the true name of described audio file;When described audio frequency literary composition When truly naming consistent with the former name of described audio file of part, keeps the former name of described audio file not Become.
The present embodiment, user end to server send audio file information and from audio file extract pre- The audio fragment that timing is long, so that server determines institute according to described audio fragment and described audio file information That states audio file truly names and returns to client, and client is according to the true name of described audio file Former name to described audio file carries out error correction.Compared with prior art, the present invention can be by audio file Nonstandard former name be corrected as the proper naming of consolidation form, consequently facilitating user's search and browse audio frequency File.
Fig. 2 is the flow chart of audio file naming method embodiment two of the present invention, and described method is applied to service Device, as in figure 2 it is shown, the method for the present embodiment may include that
Step 21, the audio file information receiving client transmission and audio fragment, described audio fragment is Extract from audio file and obtain.
In the present embodiment, described audio file information includes file path and former name.Described audio fragment is The fragment of the random scheduled duration extracted from described audio file.Alternatively, described scheduled duration can be 3 Second.When total duration of described audio file is less than described scheduled duration, extracts whole described audio file and make For audio fragment.
Step 22, determine the true of described audio file according to described audio fragment and described audio file information Name.
In the present embodiment, first described audio fragment is resolved, obtain unique mark of described audio file Know, then identify with described audio file information as index using the unique of described audio file, search described The true name of audio file.
Wherein, in the media database of server, storage has unique mark and the audio file information of audio file With the mapping table of true name, unique according to audio file identifies and audio file information, it is possible to described Mapping table finds the true name of correspondence.
Step 23, truly naming to the described client described audio file of transmission, so that described client root According to the true name of described audio file, the former name of described audio file is carried out error correction.
In the present embodiment, when truly naming of described audio file is inconsistent with the former name of described audio file Time, the former name of described audio file is replaced with the true name of described audio file by client;When described When truly naming consistent with the former name of described audio file of audio file, client keeps described audio frequency literary composition The former name of part is constant.
The present embodiment, receives the audio file information of client transmission and making a reservation for of extracting from audio file The audio fragment of duration, determines described audio file according to described audio fragment and described audio file information Truly name and return to client, so that client truly naming described sound according to described audio file The former name of frequency file carries out error correction.Compared with prior art, the present invention can lack of standardization by audio file Former name be corrected as the proper naming of consolidation form, consequently facilitating user's search and browse audio file.
With concrete example, above-described embodiment is described in detail below.
Such as, client storage has 3 songs, and name is respectively as follows:
Friend-Zhou Huajian .mp3
Ambush on all sides-old good-" 10 years " .mp3
Really like your .mp3
First, the audio file information of client acquisition song " friend-Zhou Huajian .mp3 " is:
File path :/sdcard/music/ friend-Zhou Huajian .mp3
Former name: friend-Zhou Huajian .mp3
The audio fragment path that client is extracted is :/sdcard/music/ friend-Zhang Huajian .mp3_temp
In like manner, client gets the audio file information of other two songs and extracts audio fragment.
Then, client by the audio file information of three songs and is extracted audio fragment and is sent to service Device.The audio fragment of every song is resolved by server, obtains uniquely identifying of this song, then with Unique mark of this song and the audio file information of this song, as index, search the true name of this song.
Specifically, the audio file of MP3 format includes three parts: the second song label, sequence of audio number According to frame and the first song label, wherein,
Second song label, is positioned at the position that audio file starts, and form is ID3V2, contain singer's name, The information such as song title, album name, length is not fixed, and extends the information content of ID3V1;
The frame of a series of voice data, in the centre position of file, number is determined by file size and frame length, The length of each frame may not be fixed, it is also possible to fixing, bit rate determine, each frame is divided into again frame head sum Body two parts factually, frame head have recorded the information such as the bit rate of MP3, sample rate, version, phase between each frame The most independent;
First song label, be positioned at audio file ending position, form is ID3V1, contain singer's name, The information such as song title, album name, a length of 128Byte.
Client can extract audio fragment before audio file, then this audio fragment is carried out parsing and obtain That gets is uniquely designated the second song label;Or, client can extract sound after audio file Frequently fragment, then be analyzed and acquired by this audio fragment is uniquely designated the first song label.This is second years old Song label or the first song label include the information such as singer's name, song title, album name.
The media database of server pre-builds that the song label of audio file and audio file information are with true The mapping table of real name, the second song label of the audio file sended over according to client or the first song Label and audio file information, it is corresponding that server can find this audio file in described mapping table True name.
Specifically, whois lookup to the true name of three songs be respectively as follows:
Friend-Zhou Huajian-" strong brother is good for younger brother " .mp3
Ambush on all sides-Chen Yixun-" 10 years " .mp3
Like your-Beyond-" Beyond IV " .mp3
Then, the true name of three songs is sent to client by server.
Finally, client, according to the audio file path of three songs, carries out error correction to former name.
Specifically, the song of former named " friend-Zhou Huajian .mp3 " is corrected as " friend-Zhou Huajian-" strong Brother is good for younger brother " .mp3 ";
The song of former named " ambush on all sides-old good-" 10 years " .mp3 " is corrected as " ambush on all sides-old Yi Xun-" 10 years " .mp3 ";
The song of former named " really like you .mp3 " is corrected as " liking your-Beyond-" Beyond IV》.mp3”。
Fig. 3 is the structural representation of audio file of the present invention name device embodiment one, and described device is positioned at visitor Family end, as it is shown on figure 3, the device of the present embodiment may include that acquiring unit 11, extraction unit 12, One transmitting element 13, first receives unit 14, error correction unit 15, wherein, acquiring unit 11, is used for obtaining Take the audio file information of audio file;Extraction unit 12, for extracting pre-timing from described audio file Long audio fragment;First transmitting element 13, for sending described audio file information and institute to server State audio fragment, so that described server determines described according to described audio fragment and described audio file information The true name of audio file;First receives unit 14, for receiving the described audio frequency that described server returns The true name of file;Error correction unit 15, for truly naming described audio frequency according to described audio file The former name of file carries out error correction.
Further, described extraction unit 12, predetermined less than described for the total duration when described audio file During duration, extract whole described audio file as audio fragment.
Further, described error correction unit 15, for naming and described audio frequency when the true of described audio file When the former name of file is inconsistent, the former name of described audio file is replaced with the true of described audio file Name;When truly naming consistent with the former name of described audio file of described audio file, keep described The former name of audio file is constant.
Alternatively, described audio file information includes file path and former name.
The device of the present embodiment, may be used for performing the technical scheme of embodiment of the method shown in Fig. 1, and it realizes Principle is similar with technique effect, and here is omitted.
Fig. 4 is the structural representation of audio file of the present invention name device embodiment two, and described device is positioned at clothes Business device, as shown in Figure 4, the device of the present embodiment may include that the second reception unit 21, determine unit 22, Second transmitting element 23, wherein, second receives unit 21, for receiving the audio file letter that client sends Breath and audio fragment, described audio fragment obtains for extracting from audio file;Determine unit 22, be used for The true name of described audio file is determined according to described audio fragment and described audio file information;Second Send unit 23, for sending the true name of described audio file to described client, so that described client True name according to described audio file carries out error correction to the former name of described audio file.
Further, described determine that unit 22 includes:
Obtain subelement, for described audio fragment is resolved, obtain unique mark of described audio file Know;Search subelement, for the unique mark using described audio file with described audio file information as rope Draw, search the true name of described audio file.
Further, described acquisition subelement, for extracting described audio file from described audio fragment Song label, described song label includes singer's name, song title, album name;
Described lookup subelement, includes for searching the true name of described audio file: with described audio frequency literary composition The song label of part and described audio file information as index, storage have audio file song label and Audio file information and the mapping table of true name search truly naming of described audio file.
Alternatively, described audio file information includes file path and former name.
The device of the present embodiment, may be used for performing the technical scheme of embodiment of the method shown in Fig. 2, and it realizes Principle is similar with technique effect, and here is omitted.
It should be noted that in this article, the relational terms of such as first and second or the like be used merely to by One entity or operation separate with another entity or operating space, and not necessarily require or imply these Relation or the order of any this reality is there is between entity or operation.And, term " includes ", " bag Contain " or its any other variant be intended to comprising of nonexcludability, so that include a series of key element Process, method, article or equipment not only include those key elements, but also include being not expressly set out Other key elements, or also include the key element intrinsic for this process, method, article or equipment.? In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that at bag Include and the process of described key element, method, article or equipment there is also other identical element.
Each embodiment in this specification all uses relevant mode to describe, phase homophase between each embodiment As part see mutually, what each embodiment stressed is the difference with other embodiments.
For device embodiment, owing to it is substantially similar to embodiment of the method, so describe Fairly simple, relevant part sees the part of embodiment of the method and illustrates.
Represent in flow charts or the logic described otherwise above at this and/or step, for example, it is possible to recognized For being the sequencing list of executable instruction for realizing logic function, may be embodied in any computer In computer-readable recording medium, (such as computer based system, include place for instruction execution system, device or equipment The reason system of device or other can be from instruction execution system, device or equipment instruction fetch the system performing instruction) Use, or combine these instruction execution systems, device or equipment and use.For the purpose of this specification, " calculate Machine computer-readable recording medium " can be any can to comprise, store, communicate, propagate or transmission procedure is held for instruction Row system, device or equipment or combine these instruction execution systems, device or equipment and the device that uses.Meter The more specifically example (non-exhaustive list) of calculation machine computer-readable recording medium includes following: have one or more cloth The electrical connection section (electronic installation) of line, portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash are deposited Reservoir), fiber device, and portable optic disk read-only storage (CDROM).It addition, computer-readable Medium can even is that paper or other the suitable media that can print described program thereon, because can be such as By paper or other media are carried out optical scanner, then carry out editing, interpreting or suitable with other if desired Mode is processed to electronically obtain described program, is then stored in computer storage.
Should be appreciated that each several part of the present invention can realize by hardware, software, firmware or combinations thereof.
In the above-described embodiment, multiple steps or method can be with storing in memory and by suitably referring to Software that execution system performs or firmware is made to realize.Such as, if realized with hardware and real at another As executing in mode, can realize by any one in following technology well known in the art or their combination: There is the discrete logic of logic gates for data-signal realizes logic function, have suitably The special IC of combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc..
The embodiment of the present invention also provides for a kind of electronic equipment, and described electronic equipment comprises described in previous embodiment It is positioned at the device of client.
Fig. 5 is the structural representation of electronic equipment embodiment one of the present invention, it is possible to achieve shown in Fig. 1 of the present invention The flow process of embodiment, as it is shown in figure 5, above-mentioned electronic equipment may include that housing 31, processor 32, deposits Reservoir 33, circuit board 34 and power circuit 35, wherein, circuit board 34 is placed in the sky that housing 31 surrounds Inside between, processor 32 and memory 33 are arranged on circuit board 34;Power circuit 35, for for above-mentioned Each circuit of electronic equipment or device are powered;Memory 33 is used for storing executable program code;Processor 32 run corresponding with executable program code by reading the executable program code of storage in memory 33 Program, for performing aforementioned arbitrary described audio file naming method being applied to client.
Processor 32 to concrete process and the processor 32 of performing of above-mentioned steps by running executable program The step that code performs further, may refer to the description of embodiment illustrated in fig. 1 of the present invention, at this no longer Repeat.
The embodiment of the present invention also provides for a kind of electronic equipment, and described electronic equipment comprises described in previous embodiment It is positioned at the device of server.
Fig. 6 is the structural representation of electronic equipment embodiment two of the present invention, it is possible to achieve shown in Fig. 2 of the present invention The flow process of embodiment, as shown in Figure 6, above-mentioned electronic equipment may include that housing 41, processor 42, deposits Reservoir 43, circuit board 44 and power circuit 45, wherein, circuit board 44 is placed in the sky that housing 41 surrounds Inside between, processor 42 and memory 43 are arranged on circuit board 44;Power circuit 45, for for above-mentioned Each circuit of electronic equipment or device are powered;Memory 43 is used for storing executable program code;Processor 42 run corresponding with executable program code by reading the executable program code of storage in memory 43 Program, for performing aforementioned arbitrary described audio file naming method being applied to server.
Processor 42 to concrete process and the processor 42 of performing of above-mentioned steps by running executable program The step that code performs further, may refer to the description of embodiment illustrated in fig. 2 of the present invention, at this no longer Repeat.
This electronic equipment exists in a variety of forms, includes but not limited to:
(1) mobile communication equipment: the feature of this kind equipment is to possess mobile communication function, and with provide speech, Data communication is main target.This Terminal Type includes: smart mobile phone (such as iPhone), multimedia handset, Functional mobile phone, and low-end mobile phone etc..
(2) super mobile personal computer equipment: this kind equipment belongs to the category of personal computer, has calculating and place Reason function, the most also possesses mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC set Standby etc., such as iPad.
(3) portable entertainment device: this kind equipment can show and play content of multimedia.This kind equipment includes: Audio frequency, video player (such as iPod), handheld device, e-book, and intelligent toy and portable In-vehicle navigation apparatus.
(4) server: provide calculate service equipment, the composition of server include processor, hard disk, internal memory, System bus etc., server is similar with general computer architecture, but owing to needing to provide highly reliable clothes Business, therefore at aspects such as disposal ability, stability, reliability, security, extensibility, manageabilitys Require higher.
(5) other have the electronic equipment of data interaction function.
Those skilled in the art are appreciated that and realize the whole or portion that above-described embodiment method is carried The program that can be by step by step completes to instruct relevant hardware, and described program can be stored in a kind of meter In calculation machine readable storage medium storing program for executing, this program upon execution, including one or a combination set of the step of embodiment of the method.
For convenience of description, describing apparatus above is to be divided into various units/modules to be respectively described with function.When So, can be the function of each unit/module in same or multiple softwares and/or hardware when implementing the present invention Realize.
As seen through the above description of the embodiments, those skilled in the art is it can be understood that arrive this Invention can add the mode of required general hardware platform by software and realize.Based on such understanding, this The part that prior art is contributed by bright technical scheme the most in other words can be with the form of software product Embodying, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., including some instructions with so that computer equipment (can be personal computer, server, Or the network equipment etc.) perform each embodiment of the present invention or the method described in some part of embodiment.

Claims (10)

1. an audio file naming method, it is characterised in that described method is applied to client, described side Method includes:
Obtain the audio file information of audio file;
The audio fragment of scheduled duration is extracted from described audio file;
Send described audio file information and described audio fragment to server so that described server according to Described audio fragment and described audio file information determine the true name of described audio file;
Receive the true name of the described audio file that described server returns;
True name according to described audio file carries out error correction to the former name of described audio file.
Audio file naming method the most according to claim 1, it is characterised in that described from described sound The audio fragment extracting scheduled duration in frequency file includes: when total duration of described audio file is less than described pre- Time the longest, extract whole described audio file as audio fragment.
Audio file naming method the most according to claim 1, it is characterised in that described in described basis The true name of audio file carries out error correction to the former name of described audio file and includes: when described audio file True name inconsistent with the former name of described audio file time, the former name of described audio file is replaced True name for described audio file;True name and described audio file former when described audio file When naming consistent, the former name keeping described audio file is constant.
Audio file naming method the most according to any one of claim 1 to 3, it is characterised in that Described audio file information includes file path and former name.
5. an audio file naming method, it is characterised in that described method is applied to server, described side Method includes:
Receiving audio file information and audio fragment that client sends, described audio fragment is from audio frequency literary composition Part extracts and obtains;
The true name of described audio file is determined according to described audio fragment and described audio file information;
The true name of described audio file is sent, so that described client is according to described sound to described client The true name of frequency file carries out error correction to the former name of described audio file.
Audio file naming method the most according to claim 5, it is characterised in that described in described basis Audio fragment and described audio file information determine that the true name of described audio file includes:
Described audio fragment is resolved, obtains unique mark of described audio file;
Unique using described audio file identifies with described audio file information as index, searches described audio frequency The true name of file.
Audio file naming method the most according to claim 6, it is characterised in that described to described sound Frequently fragment resolves, and the unique mark obtaining described audio file includes: extract from described audio fragment The song label of described audio file, described song label includes singer's name, song title, album name;
Described uniquely identifying with described audio file information as index using described audio file, searches described The true name of audio file includes: song label and described audio file information with described audio file are made For index, have in storage in the song label of audio file and the mapping table of audio file information and true name Search the true name of described audio file.
8. according to the audio file naming method according to any one of claim 5 to 7, it is characterised in that Described audio file information includes file path and former name.
9. an audio file name device, it is characterised in that described device is positioned at client, described device Including:
Acquiring unit, for obtaining the audio file information of audio file;
Extraction unit, for extracting the audio fragment of scheduled duration from described audio file;
First transmitting element, for sending described audio file information and described audio fragment to server, So that described server determines the true of described audio file according to described audio fragment and described audio file information Real name;
First receives unit, for receiving the true name of the described audio file that described server returns;
Error correction unit, for the true name according to described audio file described audio file former named into Row error correction.
Audio file the most according to claim 9 name device, it is characterised in that described extraction list Unit, for when total duration of described audio file is less than described scheduled duration, extracts whole described audio frequency literary composition Part is as audio fragment.
CN201610478842.7A 2016-06-27 2016-06-27 Audio file naming method and device and electronic equipment Active CN105868424B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610478842.7A CN105868424B (en) 2016-06-27 2016-06-27 Audio file naming method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610478842.7A CN105868424B (en) 2016-06-27 2016-06-27 Audio file naming method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN105868424A true CN105868424A (en) 2016-08-17
CN105868424B CN105868424B (en) 2020-02-07

Family

ID=56655549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610478842.7A Active CN105868424B (en) 2016-06-27 2016-06-27 Audio file naming method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN105868424B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193878A (en) * 2017-04-24 2017-09-22 维沃移动通信有限公司 It is a kind of to sing single automatic naming method and mobile terminal
CN108363817A (en) * 2018-03-21 2018-08-03 广东欧珀移动通信有限公司 Document handling method, device, mobile terminal and computer readable storage medium
CN108495183A (en) * 2018-04-09 2018-09-04 广州酷狗计算机科技有限公司 The method and apparatus for showing album information
CN109166123A (en) * 2018-10-15 2019-01-08 广东电网有限责任公司 defect image naming method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651694A (en) * 2009-09-18 2010-02-17 北京亮点时间科技有限公司 Method, system, client and server for providing related audio information
CN103631819A (en) * 2012-08-27 2014-03-12 华为技术有限公司 Method and system for naming picture
CN103778157A (en) * 2012-10-25 2014-05-07 深圳市快播科技有限公司 File renaming method and system
US20140164642A1 (en) * 2012-12-06 2014-06-12 International Business Machines Corporation Aliasing of named data objects and named graphs for named data networks
CN104751867A (en) * 2013-12-30 2015-07-01 大陆汽车投资(上海)有限公司 Vehicle-mounted information entertainment system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651694A (en) * 2009-09-18 2010-02-17 北京亮点时间科技有限公司 Method, system, client and server for providing related audio information
CN103631819A (en) * 2012-08-27 2014-03-12 华为技术有限公司 Method and system for naming picture
CN103778157A (en) * 2012-10-25 2014-05-07 深圳市快播科技有限公司 File renaming method and system
US20140164642A1 (en) * 2012-12-06 2014-06-12 International Business Machines Corporation Aliasing of named data objects and named graphs for named data networks
CN104751867A (en) * 2013-12-30 2015-07-01 大陆汽车投资(上海)有限公司 Vehicle-mounted information entertainment system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193878A (en) * 2017-04-24 2017-09-22 维沃移动通信有限公司 It is a kind of to sing single automatic naming method and mobile terminal
CN108363817A (en) * 2018-03-21 2018-08-03 广东欧珀移动通信有限公司 Document handling method, device, mobile terminal and computer readable storage medium
CN108363817B (en) * 2018-03-21 2020-08-18 Oppo广东移动通信有限公司 File processing method and device, mobile terminal and computer readable storage medium
CN108495183A (en) * 2018-04-09 2018-09-04 广州酷狗计算机科技有限公司 The method and apparatus for showing album information
CN108495183B (en) * 2018-04-09 2020-12-04 广州酷狗计算机科技有限公司 Method and device for displaying album information
CN109166123A (en) * 2018-10-15 2019-01-08 广东电网有限责任公司 defect image naming method and device

Also Published As

Publication number Publication date
CN105868424B (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN103605656B (en) A kind of method, apparatus for recommending music and a kind of mobile terminal
CN105550252B (en) File positioning method and device and electronic equipment
CN105868424A (en) Audio file naming method and device and electronic equipment
CN108038114A (en) A kind of path query method, terminal, computer-readable recording medium
US20080065699A1 (en) System and method for collection and synchronization of metadata to facilitate distributed content search
CN1983253A (en) Method, apparatus and system for supplying musically searching service
CN103474055A (en) Mobile phone KTV solution
CN102750629B (en) Schedule association method and device
CN102346747A (en) Method for searching parameters in data model
CN103440243A (en) Teaching resource recommendation method and device thereof
CN104750839A (en) Data recommendation method, terminal and server
CN102737690B (en) Method and terminal that music application starts
CN105809471A (en) Method and device for acquiring user attribute and electronic equipment
CN105354318A (en) File searching method and device
CN101324897A (en) Method and apparatus for looking up lyric
CN104834738A (en) Record file storage method and device
CN102811167B (en) Method and apparatus for the network based on hierarchical name structure
CN107968807A (en) Automatically update the method and device of local cache resource
CN105512276B (en) Method and device for constructing junk file and electronic equipment
CN107766488A (en) A kind of information query method, terminal, computer-readable recording medium
US20120117197A1 (en) Content auto-discovery
CN106599059A (en) Method and device for adding songs
CN109756628A (en) Method and device for playing function key sound effect and electronic equipment
CN101374307B (en) Method and apparatus for updating digital content information of mobile equipment
CN105893555A (en) Display method and device of browser interface and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant