CN105868424B - 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
CN105868424B
CN105868424B CN201610478842.7A CN201610478842A CN105868424B CN 105868424 B CN105868424 B CN 105868424B CN 201610478842 A CN201610478842 A CN 201610478842A CN 105868424 B CN105868424 B CN 105868424B
Authority
CN
China
Prior art keywords
audio file
audio
name
real name
clip
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.)
Active
Application number
CN201610478842.7A
Other languages
Chinese (zh)
Other versions
CN105868424A (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

Images

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 and device and electronic equipment
Technical Field
The invention relates to the technical field of audio and video, in particular to an audio file naming method and device and electronic equipment.
Background
At present, in order to meet the requirement of listening to songs by a mobile phone user, an audio player is installed on the mobile phone, then audio files are downloaded through a network, and the audio files are played by the audio player. Typically, an audio creator names audio files according to a format when creating the audio files, for example, a song file is named in a "song name-singer" format.
Since the audio files downloaded from the network by the user may be created by different creators, and the naming formats of the audio files by the different creators may be different, the naming formats of the audio files downloaded by the user are cluttered, which is very inconvenient for the user to search and browse quickly. In addition, for song files, some songs having the same name may be sung by different singers, while some creators name only the name of the song when creating such song files, and lack the name of the singer, resulting in confusion for users when searching and browsing the song files. In addition, the names of the audio files may be changed during the transmission process, which causes inconvenience for users to search and browse the audio files.
Disclosure of Invention
In view of this, embodiments of the present invention provide an audio file naming method, an audio file naming device, and an electronic device, which are capable of facilitating a user to search and browse an audio file.
In a first aspect, an embodiment of the present invention provides an audio file naming method, where the method is applied to a client, and the method includes:
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.
With reference to the first aspect, in a first implementation manner of the first aspect, the extracting an audio clip of a predetermined duration from the audio file includes: and when the total duration of the audio file is less than the preset duration, extracting the whole audio file as an audio clip.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the correcting the original name of the audio file according to the real name of the audio file includes: replacing the original name of the audio file with the real name of the audio file when the real name of the audio file is inconsistent with the original name of the audio file; and when the real name of the audio file is consistent with the original name of the audio file, keeping the original name of the audio file unchanged.
With reference to the second implementation manner of the first aspect, in a third implementation manner of the first aspect, the audio file information includes a file path and an original name.
In a second aspect, an embodiment of the present invention provides an audio file naming method, where the method is applied to a server, and the method includes:
receiving audio file information and audio clips sent by a client, wherein the audio clips are extracted from audio files;
determining the real name of the audio file according to the audio clip and the audio file information;
and sending the real name of the audio file to the client so that the client corrects the original name of the audio file according to the real name of the audio file.
With reference to the second aspect, in a first implementation manner of the second aspect, the determining the true name of the audio file according to the audio clip and the audio file information includes:
analyzing the audio clip to obtain the unique identifier of the audio file;
and searching the real name of the audio file by taking the unique identifier of the audio file and the audio file information as indexes.
With reference to the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the parsing the audio clip to obtain the unique identifier of the audio file includes: extracting track labels of the audio files from the audio clips, wherein the track labels comprise singer names, song names and album names;
the searching for the real name of the audio file by using the unique identifier of the audio file and the audio file information as an index comprises: and searching the real name of the audio file in a mapping table which stores the track label of the audio file, the audio file information and the real name by taking the track label of the audio file and the audio file information as indexes.
With reference to the second implementation manner of the second aspect, in a third implementation manner of the second aspect, the audio file information includes a file path and an original name.
In a third aspect, an embodiment of the present invention provides an audio file naming apparatus, where the apparatus is located at a client, and the apparatus includes:
an acquisition unit configured to acquire audio file information of an audio file;
the extracting unit is used for extracting an audio clip with preset time length from the audio file;
the first sending unit is used for sending the audio file information and the audio clips to a server so that the server can determine the real names of the audio files according to the audio clips and the audio file information;
the first receiving unit is used for receiving the real name of the audio file returned by the server;
and the error correction unit is used for correcting the original name of the audio file according to the real name of the audio file.
With reference to the third aspect, in a first implementation manner of the third aspect, the extracting unit is configured to extract the entire audio file as an audio clip when the total length of the audio file is less than the predetermined length.
With reference to the first implementation manner of the third aspect, in a second implementation manner of the third aspect, the error correction unit is configured to, when the real name of the audio file does not coincide with the original name of the audio file, replace the original name of the audio file with the real name of the audio file; and when the real name of the audio file is consistent with the original name of the audio file, keeping the original name of the audio file unchanged.
With reference to the second implementation manner of the third aspect, in a third implementation manner of the third aspect, the audio file information includes a file path and an original name.
In a fourth aspect, an embodiment of the present invention provides an audio file naming apparatus, where the apparatus is located at a server, and the apparatus includes:
the second receiving unit is used for receiving the audio file information and the audio clip sent by the client, wherein the audio clip is extracted from the audio file;
the determining unit is used for determining the real name of the audio file according to the audio clip and the audio file information;
and the second sending unit is used for sending the real name of the audio file to the client so that the client corrects the original name of the audio file according to the real name of the audio file.
With reference to the fourth aspect, in a first implementation manner of the fourth aspect, the determining unit includes:
the acquisition subunit is used for analyzing the audio clip to acquire the unique identifier of the audio file;
and the searching subunit is used for searching the real name of the audio file by taking the unique identifier of the audio file and the audio file information as indexes.
With reference to the first implementation manner of the fourth aspect, in a second implementation manner of the fourth aspect, the obtaining subunit is configured to extract track tags of the audio file from the audio clips, where the track tags include singer names, song names, and album names;
the searching subunit is configured to search for the real name of the audio file, including: and searching the real name of the audio file in a mapping table which stores the track label of the audio file, the audio file information and the real name by taking the track label of the audio file and the audio file information as indexes.
With reference to the second implementation manner of the fourth aspect, in a third implementation manner of the fourth aspect, the audio file information includes a file path and an original name.
In a fifth aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing any of the aforementioned audio file naming methods applied to the client.
In a sixth aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing any of the aforementioned audio file naming methods applied to the server.
According to the audio file naming method and device and the electronic equipment, the client side sends audio file information and the audio clips with preset duration extracted from the audio files to the server, the server determines the real names of the audio files according to the audio clips and the audio file information and returns the real names to the client side, and the client side corrects the original names of the audio files according to the real names of the audio files. Compared with the prior art, the method and the device can correct the irregular original names of the audio files into the correct names in a uniform format, so that a user can search and browse the audio files conveniently.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a first embodiment of an audio file naming method according to the present invention;
FIG. 2 is a flowchart illustrating a second embodiment of an audio file naming method according to the present invention;
FIG. 3 is a schematic structural diagram of an audio file naming apparatus according to a first embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a second exemplary embodiment of an audio file naming apparatus according to the present invention;
FIG. 5 is a schematic structural diagram of an electronic device according to a first embodiment of the invention;
fig. 6 is a schematic structural diagram of a second electronic device according to an embodiment of the invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a first embodiment of an audio file naming method of the present invention, where the method is applied to a client, as shown in fig. 1, the method of this embodiment may include:
and step 11, acquiring audio file information of the audio file.
In this embodiment, the audio file information includes a file path and an original name.
And step 12, extracting an audio clip with preset duration from the audio file.
In this embodiment, an audio clip of a predetermined duration may be randomly extracted from the audio file. Alternatively, the predetermined time period may be 3 seconds. And when the total duration of the audio file is less than the preset duration, extracting the whole audio file as an audio clip.
And step 13, 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.
In this embodiment, the server first parses the audio clip to obtain the unique identifier of the audio file, and then uses the unique identifier of the audio file and the audio file information as an index to find the real name of the audio file. The media database of the server stores the unique identification of the audio file and a mapping table of the audio file information and the real name, and the corresponding real name can be found in the mapping table according to the unique identification of the audio file and the audio file information.
And 14, receiving the real name of the audio file returned by the server.
In this embodiment, the format of the real name is predetermined in the server, and the real name of each audio file has the same format. For example, for a song file, the format of the true name stored in the server may be: song title-singer title-album title.
And step 15, correcting the original name of the audio file according to the real name of the audio file.
In this embodiment, when the real name of the audio file is inconsistent with the original name of the audio file, the original name of the audio file is replaced with the real name of the audio file; and when the real name of the audio file is consistent with the original name of the audio file, keeping the original name of the audio file unchanged.
In this embodiment, the client sends audio file information and an audio clip extracted from the audio file for a predetermined duration to the server, so that the server determines the real name of the audio file according to the audio clip and the audio file information and returns the real name to the client, and the client corrects the original name of the audio file according to the real name of the audio file. Compared with the prior art, the method and the device can correct the irregular original names of the audio files into the correct names in a uniform format, so that a user can search and browse the audio files conveniently.
Fig. 2 is a flowchart of a second embodiment of the audio file naming method of the present invention, where the method is applied to a server, and as shown in fig. 2, the method of this embodiment may include:
and step 21, receiving audio file information and audio clips sent by the client, wherein the audio clips are extracted from the audio files.
In this embodiment, the audio file information includes a file path and an original name. The audio clips are randomly extracted from the audio files and are clips with preset duration. Alternatively, the predetermined time period may be 3 seconds. And when the total duration of the audio file is less than the preset duration, extracting the whole audio file as an audio clip.
And step 22, determining the real name of the audio file according to the audio clip and the audio file information.
In this embodiment, the audio clip is first analyzed to obtain the unique identifier of the audio file, and then the actual name of the audio file is searched by using the unique identifier of the audio file and the audio file information as indexes.
The media database of the server stores the unique identification of the audio file and a mapping table of the audio file information and the real name, and the corresponding real name can be found in the mapping table according to the unique identification of the audio file and the audio file information.
And step 23, sending the real name of the audio file to the client so that the client corrects the original name of the audio file according to the real name of the audio file.
In this embodiment, when the real name of the audio file is inconsistent with the original name of the audio file, the client replaces the original name of the audio file with the real name of the audio file; and when the real name of the audio file is consistent with the original name of the audio file, the client keeps the original name of the audio file unchanged.
In this embodiment, audio file information sent by a client and an audio clip extracted from an audio file for a predetermined duration are received, a real name of the audio file is determined according to the audio clip and the audio file information and returned to the client, so that the client corrects the original name of the audio file according to the real name of the audio file. Compared with the prior art, the method and the device can correct the irregular original names of the audio files into the correct names in a uniform format, so that a user can search and browse the audio files conveniently.
The above embodiments are described in detail below with specific examples.
For example, the client stores 3 songs, named:
friend-Zhouhuajian. mp3
Ten faces buried in the abdomen-Chen Hao-Ten years mp3
True love you mp3
First, the client obtains the audio file information of the song "friend-zhou hua jian. mp 3" as follows:
file path: /sdcard/music/friend-ZhouHuajian. mp3
Original naming: friend-Zhouhuajian. mp3
The path of the audio clip extracted by the client is as follows: /sdcard/music/friend-Zhanghuajian. mp3_ temp
Similarly, the client acquires the audio file information of the other two songs and extracts the audio segments.
Then, the client sends the audio file information of the three songs and the extracted audio clips to the server. The server analyzes the audio clip of each song, acquires the unique identifier of the song, and then uses the unique identifier of the song and the audio file information of the song as indexes to search the real name of the song.
Specifically, an audio file in MP3 format includes three parts: a second track tag, a series of frames of audio data, and a first track tag, wherein,
the second track label is positioned at the beginning position of the audio file, has the format of ID3V2, contains information such as singer name, song name, album name and the like, has unfixed length, and expands the information content of ID3V 1;
the number of the frames of a series of audio data is determined by the size of the file and the frame length in the middle position of the file, the length of each frame may not be fixed or may be fixed and is determined by the bit rate, each frame is divided into a frame header and a data entity, the frame header records information of the MP3 such as the bit rate, the sampling rate, the version and the like, and each frame is independent;
the first track tag, located at the end of the audio file, is in the format of ID3V1, contains information such as the name of the singer, the name of the song, the name of the album, and has a length of 128 bytes.
The client can extract the audio clip from the front of the audio file, and the unique identifier obtained by analyzing the audio clip is the second track label; or the client may extract the audio segment from the back of the audio file, and the unique identifier obtained by analyzing the audio segment is the first track tag. The second track label or the first track label contains information such as singer name, song name, album name and the like.
The media database of the server is pre-established with a mapping table of the audio file track label, the audio file information and the real name, and the server can search the real name corresponding to the audio file in the mapping table according to the second track label or the first track label of the audio file and the audio file information sent by the client.
Specifically, the real names of the three songs searched by the server are respectively:
friend-Zhou Hua Jian-Jian brother mp3
Ten-face buried-Chengyi Lingxi-ten years' mp3
Like you-Beyond IV mp3
The server then sends the true names of the three songs to the client.
And finally, the client corrects the original name by error according to the audio file paths of the three songs.
Specifically, the song originally named "friend-zhou hua jian. mp 3" is corrected to "friend-zhou hua jian-" jian brother ". mp 3";
the original song named as 'ten-face buried-good-' ten years 'mp 3' is corrected to 'ten-face buried-good-' ten years 'mp 3';
the song originally named "love you true. mp 3" was corrected to "like you-Beyond IV. mp 3".
Fig. 3 is a schematic structural diagram of an audio file naming apparatus according to a first embodiment of the present invention, where the apparatus is located at a client, and as shown in fig. 3, the apparatus of this embodiment may include: the device comprises an acquisition unit 11, an extraction unit 12, a first sending unit 13, a first receiving unit 14 and an error correction unit 15, wherein the acquisition unit 11 is used for acquiring audio file information of an audio file; an extracting unit 12, configured to extract an audio clip of a predetermined duration from the audio file; a first sending unit 13, configured to send the audio file information and the audio clip to a server, so that the server determines a real name of the audio file according to the audio clip and the audio file information; a first receiving unit 14, configured to receive a real name of the audio file returned by the server; and the error correction unit 15 is used for correcting the original name of the audio file according to the real name of the audio file.
Further, the extracting unit 12 is configured to extract the entire audio file as an audio clip when the total duration of the audio file is less than the predetermined duration.
Further, the error correction unit 15 is configured to, when the real name of the audio file is inconsistent with the original name of the audio file, replace the original name of the audio file with the real name of the audio file; and when the real name of the audio file is consistent with the original name of the audio file, keeping the original name of the audio file unchanged.
Optionally, the audio file information includes a file path and an original name.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 4 is a schematic structural diagram of a second embodiment of an audio file naming apparatus according to the present invention, where the apparatus is located in a server, and as shown in fig. 4, the apparatus of this embodiment may include: the system comprises a second receiving unit 21, a determining unit 22 and a second sending unit 23, wherein the second receiving unit 21 is configured to receive audio file information and an audio clip sent by a client, and the audio clip is extracted from an audio file; a determining unit 22, configured to determine a real name of the audio file according to the audio clip and the audio file information; a second sending unit 23, configured to send the real name of the audio file to the client, so that the client corrects the original name of the audio file according to the real name of the audio file.
Further, the determination unit 22 includes:
the acquisition subunit is used for analyzing the audio clip to acquire the unique identifier of the audio file; and the searching subunit is used for searching the real name of the audio file by taking the unique identifier of the audio file and the audio file information as indexes.
Further, the obtaining subunit is configured to extract track tags of the audio file from the audio clip, where the track tags include a singer name, a song name, and an album name;
the searching subunit is configured to search for the real name of the audio file, including: and searching the real name of the audio file in a mapping table which stores the track label of the audio file, the audio file information and the real name by taking the track label of the audio file and the audio file information as indexes.
Optionally, the audio file information includes a file path and an original name.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof.
In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
The embodiment of the invention also provides electronic equipment, which comprises the device positioned at the client side in the embodiment.
Fig. 5 is a schematic structural diagram of a first embodiment of an electronic device according to the present invention, which can implement the process of the embodiment shown in fig. 1 of the present invention, and as shown in fig. 5, the electronic device may include: the device comprises a shell 31, a processor 32, a memory 33, a circuit board 34 and a power circuit 35, wherein the circuit board 34 is arranged inside a space enclosed by the shell 31, and the processor 32 and the memory 33 are arranged on the circuit board 34; a power supply circuit 35 for supplying power to each circuit or device of the electronic apparatus; the memory 33 is used for storing executable program codes; the processor 32 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 33, for executing any of the aforementioned audio file naming methods applied to the client.
The specific execution process of the above steps by the processor 32 and the steps further executed by the processor 32 by running the executable program code may refer to the description of the embodiment shown in fig. 1 of the present invention, and are not described herein again.
The embodiment of the invention also provides electronic equipment, which comprises the device positioned in the server in the embodiment.
Fig. 6 is a schematic structural diagram of a second embodiment of the electronic device in the present invention, which can implement the process of the embodiment shown in fig. 2 of the present invention, and as shown in fig. 6, the electronic device may include: the device comprises a shell 41, a processor 42, a memory 43, a circuit board 44 and a power circuit 45, wherein the circuit board 44 is arranged inside a space enclosed by the shell 41, and the processor 42 and the memory 43 are arranged on the circuit board 44; a power supply circuit 45 for supplying power to each circuit or device of the electronic apparatus; the memory 43 is used for storing executable program code; the processor 42 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 43, for executing any of the aforementioned audio file naming methods applied to the server.
The specific execution process of the above steps by the processor 42 and the steps further executed by the processor 42 by running the executable program code may refer to the description of the embodiment shown in fig. 2 of the present invention, and are not described herein again.
The electronic device exists in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
For convenience of description, the above devices are described separately in terms of functional division into various units/modules. Of course, the functionality of the units/modules may be implemented in one or more software and/or hardware implementations of the invention.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.

Claims (12)

1. An audio file naming method is applied to a client side and comprises the following steps:
acquiring audio file information of an audio file, wherein the audio file information comprises a file path and an original name;
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 analyzes the audio clip to obtain a unique identifier of the audio file, and searching a real name of the audio file in a mapping table which stores a track label of the audio file, the audio file information and the real name by taking the unique identifier of the audio file and the audio file information as indexes, wherein the unique identifier is the track label;
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.
2. The method for naming audio files as claimed in claim 1, wherein said extracting audio clips of a predetermined duration from said audio files comprises: and when the total duration of the audio file is less than the preset duration, extracting the whole audio file as an audio clip.
3. The method of claim 1, wherein said error correcting the original name of the audio file according to the actual name of the audio file comprises: replacing the original name of the audio file with the real name of the audio file when the real name of the audio file is inconsistent with the original name of the audio file; and when the real name of the audio file is consistent with the original name of the audio file, keeping the original name of the audio file unchanged.
4. An audio file naming method is applied to a server and comprises the following steps:
receiving audio file information and audio clips sent by a client, wherein the audio clips are extracted from audio files, and the audio file information comprises file paths and original names;
analyzing the audio clip to obtain a unique identifier of the audio file, and searching the real name of the audio file in a mapping table which stores a track label of the audio file, audio file information and the real name by taking the unique identifier of the audio file and the audio file information as indexes, wherein the unique identifier is the track label;
and sending the real name of the audio file to the client so that the client corrects the original name of the audio file according to the real name of the audio file.
5. The method for naming an audio file according to claim 4, wherein the parsing the audio clip and obtaining the unique identifier of the audio file comprises: and extracting track labels of the audio files from the audio clips, wherein the track labels comprise singer names, song names and album names.
6. An audio file naming apparatus, the apparatus being located at a client, the apparatus comprising:
the device comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring audio file information of an audio file, and the audio file information comprises a file path and an original name;
the extracting unit is used for extracting an audio clip with preset time length from the audio file;
the first sending unit is used for sending the audio file information and the audio clip to a server so that the server can analyze the audio clip to obtain a unique identifier of the audio file, and searching the real name of the audio file in a mapping table which stores a track label of the audio file, audio file information and the real name by taking the unique identifier of the audio file and the audio file information as indexes, wherein the unique identifier is the track label;
the first receiving unit is used for receiving the real name of the audio file returned by the server;
and the error correction unit is used for correcting the original name of the audio file according to the real name of the audio file.
7. The audio file naming apparatus according to claim 6, wherein said extracting unit is configured to extract the entire audio file as an audio clip when the total length of the audio file is less than the predetermined length.
8. The audio file naming apparatus according to claim 6, wherein the error correction unit is configured to replace the original name of the audio file with the real name of the audio file when the real name of the audio file is not consistent with the original name of the audio file; and when the real name of the audio file is consistent with the original name of the audio file, keeping the original name of the audio file unchanged.
9. An audio file naming apparatus, the apparatus being located at a server, the apparatus comprising:
the second receiving unit is used for receiving audio file information and audio clips sent by a client, wherein the audio clips are extracted from audio files, and the audio file information comprises file paths and original names;
the determining unit is used for analyzing the audio clip, acquiring the unique identifier of the audio file, and searching the real name of the audio file in a mapping table which stores the track label of the audio file, the audio file information and the real name by taking the unique identifier of the audio file and the audio file information as indexes, wherein the unique identifier is the track label;
and the second sending unit is used for sending the real name of the audio file to the client so that the client corrects the original name of the audio file according to the real name of the audio file.
10. The audio file naming apparatus as claimed in claim 9, wherein the determining unit includes an obtaining sub-unit, the obtaining sub-unit is configured to extract track tags of the audio file from the audio clips, the track tags including singer names, song names, and album names.
11. An electronic device, characterized in that the electronic device comprises: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory for performing the audio file naming method as claimed in any of the preceding claims 1-3.
12. An electronic device, characterized in that the electronic device comprises: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory for executing the audio file naming method as claimed in any of the preceding claims 4-5.
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 CN105868424A (en) 2016-08-17
CN105868424B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193878B (en) * 2017-04-24 2020-03-06 维沃移动通信有限公司 Automatic naming method of song list and mobile terminal
CN108363817B (en) * 2018-03-21 2020-08-18 Oppo广东移动通信有限公司 File processing method and device, mobile terminal and computer readable storage medium
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

Citations (4)

* 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
CN104751867A (en) * 2013-12-30 2015-07-01 大陆汽车投资(上海)有限公司 Vehicle-mounted information entertainment system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9426053B2 (en) * 2012-12-06 2016-08-23 International Business Machines Corporation Aliasing of named data objects and named graphs for named data networks

Patent Citations (4)

* 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
CN104751867A (en) * 2013-12-30 2015-07-01 大陆汽车投资(上海)有限公司 Vehicle-mounted information entertainment system

Also Published As

Publication number Publication date
CN105868424A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN105868424B (en) Audio file naming method and device and electronic equipment
CN103442001B (en) Information recommendation method, device and server
US8880531B2 (en) Method and apparatus for identifying a piece of content
WO2017096948A1 (en) Video positioning method and device
WO2014209949A2 (en) Locating and sharing audio/visual content
CN109508391B (en) Input prediction method and device based on knowledge graph and electronic equipment
CN110636345B (en) Multimedia information sharing method and system under same identity account
US20170180445A1 (en) Advertisement data acquisition method and electronic equipment
CN110808065A (en) Method and device for detecting refrain, electronic equipment and storage medium
US20200218760A1 (en) Music search method and device, server and computer-readable storage medium
CN109656385B (en) Input prediction method and device based on knowledge graph and electronic equipment
CN109618229A (en) Association playback method, device, server and the storage medium of audio-video
CN102737690B (en) Method and terminal that music application starts
CN111723235B (en) Music content identification method, device and equipment
WO2017219691A1 (en) Page content loading method and apparatus, and electronic device
CN101324897A (en) Method and apparatus for looking up lyric
CN106599059A (en) Method and device for adding songs
CN107223341A (en) The method and commending system for recommending video are used according to app
CN115048908A (en) Method and device for generating text directory
CN113747233B (en) Music replacement method and device, electronic equipment and storage medium
CN102890948B (en) A kind of Online Music player method and terminal device thereof
CN108920658B (en) Mobile device desktop moving method and device and electronic device
CN106777369B (en) System and method for adding bookmark to audio book
CN108257625B (en) Audio file playing method and system
CN106411975B (en) Data output method and device and computer readable storage medium

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