WO2015070682A1 - 一种音频文件的播控处理方法、装置及存储介质 - Google Patents

一种音频文件的播控处理方法、装置及存储介质 Download PDF

Info

Publication number
WO2015070682A1
WO2015070682A1 PCT/CN2014/088420 CN2014088420W WO2015070682A1 WO 2015070682 A1 WO2015070682 A1 WO 2015070682A1 CN 2014088420 W CN2014088420 W CN 2014088420W WO 2015070682 A1 WO2015070682 A1 WO 2015070682A1
Authority
WO
WIPO (PCT)
Prior art keywords
color
audio file
colors
play
preset
Prior art date
Application number
PCT/CN2014/088420
Other languages
English (en)
French (fr)
Inventor
赵伟峰
李深远
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to US15/037,012 priority Critical patent/US10222930B2/en
Publication of WO2015070682A1 publication Critical patent/WO2015070682A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H1/00Details of electrophonic musical instruments
    • G10H1/0008Associated control or indicating means
    • 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
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/24Indexing scheme for image data processing or generation, in general involving graphical user interfaces [GUIs]
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H2240/00Data organisation or data communication aspects, specifically adapted for electrophonic musical tools or instruments
    • G10H2240/075Musical metadata derived from musical analysis or for use in electrophonic musical instruments
    • G10H2240/085Mood, i.e. generation, detection or selection of a particular emotional content or atmosphere in a musical piece

