Interface processing method, interface processing device, program product and electronic equipment
By determining the theme color of the currently playing music and adjusting the interface color information to match the music theme, the problem that digital music services cannot bring visual experience is solved, and the user's sense of immersion and atmosphere is enhanced.
Patent Information
- Application Number
- CN202510572879.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-08-15
AI Technical Summary
Existing digital music services cannot bring visual experience, affecting users' immersion and atmosphere when listening to music.
By determining the theme color of the currently playing music, determining the interface color information based on the theme color, controlling the color of the preset interface to match the currently playing music.
It achieves the unity of visual experience and auditory experience, and enhances the immersion and atmosphere of users when listening to music.
Smart Images

Figure CN120492071A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of computer technology. More specifically, the embodiments of the present disclosure relate to an interface processing method, an interface processing device, a program product, and an electronic device. Background Art
[0002] This section is intended to provide a background or context for the technical solutions stated in the claims. The description of the relevant content in this section does not constitute an admission that it is prior art.
[0003] With the development of computers and the Internet, more and more users are listening to music through digital music services. For example, users install music apps (applications) on electronic devices such as mobile phones and listen to music within the apps, or log in to music websites and listen to music online. Summary of the Invention
[0004] However, most current digital music services can only provide users with auditory experience, but cannot provide other experiences such as visual experience, which affects the user's sense of immersion and atmosphere when listening to music.
[0005] In view of the above problems, embodiments of the present disclosure provide an interface processing method, an interface processing device, a program product, and an electronic device.
[0006] According to a first aspect of the present disclosure, an interface processing method is provided, the method comprising: determining a theme color of currently playing music; determining interface color information according to the theme color; and displaying a preset interface based on the interface color information.
[0007] In one embodiment, determining the theme color of the currently playing music includes: determining the theme color according to a cover image corresponding to the currently playing music and / or a music style of the currently playing music.
[0008] In one embodiment, determining the theme color based on the cover image corresponding to the currently playing music and / or the music style of the currently playing music includes: extracting the main color of the cover image corresponding to the currently playing music; determining the corresponding music style color based on the music style of the currently playing music; and determining the theme color based on the main color and the music style color.
[0009] In one embodiment, determining the interface color information according to the theme color includes: determining a target color according to the theme color, and determining the interface color information according to the target color.
[0010] In one embodiment, determining the target color based on the theme color includes: determining one or more related colors based on one or more of current weather information, environmental information, and user status information; and determining the target color based on the theme color and the related colors.
[0011] In one embodiment, determining the target color according to the theme color includes: if there are multiple theme colors, determining the target color according to a user's selection result among multiple candidate colors; the multiple candidate colors include the multiple theme colors.
[0012] In one embodiment, the plurality of candidate colors further include one or more related colors determined based on one or more of current weather information, environmental information, and user status information.
[0013] In one embodiment, determining the interface color information according to the target color includes: adjusting at least one color parameter of the target color to obtain the interface color information.
[0014] In one embodiment, the interface color information includes the interface background color; adjusting at least one color parameter of the target color to obtain the interface color information includes: adjusting at least one color parameter of the target color including saturation, brightness, and transparency to form a gradient interface background color.
[0015] In one embodiment, the interface color information includes the interface icon color; adjusting at least one color parameter of the target color to obtain the interface color information includes: increasing the transparency of the target color, or adjusting the saturation and / or brightness of the target color and increasing the transparency to obtain the interface icon color.
[0016] In one embodiment, adjusting at least one color parameter of the target color to obtain the interface color information includes: adjusting at least one color parameter of the target color according to the adjustment parameter corresponding to the current display mode to obtain the interface color information; wherein different display modes correspond to different adjustment parameters.
[0017] In one embodiment, the theme color of the currently playing music includes: theme colors corresponding to the respective music clips in the currently playing music; and determining the interface color information according to the theme colors includes: determining the interface color information corresponding to the respective music clips according to the theme colors corresponding to the respective music clips;
[0018] The displaying of the preset interface based on the interface color information includes: in response to playing any music segment in the currently playing music, displaying the preset interface based on the interface color information corresponding to the any music segment.
[0019] In one embodiment, the preset interface includes one or more of the following: an associated interface of the currently playing music; an interface in a music application that plays the currently playing music; a desktop of a terminal device that plays the currently playing music; or a lock screen interface of a terminal device that plays the currently playing music.
[0020] In one embodiment, the method further includes: generating music summary information of the user based on the user's music interaction information.
[0021] In one embodiment, the music summary information includes music feature tags.
[0022] In one embodiment, the music interaction information includes music listening information; generating the user's music summary information based on the user's music interaction information includes: counting the theme colors of the listened music based on the user's music listening information to obtain one or more preferred colors, and / or counting the music styles of the listened music to obtain one or more preferred music styles; obtaining the user's music feature label based on the one or more preferred colors and / or the one or more preferred music styles.
[0023] In one embodiment, obtaining the user's music preference label based on the one or more preferred colors and / or the one or more preferred music styles includes: converting the preferred color into a corresponding first keyword, and converting the preferred music style into a corresponding second keyword; and obtaining the user's music feature label by combining the first keyword and the second keyword.
[0024] In one embodiment, the obtaining of the user's music feature label by combining the first keyword and the second keyword includes: combining the first keyword and the second keyword, and adding additional keywords to obtain the user's music feature label; wherein the additional keywords include at least one of the following: a third keyword corresponding to the user's music listening time period determined based on the user's music listening information; a fourth keyword corresponding to the user's music listening environment determined based on the user's music listening information; a fifth keyword corresponding to the user's music listening status determined based on the user's music listening information; and a sixth keyword corresponding to the user's preferred artist determined based on the user's music listening information.
[0025] In one embodiment, the music feature tag of the user is obtained by combining the first keyword and the second keyword, including: combining the first keyword and the second keyword, and adding dynamic information based on the user's historical music feature tag to obtain a music feature tag different from the historical music feature tag; the historical music feature tag is a previously generated music feature tag of the user.
[0026] In one embodiment, obtaining the user's music feature label based on the one or more preferred colors and / or the one or more preferred music styles includes: sorting the one or more preferred colors and sorting the one or more preferred music styles; and combining the preferred colors and the preferred music styles according to the sorting of the one or more preferred colors and the sorting of the one or more preferred music styles to obtain one or more music feature labels.
[0027] In one embodiment, a music feature icon formed according to a feature color corresponding to the music feature tag is displayed in the music summary information, and the music feature icon is used to represent the music feature tag.
[0028] In one embodiment, the method further includes: in response to a triggering operation on any music feature icon, displaying a details page of the any music feature icon; the details page includes one or more of the following information: a music feature tag corresponding to the any music feature icon; explanatory information of the music feature tag corresponding to the any music feature icon; the proportion of the music feature tags corresponding to the any music feature icon, the proportion indicating the proportion of the music listened to by the user under the music feature tag to the total music listened to by the user; the music style under the music feature tag corresponding to the any music feature icon; information on the music that has been listened to under the music feature tag corresponding to the any music feature icon; and recommendation information for the user.
[0029] In one embodiment, the method further includes: generating sharing information according to the detail page in response to a sharing operation on the detail page.
[0030] In one embodiment, a recommendation jump control is provided in the detail page, and the method further includes: displaying recommendation information for the user in response to a triggering operation on the recommendation jump control.
[0031] In one embodiment, the size of any music feature icon in the music summary information is determined according to the ratio of the music feature tag corresponding to any music feature icon, and the ratio indicates the ratio of the music listened by the user under the music feature tag to the total music listened by the user.
[0032] In one embodiment, displaying a preset interface based on the interface color information includes: displaying a preset interface based on the interface color information when the user uses a preset display function; generating the user's music summary information based on the user's music interaction information includes: generating the user's music summary information based on the user's music interaction information when the user uses the preset display function.
[0033] In one embodiment, the method further includes: generating recommendation information for the user based on the user's music interaction information.
[0034] In one embodiment, the music interaction information includes music listening information; generating recommendation information for the user based on the user's music interaction information includes: determining one or more of the user's first emotional characteristics, preferred colors, and preferred music styles based on the user's music listening information; determining the recommendation information for the user based on one or more of the user's first emotional characteristics, preferred colors, and preferred music styles.
[0035] In one embodiment, determining one or more of the user's first emotional characteristic, preferred color, and preferred music style based on the user's music listening information includes one or more of the following steps: counting the theme color of the listened music and / or the rhythm characteristics of the listened music based on the user's music listening information, and determining the first emotional characteristic based on the statistical results; counting the theme color of the listened music based on the user's music listening information to obtain the preferred color; counting the music style of the listened music based on the user's music listening information to obtain the preferred music style.
[0036] In one embodiment, the recommendation information includes recommended music; determining the recommendation information for the user based on one or more of the user's first emotional characteristic, preferred color, and preferred music style includes: determining first recommended music that matches the first emotional characteristic, and determining second recommended music that matches a second emotional characteristic; the second emotional characteristic is different from the first emotional characteristic; and generating a recommended music set that transitions from the first recommended music to the second recommended music.
[0037] In one embodiment, the recommendation information includes recommended music; the determination of the recommendation information for the user based on one or more of the user's first emotional characteristic, preferred color, and preferred music style includes: the first emotional characteristic corresponds to a first priority, the preferred color corresponds to a second priority, and the preferred music style corresponds to a third priority, and the recommended music for the user is determined based on the first emotional characteristic, the preferred color, and the preferred music style respectively; the first priority is higher than the second priority, and the second priority is higher than the third priority.
[0038] In one embodiment, determining recommendation information for the user based on one or more of the user's first emotional characteristic, preferred color, and preferred music style includes: using candidate products that have a color matching relationship with the preferred color as recommended products for the user.
[0039] According to a second aspect of the present disclosure, an interface processing device is provided, comprising: a theme color determination module configured to determine the theme color of currently playing music; an interface color determination module configured to determine interface color information based on the theme color; and an interface display control module configured to display a preset interface based on the interface color information.
[0040] According to a third aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the method of the first aspect and possible implementations thereof are implemented.
[0041] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the method of the above-mentioned first aspect and its possible implementation methods by executing the executable instructions.
[0042] The embodiments of the present disclosure have the following technical effects:
[0043] The interface color information is determined based on the theme color of the current playback interface, which in turn controls the color of the preset interface to match the currently playing music. For example, if the theme color of the currently playing music is red, the preset interface will be displayed with a red background. This effectively combines the user's visual experience of viewing the preset interface with the auditory experience of listening to the currently playing music, giving the user a harmonious and unified audio-visual experience, enhancing the user's sense of immersion and atmosphere when listening to music. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A schematic diagram showing the system architecture in an embodiment of the present disclosure.
[0045] Figure 2 A flow chart showing an interface processing method in an embodiment of the present disclosure is shown.
[0046] Figure 3 A schematic diagram showing a display preset interface in an embodiment of the present disclosure is shown.
[0047] Figure 4 A comparison diagram of the preset interfaces in the daytime display mode and the nighttime display mode in an embodiment of the present disclosure is shown.
[0048] Figure 5 A schematic diagram showing music summary information in an embodiment of the present disclosure.
[0049] Figure 6 A schematic diagram illustrating a details page in an embodiment of the present disclosure.
[0050] Figure 7 A schematic diagram showing a second recommendation interface in an embodiment of the present disclosure is shown.
[0051] Figure 8 A schematic structural diagram of an interface processing device in an embodiment of the present disclosure is shown.
[0052] Figure 9 A schematic structural diagram of an electronic device in an embodiment of the present disclosure is shown.
[0053] In the drawings, the same or corresponding reference numerals denote the same or corresponding parts. DETAILED DESCRIPTION
[0054] The principles and spirit of the present disclosure are described in detail below with reference to several representative embodiments of the present disclosure. It should be understood that these embodiments are provided solely to enable those skilled in the art to better understand and implement the present disclosure, and are not intended to limit the scope of the present disclosure in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0055] The embodiments of the present disclosure may be implemented as systems, devices, equipment, methods, and computer program products. Therefore, the present disclosure may be implemented in the following forms: entirely in hardware, entirely in software (including firmware, resident software, microcode, etc.), or in a combination of hardware and software. SUMMARY OF THE INVENTION
[0057] Most of the current digital music services can only bring users auditory experience, but cannot bring other experiences such as vision, which affects the user's sense of immersion and atmosphere when listening to music. For example, when a music app plays music, its playback interface usually displays some fixed interface elements (such as playback controls, fixed backgrounds, etc.), which cannot show the characteristics of the currently playing music. Or, if the user switches to other interfaces other than the playback interface while listening to music, the content displayed in other interfaces is usually unrelated to the currently playing music. In this way, the visual experience obtained by the user when viewing the interface cannot be well combined with the auditory experience of listening to the currently playing music, which reduces the sense of immersion and atmosphere in the process of listening to music.
[0058] In view of the above problems, the present disclosure provides an interface processing method, an interface processing device, a program product, and an electronic device. These methods determine interface color information based on the theme color of the current playback interface, thereby controlling the color of a preset interface to match the currently playing music. For example, if the theme color of the currently playing music is red, the preset interface is displayed with a red background. This effectively combines the user's visual experience of viewing the preset interface with the auditory experience of listening to the currently playing music, thereby providing the user with a harmonious and unified audiovisual experience and enhancing the user's sense of immersion and atmosphere when listening to music.
[0059] After introducing the basic principles of the present disclosure, various non-limiting embodiments of the present disclosure are described in detail below.
[0060] Application Scenario Overview
[0061] It should be noted that the following application scenarios are only shown to facilitate understanding of the spirit and principles of the present disclosure. The embodiments of the present disclosure are not limited in this respect and can be applied to any applicable scenarios.
[0062] The embodiments of the present disclosure can be applied to music applications, such as music apps (Applications), music services provided through web pages (such as music websites), or music applets set in other programs. The currently playing music is the music currently playing in the music reference. The preset interface can be an interface in the music application, such as a playback interface, a main interface, a music recommendation interface, a user information interface, etc., or it can be an interface outside the music application, such as the desktop of a terminal device, a lock screen interface, etc. The embodiments of the present disclosure can achieve a color adaptation effect between the preset interface and the current playback interface. When the user listens to music, the interface color information is determined according to the theme color of the current playback interface, and the preset interface is displayed based on the interface color information. The color of the preset interface seen by the user matches the currently playing music, achieving the unity and combination of visual and auditory perceptions, and enhancing the sense of immersion and atmosphere.
[0063] In one embodiment, when the user turns on the preset display function (indicating a function for displaying adaptive interface colors), the interface processing method disclosed herein is executed to achieve a color adaptation effect between the preset interface and the currently playing music. If the user does not turn on the preset display function, the preset interface is displayed in its original color.
[0064] Figure 1 The system architecture of the operating environment for embodiments of the present disclosure is shown. This system architecture may include a terminal device 110 and a server 120. Terminal device 110 may be a mobile phone, personal computer, tablet computer, smart wearable device, etc., and may have audio capabilities and run music-related applications such as music apps, music websites, and music applets. Furthermore, terminal device 110 may have a display function and may display a graphical user interface, such as a preset interface. Server 120 is the backend for providing music-related services and may be a single server or a cluster of multiple servers. In one embodiment, server 120 may include a first service system and a second service system. The first service system provides music listening services, such as providing audio data of currently playing music to terminal device 110, enabling terminal device 110 to play the currently playing music. The second service system provides interface display services, such as providing interface information of a preset interface to terminal device 110, enabling terminal device 110 to display the preset interface. Terminal device 110 and server 120 may be connected via a wired or wireless communication link to enable information exchange.
[0065] The interface processing method in the embodiments of the present disclosure may be executed independently by the terminal device 110 or the server 120 , or may be executed jointly by the terminal device 110 and the server 120 .
[0066] In one embodiment, the interface processing method can be independently executed by the terminal device 110 without setting up the server 120. For example, the interface processing program can be deployed locally on the terminal device 110, and the terminal device 110 can run a music app in a stand-alone environment to achieve a color matching effect between the preset interface and the currently playing music by executing the interface processing program.
[0067] Exemplary Methods
[0068] The interface processing method in the embodiment of the present disclosure is exemplified below. Figure 2 The process of the interface processing method is shown, which may include steps S210 to S230. Figure 2 Provide detailed instructions for each step.
[0069] In step S210, the theme color of the currently playing music is determined.
[0070] The theme color is a color that reflects the characteristics of the currently playing music and can be understood as a concrete embodiment of the emotion and mood of the currently playing music. The characteristics of the currently playing music include, but are not limited to, cover image, music style, rhythm characteristics, and lyrics characteristics. The cover image can be an album image, a promotional poster, or a screenshot from a supporting video (such as a music video, or MV). Music styles (or genres, genres, etc.) can include pop, rock, electronic, jazz, folk, classical, hip-hop, and lo-fi (low-fidelity, a musical style that achieves a sense of relaxation and imperfection by reducing sound quality). Rhythm characteristics can include music rhythm parameters such as BPM (beats per minute), or music rhythm classification results, such as whether the currently playing music is fast or slow. Lyrics characteristics can include lyrics keywords, text features, semantic features, and emotional features.
[0071] In one embodiment, a correspondence between one or more of the above characteristics and colors may be established, and the corresponding color may be determined according to the characteristics of the currently playing music, thereby obtaining a theme color.
[0072] In one embodiment, the above-mentioned determination of the theme color of the currently playing music includes the following steps:
[0073] The theme color is determined according to the cover image corresponding to the currently playing music and / or the music style of the currently playing music.
[0074] The theme color can be determined solely based on the cover image, such as by extracting the primary color from the cover image and using it as the theme color for the currently playing music. The theme color can also be determined solely based on the music style, such as by determining a corresponding music style color based on the music style. The theme color can also be determined based on both the cover image and the music style, such as by combining the primary color of the cover image and the music style color.
[0075] In one embodiment, the method of determining the theme color based on the cover image corresponding to the currently playing music and / or the music style of the currently playing music includes the following steps:
[0076] Extract the main color of the cover image corresponding to the currently playing music;
[0077] Determine the corresponding music style color according to the music style of the currently playing music;
[0078] Determine the theme color based on the main color and music style color.
[0079] Among them, the main color of the cover image can be one or more colors that are most distributed in the cover image. For example, the number of pixels of each color in the cover image can be counted, and the color with the largest number of pixels can be used as the main color. Alternatively, a clustering algorithm such as K-means or Median Cut is used to perform color clustering on the cover image to obtain a number of clusters (such as 16 clusters typically), and the cluster center color of the main cluster (such as the cluster with the most pixel values) is extracted as the main color. In addition, in order to improve the efficiency or accuracy of the main color analysis, the cover image can be preprocessed, and then the main color can be determined by pixel statistics, clustering, etc. The preprocessing methods include but are not limited to: downsampling (such as scaling the cover image to a fixed size such as 100x100) to reduce its pixel number and improve efficiency; color space conversion, such as converting the cover image from RGB space to HSL color space that is more suitable for color analysis to improve the effect of clustering, etc.
[0080] You can pre-establish a correspondence between different music styles and music style colors. For example, rock corresponds to red, hip-hop corresponds to orange, folk corresponds to green, classical corresponds to black, etc. The corresponding music style color is determined based on the music style currently being played.
[0081] Either the primary color or the music style color can be used as the theme color, or both can be provided as candidates to the user for selection, or the primary color and the music style color can be combined, such as blending them into one color or forming a composite color, to serve as the theme color. In this way, the theme color can more fully characterize the characteristics of the currently playing music.
[0082] Continue to refer Figure 2 In step S220, the interface color information is determined according to the theme color.
[0083] The interface color information may refer to the color information of one or more elements in a preset interface, such as the interface background color, the interface icon color, etc. The interface color information may include specific color values, such as the RGB value and HSL (Hue, Saturation, Lightness) value of a certain color, etc. It may also include color types, such as information about a certain hue or color system, and color-related parameters, such as a brightness attenuation parameter (used to determine the attenuation of color brightness in the preset interface to form a gradient color).
[0084] The interface color information matches the theme color of the currently playing music. For example, the theme color can be used as the interface background color or the interface icon color, so that the preset interface is consistent in color with the currently playing music.
[0085] In one embodiment, the above-mentioned determination of the interface color information according to the theme color includes the following steps:
[0086] Determine the target color based on the theme color, and determine the interface color information based on the target color.
[0087] The target color is the color used to directly determine the interface color information, such as the primary color in the interface color information. The target color can be the same as or different from the theme color.
[0088] In one embodiment, determining the target color according to the theme color includes the following steps:
[0089] Determine one or more relevant colors based on one or more of current weather information, environmental information, and user status information;
[0090] Determine the target color based on the theme color and related colors.
[0091] Weather information can refer to the current weather conditions in the city or region where the terminal device is located. This information can be obtained through weather-related applications or services, such as a music application server accessing a weather-related service to obtain current weather information. Environmental information can refer to information about the actual environment in which the terminal device is located. This information can be obtained by capturing the external environment through the terminal device's camera, or by obtaining the terminal device's geographic location information. Environmental information can be obtained based on the terminal device's location. This environmental information can indicate the type of environment the terminal device is in, such as the beach, grassy area, shopping mall, or street. User status information refers to the current state of the user listening to music, such as working, commuting, studying, free time, or resting. This information can be determined based on the user's behavior using the terminal device or music application, or by directly obtaining the status information set by the user in the music application. Correspondence between weather information, environmental information, user status information, and other colors can be pre-established. For example, a sunny day corresponds to red or yellow, a cloudy day to gray, a rainy day to blue, and a snowy day to white; a beach to blue, a grassy area to green, and a shopping mall to red; a work area to red, a commuter to yellow, and a student to green; and so on. Based on one or more of the current weather information, environmental information, and user status information, one or more corresponding colors are determined.
[0092] The target color can be determined by combining the theme color and related colors. For example, the theme color and related colors can be merged into one color, or a composite color (such as a gradient from the theme color to the related color) can be formed as the target color. In this way, the target color not only matches the theme color, but also matches weather information, environmental information, user status information, etc., thereby determining the interface color information and displaying the preset interface. This makes the preset interface adapt to the external environment and the user's own status, further improving the audio-visual effect.
[0093] In one embodiment, determining the target color according to the theme color includes the following steps:
[0094] If there are multiple theme colors, the target color is determined according to the user's selection result among multiple candidate colors; the multiple candidate colors include multiple theme colors.
[0095] The case where there are multiple theme colors includes but is not limited to: the cover image has multiple main colors, and the multiple main colors are all used as theme colors; the main color of the cover image and the music style color are both used as theme colors.
[0096] When there are multiple theme colors, multiple candidate colors including the multiple theme colors are provided. The candidate colors may include only the theme color or other colors. In one embodiment, the multiple candidate colors may also include one or more related colors determined based on one or more of the current weather information, environmental information, and user status information. For example, if the current weather information is sunny, the corresponding related color is red; if the current environmental information is the seaside, the corresponding related color is blue. The candidate colors may include multiple theme colors, red, and blue.
[0097] The user can select one or more candidate colors as the target color. For example, when the currently playing music begins, or when the user activates the preset display function, multiple candidate colors are presented in a window or other form. After the user selects and confirms the target color, the interface color information is determined based on the target color, and the preset interface of the corresponding color is displayed.
[0098] In one embodiment, the above-mentioned determination of the interface color information according to the target color includes the following steps:
[0099] Adjust at least one color parameter of the target color to obtain interface color information.
[0100] Adjustable color parameters include, but are not limited to, hue, saturation, brightness, and transparency. By adjusting at least one color parameter of the target color, the interface color information is obtained. For example, the interface color information can have the same hue as the target color but a different saturation or brightness. This allows for a wider range of settings and greater flexibility.
[0101] In one embodiment, the interface color information includes the interface background color. The above-mentioned adjustment of at least one color parameter of the target color to obtain the interface color information includes the following steps:
[0102] Adjust at least one color parameter of the target color, including saturation, brightness, and transparency, to form a gradient interface background color.
[0103] Among them, the interface background color is a gradient color, and the target color can be used as an endpoint color or an intermediate color of the gradient color. For example, the saturation can be gradually reduced based on the target color to form a gradient color from the target color to a low-saturation color. Alternatively, by increasing the brightness of the target color, a color A1 with higher brightness is obtained, and by reducing the brightness of the target color, a color A2 with lower brightness is obtained, thereby forming a gradient color from color A1 to color A2. Of course, multiple color parameters such as saturation, brightness, and transparency can also be adjusted, and multiple color parameters can be increased or decreased at the same time, or some color parameters can be increased and other color parameters can be decreased to form a gradient color. For example, by increasing the brightness and saturation of the target color, color A3 is obtained, and by reducing the brightness and saturation of the target color, color A4 is obtained, thereby forming a gradient color from color A3 to color A4. Since the hue is kept unchanged during the process of adjusting the color parameters, the gradient color obtained in this way is the same as the hue of the target color, ensuring that the interface background color as a whole matches the theme color of the currently playing music.
[0104] In one embodiment, the interface color information includes the color of the interface icon. The above adjustment of at least one color parameter of the target color to obtain the interface color information includes the following steps:
[0105] The transparency of the target color is increased, or the saturation and / or brightness of the target color is adjusted and the transparency is increased to obtain the interface icon color.
[0106] Interface icons include, but are not limited to, controls, windows, and information boxes within an interface. The interface icon color can be obtained by simply increasing the transparency of the target color, or by increasing the transparency and adjusting at least one of the saturation and brightness. This ensures that the interface icon color is consistent with the target color and has a certain degree of transparency, making it easier to identify.
[0107] In one embodiment, the interface icon color can be consistent with the interface background color as a whole, but not completely the same. For example, by adjusting the saturation and / or transparency of the target color, a gradient interface background color can be obtained, and any color (such as the color of the two end points of the gradient) can be selected from the gradient interface background color, and after increasing the transparency, it is used as the interface icon color. In this way, the interface icon color and the interface background color appear as one color as a whole, but the two are distinguishable. This improves the visual effect.
[0108] Continue to refer Figure 2 In step S230, a preset interface is displayed based on the interface color information.
[0109] The preset interface may include any one or more interfaces on the terminal device that are configured to have a color matching relationship with the currently playing music. The developer or user of the music application can set which interfaces are preset interfaces. For example, when the user turns on the preset display function, one or more candidate interfaces may be provided, and the user selects a preset interface from them, indicating that the preset display function is enabled for the preset interface.
[0110] The preset interface is displayed based on the interface color information. For example, the background of the preset interface is displayed based on the interface background color, and the icons of the preset interface are displayed based on the interface icon color. This way, the display effect of the preset interface matches the currently playing music, achieving a unified audio-visual experience.
[0111] In one embodiment, the preset interface may include one or more of the following:
[0112] Interfaces related to the currently playing music, such as the playback interface, lyrics interface, comment interface, etc.
[0113] Play the interface of the music application currently playing the music, such as all interfaces in the music app.
[0114] The desktop of the terminal device currently playing music is played. When the user switches to the desktop while listening to the currently playing music, the desktop is displayed based on the interface color information so that the desktop color matches the currently playing music.
[0115] The lock screen interface of the terminal device currently playing music is displayed. If the user locks the terminal device screen or the terminal device automatically triggers the lock frequency while listening to the currently playing music, the lock screen interface is displayed based on the interface color information so that the color of the lock screen interface matches the currently playing music.
[0116] Other specified interfaces, such as the interfaces of other applications. If the user switches to another application while listening to the currently playing music, the interface of the other application can be displayed based on the interface color information so that its color matches the currently playing music.
[0117] In one embodiment, the preset interface can include all interfaces on the terminal device. While the user is listening to the currently playing music, no matter which interface they switch to, that interface will be displayed based on the interface color information. This ensures that the colors of the interfaces the user sees match the currently playing music, creating a highly immersive audio-visual atmosphere.
[0118] Figure 3A schematic diagram showing a preset interface is shown. The preset interface may include all interfaces in the music application. The theme color is determined to be red according to the currently playing music, and the interface color information includes a red gradient interface background color. When the currently playing music is playing, when the user switches to any interface in the music application, such as Figure 3 The playback interface, first recommendation interface, etc. shown in the figure all display a red gradient interface background.
[0119] In one embodiment, the theme color of the currently playing music may include theme colors corresponding to various music segments within the currently playing music. The currently playing music may be divided into multiple music segments based on variations in musical style, rhythm, etc., and different music segments may correspond to different theme colors. For example, the corresponding theme color may be determined based on the characteristics of each music segment (e.g., lyrics characteristics, rhythm characteristics, etc.).
[0120] Accordingly, the interface color information corresponding to each music clip can be determined based on the theme color corresponding to each music clip; in response to playing any music clip in the currently playing music, a preset interface is displayed based on the interface color information corresponding to the music clip. For example, music clip 1 in the currently playing music corresponds to theme color B1, music clip 2 corresponds to theme color B2, and music clip 3 corresponds to theme color B3. Interface color information C1 is determined based on theme color B1, interface color information C2 is determined based on theme color B2, and interface color information C3 is determined based on theme color B3. During the playback of the currently playing music, when music clip 1 is played, the preset interface is displayed based on interface color information C1, when music clip 2 is played, the preset interface is displayed based on interface color information C2, and when music clip 3 is played, the preset interface is displayed based on interface color information C3. In this way, as the musical style and rhythm characteristics of a piece of music change, the color of the preset interface changes accordingly, further enhancing the user's audio-visual experience.
[0121] In one embodiment, adjusting at least one color parameter of the target color to obtain the interface color information includes the following steps:
[0122] According to the adjustment parameters corresponding to the current display mode, at least one color parameter of the target color is adjusted to obtain interface color information; wherein different display modes correspond to different adjustment parameters.
[0123] Among them, the adjustment parameters may include the adjustment amount of the color parameters, the adjustment amplitude value, etc. The terminal device or music application may have different display modes, such as daytime display mode, nighttime display mode, or standard display mode, soft display mode, highlight display mode, etc. Different display modes indicate different user preferences. For example, in nighttime display mode or soft display mode, the user prefers low-saturation color matching. Therefore, different display modes can be set to correspond to different adjustment parameters. For example, the daytime display mode corresponds to a smaller saturation attenuation parameter, and the nighttime display mode corresponds to a larger saturation attenuation parameter. According to the current display mode, the corresponding adjustment parameter is used to adjust at least one color parameter of the target color. Figure 4 A comparison chart of the preset interfaces in daytime display mode and nighttime display mode is shown. In daytime display mode, a smaller saturation attenuation parameter is used to reduce the saturation of the target color, resulting in a gradient color with a slower saturation attenuation, and the gradient color presents a high-saturation visual effect as a whole. In nighttime display mode, a larger saturation attenuation parameter is used to reduce the saturation of the target color, resulting in a gradient color with a faster saturation attenuation, and the gradient color presents a low-saturation visual effect as a whole. The interface color information adjusted in this way conforms to the current display mode and meets current user needs.
[0124] In one embodiment, the interface processing method further comprises the following steps:
[0125] Generate user music summary information based on the user's music interaction information.
[0126] Music interaction information refers to information about user interactions with music, including but not limited to user listening information, music collection, commenting, and sharing. By summarizing and analyzing user music interaction information, music summary information is generated. This music summary information can be displayed on a terminal device. This disclosure does not limit the specific format of this music summary information; it may be in the form of a graphic report, video, or other similar format.
[0127] In one embodiment, the music summary information includes music feature tags. The music feature tags can be a summary of the music features preferred by the user. The music summary information can list the music feature tags that match the user, and display the user's music profile in the form of music feature tags.
[0128] In one embodiment, when the user uses the preset display function, a preset interface can be displayed based on the interface color information. Accordingly, the user's music summary information is generated based on the user's music interaction information when using the preset display function. The preset display function represents a function of displaying adaptive interface colors. When the user uses the preset display function, the preset interface is displayed based on the interface color information. When the user does not use the preset display function, the preset interface is displayed based on the original color information of the preset interface. When summarizing the user's music interaction information, the user's music summary information can be generated based on the user's music interaction information when using the preset display function, that is, the user's music interaction information when not using the preset display function is not considered. This reduces the processing amount of music interaction information and improves the pertinence of the music summary information.
[0129] In one embodiment, the music interaction information includes music listening information. The above-mentioned method of generating the user's music summary information based on the user's music interaction information includes the following steps:
[0130] Based on the user's music listening information, statistics are collected on the theme colors of the music that has been listened to to obtain one or more preferred colors, and / or statistics are collected on the music styles of the music that has been listened to to obtain one or more preferred music styles;
[0131] The user's music feature tags are obtained according to one or more preferred colors and / or one or more preferred music styles.
[0132] Among them, the music listening information may include what music the user has listened to (i.e., the music already listened to) within the statistical period (such as the last week, the last month, the whole year, etc.), the length of time of listening to the music, etc. According to the user's music listening information, the theme color of the music that has been listened to can be counted, such as obtaining the ratio of different theme colors, and taking one or more theme colors with the highest ratio as the preferred color. According to the user's music listening information, the music style of the music that has been listened to can also be counted, such as obtaining the ratio of different music styles, and taking one or more music styles with the highest ratio as the preferred music style. The preferred color or preferred music style can correspond to a music feature label, or the preferred color and preferred music style can be combined to obtain a music feature label.
[0133] In one embodiment, the method of obtaining the user's music preference tag based on one or more preferred colors and / or one or more preferred music styles includes the following steps:
[0134] Convert the preferred color into the corresponding first keyword, and convert the preferred music style into the corresponding second keyword;
[0135] By combining the first keyword and the second keyword, a music feature tag of the user is obtained.
[0136] The correspondence between different colors and keywords, and between different music styles and keywords, can be pre-set. For example, colors can correspond to keywords related to mood and atmosphere, and music styles can correspond to keywords related to scenes and personality. Table 1 shows an example of the correspondence between different colors and keywords, and Table 2 shows an example of the correspondence between different music styles and keywords.
[0137] Table 1
[0138] color Emotion / atmosphere keywords red Passion, enthusiasm, impulse, romance blue Melancholy, calmness, late night, loneliness green Nature, healing, peace, growth yellow Happiness, sunshine, vitality, creativity Purple Mysterious, dreamy, artistic, niche black, white and gray Simple, profound, focused, advanced
[0139] Table 2
[0140] Musical style Scene / Personality Keywords electronic Party animal, energy warrior Lo-Fi Philosopher and coffee shop writer rock Rebellious Soul, Freedom Knight classical Elegant master, theater regular Hip-Hop Street observer, trend pioneer Jazz Retro romantic, bar poet
[0141] Based on the above correspondence, the preferred color is converted into the corresponding first keyword, and the preferred music style is converted into the corresponding second keyword. The first and second keywords are combined to obtain the user's music feature label. For example, if the user's music listening this week has the highest proportion of music with the theme color blue, the user's preferred color is determined to be blue. If the user's music listening this week has the highest proportion of music with the theme color lo-fi, the user's preferred music style is determined to be lo-fi. Combining the first keyword corresponding to blue with the second keyword corresponding to lo-fi can yield the music feature label "Late Night Philosopher." Furthermore, the combination of the first and second keywords can be transformed, such as by using a large language model to optimize and beautify the language and increase interest, resulting in a phrase or sentence that better aligns with conventional expressions or has a more stylish style, which can be used as a music feature label. For example, if the preferred color is blue, the first keyword corresponding to melancholy, the preferred music style is lo-fi, and the second keyword corresponding to coffee shop writer, the combination of the two forms "Melancholy Coffee Shop Writer." This phrase can be beautified using a large language model to yield the music feature label "Blues Notebook."
[0142] In one embodiment, the above-mentioned method of obtaining the user's music feature tag by combining the first keyword and the second keyword includes the following steps:
[0143] Combine the first keyword and the second keyword, and add additional keywords to obtain the user's music feature tag. The additional keywords include at least one of the following:
[0144] The third keyword corresponding to the user's music listening time is determined based on the user's music listening information. The music listening information can be used to calculate the user's music listening time, such as the proportion of music listening in different time periods (e.g., time proportion or frequency proportion) such as early morning, morning, noon, afternoon, evening, and late night. The corresponding third keyword can then be determined based on the user's frequent music listening time. For example, if the user often listens to music in the early morning, the corresponding third keyword may be "morning morning," "morning light," "sunrise," etc.
[0145] A fourth keyword corresponding to the user's music listening environment is determined based on the user's music listening information. The user's music listening environment can be statistically analyzed based on the music listening information, which may include information about the weather and occasions of the external environment, such as the proportion of time the user listens to music in different weather environments such as sunny, cloudy, and rainy days, or the proportion of time the user listens to music in different environments such as parks, shopping malls, and home. The fourth keyword can then be determined based on the user's frequent music listening environments. For example, if the user often listens to music on rainy days, the corresponding fourth keyword may be "rainy day," "raindrops," "humid," etc.
[0146] The fifth keyword corresponding to the user's music listening state is determined based on the user's music listening information. The music listening information can be used to calculate the proportion of users listening to music in different states, and the corresponding fifth keyword can be determined based on the user's frequent music listening state. For example, if a user often listens to music in an idle state, the corresponding fifth keyword may be "idle," "leisurely," "relaxed," etc.
[0147] The sixth keyword corresponding to the user's preferred artist is determined based on the user's music listening information. Based on the music listening information, the proportion of users' preferences for different artists (e.g., performers or composers) can be counted, and the corresponding sixth keyword can be determined based on the artist. The artist's name can be used as the sixth keyword, or the corresponding sixth keyword can be determined based on the artist's style, personality, etc.
[0148] On the basis of combining the first keyword and the second keyword, any one or more additional keywords mentioned above can be added to form a music feature tag, which makes the content of the music feature tag richer, more diverse and more personalized.
[0149] In one embodiment, the above-mentioned method of obtaining the user's music feature tag by combining the first keyword and the second keyword includes the following steps:
[0150] The first keyword and the second keyword are combined, and dynamic information is added according to the user's historical music feature tags to obtain a music feature tag that is different from the historical music feature tag.
[0151] Among them, the historical music feature tag is the music feature tag of the user generated previously. For example, music summary information can be generated for the user once a week as a cycle, and the historical music feature tag can be the music feature tag in the music summary information generated in the historical cycle. In order to avoid duplication of music feature tags, dynamic information can be added on the basis of combining the first keyword and the second keyword. The dynamic information can include the above-mentioned additional keywords, or timeliness information related to the current cycle (such as the current cycle includes a certain festival or solar term, and relevant keywords can be added), or other information. For example, when it is detected that the phrase of the first keyword and the second keyword is repeated with the historical music feature tag, dynamic information is added. Alternatively, after combining the first keyword, the second keyword, and the additional keyword, if it is found to be repeated with the historical music feature tag, the added additional keywords can be changed, or other dynamic information can be added. This ensures that the user will not see repeated music feature tags in the music summary information, thereby increasing the fun of the music feature tags and making the music summary information more attractive to users.
[0152] In one embodiment, obtaining the user's music feature tag based on one or more preferred colors and / or one or more preferred music styles includes the following steps:
[0153] sorting the one or more preferred colors and sorting the one or more preferred music styles;
[0154] According to the above-mentioned order of the one or more preferred colors and the above-mentioned order of the one or more preferred music styles, the preferred colors and the preferred music styles are respectively combined to obtain one or more music feature labels.
[0155] Among them, the ranking can be performed according to the ratio of each preferred color, and the ratio indicates the proportion of the music corresponding to a certain preferred color listened to by the user in the total music listened to. The ranking can be performed according to the ratio of each preferred music style, and the ratio indicates the proportion of the music corresponding to a certain preferred music style listened to by the user in the total music listened to. After the preferred colors and preferred music styles are sorted respectively, they can be combined according to the sorting situation. Table 3 shows an example of the combination of preferred colors and preferred music styles and the corresponding music feature labels. The preferred colors and preferred music styles are combined one by one in the order of sorting from high to low, and each group generates a corresponding music feature label. The music feature labels obtained in this way are sorted from high to low in matching degree with the user, so that the user can see his or her own music portrait.
[0156] Table 3
[0157]
[0158] In one embodiment, a music feature icon formed according to a feature color corresponding to a music feature tag is displayed in the music summary information, and the music feature icon is used to represent the music feature tag. Among them, the music feature tag can be represented by a specific color, which is called a feature color. For example, the music feature tag contains a keyword corresponding to a certain theme color, and the theme color can be used as the feature color corresponding to the music feature tag. Alternatively, the corresponding feature color is determined based on the semantic information of the music feature tag, such as a mapping between semantic information and different colors can be established, and the semantic information of the music feature tag is mapped to a feature color. The music feature icon is formed according to the feature color, such as in the form of a color block, bubble, etc., and its background or fill color can be the feature color, and can contain the text information of the music feature tag. In this way, the music feature tag is identified in a color-visualized manner in the music summary information, which makes it easier for users to feel the deep semantics or emotions of the music feature tag, thereby deepening their understanding of the music summary information.
[0159] In one embodiment, the size of any music feature icon in the music summary information is determined by the ratio of the music feature tags corresponding to the music feature icon. This ratio indicates the proportion of music listened to by the user under the music feature tag to the total music listened to by the user, and can also indicate the degree of match between the music feature tag and the user. It can be understood that the largest music feature icon in the music summary information represents the music feature tag with the highest degree of match with the user, while the other music feature icons represent music feature tags with a lower degree of match with the user. This makes it easier for the user to distinguish the primary and secondary music feature tags in the music summary information.
[0160] Figure 5 A schematic diagram of music summary information is shown. When the user uses the preset display function, music summary information can be generated every week based on the music interaction information in the most recent week. Prompt information about the music summary information can be displayed on the user's personal homepage or other pages, such as the "Generate your music color DNA report for this week" entrance. After the user clicks the entrance, the report page is displayed. Figure 5 The music summary information shown. This music summary information includes music feature icons in the form of color blocks. The main music feature icons can contain text information of music feature labels, and their size corresponds to the proportion of the music feature labels. This allows users to very intuitively see the color distribution of their music preferences and the main music feature labels.
[0161] In one embodiment, the interface processing method further comprises the following steps:
[0162] In response to a trigger operation on any music feature icon, the details page of the music feature icon is displayed. The details page is used to display specific relevant information of the music feature tag, which may include one or more of the following information:
[0163] The music feature label corresponding to the music feature icon is the text information of the music feature label.
[0164] The explanatory information of the music feature tag corresponding to the music feature icon is used to interpret the meaning and related imagery of the music feature tag.
[0165] The ratio of the music feature tags corresponding to the music feature icons indicates the ratio of the music listened to by the user under the music feature tags to the total music listened to by the user.
[0166] The music style under the music feature tag corresponding to the music feature icon may be a preferred music style corresponding to the keyword in the music feature tag.
[0167] Information about the music that has been listened to under the music feature tag corresponding to the music feature icon, such as a list of music that the user has listened to in the past week that matches the music feature tag. If there are a large number of songs that have been listened to under the music feature tag, only the top 10 songs that the user has listened to the most (including the longest listening time, the most listening times, etc.) can be displayed.
[0168] Recommendation information for users, such as playlists recommended to users, or playlists recommended to users that match music feature tags.
[0169] Figure 6 A schematic diagram of the details page is shown. Figure 5 Click the color block of "Late Night Philosopher" in the music summary information to trigger the display Figure 6 The details page includes information such as music feature tags, explanations of the music feature tags, the proportion of music feature tags, the music styles under the music feature tags, and a list of music that has been listened to.
[0170] In one embodiment, the interface processing method further comprises the following steps:
[0171] In response to a sharing operation on the detail page, sharing information is generated according to the detail page.
[0172] Among them, the details page can provide sharing controls, such as Figure 6 As shown in the sharing control 601, users can use the sharing control 601 to perform sharing operations and specify the sharing path (such as which social platform to share to). In response to the sharing operation, sharing information about the details page is generated, which can be information in the form of pictures, posters, links, H5 pages (HyperText Markup Language 5, Hypertext Markup Language 5), etc. For example, a high-definition picture can be generated based on the graphic and text information in the details page as sharing information, which is convenient for users to share to any channel. Satisfy the sharing needs of users.
[0173] In one embodiment, a recommendation jump control is provided on the details page, and the method further includes:
[0174] In response to a trigger operation on the recommendation jump control, recommendation information for the user is displayed.
[0175] Among them, the triggering operation for the recommendation jump control can be single-click, double-click, long press, etc., and this disclosure does not limit the specific operation method. The recommendation information for the user can be music recommendation information, such as a playlist that meets the user's preferences. For example, refer to Figure 6 As shown, a recommendation jump control 602 is provided on the details page. When the user clicks the recommendation jump control 602, the user enters the second recommendation interface (which is the recommendation interface jumped from the music summary information and details page, different from the first recommendation interface mentioned above), which displays the playlist recommended for the user. This enables a quick jump from the details page of the music feature icon to the recommended information. Figure 7 A schematic diagram of a second music recommendation interface is shown, which can display a playlist recommended for the user.
[0176] In one embodiment, the interface processing method further comprises the following steps:
[0177] Generate recommendation information for users based on their music interaction information.
[0178] Among them, based on the user's music interaction information, the user's music preference can be determined, and then recommendation information for the user can be generated.
[0179] In one embodiment, the music interaction information includes music listening information. The above-mentioned method of generating recommendation information for a user based on the user's music interaction information includes the following steps:
[0180] Determining one or more of the user's first emotional characteristic, preferred color, and preferred music style based on the user's music listening information;
[0181] Recommendation information for the user is determined based on one or more of the user's first emotional characteristic, preferred color, and preferred music style.
[0182] The first emotional feature is an emotional feature that accounts for a relatively high proportion of the music that the user has listened to. For example, if the user often listens to cheerful music, the first emotional feature includes happiness.
[0183] In one embodiment, determining one or more of the user's first emotional characteristic, preferred color, and preferred music style based on the user's music listening information includes one or more of the following steps:
[0184] collecting statistics based on the user's music listening information on the theme color of the music listened to and / or the rhythm characteristics of the music listened to, and determining a first emotional characteristic based on the statistical results;
[0185] According to the user's music listening information, the theme colors of the music listened to are counted to obtain the preferred color;
[0186] According to the user's music listening information, the music style of the music listened to is counted to obtain the preferred music style.
[0187] The theme color and rhythm characteristics of the music the user has listened to can be mapped to emotions, such as red and fast rhythm representing passion and happiness, and blue and slow rhythm representing melancholy and calmness. The proportion of these emotions is calculated, and the emotion with the highest proportion is used as the first emotion feature.
[0188] In one embodiment, the first emotional feature may include a degree of matching between the user and one or more emotions. For example, the degree of matching between the user and the melancholic mood may be calculated, which is represented by a melancholic index. The proportion of cool-toned music and slow-tempo music (such as BPM<80) in the music listened to by the user may be calculated, and the two proportions may be combined, such as melancholic index = proportion of cool-toned music * 60% + proportion of slow-tempo music * 40%. The degree of matching between the user and the energetic mood may be calculated, which is represented by a vitality index. The proportion of warm-toned music and fast-tempo music (such as BPM>120) in the music listened to by the user may be calculated, and the two proportions may be combined to obtain a vitality index. The degree of matching between the user and the relaxed mood may be calculated, which is represented by a relaxation index. The proportion of neutral-toned music and moderate-tempo music (such as BPM between 80 and 100) in the music listened to by the user may be calculated, and the two proportions may be combined to obtain a relaxation index.
[0189] For the specific method of collecting statistics on preferred colors and preferred music styles based on the user's music listening information, please refer to the implementation method of generating music summary information, which will not be repeated here.
[0190] Recommendation information for the user is determined based on one or more of the first emotional characteristic, preferred color, and preferred music style. For example, music matching the first emotional characteristic, music matching the preferred color, and music matching the preferred music style may be recommended. Alternatively, music matching multiple of the first emotional characteristic, preferred color, and preferred music style may be recommended.
[0191] In one embodiment, the recommendation information includes recommended music. The above-mentioned determination of the recommendation information for the user based on one or more of the user's first emotional characteristic, preferred color, and preferred music style includes the following steps:
[0192] Determining a first recommended music that matches a first emotional characteristic, and determining a second recommended music that matches a second emotional characteristic; the second emotional characteristic is different from the first emotional characteristic;
[0193] A recommended music set is generated that transitions from the first recommended music to the second recommended music.
[0194] The second emotional characteristic can be any emotional characteristic different from the first emotional characteristic. This generates a recommended music collection that creates an emotional transition, with an emotional transition effect from the first emotional characteristic to the second emotional characteristic, guiding the user to gradually shift their emotions. For example, the second emotional characteristic and the first emotional characteristic are complementary. This allows the user to experience an emotional transition from the first emotional characteristic to the complementary second emotional characteristic when listening to the recommended music collection, enhancing the user experience.
[0195] refer to Figure 7 As shown, in the second music recommendation interface, a recommended playlist with emotional transition effects can be displayed, and the playlist name is "From Midnight Blue to Sunrise Yellow". When the user clicks the play control next to the playlist name, the entire playlist is triggered to play.
[0196] The following example illustrates generating a recommended music collection. If, among the music a user listened to this week, music with blue tones accounted for 65% and slow love songs accounted for 50%, it can be calculated that the user's depression index is high. The first emotional characteristic is determined to be hesitation, and the second emotional characteristic is brightness. Music that matches melancholy, such as soothing songs, is selected, and music that matches brighter emotions, such as progressively brighter songs, is selected. This disclosure does not limit the proportions of these two types of music; for example, they could be 30% and 70%. This creates a "Midnight Blue to Sunrise Yellow Mood Transition Guide Playlist" for recommendation to the user. If, among the music a user listened to this week, music with red tones accounted for 70% and jazz music accounted for 80%, it can be calculated that the user's vitality index is high. The first emotional characteristic is determined to be vitality, and the second emotional characteristic is determined to be positivity. Music that matches vitality, such as high-energy electronic music, is selected, and music that matches positive emotions, such as pop songs with positive lyrics, is selected. These two types of music are combined to form a "From Romantic Red to Psychedelic Purple, a Continuous Love Guide Playlist" for recommendation to the user.
[0197] In one embodiment, multiple pieces of music that have a gradually decreasing degree of match with a first emotional characteristic and a gradually increasing degree of match with a second emotional characteristic can be obtained and arranged to generate a recommended music collection that transitions from the first emotional characteristic to the second emotional characteristic. For example, music that matches the first emotional characteristic and music that matches the second emotional characteristic can be obtained and arranged in order of decreasing match with the first emotional characteristic and increasing match with the second emotional characteristic to form the recommended music collection. This way, when users listen to the recommended music collection, their emotions change gradually rather than suddenly, resulting in a better experience.
[0198] In one embodiment, the recommendation information includes recommended music. The above-mentioned determination of the recommendation information for the user based on one or more of the user's first emotional characteristic, preferred color, and preferred music style includes the following steps:
[0199] The first emotional feature corresponds to the first priority, the preferred color corresponds to the second priority, and the preferred music style corresponds to the third priority. The recommended music for the user is determined based on the first emotional feature, the preferred color, and the preferred music style respectively; the first priority is higher than the second priority, and the second priority is higher than the third priority.
[0200] Among them, the first priority, the second priority, and the third priority can represent the proportion of the corresponding music in all the recommended music, or they can represent the priority of different factors considered when determining the recommended music. For example, the first priority is 60%, the second priority is 30%, and the third priority is 10%. The recommended music accounting for 60% can be determined based on the first emotional feature, the recommended music accounting for 30% can be determined based on the preferred color, and the recommended music accounting for 10% can be determined based on the preferred music style. It is also possible to calculate the first matching degree of each candidate music with the first emotional feature, the second matching degree with the preferred color, and the third matching degree with the preferred music style, and weight the first matching degree, the second matching degree, and the third matching degree with 60%, 30%, and 10% as weights to calculate the comprehensive matching degree between each candidate music and the user, and determine one or more recommended music based on the comprehensive matching degree.
[0201] The recommended music obtained in this way comprehensively considers three factors: the first emotional characteristics, preferred color, and preferred music style with different priorities. It can better match user preferences and needs and improve the recommendation hit rate.
[0202] In one embodiment, the method of determining recommendation information for a user based on one or more of the user's first emotional characteristic, preferred color, and preferred music style includes the following steps:
[0203] Candidate products that have a color matching relationship with the preferred color are recommended products to the user.
[0204] Color matching can mean that the color of a candidate product is the same as or similar to the user's preferred color. For example, if a user's preferred color is red, red-colored products, such as red headphones, can be recommended to the user. This can more easily meet the user's preferences, increase the recommendation hit rate, and reduce resource waste.
[0205] Exemplary devices
[0206] The interface processing device in the embodiment of the present disclosure is described below. Figure 8As shown, the interface processing device 800 may include the following modules:
[0207] Theme color determination module 810 is configured to determine the theme color of the currently playing music;
[0208] The interface color determination module 820 is configured to determine interface color information according to the theme color;
[0209] The interface display control module 830 is configured to display a preset interface based on the interface color information.
[0210] In one embodiment, determining the theme color of the currently playing music includes:
[0211] The theme color is determined according to the cover image corresponding to the currently playing music and / or the music style of the currently playing music.
[0212] In one embodiment, determining the theme color according to the cover image corresponding to the currently playing music and / or the music style of the currently playing music includes:
[0213] Extracting the main color of the cover image corresponding to the currently playing music;
[0214] Determine a corresponding music style color according to the music style of the currently playing music;
[0215] The theme color is determined according to the main color and the music style color.
[0216] In one embodiment, determining the interface color information according to the theme color includes:
[0217] A target color is determined according to the theme color, and the interface color information is determined according to the target color.
[0218] In one embodiment, determining the target color according to the theme color includes:
[0219] Determine one or more relevant colors based on one or more of current weather information, environmental information, and user status information;
[0220] The target color is determined according to the theme color and the related colors.
[0221] In one embodiment, determining the target color according to the theme color includes:
[0222] If there are multiple theme colors, the target color is determined according to the user's selection result among multiple candidate colors; the multiple candidate colors include the multiple theme colors.
[0223] In one embodiment, the plurality of candidate colors further include one or more related colors determined based on one or more of current weather information, environmental information, and user status information.
[0224] In one embodiment, determining the interface color information according to the target color includes:
[0225] At least one color parameter of the target color is adjusted to obtain the interface color information.
[0226] In one embodiment, the interface color information includes an interface background color; and adjusting at least one color parameter of the target color to obtain the interface color information includes:
[0227] Adjust at least one color parameter of the target color, including saturation, brightness, and transparency, to form a gradient interface background color.
[0228] In one embodiment, the interface color information includes the color of an interface icon; and adjusting at least one color parameter of the target color to obtain the interface color information includes:
[0229] The transparency of the target color is increased, or the saturation and / or brightness of the target color is adjusted and the transparency is increased to obtain the interface icon color.
[0230] In one embodiment, adjusting at least one color parameter of the target color to obtain the interface color information includes:
[0231] According to the adjustment parameters corresponding to the current display mode, at least one color parameter of the target color is adjusted to obtain the interface color information; wherein different display modes correspond to different adjustment parameters.
[0232] In one embodiment, the theme color of the currently playing music includes: theme colors corresponding to the respective music clips in the currently playing music;
[0233] The determining of the interface color information according to the theme color includes:
[0234] Determining interface color information corresponding to each music clip according to the theme color corresponding to each music clip;
[0235] The displaying of a preset interface based on the interface color information includes:
[0236] In response to playing any music segment in the currently playing music, the preset interface is displayed based on the interface color information corresponding to the any music segment.
[0237] In one embodiment, the preset interface includes one or more of the following:
[0238] The associated interface of the currently playing music;
[0239] Play the interface of the music application currently playing the music;
[0240] Play the desktop of the terminal device currently playing the music;
[0241] Play the lock screen interface of the terminal device currently playing music.
[0242] In one embodiment, the apparatus is further configured to:
[0243] Generate music summary information of the user based on the user's music interaction information.
[0244] In one embodiment, the music summary information includes music feature tags.
[0245] In one embodiment, the music interaction information includes music listening information; and generating the user's music summary information based on the user's music interaction information includes:
[0246] Based on the user's music listening information, statistics are collected on the theme colors of the music that has been listened to to obtain one or more preferred colors, and / or statistics are collected on the music styles of the music that has been listened to to obtain one or more preferred music styles;
[0247] A music feature tag of the user is obtained according to the one or more preferred colors and / or the one or more preferred music styles.
[0248] In one embodiment, obtaining the user's music preference tag based on the one or more preferred colors and / or the one or more preferred music styles includes:
[0249] Converting the preferred color into a corresponding first keyword, and converting the preferred music style into a corresponding second keyword;
[0250] The music feature tag of the user is obtained by combining the first keyword and the second keyword.
[0251] In one embodiment, obtaining the user's music feature tag by combining the first keyword and the second keyword includes:
[0252] combining the first keyword and the second keyword and adding additional keywords to obtain a music feature tag of the user;
[0253] The additional keywords include at least one of the following:
[0254] a third keyword corresponding to a user's music listening time period determined according to the user's music listening information;
[0255] a fourth keyword corresponding to the user's music listening environment determined according to the user's music listening information;
[0256] a fifth keyword corresponding to the user's music listening status determined according to the user's music listening information;
[0257] A sixth keyword corresponding to the artist preferred by the user is determined based on the user's music listening information.
[0258] In one embodiment, obtaining the user's music feature tag by combining the first keyword and the second keyword includes:
[0259] The first keyword and the second keyword are combined, and dynamic information is added according to the historical music feature tag of the user to obtain a music feature tag different from the historical music feature tag; the historical music feature tag is a previously generated music feature tag of the user.
[0260] In one embodiment, obtaining the user's music feature tag based on the one or more preferred colors and / or the one or more preferred music styles includes:
[0261] sorting the one or more preferred colors and sorting the one or more preferred music styles;
[0262] According to the order of the one or more preferred colors and the order of the one or more preferred music styles, the preferred colors and the preferred music styles are respectively combined to obtain one or more music feature tags.
[0263] In one embodiment, a music feature icon formed according to a feature color corresponding to the music feature tag is displayed in the music summary information, and the music feature icon is used to represent the music feature tag.
[0264] In one embodiment, the apparatus is further configured to:
[0265] In response to a triggering operation on any music feature icon, a details page of the music feature icon is displayed; the details page includes one or more of the following information:
[0266] A music feature label corresponding to any one of the music feature icons;
[0267] Explanation information of the music feature label corresponding to any of the music feature icons;
[0268] The ratio of the music feature labels corresponding to any of the music feature icons, which ratio indicates the ratio of the music listened to by the user under the music feature label to the total music listened to by the user;
[0269] The music style under the music feature label corresponding to any of the music feature icons;
[0270] Information about the music that has been listened to under the music feature label corresponding to any of the music feature icons;
[0271] Recommendation information for the user.
[0272] In one embodiment, the apparatus is further configured to:
[0273] In response to a sharing operation on the detail page, sharing information is generated according to the detail page.
[0274] In one embodiment, a recommendation jump control is provided in the details page, and the apparatus is further configured to:
[0275] In response to a triggering operation on the recommendation jump control, recommendation information for the user is displayed.
[0276] In one embodiment, the size of any music feature icon in the music summary information is determined according to the ratio of the music feature tag corresponding to any music feature icon, and the ratio indicates the ratio of the music listened by the user under the music feature tag to the total music listened by the user.
[0277] In one embodiment, displaying a preset interface based on the interface color information includes:
[0278] When the user uses the preset display function, displaying the preset interface based on the interface color information;
[0279] Generating the user's music summary information based on the user's music interaction information includes:
[0280] Generate music summary information of the user according to the music interaction information of the user when using the preset display function.
[0281] In one embodiment, the apparatus is further configured to:
[0282] Generate recommendation information for the user based on the user's music interaction information.
[0283] In one embodiment, the music interaction information includes music listening information; and generating recommendation information for the user based on the user's music interaction information includes:
[0284] determining one or more of the user's first emotional characteristic, preferred color, and preferred music style based on the user's music listening information;
[0285] Recommendation information for the user is determined based on one or more of the user's first emotional characteristic, preferred color, and preferred music style.
[0286] In one embodiment, determining one or more of the user's first emotional characteristic, preferred color, and preferred music style based on the user's music listening information includes one or more of the following steps:
[0287] collecting statistics on the theme color and / or rhythm features of the music listened to by the user based on the user's music listening information, and determining the first emotional feature based on the statistical results;
[0288] According to the user's music listening information, the theme colors of the music that has been listened to are counted to obtain the preferred color;
[0289] According to the user's music listening information, the music styles of the music listened to are counted to obtain the preferred music style.
[0290] In one embodiment, the recommendation information includes recommended music; and determining the recommendation information for the user based on one or more of the user's first emotional characteristic, preferred color, and preferred music style includes:
[0291] Determining a first recommended music that matches the first emotional characteristic, and determining a second recommended music that matches a second emotional characteristic; the second emotional characteristic is different from the first emotional characteristic;
[0292] A recommended music set transitioning from the first recommended music to the second recommended music is generated.
[0293] In one embodiment, the recommendation information includes recommended music; and determining the recommendation information for the user based on one or more of the user's first emotional characteristic, preferred color, and preferred music style includes:
[0294] The first emotional feature corresponds to a first priority, the preferred color corresponds to a second priority, and the preferred music style corresponds to a third priority. The recommended music for the user is determined based on the first emotional feature, the preferred color, and the preferred music style respectively; the first priority is higher than the second priority, and the second priority is higher than the third priority.
[0295] In one embodiment, determining recommendation information for the user based on one or more of the user's first emotional characteristic, preferred color, and preferred music style includes:
[0296] The candidate products having a color matching relationship with the preferred color are used as recommended products for the user.
[0297] In addition, other specific details of the embodiments of the present disclosure have been described in detail in the embodiments of the above method and will not be repeated here.
[0298] Exemplary Program Products
[0299] The computer program product in the embodiment of the present disclosure is described below. The computer program product includes a computer program, and when the computer program is executed by a processor, the above method of the present disclosure is implemented.
[0300] In one embodiment, a computer program product may be a tangible product, such as a computer-readable storage medium storing a computer program. The computer-readable storage medium may be based on electrical, magnetic, optical, electromagnetic, infrared, or other signals, and includes, but is not limited to, random access memory (RAM), read-only memory (ROM), magnetic tape, floppy disk, flash memory (Flash), hard disk drive (HDD), solid-state drive (SSD), and the like. Exemplarily, the computer program product may be a non-volatile storage medium storing the computer program, such as a read-only memory (ROM) or NAND flash memory.
[0301] In one embodiment, the computer program product may be an intangible product. For example, the computer program product may be a virtual digital product, such as an executable file or installation package containing a computer program.
[0302] The code of the computer program can be written in one or more programming languages. Programming languages include, but are not limited to, C, Java, C++, etc. The program code can be executed entirely on the user computing device, or partially on the user computing device, or as a separate software package, or partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device via any type of network, such as a local area network (LAN), a wide area network (WAN), etc., or can be connected to an external computing device (e.g., via an Internet connection provided by a carrier).
[0303] Computer programs can be carried or transmitted through electrical, magnetic, optical, electromagnetic, infrared, and other signals. Electronic devices can convert signals carrying computer programs into digital signals to run the computer programs. When a computer program runs on an electronic device, its code is used to enable the electronic device to execute (more specifically, it can enable the processor of the electronic device to execute) the method steps of various embodiments of the present disclosure, for example: step S210, determining the theme color of the currently playing music; step S220, determining the interface color information based on the theme color; step S230, displaying a preset interface based on the interface color information.
[0304] By executing the above steps through a computer program, the interface color information is determined based on the theme color of the current playback interface, and the color of the preset interface is then controlled to match the currently playing music. For example, if the theme color of the currently playing music is red, the preset interface is displayed with a red background. This effectively combines the user's visual experience of viewing the preset interface with the auditory experience of listening to the currently playing music, providing the user with a harmonious and unified audiovisual experience, and enhancing the user's sense of immersion and atmosphere when listening to music.
[0305] Exemplary electronic devices
[0306] The electronic device in the embodiment of the present disclosure is described below. The electronic device includes a processor and a memory, wherein the memory is used to store executable instructions of the processor. The processor is configured to execute the above-mentioned method of the present disclosure by executing the executable instructions.
[0307] refer to Figure 9 An electronic device according to an embodiment of the present disclosure will be exemplified. Figure 9 The electronic device 900 shown is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0308] like Figure 9 As shown, electronic device 900 is presented in the form of a general-purpose computing device. Components of electronic device 900 may include, but are not limited to, a processor 910, a memory 920, a bus 930 connecting various system components (including the memory 920 and the processor 910), an I / O (input / output) interface 940, a network adapter 950, a display 960, and an audio unit 970.
[0309] Among them, the memory 920 stores program code, which can be executed by the processor 910, so that the processor 910 executes the method steps of the embodiment of the present disclosure, for example: step S210, determining the theme color of the currently playing music; step S220, determining the interface color information based on the theme color; step S230, displaying the preset interface based on the interface color information.
[0310] By executing the above steps, processor 910 determines the interface color information based on the theme color of the current playback interface, and then controls the color of the preset interface to match the currently playing music. For example, if the theme color of the currently playing music is red, the preset interface is displayed with a red background. This effectively combines the user's visual experience of viewing the preset interface with the auditory experience of listening to the currently playing music, giving the user a harmonious and unified audiovisual experience, enhancing the user's sense of immersion and atmosphere when listening to music.
[0311] The memory 920 may include volatile memory, such as random access memory (RAM) 921 and / or cache unit 922, and may also include non-volatile memory, such as read-only memory (ROM) 923. The memory 920 may also include one or more program modules 924. Such program modules 924 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each of these examples, or some combination thereof, may include an implementation of a network environment. For example, the program modules 924 may include the modules described above.
[0312] The processor 910 may include processing units such as an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor and / or an NPU (Neural-Network Processing Unit).
[0313] The bus 930 is used to connect different parts of the electronic device 900 and may include a data bus, an address bus, a control bus, and the like.
[0314] The electronic device 900 may also communicate with one or more external devices 1000 (eg, a keyboard, a pointing device, a Bluetooth device, etc.), and such communication may be performed through the I / O interface 940 .
[0315] The electronic device 900 can also communicate with one or more networks through the network adapter 950. For example, the network adapter 950 can provide mobile communication solutions such as 3G / 4G / 5G, or wireless communication solutions such as wireless LAN, Bluetooth, near-field communication, etc. The network adapter 950 can communicate with other modules of the electronic device 900 through the bus 930.
[0316] The electronic device 900 may display a graphical user interface, such as a preset interface, through the display 960 .
[0317] The electronic device 900 can implement audio functions, such as playing music or other audio, through the audio unit 970.
[0318] Although not shown in the figure, other hardware and / or software modules may also be set in the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID (Redundant Arrays of Independent Disks) systems, tape drives, and data backup storage systems.
[0319] It should be noted that although several modules or submodules of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more units / modules described above can be embodied in a single unit / module. Conversely, the features and functions of a single unit / module described above can be further divided and embodied by multiple units / modules.
[0320] Furthermore, although the operations of the disclosed method are described in a particular order in the accompanying drawings, this does not require or imply that the operations must be performed in this particular order, or that all illustrated operations must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0321] Although the spirit and principles of the present disclosure have been described with reference to several specific embodiments, it should be understood that the present disclosure is not limited to the specific embodiments disclosed, and the division into various aspects does not mean that the features in these aspects cannot be combined to benefit. Such division is only for the convenience of expression. The present disclosure is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the appended claims.
Claims
1. An interface processing method, characterized in that: The method comprises: Determine the theme color of the currently playing music; Determine interface color information according to the theme color; A preset interface is displayed based on the interface color information.
2. The method according to claim 1, characterized in that Determining the theme color of the currently playing music includes: The theme color is determined according to the cover image corresponding to the currently playing music and / or the music style of the currently playing music.
3. The method according to claim 2, characterized in that The determining the theme color according to the cover image corresponding to the currently playing music and / or the music style of the currently playing music includes: Extracting the main color of the cover image corresponding to the currently playing music; Determine a corresponding music style color according to the music style of the currently playing music; The theme color is determined according to the main color and the music style color.
4. The method according to claim 1, wherein The determining of the interface color information according to the theme color includes: A target color is determined according to the theme color, and the interface color information is determined according to the target color.
5. The method according to claim 4, characterized in that Determining the target color according to the theme color includes: Determine one or more relevant colors based on one or more of current weather information, environmental information, and user status information; The target color is determined according to the theme color and the related colors.
6. The method according to claim 4, characterized in that Determining the target color according to the theme color includes: If there are multiple theme colors, the target color is determined according to the user's selection result among multiple candidate colors; the multiple candidate colors include the multiple theme colors.
7. The method according to claim 6, characterized in that The plurality of candidate colors also include one or more related colors determined according to one or more of current weather information, environmental information, and user status information.
8. An interface processing device, characterized in that: The device comprises: A theme color determination module is configured to determine the theme color of the currently playing music; An interface color determination module is configured to determine interface color information according to the theme color; The interface display control module is configured to display a preset interface based on the interface color information.
9. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: include: processor; as well as a memory for storing executable instructions of the processor; The processor is configured to perform the method according to any one of claims 1 to 7 by executing the executable instructions.
Citation Information
Patent Citations
Control method and apparatus of music player interface
CN105404491A
Image display method and device and electronic equipment
CN114020394A