WO2024077437A1 - Wallpaper display method and apparatus, and device, storage medium and program product - Google Patents

Wallpaper display method and apparatus, and device, storage medium and program product Download PDF

Info

Publication number
WO2024077437A1
WO2024077437A1 PCT/CN2022/124330 CN2022124330W WO2024077437A1 WO 2024077437 A1 WO2024077437 A1 WO 2024077437A1 CN 2022124330 W CN2022124330 W CN 2022124330W WO 2024077437 A1 WO2024077437 A1 WO 2024077437A1
Authority
WO
WIPO (PCT)
Prior art keywords
wallpaper
audio data
terminal
moment
frequency spectrum
Prior art date
Application number
PCT/CN2022/124330
Other languages
French (fr)
Chinese (zh)
Inventor
张夏风
崔兆坤
吴鸿琦
Original Assignee
广州酷狗计算机科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州酷狗计算机科技有限公司 filed Critical 广州酷狗计算机科技有限公司
Priority to PCT/CN2022/124330 priority Critical patent/WO2024077437A1/en
Priority to CN202280003533.8A priority patent/CN115997191A/en
Publication of WO2024077437A1 publication Critical patent/WO2024077437A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application relates to the field of user interfaces, and in particular to a wallpaper display method, device, equipment, storage medium and program product.
  • Wallpaper refers to the background image used on the computer desktop or mobile phone desktop. Users can beautify their terminals by selecting wallpapers of different styles. Wallpapers can be displayed in static or dynamic ways.
  • the wallpaper dynamically displayed on the terminal is realized by looping the playing of picture materials or video materials.
  • the display method of the dynamic display wallpaper in the related art is relatively simple.
  • Embodiments of the present application provide a wallpaper display method, device, equipment, storage medium, and program product.
  • a method for displaying wallpaper comprising:
  • the wallpaper is dynamically displayed based on the frequency spectrum characteristics of the audio data at different moments.
  • a wallpaper display device comprising:
  • a playback module used for playing audio data
  • the display module is used to dynamically display the wallpaper based on the frequency spectrum characteristics of the audio data at different times.
  • a computer device comprising: a processor and a memory, wherein at least one computer program is stored in the memory, and at least one computer program is loaded and executed by the processor to implement the above-mentioned wallpaper display method.
  • a computer-readable storage medium in which a computer program is stored.
  • the computer program is used to be executed by a processor to implement the wallpaper display method as described above.
  • a computer storage medium stores at least one computer program, and the at least one computer program is loaded and executed by a processor to implement the wallpaper display method as described above.
  • a computer program product which includes a computer program stored in a computer-readable storage medium; the computer program is read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device executes the wallpaper display method as described above.
  • the wallpaper is dynamically displayed based on the spectrum characteristics of the audio data at different times.
  • the present application provides a new wallpaper display method, which enables the wallpaper in the first terminal to be dynamically displayed in real time based on the spectrum characteristics, thereby realizing the visualization of audio.
  • FIG1 is a schematic diagram of a method for displaying wallpaper provided by an exemplary embodiment of the present application.
  • FIG2 is a schematic diagram of the architecture of a computer system provided by an exemplary embodiment of the present application.
  • FIG3 is a flowchart of a method for displaying wallpaper provided by an exemplary embodiment of the present application.
  • FIG4 is a flowchart of a method for displaying wallpaper provided by an exemplary embodiment of the present application.
  • FIG5 is a schematic diagram of a displayed wallpaper provided by an exemplary embodiment of the present application.
  • FIG6 is a schematic diagram of a displayed wallpaper provided by an exemplary embodiment of the present application.
  • FIG7 is a schematic diagram of a wallpaper display interface provided by an exemplary embodiment of the present application.
  • FIG8 is a flowchart of a method for displaying wallpaper provided by an exemplary embodiment of the present application.
  • FIG9 is a schematic structural diagram of a wallpaper display device provided by an exemplary embodiment of the present application.
  • FIG. 10 is a schematic diagram of the structure of a computer device according to an exemplary embodiment of the present application.
  • the embodiment of the present application provides a technical solution for a method for displaying wallpaper, which is executed by a first terminal.
  • a wallpaper display interface 10 for displaying wallpaper is displayed on the first terminal, and a "sky full of stars" wallpaper is displayed in the wallpaper display interface 10.
  • the first terminal dynamically displays the "sky full of stars” wallpaper based on the frequency spectrum characteristics of the audio data at different times. As shown in FIG. 1 (a), a wallpaper display interface 10 for displaying wallpaper is displayed on the first terminal, and a "sky full of stars" wallpaper is displayed in the wallpaper display interface 10.
  • the first terminal dynamically displays the "sky full of stars” wallpaper based on the frequency spectrum characteristics of the audio data at different times.
  • the "sky full of stars” wallpaper is dynamically displayed in real time based on the frequency spectrum characteristics of the audio data "Xiao Erlang", that is, the “sky full of stars” wallpaper is dynamically displayed following the music rhythm of the audio data "Xiao Erlang”.
  • the "sky full of stars” wallpaper includes at least one small star.
  • the star 20 after playing the audio data "Xiao Erlang", at a first moment, based on the frequency spectrum characteristics of the first moment, the star 20 explodes with a first special effect; at a second moment, based on the frequency spectrum characteristics of the second moment, the star 20 explodes with a second special effect; that is, the display effect of the star 20 explodes with different special effects according to the frequency spectrum characteristics at different moments, and finally presents the changing effect of the "sky full of stars" wallpaper as the audio data is dynamically displayed in real time.
  • the spectral characteristics refer to the number of times the sound vibrates per second.
  • the audio category refers to the category to which the audio data belongs.
  • the category of the audio data includes at least one of lyrical, rock, and nostalgic, but is not limited thereto, and the embodiments of the present application do not make specific limitations on this.
  • Dynamically displaying the wallpaper based on the playback progress refers to dynamically displaying the wallpaper based on the playback time of the audio data. For example, as the playback time of the audio data is longer, the dynamic display rhythm of the wallpaper is faster.
  • the first terminal plays audio data, and the first terminal obtains real-time data of the audio data.
  • the real-time data is extracted by the central processing unit (CPU) to obtain spectrum data corresponding to the audio data; then, the spectrum data is extracted by the graphics processing unit (GPU) to obtain spectrum features corresponding to the audio data; and the wallpaper is dynamically displayed in real time based on the spectrum features.
  • CPU central processing unit
  • GPU graphics processing unit
  • the first terminal plays audio data, and the first terminal obtains real-time data of the audio data at the i-th moment; performs category identification on the real-time data of the audio data at the i-th moment to obtain an audio category corresponding to the audio data; changes the display elements of the wallpaper based on the audio category; and dynamically displays the wallpaper in real time based on the changed display elements, where i is a positive integer.
  • the wallpaper when the audio data at the i-th moment has a lyrical rhythm, the wallpaper is dynamically displayed with a first rhythm; when the audio data at the i-th moment has a rock rhythm, the wallpaper is displayed with a second rhythm; wherein the second rhythm is faster than the first rhythm.
  • the first terminal plays audio data in the first terminal, and the first terminal dynamically displays wallpaper based on frequency spectrum characteristics of the audio data played in the first terminal at different times.
  • the wallpaper is dynamically displayed in the wallpaper display interface 10 based on the frequency spectrum characteristics of the audio data played in the first terminal at different times.
  • the second terminal plays audio data
  • the first terminal dynamically displays wallpaper in the first terminal based on frequency spectrum characteristics of the audio data played in the second terminal at different times.
  • the second terminal refers to a terminal device associated with the first terminal.
  • the first terminal when the second terminal plays audio data, the first terminal records the audio data through a recording device, and the first terminal dynamically displays wallpaper in real time based on frequency spectrum features corresponding to the audio data recorded by the recording device.
  • the method provided in this embodiment dynamically displays wallpapers by playing audio data based on the spectrum characteristics of the audio data at different times.
  • This application provides a new wallpaper display method, which enables wallpapers in the wallpaper display interface to be displayed dynamically in real time based on spectrum characteristics, realizes audio visualization, and improves user experience.
  • Fig. 2 shows a schematic diagram of the architecture of a computer system provided by an embodiment of the present application.
  • the computer system may include: a terminal 100 and a server 200.
  • the terminal 100 may be an electronic device such as a mobile phone, a tablet computer, a vehicle terminal (vehicle computer), a wearable device, a personal computer (PC), an intelligent voice interaction device, a smart home appliance, a vehicle terminal, an aircraft, an unmanned vending terminal, etc.
  • the terminal 100 may be installed with a client that runs a target application, and the target application is an application for displaying wallpapers.
  • the present application does not limit the form of the target application, including but not limited to an application (Application, App) installed in the terminal 100, a mini-program, etc., and may also be in the form of a web page.
  • Server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services, cloud database, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms.
  • Server 200 may be a backend server of the above-mentioned target application, used to provide backend services for the client of the target application.
  • cloud technology refers to a hosting technology that unifies hardware, software, network and other resources in a wide area network or local area network to realize data computing, storage, processing and sharing.
  • Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, which is used on demand and is flexible and convenient. Cloud computing technology will become an important support.
  • the background services of technical network systems require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the high development and application of the Internet industry, in the future, each item may have its own identification mark, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately. All kinds of industry data require strong system backing support, which can only be achieved through cloud computing.
  • the above-mentioned server can also be implemented as a node in a blockchain system.
  • Blockchain is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc.
  • Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block.
  • Blockchain can include the blockchain underlying platform, platform product service layer and application service layer.
  • the terminal 100 and the server 200 may communicate with each other via a network, such as a wired or wireless network.
  • the execution subject of each step may be a computer device, which refers to an electronic device with data calculation, processing and storage capabilities.
  • the wallpaper display method may be executed by the terminal 100 (such as the client of the target application installed and running in the terminal 100 executes the wallpaper display method), or the terminal 100 and the server 200 cooperate to execute it, and the present application does not limit this.
  • FIG3 is a flowchart of a method for displaying wallpaper provided by an exemplary embodiment of the present application.
  • the method may be executed by a first terminal.
  • the method includes:
  • Step 302 Play audio data.
  • the audio data is played in at least one of a music player, a mini-program, and a web page, but is not limited thereto and is not specifically limited in this embodiment of the present application.
  • the method of obtaining the audio data includes at least one of the following situations:
  • the first terminal records audio data.
  • the first terminal is a terminal that initiates audio recording.
  • the audio is recorded through the first terminal, and after the recording is completed, the audio data is stored.
  • Audio data is obtained from a stored database/music library, such as obtaining at least one audio data to be played from an audio platform database.
  • Step 304 Dynamically display wallpaper based on the frequency spectrum characteristics of the audio data at different times.
  • Wallpaper refers to the background image used in the terminal's user interface.
  • the spectrum feature refers to a physical quantity representing the acoustic characteristics of audio, and is one of the audio features.
  • the audio feature includes at least one of the spectrum feature, audio category, and playback progress, but is not limited thereto, and the embodiments of the present application do not limit this.
  • the first terminal dynamically displays the wallpaper based on the frequency spectrum characteristics of the audio data at different times, that is, the wallpaper uses the frequency spectrum characteristics of the audio data at different times as display parameters to dynamically display the wallpaper in real time.
  • the wallpaper displayed in the first terminal is displayed in real time and dynamically following the playing rhythm of the audio data.
  • Different songs correspond to different spectral characteristics, and the real-time dynamic display method of the wallpaper based on different spectral characteristics is also different.
  • the method provided in this embodiment dynamically displays wallpapers by playing audio data based on the spectrum characteristics of the audio data at different times.
  • This application provides a new wallpaper display method, which enables the wallpaper in the first terminal to be dynamically displayed in real time based on the spectrum characteristics, realizes the visualization of audio, and improves the user experience.
  • FIG4 is a flowchart of a method for displaying wallpaper provided by an exemplary embodiment of the present application.
  • the method may be executed by a first terminal.
  • the method includes:
  • Step 402 Play the audio data in the first terminal or the audio data in the second terminal.
  • playing audio data includes at least one of the following situations:
  • Playing audio data in a second terminal where the second terminal refers to a terminal device associated with the first terminal.
  • the mutual association relationship between the first terminal and the second terminal includes at least one of Bluetooth connection, sharing a WiFi, the audio data played in the second terminal is a favorite/collected song in the first terminal, and the distance between the first terminal and the second terminal is less than a distance threshold, but is not limited to this, and the embodiments of the present application do not make specific limitations on this.
  • Step 404 Dynamically display wallpaper based on the frequency spectrum characteristics of the audio data at different times.
  • the spectral characteristics refer to the number of times the sound vibrates per second.
  • the first terminal obtains real-time data of audio data at the i-th moment; the first terminal performs feature extraction on the real-time data of the audio data at the i-th moment to obtain frequency spectrum features of the audio data at the i-th moment; the first terminal generates a wallpaper at the i-th moment based on the frequency spectrum features at the i-th moment, where i is a positive integer.
  • the step of acquiring spectral features includes: the first terminal has a CPU and a GPU, and after the first terminal acquires the real-time data of the audio data at the i-th moment, the first terminal performs data extraction on the real-time data of the audio data at the i-th moment through the CPU to obtain the spectral data of the audio data at the i-th moment; the first terminal performs feature extraction on the spectral data at the i-th moment through the GPU to obtain the spectral features of the audio data at the i-th moment.
  • the CPU extracts real-time data of the audio data through Fourier transform to obtain frequency spectrum data of the audio data.
  • the first terminal models the display elements of the wallpaper at the i-th moment based on the spectral features at the i-th moment; the first terminal renders the wallpaper displayed at the i-th moment based on the display elements of the modeled wallpaper at the i-th moment.
  • the GPU when the GPU models the display elements of the wallpaper at the i-th moment through a modeling function, the GPU superimposes the spectral features at the i-th moment onto the input of the modeling function to obtain the display elements of the wallpaper at the i-th moment, thereby adding the spectral features to the display elements of the wallpaper in real time.
  • the modeling function includes at least one of a polynomial modeling function, an exponential modeling function, a circle and ellipse modeling function, and a Bezier modeling function, but is not limited thereto, and the embodiments of the present application do not make specific limitations on this.
  • Polynomial shaping functions are used to shape, tween, and ease information in the [0-1] range.
  • the Exponential Shaping Function is used to change the function from the first easing form to the second easing form in this exponential shaping function.
  • the circle and ellipse styling functions are used to ease in and out of the unit square.
  • the GPU models the display elements of the wallpaper through the modeling function at the first moment, it superimposes the spectral characteristics corresponding to the first moment as input to the display elements of the wallpaper constructed at the first moment, thereby superimposing the spectral characteristics to the display style of the wallpaper.
  • the first terminal realizes the visualization of the audio data by rendering and displaying the wallpaper based on the display elements of the modeled wallpaper at the current moment, thereby improving the interest of the music.
  • the CPU is only used to obtain real-time audio data, extract data from the real-time audio data, obtain the spectrum data of the audio data, and pass the spectrum data to the GPU.
  • the GPU is used to extract features from the acquired spectrum data, obtain the spectrum features of the audio data, model the display elements of the wallpaper based on the spectrum features (modeling process), and then render and color each pixel in the display elements obtained by modeling, and finally present a wallpaper with spectrum features.
  • the process of modeling the display elements of the wallpaper based on spectral features is run in the CPU, that is, the modeling process is run in the CPU, the CPU needs to calculate 480,000 pixels in sequence, and the serial processing capability of the CPU will make the CPU's operation capability poor and prone to jamming.
  • the process of modeling the display elements of the wallpaper based on spectral features is migrated to the GPU for execution, giving full play to the parallel computing capability of the GPU, and can process all pixels on a frame at the same time, that is, can process 480,000 pixels in parallel, thereby improving the efficiency of audio data visualization.
  • the display elements of the wallpaper include at least one of hue, saturation value, brightness value, fluctuation rate, fluctuation frequency, and motion trajectory, but are not limited thereto and are not specifically limited in the embodiments of the present application.
  • a “sky full of stars” wallpaper is displayed on the first terminal.
  • the “sky full of stars” wallpaper displayed on the first terminal is in a static state or a regularly flowing state.
  • the “sky full of stars” wallpaper displayed in the first terminal is dynamically displayed based on the frequency spectrum characteristics of the audio data “Xiao Erlang”, that is, the stars in the “sky full of stars” wallpaper change their shape according to the frequency spectrum characteristics of the audio data “Xiao Erlang”, presenting a “fireworks shape”.
  • the size or brightness of the “fireworks-shaped” stars changes with the rhythm of the audio data “Xiao Erlang”, thereby visualizing the audio and allowing the user to always perceive the rhythm and dynamics of the audio data, thereby improving the user experience.
  • the first terminal dynamically displays the wallpaper in real time based on the audio category of the audio data.
  • the first terminal obtains real-time data of audio data at the i-th moment; the first terminal performs category recognition on the real-time data of the audio data at the i-th moment to obtain the audio category of the audio data at the i-th moment; and dynamically displays wallpaper in real time based on the audio category at the i-th moment.
  • the first terminal changes the display elements of the wallpaper based on the audio category at the i-th moment; the first terminal dynamically displays the wallpaper in real time based on the changed display elements.
  • the display position of the wallpaper displayed in real time and dynamically based on the spectral characteristics of the audio data is displayed on at least one of the terminal's desktop, lock screen interface, floating window, and widgets on the interface, but is not limited to this.
  • the embodiments of the present application do not make specific limitations on this.
  • the first terminal dynamically displays the wallpaper in real time based on the playback progress of the audio data.
  • Dynamically displaying wallpaper based on playback progress refers to dynamically displaying wallpaper in real time based on the playback time of audio data.
  • the dynamic display rhythm of the wallpaper is faster; or, as the playing time of the audio data is longer, the dynamic display rhythm of the wallpaper is slower.
  • the audio data in the first terminal is played; and the wallpaper is dynamically displayed based on the frequency spectrum characteristics of the audio data played in the first terminal at different times.
  • the first terminal plays audio data in the first terminal, and the first terminal dynamically displays wallpaper based on frequency spectrum characteristics of the audio data played in the first terminal at different times.
  • the first terminal dynamically displays wallpaper based on frequency spectrum characteristics of the audio data played in the first terminal at different times.
  • audio data in the second terminal is played, and based on frequency spectrum characteristics of the audio data played in the second terminal at different times, wallpaper is dynamically displayed in the first terminal.
  • the second terminal plays audio data
  • the first terminal dynamically displays wallpaper in the first terminal based on the frequency spectrum characteristics of the audio data played in the second terminal at different times.
  • the first terminal when the second terminal plays audio data, the first terminal records the audio data through a recording device, and the first terminal dynamically displays wallpaper in real time based on frequency spectrum features corresponding to the audio data recorded by the recording device.
  • a schematic diagram of a wallpaper is shown in the first terminal in the form of a pendant or a floating window.
  • the floating window 601 as an example, when no audio data is played, the "sky full of stars" wallpaper displayed on the floating window 601 in the first terminal is in a static state or a regularly flowing state.
  • the "sky full of stars” wallpaper displayed in the floating window 601 is dynamically displayed based on the frequency spectrum characteristics of the audio data "Xiao Erlang", that is, the stars in the “sky full of stars” wallpaper change the shape of the stars according to the frequency spectrum characteristics of the audio data "Xiao Erlang", presenting a "fireworks shape", and at the same time, the size or brightness of the "fireworks-shaped” stars changes with the rhythm of the audio data "Xiao Erlang", thereby visualizing the audio, allowing the user to both hear and see the music, thereby improving the user experience.
  • audio data is played, and the first terminal dynamically displays wallpaper in real time based on frequency spectrum characteristics of the audio data and customized settings.
  • Custom settings refer to custom settings of display effects of display elements of the wallpaper based on the frequency spectrum characteristics of the audio data.
  • the jumping rate of the wallpaper is further improved to achieve better visual effects.
  • the first terminal dynamically displays display materials corresponding to the frequency spectrum characteristics in the wallpaper based on the frequency spectrum characteristics of the audio data at different moments.
  • the display materials displayed in the wallpaper include at least one of streamlines, light columns, light spots, stars, and spirals.
  • the spectral characteristics are bound to the stars, based on the spectral characteristics of the audio data at different times, the stars in the wallpaper change with the changes in the spectral characteristics of the audio data at different times.
  • the brightness of the stars in the wallpaper changes with the changes in the spectral characteristics of the audio data at different times.
  • the first terminal dynamically displays the wallpaper in real time based on the time, weather, geographic location and gyroscope data changes of the first terminal.
  • audio data is played, and the first terminal dynamically displays the wallpaper based on the frequency spectrum characteristics and weather element information of the audio data at different times, where the weather element information refers to the weather information at the geographical location of the first terminal.
  • the effect of the display elements of the wallpaper dynamically displayed in the first terminal based on the spectral characteristics of the audio data at different times is reduced by 20%; on a sunny day, the effect of the display elements of the wallpaper dynamically displayed in the first terminal based on the spectral characteristics of the audio data at different times is increased by 30%.
  • the audio data is played, and the first terminal dynamically displays a wallpaper based on the frequency spectrum characteristics and heart rate characteristics of the audio data at different times.
  • the heartbeat variation characteristics are obtained by monitoring a third terminal associated with the first terminal.
  • the first terminal is connected to the smart bracelet, and the first terminal dynamically displays wallpaper based on the frequency spectrum characteristics of the audio data at different times and the heart rate characteristics at the same time.
  • the effect of the display elements of the wallpaper that are dynamically displayed in the first terminal based on the spectral characteristics of the audio data at different times increases by 20%; when the user is more irritable and has a faster heartbeat, the effect of the display elements of the wallpaper that are dynamically displayed in the first terminal based on the spectral characteristics of the audio data at different times decreases by 10%.
  • the audio data is played, and the first terminal dynamically displays the wallpaper based on the frequency spectrum characteristics of the audio data at different moments and the change characteristics of the gyroscope data.
  • the gyroscope data change feature is used to indicate a position change of the first terminal.
  • the first terminal dynamically displays the wallpaper in real time based on the spectral characteristics of the audio data.
  • the display effect of the display elements on the left side of the wallpaper is stronger than the display effect of the display elements on the right side of the wallpaper.
  • the size of the stars on the left side of the wallpaper is larger than the size of the stars on the right side of the wallpaper.
  • FIG. 7 there is a schematic diagram of a wallpaper display interface.
  • a wallpaper selection interface displays many wallpapers in the selection interface.
  • the full-screen display style of the “streamlined” wallpaper is displayed in the terminal selection interface.
  • the “streamlined” wallpaper is dynamically displayed based on the frequency spectrum characteristics of the audio data at different times, so that the user can see the dynamic display wallpaper of the “streamlined” wallpaper.
  • FIG. 7 (b) there is a schematic diagram of the display effect of the wallpaper on the desktop, which provides a reference for the user by showing the effect of the “streamlined” wallpaper on the desktop.
  • the wallpaper is dynamically displayed.
  • the wallpaper includes cross-arranged streamline lines.
  • the streamline lines are dynamically displayed, that is, the light intensity and color of the streamline lines between any two nodes change with the spectral characteristics.
  • the color of the first streamline line 701 is red and the light intensity is 1 candela; at the second moment, based on the spectral characteristics of the second moment, the color of the first streamline line 701 changes to green and the light intensity changes to 1.5 candela; at the third moment, based on the spectral characteristics of the third moment, the color of the first streamline line 701 changes to cyan and the light intensity changes to 0.5 candela; that is, the color and light intensity of the first streamline line 701 present corresponding dynamic effects with the spectral characteristics at different times, and finally present the "streamline" wallpaper with the real-time dynamic display of audio data.
  • changing the color and light intensity of streamlines based on the change of spectral characteristics is only one of the ways.
  • the change of spectral characteristics can change at least one of the shapes, colors, brightness, moving speeds, and motion trajectories of the display elements in the wallpaper, but is not limited to this.
  • the embodiments of the present application do not make specific limitations on this.
  • the method provided in this embodiment plays audio data and dynamically displays wallpaper in real time based on the spectrum characteristics, audio category or playback progress of the audio data at different times.
  • This application provides a new wallpaper display method, which enables the wallpaper in the first terminal to be dynamically displayed in real time based on the spectrum characteristics, realizes the visualization of audio, and improves the user experience.
  • FIG8 is a flowchart of a method for displaying wallpaper provided by an exemplary embodiment of the present application.
  • the method may be executed by a first terminal.
  • the method includes:
  • Step 801 Play audio data.
  • the audio data is played in at least one of a music player, a mini-program, and a web page, but is not limited thereto and is not specifically limited in this embodiment of the present application.
  • Step 802 Acquire real-time audio data.
  • the first terminal obtains real-time data of the audio data at the current moment.
  • Step 803 extract the real-time data through Fourier transform to obtain spectrum data.
  • the first terminal includes a CPU and a GPU. After the first terminal obtains the real-time data of the audio data, the first terminal performs Fourier transformation and data extraction on the real-time data of the audio data through the CPU to obtain the spectrum data of the audio data at the i-th moment.
  • Step 804 Transmit spectrum data to the GPU.
  • the spectrum data of the audio data at the i-th moment is obtained, the spectrum data is transmitted to the GPU of the first terminal.
  • the CPU in the first terminal is only used to obtain real-time data of the audio data, perform data extraction on the real-time data of the audio data, obtain spectrum data of the audio data, and transmit the spectrum data to the GPU.
  • Step 805 extracting features from the spectrum data to obtain spectrum features.
  • the first terminal performs feature extraction on the spectrum data through the GPU to obtain spectrum features of the audio data.
  • Step 806 Modeling and coloring the wallpaper based on the spectrum characteristics.
  • the GPU of the first terminal models the display elements of the wallpaper at the i-th moment based on the spectral features at the i-th moment; after obtaining the display elements of the modeled wallpaper at the i-th moment, the display elements of the wallpaper are rendered and colored.
  • the GPU of the first terminal when modeling the display elements of the wallpaper through the modeling function, adds the frequency spectrum features at the i-th moment to the display elements of the wallpaper to obtain the display elements of the wallpaper at the i-th moment.
  • the GPU in the first terminal is used to model the display elements of the wallpaper based on the spectrum characteristics and render and color the modeled display elements.
  • the parallel processing capability of the GPU can process each pixel in the wallpaper in parallel, and perform different operations according to the different positions of the pixels on the wallpaper, greatly improving efficiency.
  • Step 807 Dynamically display the wallpaper.
  • the first terminal dynamically displays the wallpaper based on display elements of the wallpaper obtained by modeling at the current moment.
  • the method provided in this embodiment extracts data from the real-time data of the audio data by the CPU in the first terminal to obtain the spectrum data of the audio data; and extracts features from the spectrum data by the GPU in the first terminal to obtain the spectrum features of the audio data.
  • the wallpaper is dynamically displayed in real time based on the spectrum features of the audio data.
  • the present application provides a new method for displaying wallpapers, which enables the wallpapers in the first terminal to be dynamically displayed in real time based on the spectrum features, realizes the visualization of the audio, and improves the user experience.
  • FIG9 shows a schematic diagram of the structure of a wallpaper display device provided by an exemplary embodiment of the present application.
  • the device can be implemented as all or part of a computer device through software, hardware, or a combination of both.
  • the device includes:
  • Playing module 901 used for playing audio data
  • the display module 902 is used to dynamically display the wallpaper based on the frequency spectrum characteristics of the audio data at different times.
  • the display module 902 is also used to obtain real-time data of the audio data at the i-th moment; perform feature extraction on the real-time data at the i-th moment to obtain frequency spectrum features of the audio data at the current moment; and generate a wallpaper at the i-th moment based on the frequency spectrum features at the i-th moment, where i is a positive integer.
  • the display module 902 is further configured to extract data from the real-time data at the i-th moment through the CPU to obtain spectrum data of the audio data at the i-th moment;
  • the GPU performs feature extraction on the spectrum data at the i-th moment to obtain the spectrum features of the audio data at the i-th moment.
  • the display module 902 is further configured to model display elements of the wallpaper at the i-th moment based on the spectrum features at the i-th moment; and render and display the wallpaper based on the display elements of the wallpaper at the i-th moment obtained by the modeling.
  • the display module 902 is further used to superimpose the spectral features at the i-th moment onto the input of the modeling function when modeling the display elements of the wallpaper at the i-th moment through the modeling function to obtain the display elements of the wallpaper at the i-th moment.
  • the display element includes at least one of hue, saturation value, brightness value, fluctuation rate, fluctuation frequency, and motion trajectory.
  • the playing module 901 is further configured to play the audio data in the first terminal; or play the audio data in a second terminal, where the second terminal refers to a terminal device associated with the first terminal.
  • the display module 902 is further configured to dynamically display the wallpaper based on the frequency spectrum characteristics of the audio data played in the first terminal at different times.
  • the display module 902 is further configured to dynamically display the wallpaper in real time in the first terminal based on the frequency spectrum characteristics of the audio data played in the second terminal at different times.
  • the display module 902 is further configured to dynamically display the display material corresponding to the frequency spectrum feature in the wallpaper based on the frequency spectrum feature of the audio data at different moments.
  • the display module 902 is further used to dynamically display the wallpaper based on the frequency spectrum characteristics and weather element information of the audio data at different times, where the weather element information refers to the weather information at the geographical location of the first terminal.
  • the display module 902 is further used to dynamically display the wallpaper based on the frequency spectrum characteristics of the audio data at different times and the gyroscope data change characteristics, and the gyroscope data change characteristics are used to indicate the position change of the first terminal.
  • the display module 902 is also used to dynamically display the wallpaper based on the spectrum characteristics and heart rate characteristics of the audio data at different times, and the heart rate change characteristics are obtained by monitoring a third terminal associated with the first terminal.
  • FIG10 shows a block diagram of a computer device 1000 provided by an exemplary embodiment of the present application.
  • the computer device 1000 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV).
  • the computer device 1000 may also be called a user device, a portable terminal, or other names.
  • the computer device 1000 includes a processor 1001 and a memory 1002 .
  • the processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc.
  • the processor 1001 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array).
  • the processor 1001 may also include a main processor and a coprocessor.
  • the main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state.
  • the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen.
  • the processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
  • AI Artificial Intelligence
  • the memory 1002 may include one or more computer-readable storage media, which may be tangible and non-transitory.
  • the memory 1002 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices.
  • the non-transitory computer-readable storage medium in the memory 1002 is used to store at least one instruction, which is used to be executed by the processor 1001 to implement the wallpaper display method provided in the embodiment of the present application.
  • the computer device 1000 may further include: a peripheral device interface 1003 and at least one peripheral device.
  • the peripheral device includes: at least one of a radio frequency circuit 1004 , a touch display screen 1005 , a camera 1006 , an audio circuit 1007 and a power supply 1008 .
  • the peripheral device interface 1003 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 1001 and the memory 1002.
  • the processor 1001, the memory 1002, and the peripheral device interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral device interface 1003 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
  • the radio frequency circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals.
  • the radio frequency circuit 1004 communicates with the communication network and other communication devices through electromagnetic signals.
  • the radio frequency circuit 1004 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals.
  • the radio frequency circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc.
  • the radio frequency circuit 1004 can communicate with other terminals through at least one wireless communication protocol.
  • the wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and/or a WiFi (Wireless Fidelity) network.
  • the radio frequency circuit 1004 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
  • the touch display screen 1005 is used to display a UI (User Interface).
  • the UI may include graphics, text, icons, videos, and any combination thereof.
  • the touch display screen 1005 also has the ability to collect touch signals on the surface or above the surface of the touch display screen 1005.
  • the touch signal may be input as a control signal to the processor 1001 for processing.
  • the touch display screen 1005 is used to provide virtual buttons and/or virtual keyboards, also known as soft buttons and/or soft keyboards.
  • the touch display screen 1005 may be one, and the front panel of the computer device 1000 is set; in other embodiments, the touch display screen 1005 may be at least two, and they are respectively set on different surfaces of the computer device 1000 or are folded; in some embodiments, the touch display screen 1005 may be a flexible display screen, and is set on a curved surface or a folded surface of the computer device 1000. Even, the touch display screen 1005 may be set to a non-rectangular irregular shape, that is, a special-shaped screen.
  • the touch display screen 1005 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
  • the camera assembly 1006 is used to capture images or videos.
  • the camera assembly 1006 includes a front camera and a rear camera.
  • the front camera is used to realize video calls or selfies
  • the rear camera is used to realize photo or video shooting.
  • there are at least two rear cameras which are any one of a main camera, a depth of field camera, and a wide-angle camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, and the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting functions.
  • the camera assembly 1006 may also include a flash.
  • the flash can be a single-color temperature flash or a dual-color temperature flash.
  • a dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
  • the audio circuit 1007 is used to provide an audio interface between the user and the computer device 1000.
  • the audio circuit 1007 may include a microphone and a speaker.
  • the microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1001 for processing, or input them into the radio frequency circuit 1004 to achieve voice communication.
  • the microphone may also be an array microphone or an omnidirectional acquisition microphone.
  • the speaker is used to convert the electrical signal from the processor 1001 or the radio frequency circuit 1004 into sound waves.
  • the speaker may be a traditional film speaker or a piezoelectric ceramic speaker.
  • the speaker When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as distance measurement.
  • the audio circuit 1007 may also include a headphone jack.
  • the power supply 1008 is used to power various components in the computer device 1000.
  • the power supply 1008 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery.
  • the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery.
  • a wired rechargeable battery is a battery that is charged through a wired line
  • a wireless rechargeable battery is a battery that is charged through a wireless coil.
  • the rechargeable battery can also be used to support fast charging technology.
  • the computer device 1000 further includes one or more sensors 1009 , including but not limited to: an acceleration sensor 1010 , a gyroscope sensor 1011 , a pressure sensor 1012 , an optical sensor 1013 , and a proximity sensor 1014 .
  • sensors 1009 including but not limited to: an acceleration sensor 1010 , a gyroscope sensor 1011 , a pressure sensor 1012 , an optical sensor 1013 , and a proximity sensor 1014 .
  • the acceleration sensor 1010 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the computer device 1000.
  • the acceleration sensor 1010 can be used to detect the components of gravity acceleration on the three coordinate axes.
  • the processor 1001 can control the touch display screen 1005 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1010.
  • the acceleration sensor 1010 can also be used for collecting game or user motion data.
  • the gyro sensor 1011 can detect the body direction and rotation angle of the computer device 1000, and the gyro sensor 1011 can cooperate with the acceleration sensor 1010 to collect the user's 3D actions on the computer device 1000.
  • the processor 1001 can implement the following functions based on the data collected by the gyro sensor 1011: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
  • the pressure sensor 1012 can be set on the side frame of the computer device 1000 and/or the lower layer of the touch display screen 1005.
  • the pressure sensor 1012 can detect the user's grip signal of the computer device 1000, and perform left and right hand recognition or shortcut operation according to the grip signal.
  • the pressure sensor 1012 is set on the lower layer of the touch display screen 1005, it can control the operability controls on the UI interface according to the user's pressure operation on the touch display screen 1005.
  • the operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
  • the optical sensor 1013 is used to collect the ambient light intensity.
  • the processor 1001 can control the display brightness of the touch display screen 1005 according to the ambient light intensity collected by the optical sensor 1013. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1005 is reduced.
  • the processor 1001 can also dynamically adjust the shooting parameters of the camera assembly 1006 according to the ambient light intensity collected by the optical sensor 1013.
  • the proximity sensor 1014 also called a distance sensor, is usually arranged on the front of the computer device 1000.
  • the proximity sensor 1014 is used to collect the distance between the user and the front of the computer device 1000.
  • the processor 1001 controls the touch display screen 1005 to switch from the screen-on state to the screen-off state; when the proximity sensor 1014 detects that the distance between the user and the front of the computer device 1000 is gradually increasing, the processor 1001 controls the touch display screen 1005 to switch from the screen-off state to the screen-on state.
  • FIG. 10 does not limit the computer device 1000 , and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
  • An embodiment of the present application also provides a computer device, which includes: a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the wallpaper display method provided by the above-mentioned method embodiments.
  • An embodiment of the present application further provides a computer storage medium, in which at least one computer program is stored.
  • the at least one computer program is loaded and executed by a processor to implement the wallpaper display method provided by the above-mentioned method embodiments.
  • An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium; the computer program is read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device executes the wallpaper display method provided by the above-mentioned method embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention relates to the field of user interfaces. Disclosed are a wallpaper display method and apparatus, and a device, a storage medium and a program product. The wallpaper display method comprises: playing audio data (S302); and dynamically displaying a wallpaper on the basis of spectral features of the audio data at different moments (S304). By means of the display method, a wallpaper in a first terminal can be dynamically displayed in real time on the basis of the spectral features, thereby realizing the visualization of audio.