Definitions

  • the embodiments of the present invention relate to the field of Internet technologies, and particularly to the field of audio processing technologies, and in particular, to a method, an apparatus, and a storage medium for playing and controlling an audio file.
  • the playback color of an audio file can represent the style attributes of an audio file to a certain extent. For example, a dim playback color can represent a melancholy style audio file, a bright play color can represent a festive and cheerful style audio file, and the like.
  • the broadcast control process for audio files usually does not pay attention to the playback color of the audio file.
  • the playback color of each audio file is the color of the player interface, and the player The colors of the interface are mostly fixed colors, which makes the playback color of each audio file lack personality and pertinence, can not effectively characterize the style attributes of each audio file, and reduces the intelligence of the broadcast control processing of the audio file.
  • the embodiment of the invention provides a broadcast control processing method, device and storage medium for an audio file, which can determine a personalized play color for an audio file, so that the play color of the audio file can effectively represent the style attribute of the audio file, and the audio file is improved.
  • the intelligence of the broadcast control processing is improved.
  • a first aspect of the embodiments of the present invention provides a method for processing a broadcast file of an audio file, which may include:
  • the audio file is subjected to a broadcast control process using the determined play color.
  • a second aspect of the embodiments of the present invention provides a broadcast control processing apparatus for an audio file, which may include:
  • An image obtaining module configured to acquire an album image corresponding to the audio file to be processed
  • An analysis module configured to perform color analysis on the album image to determine a play color of the audio file
  • the broadcast control processing module is configured to perform broadcast control processing on the audio file by using the determined play color.
  • a third aspect of the embodiments of the present invention provides a storage medium including computer executable instructions for performing a broadcast control processing method of an audio file when executed by a computer processor, the method comprising:
  • the audio file is subjected to a broadcast control process using the determined play color.
  • Embodiments of the present invention have the following beneficial effects:
  • the play color of the audio file is determined based on the color analysis of the album image corresponding to the audio file. Since the album image can reflect the style attribute of the corresponding audio file to some extent, the play color determined based on the album image
  • the style attribute of the audio file can be personalized and targeted; and the embodiment of the present invention performs the broadcast control processing on the audio file by using the determined play color, thereby effectively improving the intelligence of the broadcast control processing of the audio file.
  • FIG. 1 is a flowchart of a method for processing broadcast control of an audio file according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another method for processing broadcast control of an audio file according to an embodiment of the present invention
  • FIG. 3 is a flowchart of still another method for controlling broadcast control of an audio file according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a broadcast control processing apparatus for an audio file according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of an embodiment of an analysis module according to an embodiment of the present disclosure.
  • FIG. 5b is a schematic structural diagram of another embodiment of an analysis module according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of an embodiment of a mapping processing unit according to an embodiment of the present disclosure.
  • FIG. 6b is a schematic structural diagram of another embodiment of a mapping processing unit according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a broadcast control processing module according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a coloring processing unit according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • the audio file may include, but is not limited to, a file such as a music, a music piece, or a voice segment.
  • the music includes but is not limited to: a song with an accompaniment, a clear song or a performance music, and the music clip corresponding to, but not limited to, a song piece with an accompaniment, a clear song piece or a music piece.
  • the broadcast control processing method of the audio file shown in FIG. 1 to FIG. 3 can be performed by the broadcast control processing device of the audio file provided by the embodiment of the present invention, and the broadcast control processing device of the audio file can be run on In a terminal device or a server, the terminal device may include, but is not limited to, a PC (Personal Computer), a PAD (Tablet), a mobile phone, a smart phone, or a notebook computer.
  • a PC Personal Computer
  • PAD Tablett
  • FIG. 1 is a flowchart of a method for processing a broadcast control of an audio file according to an embodiment of the present invention; the method may include the following steps S101 to S103.
  • the album image corresponding to the audio file refers to any picture included in the album to which the audio file belongs.
  • the album image corresponding to the audio file to be processed may be obtained from the network.
  • the album image acquired in this step may refer to the cover image of the album to which the audio file belongs, or may refer to the audio in the album to which the audio file belongs. The image selected for the file.
  • an image library may also be locally created in advance, in the image library.
  • An album image corresponding to at least one audio file is stored.
  • Obtaining the album image corresponding to the audio file to be processed may be: first, querying the album image corresponding to the audio file to be processed in the local album image library; if the query fails, obtaining the audio file to be processed from other devices through the network Album image.
  • the color of the album image can reflect the style attributes of the corresponding audio file to a certain extent.
  • melancholy-style audio files usually use images of dim colors (such as black and/or gray) as album images; quiet and relaxing style audio files.
  • Images of neutral colors (such as blue and/or green) are usually used as album images; audio files with festive colors are usually selected as images of album colors in bright colors (such as red and/or yellow);
  • This step determines the play color of the audio file by performing color analysis on the album image, so that the determined play color can represent the style attribute of the audio file.
  • Performing color analysis on the album image to determine a play color of the audio file which may be specifically:
  • the playing interface of the audio file is colored and outputted by using the determined playing color, so that the playing interface of the audio file can be personalized and targeted. Characterizes the style attributes of the audio file.
  • FIG. 2 is a flowchart of another method for controlling broadcast control of an audio file according to an embodiment of the present invention; the method may include the following steps S201 to S206.
  • step S201 of the embodiment reference may be made to the step S101 of the embodiment shown in FIG. 1 , and details are not described herein.
  • the album image is composed of a plurality of pixels arranged in accordance with information such as position and color.
  • the color of each pixel of the album image may be represented by an RGB (Red Green Blue) format, for example: the color value of the first pixel of the album image may be expressed as (r 1 , g 1 , b 1 ); the color value of the second pixel of the album image can be expressed as (r 2 , g 2 , b 2 ), and so on, the nth (n is a positive integer) of the album image
  • the color values of the pixels can be expressed as (r n , g n , b n ) and the like.
  • the designated pixel point may be designated as all the pixel points of the album image, or may be designated as a partial pixel point of the album image.
  • the preset number of feature colors can be used to represent a basic color of the album image, and the basic color can include a primary color and a secondary color. It can be understood that the preset number is less than or equal to the number of the specified pixel points, and the preset number can be set according to actual needs, for example, the preset quantity can also be set to M+N, M and N. The value is an integer greater than or equal to 0, where M can represent the number of feature colors that represent the primary color of the album image, and N can represent the number of feature colors that represent the secondary color of the album image, a preset number The sum of the number of feature colors of the main color of the album image and the number of feature colors of the sub color.
  • a color histogram algorithm may be used to extract a preset number of feature colors from the colors of the specified pixel points of the album image;
  • a clustering algorithm may also be used, for example: KNN (K-Nearest Neighbor algorithm) An algorithm that extracts a preset number of feature colors from the colors of the specified pixel points of the album image.
  • this step may determine the extracted M+N feature colors as the play color of the audio file. Since the color of the album image can reflect the style attribute of the corresponding audio file to some extent, and the feature color extracted from the album image is determined as the play color of the audio file, the play color can be personalized and targeted. Characterizes the style attributes of the audio file.
  • Steps S202 to S204 of this embodiment may be specific refinement steps of step S102 of the embodiment shown in FIG. 1.
  • the play interface of the audio file may be colored by using the determined play color in the process of playing and controlling the audio file; the coloring process of the step
  • the process may specifically include the following steps AC:
  • the preset area range can be set according to actual needs, for example: preset area range
  • the circumference may be set to the entire area of the play interface of the audio file; or the preset area range may be set as a partial area of the play interface of the audio file.
  • the determined play color is M+N colors
  • step B can randomly select one or more play colors from the M+N colors as the background color. And coloring the background of the coloring processing region.
  • the determined play color is M+N colors
  • the step C may be from the M+N colors other than the background color.
  • the font of the coloring processing area is colored by randomly selecting one or more playing colors as the font color.
  • the play interface of the audio file after the coloring process may be displayed, so that the user can intuitively perceive the style attribute of the audio file according to the displayed play interface of the audio file.
  • FIG. 3 is a flowchart of still another method for processing broadcast control of an audio file according to an embodiment of the present invention; the method may include the following steps S301-S307.
  • mapping the preset number of feature colors may include the following two feasible implementation manners.
  • the mapping process of step S304 may include the following steps D-F:
  • the preset first color mapping table is read, and the preset first color mapping table includes at least one A mapping color, and a range of color values for each mapped color.
  • the number of mapped colors included in the preset first color mapping table may be set according to actual needs, for example, may be 216 web security colors, and the like.
  • the range of color values for each mapped color can be expressed in RGB format.
  • the range of color values in which the mapped color is green can be expressed as (r green , g green , b green ), and r green ⁇ (r x , r y ), g green ⁇ (g x , g y ), b green ⁇ (b x , b y ); wherein r x ⁇ r y , g x ⁇ g y , b x ⁇ b y .
  • the color value of each feature color can be represented by an RGB format, for example, the color value of a certain feature color can be expressed as (r 1 , g 1 , b 1 ).
  • mapping the color of each of the preset number of feature colors to the mapped color in the preset first color mapping table may include:
  • the feature color currently traversed is mapped to a mapped color corresponding to the determined range of color values in the first color map.
  • this step F if r 1 ⁇ (r x , r y ), g 1 ⁇ (g x , g y ), b 1 ⁇ (b x , b y ), the steps can be followed.
  • the characteristic color of the color value (r 1 , g 1 , b 1 ) shown in E is mapped to the green color in the preset first color mapping table; after repeating this step F, the preset number of Each feature color in the feature color is mapped to a mapped color in the preset first color map.
  • mapping process of step S304 may include the following steps G-J:
  • the preset second color mapping table includes at least one mapping color, and a color value of each mapped color.
  • the number of mapped colors included in the preset second color mapping table may be set according to actual needs, for example, may be 216 web security colors, and the like.
  • the color value of each mapped color may be represented by an RGB format.
  • the preset second color mapping table includes a total of two mapped colors, and one of the mapped color colors of green may be expressed as (r green) .
  • g green , b green ) another color value with a mapped color of red can be expressed as (r red , g red , b red ).
  • the color value of each feature color may be represented by an RGB format, for example, if the preset number is 2, the color value of one feature color may be expressed as (r 1 , g 1 , b 1 ), The color value of another characteristic color can be expressed as (r 2 , g 2 , b 2 ).
  • the Euclidean distance between the color values of each of the preset number of feature colors and the color values of the respective mapped colors in the preset second color map, respectively, is calculated.
  • this step I needs to calculate the Euclidean distance between (r 1 , g 1 , b 1 ) and (r green , g green , b green ) and (r red , g red , b red ); It is necessary to calculate the Euclidean distance between (r 2 , g 2 , b 2 ) and (r green , g green , b green ) and (r red , g red , b red ).
  • J. Determine, for each of the preset number of feature colors, a mapping color that is the smallest in the preset second color mapping table and the Euclidean distance of the targeted feature color is the target color Map colors to get a preset number of mapped colors.
  • step I if (r 1 , g 1 , b 1 ) and (r green , g green , b green ), the Euclidean distance is less than (r 1 , g 1 , b 1 ) and (r red , g red) , b red ) European distance, the feature color represented by (r 1 , g 1 , b 1 ) is mapped to the green color in the preset second color mapping table; if (r 2 , g 2 , b The Euclidean distance between 2 and (r green , g green , b green ) is greater than the Euclidean distance of (r 2 , g 2 , b 2 and (r red , g red , b red ), then (r 2 , g 2 , b 2 ) The represented feature color map is red in the preset second color map.
  • step S304 one or a combination of the two may be flexibly selected according to actual needs to perform mapping processing. Moreover, after mapping the preset number of feature colors, the preset number of mapped colors obtained may be completely different, partially identical, or identical.
  • step J if (r 1 , g 1 , b 1 ) and (r green , g green , b green ), the Euclidean distance is less than (r 1 , g 1 , b 1 ) and (r red ,
  • the European distance of g red , b red ) maps the feature color represented by (r 1 , g 1 , b 1 ) to the green color in the preset second color map; if (r 2 , g 2 , b 2 ) and (r green , g green , b green ) European distance is also less than (r 2 , g 2 , b 2 ) and (r red , g red , b red ) European distance, then (r 2 The feature color represented by , g 2 , b 2 ) is mapped to green in the preset second color map. At this time, although the number of mapped colors obtained is 2, the two mapped colors are all green, and the color values
  • the mapped color can obtain a better color display effect than the feature color.
  • This step can Determining the preset number of mapped colors as the playing color of the audio file, can enable the playing color to be personalized and targeted to characterize the style attribute of the audio file, and at the same time obtain a better color display effect. .
  • Step S302 to step S305 of this embodiment may be a specific refinement step of step S102 of the embodiment shown in FIG. 1.
  • steps S306 to S307 of the embodiment reference may be made to steps S205 to S206 of the embodiment shown in FIG. 2, and details are not described herein.
  • the playing color of the audio file is determined based on the color analysis of the album image corresponding to the audio file, and the album image may reflect the corresponding to some extent.
  • the style attribute of the audio file, the play color determined based on the album image can be personalized and targeted to characterize the style attribute of the audio file; and the embodiment of the present invention uses the determined play color to perform broadcast control on the audio file, effectively Improves the intelligence of the broadcast control of audio files.
  • the audio files are not directly based on the extracted feature colors.
  • the playing interface performs coloring processing, and based on the set mapping relationship, maps the extracted feature colors, and colors the playback interface of the audio file according to the obtained mapping color, so that the extracted features can be extracted.
  • the feature color is mapped to a milder mapping color, thereby coloring the playback interface of the audio file into a mapped color; and, in the characteristics of multiple consecutively played audio files
  • the color of these features is mapped to a mapped color, which can avoid the disadvantages of frequently changing the color of the playing interface in a short time interval and affecting the user's visual experience, and realize the control of the frequency of the playing interface replacement.
  • the embodiment of the present invention can also be applied to other related products for replacing interface colors, and coloring the interface according to the color of the picture associated with the interface.
  • the broadcast control processing device for an audio file provided by the embodiment of the present invention will be described in detail below with reference to FIG. It should be noted that the broadcast control processing device of the audio file shown in FIG. 4 to FIG. 8 It can be run in a terminal device or a server for performing a broadcast control processing method of the audio file shown in FIGS. 1 to 3.
  • the terminal device may include, but is not limited to, a device such as a PC, a PAD, a mobile phone, a smart phone, or a notebook computer.
  • FIG. 4 is a schematic structural diagram of a device for controlling a broadcast file of an audio file according to an embodiment of the present invention.
  • the device may include: an image acquisition module 101, an analysis module 102, and a broadcast control processing module 103.
  • the image obtaining module 101 is configured to acquire an album image corresponding to the audio file to be processed.
  • the album image corresponding to the audio file refers to any picture included in the album to which the audio file belongs.
  • the image acquisition module 101 may obtain an album image corresponding to the audio file to be processed from the network.
  • the album image acquired by the image acquisition module 101 may refer to a cover image of an album to which the audio file belongs, or may refer to an audio file. The image selected for the audio file in the album.
  • the analysis module 102 is configured to perform color analysis on the album image to determine a play color of the audio file.
  • the color of the album image can reflect the style attributes of the corresponding audio file to a certain extent.
  • melancholy-style audio files usually use images of dim colors (such as black and/or gray) as album images; quiet and relaxing style audio files.
  • Images of neutral colors (such as blue and/or green) are usually used as album images; audio files with festive colors are usually selected as images of album colors in bright colors (such as red and/or yellow);
  • the analysis module 102 determines the play color of the audio file by performing color analysis on the album image, so that the determined play color can characterize the style attribute of the audio file.
  • the broadcast control processing module 103 is configured to perform a broadcast control process on the audio file by using the determined play color.
  • the broadcast control processing module 103 may perform coloring processing and outputting on the play interface of the audio file by using the determined play color in the process of playing and controlling the audio file, so that the play interface of the audio file can be personalized. Characterizes the style attributes of the audio file.
  • FIG. 5 is a schematic structural diagram of an embodiment of an analysis module according to an embodiment of the present invention.
  • the analysis module 102 may include: a color obtaining unit 1201, an extracting unit 1202, and a determining unit 1203.
  • the color obtaining unit 1201 is configured to acquire a color of a specified pixel point of the album image.
  • the album image is composed of a plurality of pixels arranged in accordance with information such as position and color.
  • the color of each pixel of the album image may be represented by an RGB format, for example, the color value of the first pixel of the album image may be represented as (r 1 , g 1 , b 1 );
  • the color value of the second pixel of the image can be expressed as (r 2 , g 2 , b 2 ), and so on, the color value of the nth (n is a positive integer) pixel of the album image can be expressed as (r n , g n , b n ) and so on.
  • the designated pixel point may be all the pixel points of the album image, or may be part of the pixel points specified in the album image.
  • the extracting unit 1202 is configured to extract a preset number of feature colors from colors of the specified pixel points of the album image.
  • the preset number of feature colors can be used to represent a basic color of the album image, and the basic color can include a primary color and a secondary color. It can be understood that the preset number is less than or equal to the number of the specified pixel points, and the preset number can be set according to actual needs, for example, the preset quantity can also be set to M+N, M and N. The values are integers greater than or equal to 0, where M may represent the number of feature colors that represent the primary color of the album image, and N may represent the number of feature colors that represent the secondary colors of the album image.
  • the extracting unit 1202 may use a color histogram algorithm to extract a preset number of feature colors from the colors of the specified pixel points of the album image; or may use a clustering algorithm, such as a KNN algorithm, from the album image. Extracts a preset number of feature colors from the colors of the specified pixels.
  • the determining unit 1203 is configured to determine the preset number of feature colors as a play color of the audio file.
  • the determining unit 1203 may determine the extracted M+N feature colors as the play color of the audio file. Since the color of the album image can reflect the style attribute of the corresponding audio file to some extent, and the feature color extracted from the album image is determined as the play color of the audio file, the play color can be personalized and targeted. Characterizes the style attributes of the audio file.
  • FIG. 5b is a schematic structural diagram of another embodiment of an analysis module according to an embodiment of the present invention.
  • the analysis module 102 may include: a color obtaining unit 1201, an extracting unit 1202, a determining unit 1203, and a mapping processing unit 1204.
  • the structure and function of the color obtaining unit 1201, the extracting unit 1202, and the determining unit 1203 can be referred to the related description of the embodiment shown in FIG. 5a, and details are not described herein.
  • the mapping processing unit 1204 is configured to perform mapping processing on the preset number of feature colors to obtain A preset number of mapped colors. Among them, the mapped color can obtain a better color display effect than the feature color.
  • the determining unit 1203 is specifically configured to determine the preset number of mapped colors as the playing color of the audio file.
  • FIG. 6 is a schematic structural diagram of an embodiment of a mapping processing unit according to an embodiment of the present invention.
  • the mapping processing unit 1204 may include: a first reading subunit 1241, a first obtaining subunit 1242, and a first mapping sub Unit 1243.
  • the first reading sub-unit 1241 is configured to read a preset first color mapping table, where the preset first color mapping table includes at least one mapping color, and a color value range of each mapping color.
  • the number of mapped colors included in the preset first color mapping table may be set according to actual needs, for example, may be 216 web security colors, and the like.
  • the range of color values for each mapped color can be expressed in RGB format.
  • the range of color values in which the mapped color is green can be expressed as (r green , g green , b green ), and r green ⁇ (r x , r y ), g green ⁇ (g x , g y ), b green ⁇ (b x , b y ); wherein r x ⁇ r y , g x ⁇ g y , b x ⁇ b y .
  • the first obtaining sub-unit 1242 is configured to acquire a color value of each of the preset number of feature colors.
  • the color value of each feature color can be represented by an RGB format, for example, the color value of a certain feature color can be expressed as (r 1 , g 1 , b 1 ).
  • the first mapping sub-unit 1243 is configured to: according to the preset first color mapping table and the color value of each of the preset number of feature colors, the preset number of feature colors Each feature color is mapped to a mapped color in the preset first color map.
  • the first mapping sub-unit 1243 repeats the above-mentioned similar mapping process, and each of the preset number of feature colors may be mapped to the mapped color in the preset first color mapping table. .
  • FIG. 6 is a schematic structural diagram of another embodiment of a mapping processing unit according to an embodiment of the present invention.
  • the mapping processing unit 1204 may include: a second reading subunit 1244, a second obtaining subunit 1245, and a distance calculating unit. Unit 1246 and second mapping sub-unit 1247.
  • the second reading sub-unit 1244 is configured to read a preset second color mapping table, where the preset second color mapping table includes at least one mapping color, and a color value of each mapping color.
  • the number of mapped colors included in the preset second color mapping table may be set according to actual needs, for example, may be 216 web security colors, and the like.
  • the color value of each mapped color may be represented by an RGB format.
  • the preset second color mapping table includes a total of two mapped colors, and one of the mapped color colors of green may be expressed as (r green) .
  • g green , b green ) another color value with a mapped color of red can be expressed as (r red , g red , b red ).
  • the second obtaining sub-unit 1245 is configured to obtain a color value of each of the preset number of feature colors.
  • the color value of each feature color can be represented by an RGB format, for example, if the preset number is 2, the color value of one feature color can be expressed as (r 1 , g 1 , b 1 ), and another feature The color value of the color can be expressed as (r 2 , g 2 , b 2 ).
  • the distance calculation sub-unit 1246 is configured to calculate a Euclidean distance of each of the preset number of feature colors and each of the mapped colors in the preset second color map.
  • the distance calculation subunit 1246 needs to calculate (r 1 , g 1 , b 1 ) and (r green , g green , b green ) and (r red , g red , b red ) respectively. Euclidean distance; and the Euclidean distance between (r 2 , g 2 , b 2 ) and (r green , g green , b green ) and (r red , g red , b red ).
  • a second mapping sub-unit 1247 configured to map, in each of the preset number of feature colors, a mapping color that is the smallest in the preset second color mapping table from the Euclidean distance of the targeted feature color
  • the mapped color of the feature color is determined to obtain a preset number of mapped colors.
  • the second mapping sub-unit 1247 maps the feature color represented by (r 1 , g 1 , b 1 ) to the green color in the preset second color mapping table; If the distance between (r 2 , g 2 , b 2 ) and (r green , g green , b green ) is greater than the distance between (r 2 , g 2 , b 2 ) and (r red , g red , b red ) The second mapping sub-unit 1247 maps the feature color represented by (r 2 , g 2 , b 2 ) to red in the preset second color mapping table.
  • FIG. 7 is a schematic structural diagram of a broadcast control processing module according to an embodiment of the present invention.
  • the broadcast control processing module 103 may include: a coloring processing unit 1301 and an output unit 1302.
  • the coloring processing unit 1301 is configured to perform coloring processing on the playing interface of the audio file by using the determined playing color when detecting the playing request of the audio file.
  • the coloring processing unit 1301 may perform coloring processing on the playing interface of the audio file by using the determined playing color in the process of playing and controlling the audio file when detecting the playing request of the audio file.
  • the output unit 1302 is configured to output a play interface of the audio file after the coloring process.
  • the output unit 1302 may display a play interface of the audio file after the coloring process, so that the user can intuitively perceive the style attribute of the audio file according to the displayed play interface of the audio file.
  • FIG. 8 is a schematic structural diagram of a coloring processing unit according to an embodiment of the present invention.
  • the coloring processing unit 1301 may include: an area determining sub-unit 1311, a background processing sub-unit 1312, and a font processing sub-unit 1313.
  • the area determining sub-unit 1311 is configured to determine a coloring processing area in a play interface of the audio file according to a preset area range.
  • the preset area range may be set according to actual needs, for example, the preset area range may be set to the entire area of the play interface of the audio file; or, the preset area range may be set to the A partial area of the playback interface of an audio file.
  • the background processing sub-unit 1312 is configured to select at least one playing color as the background color from the determined playing colors, and perform coloring processing on the background of the coloring processing area.
  • the background processing sub-unit 1312 may randomly select one or more play colors from the M+N colors as the background color, and the background of the coloring processing area. Perform coloring processing.
  • the font processing sub-unit 1313 is configured to select at least one play color from the determined play colors other than the background color as the font color, and perform coloring processing on the font of the coloring processing area.
  • the font processing sub-unit 1313 may randomly select one or more play colors from the M+N colors other than the background colors. As the font color, the font of the coloring processing area is subjected to coloring processing.
  • the play color of the audio file is determined based on the color analysis of the album image corresponding to the audio file, and the album image may reflect the corresponding to some extent.
  • the style attribute of the audio file based on the playback color determined by the album image
  • the style attribute of the audio file is personalized and targeted; and the embodiment of the present invention performs the broadcast control processing on the audio file by using the determined play color, thereby effectively improving the intelligence of the broadcast control processing of the audio file.
  • FIG. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • the terminal device in the embodiment of the present invention may include, but is not limited to, a device such as a PC, a PAD, a mobile phone, a smart phone, or a notebook computer, and the terminal device includes: At least one processor 201 (eg, a CPU), at least one communication bus 202, at least one network interface 203, and memory 204.
  • the communication bus 202 is used to implement connection communication between these components.
  • the network interface 203 may optionally include a standard wired interface and/or a wireless interface (such as a WI-FI or a mobile communication interface).
  • the memory 204 may be a high speed RAM (random access memory) or a non-volatile memory, such as at least one disk memory.
  • the memory 204 can also optionally be at least one storage device located remotely from the processor 201. As shown in FIG. 9, an operating system and a network communication module are stored in a memory 204 as a computer storage medium, and a program for performing broadcast control processing of an audio file and other programs are stored.
  • the processor 201 may be configured to invoke a program stored in the memory 204 for performing a broadcast control process of an audio file, and perform the following steps:
  • the audio file is subjected to a broadcast control process using the determined play color.
  • the processor 201 when performing the color analysis on the album image to determine the play color of the audio file, the processor 201 specifically performs the following steps:
  • the preset number of feature colors is determined as the play color of the audio file.
  • the processor 201 may further perform the following steps:
  • the determining the extracted preset number of feature colors as the play color of the audio file specifically includes: determining the preset number of mapped colors as a play color of the audio file.
  • the processor 201 performs the mapping process on the preset number of feature colors to obtain the preset number of mapped colors, performs the following steps:
  • Reading a preset first color mapping table where the preset first color mapping table includes at least one mapping color, and a color value range of each mapping color;
  • the processor 201 performs the following steps when performing the mapping process on the preset number of feature colors to obtain the preset number of mapped colors:
  • Reading a preset second color mapping table where the preset second color mapping table includes at least one mapping color, and color values of each mapped color;
  • the processor 201 performs the following steps when performing the step of performing the broadcast control processing on the audio file by using the determined play color:
  • coloring processing is performed on a play interface of the audio file by using the determined play color
  • the play interface of the audio file after the coloring process is output.
  • the processor 201 performs the following steps when performing the step of performing coloring processing on the playing interface of the audio file by using the determined playing color:
  • the play color of the audio file is determined based on the color analysis of the album image corresponding to the audio file. Since the album image can reflect the style attribute of the corresponding audio file to some extent, the play color determined based on the album image
  • the style attribute of the audio file can be personalized and targeted; and the embodiment of the present invention performs the broadcast control processing on the audio file by using the determined play color, thereby effectively improving the intelligence of the broadcast control processing of the audio file.
  • FIG. 10 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • the server of the embodiment of the present invention includes: at least one processor 301 (for example, a CPU), at least one communication bus 302, at least one network interface 303, and a memory 304.
  • the communication bus 302 is used to implement connection communication between these components.
  • the network interface 303 may optionally include a standard wired interface and/or a wireless interface (such as a WI-FI or a mobile communication interface, etc.).
  • the memory 304 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the memory 304 can also optionally be at least one storage device located away from the aforementioned processor 301.
  • an operating system and a network communication module are stored in a memory 304 as a computer storage medium, and a program for performing broadcast control processing of an audio file and other programs are stored.
  • the processor 301 may be configured to invoke a program for performing a broadcast control process of an audio file stored in the memory 304, and perform the following steps:
  • the audio file is subjected to a broadcast control process using the determined play color.
  • the processor 301 when performing the color analysis on the album image to determine the play color of the audio file, the processor 301 specifically performs the following steps:
  • the preset number of feature colors is determined as the play color of the audio file.
  • the processor 301 may further perform the following steps:
  • Determining the extracted preset number of feature colors as a play color of the audio file includes: determining the preset number of mapped colors as a play color of the audio file.
  • the processor 301 when performing the mapping process on the preset number of feature colors to obtain the preset number of mapped colors, the processor 301 performs the following steps:
  • Reading a preset first color mapping table where the preset first color mapping table includes at least one mapping color, and a color value range of each mapping color;
  • processor 301 further performs the following steps when performing the mapping process on the preset number of feature colors to obtain the preset number of mapped colors:
  • Reading a preset second color mapping table where the preset second color mapping table includes at least one mapping color, and color values of each mapped color;
  • processor 301 performs the step of performing the broadcast control processing on the audio file by using the determined play color, the following steps are specifically performed:
  • coloring processing is performed on a play interface of the audio file by using the determined play color
  • the play interface of the audio file after the coloring process is output.
  • processor 301 performs the step of performing coloring processing on the playing interface of the audio file by using the determined playing color, the following steps are specifically performed:
  • the play color is used as the font color, and the font of the coloring processing area is colored.
  • the play color of the audio file is determined based on the color analysis of the album image corresponding to the audio file. Since the album image can reflect the style attribute of the corresponding audio file to some extent, the play color determined based on the album image
  • the style attribute of the audio file can be personalized and targeted; and the embodiment of the present invention performs the broadcast control processing on the audio file by using the determined play color, thereby effectively improving the intelligence of the broadcast control processing of the audio file.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • an embodiment of the present invention provides a storage medium including computer executable instructions for performing a broadcast control processing method of an audio file when executed by a computer processor, the method comprising:
  • the audio file is subjected to a broadcast control process using the determined play color.
  • the method may specifically include a broadcast control processing method for an audio file provided by any embodiment of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Processing Or Creating Images (AREA)
  • Color Image Communication Systems (AREA)
  • Image Analysis (AREA)

Abstract

本发明实施例公开了提供一种音频文件的播控处理方法、装置及存储介质,其中的方法可包括:获取待处理的音频文件对应的专辑图像;对所述专辑图像进行色彩分析,确定所述音频文件的播放色彩;采用所确定的播放色彩对所述音频文件进行播控处理。本发明实施例可针对音频文件确定个性化的播放色彩,使音频文件的播放色彩能够有效地表征音频文件的风格属性,提升音频文件的播控处理的智能性。

Description

一种音频文件的播控处理方法、装置及存储介质
本专利申请要求于2013年11月15日提交的、申请号为201310574051.0、申请人为腾讯科技(深圳)有限公司、发明名称为“一种音频文件的播控处理方法及装置”的中国专利申请的优先权,该申请的全文以引用的方式并入本申请中。
技术领域
本发明实施例涉及互联网技术领域,具体涉及音频处理技术领域,尤其涉及一种音频文件的播控处理方法、装置及存储介质。
背景技术
音频文件的播放色彩可在一定程度上表征音频文件的风格属性,例如:昏暗的播放色彩可表征忧郁风格的音频文件,明亮的播放色彩可表征喜庆欢快风格的音频文件,等等。目前,对音频文件的播控处理过程通常不关注音频文件的播放色彩,例如:采用播放器播控多个音频文件时,每个音频文件的播放色彩均为播放器界面的色彩,且播放器界面的色彩大多为固定色彩,从而使得各音频文件的播放色彩缺乏个性和针对性,无法有效地表征各音频文件的风格属性,同时降低了音频文件的播控处理的智能性。
发明内容
本发明实施例提供一种音频文件的播控处理方法、装置及存储介质,可针对音频文件确定个性化的播放色彩,使音频文件的播放色彩能够有效地表征音频文件的风格属性,提升音频文件的播控处理的智能性。
本发明实施例第一方面提供一种音频文件的播控处理方法,可包括:
获取待处理的音频文件对应的专辑图像;
对所述专辑图像进行色彩分析,确定所述音频文件的播放色彩;
采用所确定的播放色彩对所述音频文件进行播控处理。
本发明实施例第二方面提供一种音频文件的播控处理装置,可包括:
图像获取模块,用于获取待处理的音频文件对应的专辑图像;
分析模块,用于对所述专辑图像进行色彩分析,确定所述音频文件的播放色彩;
播控处理模块,用于采用所确定的播放色彩对所述音频文件进行播控处理。
本发明实施例第三方面提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种音频文件的播控处理方法,该方法包括:
获取待处理的音频文件对应的专辑图像;
对所述专辑图像进行色彩分析,确定所述音频文件的播放色彩;
采用所确定的播放色彩对所述音频文件进行播控处理。实施本发明实施例,具有如下有益效果:
本发明实施例中,基于对音频文件对应的专辑图像的色彩分析来确定音频文件的播放色彩,由于专辑图像可在一定程度上反映对应的音频文件的风格属性,基于专辑图像所确定的播放色彩能够个性化且有针对性地表征音频文件的风格属性;且本发明实施例采用所确定的播放色彩对音频文件进行播控处理,有效地提升了音频文件的播控处理的智能性。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显然,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以对这些附图进行修改和替换。
图1为本发明实施例提供的一种音频文件的播控处理方法的流程图;
图2为本发明实施例提供的另一种音频文件的播控处理方法的流程图;
图3为本发明实施例提供的又一种音频文件的播控处理方法的流程图;
图4为本发明实施例提供的一种音频文件的播控处理装置的结构示意图;
图5a为本发明实施例提供的分析模块的一个实施例的结构示意图;
图5b为本发明实施例提供的分析模块的另一个实施例的结构示意图;
图6a为本发明实施例提供的映射处理单元的一个实施例的结构示意图;
图6b为本发明实施例提供的映射处理单元的另一个实施例的结构示意图;
图7为本发明实施例提供的播控处理模块的结构示意图;
图8为本发明实施例提供的着色处理单元的结构示意图;
图9为本发明实施例提供的终端设备的结构示意图;
图10为本发明实施例提供的服务器的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚和完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例,是为了阐述本发明的原理,而不是要将本发明限制于这些具体的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例中,音频文件可以包括但不限于:音乐、音乐片段或者语音片段等文件。其中,音乐包括但不限于:具有伴奏的歌曲、清唱歌曲或者演奏乐,音乐片段则对应的包括但不限于:具有伴奏的歌曲片段、清唱歌曲片段或者演奏乐片段。
下面将结合附图1-附图3,对本发明实施例提供的音频文件的播控处理方法进行详细介绍。需要说明的是,附图1-附图3所示的音频文件的播控处理方法可以由本发明实施例提供的音频文件的播控处理装置所执行,该音频文件的播控处理装置可运行于终端设备或服务器中,其中,终端设备可包括但不限于:PC(Personal Computer,个人计算机)、PAD(平板电脑)、手机、智能手机、或者笔记本电脑等设备。
请参见图1,为本发明实施例提供的一种音频文件的播控处理方法的流程图;该方法可包括以下步骤S101-步骤S103。
S101,获取待处理的音频文件对应的专辑图像。
其中,音频文件对应的专辑图像指音频文件所属专辑包含的任一张图片。本步骤中,可以从网络中获取待处理的音频文件对应的专辑图像,优选地,本步骤所获取的专辑图像可以指音频文件所属专辑的封面图片,也可以指音频文件所属专辑中为该音频文件选用的图片。
另外,在本发明实施例中,也可预先在本地创建有图像库,所述图像库中 存储有至少一个音频文件对应的专辑图像。获取待处理的音频文件对应的专辑图像,可具体为:首先在本地专辑图像库中查询与待处理的音频文件对应的专辑图像;如果查询失败,通过网络从其他设备获取待处理的音频文件对应的专辑图像。
S102,对所述专辑图像进行色彩分析,确定所述音频文件的播放色彩。
专辑图像的色彩可在一定程度上反映对应的音频文件的风格属性,例如:忧郁风格的音频文件通常选用昏暗色彩(如黑色和/或灰色等)的图像作为专辑图像;安静放松风格的音频文件通常选用中性色彩(如蓝色和/或绿色等)的图像作为专辑图像;喜庆欢快风格的音频文件通常选用明亮色彩(如红色和/或黄色等)的图像作为专辑图像;等等。本步骤通过对专辑图像进行色彩分析来确定音频文件的播放色彩,可使得所确定的播放色彩能够表征音频文件的风格属性。
对所述专辑图像进行色彩分析,确定所述音频文件的播放色彩,可具体为:
对待处理的音频文件对应的专辑图像进行色彩分析,得到所述专辑图像所包含的至少一种色彩;
直接选取所得到的色彩中的一种作为所述音频文件的播放色彩,或者按照设定的映射关系将所得到的至少一种色彩映射为预先设定的至少一种色彩,选取映射后得到的色彩中的一种作为所述音频文件的播放色彩。
S103,采用所确定的播放色彩对所述音频文件进行播控处理。
本步骤可以在播放控制所述音频文件的过程中,采用所确定的播放色彩对所述音频文件的播放界面进行着色处理和输出,从而可使得该音频文件的播放界面能够个性化和针对性的表征该音频文件的风格属性。
请参见图2,为本发明实施例提供的另一种音频文件的播控处理方法的流程图;该方法可包括以下步骤S201-步骤S206。
S201,获取待处理的音频文件对应的专辑图像。
本实施例的步骤S201可参见图1所示实施例的步骤S101,在此不赘述。
S202,获取所述专辑图像的指定像素点的色彩。
专辑图像由多个像素点按照位置和色彩等信息排列组成。其中,所述专辑图像的各像素点的色彩可采用RGB(Red Green Blue,红绿蓝)格式表示,例如: 所述专辑图像的第一个像素点的色彩值可表示为(r1,g1,b1);所述专辑图像的第二个像素点的色彩值可表示为(r2,g2,b2),以此类推,所述专辑图像的第n(n为正整数)个像素点的色彩值可表示为(rn,gn,bn)等等。本步骤中,指定像素点可以被指定为所述专辑图像的全部像素点,也可以被指定为所述专辑图像的部分像素点。
S203,从所述专辑图像的指定像素点的色彩中提取预设数量的特征色彩。
其中,所述预设数量的特征色彩可用于体现所述专辑图像的基本颜色,该基本颜色可包括主颜色和副颜色。可以理解的是,预设数量小于或等于所述指定像素点的数量,该预设数量可以根据实际需要进行设定,例如:预设数量也可以设定为M+N,M和N的取值均为大于或等于0的整数,其中M可表示体现所述专辑图像的主颜色的特征色彩的个数,N可表示体现所述专辑图像的副颜色的特征色彩的个数,预设数量为专辑图像的主颜色的特征色彩的个数与副颜色的特征色彩的个数之和。本步骤中,可以采用色彩直方图算法,从所述专辑图像的指定像素点的色彩中提取预设数量的特征色彩;也可以采用聚类算法,例如:KNN(K-Nearest Neighbor algorithm,邻近算法)算法,从所述专辑图像的指定像素点的色彩中提取预设数量的特征色彩。
S204,将所述预设数量的特征色彩确定为所述音频文件的播放色彩。
按照步骤S203中的例子,本步骤可将提取到的M+N个特征色彩确定为所述音频文件的播放色彩。由于专辑图像的色彩可在一定程度上反映对应的音频文件的风格属性,将专辑图像中提取到的特征色彩确定为所述音频文件的播放色彩,则该播放色彩可以个性化且有针对性地表征该音频文件的风格属性。
本实施例的步骤S202-步骤S204可以为图1所示实施例的步骤S102的具体细化步骤。
S205,当检测到对所述音频文件的播放请求时,采用所确定的播放色彩对所述音频文件的播放界面进行着色处理。
本步骤在检测到对所述音频文件的播放请求时,可以在播放控制所述音频文件的过程中,采用所确定的播放色彩对所述音频文件的播放界面进行着色处理;本步骤的着色处理过程可具体包括以下步骤A-C:
A、根据预设的区域范围,在所述音频文件的播放界面中确定着色处理区域。
其中,预设的区域范围可以根据实际需要进行设定,例如:预设的区域范 围可设定为所述音频文件的播放界面的全部区域;或者,预设的区域范围可设定为所述音频文件的播放界面的局部区域。
B、从所确定的播放色彩中选取至少一种播放色彩作为背景色彩,对所述着色处理区域的背景进行着色处理。
按照本实施例的步骤S203-步骤S204中的例子,所确定的播放色彩为M+N个色彩,本步骤B可以从该M+N个色彩中随机选取一种或多种播放色彩作为背景色彩,对所述着色处理区域的背景进行着色处理。
C、从所确定的播放色彩中除所述背景色彩之外的其他播放色彩中选取至少一种播放色彩作为字体色彩,对所述着色处理区域的字体进行着色处理。
按照本实施例的步骤S203-步骤S204中的例子,所确定的播放色彩为M+N个色彩,本步骤C可以从该M+N个色彩中除所述背景色彩之外的其他播放色彩中随机选取一种或多种播放色彩作为字体色彩,对所述着色处理区域的字体进行着色处理。
S206,输出着色处理后的所述音频文件的播放界面。
本步骤中,可显示着色处理后的所述音频文件的播放界面,从而使得用户可以根据所显示的所述音频文件的播放界面,直观地感知所述音频文件的风格属性。
请参见图3,为本发明实施例提供的又一种音频文件的播控处理方法的流程图;该方法可包括以下步骤S301-步骤S307。
S301,获取待处理的音频文件对应的专辑图像。
S302,获取所述专辑图像的指定像素点的色彩。
S303,从所述专辑图像的指定像素点的色彩中提取预设数量的特征色彩。
本实施例的步骤S301-步骤S303可参见图2所示实施例的步骤S201-步骤S203,在此不赘述。
S304,对所述预设数量的特征色彩进行映射处理,获得预设数量的映射色彩。本步骤中,对所述预设数量的特征色彩进行映射处理可包括以下两种可行的实施方式。在其中一种可行的实施方式中,步骤S304的映射处理过程可包括以下步骤D-F:
D、读取预设的第一色彩映射表,所述预设的第一色彩映射表中包括至少一 种映射色彩,以及每种映射色彩的色彩值范围。
本步骤D中,所述预设的第一色彩映射表中包含的映射色彩的数量可以根据实际需要进行设定,例如:可以为216个web安全色彩,等等。每种映射色彩的色彩值范围可采用RGB格式表示,例如:映射色彩为绿色的色彩值范围可表示为(r绿,g绿,b绿),且r绿∈(rx,ry),g绿∈(gx,gy),b绿∈(bx,by);其中,rx<ry,gx<gy,bx<by
E、获取所述预设数量的特征色彩中的每个特征色彩的色彩值。
本步骤E中,每个特征色彩的色彩值可采用RGB格式表示,例如:某一特征色彩的色彩值可表示为(r1,g1,b1)。
F、根据所述预设的第一色彩映射表以及所述预设数量的特征色彩中的每个特征色彩的色彩值,将所述预设数量的特征色彩中的每个特征色彩映射为所述预设的第一色彩映射表中的映射色彩。
具体的,将所述预设数量的特征色彩中的每个特征色彩映射为所述预设的第一色彩映射表中的映射色彩,可包括:
遍历所述预设数量的特征色彩中的各个特征色彩,确定当前遍历到的特征色彩的色彩值在第一色彩映射表中所属的色彩值范围;
将当前遍历到的特征色彩映射为第一色彩映射表中与所确定的色彩值范围对应的映射色彩。按照步骤D-E中的例子,本步骤F中,若r1∈(rx,ry),g1∈(gx,gy),b1∈(bx,by),则可将步骤E中所示的色彩值为(r1,g1,b1)的特征色彩映射为预设的第一色彩映射表中的绿色;重复本步骤F,则可以分别将所述预设数量的特征色彩中的每个特征色彩均映射为所述预设的第一色彩映射表中的映射色彩。
在另一种可行的实施方式中,步骤S304的映射处理过程可包括以下步骤G-J:
G、读取预设的第二色彩映射表,所述预设的第二色彩映射表中包括至少一种映射色彩,以及每种映射色彩的色彩值。
本步骤G中,所述预设的第二色彩映射表中包含的映射色彩的数量可以根据实际需要进行设定,例如:可以为216个web安全色彩,等等。每种映射色彩的色彩值可采用RGB格式表示,例如:假设所述预设的第二色彩映射表中共包含2个映射色彩,其中一种映射色彩为绿色的色彩值可表示为(r绿,g绿,b绿),另一种映射色彩为红色的色彩值可表示为(r,g,b)。
H、获取所述预设数量的特征色彩中的每个特征色彩的色彩值。
本步骤H中,每个特征色彩的色彩值可采用RGB格式表示,例如:假设所述预设数量为2,其中一个特征色彩的色彩值可表示为(r1,g1,b1),另一个特征色彩的色彩值可表示为(r2,g2,b2)。
I、计算所述预设数量的特征色彩中的每个特征色彩分别与所述预设的第二色彩映射表中的各映射色彩的欧式距离。
也即,计算所述预设数量的特征色彩中的每个特征色彩的色彩值分别与所述预设的第二色彩映射表中的各映射色彩的色彩值之间的欧式距离。
按照步骤G-H中的例子,本步骤I需要计算(r1,g1,b1)分别与(r绿,g绿,b绿)和(r,g,b)的欧式距离;以及需要计算(r2,g2,b2)分别与(r绿,g绿,b绿)和(r,g,b)的欧式距离。
J、针对所述预设数量的特征色彩中的每个特征色彩,将所述预设的第二色彩映射表中与所针对的特征色彩的欧式距离最小的映射色彩确定为所针对的特征色彩的映射色彩,以获得预设数量的映射色彩。
按照步骤I中的例子,若(r1,g1,b1)与(r绿,g绿,b绿)的欧式距离小于(r1,g1,b1)与(r,g,b)的欧式距离,则将(r1,g1,b1)所表示的特征色彩映射为所述预设的第二色彩映射表中的绿色;若(r2,g2,b2与(r绿,g绿,b绿)的欧式距离大于(r2,g2,b2与(r,g,b)的欧式距离,则将(r2,g2,b2)所表示的特征色彩映射为所述预设的第二色彩映射表中的红色。
需要说明的是,步骤S304所示的两种实施方式中,可以根据实际需要灵活选择其中一种或两种的组合进行映射处理。并且,对所述预设数量的特征色彩进行映射处理后,所获得的预设数量个映射色彩,可以是完全不同、部分相同或者完全相同的。例如,按照步骤J中的例子,若(r1,g1,b1)与(r绿,g绿,b绿)的欧式距离小于(r1,g1,b1)与(r,g,b)的欧式距离,则将(r1,g1,b1)所表示的特征色彩映射为所述预设的第二色彩映射表中的绿色;若(r2,g2,b2)与(r绿,g绿,b绿)的欧式距离也小于(r2,g2,b2)与(r,g,b)的欧式距离,则将(r2,g2,b2)所表示的特征色彩映射为所述预设的第二色彩映射表中的绿色。此时,虽然所获得的映射色彩数量为2,但是这两个映射色彩均为绿色,其色彩值是一致的。S305,将所述预设数量的映射色彩确定为所述音频文件的播放色彩。
其中,映射色彩相对于特征色彩能够获得更好的颜色展示效果。本步骤可 将所述预设数量的映射色彩确定为所述音频文件的播放色彩,既能够使播放色彩可以个性化且有针对性地表征该音频文件的风格属性,同时又可获得较好的颜色展示效果。
本实施例的步骤S302-步骤S305可以为图1所示实施例的步骤S102的具体细化步骤。
S306,当检测到对所述音频文件的播放请求时,采用所确定的播放色彩对所述音频文件的播放界面进行着色处理。
S307,输出着色处理后的所述音频文件的播放界面。
本实施例的步骤S306-步骤S307可参见图2所示实施例的步骤S205-步骤S206,在此不赘述。
通过上述图1-图3所示实施例的描述,本发明实施例中,基于对音频文件对应的专辑图像的色彩分析来确定音频文件的播放色彩,由于专辑图像可在一定程度上反映对应的音频文件的风格属性,基于专辑图像所确定的播放色彩能够个性化且有针对性地表征音频文件的风格属性;且本发明实施例采用所确定的播放色彩对音频文件进行播控处理,有效地提升了音频文件的播控处理的智能性。
另外,在本发明实施例提供的技术方案中,在从专辑图像的指定像素点的色彩中提取到预设数量的特征色彩之后,并不是直接根据所提取到的特征色彩,来对音频文件的播放界面进行着色处理,而是基于设定的映射关系,对提取到的特征色彩作映射处理,根据得到的映射色彩,来对音频文件的播放界面进行着色处理,这样可以在所提取到的特征色彩使得用户比较难以接受的情况下,将其特征色彩映射为一种较为温和的映射色彩,从而将音频文件的播放界面着色成映射色彩;并且,还可以在多个连续播放的音频文件的特征色彩均不同的情况下,将这些特征色彩映射为一个映射色彩,这样可以避免较短时间间隔内频繁更换播放界面色彩而影响用户视觉体验的弊端,实现了对播放界面更换频率的控制。
需要说明的是,本发明实施例还可以应用于其他相关的更换界面色彩的产品中,根据与界面关联的图片的色彩,对界面进行着色。
下面将结合附图4-附图8,对本发明实施例提供的音频文件的播控处理装置进行详细介绍。需要说明的是,附图4-附图8所示的音频文件的播控处理装置 可运行于终端设备或服务器中,用于执行附图1-附图3所示的音频文件的播控处理方法。其中,终端设备可包括但不限于:PC、PAD、手机、智能手机或者笔记本电脑等设备。
请参见图4,为本发明实施例提供的一种音频文件的播控处理装置的结构示意图;该装置可包括:图像获取模块101、分析模块102和播控处理模块103。
图像获取模块101,用于获取待处理的音频文件对应的专辑图像。
其中,音频文件对应的专辑图像指音频文件所属专辑包含的任一张图片。所述图像获取模块101可以从网络中获取待处理的音频文件对应的专辑图像,优选地,所述图像获取模块101所获取的专辑图像可以指音频文件所属专辑的封面图片,也可以指音频文件所属专辑中为该音频文件选用的图片。
分析模块102,用于对所述专辑图像进行色彩分析,确定所述音频文件的播放色彩。
专辑图像的色彩可在一定程度上反映对应的音频文件的风格属性,例如:忧郁风格的音频文件通常选用昏暗色彩(如黑色和/或灰色等)的图像作为专辑图像;安静放松风格的音频文件通常选用中性色彩(如蓝色和/或绿色等)的图像作为专辑图像;喜庆欢快风格的音频文件通常选用明亮色彩(如红色和/或黄色等)的图像作为专辑图像;等等。所述分析模块102通过对专辑图像进行色彩分析来确定音频文件的播放色彩,可使得所确定的播放色彩能够表征音频文件的风格属性。
播控处理模块103,用于采用所确定的播放色彩对所述音频文件进行播控处理。
所述播控处理模块103可以在播放控制所述音频文件的过程中,采用所确定的播放色彩对所述音频文件的播放界面进行着色处理和输出,从而可使得该音频文件的播放界面能够个性化、针对性的表征该音频文件的风格属性。
下面将结合附图5-附图8,对图4所示的音频文件的播控处理装置的各模块进行详细介绍。
请参见图5a,为本发明实施例提供的分析模块的一个实施例的结构示意图;该分析模块102可包括:色彩获取单元1201、提取单元1202和确定单元1203。
色彩获取单元1201,用于获取所述专辑图像的指定像素点的色彩。
专辑图像由多个像素点按照位置和色彩等信息排列组成。其中,所述专辑图像的各像素点的色彩可采用RGB格式表示,例如:所述专辑图像的第一个像素点的色彩值可表示为(r1,g1,b1);所述专辑图像的第二个像素点的色彩值可表示为(r2,g2,b2),以此类推,所述专辑图像的第n(n为正整数)个像素点的色彩值可表示为(rn,gn,bn)等等。其中,指定像素点可以为所述专辑图像的全部像素点,也可以为所述专辑图像中所指定的部分像素点。
提取单元1202,用于从所述专辑图像的指定像素点的色彩中提取预设数量的特征色彩。
其中,所述预设数量的特征色彩可用于体现所述专辑图像的基本颜色,该基本颜色可包括主颜色和副颜色。可以理解的是,预设数量小于或等于所述指定像素点的数量,该预设数量可以根据实际需要进行设定,例如:预设数量也可以设定为M+N,M和N的取值均为大于或等于0的整数,其中M可表示体现所述专辑图像的主颜色的特征色彩的个数,N可表示体现所述专辑图像的副颜色的特征色彩的个数。所述提取单元1202可以采用色彩直方图算法,从所述专辑图像的指定像素点的色彩中提取预设数量的特征色彩;也可以采用聚类算法,例如:KNN算法,从所述专辑图像的指定像素点的色彩中提取预设数量的特征色彩。
确定单元1203,用于将所述预设数量的特征色彩确定为所述音频文件的播放色彩。
按照本实施例中的例子,所述确定单元1203可将提取到的M+N个特征色彩确定为所述音频文件的播放色彩。由于专辑图像的色彩可在一定程度上反映对应的音频文件的风格属性,将专辑图像中提取到的特征色彩确定为所述音频文件的播放色彩,则该播放色彩可以个性化且有针对性地表征该音频文件的风格属性。
请参见图5b,为本发明实施例提供的分析模块的另一个实施例的结构示意图;该分析模块102可包括:色彩获取单元1201、提取单元1202、确定单元1203和映射处理单元1204。其中,色彩获取单元1201、提取单元1202和确定单元1203的结构和功能可参见图5a所示实施例的相关描述,在此不赘述。
映射处理单元1204,用于对所述预设数量的特征色彩进行映射处理,获得 预设数量的映射色彩。其中,映射色彩相对于特征色彩能够获得更好的颜色展示效果。
本实施例中,所述确定单元1203具体用于将所述预设数量的映射色彩确定为所述音频文件的播放色彩。
请参见图6a,为本发明实施例提供的映射处理单元的一个实施例的结构示意图;该映射处理单元1204可包括:第一读取子单元1241、第一获取子单元1242和第一映射子单元1243。
第一读取子单元1241,用于读取预设的第一色彩映射表,所述预设的第一色彩映射表中包括至少一种映射色彩,以及每种映射色彩的色彩值范围。
其中,所述预设的第一色彩映射表中包含的映射色彩的数量可以根据实际需要进行设定,例如:可以为216个web安全色彩,等等。每种映射色彩的色彩值范围可采用RGB格式表示,例如:映射色彩为绿色的色彩值范围可表示为(r绿,g绿,b绿),且r绿∈(rx,ry),g绿∈(gx,gy),b绿∈(bx,by);其中,rx<ry,gx<gy,bx<by
第一获取子单元1242,用于获取所述预设数量的特征色彩中的每个特征色彩的色彩值。
其中,每个特征色彩的色彩值可采用RGB格式表示,例如:某一特征色彩的色彩值可表示为(r1,g1,b1)。
第一映射子单元1243,用于根据所述预设的第一色彩映射表以及所述预设数量的特征色彩中的每个特征色彩的色彩值,将所述预设数量的特征色彩中的每个特征色彩映射为所述预设的第一色彩映射表中的映射色彩。
按照本实施例中的例子,若r1∈(rx,ry),g1∈(gx,gy),b1∈(bx,by),所述第一映射子单元1243则可将色彩值为(r1,g1,b1)的特征色彩映射为预设的第一色彩映射表中的绿色。所述第一映射子单元1243重复上述类似的映射过程,则可以分别将所述预设数量的特征色彩中的每个特征色彩均映射为所述预设的第一色彩映射表中的映射色彩。
请参见图6b,为本发明实施例提供的映射处理单元的另一个实施例的结构示意图;该映射处理单元1204可包括:第二读取子单元1244、第二获取子单元1245、距离计算子单元1246和第二映射子单元1247。
第二读取子单元1244,用于读取预设的第二色彩映射表,所述预设的第二色彩映射表中包括至少一种映射色彩,以及每种映射色彩的色彩值。
其中,所述预设的第二色彩映射表中包含的映射色彩的数量可以根据实际需要进行设定,例如:可以为216个web安全色彩,等等。每种映射色彩的色彩值可采用RGB格式表示,例如:假设所述预设的第二色彩映射表中共包含2个映射色彩,其中一种映射色彩为绿色的色彩值可表示为(r绿,g绿,b绿),另一种映射色彩为红色的色彩值可表示为(r,g,b)。
第二获取子单元1245,用于获取所述预设数量的特征色彩中的每个特征色彩的色彩值。
其中,每个特征色彩的色彩值可采用RGB格式表示,例如:假设所述预设数量为2,其中一个特征色彩的色彩值可表示为(r1,g1,b1),另一个特征色彩的色彩值可表示为(r2,g2,b2)。
距离计算子单元1246,用于计算所述预设数量的特征色彩中的每个特征色彩分别与所述预设的第二色彩映射表中的各映射色彩的欧式距离。
按照本实施例中的例子,所述距离计算子单元1246需要计算(r1,g1,b1)分别与(r绿,g绿,b绿)和(r,g,b)的欧式距离;以及需要计算(r2,g2,b2)分别与(r绿,g绿,b绿)和(r,g,b)的欧式距离。
第二映射子单元1247,用于针对所述预设数量的特征色彩中的每个特征色彩,将所述预设的第二色彩映射表中与所针对的特征色彩的欧式距离最小的映射色彩确定为所针对的特征色彩的映射色彩,以获得预设数量的映射色彩。
按照本实施例中的例子,若(r1,g1,b1)与(r绿,g绿,b绿)的欧式距离小于(r1,g1,b1)与(r,g,b)的欧式距离,所述第二映射子单元1247则将(r1,g1,b1)所表示的特征色彩映射为所述预设的第二色彩映射表中的绿色;若(r2,g2,b2)与(r绿,g绿,b绿)的欧式距离大于(r2,g2,b2)与(r,g,b)的欧式距离,所述第二映射子单元1247则将(r2,g2,b2)所表示的特征色彩映射为所述预设的第二色彩映射表中的红色。
请参见图7,为本发明实施例提供的播控处理模块的结构示意图;该播控处理模块103可包括:着色处理单元1301和输出单元1302。
着色处理单元1301,用于当检测到对所述音频文件的播放请求时,采用所确定的播放色彩对所述音频文件的播放界面进行着色处理。
所述着色处理单元1301在检测到对所述音频文件的播放请求时,可以在播放控制所述音频文件的过程中,采用所确定的播放色彩对所述音频文件的播放界面进行着色处理。
输出单元1302,用于输出着色处理后的所述音频文件的播放界面。
所述输出单元1302可显示着色处理后的所述音频文件的播放界面,从而使得用户可以根据所显示的所述音频文件的播放界面,直观地感知所述音频文件的风格属性。
请参见图8,为本发明实施例提供的着色处理单元的结构示意图;该着色处理单元1301可包括:区域确定子单元1311、背景处理子单元1312和字体处理子单元1313。
区域确定子单元1311,用于根据预设的区域范围,在所述音频文件的播放界面中确定着色处理区域。
其中,预设的区域范围可以根据实际需要进行设定,例如:预设的区域范围可设定为所述音频文件的播放界面的全部区域;或者,预设的区域范围可设定为所述音频文件的播放界面的局部区域。
背景处理子单元1312,用于从所确定的播放色彩中选取至少一种播放色彩作为背景色彩,对所述着色处理区域的背景进行着色处理。
假设所确定的播放色彩为M+N个色彩,所述背景处理子单元1312可以从该M+N个色彩中随机选取一种或多种播放色彩作为背景色彩,对所述着色处理区域的背景进行着色处理。
字体处理子单元1313,用于从所确定的播放色彩中除所述背景色彩之外的其他播放色彩中选取至少一种播放色彩作为字体色彩,对所述着色处理区域的字体进行着色处理。
假设所确定的播放色彩为M+N个色彩,所述字体处理子单元1313可以从该M+N个色彩中除所述背景色彩之外的其他播放色彩中随机选取一种或多种播放色彩作为字体色彩,对所述着色处理区域的字体进行着色处理。
通过上述图4-图8所示实施例的描述,本发明实施例中,基于对音频文件对应的专辑图像的色彩分析来确定音频文件的播放色彩,由于专辑图像可在一定程度上反映对应的音频文件的风格属性,基于专辑图像所确定的播放色彩能 够个性化且有针对性地表征音频文件的风格属性;且本发明实施例采用所确定的播放色彩对音频文件进行播控处理,有效地提升了音频文件的播控处理的智能性。
请参见图9,为本发明实施例提供的终端设备的结构示意图;本发明实施例的终端设备可包括但不限于:PC、PAD、手机、智能手机或者笔记本电脑等设备,该终端设备包括:至少一个处理器201(例如CPU),至少一个通信总线202,至少一个网络接口203,存储器204。其中,通信总线202用于实现这些组件之间的连接通信。其中,所述网络接口203可选的可以包括标准的有线接口和/或无线接口(如WI-FI或者移动通信接口等)。所述存储器204可以是高速RAM(random access memory,随机存取存储器),也可以是非不稳定的存储器(non-volatile memory),例如为至少一个磁盘存储器。所述存储器204可选的还可以是至少一个位于远离前述处理器201的存储装置。如图9所示,作为一种计算机存储介质的存储器204中存储有操作系统和网络通信模块,并存储有用于进行音频文件的播控处理的程序以及其他程序。
其中具体的,所述处理器201可以用于调用所述存储器204中存储的用于进行音频文件的播控处理的程序,执行以下步骤:
获取待处理的音频文件对应的专辑图像;
对所述专辑图像进行色彩分析,确定所述音频文件的播放色彩;
采用所确定的播放色彩对所述音频文件进行播控处理。
进一步地,所述处理器201在执行所述对所述专辑图像进行色彩分析,确定所述音频文件的播放色彩的步骤时,具体执行如下步骤:
获取所述专辑图像的指定像素点的色彩;
从所述专辑图像的指定像素点的色彩中提取预设数量的特征色彩;
将所述预设数量的特征色彩确定为所述音频文件的播放色彩。
进一步地,所述处理器201在执行所述从所述专辑图像的指定像素点的色彩中提取预设数量的特征色彩的步骤之后,还可执行如下步骤:
对所述预设数量的特征色彩进行映射处理,获得预设数量的映射色彩;
所述将提取的所述预设数量的特征色彩确定为所述音频文件的播放色彩具体包括:将所述预设数量的映射色彩确定为所述音频文件的播放色彩。
进一步地,所述处理器201在执行所述对所述预设数量的特征色彩进行映射处理,获得所述预设数量的映射色彩的步骤时,具体执行如下步骤:
读取预设的第一色彩映射表,所述预设的第一色彩映射表中包括至少一种映射色彩,以及每种映射色彩的色彩值范围;
获取所述预设数量的特征色彩中的每个特征色彩的色彩值;
根据所述预设的第一色彩映射表以及所述预设数量的特征色彩中的每个特征色彩的色彩值,将所述预设数量的特征色彩中的每个特征色彩映射为所述预设的第一色彩映射表中的映射色彩。
或者进一步地,所述处理器201在执行所述对所述预设数量的特征色彩进行映射处理,获得所述预设数量的映射色彩的步骤时,具体执行如下步骤:
读取预设的第二色彩映射表,所述预设的第二色彩映射表中包括至少一种映射色彩,以及每种映射色彩的色彩值;
获取所述预设数量的特征色彩中的每个特征色彩的色彩值;
计算所述预设数量的特征色彩中的每个特征色彩分别与所述预设的第二色彩映射表中的各映射色彩的欧式距离;
针对所述预设数量的特征色彩中的每个特征色彩,将所述预设的第二色彩映射表中与所针对的特征色彩的欧式距离最小的映射色彩确定为所针对的特征色彩的映射色彩,以获得预设数量的映射色彩。
进一步地,所述处理器201在执行所述采用所确定的播放色彩对所述音频文件进行播控处理的步骤时,具体执行如下步骤:
当检测到对所述音频文件的播放请求时,采用所确定的播放色彩对所述音频文件的播放界面进行着色处理;
输出着色处理后的所述音频文件的播放界面。
进一步地,所述处理器201在执行所述采用所确定的播放色彩对所述音频文件的播放界面进行着色处理的步骤时,具体执行如下步骤:
根据预设的区域范围,在所述音频文件的播放界面中确定着色处理区域;
从所确定的播放色彩中选取至少一种播放色彩作为背景色彩,对所述着色处理区域的背景进行着色处理;
从所确定的播放色彩中除所述背景色彩之外的其他播放色彩中选取至少一种播放色彩作为字体色彩,对所述着色处理区域的字体进行着色处理。
本发明实施例中,基于对音频文件对应的专辑图像的色彩分析来确定音频文件的播放色彩,由于专辑图像可在一定程度上反映对应的音频文件的风格属性,基于专辑图像所确定的播放色彩能够个性化且有针对性地表征音频文件的风格属性;且本发明实施例采用所确定的播放色彩对音频文件进行播控处理,有效地提升了音频文件的播控处理的智能性。
请参见图10,为本发明实施例提供的服务器的结构示意图;本发明实施例的服务器包括:至少一个处理器301(例如CPU),至少一个通信总线302,至少一个网络接口303,存储器304。其中,通信总线302用于实现这些组件之间的连接通信。其中,所述网络接口303可选的可以包括标准的有线接口和/或无线接口(如WI-FI或者移动通信接口等)。所述存储器304可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如为至少一个磁盘存储器。所述存储器304可选的还可以是至少一个位于远离前述处理器301的存储装置。如图10所示,作为一种计算机存储介质的存储器304中存储有操作系统和网络通信模块,并存储有用于进行音频文件的播控处理的程序以及其他程序。
其中具体的,所述处理器301可以用于调用所述存储器304中存储的用于进行音频文件的播控处理的程序,执行以下步骤:
获取待处理的音频文件对应的专辑图像;
对所述专辑图像进行色彩分析,确定所述音频文件的播放色彩;
采用所确定的播放色彩对所述音频文件进行播控处理。
进一步地,所述处理器301在执行所述对所述专辑图像进行色彩分析,确定所述音频文件的播放色彩的步骤时,具体执行如下步骤:
获取所述专辑图像的指定像素点的色彩;
从所述专辑图像的指定像素点的色彩中提取预设数量的特征色彩;
将所述预设数量的特征色彩确定为所述音频文件的播放色彩。
进一步地,所述处理器301在执行所述从所述专辑图像的指定像素点的色彩中提取预设数量的特征色彩的步骤之后,还可执行如下步骤:
对所述预设数量的特征色彩进行映射处理,获得预设数量的映射色彩;
所述将提取的所述预设数量的特征色彩确定为所述音频文件的播放色彩具 体包括:将所述预设数量的映射色彩确定为所述音频文件的播放色彩。
进一步地,所述处理器301在执行所述对所述预设数量的特征色彩进行映射处理,获得所述预设数量的映射色彩的步骤时,具体执行如下步骤:
读取预设的第一色彩映射表,所述预设的第一色彩映射表中包括至少一种映射色彩,以及每种映射色彩的色彩值范围;
获取所述预设数量的特征色彩中的每个特征色彩的色彩值;
根据所述预设的第一色彩映射表以及所述预设数量的特征色彩中的每个特征色彩的色彩值,将所述预设数量的特征色彩中的每个特征色彩映射为所述预设的第一色彩映射表中的映射色彩。
或者进一步地,所述处理器301在执行所述对所述预设数量的特征色彩进行映射处理,获得所述预设数量的映射色彩的步骤时,具体执行如下步骤:
读取预设的第二色彩映射表,所述预设的第二色彩映射表中包括至少一种映射色彩,以及每种映射色彩的色彩值;
获取所述预设数量的特征色彩中的每个特征色彩的色彩值;
计算所述预设数量的特征色彩中的每个特征色彩分别与所述预设的第二色彩映射表中的各映射色彩的欧式距离;
针对所述预设数量的特征色彩中的每个特征色彩,将所述预设的第二色彩映射表中与所针对的特征色彩的欧式距离最小的映射色彩确定为所针对的特征色彩的映射色彩,以获得预设数量的映射色彩。
进一步地,所述处理器301在执行所述采用所确定的播放色彩对所述音频文件进行播控处理的步骤时,具体执行如下步骤:
当检测到对所述音频文件的播放请求时,采用所确定的播放色彩对所述音频文件的播放界面进行着色处理;
输出着色处理后的所述音频文件的播放界面。
进一步地,所述处理器301在执行所述采用所确定的播放色彩对所述音频文件的播放界面进行着色处理的步骤时,具体执行如下步骤:
根据预设的区域范围,在所述音频文件的播放界面中确定着色处理区域;
从所确定的播放色彩中选取至少一种播放色彩作为背景色彩,对所述着色处理区域的背景进行着色处理;
从所确定的播放色彩中除所述背景色彩之外的其他播放色彩中选取至少一 种播放色彩作为字体色彩,对所述着色处理区域的字体进行着色处理。
本发明实施例中,基于对音频文件对应的专辑图像的色彩分析来确定音频文件的播放色彩,由于专辑图像可在一定程度上反映对应的音频文件的风格属性,基于专辑图像所确定的播放色彩能够个性化且有针对性地表征音频文件的风格属性;且本发明实施例采用所确定的播放色彩对音频文件进行播控处理,有效地提升了音频文件的播控处理的智能性。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
具体的,本发明实施例提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种音频文件的播控处理方法,该方法包括:
获取待处理的音频文件对应的专辑图像;
对所述专辑图像进行色彩分析,确定所述音频文件的播放色彩;
采用所确定的播放色彩对所述音频文件进行播控处理。该方法可以具体包括本发明任意实施例所提供的音频文件的播控处理方法。
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。

Claims (15)

  1. 一种音频文件的播控处理方法,其特征在于,包括:
    获取待处理的音频文件对应的专辑图像;
    对所述专辑图像进行色彩分析,确定所述音频文件的播放色彩;
    采用所确定的播放色彩对所述音频文件进行播控处理。
  2. 如权利要求1所述的方法,其特征在于,所述对所述专辑图像进行色彩分析,确定所述音频文件的播放色彩,包括:
    获取所述专辑图像的指定像素点的色彩;
    从所述专辑图像的指定像素点的色彩中提取预设数量的特征色彩;
    将所述预设数量的特征色彩确定为所述音频文件的播放色彩。
  3. 如权利要求2所述的方法,其特征在于,所述从所述专辑图像的指定像素点的色彩中提取预设数量的特征色彩之后,还包括:
    对所述预设数量的特征色彩进行映射处理,获得预设数量的映射色彩;
    所述将提取的所述预设数量的特征色彩确定为所述音频文件的播放色彩具体包括:将所述预设数量的映射色彩确定为所述音频文件的播放色彩。
  4. 如权利要求3所述的方法,其特征在于,所述对所述预设数量的特征色彩进行映射处理,获得所述预设数量的映射色彩,包括:
    读取预设的第一色彩映射表,所述预设的第一色彩映射表中包括至少一种映射色彩,以及每种映射色彩的色彩值范围;
    获取所述预设数量的特征色彩中的每个特征色彩的色彩值;
    根据所述预设的第一色彩映射表以及所述预设数量的特征色彩中的每个特征色彩的色彩值,将所述预设数量的特征色彩中的每个特征色彩映射为所述预设的第一色彩映射表中的映射色彩。
  5. 如权利要求3所述的方法,其特征在于,所述对所述预设数量的特征色彩进行映射处理,获得所述预设数量的映射色彩,包括:
    读取预设的第二色彩映射表,所述预设的第二色彩映射表中包括至少一种映射色彩,以及每种映射色彩的色彩值;
    获取所述预设数量的特征色彩中的每个特征色彩的色彩值;
    计算所述预设数量的特征色彩中的每个特征色彩分别与所述预设的第二色彩映射表中的各映射色彩的欧式距离;
    针对所述预设数量的特征色彩中的每个特征色彩,将所述预设的第二色彩映射表中与所针对的特征色彩的欧式距离最小的映射色彩确定为所针对的特征色彩的映射色彩,以获得预设数量的映射色彩。
  6. 如权利要求1-5任一项所述的方法,其特征在于,所述采用所确定的播放色彩对所述音频文件进行播控处理,包括:
    当检测到对所述音频文件的播放请求时,采用所确定的播放色彩对所述音频文件的播放界面进行着色处理;
    输出着色处理后的所述音频文件的播放界面。
  7. 如权利要求6所述的方法,其特征在于,所述采用所确定的播放色彩对所述音频文件的播放界面进行着色处理,包括:
    根据预设的区域范围,在所述音频文件的播放界面中确定着色处理区域;
    从所确定的播放色彩中选取至少一种播放色彩作为背景色彩,对所述着色处理区域的背景进行着色处理;
    从所确定的播放色彩中除所述背景色彩之外的其他播放色彩中选取至少一种播放色彩作为字体色彩,对所述着色处理区域的字体进行着色处理。
  8. 一种音频文件的播控处理装置,其特征在于,包括:
    图像获取模块,用于获取待处理的音频文件对应的专辑图像;
    分析模块,用于对所述专辑图像进行色彩分析,确定所述音频文件的播放色彩;
    播控处理模块,用于采用所确定的播放色彩对所述音频文件进行播控处理。
  9. 如权利要求8所述的装置,其特征在于,所述分析模块包括:
    色彩获取单元,用于获取所述专辑图像的指定像素点的色彩;
    提取单元,用于从所述专辑图像的指定像素点的色彩中提取预设数量的特征色彩;
    确定单元,用于将所述预设数量的特征色彩确定为所述音频文件的播放色彩。
  10. 如权利要求9所述的装置,其特征在于,所述分析模块还包括:
    映射处理单元,用于对所述预设数量的特征色彩进行映射处理,获得预设数量的映射色彩;
    所述确定单元具体用于将所述预设数量的映射色彩确定为所述音频文件的播放色彩。
  11. 如权利要求10所述的装置,其特征在于,所述映射处理单元包括:
    第一读取子单元,用于读取预设的第一色彩映射表,所述预设的第一色彩映射表中包括至少一种映射色彩,以及每种映射色彩的色彩值范围;
    第一获取子单元,用于获取所述预设数量的特征色彩中的每个特征色彩的色彩值;
    第一映射子单元,用于根据所述预设的第一色彩映射表以及所述预设数量的特征色彩中的每个特征色彩的色彩值,将所述预设数量的特征色彩中的每个特征色彩映射为所述预设的第一色彩映射表中的映射色彩。
  12. 如权利要求10所述的装置,其特征在于,所述映射处理单元包括:
    第二读取子单元,用于读取预设的第二色彩映射表,所述预设的第二色彩映射表中包括至少一种映射色彩,以及每种映射色彩的色彩值;
    第二获取子单元,用于获取所述预设数量的特征色彩中的每个特征色彩的色彩值;
    距离计算子单元,用于计算所述预设数量的特征色彩中的每个特征色彩分别与所述预设的第二色彩映射表中的各映射色彩的欧式距离;
    第二映射子单元,用于针对所述预设数量的特征色彩中的每个特征色彩,将所述预设的第二色彩映射表中与所针对的特征色彩的欧式距离最小的映射色 彩确定为所针对的特征色彩的映射色彩,以获得预设数量的映射色彩。
  13. 如权利要求8-12任一项所述的装置,其特征在于,所述播控处理模块包括:
    着色处理单元,用于当检测到对所述音频文件的播放请求时,采用所确定的播放色彩对所述音频文件的播放界面进行着色处理;
    输出单元,用于输出着色处理后的所述音频文件的播放界面。
  14. 如权利要求13所述的装置,其特征在于,所述着色处理单元包括:
    区域确定子单元,用于根据预设的区域范围,在所述音频文件的播放界面中确定着色处理区域;
    背景处理子单元,用于从所确定的播放色彩中选取至少一种播放色彩作为背景色彩,对所述着色处理区域的背景进行着色处理;
    字体处理子单元,用于从所确定的播放色彩中除所述背景色彩之外的其他播放色彩中选取至少一种播放色彩作为字体色彩,对所述着色处理区域的字体进行着色处理。
  15. 一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种音频文件的播控处理方法,其特征在于,该方法包括:
    获取待处理的音频文件对应的专辑图像;
    对所述专辑图像进行色彩分析,确定所述音频文件的播放色彩;
    采用所确定的播放色彩对所述音频文件进行播控处理。
PCT/CN2014/088420 2013-11-15 2014-10-11 一种音频文件的播控处理方法、装置及存储介质 WO2015070682A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/037,012 US10222930B2 (en) 2013-11-15 2014-10-11 Method, apparatus, and storage medium for playing control processing of audio file

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310574051.0 2013-11-15
CN201310574051.0A CN104090883B (zh) 2013-11-15 2013-11-15 一种音频文件的播控处理方法及装置

Publications (1)

Publication Number Publication Date
WO2015070682A1 true WO2015070682A1 (zh) 2015-05-21

Family

ID=51638599

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/088420 WO2015070682A1 (zh) 2013-11-15 2014-10-11 一种音频文件的播控处理方法、装置及存储介质

Country Status (3)

Country Link
US (1) US10222930B2 (zh)
CN (1) CN104090883B (zh)
WO (1) WO2015070682A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113885829A (zh) * 2021-10-25 2022-01-04 北京字跳网络技术有限公司 一种音效展示方法及终端设备

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090883B (zh) * 2013-11-15 2017-05-17 广州酷狗计算机科技有限公司 一种音频文件的播控处理方法及装置
CN106897304B (zh) * 2015-12-18 2021-01-29 北京奇虎科技有限公司 一种多媒体数据的处理方法和装置
CN106649586A (zh) * 2016-11-18 2017-05-10 腾讯音乐娱乐(深圳)有限公司 一种音频文件的播放方法及装置
KR102417701B1 (ko) 2017-08-28 2022-07-07 삼성전자주식회사 전자 장치에서 표시 처리 방법 및 장치
CN108196813B (zh) * 2017-12-27 2021-03-30 广州酷狗计算机科技有限公司 添加音效的方法和装置
CN112799581A (zh) * 2021-02-03 2021-05-14 杭州网易云音乐科技有限公司 多媒体数据处理方法及装置、存储介质、电子设备
CN113885830A (zh) * 2021-10-25 2022-01-04 北京字跳网络技术有限公司 一种音效展示方法及终端设备
CN114003150A (zh) * 2021-10-25 2022-02-01 北京字跳网络技术有限公司 一种音效展示方法及终端设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201273843Y (zh) * 2008-08-15 2009-07-15 宇龙计算机通信科技(深圳)有限公司 一种音乐播放器
CN101661774A (zh) * 2008-08-26 2010-03-03 索尼株式会社 信息处理装置、发光控制方法和计算机程序
CN101702316A (zh) * 2009-11-20 2010-05-05 北京中星微电子有限公司 一种将midi音乐转化为颜色信息的方法和系统
KR20110065972A (ko) * 2009-12-10 2011-06-16 (주)부리멀티미디어 콘텐츠 적응형 입체음향 구현 방법 및 시스템
CN104090883A (zh) * 2013-11-15 2014-10-08 腾讯科技(深圳)有限公司 一种音频文件的播控处理方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609703A (zh) * 2008-06-20 2009-12-23 索尼爱立信移动通讯有限公司 音乐浏览器装置和音乐浏览方法
US8587604B1 (en) * 2010-02-03 2013-11-19 Amazon Technologies, Inc. Interactive color palettes for color-aware search
KR20130024650A (ko) * 2011-08-31 2013-03-08 한국남부발전 주식회사 콘크리트 구조물용 방수장치
KR101889917B1 (ko) * 2012-03-06 2018-08-21 삼성디스플레이 주식회사 유기 발광 표시 장치 및 유기 발광 표시 장치 제조 방법
KR20150024650A (ko) * 2013-08-27 2015-03-09 삼성전자주식회사 전자 장치에서 사운드를 시각적으로 제공하기 위한 방법 및 장치

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201273843Y (zh) * 2008-08-15 2009-07-15 宇龙计算机通信科技(深圳)有限公司 一种音乐播放器
CN101661774A (zh) * 2008-08-26 2010-03-03 索尼株式会社 信息处理装置、发光控制方法和计算机程序
CN101702316A (zh) * 2009-11-20 2010-05-05 北京中星微电子有限公司 一种将midi音乐转化为颜色信息的方法和系统
KR20110065972A (ko) * 2009-12-10 2011-06-16 (주)부리멀티미디어 콘텐츠 적응형 입체음향 구현 방법 및 시스템
CN104090883A (zh) * 2013-11-15 2014-10-08 腾讯科技(深圳)有限公司 一种音频文件的播控处理方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113885829A (zh) * 2021-10-25 2022-01-04 北京字跳网络技术有限公司 一种音效展示方法及终端设备
CN113885829B (zh) * 2021-10-25 2023-10-31 北京字跳网络技术有限公司 一种音效展示方法及终端设备

Also Published As

Publication number Publication date
CN104090883B (zh) 2017-05-17
US20160266731A1 (en) 2016-09-15
US10222930B2 (en) 2019-03-05
CN104090883A (zh) 2014-10-08

Similar Documents

Publication Publication Date Title
WO2015070682A1 (zh) 一种音频文件的播控处理方法、装置及存储介质
US10324977B2 (en) Searching method and apparatus
US10499004B2 (en) Method and terminal for reproducing content
US20130182012A1 (en) Method of providing augmented reality and terminal supporting the same
US10728613B2 (en) Method and apparatus for content insertion during video playback, and storage medium
WO2014178219A1 (ja) 情報処理装置および情報処理方法
US9799099B2 (en) Systems and methods for automatic image editing
US10945018B2 (en) System and method for display adjustments based on content characteristics
US20180365903A1 (en) Target object display method, device and system
US20090300500A1 (en) Methods, apparatuses, and computer program products for determining icons for audio/visual media content
US9886504B2 (en) Audio file management method, device and storage medium
US11792491B2 (en) Inserting ads into a video within a messaging system
US11856255B2 (en) Selecting ads for a video within a messaging system
WO2022072664A1 (en) Ad breakpoints in video within messaging system
WO2019165681A1 (zh) 一种排列应用图标的方法、装置、服务器及介质
US20130182943A1 (en) Systems and methods for depth map generation
JP2014139733A (ja) 情報処理装置および方法、並びにプログラム
US10063502B2 (en) Generation of a communication request based on visual selection
US20220414315A1 (en) Machine learning-powered framework to transform overloaded text documents
KR20150031354A (ko) 디지털 사이니지 콘텐츠 유형에 따른 모바일 어플리케이션 매칭 방법 및 그 시스템
US20140244697A1 (en) Method and device for displaying files
US11687580B2 (en) Auto-adjusting display time of slides based on content intelligence
JP7336780B1 (ja) プログラム、方法、情報処理装置、システム
US20230273949A1 (en) Auto-adjusting display time of slides based on content intelligence
TW202015429A (zh) 播放視頻的方法及裝置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14861494

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 15037012

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: IDP00201603724

Country of ref document: ID

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13.10.2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14861494

Country of ref document: EP

Kind code of ref document: A1