Description

壁纸的显示方法、装置、设备、存储介质及程序产品Wallpaper display method, device, equipment, storage medium and program product 技术领域Technical Field
本申请涉及用户界面领域,特别涉及一种壁纸的显示方法、装置、设备、存储介质及程序产品。The present application relates to the field of user interfaces, and in particular to a wallpaper display method, device, equipment, storage medium and program product.
背景技术Background technique
壁纸是指电脑桌面或者手机桌面所使用的背景图片。用户通过选择不同样式的壁纸来美化自己所拥有的终端。壁纸的显示方式包括静态显示和动态显示。Wallpaper refers to the background image used on the computer desktop or mobile phone desktop. Users can beautify their terminals by selecting wallpapers of different styles. Wallpapers can be displayed in static or dynamic ways.
相关技术中,在终端上动态显示的壁纸是通过循环播放图片素材或视频素材实现的。In the related art, the wallpaper dynamically displayed on the terminal is realized by looping the playing of picture materials or video materials.
但相关技术中的动态显示的壁纸的展示方式较为单一。However, the display method of the dynamic display wallpaper in the related art is relatively simple.
发明内容Summary of the invention
本申请实施例提供了一种壁纸的显示方法、装置、设备、存储介质及程序产品。Embodiments of the present application provide a wallpaper display method, device, equipment, storage medium, and program product.
根据本申请的一个方面,提供了一种壁纸的显示方法,所述方法包括:According to one aspect of the present application, a method for displaying wallpaper is provided, the method comprising:
播放音频数据;Play audio data;
基于所述音频数据在不同时刻的频谱特征,动态显示所述壁纸。The wallpaper is dynamically displayed based on the frequency spectrum characteristics of the audio data at different moments.
根据本申请的一个方面,提供了一种壁纸的显示装置,所述装置包括:According to one aspect of the present application, a wallpaper display device is provided, the device comprising:
播放模块,用于播放音频数据;A playback module, used for playing audio data;
显示模块,用于基于所述音频数据在不同时刻的频谱特征,动态显示所述壁纸。The display module is used to dynamically display the wallpaper based on the frequency spectrum characteristics of the audio data at different times.
根据本申请的一个方面,提供了一种计算机设备,所述计算机设备包括:处理器和存储器,所述存储器中存储有至少一条计算机程序,至少一条所述计算机程序由所述处理器加载并执行以实现上述的壁纸的显示方法。According to one aspect of the present application, a computer device is provided, comprising: a processor and a memory, wherein at least one computer program is stored in the memory, and at least one computer program is loaded and executed by the processor to implement the above-mentioned wallpaper display method.
根据本申请的一个方面,提供了一种计算机可读存储介质,所述计算机 可读存储介质中存储有计算机程序,所述计算机程序用于被处理器执行以实现如上所述的壁纸的显示方法。According to one aspect of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is used to be executed by a processor to implement the wallpaper display method as described above.
根据本申请的一个方面,提供了一种计算机存储介质,所述计算机可读存储介质中存储有至少一条计算机程序,至少一条计算机程序由处理器加载并执行以实现如上所述的壁纸的显示方法。According to one aspect of the present application, a computer storage medium is provided, wherein the computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded and executed by a processor to implement the wallpaper display method as described above.
根据本申请的一个方面,提供了一种计算机程序产品,所述计算机程序产品包括计算机程序,所述计算机程序存储在计算机可读存储介质中;所述计算机程序由计算机设备的处理器从所述计算机可读存储介质读取并执行,使得所述计算机设备执行如上所述的壁纸的显示方法。According to one aspect of the present application, a computer program product is provided, which includes a computer program stored in a computer-readable storage medium; the computer program is read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device executes the wallpaper display method as described above.
本申请实施例提供的技术方案至少包括如下有益效果:The technical solution provided by the embodiments of the present application includes at least the following beneficial effects:
通过播放音频数据,基于音频数据在不同时刻的频谱特征,动态显示壁纸。本申请提供了一种新的壁纸的显示方法,使得第一终端中的壁纸能够基于频谱特征实时动态显示,实现了音频的可视化。By playing audio data, the wallpaper is dynamically displayed based on the spectrum characteristics of the audio data at different times. The present application provides a new wallpaper display method, which enables the wallpaper in the first terminal to be dynamically displayed in real time based on the spectrum characteristics, thereby realizing the visualization of audio.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
图1是本申请一个示例性实施例提供的壁纸的显示方法的示意图;FIG1 is a schematic diagram of a method for displaying wallpaper provided by an exemplary embodiment of the present application;
图2是本申请一个示例性实施例提供的计算机系统的架构示意图;FIG2 is a schematic diagram of the architecture of a computer system provided by an exemplary embodiment of the present application;
图3是本申请一个示例性实施例提供的壁纸的显示方法的流程图;FIG3 is a flowchart of a method for displaying wallpaper provided by an exemplary embodiment of the present application;
图4是本申请一个示例性实施例提供的壁纸的显示方法的流程图;FIG4 is a flowchart of a method for displaying wallpaper provided by an exemplary embodiment of the present application;
图5是本申请一个示例性实施例提供的显示的壁纸的示意图;FIG5 is a schematic diagram of a displayed wallpaper provided by an exemplary embodiment of the present application;
图6是本申请一个示例性实施例提供的显示的壁纸的示意图;FIG6 is a schematic diagram of a displayed wallpaper provided by an exemplary embodiment of the present application;
图7是本申请一个示例性实施例提供的壁纸的显示界面的示意图;FIG7 is a schematic diagram of a wallpaper display interface provided by an exemplary embodiment of the present application;
图8是本申请一个示例性实施例提供的壁纸的显示方法的流程图;FIG8 is a flowchart of a method for displaying wallpaper provided by an exemplary embodiment of the present application;
图9是本申请一个示例性实施例提供的壁纸的显示装置的结构示意图;FIG9 is a schematic structural diagram of a wallpaper display device provided by an exemplary embodiment of the present application;
图10是本申请一个示例性实施例示出的计算机设备的结构示意图。FIG. 10 is a schematic diagram of the structure of a computer device according to an exemplary embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application more clear, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
本申请实施例提供了一种壁纸的显示方法的技术方案,该方法由第一终端执行。如图1中的(a)图所示,在第一终端上显示壁纸的壁纸显示界面10,在壁纸显示界面10中显示有“漫天繁星”壁纸。响应于音频数据的播放操作,第一终端基于音频数据在不同时刻的频谱特征,动态显示该“漫天繁星”壁纸,如图1中的(b)图所示,随着音频数据“小二郎”的播放,“漫天繁星”壁纸基于该音频数据“小二郎”的频谱特征实时动态显示,即,“漫天繁星”壁纸跟随着音频数据“小二郎”的音乐节奏动态显示。“漫天繁星”壁纸中包括至少一个小星星,以其中的一颗星星20为例,在播放音频数据“小二郎”后,在第一时刻时,基于第一时刻的频谱特征,星星20的以第一特效效果进行爆炸;在第二时刻时,基于第二时刻的频谱特征,星星20的以第二特效效果进行爆炸;即,星星20的显示效果随着不同时刻的频谱特征,以不同的特效效果进行爆炸,最终呈现出“漫天繁星”壁纸随着音频数据实时动态显示的变化效果。The embodiment of the present application provides a technical solution for a method for displaying wallpaper, which is executed by a first terminal. As shown in FIG. 1 (a), a wallpaper display interface 10 for displaying wallpaper is displayed on the first terminal, and a "sky full of stars" wallpaper is displayed in the wallpaper display interface 10. In response to the playback operation of the audio data, the first terminal dynamically displays the "sky full of stars" wallpaper based on the frequency spectrum characteristics of the audio data at different times. As shown in FIG. 1 (b), as the audio data "Xiao Erlang" is played, the "sky full of stars" wallpaper is dynamically displayed in real time based on the frequency spectrum characteristics of the audio data "Xiao Erlang", that is, the "sky full of stars" wallpaper is dynamically displayed following the music rhythm of the audio data "Xiao Erlang". The "sky full of stars" wallpaper includes at least one small star. Taking one of the stars 20 as an example, after playing the audio data "Xiao Erlang", at a first moment, based on the frequency spectrum characteristics of the first moment, the star 20 explodes with a first special effect; at a second moment, based on the frequency spectrum characteristics of the second moment, the star 20 explodes with a second special effect; that is, the display effect of the star 20 explodes with different special effects according to the frequency spectrum characteristics at different moments, and finally presents the changing effect of the "sky full of stars" wallpaper as the audio data is dynamically displayed in real time.
示例性地,在基于音频数据的频谱特征实时动态显示壁纸的情形之外还包括如下至少之一:Exemplarily, in addition to the case of dynamically displaying wallpaper in real time based on the frequency spectrum characteristics of audio data, at least one of the following is also included:
·基于音频数据的音频类别动态显示壁纸;Dynamically display wallpaper based on audio category of audio data;
·基于音频数据的播放进度动态显示壁纸。Dynamically display wallpaper based on the playback progress of audio data.
频谱特征是指声音在每秒内的震动频率次数。The spectral characteristics refer to the number of times the sound vibrates per second.
音频类别是指音频数据的归属类别。The audio category refers to the category to which the audio data belongs.
可选地,音频数据的类别包括抒情类、摇滚类、怀旧类中的至少一种,但不限于此,本申请实施例对此不作具体限定。Optionally, the category of the audio data includes at least one of lyrical, rock, and nostalgic, but is not limited thereto, and the embodiments of the present application do not make specific limitations on this.
基于播放进度动态显示壁纸是指基于音频数据的播放时间动态显示壁纸。例如,随着音频数据的播放时间越长,则壁纸的动态显示节奏越快。Dynamically displaying the wallpaper based on the playback progress refers to dynamically displaying the wallpaper based on the playback time of the audio data. For example, as the playback time of the audio data is longer, the dynamic display rhythm of the wallpaper is faster.
示例性地,第一终端播放音频数据,第一终端获取音频数据的实时数据。在获取实时数据后,通过中央处理器(Central Processing Unit,CPU)对实时数据进行数据提取,得到音频数据对应的频谱数据;接着通过图形处理器 (Graphics Processing Unit,GPU)对频谱数据进行特征提取,得到音频数据对应的频谱特征;基于频谱特征实时动态显示壁纸。Exemplarily, the first terminal plays audio data, and the first terminal obtains real-time data of the audio data. After obtaining the real-time data, the real-time data is extracted by the central processing unit (CPU) to obtain spectrum data corresponding to the audio data; then, the spectrum data is extracted by the graphics processing unit (GPU) to obtain spectrum features corresponding to the audio data; and the wallpaper is dynamically displayed in real time based on the spectrum features.
示例性地,第一终端播放音频数据,第一终端获取音频数据在第i时刻的实时数据;对音频数据在第i时刻的实时数据进行类别识别,得到音频数据对应的音频类别;基于音频类别改变壁纸的显示元素;基于改变后的显示元素实时动态显示壁纸,i为正整数。Exemplarily, the first terminal plays audio data, and the first terminal obtains real-time data of the audio data at the i-th moment; performs category identification on the real-time data of the audio data at the i-th moment to obtain an audio category corresponding to the audio data; changes the display elements of the wallpaper based on the audio category; and dynamically displays the wallpaper in real time based on the changed display elements, where i is a positive integer.
例如,在音频数据在第i时刻为抒情类节奏的情况下,以第一节奏动态显示壁纸;在音频数据在第i时刻为摇滚类节奏的情况下,以第二节奏显示壁纸;其中,第二节奏快于第一节奏。For example, when the audio data at the i-th moment has a lyrical rhythm, the wallpaper is dynamically displayed with a first rhythm; when the audio data at the i-th moment has a rock rhythm, the wallpaper is displayed with a second rhythm; wherein the second rhythm is faster than the first rhythm.
在一种可能的实现方式中,第一终端播放第一终端中的音频数据,第一终端基于第一终端中播放的音频数据在不同时刻的频谱特征,动态显示壁纸。In a possible implementation manner, the first terminal plays audio data in the first terminal, and the first terminal dynamically displays wallpaper based on frequency spectrum characteristics of the audio data played in the first terminal at different times.
例如,在播放第一终端中的音频数据的情况下,在壁纸显示界面10中基于第一终端中播放的音频数据在不同时刻的频谱特征,动态显示壁纸。For example, in the case of playing audio data in the first terminal, the wallpaper is dynamically displayed in the wallpaper display interface 10 based on the frequency spectrum characteristics of the audio data played in the first terminal at different times.
在一种可能的实现方式中,第二终端播放音频数据,第一终端基于第二终端中播放的音频数据在不同时刻的频谱特征,在第一终端中动态显示壁纸。In a possible implementation, the second terminal plays audio data, and the first terminal dynamically displays wallpaper in the first terminal based on frequency spectrum characteristics of the audio data played in the second terminal at different times.
其中,第二终端是指与第一终端相互关联的终端设备。The second terminal refers to a terminal device associated with the first terminal.
例如,在第二终端播放音频数据的情况下,第一终端通过录音设备录取该音频数据,第一终端基于录音设备录取到的音频数据对应的频谱特征实时动态显示壁纸。For example, when the second terminal plays audio data, the first terminal records the audio data through a recording device, and the first terminal dynamically displays wallpaper in real time based on frequency spectrum features corresponding to the audio data recorded by the recording device.
综上所述,本实施例提供的方法,通过播放音频数据,基于音频数据在不同时刻的频谱特征,动态显示壁纸。本申请提供了一种新的壁纸的显示方法,使得壁纸显示界面中的壁纸能够基于频谱特征实时动态显示,实现了音频的可视化,提升了用户体验。In summary, the method provided in this embodiment dynamically displays wallpapers by playing audio data based on the spectrum characteristics of the audio data at different times. This application provides a new wallpaper display method, which enables wallpapers in the wallpaper display interface to be displayed dynamically in real time based on spectrum characteristics, realizes audio visualization, and improves user experience.
图2示出了本申请一个实施例提供的计算机系统的架构示意图。该计算机系统可以包括:终端100和服务器200。Fig. 2 shows a schematic diagram of the architecture of a computer system provided by an embodiment of the present application. The computer system may include: a terminal 100 and a server 200.
终端100可以是诸如手机、平板电脑、车载终端(车机)、可穿戴设备、个人计算机(Personal Computer,PC)、智能语音交互设备、智能家电、车载终端、飞行器、无人售货终端等电子设备。终端100中可以安装运行目标应用程序的客户端,该目标应用程序是展示壁纸的应用程序。另外,本申请对 该目标应用程序的形式不作限定,包括但不限于安装在终端100中的应用程序(Application,App)、小程序等,还可以是网页形式。The terminal 100 may be an electronic device such as a mobile phone, a tablet computer, a vehicle terminal (vehicle computer), a wearable device, a personal computer (PC), an intelligent voice interaction device, a smart home appliance, a vehicle terminal, an aircraft, an unmanned vending terminal, etc. The terminal 100 may be installed with a client that runs a target application, and the target application is an application for displaying wallpapers. In addition, the present application does not limit the form of the target application, including but not limited to an application (Application, App) installed in the terminal 100, a mini-program, etc., and may also be in the form of a web page.
服务器200可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云计算服务的云服务器、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。服务器200可以是上述目标应用程序的后台服务器,用于为目标应用程序的客户端提供后台服务。 Server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services, cloud database, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms. Server 200 may be a backend server of the above-mentioned target application, used to provide backend services for the client of the target application.
其中,云技术(Cloud technology)是指在广域网或局域网内将硬件、软件、网络等系列资源统一起来,实现数据的计算、储存、处理和共享的一种托管技术。云技术基于云计算商业模式应用的网络技术、信息技术、整合技术、管理平台技术、应用技术等的总称,可以组成资源池,按需所用,灵活便利。云计算技术将变成重要支撑。技术网络系统的后台服务需要大量的计算、存储资源,如视频网站、图片类网站和更多的门户网站。伴随着互联网行业的高度发展和应用,将来每个物品都有可能存在自己的识别标志,都需要传输到后台系统进行逻辑处理,不同程度级别的数据将会分开处理,各类行业数据皆需要强大的系统后盾支撑,只能通过云计算来实现。Among them, cloud technology refers to a hosting technology that unifies hardware, software, network and other resources in a wide area network or local area network to realize data computing, storage, processing and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, which is used on demand and is flexible and convenient. Cloud computing technology will become an important support. The background services of technical network systems require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the high development and application of the Internet industry, in the future, each item may have its own identification mark, and all need to be transmitted to the background system for logical processing. Data of different levels will be processed separately. All kinds of industry data require strong system backing support, which can only be achieved through cloud computing.
在一些实施例中,上述服务器还可以实现为区块链系统中的节点。区块链(Blockchain)是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链,本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层。In some embodiments, the above-mentioned server can also be implemented as a node in a blockchain system. Blockchain is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the blockchain underlying platform, platform product service layer and application service layer.
终端100和服务器200之间可以通过网络进行通信,如有线或无线网络。The terminal 100 and the server 200 may communicate with each other via a network, such as a wired or wireless network.
本申请实施例提供的壁纸的显示方法,各步骤的执行主体可以是计算机设备,计算机设备是指具备数据计算、处理和存储能力的电子设备。以图2所示的方案实施环境为例,可以由终端100执行壁纸的显示方法(如终端100中安装运行的目标应用程序的客户端执行壁纸的显示方法),或者由终端100和服务器200交互配合执行,本申请对此不作限定。In the wallpaper display method provided in the embodiment of the present application, the execution subject of each step may be a computer device, which refers to an electronic device with data calculation, processing and storage capabilities. Taking the implementation environment of the solution shown in FIG2 as an example, the wallpaper display method may be executed by the terminal 100 (such as the client of the target application installed and running in the terminal 100 executes the wallpaper display method), or the terminal 100 and the server 200 cooperate to execute it, and the present application does not limit this.
图3是本申请一个示例性实施例提供的壁纸的显示方法的流程图。该方法可以由第一终端执行。该方法包括:FIG3 is a flowchart of a method for displaying wallpaper provided by an exemplary embodiment of the present application. The method may be executed by a first terminal. The method includes:
步骤302:播放音频数据。Step 302: Play audio data.
示例性地,音频数据的播放形式为通过音乐播放器、小程序、网页页面播放中的至少一种,但不限于此,本申请实施例对此不作具体限定。Exemplarily, the audio data is played in at least one of a music player, a mini-program, and a web page, but is not limited thereto and is not specifically limited in this embodiment of the present application.
其中,获取音频数据的方式包括如下情况中的至少一种:The method of obtaining the audio data includes at least one of the following situations:
1、第一终端录制音频数据,例如:第一终端为发起音频录制的终端,通过第一终端录制音频,并在录制结束后,将音频数据进行存储。1. The first terminal records audio data. For example, the first terminal is a terminal that initiates audio recording. The audio is recorded through the first terminal, and after the recording is completed, the audio data is stored.
2、音频数据从已存储的数据库/曲库中获取音频数据,如:在音频平台数据库中,获取至少一个待播放的音频数据。2. Audio data is obtained from a stored database/music library, such as obtaining at least one audio data to be played from an audio platform database.
值得注意的是,上述获取音频数据的方式仅为示意性的举例,本申请实施例对此不加以限定。It is worth noting that the above-mentioned method of obtaining audio data is only an illustrative example and is not limited to this in the embodiments of the present application.
步骤304:基于音频数据在不同时刻的频谱特征,动态显示壁纸。Step 304: Dynamically display wallpaper based on the frequency spectrum characteristics of the audio data at different times.
壁纸是指终端的用户界面中所使用的背景图片。Wallpaper refers to the background image used in the terminal's user interface.
频谱特征是指表示音频声学特性的物理量,是音频特征中的一种。示例性地,音频特征包括频谱特征、音频类别、播放进度中的至少一种,但不限于此,本申请实施例对此不加以限定。The spectrum feature refers to a physical quantity representing the acoustic characteristics of audio, and is one of the audio features. Exemplarily, the audio feature includes at least one of the spectrum feature, audio category, and playback progress, but is not limited thereto, and the embodiments of the present application do not limit this.
第一终端基于音频数据在不同时刻的频谱特征,动态显示壁纸,即,壁纸将音频数据中不同时刻的频谱特征作为显示参数,实时动态显示壁纸。The first terminal dynamically displays the wallpaper based on the frequency spectrum characteristics of the audio data at different times, that is, the wallpaper uses the frequency spectrum characteristics of the audio data at different times as display parameters to dynamically display the wallpaper in real time.
可以理解的是,在第一终端接收到音频数据后,在第一终端中显示的壁纸跟随该音频数据的播放节奏进行实时动态显示,不同的歌对应着不同的频谱特征,则,基于不同频谱特征的壁纸的实时动态显示方式也是不同的。It is understandable that after the first terminal receives the audio data, the wallpaper displayed in the first terminal is displayed in real time and dynamically following the playing rhythm of the audio data. Different songs correspond to different spectral characteristics, and the real-time dynamic display method of the wallpaper based on different spectral characteristics is also different.
综上所述,本实施例提供的方法,通过播放音频数据,基于音频数据在不同时刻的频谱特征,动态显示壁纸。本申请提供了一种新的壁纸的显示方法,使得第一终端中的壁纸能够基于频谱特征实时动态显示,实现了音频的可视化,提升了用户体验。In summary, the method provided in this embodiment dynamically displays wallpapers by playing audio data based on the spectrum characteristics of the audio data at different times. This application provides a new wallpaper display method, which enables the wallpaper in the first terminal to be dynamically displayed in real time based on the spectrum characteristics, realizes the visualization of audio, and improves the user experience.
图4是本申请一个示例性实施例提供的壁纸的显示方法的流程图。该方法可以由第一终端执行。该方法包括:FIG4 is a flowchart of a method for displaying wallpaper provided by an exemplary embodiment of the present application. The method may be executed by a first terminal. The method includes:
步骤402:播放第一终端中的音频数据或第二终端中的音频数据。Step 402: Play the audio data in the first terminal or the audio data in the second terminal.
示例性地,播放音频数据,包括如下情况中的至少一种:Exemplarily, playing audio data includes at least one of the following situations:
·播放第一终端中的音频数据;Playing audio data in the first terminal;
·播放第二终端中的音频数据,第二终端是指与第一终端相互关联的终端设备。Playing audio data in a second terminal, where the second terminal refers to a terminal device associated with the first terminal.
可选地,第一终端与第二终端之间的相互关联关系包括蓝牙连接、共用一个WiFi、第二终端中播放的音频数据是第一终端中的喜爱/收藏歌曲、第一终端与第二终端之间的距离小于距离阈值中的至少一种,但不限于此,本申请实施例对此不作具体限定。Optionally, the mutual association relationship between the first terminal and the second terminal includes at least one of Bluetooth connection, sharing a WiFi, the audio data played in the second terminal is a favorite/collected song in the first terminal, and the distance between the first terminal and the second terminal is less than a distance threshold, but is not limited to this, and the embodiments of the present application do not make specific limitations on this.
步骤404:基于音频数据在不同时刻的频谱特征,动态显示壁纸。Step 404: Dynamically display wallpaper based on the frequency spectrum characteristics of the audio data at different times.
频谱特征是指声音在每秒内的震动频率次数。The spectral characteristics refer to the number of times the sound vibrates per second.
示例性地,第一终端获取音频数据在第i时刻的实时数据;第一终端对第i时刻的音频数据的实时数据进行特征提取,得到音频数据在第i时刻的频谱特征;第一终端基于在第i时刻的频谱特征,生成第i时刻的壁纸,i为正整数。Exemplarily, the first terminal obtains real-time data of audio data at the i-th moment; the first terminal performs feature extraction on the real-time data of the audio data at the i-th moment to obtain frequency spectrum features of the audio data at the i-th moment; the first terminal generates a wallpaper at the i-th moment based on the frequency spectrum features at the i-th moment, where i is a positive integer.
示例性地,频谱特征的获取步骤包括:第一终端具有CPU和GPU,在第一终端获取音频数据在第i时刻的实时数据后,第一终端通过CPU对第i时刻的音频数据的实时数据进行数据提取,得到音频数据在第i时刻的频谱数据;第一终端通过GPU对第i时刻的频谱数据进行特征提取,得到音频数据在第i时刻的频谱特征。Exemplarily, the step of acquiring spectral features includes: the first terminal has a CPU and a GPU, and after the first terminal acquires the real-time data of the audio data at the i-th moment, the first terminal performs data extraction on the real-time data of the audio data at the i-th moment through the CPU to obtain the spectral data of the audio data at the i-th moment; the first terminal performs feature extraction on the spectral data at the i-th moment through the GPU to obtain the spectral features of the audio data at the i-th moment.
可选地,CPU通过傅立叶变换对音频数据的实时数据进行数据提取,得到音频数据的频谱数据。Optionally, the CPU extracts real-time data of the audio data through Fourier transform to obtain frequency spectrum data of the audio data.
示例性地,在获取音频数据的频谱特征后,第一终端基于在第i时刻频谱特征,建模壁纸在第i时刻的显示元素;第一终端基于建模得到的壁纸在第i时刻的显示元素,渲染显示在第i时刻的壁纸。Exemplarily, after acquiring the spectral features of the audio data, the first terminal models the display elements of the wallpaper at the i-th moment based on the spectral features at the i-th moment; the first terminal renders the wallpaper displayed at the i-th moment based on the display elements of the modeled wallpaper at the i-th moment.
可选地,在GPU通过造型函数建模第i时刻的壁纸的显示元素时,GPU将在第i时刻的频谱特征叠加至造型函数的输入量中,得到壁纸在第i时刻的显示元素,从而将频谱特征实时添加至壁纸的显示元素中。Optionally, when the GPU models the display elements of the wallpaper at the i-th moment through a modeling function, the GPU superimposes the spectral features at the i-th moment onto the input of the modeling function to obtain the display elements of the wallpaper at the i-th moment, thereby adding the spectral features to the display elements of the wallpaper in real time.
可选地,造型函数包括多项式造型函数、指数造型函数、圆与椭圆造型函数、贝塞尔造型函数中的至少一种,但不限于此,本申请实施例对此不作具体限定。Optionally, the modeling function includes at least one of a polynomial modeling function, an exponential modeling function, a circle and ellipse modeling function, and a Bezier modeling function, but is not limited thereto, and the embodiments of the present application do not make specific limitations on this.
多项式造型函数用于整形、补间和缓整[0-1]范围内的信息。Polynomial shaping functions are used to shape, tween, and ease information in the [0-1] range.
指数造型函数用于在这种指数整形函数中,将函数从第一缓动形式更改为第二缓动形式。The Exponential Shaping Function is used to change the function from the first easing form to the second easing form in this exponential shaping function.
圆与椭圆造型函数用于缓入或移出单位正方形。The circle and ellipse styling functions are used to ease in and out of the unit square.
例如,GPU在第一时刻通过造型函数建模壁纸的显示元素时,将在第一时刻对应的频谱特征作为输入量叠加至第一时刻构建的壁纸的显示元素中,从而将频谱特征叠加至壁纸的显示样式中,第一终端基于建模得到的壁纸在当前时刻的显示元素,通过渲染并显示壁纸,实现了音频数据的可视化,提高了音乐的趣味性。For example, when the GPU models the display elements of the wallpaper through the modeling function at the first moment, it superimposes the spectral characteristics corresponding to the first moment as input to the display elements of the wallpaper constructed at the first moment, thereby superimposing the spectral characteristics to the display style of the wallpaper. The first terminal realizes the visualization of the audio data by rendering and displaying the wallpaper based on the display elements of the modeled wallpaper at the current moment, thereby improving the interest of the music.
在壁纸的显示过程中,CPU仅用于获取音频数据的实时数据、对音频数据的实时数据进行数据提取,得到音频数据的频谱数据、并向GPU传递频谱数据。GPU则用于对获取的频谱数据进行特征提取,得到音频数据的频谱特征,基于频谱特征建模壁纸的显示元素(建模过程),之后,对建模得到的显示元素中的每一个像素点进行渲染着色,最终呈现出具有频谱特征的壁纸。通过利用GPU的并行运算能力在GPU中建模壁纸的显示元素,提升了音频可视化的效率。During the wallpaper display process, the CPU is only used to obtain real-time audio data, extract data from the real-time audio data, obtain the spectrum data of the audio data, and pass the spectrum data to the GPU. The GPU is used to extract features from the acquired spectrum data, obtain the spectrum features of the audio data, model the display elements of the wallpaper based on the spectrum features (modeling process), and then render and color each pixel in the display elements obtained by modeling, and finally present a wallpaper with spectrum features. By using the parallel computing power of the GPU to model the display elements of the wallpaper in the GPU, the efficiency of audio visualization is improved.
例如,每帧壁纸上需要处理480000个像素点。如果将基于频谱特征建模壁纸的显示元素的过程运行于CPU中,即,建模过程运行于CPU中,CPU需要依次对480000个像素点进行计算,CPU的串行处理能力会使得CPU的运行能力不佳,容易卡顿。本申请实施例中,将基于频谱特征建模壁纸的显示元素的过程(建模过程)迁移至GPU中运行,充分发挥GPU的并行运算能力,能够同时处理一帧上的所有像素点,即,能够并行处理480000个像素点,提升了音频数据可视化的效率。For example, 480,000 pixels need to be processed on each frame of wallpaper. If the process of modeling the display elements of the wallpaper based on spectral features is run in the CPU, that is, the modeling process is run in the CPU, the CPU needs to calculate 480,000 pixels in sequence, and the serial processing capability of the CPU will make the CPU's operation capability poor and prone to jamming. In an embodiment of the present application, the process of modeling the display elements of the wallpaper based on spectral features (modeling process) is migrated to the GPU for execution, giving full play to the parallel computing capability of the GPU, and can process all pixels on a frame at the same time, that is, can process 480,000 pixels in parallel, thereby improving the efficiency of audio data visualization.
可选地,壁纸的显示元素包括色度、饱和度值、亮度值、波动速率、波动频率、运动轨迹中的至少一种,但不限于此,本申请实施例对此不作具体限定。Optionally, the display elements of the wallpaper include at least one of hue, saturation value, brightness value, fluctuation rate, fluctuation frequency, and motion trajectory, but are not limited thereto and are not specifically limited in the embodiments of the present application.
例如,如图5所示出壁纸的示意图,在第一终端上显示有“漫天繁星”壁纸,在没有播放音频数据的情况下,第一终端上显示的“漫天繁星”壁纸处于静止状态,或规律性地流动状态,在播放音频数据“小二郎”后,第一终端中显示的“漫天繁星”壁纸基于该音频数据“小二郎”的频谱特征动态显示,即,“漫天繁星” 壁纸中的星星跟随着音频数据“小二郎”的频谱特征改变星星的形状,呈现“烟花状”,同时,随着音频数据“小二郎”的节奏变化改变“烟花状”星星的大小或亮度,从而使得音频可视化,让用户能够时刻感知音频数据的节奏动感,提升了用户体验。For example, as shown in a schematic diagram of a wallpaper in FIG5 , a “sky full of stars” wallpaper is displayed on the first terminal. When no audio data is played, the “sky full of stars” wallpaper displayed on the first terminal is in a static state or a regularly flowing state. After the audio data “Xiao Erlang” is played, the “sky full of stars” wallpaper displayed in the first terminal is dynamically displayed based on the frequency spectrum characteristics of the audio data “Xiao Erlang”, that is, the stars in the “sky full of stars” wallpaper change their shape according to the frequency spectrum characteristics of the audio data “Xiao Erlang”, presenting a “fireworks shape”. At the same time, the size or brightness of the “fireworks-shaped” stars changes with the rhythm of the audio data “Xiao Erlang”, thereby visualizing the audio and allowing the user to always perceive the rhythm and dynamics of the audio data, thereby improving the user experience.
在一种可能的实现方式中,第一终端基于音频数据的音频类别实时动态显示壁纸。In a possible implementation manner, the first terminal dynamically displays the wallpaper in real time based on the audio category of the audio data.
示例性地,第一终端获取音频数据在第i时刻的实时数据;第一终端对音频数据在第i时刻的实时数据进行类别识别,得到音频数据在第i时刻的音频类别;基于第i时刻的音频类别实时动态显示壁纸。Exemplarily, the first terminal obtains real-time data of audio data at the i-th moment; the first terminal performs category recognition on the real-time data of the audio data at the i-th moment to obtain the audio category of the audio data at the i-th moment; and dynamically displays wallpaper in real time based on the audio category at the i-th moment.
可选地,在第一终端得到音频数据在第i时刻的音频类别后,第一终端基于第i时刻的音频类别改变壁纸的显示元素;第一终端基于改变后的显示元素实时动态显示壁纸。Optionally, after the first terminal obtains the audio category of the audio data at the i-th moment, the first terminal changes the display elements of the wallpaper based on the audio category at the i-th moment; the first terminal dynamically displays the wallpaper in real time based on the changed display elements.
示例性地,基于音频数据的频谱特征实时动态显示的壁纸的显示位置显示于终端的桌面、锁屏界面、悬浮窗、界面上的挂件中的至少一种,但不限于此,本申请实施例对此不作具体限定。Exemplarily, the display position of the wallpaper displayed in real time and dynamically based on the spectral characteristics of the audio data is displayed on at least one of the terminal's desktop, lock screen interface, floating window, and widgets on the interface, but is not limited to this. The embodiments of the present application do not make specific limitations on this.
在一种可能的实现方式中,第一终端基于音频数据的播放进度实时动态显示壁纸。In a possible implementation manner, the first terminal dynamically displays the wallpaper in real time based on the playback progress of the audio data.
基于播放进度动态显示壁纸是指基于音频数据的播放时间实时动态显示壁纸。Dynamically displaying wallpaper based on playback progress refers to dynamically displaying wallpaper in real time based on the playback time of audio data.
例如,随着音频数据的播放时间越长,则壁纸的动态显示节奏越快;或,随着音频数据的播放时间越长,则壁纸的动态显示节奏越慢。For example, as the playing time of the audio data is longer, the dynamic display rhythm of the wallpaper is faster; or, as the playing time of the audio data is longer, the dynamic display rhythm of the wallpaper is slower.
在一种可能的实现方式中,播放第一终端中的所述音频数据;基于第一终端中播放的音频数据在不同时刻的频谱特征,动态显示壁纸。In a possible implementation, the audio data in the first terminal is played; and the wallpaper is dynamically displayed based on the frequency spectrum characteristics of the audio data played in the first terminal at different times.
示例性地,第一终端播放第一终端中的音频数据,第一终端基于第一终端中播放的音频数据在不同时刻的频谱特征,动态显示壁纸。Exemplarily, the first terminal plays audio data in the first terminal, and the first terminal dynamically displays wallpaper based on frequency spectrum characteristics of the audio data played in the first terminal at different times.
例如,在第一终端中的音乐播放器播放音频数据的情况下,第一终端基于第一终端中播放的音频数据在不同时刻的频谱特征,动态显示壁纸。For example, when a music player in the first terminal plays audio data, the first terminal dynamically displays wallpaper based on frequency spectrum characteristics of the audio data played in the first terminal at different times.
在一种可能的实现方式中,播放第二终端中的音频数据,基于第二终端中播放的音频数据在不同时刻的频谱特征,在第一终端中动态显示壁纸。In a possible implementation, audio data in the second terminal is played, and based on frequency spectrum characteristics of the audio data played in the second terminal at different times, wallpaper is dynamically displayed in the first terminal.
示例性地,第二终端播放音频数据,第一终端基于第二终端中播放的音 频数据在不同时刻的频谱特征,在第一终端中动态显示壁纸。Exemplarily, the second terminal plays audio data, and the first terminal dynamically displays wallpaper in the first terminal based on the frequency spectrum characteristics of the audio data played in the second terminal at different times.
例如,在第二终端播放音频数据的情况下,第一终端通过录音设备录取该音频数据,第一终端基于录音设备录取到的音频数据对应的频谱特征实时动态显示壁纸。For example, when the second terminal plays audio data, the first terminal records the audio data through a recording device, and the first terminal dynamically displays wallpaper in real time based on frequency spectrum features corresponding to the audio data recorded by the recording device.
示例性地,例如,如图6所示出壁纸的示意图,在第一终端中以挂件或悬浮窗的形式显示“漫天繁星”壁纸。以悬浮窗601为例,在没有播放音频数据的情况下,在第一终端中的悬浮窗601上显示的“漫天繁星”壁纸处于静止状态,或规律性地流动状态,在播放音频数据“小二郎”后,悬浮窗601中显示的“漫天繁星”壁纸基于该音频数据“小二郎”的频谱特征动态显示,即,“漫天繁星”壁纸中的星星跟随着音频数据“小二郎”的频谱特征改变星星的形状,呈现“烟花状”,同时,随着音频数据“小二郎”的节奏变化改变“烟花状”星星的大小或亮度,从而使得音频可视化,使得用户既能听到音乐又能看到音乐,提升了用户体验。Exemplarily, for example, as shown in FIG6 , a schematic diagram of a wallpaper is shown in the first terminal in the form of a pendant or a floating window. Taking the floating window 601 as an example, when no audio data is played, the "sky full of stars" wallpaper displayed on the floating window 601 in the first terminal is in a static state or a regularly flowing state. After the audio data "Xiao Erlang" is played, the "sky full of stars" wallpaper displayed in the floating window 601 is dynamically displayed based on the frequency spectrum characteristics of the audio data "Xiao Erlang", that is, the stars in the "sky full of stars" wallpaper change the shape of the stars according to the frequency spectrum characteristics of the audio data "Xiao Erlang", presenting a "fireworks shape", and at the same time, the size or brightness of the "fireworks-shaped" stars changes with the rhythm of the audio data "Xiao Erlang", thereby visualizing the audio, allowing the user to both hear and see the music, thereby improving the user experience.
在一种可能的实现方式中,播放音频数据,第一终端基于音频数据的频谱特征及自定义设置实时动态显示壁纸。In a possible implementation, audio data is played, and the first terminal dynamically displays wallpaper in real time based on frequency spectrum characteristics of the audio data and customized settings.
自定义设置是指在音频数据的频谱特征的基础上对壁纸的显示元素的显示效果进行自定义设置。Custom settings refer to custom settings of display effects of display elements of the wallpaper based on the frequency spectrum characteristics of the audio data.
例如,在音频数据的频谱特征的基础上对壁纸的跳动速率进一步提升,从而达到更优的视觉效果。For example, based on the spectral characteristics of audio data, the jumping rate of the wallpaper is further improved to achieve better visual effects.
在一种可能的实现方式中,第一终端基于音频数据在不同时刻的频谱特征,动态显示壁纸中与频谱特征对应的显示素材。In a possible implementation, the first terminal dynamically displays display materials corresponding to the frequency spectrum characteristics in the wallpaper based on the frequency spectrum characteristics of the audio data at different moments.
例如,在壁纸中显示的显示素材包括流线体、光柱、光点、星星、螺旋线中的至少一种,在频谱特征与星星绑定的情况下,基于音频数据在不同时刻的频谱特征,壁纸中的星星随着音频数据在不同时刻的频谱特征的变化而发生变化,比如,壁纸中的星星的亮度随着音频数据在不同时刻的频谱特征的变化而变化。For example, the display materials displayed in the wallpaper include at least one of streamlines, light columns, light spots, stars, and spirals. When the spectral characteristics are bound to the stars, based on the spectral characteristics of the audio data at different times, the stars in the wallpaper change with the changes in the spectral characteristics of the audio data at different times. For example, the brightness of the stars in the wallpaper changes with the changes in the spectral characteristics of the audio data at different times.
在一种可能的实现方式中,第一终端基于第一终端所处的时间、天气、地理位置及陀螺仪的数据变化实时动态显示壁纸。In a possible implementation, the first terminal dynamically displays the wallpaper in real time based on the time, weather, geographic location and gyroscope data changes of the first terminal.
可选地,播放音频数据,第一终端基于音频数据在不同时刻的频谱特征和天气元素信息,动态显示所述壁纸,天气元素信息是指第一终端所在地理 位置处的天气信息。Optionally, audio data is played, and the first terminal dynamically displays the wallpaper based on the frequency spectrum characteristics and weather element information of the audio data at different times, where the weather element information refers to the weather information at the geographical location of the first terminal.
比如,在阴天的情况下,第一终端中基于音频数据在不同时刻的频谱特征动态显示的壁纸的显示元素的效果减少百分之二十;在晴天的情况下,第一终端中基于音频数据在不同时刻的频谱特征动态显示的壁纸的显示元素的效果增加百分之三十。For example, on a cloudy day, the effect of the display elements of the wallpaper dynamically displayed in the first terminal based on the spectral characteristics of the audio data at different times is reduced by 20%; on a sunny day, the effect of the display elements of the wallpaper dynamically displayed in the first terminal based on the spectral characteristics of the audio data at different times is increased by 30%.
可选地,播放音频数据,第一终端基于音频数据在不同时刻的频谱特征和心跳频率特征,动态显示壁纸。Optionally, the audio data is played, and the first terminal dynamically displays a wallpaper based on the frequency spectrum characteristics and heart rate characteristics of the audio data at different times.
心跳变化特征是通过与第一终端关联的第三终端监测得到的。The heartbeat variation characteristics are obtained by monitoring a third terminal associated with the first terminal.
例如,以第三终端为智能手环为例,第一终端与智能手环相连接,第一终端基于音频数据在不同时刻的频谱特征和同一时刻下的心跳频率特征,动态显示壁纸。For example, taking the third terminal as a smart bracelet, the first terminal is connected to the smart bracelet, and the first terminal dynamically displays wallpaper based on the frequency spectrum characteristics of the audio data at different times and the heart rate characteristics at the same time.
比如,在用户较为高兴且心跳较快的情况下,第一终端中基于音频数据在不同时刻的频谱特征动态显示的壁纸的显示元素的效果增加百分之二十;在用户较为烦躁且心跳较快的情况下,第一终端中基于音频数据在不同时刻的频谱特征动态显示的壁纸的显示元素的效果减少百分之十。For example, when the user is happier and has a faster heartbeat, the effect of the display elements of the wallpaper that are dynamically displayed in the first terminal based on the spectral characteristics of the audio data at different times increases by 20%; when the user is more irritable and has a faster heartbeat, the effect of the display elements of the wallpaper that are dynamically displayed in the first terminal based on the spectral characteristics of the audio data at different times decreases by 10%.
可选地,播放音频数据,第一终端基于所述音频数据在不同时刻的频谱特征和陀螺仪数据变化特征,动态显示所述壁纸。Optionally, the audio data is played, and the first terminal dynamically displays the wallpaper based on the frequency spectrum characteristics of the audio data at different moments and the change characteristics of the gyroscope data.
陀螺仪数据变化特征用于指示第一终端的位置变化。The gyroscope data change feature is used to indicate a position change of the first terminal.
例如,在播放音频数据,第一终端基于音频数据的频谱特征实时动态显示壁纸,在手机向左偏移时,壁纸左侧的显示元素的显示效果强于壁纸右侧的显示元素的显示效果,例如,“漫天繁星”壁纸中的星星,壁纸左侧的星星的大小大于壁纸右侧的星星的大小。For example, when playing audio data, the first terminal dynamically displays the wallpaper in real time based on the spectral characteristics of the audio data. When the mobile phone shifts to the left, the display effect of the display elements on the left side of the wallpaper is stronger than the display effect of the display elements on the right side of the wallpaper. For example, in the "Starry Sky" wallpaper, the size of the stars on the left side of the wallpaper is larger than the size of the stars on the right side of the wallpaper.
示例性地,例如,如图7所示出壁纸的显示界面的示意图,如图7中的(a)图所示出的壁纸的选择界面,在选择界面中显示有众多壁纸,比如,在选中“流线型”壁纸后,在终端的选择界面中显示该“流线型”壁纸的满屏显示样式,在播放音频数据的情况下,基于音频数据在不同时刻的频谱特征,动态显示“流线型”壁纸,从而让用户能够看到“流线型”壁纸的动态显示壁纸。如图7中的(b)图所示出的壁纸在桌面的显示效果的示意图,通过展示“流线型”壁纸在桌面情况下的效果图,为用户提供参考。For example, as shown in FIG. 7 , there is a schematic diagram of a wallpaper display interface. As shown in FIG. 7 (a), a wallpaper selection interface displays many wallpapers in the selection interface. For example, after selecting the “streamlined” wallpaper, the full-screen display style of the “streamlined” wallpaper is displayed in the terminal selection interface. When playing audio data, the “streamlined” wallpaper is dynamically displayed based on the frequency spectrum characteristics of the audio data at different times, so that the user can see the dynamic display wallpaper of the “streamlined” wallpaper. As shown in FIG. 7 (b), there is a schematic diagram of the display effect of the wallpaper on the desktop, which provides a reference for the user by showing the effect of the “streamlined” wallpaper on the desktop.
在播放音频数据的情况下,基于音频数据在不同时刻的频谱特征,动态 显示壁纸。以图7中的“流线型”壁纸为例,壁纸中包括交叉排布的流线线条,在播放音频数据的情况下,基于音频数据在不同时刻的频谱特征,动态显示该流线线条,即,任意两节点之间的流线线条的光强度和颜色随着频谱特征发生变化。例如,以图7中的(a)图中的第一流线线条701为例,在第一时刻时,基于第一时刻的频谱特征,第一流线线条701的颜色为红色、光强度为1坎德拉;在第二时刻时,基于第二时刻的频谱特征,第一流线线条701的颜色变化为绿色、光强度变化为1.5坎德拉;在第三时刻时,基于第三时刻的频谱特征,第一流线线条701的颜色变化为青色、光强度变化为0.5坎德拉;即,第一流线线条701的颜色和光强度随着不同时刻的频谱特征,呈现对应的动态效果,最终呈现出“流线型”壁纸随着音频数据实时动态显示的变化效果。In the case of playing audio data, based on the spectral characteristics of the audio data at different times, the wallpaper is dynamically displayed. Taking the "streamline" wallpaper in Figure 7 as an example, the wallpaper includes cross-arranged streamline lines. In the case of playing audio data, based on the spectral characteristics of the audio data at different times, the streamline lines are dynamically displayed, that is, the light intensity and color of the streamline lines between any two nodes change with the spectral characteristics. For example, taking the first streamline line 701 in (a) of Figure 7 as an example, at the first moment, based on the spectral characteristics of the first moment, the color of the first streamline line 701 is red and the light intensity is 1 candela; at the second moment, based on the spectral characteristics of the second moment, the color of the first streamline line 701 changes to green and the light intensity changes to 1.5 candela; at the third moment, based on the spectral characteristics of the third moment, the color of the first streamline line 701 changes to cyan and the light intensity changes to 0.5 candela; that is, the color and light intensity of the first streamline line 701 present corresponding dynamic effects with the spectral characteristics at different times, and finally present the "streamline" wallpaper with the real-time dynamic display of audio data.
可以理解的是,基于频谱特征的变化方式改变流线线条的颜色和光强度只是其中的一种方式,基于频谱特征的变化方式可以改变壁纸中的显示元素的形状、颜色、亮度、移动速度、运动轨迹中的至少一种,但不限于此,本申请实施例对此不做具体限定。It is understandable that changing the color and light intensity of streamlines based on the change of spectral characteristics is only one of the ways. The change of spectral characteristics can change at least one of the shapes, colors, brightness, moving speeds, and motion trajectories of the display elements in the wallpaper, but is not limited to this. The embodiments of the present application do not make specific limitations on this.
综上所述,本实施例提供的方法,通过播放音频数据,基于音频数据不同时刻的的频谱特征、音频类别或播放进度实时动态显示壁纸。本申请提供了一种新的壁纸的显示方法,使得第一终端中的壁纸能够基于频谱特征实时动态显示,实现了音频的可视化,提升了用户体验。In summary, the method provided in this embodiment plays audio data and dynamically displays wallpaper in real time based on the spectrum characteristics, audio category or playback progress of the audio data at different times. This application provides a new wallpaper display method, which enables the wallpaper in the first terminal to be dynamically displayed in real time based on the spectrum characteristics, realizes the visualization of audio, and improves the user experience.
图8是本申请一个示例性实施例提供的壁纸的显示方法的流程图。该方法可以由第一终端执行。该方法包括:FIG8 is a flowchart of a method for displaying wallpaper provided by an exemplary embodiment of the present application. The method may be executed by a first terminal. The method includes:
步骤801:播放音频数据。Step 801: Play audio data.
示例性地,音频数据的播放形式为通过音乐播放器、小程序、网页页面播放中的至少一种,但不限于此,本申请实施例对此不作具体限定。Exemplarily, the audio data is played in at least one of a music player, a mini-program, and a web page, but is not limited thereto and is not specifically limited in this embodiment of the present application.
步骤802:获取音频数据的实时数据。Step 802: Acquire real-time audio data.
示例性地,在播放音频数据的情况下,第一终端获取音频数据在当前时刻的实时数据。Exemplarily, in the case of playing audio data, the first terminal obtains real-time data of the audio data at the current moment.
步骤803:通过傅立叶变化,对实时数据进行数据提取,得到频谱数据。Step 803: extract the real-time data through Fourier transform to obtain spectrum data.
示例性地,第一终端包括CPU和GPU。在第一终端获取音频数据的实时 数据后,第一终端通过CPU对音频数据的实时数据进行通过傅立叶变化并进行数据提取,得到音频数据在第i时刻的频谱数据。Exemplarily, the first terminal includes a CPU and a GPU. After the first terminal obtains the real-time data of the audio data, the first terminal performs Fourier transformation and data extraction on the real-time data of the audio data through the CPU to obtain the spectrum data of the audio data at the i-th moment.
步骤804:向GPU传输频谱数据。Step 804: Transmit spectrum data to the GPU.
示例性地,在得到音频数据在第i时刻的频谱数据后,向第一终端的GPU传输频谱数据。Exemplarily, after the spectrum data of the audio data at the i-th moment is obtained, the spectrum data is transmitted to the GPU of the first terminal.
第一终端中的CPU仅用于获取音频数据的实时数据、对音频数据的实时数据进行数据提取,得到音频数据的频谱数据及向GPU传输频谱数据。The CPU in the first terminal is only used to obtain real-time data of the audio data, perform data extraction on the real-time data of the audio data, obtain spectrum data of the audio data, and transmit the spectrum data to the GPU.
步骤805:对频谱数据进行特征提取,得到频谱特征。Step 805: extracting features from the spectrum data to obtain spectrum features.
示例性地,在第一终端的GPU接收到频谱数据后,第一终端通过GPU对频谱数据进行特征提取,得到音频数据的频谱特征。Exemplarily, after the GPU of the first terminal receives the spectrum data, the first terminal performs feature extraction on the spectrum data through the GPU to obtain spectrum features of the audio data.
步骤806:基于频谱特征对壁纸进行建模和着色。Step 806: Modeling and coloring the wallpaper based on the spectrum characteristics.
示例性地,在获取音频数据的频谱特征后,第一终端的GPU基于在第i时刻的频谱特征,建模壁纸在第i时刻的显示元素;在得到建模得到的壁纸在第i时刻的显示元素后,对壁纸的显示元素进行渲染着色。Exemplarily, after acquiring the spectral features of the audio data, the GPU of the first terminal models the display elements of the wallpaper at the i-th moment based on the spectral features at the i-th moment; after obtaining the display elements of the modeled wallpaper at the i-th moment, the display elements of the wallpaper are rendered and colored.
可选地,第一终端的GPU在通过造型函数建模壁纸的显示元素时,将在第i时刻的频谱特征添加至壁纸的显示元素中,得到壁纸在第i时刻的显示元素。Optionally, when modeling the display elements of the wallpaper through the modeling function, the GPU of the first terminal adds the frequency spectrum features at the i-th moment to the display elements of the wallpaper to obtain the display elements of the wallpaper at the i-th moment.
第一终端中的GPU用于基于频谱特征建模壁纸的显示元素并对建模得到的显示元素进行渲染和着色。GPU的并行处理能力能够对壁纸中的每个像素进行并行处理,根据像素在壁纸上的不同位置执行不同的操作,极大地提高了效率。The GPU in the first terminal is used to model the display elements of the wallpaper based on the spectrum characteristics and render and color the modeled display elements. The parallel processing capability of the GPU can process each pixel in the wallpaper in parallel, and perform different operations according to the different positions of the pixels on the wallpaper, greatly improving efficiency.
步骤807:动态显示壁纸。Step 807: Dynamically display the wallpaper.
示例性地,第一终端基于建模得到的壁纸在当前时刻的显示元素动态显示壁纸。Exemplarily, the first terminal dynamically displays the wallpaper based on display elements of the wallpaper obtained by modeling at the current moment.
综上所述,本实施例提供的方法,通过第一终端中的CPU对音频数据的实时数据进行数据提取,得到音频数据的频谱数据;通过第一终端中的GPU对频谱数据进行特征提取,得到音频数据的频谱特征。基于音频数据的频谱特征实时动态显示壁纸。本申请提供了一种新的壁纸的显示方法,使得第一终端中的壁纸能够基于频谱特征实时动态显示,实现了音频的可视化,提升了用户体验。In summary, the method provided in this embodiment extracts data from the real-time data of the audio data by the CPU in the first terminal to obtain the spectrum data of the audio data; and extracts features from the spectrum data by the GPU in the first terminal to obtain the spectrum features of the audio data. The wallpaper is dynamically displayed in real time based on the spectrum features of the audio data. The present application provides a new method for displaying wallpapers, which enables the wallpapers in the first terminal to be dynamically displayed in real time based on the spectrum features, realizes the visualization of the audio, and improves the user experience.
图9示出了本申请一个示例性实施例提供的壁纸的显示装置的结构示意图。该装置可以通过软件、硬件或者两者的结合实现成为计算机设备的全部或一部分,该装置包括:FIG9 shows a schematic diagram of the structure of a wallpaper display device provided by an exemplary embodiment of the present application. The device can be implemented as all or part of a computer device through software, hardware, or a combination of both. The device includes:
播放模块901,用于播放音频数据;Playing module 901, used for playing audio data;
显示模块902,用于基于所述音频数据在不同时刻的频谱特征,动态显示所述壁纸。The display module 902 is used to dynamically display the wallpaper based on the frequency spectrum characteristics of the audio data at different times.
在一种可能的实现方式中,显示模块902,还用于获取所述音频数据在第i时刻的实时数据;对所述第i时刻的的所述实时数据进行特征提取,得到所述音频数据在当前时刻的频谱特征;基于在第i时刻的所述频谱特征,生成所述第i时刻的壁纸,i为正整数。In a possible implementation, the display module 902 is also used to obtain real-time data of the audio data at the i-th moment; perform feature extraction on the real-time data at the i-th moment to obtain frequency spectrum features of the audio data at the current moment; and generate a wallpaper at the i-th moment based on the frequency spectrum features at the i-th moment, where i is a positive integer.
在一种可能的实现方式中,显示模块902,还用于通过所述CPU对所述第i时刻的所述实时数据进行数据提取,得到所述音频数据在第i时刻的频谱数据;In a possible implementation, the display module 902 is further configured to extract data from the real-time data at the i-th moment through the CPU to obtain spectrum data of the audio data at the i-th moment;
通过所述GPU对第i时刻的所述频谱数据进行特征提取,得到所述音频数据在第i时刻的所述频谱特征。The GPU performs feature extraction on the spectrum data at the i-th moment to obtain the spectrum features of the audio data at the i-th moment.
在一种可能的实现方式中,显示模块902,还用于基于在第i时刻所述频谱特征,建模所述壁纸在第i时刻的显示元素;基于建模得到的所述壁纸在第i时刻的显示元素,渲染显示所述壁纸。In a possible implementation, the display module 902 is further configured to model display elements of the wallpaper at the i-th moment based on the spectrum features at the i-th moment; and render and display the wallpaper based on the display elements of the wallpaper at the i-th moment obtained by the modeling.
在一种可能的实现方式中,显示模块902,还用于在通过造型函数建模第i时刻的所述壁纸的显示元素时,将在第i时刻的所述频谱特征叠加至所述造型函数的输入量中,得到所述壁纸在第i时刻的显示元素。In a possible implementation, the display module 902 is further used to superimpose the spectral features at the i-th moment onto the input of the modeling function when modeling the display elements of the wallpaper at the i-th moment through the modeling function to obtain the display elements of the wallpaper at the i-th moment.
示例性地,所述显示元素包括色度、饱和度值、亮度值、波动速率、波动频率、运动轨迹中的至少一种。Exemplarily, the display element includes at least one of hue, saturation value, brightness value, fluctuation rate, fluctuation frequency, and motion trajectory.
在一种可能的实现方式中,播放模块901,还用于播放所述第一终端中的所述音频数据;或,播放第二终端中的所述音频数据,所述第二终端是指与所述第一终端相互关联的终端设备。In a possible implementation, the playing module 901 is further configured to play the audio data in the first terminal; or play the audio data in a second terminal, where the second terminal refers to a terminal device associated with the first terminal.
在一种可能的实现方式中,显示模块902,还用于基于所述第一终端中播放的所述音频数据在不同时刻的所述频谱特征,动态显示所述壁纸。In a possible implementation, the display module 902 is further configured to dynamically display the wallpaper based on the frequency spectrum characteristics of the audio data played in the first terminal at different times.
在一种可能的实现方式中,显示模块902,还用于基于所述第二终端中播 放的所述音频数据在不同时刻的所述频谱特征,在所述第一终端中实时动态显示所述壁纸。In a possible implementation, the display module 902 is further configured to dynamically display the wallpaper in real time in the first terminal based on the frequency spectrum characteristics of the audio data played in the second terminal at different times.
在一种可能的实现方式中,显示模块902,还用于基于所述音频数据在不同时刻的所述频谱特征,动态显示所述壁纸中与所述频谱特征对应的所述显示素材。In a possible implementation, the display module 902 is further configured to dynamically display the display material corresponding to the frequency spectrum feature in the wallpaper based on the frequency spectrum feature of the audio data at different moments.
在一种可能的实现方式中,显示模块902,还用于基于所述音频数据在不同时刻的频谱特征和天气元素信息,动态显示所述壁纸,所述天气元素信息是指所述第一终端所在地理位置处的天气信息。In a possible implementation, the display module 902 is further used to dynamically display the wallpaper based on the frequency spectrum characteristics and weather element information of the audio data at different times, where the weather element information refers to the weather information at the geographical location of the first terminal.
在一种可能的实现方式中,显示模块902,还用于基于所述音频数据在不同时刻的频谱特征和陀螺仪数据变化特征,动态显示所述壁纸,所述陀螺仪数据变化特征用于指示所述第一终端的位置变化。In a possible implementation, the display module 902 is further used to dynamically display the wallpaper based on the frequency spectrum characteristics of the audio data at different times and the gyroscope data change characteristics, and the gyroscope data change characteristics are used to indicate the position change of the first terminal.
在一种可能的实现方式中,显示模块902,还用于基于所述音频数据在不同时刻的频谱特征和心跳频率特征,动态显示所述壁纸,所述心跳变化特征是通过与所述第一终端关联的第三终端监测得到的。In a possible implementation, the display module 902 is also used to dynamically display the wallpaper based on the spectrum characteristics and heart rate characteristics of the audio data at different times, and the heart rate change characteristics are obtained by monitoring a third terminal associated with the first terminal.
图10示出了本申请一个示例性实施例提供的计算机设备1000的结构框图。该计算机设备1000可以是便携式移动终端,比如:智能手机、平板电脑、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器。计算机设备1000还可能被称为用户设备、便携式终端等其他名称。FIG10 shows a block diagram of a computer device 1000 provided by an exemplary embodiment of the present application. The computer device 1000 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV). The computer device 1000 may also be called a user device, a portable terminal, or other names.
通常,计算机设备1000包括有:处理器1001和存储器1002。Typically, the computer device 1000 includes a processor 1001 and a memory 1002 .
处理器1001可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器1001可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器1001也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器1001可以在集成有GPU(Graphics Processing Unit, 图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器1001还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。The processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1001 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
存储器1002可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是有形的和非暂态的。存储器1002还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器1002中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器1001所执行以实现本申请实施例中提供的壁纸的显示方法。The memory 1002 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1002 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1002 is used to store at least one instruction, which is used to be executed by the processor 1001 to implement the wallpaper display method provided in the embodiment of the present application.
在一些实施例中,计算机设备1000还可选包括有:外围设备接口1003和至少一个外围设备。具体地,外围设备包括:射频电路1004、触摸显示屏1005、摄像头1006、音频电路1007和电源1008中的至少一种。In some embodiments, the computer device 1000 may further include: a peripheral device interface 1003 and at least one peripheral device. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1004 , a touch display screen 1005 , a camera 1006 , an audio circuit 1007 and a power supply 1008 .
外围设备接口1003可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器1001和存储器1002。在一些实施例中,处理器1001、存储器1002和外围设备接口1003被集成在同一芯片或电路板上;在一些其他实施例中,处理器1001、存储器1002和外围设备接口1003中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。The peripheral device interface 1003 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 1001 and the memory 1002. In some embodiments, the processor 1001, the memory 1002, and the peripheral device interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral device interface 1003 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
射频电路1004用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路1004通过电磁信号与通信网络以及其他通信设备进行通信。射频电路1004将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路1004包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等。射频电路1004可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:万维网、城域网、内联网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路1004还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本申请对此不加以限定。The radio frequency circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1004 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1004 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 1004 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and/or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1004 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
触摸显示屏1005用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。触摸显示屏1005还具有采集在触摸显示屏1005的表面或表面上方的触摸信号的能力。该触摸信号可以 作为控制信号输入至处理器1001进行处理。触摸显示屏1005用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,触摸显示屏1005可以为一个,设置计算机设备1000的前面板;在另一些实施例中,触摸显示屏1005可以为至少两个,分别设置在计算机设备1000的不同表面或呈折叠设计;在一些实施例中,触摸显示屏1005可以是柔性显示屏,设置在计算机设备1000的弯曲表面上或折叠面上。甚至,触摸显示屏1005还可以设置成非矩形的不规则图形,也即异形屏。触摸显示屏1005可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。The touch display screen 1005 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 1005 also has the ability to collect touch signals on the surface or above the surface of the touch display screen 1005. The touch signal may be input as a control signal to the processor 1001 for processing. The touch display screen 1005 is used to provide virtual buttons and/or virtual keyboards, also known as soft buttons and/or soft keyboards. In some embodiments, the touch display screen 1005 may be one, and the front panel of the computer device 1000 is set; in other embodiments, the touch display screen 1005 may be at least two, and they are respectively set on different surfaces of the computer device 1000 or are folded; in some embodiments, the touch display screen 1005 may be a flexible display screen, and is set on a curved surface or a folded surface of the computer device 1000. Even, the touch display screen 1005 may be set to a non-rectangular irregular shape, that is, a special-shaped screen. The touch display screen 1005 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
摄像头组件1006用于采集图像或视频。可选地,摄像头组件1006包括前置摄像头和后置摄像头。通常,前置摄像头用于实现视频通话或自拍,后置摄像头用于实现照片或视频的拍摄。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能,主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能。在一些实施例中,摄像头组件1006还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。The camera assembly 1006 is used to capture images or videos. Optionally, the camera assembly 1006 includes a front camera and a rear camera. Usually, the front camera is used to realize video calls or selfies, and the rear camera is used to realize photo or video shooting. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, and a wide-angle camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, and the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting functions. In some embodiments, the camera assembly 1006 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
音频电路1007用于提供用户和计算机设备1000之间的音频接口。音频电路1007可以包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器1001进行处理,或者输入至射频电路1004以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在计算机设备1000的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器1001或射频电路1004的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路1007还可以包括耳机插孔。The audio circuit 1007 is used to provide an audio interface between the user and the computer device 1000. The audio circuit 1007 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1001 for processing, or input them into the radio frequency circuit 1004 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the computer device 1000. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1001 or the radio frequency circuit 1004 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as distance measurement. In some embodiments, the audio circuit 1007 may also include a headphone jack.
电源1008用于为计算机设备1000中的各个组件进行供电。电源1008可以是交流电、直流电、一次性电池或可充电电池。当电源1008包括可充电电 池时,该可充电电池可以是有线充电电池或无线充电电池。有线充电电池是通过有线线路充电的电池,无线充电电池是通过无线线圈充电的电池。该可充电电池还可以用于支持快充技术。The power supply 1008 is used to power various components in the computer device 1000. The power supply 1008 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1008 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged through a wired line, and a wireless rechargeable battery is a battery that is charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
在一些实施例中,计算机设备1000还包括有一个或多个传感器1009。该一个或多个传感器1009包括但不限于:加速度传感器1010、陀螺仪传感器1011、压力传感器1012、光学传感器1013以及接近传感器1014。In some embodiments, the computer device 1000 further includes one or more sensors 1009 , including but not limited to: an acceleration sensor 1010 , a gyroscope sensor 1011 , a pressure sensor 1012 , an optical sensor 1013 , and a proximity sensor 1014 .
加速度传感器1010可以检测以计算机设备1000建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器1010可以用于检测重力加速度在三个坐标轴上的分量。处理器1001可以根据加速度传感器1010采集的重力加速度信号,控制触摸显示屏1005以横向视图或纵向视图进行用户界面的显示。加速度传感器1010还可以用于游戏或者用户的运动数据的采集。The acceleration sensor 1010 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the computer device 1000. For example, the acceleration sensor 1010 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1001 can control the touch display screen 1005 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1010. The acceleration sensor 1010 can also be used for collecting game or user motion data.
陀螺仪传感器1011可以检测计算机设备1000的机体方向及转动角度,陀螺仪传感器1011可以与加速度传感器1010协同采集用户对计算机设备1000的3D动作。处理器1001根据陀螺仪传感器1011采集的数据,可以实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。The gyro sensor 1011 can detect the body direction and rotation angle of the computer device 1000, and the gyro sensor 1011 can cooperate with the acceleration sensor 1010 to collect the user's 3D actions on the computer device 1000. The processor 1001 can implement the following functions based on the data collected by the gyro sensor 1011: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
压力传感器1012可以设置在计算机设备1000的侧边框和/或触摸显示屏1005的下层。当压力传感器1012设置在计算机设备1000的侧边框时,可以检测用户对计算机设备1000的握持信号,根据该握持信号进行左右手识别或快捷操作。当压力传感器1012设置在触摸显示屏1005的下层时,可以根据用户对触摸显示屏1005的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。The pressure sensor 1012 can be set on the side frame of the computer device 1000 and/or the lower layer of the touch display screen 1005. When the pressure sensor 1012 is set on the side frame of the computer device 1000, it can detect the user's grip signal of the computer device 1000, and perform left and right hand recognition or shortcut operation according to the grip signal. When the pressure sensor 1012 is set on the lower layer of the touch display screen 1005, it can control the operability controls on the UI interface according to the user's pressure operation on the touch display screen 1005. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
光学传感器1013用于采集环境光强度。在一个实施例中,处理器1001可以根据光学传感器1013采集的环境光强度,控制触摸显示屏1005的显示亮度。具体地,当环境光强度较高时,调高触摸显示屏1005的显示亮度;当环境光强度较低时,调低触摸显示屏1005的显示亮度。在另一个实施例中,处理器1001还可以根据光学传感器1013采集的环境光强度,动态调整摄像头组件1006的拍摄参数。The optical sensor 1013 is used to collect the ambient light intensity. In one embodiment, the processor 1001 can control the display brightness of the touch display screen 1005 according to the ambient light intensity collected by the optical sensor 1013. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1005 is reduced. In another embodiment, the processor 1001 can also dynamically adjust the shooting parameters of the camera assembly 1006 according to the ambient light intensity collected by the optical sensor 1013.
接近传感器1014,也称距离传感器,通常设置在计算机设备1000的正面。 接近传感器1014用于采集用户与计算机设备1000的正面之间的距离。在一个实施例中,当接近传感器1014检测到用户与计算机设备1000的正面之间的距离逐渐变小时,由处理器1001控制触摸显示屏1005从亮屏状态切换为息屏状态;当接近传感器1014检测到用户与计算机设备1000的正面之间的距离逐渐变大时,由处理器1001控制触摸显示屏1005从息屏状态切换为亮屏状态。The proximity sensor 1014, also called a distance sensor, is usually arranged on the front of the computer device 1000. The proximity sensor 1014 is used to collect the distance between the user and the front of the computer device 1000. In one embodiment, when the proximity sensor 1014 detects that the distance between the user and the front of the computer device 1000 is gradually decreasing, the processor 1001 controls the touch display screen 1005 to switch from the screen-on state to the screen-off state; when the proximity sensor 1014 detects that the distance between the user and the front of the computer device 1000 is gradually increasing, the processor 1001 controls the touch display screen 1005 to switch from the screen-off state to the screen-on state.
本领域技术人员可以理解,图10中示出的结构并不构成对计算机设备1000的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art will appreciate that the structure shown in FIG. 10 does not limit the computer device 1000 , and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
本申请实施例还提供一种计算机设备,该计算机设备包括:处理器和存储器,存储器中存储有至少一条计算机程序,至少一条计算机程序由处理器加载并执行以实现上述各方法实施例提供的壁纸的显示方法。An embodiment of the present application also provides a computer device, which includes: a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the wallpaper display method provided by the above-mentioned method embodiments.
本申请实施例还提供了一种计算机存储介质,计算机可读存储介质中存储有至少一条计算机程序,至少一条计算机程序由处理器加载并执行以实现上述各方法实施例提供的壁纸的显示方法。An embodiment of the present application further provides a computer storage medium, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the wallpaper display method provided by the above-mentioned method embodiments.
本申请实施例还提供了一种计算机程序产品,上述计算机程序产品包括计算机程序,所述计算机程序存储在计算机可读存储介质中;所述计算机程序由计算机设备的处理器从所述计算机可读存储介质读取并执行,使得所述计算机设备执行上述各方法实施例提供的壁纸的显示方法。An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium; the computer program is read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device executes the wallpaper display method provided by the above-mentioned method embodiments.
应当理解的是,在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。It should be understood that the "plurality" mentioned in this article refers to two or more. "And/or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects before and after are in an "or" relationship.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器, 磁盘或光盘等。A person skilled in the art will appreciate that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同切换、改进等,均应包含在本申请的保护范围之内。The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent switching, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims (17)

  1. 一种壁纸的显示方法,其特征在于,所述方法由第一终端执行,所述方法包括:A method for displaying wallpaper, characterized in that the method is executed by a first terminal, and the method includes:
    播放音频数据;Play audio data;
    基于所述音频数据在不同时刻的频谱特征,动态显示所述壁纸。The wallpaper is dynamically displayed based on the frequency spectrum characteristics of the audio data at different moments.
  2. 根据权利要求1所述的方法,其特征在于,所述基于所述音频数据在不同时刻的频谱特征,动态显示所述壁纸,包括:The method according to claim 1, characterized in that the dynamically displaying the wallpaper based on the frequency spectrum characteristics of the audio data at different times comprises:
    获取所述音频数据在第i时刻的实时数据;Obtaining real-time data of the audio data at the i-th moment;
    对所述第i时刻的所述实时数据进行特征提取,得到所述音频数据在所述第i时刻的频谱特征;Performing feature extraction on the real-time data at the i-th moment to obtain frequency spectrum features of the audio data at the i-th moment;
    基于在所述第i时刻的所述频谱特征,生成所述第i时刻的壁纸,i为正整数。Based on the frequency spectrum feature at the i-th moment, a wallpaper at the i-th moment is generated, where i is a positive integer.
  3. 根据权利要求2所述的方法,其特征在于,所述第一终端具有中央处理器CPU和图形处理器GPU;The method according to claim 2, characterized in that the first terminal has a central processing unit (CPU) and a graphics processing unit (GPU);
    所述对所述第i时刻的所述实时数据进行特征提取,得到所述音频数据在所述第i时刻的频谱特征,包括:The extracting features of the real-time data at the i-th moment to obtain the frequency spectrum features of the audio data at the i-th moment includes:
    通过所述CPU对所述第i时刻的所述实时数据进行数据提取,得到所述音频数据在所述第i时刻的频谱数据;Extracting the real-time data at the i-th moment by the CPU to obtain the frequency spectrum data of the audio data at the i-th moment;
    通过所述GPU对所述第i时刻的所述频谱数据进行特征提取,得到所述音频数据在所述第i时刻的所述频谱特征。The GPU performs feature extraction on the spectrum data at the i-th moment to obtain the spectrum features of the audio data at the i-th moment.
  4. 根据权利要求2所述的方法,其特征在于,所述基于在所述第i时刻的所述频谱特征,生成所述第i时刻的壁纸,包括:The method according to claim 2, characterized in that the step of generating the wallpaper at the i-th moment based on the spectrum characteristics at the i-th moment comprises:
    基于在所述第i时刻的所述频谱特征,建模所述壁纸在所述第i时刻的显示元素;Modeling display elements of the wallpaper at the i-th moment based on the frequency spectrum characteristics at the i-th moment;
    基于建模得到的所述壁纸在所述第i时刻的显示元素,渲染显示在所述第i时刻的所述壁纸。Based on the display elements of the wallpaper at the i-th moment obtained by modeling, the wallpaper at the i-th moment is rendered and displayed.
  5. 根据权利要求4所述的方法,其特征在于,所述基于在所述第i时刻的所述频谱特征,建模所述壁纸在所述第i时刻的显示元素,包括:The method according to claim 4, characterized in that modeling the display elements of the wallpaper at the i-th moment based on the spectrum characteristics at the i-th moment comprises:
    在通过造型函数建模所述第i时刻的所述壁纸的显示元素时,将在所述第i时刻的所述频谱特征叠加至所述造型函数的输入量中,得到所述壁纸在所述第i时刻的显示元素。When the display elements of the wallpaper at the i-th moment are modeled by a modeling function, the frequency spectrum features at the i-th moment are superimposed on the input of the modeling function to obtain the display elements of the wallpaper at the i-th moment.
  6. 根据权利要求5所述的方法,其特征在于,所述显示元素包括色度、饱和度值、亮度值、波动速率、波动频率、运动轨迹中的至少一种。The method according to claim 5 is characterized in that the display element includes at least one of hue, saturation value, brightness value, fluctuation rate, fluctuation frequency, and motion trajectory.
  7. 根据权利要求1至6任一所述的方法,其特征在于,所述播放音频数据,包括:The method according to any one of claims 1 to 6, characterized in that the playing of audio data comprises:
    播放所述第一终端中的所述音频数据;或,Play the audio data in the first terminal; or,
    播放第二终端中的所述音频数据,所述第二终端是指与所述第一终端相互关联的终端设备。The audio data is played in a second terminal, where the second terminal refers to a terminal device associated with the first terminal.
  8. 根据权利要求7所述的方法,其特征在于,所述基于所述音频数据在不同时刻的频谱特征,动态显示所述壁纸,包括:The method according to claim 7, characterized in that the dynamically displaying the wallpaper based on the frequency spectrum characteristics of the audio data at different times comprises:
    基于所述第一终端中播放的所述音频数据在不同时刻的所述频谱特征,动态显示所述壁纸。The wallpaper is dynamically displayed based on the frequency spectrum characteristics of the audio data played in the first terminal at different times.
  9. 根据权利要求7所述的方法,其特征在于,所述基于所述音频数据在不同时刻的频谱特征,动态显示所述壁纸,包括:The method according to claim 7, characterized in that the dynamically displaying the wallpaper based on the frequency spectrum characteristics of the audio data at different times comprises:
    基于所述第二终端中播放的所述音频数据在不同时刻的所述频谱特征,在所述第一终端中动态显示所述壁纸。The wallpaper is dynamically displayed in the first terminal based on the frequency spectrum characteristics of the audio data played in the second terminal at different times.
  10. 根据权利要求1至6任一所述的方法,其特征在于,所述壁纸包括至少一个显示素材;The method according to any one of claims 1 to 6, characterized in that the wallpaper comprises at least one display material;
    所述基于所述音频数据在不同时刻的频谱特征,动态显示所述壁纸,包括:The dynamically displaying the wallpaper based on the frequency spectrum characteristics of the audio data at different times includes:
    基于所述音频数据在不同时刻的所述频谱特征,动态显示所述壁纸中与 所述频谱特征对应的所述显示素材。Based on the frequency spectrum characteristics of the audio data at different moments, the display materials corresponding to the frequency spectrum characteristics in the wallpaper are dynamically displayed.
  11. 根据权利要求1至6任一所述的方法,其特征在于,所述基于所述音频数据在不同时刻的频谱特征,动态显示所述壁纸,包括:The method according to any one of claims 1 to 6, characterized in that dynamically displaying the wallpaper based on the frequency spectrum characteristics of the audio data at different times comprises:
    基于所述音频数据在不同时刻的频谱特征和天气元素信息,动态显示所述壁纸,所述天气元素信息是指所述第一终端所在地理位置处的天气信息。The wallpaper is dynamically displayed based on the frequency spectrum characteristics of the audio data at different times and weather element information, where the weather element information refers to weather information at the geographical location of the first terminal.
  12. 根据权利要求1至6任一所述的方法,其特征在于,所述基于所述音频数据在不同时刻的频谱特征,动态显示所述壁纸,包括:The method according to any one of claims 1 to 6, characterized in that dynamically displaying the wallpaper based on the frequency spectrum characteristics of the audio data at different times comprises:
    基于所述音频数据在不同时刻的频谱特征和陀螺仪数据变化特征,动态显示所述壁纸,所述陀螺仪数据变化特征用于指示所述第一终端的位置变化。The wallpaper is dynamically displayed based on the frequency spectrum characteristics of the audio data at different times and the gyroscope data change characteristics, and the gyroscope data change characteristics are used to indicate the position change of the first terminal.
  13. 根据权利要求1至6任一所述的方法,其特征在于,所述基于所述音频数据在不同时刻的频谱特征,动态显示所述壁纸,包括:The method according to any one of claims 1 to 6, characterized in that dynamically displaying the wallpaper based on the frequency spectrum characteristics of the audio data at different times comprises:
    基于所述音频数据在不同时刻的频谱特征和心跳频率特征,动态显示所述壁纸,所述心跳变化特征是通过与所述第一终端关联的第三终端监测得到的。The wallpaper is dynamically displayed based on the frequency spectrum characteristics and heart rate characteristics of the audio data at different times, and the heart rate change characteristics are obtained by monitoring a third terminal associated with the first terminal.
  14. 一种壁纸的显示装置,其特征在于,所述装置包括:A wallpaper display device, characterized in that the device comprises:
    播放模块,用于播放音频数据;A playback module, used for playing audio data;
    显示模块,用于基于所述音频数据在不同时刻的频谱特征,动态显示所述壁纸。The display module is used to dynamically display the wallpaper based on the frequency spectrum characteristics of the audio data at different times.
  15. 一种计算机设备,其特征在于,所述计算机设备包括:处理器和存储器,所述存储器中存储有至少一条计算机程序,至少一条所述计算机程序由所述处理器加载并执行以实现如权利要求1至13中任一项所述的壁纸的显示方法。A computer device, characterized in that the computer device comprises: a processor and a memory, wherein at least one computer program is stored in the memory, and at least one computer program is loaded and executed by the processor to implement the wallpaper display method according to any one of claims 1 to 13.
  16. 一种计算机存储介质,其特征在于,所述计算机可读存储介质中存储有至少一条计算机程序,至少一条计算机程序由处理器加载并执行以实现如 权利要求1至13中任一项所述的壁纸的显示方法。A computer storage medium, characterized in that at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by a processor to implement the wallpaper display method as described in any one of claims 1 to 13.
  17. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序,所述计算机程序存储在计算机可读存储介质中;所述计算机程序由计算机设备的处理器从所述计算机可读存储介质读取并执行,使得所述计算机设备执行如权利要求1至13中任一项所述的壁纸的显示方法。A computer program product, characterized in that the computer program product comprises a computer program, which is stored in a computer-readable storage medium; the computer program is read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device executes the wallpaper display method according to any one of claims 1 to 13.
PCT/CN2022/124330 2022-10-10 2022-10-10 Wallpaper display method and apparatus, and device, storage medium and program product WO2024077437A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2022/124330 WO2024077437A1 (en) 2022-10-10 2022-10-10 Wallpaper display method and apparatus, and device, storage medium and program product
CN202280003533.8A CN115997191A (en) 2022-10-10 2022-10-10 Wallpaper display method, wallpaper display device, wallpaper display equipment, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/124330 WO2024077437A1 (en) 2022-10-10 2022-10-10 Wallpaper display method and apparatus, and device, storage medium and program product

Publications (1)

Publication Number Publication Date
WO2024077437A1 true WO2024077437A1 (en) 2024-04-18

Family

ID=85995492

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/124330 WO2024077437A1 (en) 2022-10-10 2022-10-10 Wallpaper display method and apparatus, and device, storage medium and program product

Country Status (2)

Country Link
CN (1) CN115997191A (en)
WO (1) WO2024077437A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110933330A (en) * 2019-12-09 2020-03-27 广州酷狗计算机科技有限公司 Video dubbing method and device, computer equipment and computer-readable storage medium
CN110990090A (en) * 2019-11-14 2020-04-10 上海掌门科技有限公司 Dynamic wallpaper display method, device and computer readable medium
CN111488091A (en) * 2020-04-16 2020-08-04 深圳传音控股股份有限公司 Interface display method of mobile terminal, mobile terminal and storage medium
CN111984164A (en) * 2020-08-31 2020-11-24 Oppo广东移动通信有限公司 Wallpaper generation method, device, terminal and storage medium
CN112099683A (en) * 2020-09-03 2020-12-18 维沃移动通信有限公司 Wallpaper display method and device and electronic equipment
CN112433696A (en) * 2020-11-30 2021-03-02 上海米哈游天命科技有限公司 Wallpaper display method, device, equipment and medium
CN112738606A (en) * 2020-12-29 2021-04-30 广州酷狗计算机科技有限公司 Audio file processing method and device, terminal and storage medium
CN112799771A (en) * 2021-02-09 2021-05-14 珠海豹趣科技有限公司 Playing method and device of dynamic wallpaper, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990090A (en) * 2019-11-14 2020-04-10 上海掌门科技有限公司 Dynamic wallpaper display method, device and computer readable medium
CN110933330A (en) * 2019-12-09 2020-03-27 广州酷狗计算机科技有限公司 Video dubbing method and device, computer equipment and computer-readable storage medium
CN111488091A (en) * 2020-04-16 2020-08-04 深圳传音控股股份有限公司 Interface display method of mobile terminal, mobile terminal and storage medium
CN111984164A (en) * 2020-08-31 2020-11-24 Oppo广东移动通信有限公司 Wallpaper generation method, device, terminal and storage medium
CN112099683A (en) * 2020-09-03 2020-12-18 维沃移动通信有限公司 Wallpaper display method and device and electronic equipment
CN112433696A (en) * 2020-11-30 2021-03-02 上海米哈游天命科技有限公司 Wallpaper display method, device, equipment and medium
CN112738606A (en) * 2020-12-29 2021-04-30 广州酷狗计算机科技有限公司 Audio file processing method and device, terminal and storage medium
CN112799771A (en) * 2021-02-09 2021-05-14 珠海豹趣科技有限公司 Playing method and device of dynamic wallpaper, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115997191A (en) 2023-04-21

Similar Documents

Publication Publication Date Title
US11393154B2 (en) Hair rendering method, device, electronic apparatus, and storage medium
US11244170B2 (en) Scene segmentation method and device, and storage medium
CN110061900B (en) Message display method, device, terminal and computer readable storage medium
CN109327608B (en) Song sharing method, terminal, server and system
CN111031386B (en) Video dubbing method and device based on voice synthesis, computer equipment and medium
CN108270794B (en) Content distribution method, device and readable medium
CN110163066B (en) Multimedia data recommendation method, device and storage medium
CN109346111B (en) Data processing method, device, terminal and storage medium
CN110139143B (en) Virtual article display method, device, computer equipment and storage medium
WO2022052620A1 (en) Image generation method and electronic device
CN112533017B (en) Live broadcast method, device, terminal and storage medium
WO2021073293A1 (en) Animation file generating method and device, and storage medium
CN109275013B (en) Method, device and equipment for displaying virtual article and storage medium
CN112218136B (en) Video processing method, video processing device, computer equipment and storage medium
WO2023050722A1 (en) Information display method and electronic device
CN111031391A (en) Video dubbing method, device, server, terminal and storage medium
CN111105474B (en) Font drawing method, font drawing device, computer device and computer readable storage medium
CN113420177A (en) Audio data processing method and device, computer equipment and storage medium
CN112131422A (en) Expression picture generation method, device, equipment and medium
CN113705302A (en) Training method and device for image generation model, computer equipment and storage medium
CN111539795A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN109771950B (en) Node map setting method, device and storage medium
WO2022252563A1 (en) Information display method and electronic device
CN111437600A (en) Plot showing method, plot showing device, plot showing equipment and storage medium
CN111083526A (en) Video transition method and device, computer equipment and storage medium