Audio playback method, device, terminal and storage medium

By generating and displaying special effects based on audio parameters in the audio playback application, the problem of single display content in the audio playback interface in the existing technology is solved, and user experience and interactivity are improved.

CN112464019BActive Publication Date: 2024-08-27GUANGZHOU KUGOU COMP TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202011415455.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-03
Publication Date
2024-08-27
Estimated Expiration
2040-12-03

AI Technical Summary

Technical Problem

Existing audio playback applications have poor user experience when playing audio, display content is single, and lack visual appeal and interactivity.

Method used

By obtaining audio parameters and generating and displaying corresponding special effects based on these parameters, such as marquees, jitters, flash lines, and shadow effects, the display content of the audio playback interface is enriched.

Benefits of technology

It improves the user's visual experience. Through dynamic special effects, users can experience the visual performance of audio changes while enjoying the audio, which enhances the interactivity and attractiveness of audio playback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112464019B
    Figure CN112464019B
Patent Text Reader

Abstract

The present application discloses an audio playback method, device, terminal and storage medium, which belongs to the field of Internet technology. The method includes: if a playback instruction for a target audio is received, the audio parameters of the target audio are obtained, the target special effects corresponding to the audio parameters of the target audio are determined, and the target special effects are displayed on the playback interface of the target audio. The technical solution provided in the embodiment of the present application displays the special effects corresponding to the audio parameters of the audio on the playback interface of the audio during the audio playback process. Since the audio parameters can characterize the changes in the audio, the special effects determined according to the audio parameters can reflect the changes in the audio. By displaying the special effects that change with the audio parameters, the user can watch the special effects that reflect the changes in the audio while enjoying the audio, enriching the display content during audio playback, providing users with a rich visual experience, and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to an audio playback method, device, terminal and storage medium. Background Art

[0002] With the continuous development of Internet technology, most terminals currently provide audio playback applications, and users can meet their needs for enjoying audio through the audio playback applications provided by the terminals.

[0003] At present, when the terminal is playing audio, a poster of the currently playing audio is displayed in the playback interface of the currently playing audio, and the audio information of the currently playing audio is displayed on the poster. For example, taking the audio as a song as an example, the poster can display the singer information, song name, etc. of the song.

[0004] However, in the above solution, only the poster is displayed when the audio is played, the displayed content is relatively simple, and the user experience is poor. Summary of the invention

[0005] The embodiments of the present application provide an audio playback method, device, terminal, and storage medium, which can enrich the display content during audio playback and enhance the user's visual experience. The technical solution is as follows:

[0006] In one aspect, an audio playback method is provided, the method comprising:

[0007] If a play instruction for the target audio is received, obtain audio parameters of the target audio;

[0008] Determine a target special effect corresponding to an audio parameter of a target audio;

[0009] On the target audio playback interface, display the target special effects.

[0010] In a possible implementation, determining a target special effect corresponding to an audio parameter of the target audio includes:

[0011] Based on the identifier of the audio parameter and the target correspondence, the target special effect corresponding to the audio parameter is determined, and the target correspondence includes the correspondence between the identifier of the audio parameter and the target special effect.

[0012] In a possible implementation, determining a target special effect corresponding to an audio parameter of the target audio includes:

[0013] Determining a special effect parameter corresponding to the audio parameter based on an identifier of the audio parameter of the target audio, a value of the audio parameter, and target relationship data, wherein the target relationship data includes data for indicating a mapping relationship between the identifier of the audio parameter, the value of the audio parameter, and the special effect parameter;

[0014] Generate target special effects based on special effect parameters.

[0015] In a possible implementation, when playing the target audio, displaying the target special effect on the playback interface of the target audio includes:

[0016] When the target audio is played, on the playback interface of the target audio, according to the audio parameters of the target audio, the target special effects that change with the audio parameters are displayed.

[0017] In a possible implementation, the audio parameter includes a playback speed, and the target special effect corresponding to the playback speed is a marquee special effect. On the playback interface of the target audio, displaying the target special effect includes:

[0018] On the target audio playback interface, a marquee effect is displayed in which the scrolling speed changes with the playback speed according to the playback speed of the target audio.

[0019] In a possible implementation, the audio parameter includes audio intensity, and the target special effect corresponding to the audio intensity is a marquee special effect. On the playback interface of the target audio, displaying the target special effect includes:

[0020] On the playback interface of the target audio, a marquee effect is displayed in which the shape of the scrolling line changes with the audio intensity according to the audio intensity of the target audio.

[0021] In a possible implementation, the audio parameter includes a rhythm point timestamp, and the target special effect corresponding to the rhythm point timestamp is a jitter special effect. On the playback interface of the target audio, displaying the target special effect includes:

[0022] If the target audio is played to the rhythm point timestamp, a jitter effect is displayed on the target audio playback interface.

[0023] In a possible implementation, the audio parameter also includes the rhythm point strength, and the target special effect corresponding to the rhythm point strength is a flash line special effect. On the playback interface of the target audio, the target special effect is displayed including:

[0024] If the target audio is played to the rhythm point timestamp, a flash line special effect is displayed on the target audio playback interface according to the rhythm point strength, in which the length of the flash line changes with the rhythm point strength;

[0025] Or, if the target audio is played to the rhythm point timestamp, a flashing line special effect in which the brightness of the flashing line changes with the rhythm point strength is displayed on the target audio playback interface according to the rhythm point strength;

[0026] Or, if the target audio is played to the rhythm point timestamp, on the playback interface of the target audio, a flash line special effect is displayed in which the flash line rotates at a changing angle according to the rhythm point strength.

[0027] In a possible implementation, displaying the target special effect on the target audio playback interface includes:

[0028] If the audio parameters include the playback speed, the target special effect corresponding to the playback speed is a shadow special effect, and the corresponding shadow special effect is generated based on the collected user image; on the playback interface of the target audio, a shadow special effect in which the shaking frequency changes with the playback speed is displayed according to the playback speed;

[0029] If the audio parameter includes audio intensity, the target special effect corresponding to the audio intensity is a shadow special effect, and the corresponding shadow special effect is generated based on the collected user image; on the playback interface of the target audio, according to the audio intensity, a shadow special effect in which the shaking amplitude changes with the audio intensity is displayed;

[0030] If the audio parameters include a rhythm point timestamp, the target special effect corresponding to the rhythm point timestamp is a shadow effect, and the corresponding shadow effect is generated based on the collected user image; on the playback interface of the target audio, according to the rhythm point timestamp of the target audio, a shadow effect is displayed in which the shaking action changes with the rhythm point timestamp.

[0031] In a possible implementation, the playback interface of the target audio includes any one of a full-screen interface and a local interface.

[0032] In one possible implementation, the audio parameters include one or more of audio type, playback speed, audio intensity, rhythm point timestamp and rhythm point intensity; the target special effects include one or more of marquee effect, jitter effect, flashing line effect and shadow effect.

[0033] In a possible implementation, if a play instruction for a target audio is received, obtaining audio parameters of the target audio includes:

[0034] If a play instruction for the target audio is received, the audio parameters of the target audio are determined based on the audio identifier of the target audio and the target correspondence, where the target correspondence is used to indicate the correspondence between the audio identifier and the audio parameters.

[0035] In a possible implementation, if a play instruction for a target audio is received, obtaining audio parameters of the target audio includes:

[0036] If a play instruction for the target audio is received, an audio parameter acquisition request is sent to the server, where the audio parameter acquisition request carries the audio identifier of the target audio;

[0037] Receive the audio parameters returned by the server based on the audio ID.

[0038] In one aspect, an audio playback device is provided, the device comprising:

[0039] An acquisition module, used for acquiring audio parameters of the target audio if a play instruction for the target audio is received;

[0040] A determination module, used to determine a target special effect corresponding to an audio parameter of a target audio;

[0041] The display module is used to display the target special effects on the playback interface of the target audio.

[0042] In a possible implementation, a module is determined to:

[0043] Based on the identifier of the audio parameter and the target correspondence, a target special effect corresponding to the audio parameter is determined, and the target correspondence includes a correspondence between the identifier of the audio parameter and the target special effect.

[0044] In a possible implementation, the determining module includes:

[0045] A determination submodule, for determining a special effect parameter corresponding to the audio parameter based on an identifier of the audio parameter of the target audio, a value of the audio parameter, and target relationship data, wherein the target relationship data includes data for indicating a mapping relationship between the identifier of the audio parameter, the value of the audio parameter, and the special effect parameter;

[0046] The generation submodule is used to generate target special effects based on special effect parameters.

[0047] In a possible implementation, the display module is used to:

[0048] When the target audio is played, on the playback interface of the target audio, according to the audio parameters of the target audio, the target special effects that change with the audio parameters are displayed.

[0049] In a possible implementation, the audio parameter includes a playback speed, and the target special effect corresponding to the playback speed is a marquee special effect. The display module is used to:

[0050] On the target audio playback interface, a marquee effect is displayed in which the scrolling speed changes with the playback speed according to the playback speed of the target audio.

[0051] In a possible implementation, the audio parameter includes audio intensity, and the target special effect corresponding to the audio intensity is a marquee special effect. The display module is used to:

[0052] On the playback interface of the target audio, a marquee effect is displayed in which the shape of the scrolling line changes with the audio intensity according to the audio intensity of the target audio.

[0053] In a possible implementation, the audio parameter includes a rhythm point timestamp, the target special effect corresponding to the rhythm point timestamp is a jitter special effect, and the display module is used to:

[0054] If the target audio is played to the rhythm point timestamp, a jitter effect is displayed on the target audio playback interface.

[0055] In a possible implementation, the audio parameter further includes the rhythm point strength, and the target special effect corresponding to the rhythm point strength is a flash line special effect. The display module is used to:

[0056] If the target audio is played to the rhythm point timestamp, a flash line special effect is displayed on the target audio playback interface according to the rhythm point strength, in which the length of the flash line changes with the rhythm point strength;

[0057] Or, if the target audio is played to the rhythm point timestamp, a flashing line special effect in which the brightness of the flashing line changes with the rhythm point strength is displayed on the target audio playback interface according to the rhythm point strength;

[0058] Or, if the target audio is played to the rhythm point timestamp, on the playback interface of the target audio, a flash line special effect is displayed in which the flash line rotates at a changing angle according to the rhythm point strength.

[0059] In a possible implementation, the display module is used to:

[0060] If the audio parameters include the playback speed, the target special effect corresponding to the playback speed is a shadow special effect, and the corresponding shadow special effect is generated based on the collected user image; on the playback interface of the target audio, a shadow special effect in which the shaking frequency changes with the playback speed is displayed according to the playback speed;

[0061] If the audio parameter includes audio intensity, the target special effect corresponding to the audio intensity is a shadow special effect, and the corresponding shadow special effect is generated based on the collected user image; on the playback interface of the target audio, according to the audio intensity, a shadow special effect in which the shaking amplitude changes with the audio intensity is displayed;

[0062] If the audio parameters include a rhythm point timestamp, the target special effect corresponding to the rhythm point timestamp is a shadow effect, and the corresponding shadow effect is generated based on the collected user image; on the playback interface of the target audio, according to the rhythm point timestamp of the target audio, a shadow effect is displayed in which the shaking action changes with the rhythm point timestamp.

[0063] In a possible implementation, the playback interface of the target audio includes any one of a full-screen interface and a local interface.

[0064] In one possible implementation, the audio parameters include one or more of audio type, playback speed, audio intensity, rhythm point timestamp and rhythm point intensity; the target special effects include one or more of marquee effect, jitter effect, flashing line effect and shadow effect.

[0065] In a possible implementation, the acquisition module is used to:

[0066] If a play instruction for the target audio is received, the audio parameters of the target audio are determined based on the audio identifier of the target audio and the target correspondence, where the target correspondence is used to indicate the correspondence between the audio identifier and the audio parameters.

[0067] In a possible implementation, the acquisition module is used to:

[0068] If a play instruction for the target audio is received, an audio parameter acquisition request is sent to the server, where the audio parameter acquisition request carries the audio identifier of the target audio;

[0069] Receive the audio parameters returned by the server based on the audio ID.

[0070] On the one hand, a terminal is provided, the terminal comprising a processor and a memory, the memory storing at least one program code, and the at least one program code is loaded and executed by the processor to implement the above-mentioned audio playback method.

[0071] On the one hand, a computer-readable storage medium is provided, in which at least one program code is stored, and the at least one program code is loaded and executed by a processor to implement the above-mentioned audio playback method.

[0072] On the one hand, a computer program product or computer program is provided, which includes a computer program code, and the computer program code is stored in a computer-readable storage medium. The processor of the terminal reads the computer program code from the computer-readable storage medium, and the processor executes the computer program code, so that the terminal executes the above-mentioned audio playback method.

[0073] The technical solution provided in the embodiment of the present application displays special effects corresponding to audio parameters of the audio on the audio playback interface during audio playback. Since the audio parameters can represent changes in the audio, the special effects determined based on the audio parameters can reflect the changes in the audio. By displaying special effects that change with the audio parameters, users can watch the special effects that reflect the changes in the audio while enjoying the audio, thereby enriching the display content during audio playback, providing users with a rich visual experience, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] 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 creative work.

[0075] Figure 1 is a schematic diagram of an implementation environment of an audio playback method provided in an embodiment of the present application;

[0076] Figure 2 is a flow chart of an audio playback method provided by an embodiment of the present application;

[0077] Figure 3 is a flow chart of an audio playback method provided by an embodiment of the present application;

[0078] Figure 4 This is a diagram of an audio playback interface provided in an embodiment of the present application;

[0079] Figure 5 is a flow chart of an audio playback method provided by an embodiment of the present application;

[0080] Figure 6 This is another audio playback interface diagram provided in an embodiment of the present application;

[0081] Figure 7 This is another audio playback interface diagram provided in an embodiment of the present application;

[0082] Figure 8 is a schematic diagram of a flash line special effect provided in an embodiment of the present application;

[0083] Fig. 9 is a schematic diagram of another flash line special effect provided in an embodiment of the present application;

[0084] Fig. 10A is a schematic diagram of another flash line special effect provided in an embodiment of the present application;

[0085] Fig. 10B is a schematic diagram of another flash line special effect provided in an embodiment of the present application;

[0086] Fig.11 is a schematic diagram of another flash line special effect provided in an embodiment of the present application;

[0087] Fig.12 is a schematic diagram of another flash line special effect provided in an embodiment of the present application;

[0088] Fig.13 is a structural schematic diagram of an audio playback device provided in an embodiment of the present application;

[0089] Fig.14 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0090] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0091] Figure 1 is a schematic diagram of an implementation environment of an audio playback method provided in an embodiment of the present application. Figure 1 , the implementation environment includes: a terminal 101 and a server 102.

[0092] Terminal 101 can be at least one of a smart phone, a smart watch, a desktop computer, a laptop, a virtual reality terminal, an augmented reality terminal, a wireless terminal, and a laptop computer. Terminal 101 has a communication function and can access the Internet. Terminal 101 can generally refer to one of a plurality of terminals, and this embodiment is only illustrated by terminal 101. Those skilled in the art can know that the number of the above-mentioned terminals can be more or less. Optionally, terminal 101 runs an audio playback application. The user can play the audio through the audio playback application on terminal 101. For example, the user operates on terminal 101, starts the audio playback application, selects the audio to be played, and clicks the play button in the audio playback application, then terminal 101 receives the play instruction and starts playing the selected audio. The embodiment of the present application subsequently adopts the target audio to represent the audio to be played.

[0093] The server 102 can be an independent physical server, or a server cluster or distributed file system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The server 102 and the terminal 101 can be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present disclosure. Optionally, the number of the above-mentioned servers 102 can be more or less, which is not limited in the embodiments of the present disclosure. Of course, the server 102 can also include other functional servers to provide more comprehensive and diversified services.

[0094] In one possible implementation, the target audio is audio played online, and the process of the audio playback method is as follows: after receiving the playback instruction, the terminal 101 obtains the audio parameters of the target audio from the server 102, and then determines the target special effects corresponding to the audio parameters of the target audio, and then displays the target special effects on the playback interface of the target audio when playing the target audio.

[0095] In another possible implementation, the target audio is audio played offline, and the process of the audio playback method is as follows: after receiving the playback instruction, the terminal 101 obtains the audio parameters of the target audio from the local end, and then determines the target special effects corresponding to the audio parameters of the target audio, and then displays the target special effects on the playback interface of the target audio when playing the target audio.

[0096] Figure 2 This is a flowchart of an audio playback method provided in an embodiment of the present application. This embodiment is described with a terminal as the execution subject. Figure 2 , the embodiment comprises:

[0097] 201. If the terminal receives a play instruction for a target audio, obtain audio parameters of the target audio.

[0098] In the embodiment of the present application, the audio parameters include one or more of audio type, playback speed, audio intensity, rhythm point timestamp and rhythm point intensity.

[0099] 202. The terminal determines a target special effect corresponding to the audio parameter of the target audio.

[0100] In the embodiment of the present application, the target special effects include one or more of a marquee special effect, a shaking special effect, a flashing line special effect, and a shadow special effect.

[0101] Optionally, step 202 includes any of the following: In a possible implementation, when the audio parameter carries an identifier, the corresponding target special effect is determined according to the identifier of the audio parameter. For example, taking the playback speed as an example, the identifier of the playback speed may be V, and the corresponding target special effect may be a marquee special effect.

[0102] In another possible implementation, when the audio parameter carries an identifier and a value, the corresponding target special effect is determined according to the identifier and the value of the audio parameter. For example, taking the play speed as an example, the identifier of the play speed may be V, the value of the play speed may be 50 (beats / minute), and the corresponding target special effect may be a marquee special effect with a scrolling speed of 20 (mm / second).

[0103] The embodiments of the present application will be described below based on the above two methods.

[0104] 203. When playing the target audio, the terminal displays the target special effect on the playback interface of the target audio.

[0105] The technical solution provided in the embodiment of the present application displays special effects corresponding to audio parameters of the audio on the audio playback interface during audio playback. Since the audio parameters can represent changes in the audio, the special effects determined based on the audio parameters can reflect the changes in the audio. By displaying special effects that change with the audio parameters, users can watch the special effects that reflect the changes in the audio while enjoying the audio, thereby enriching the display content during audio playback, providing users with a rich visual experience, and improving the user experience.

[0106] Figure 3 This is a flow chart of an audio playback method provided in an embodiment of the present application. This embodiment takes the special effects corresponding to the identification of the audio parameters as an example, and takes the interaction between the terminal and the server as an example to illustrate the solution. Figure 3 , the embodiment comprises:

[0107] 301. If the terminal receives a play instruction for a target audio, the terminal sends an audio parameter acquisition request to a server, where the audio parameter acquisition request carries an audio identifier of the target audio.

[0108] The target audio refers to the audio to be played. Optionally, the target audio is any one of a song, a drama, and a recording. Optionally, the target audio is an audio played offline, for example, the target audio is a downloaded audio, or the target audio is an audio played online. Optionally, the audio identifier is represented by the name of the audio or the audio ID (identification, identity identification number).

[0109] Audio parameters refer to parameters that can characterize audio features. Optionally, audio parameters include one or more of audio type, playback speed, audio intensity, rhythm point timestamp and rhythm point intensity. Among them, audio types include DJ (Discojockey), folk songs, pop music or electronic music. The playback speed is expressed in BPM (Beat Per Minute), and BPM refers to the number of beats per minute. For example, the number of beats per minute is 50 or 60. Audio intensity refers to the pitch of the audio. Optionally, audio intensity is expressed in decibels, such as 90 decibels. Rhythm point timestamp refers to the timestamp where the rhythm point is located. For example, the rhythm point can be a drum beat. Rhythm point intensity refers to the pitch of the rhythm point. Optionally, rhythm point intensity is expressed in decibels.

[0110] 302. The server receives the audio parameter acquisition request, and acquires the audio identifier carried in the audio parameter acquisition request.

[0111] In a possible implementation manner, the server receives the audio parameter acquisition request, and acquires the audio identifier carried in the audio parameter acquisition request from a specific field of the audio parameter acquisition request.

[0112] 303. The server determines the audio parameters corresponding to the audio identifier according to the audio identifier and the correspondence between the audio identifier and the audio parameters, and sends the determined audio parameters to the terminal.

[0113] In a possible implementation, the server receives the audio parameter acquisition request, determines the audio parameters corresponding to the audio identifier based on the audio identifier of the target audio and the correspondence between the audio identifier and the audio parameters, and sends the determined audio parameters to the terminal.

[0114] 304. The terminal receives audio parameters returned by the server based on the audio identifier.

[0115] Steps 301 to 304 take the target audio as an example of audio played online. In another possible implementation, if the target audio is audio played offline, the terminal receives a play instruction for the target audio, and determines the audio parameters of the target audio based on the audio identifier of the target audio and the correspondence between the audio identifier and the audio parameters. In this process, for the locally stored audio, the correspondence between the audio identifier and the audio parameters of the audio is also stored locally. The terminal can determine the audio parameters of the target audio based on the audio identifier and the correspondence, so as to facilitate the display of corresponding special effects during subsequent audio playback.

[0116] 305. The terminal determines a target special effect corresponding to the audio parameter based on the identifier of the audio parameter of the target audio and the target corresponding relationship, where the target corresponding relationship includes a corresponding relationship between the identifier of the audio parameter and the target special effect.

[0117] In an embodiment of the present application, the special effects include one or more of a marquee effect, a flashing line effect, a shaking effect, and a shadow effect. The marquee effect refers to a special effect in which a marquee scrolls in a circle in one direction on a frame line connected end to end. Optionally, the scrolling direction of the marquee effect is clockwise or counterclockwise. Optionally, the number of marquees in the marquee effect is one or more. The embodiment of the present application does not limit the scrolling direction and number of marquees of the marquee effect. The flashing line effect refers to a special effect of multiple lines in a flashing state. The shadow effect refers to a special effect in which a human-shaped shadow produces a shaking. Optionally, the shadow effect is a special effect generated based on a user image.

[0118] For example, the identifiers of several audio parameters and the corresponding target special effects are shown below, see Table 1. Table 1 uses the identifier P to represent the pop music type, the identifier D to represent the electronic music type, T to represent the rhythm point timestamp, and V to represent the playback speed.

[0119] Table 1

[0120] Audio parameter identification Target Effects P Flash line effects D Shadow Effects T Dithering Effects V Marquee special effects

[0121] In the above process, different special effects corresponding to different identifiers can be determined according to the identifiers of the audio parameters of the target audio, and then when the special effects are subsequently displayed, special effects that change with the changes in the identifiers of the audio parameters can be displayed.

[0122] 306. The terminal displays the target special effect on the playback interface of the target audio.

[0123] Optionally, the playback interface of the target audio includes any one of a full-screen interface and a partial interface. Optionally, an audio poster, picture or video of the target audio is displayed on the playback interface of the target audio, and the terminal displays the target special effect on the audio poster, picture or video of the target audio. Optionally, the target special effect includes one or more of a marquee special effect, a shaking special effect, a flashing line special effect and a shadow special effect.

[0124] In a possible implementation, taking the audio parameter including the audio type as an example, the terminal can determine the audio type of the target audio based on the correspondence between the audio identifier and the audio type, and can determine the target special effect corresponding to the audio type of the target audio in the correspondence between the audio type and the special effect, and then when playing the target audio, the target special effect corresponding to the audio type of the target audio is displayed on the playback interface of the target audio. For example, if the audio type of the target audio is a pop music type, a marquee special effect is displayed on the playback interface of the target audio; if the audio type of the target audio is a folk song type, a flashing line special effect is displayed on the playback interface of the target audio; if the audio type of the target audio is an electronic music type, a shaking special effect is displayed on the playback interface of the target audio.

[0125] In a possible implementation, taking the case where the audio parameters include a rhythm point timestamp, when playing the target audio, if the target audio is played to the rhythm point timestamp, the terminal displays the special effect corresponding to the rhythm point intensity on the playback interface of the target audio. For example, if the target audio is played to the rhythm point timestamp, the terminal displays the jitter special effect on the playback interface of the target audio. For example, the terminal displays the jitter special effect at the drum beat of the target audio. In this embodiment, when playing to the rhythm point, the jitter special effect is displayed, showing the user the special effect that can reflect the rhythm point, enriching the display content during audio playback.

[0126] In a possible implementation, taking the audio parameter including the playback speed as an example, if the terminal detects the playback speed of the target audio, that is, when the audio starts to play, the terminal displays the special effects corresponding to the playback speed on the playback interface of the target audio. Optionally, the terminal can also display the special effects corresponding to the playback speed when the speed value of the playback speed of the target audio reaches a certain threshold.

[0127] The following uses the marquee effect and the flashing line effect as examples to illustrate the display process of the target special effects:

[0128] In one possible implementation, taking the marquee effect as an example, the terminal displays a marquee on the target audio playback interface, following the frame line of the terminal edge, and scrolls in a loop in one direction. Optionally, the terminal displays a marquee on the full-screen interface of the target audio, following the frame line of the terminal edge, and scrolls in a loop in one direction. For example, Figure 4 is a schematic diagram of a target audio playback interface provided in an embodiment of the present application, see Figure 4 , the marquee effect can be Figure 4 The illustrated marquee special effect 401 includes a plurality of marquees.

[0129] Figure 4 The illustrated playback interface also includes a marquee control button 402, which is used to control whether the marquee special effect is displayed. For example, if the terminal detects an on operation of the marquee control button 402, the marquee special effect is turned on, and at this time, the terminal displays the marquee control special effect on the playback interface of the target audio. If the terminal detects a off operation of the marquee control button 402, the marquee special effect is turned off, and at this time, the terminal stops displaying the marquee special effect on the playback interface of the target audio. By setting the marquee control button, it is convenient for users to implement control operations, thereby improving the user experience.

[0130] Optionally, the terminal displays a playback control button in the playback interface of the target audio, and the playback control button is used to control the playback of the audio. Optionally, the playback control button includes a fast-rewind button, a play button, and a fast-forward button. Figure 4 , the rewind button can be Figure 4 The fast-forward button 403 shown may be Figure 4 The fast forward button 404 is shown, and the play button can be Figure 4 A play button 405 is shown. Figure 4 The fast-rewind button 403 shown is a button for fast-rewinding 10 seconds. If the terminal detects a click operation on the fast-rewind button 403, the playing time of the target audio is rewinded by 10 seconds. Figure 4 The fast forward button 404 shown is a button for fast forwarding by 30 seconds. If the terminal detects a click operation on the fast forward button 404, the target audio will be played forward by 30 seconds.

[0131] Optionally, taking the flash line special effect as an example, the terminal displays the flash line special effect on the playback interface of the target audio. Optionally, the terminal displays the flash line special effect on the local interface of the target audio. Figure 4 , the flash line effect can be Figure 4Shown are special effect 406A and special effect 406B.

[0132] In addition, the terminal also provides the function of creating an audio playback room. If the user wants to create an audio playback room, he can click the create button in the audio playback application, and the terminal will create an audio playback room in response to the creation operation of the audio playback room. The user can select the audio he wants to play and perform a play operation on the audio. The terminal will play the selected target audio in the audio playback room and display the target special effects of the target audio on the playback interface of the target audio. The user and the audience users in the audio playback room can all watch the target special effects of the target audio. Figure 4 The audio playback room includes the user's account information (such as account name, account number), room information (number of online users, cumulative number of online users, room number), and the target audio playback screen. Optionally, the terminal also supports the comment function and message function in the audio playback room, that is, the terminal displays a comment button on the target audio playback interface, and the comment button is used to enter the comment content. The comment button can be Figure 4 For example, an audience user in the audio playback room can click the comment button and enter a comment or message, and the terminal will display the comment and message on the interface of the audio playback room. In this process, while enhancing the user's visual experience, it also meets the user's social needs.

[0133] The technical solution provided in the embodiment of the present application displays special effects corresponding to audio parameters of the audio on the audio playback interface during audio playback. Since the audio parameters can represent changes in the audio, the special effects determined based on the audio parameters can reflect the changes in the audio. By displaying special effects that change with the audio parameters, users can watch the special effects that reflect the changes in the audio while enjoying the audio, thereby enriching the display content during audio playback, providing users with a rich visual experience, and improving the user experience.

[0134] Figure 3 Taking the display of special effects corresponding to the identifiers of audio parameters as an example, in another possible implementation, special effects corresponding to the identifiers and values ​​of audio parameters can also be displayed. Figure 5 is a flowchart of an audio playback method provided in an embodiment of the present application. This embodiment takes the interaction between a terminal and a server as an example to illustrate the solution. Figure 5 , the embodiment comprises:

[0135] 501. If the terminal receives a play instruction for a target audio, it sends an audio parameter acquisition request to a server, where the audio parameter acquisition request carries an audio identifier of the target audio.

[0136] 502. The server receives the audio parameter acquisition request and acquires the audio identifier carried in the audio parameter acquisition request.

[0137] 503. The server determines the audio parameters corresponding to the audio identifier according to the audio identifier and the correspondence between the audio identifier and the audio parameters, and sends the determined audio parameters to the terminal.

[0138] 504. The terminal receives audio parameters returned by the server based on the audio identifier.

[0139] Steps 501 to 504 refer to steps 301 to 304 and are not described in detail.

[0140] 505. The terminal determines a special effect parameter corresponding to the audio parameter based on the identifier of the audio parameter of the target audio, the value of the audio parameter and the target relationship data, wherein the target relationship data includes data indicating a mapping relationship between the identifier of the audio parameter, the value of the audio parameter and the special effect parameter.

[0141] The target relationship data may be a relationship function. The special effect parameters may be speed parameters of the special effect, shape parameters of the special effect, length parameters of the special effect, brightness parameters of the special effect, etc. Taking the marquee special effect as an example, the speed parameter of the special effect may be the scrolling speed of the marquee, the shape parameter of the special effect may be the shape of the scrolling line of the marquee (that is, the frame line mentioned above), and the brightness parameter of the special effect may be the brightness of the marquee.

[0142] In one possible implementation, taking the audio parameter as the playback speed and the special effect parameter as the scrolling speed of the marquee as an example, the terminal stores target relationship data of the playback speed and the scrolling speed. The terminal can calculate the scrolling speed of the marquee based on the target relationship data of the playback speed and the scrolling speed.

[0143] For example, the identifiers of several audio parameters and the special effect parameters corresponding to their values ​​are shown below, see Table 2. Table 2 uses the identifier V to represent the playback speed, the identifier A to represent the audio intensity, and the identifier S to represent the rhythm point intensity.

[0144] Table 2

[0145] Audio parameter identification The value of the audio parameter Special Effect Parameters V Playback speed value Speed ​​value A Audio intensity value Brightness value S Rhythm point intensity value Shape Value

[0146] 506. The terminal generates the target special effect based on the special effect parameter.

[0147] In a possible implementation, after determining the special effect parameters corresponding to the audio parameters of the target audio, the terminal generates the target special effect based on a locally stored special effect template and the special effect parameters.

[0148] Optionally, taking the audio parameter as the playback speed and the special effect parameter as the scrolling speed of the marquee as an example, the terminal can generate the marquee special effect based on the locally stored marquee special effect template and the speed value of the scrolling speed.

[0149] In the above process, the terminal calculates the special effect parameters corresponding to the audio parameters in real time according to the audio parameters of the target audio, and generates the corresponding target special effects in real time. It can generate target special effects that change with the audio parameters, which is convenient for subsequent display of the special effects.

[0150] It should be noted that the embodiment of the present application determines the corresponding target special effect according to the identifier and value of the audio parameter of the target audio. For example, the identifiers, values ​​and corresponding target special effects of several audio parameters are shown below:

[0151] (1) Taking the playback speed as an example, the playback speed is marked as V, the playback speed value is 50 (beats / minute), and the target special effect is a marquee special effect with a scrolling speed of 20 (mm / second);

[0152] (2) Taking the playback speed as an example, the playback speed is marked as V, the playback speed value is 100 (beats / minute), and the target special effect is a marquee special effect with a scrolling speed of 40 (mm / second);

[0153] (3) Taking audio intensity as an example, the audio intensity is labeled A, the audio intensity value is 10 (dB), and the target special effect is a shadow special effect with a shaking speed of 10 (mm / s);

[0154] (4) Taking audio intensity as an example, the audio intensity is labeled A, the audio intensity value is 20 (dB), and the target special effect is a shadow special effect with a shaking speed of 20 (mm / s);

[0155] (5) Taking the rhythm point intensity as an example, the rhythm point intensity is marked as S, and the value of the rhythm point intensity is 15 (dB), then the target special effect is a flash line special effect with a flash line length of 10 (mm);

[0156] (6) Taking the rhythm point intensity as an example, the rhythm point intensity is marked as S, and the value of the rhythm point intensity is 30 (decibels). Then, the target special effect is a flash line special effect with a flash line length of 20 (mm).

[0157] It should be noted that the audio parameters and corresponding special effects mentioned in (1) to (6) above can be randomly combined. For example, the rhythm point intensity can correspond to a shadow effect in which the shaking speed changes with the rhythm point intensity value, or the rhythm point intensity can correspond to a marquee effect in which the scrolling speed changes with the rhythm point intensity value. Another point that should be noted is that when the terminal plays the target special effect, it can select one special effect for display, or it can also display it based on multiple special effects. The embodiment of the present application does not limit the display of one or more special effects.

[0158] 507. When playing the target audio, the terminal displays the target special effect on the playback interface of the target audio.

[0159] In a possible implementation, after the terminal determines the target special effect of the target audio, when playing the target audio, on the playback interface of the target audio, the target special effect that changes with the audio parameters is displayed according to the audio parameters of the target audio.

[0160] The following is a detailed description of the process of displaying target effects based on the following audio parameters and corresponding target effects:

[0161] In a possible implementation, taking the audio parameter including the playback speed, and the target special effect corresponding to the playback speed as a marquee special effect as an example, the process of the terminal displaying the target special effect includes: the terminal displays a marquee special effect whose scrolling speed changes with the playback speed on the playback interface of the target audio according to the playback speed of the target audio. For example, the faster the playback speed of the target audio, the faster the scrolling speed of the marquee, and the slower the playback speed of the target audio, the slower the scrolling speed of the marquee. In this embodiment, according to the playback speed of the target audio, a marquee special effect whose scrolling speed changes with the playback speed is generated in real time, showing the user a special effect that can reflect the playback speed, and enriching the display content during audio playback.

[0162] In one possible implementation, taking the case where the audio parameters include audio intensity, and the target special effect corresponding to the audio intensity is a marquee effect, the process of the terminal displaying the target special effect includes: the terminal displays a marquee effect in which the shape of the scrolling line changes with the audio intensity on the playback interface of the target audio. For example, the stronger the audio intensity of the target audio, the larger the shape amplitude of the scrolling line; and the weaker the audio intensity of the target audio, the smaller the shape amplitude of the scrolling line. The scrolling line is also the frame line of the edge of the terminal. For example, Figure 6 This is another audio playback interface diagram provided in the embodiment of the present application, see Figure 6 , the marquee effect can be Figure 6 A marquee special effect 601 is shown. Figure 7is another target audio playback interface diagram provided in an embodiment of the present application. The marquee effect can be Figure 7 The marquee effect 701 is shown. Figure 4 and Figure 6 In the illustrated marquee effect 401 and marquee effect 601, it can be found that the shape amplitude of the scrolling line of the marquee effect 401 is greater than the shape amplitude of the marquee effect 601. In this embodiment, according to the audio intensity of the target audio, a marquee effect whose shape changes with the audio intensity is generated in real time, showing the user an effect that can reflect the audio intensity and enriching the display content during audio playback. It should be noted that Figure 4 and Figure 6 The thickness of the frame line indicates the change in the shape and amplitude of the scroll line. In other embodiments, the frame line at the edge of the terminal may be a curve, and the terminal displays the ups and downs of the amplitude trend of the scroll line on the target audio playback interface, forming a special effect similar to a marquee of a spectrum.

[0163] In a possible implementation, taking the case where the audio parameters include the rhythm point strength, and the target special effect corresponding to the rhythm point strength is the flash line special effect, the process of the terminal displaying the target special effect includes: if the target audio is played to the rhythm point timestamp, the terminal displays the flash line special effect on the playback interface of the target audio, according to the rhythm point strength, in which the length of the flash line changes with the rhythm point strength. For example, when the rhythm point strength of the target audio is stronger, the flash line is longer, and when the rhythm point strength of the target audio is weaker, the flash line is shorter. See Figure 4 , the flash line effect can be Figure 4 The special effects 406A and 406B are shown. Figure 6 , the flash line effect can be Figure 6 The special effects 602A and 603B are shown. Figure 7 , the flash line effect can be Figure 7 The special effects 702A and 702B are shown. Figures 4 to 7 It can be found that the length of the flashing line of the flashing line special effect changes with the rhythm point strength of the target audio. In this embodiment, according to the rhythm point strength of the target audio, a flashing line special effect whose length changes with the rhythm point strength is generated in real time, showing the user a special effect that can reflect the rhythm point strength, enriching the display content during audio playback.

[0164] In a possible implementation, take the audio parameter as the rhythm point intensity, and the target special effect corresponding to the rhythm point intensity as the flash line effect as an example. The process of the terminal displaying the target special effect includes: if the target audio is played to the rhythm point timestamp, the terminal displays a flash line special effect in which the brightness of the flash line changes with the rhythm point intensity on the playback interface of the target audio according to the rhythm point intensity. For example, the stronger the rhythm point intensity of the target audio, the brighter the flash special effect, that is, the more obvious the flash special effect. In this embodiment, according to the rhythm point intensity of the target audio, a flash line special effect in which the brightness of the flash line changes with the rhythm point intensity is generated in real time, showing the user special effects that can reflect the rhythm point intensity, enriching the display content during audio playback.

[0165] In a possible implementation, take the audio parameter as the rhythm point intensity, and the target special effect corresponding to the rhythm point intensity as the flash line special effect as an example. The process of the terminal displaying the target special effect includes: if the target audio is played to the rhythm point timestamp, the terminal displays a flash line special effect in which the color of the flash line changes with the rhythm point intensity on the playback interface of the target audio according to the rhythm point intensity. For example, the stronger the rhythm point intensity (drum beat) of the target audio, the brighter the flash special effect, such as red. In this embodiment, according to the rhythm point intensity of the target audio, a flash line special effect in which the color of the flash line changes with the rhythm point intensity is generated in real time, showing the user special effects that can reflect the rhythm point intensity, enriching the display content during audio playback.

[0166] The above process is Figures 4 to 7 Taking the flash line special effect shown as an example, in another possible implementation, the flash line special effect can also be displayed in other ways, as follows:

[0167] In a possible implementation, during the process of playing the target audio, the terminal displays a flashing line special effect in which the length of the flashing line changes with the change of the target audio. Figure 8 , Figure 8 is a schematic diagram of a flash line special effect provided in an embodiment of the present application. The flash line special effect can be Figure 8 In the special effect 801 shown, during the process of playing the target audio, the length of the flashing line in the special effect 801 changes with the change of the target audio. Fig. 9 , Fig. 9 is a schematic diagram of another flash line special effect provided in an embodiment of the present application. The flash line special effect can be Fig. 9 In the special effect 901 shown, during the playing of the target audio, the length of the flashing line in the special effect 901 changes with the change of the target audio.

[0168] In another possible implementation, during the process of playing the target audio, the terminal displays a flashing line special effect in which the rotation angle of the flashing line changes with the change of the target audio. Fig. 10A , Fig. 10A is a schematic diagram of another flash line special effect provided in an embodiment of the present application. The flash line special effect can be Fig. 10A In the special effect 1001 shown, during the playing of the target audio, the rotation angle of the flashing line in the special effect 1001 changes with the change of the target audio. Fig. 10B , Fig. 10B is a schematic diagram of another flash line special effect provided in an embodiment of the present application. The flash line special effect can be Fig. 10B The special effect 1002 shown, through the special effect 1001 and the special effect 1002, it can be found that the rotation angle of the flash line changes during the playing of the target audio. Optionally, the flash line special effect includes two or more types of flash lines. Fig. 10A , Fig. 10A Taking two types of flashing lines as an example, the flashing line special effects include flashing lines 1011 and flashing lines 1012. In this process, by showing that the rotation angle of the flashing lines changes with the target audio, the display method of the special effects is enriched, and by setting two types of flashing lines, the diversity of special effects display is achieved, which can enhance the user's interest in watching special effects.

[0169] In another possible implementation, see Fig.11 , Fig.11 is a schematic diagram of another flash line special effect provided in an embodiment of the present application. The flash line special effect can be Fig.11 In the special effect 1101 shown, during the process of playing the target audio, the length of the flashing line in the special effect 1101 changes with the change of the target audio. In another possible implementation, see Fig.12 , Fig.12 is a schematic diagram of another flash line special effect provided in an embodiment of the present application. The flash line special effect can be Fig.12 In the special effect 1201 shown, during the playing of the target audio, the length of the flashing line in the special effect 1201 changes with the change of the target audio.

[0170] In another possible implementation, the terminal can also display a shadow effect that changes with the target audio during the playback of the target audio. Fig. 10A , the shadow effect can be Fig. 10A The special effects 1003 shown, see Fig.11 , the shadow effect can be Fig.11 The special effect 1102 is shown. The process of displaying the shadow special effect on the terminal is described below:

[0171] If the audio parameter includes a playback speed, the target special effect corresponding to the playback speed is a shadow special effect, and based on the collected user image, a corresponding shadow special effect is generated, and on the playback interface of the target audio, according to the playback speed, the shadow special effect whose shaking frequency changes with the playback speed is displayed;

[0172] If the audio parameter includes audio intensity, the target special effect corresponding to the audio intensity is a shadow special effect, and the corresponding shadow special effect is generated based on the collected user image. On the playback interface of the target audio, the shadow special effect with the shaking amplitude changing with the audio intensity is displayed according to the audio intensity;

[0173] If the audio parameters include a rhythm point timestamp, the target special effect corresponding to the rhythm point timestamp is a shadow effect. Based on the collected user image, a corresponding shadow effect is generated. On the playback interface of the target audio, according to the rhythm point timestamp of the target audio, the shadow effect in which the shaking motion changes with the rhythm point timestamp is displayed.

[0174] It should be noted that, in the process of playing the target audio, the terminal can display the target special effect based on one, two or more of the above possible implementation methods. For example, the terminal displays a marquee special effect in which the scrolling speed changes with the playback speed according to the playback speed of the target audio on the playback interface of the target audio, and at the same time, displays a marquee special effect in which the scrolling line changes shape with the audio intensity according to the audio intensity of the target audio. The embodiment of the present application does not limit the number and type of display target special effects. It should also be noted that the corresponding relationship between the audio parameters and the target special effects is pre-set by the terminal, wherein the audio parameters and the target special effects can be randomly combined. For example, the terminal displays a marquee special effect in which the scrolling speed changes with the audio intensity according to the audio intensity of the target audio on the playback interface of the target audio. The embodiment of the present application does not limit the corresponding relationship between the audio parameters and the target special effects. Of course, the terminal can also be displayed through other similar special effects.

[0175] It should be noted that if the audio parameters of the target audio include the audio type and other audio parameters, the terminal can also first determine the special effect corresponding to the audio type, and then determine the special effect parameters of the special effect based on the other audio parameters, and then display the target special effect generated according to the special effect parameters when playing the target audio. For example, if the audio parameters of the target audio include the audio type and the playback speed, and the audio type of the target audio is a pop music type, then according to the correspondence between the audio type and the special effect, it can be determined that the special effect is a marquee special effect, and the scrolling speed of the marquee is determined according to the playback speed, and then on the playback interface of the target audio, a marquee special effect in which the scrolling speed of the marquee changes with the playback speed is displayed.

[0176] The technical solution provided in the embodiment of the present application displays special effects corresponding to audio parameters of the audio on the audio playback interface during the audio playback process. Since the audio parameters can characterize the changes in the audio, the special effects determined based on the audio parameters can reflect the changes in the audio. By displaying the special effects that change with the audio parameters, the user can watch the special effects that reflect the audio changes while enjoying the audio, such as watching animated special effects that can reflect the audio playback speed, drum beats or audio pitch. This enriches the display content during audio playback, provides the user with a rich visual experience, and enhances the user experience.

[0177] Fig.13 is a structural diagram of an audio playback device provided in an embodiment of the present application, see Fig.13 , the device comprises:

[0178] The acquisition module 1301 is used to acquire audio parameters of the target audio if a play instruction for the target audio is received;

[0179] A determination module 1302, configured to determine a target special effect corresponding to an audio parameter of a target audio;

[0180] The display module 1303 is used to display the target special effect on the playback interface of the target audio.

[0181] In a possible implementation, the determining module 1302 is configured to:

[0182] Based on the identifier of the audio parameter and the target correspondence, the target special effect corresponding to the audio parameter is determined, and the target correspondence includes the correspondence between the identifier of the audio parameter and the target special effect.

[0183] In a possible implementation, the determining module 1302 includes:

[0184] A determination submodule, configured to determine a special effect parameter corresponding to the audio parameter based on an identifier of the audio parameter of the target audio, a value of the audio parameter, and target relationship data, wherein the target relationship data includes data indicating a mapping relationship between the identifier of the audio parameter, the value of the audio parameter, and the special effect parameter;

[0185] The generation submodule is used to generate target special effects based on special effect parameters.

[0186] In a possible implementation, the display module 1303 is used to:

[0187] When the target audio is played, on the playback interface of the target audio, according to the audio parameters of the target audio, the target special effects that change with the audio parameters are displayed.

[0188] In a possible implementation, the audio parameter includes a playback speed, and the target special effect corresponding to the playback speed is a marquee special effect. The display module 1303 is used to:

[0189] On the target audio playback interface, a marquee effect is displayed in which the scrolling speed changes with the playback speed according to the playback speed of the target audio.

[0190] In a possible implementation, the audio parameter includes audio intensity, and the target special effect corresponding to the audio intensity is a marquee special effect. The display module 1303 is used to:

[0191] On the playback interface of the target audio, a marquee effect is displayed in which the shape of the scrolling line changes with the audio intensity according to the audio intensity of the target audio.

[0192] In a possible implementation, the audio parameter includes a rhythm point timestamp, and the target special effect corresponding to the rhythm point timestamp is a jitter special effect. The display module 1303 is used to:

[0193] If the target audio is played to the rhythm point timestamp, a jitter effect is displayed on the target audio playback interface.

[0194] In a possible implementation, the audio parameter further includes the rhythm point strength, and the target special effect corresponding to the rhythm point strength is the flash line special effect. The display module 1303 is used to:

[0195] If the target audio is played to the rhythm point timestamp, a flash line special effect is displayed on the target audio playback interface according to the rhythm point strength, in which the length of the flash line changes with the rhythm point strength;

[0196] Or, if the target audio is played to the rhythm point timestamp, a flashing line special effect in which the brightness of the flashing line changes with the rhythm point strength is displayed on the target audio playback interface according to the rhythm point strength;

[0197] Or, if the target audio is played to the rhythm point timestamp, on the playback interface of the target audio, a flash line special effect is displayed in which the flash line rotates at a changing angle according to the rhythm point strength.

[0198] In a possible implementation, the display module 1303 is used to:

[0199] If the audio parameters include the playback speed, the target special effect corresponding to the playback speed is a shadow special effect, and the corresponding shadow special effect is generated based on the collected user image; on the playback interface of the target audio, a shadow special effect in which the shaking frequency changes with the playback speed is displayed according to the playback speed;

[0200] If the audio parameter includes audio intensity, the target special effect corresponding to the audio intensity is a shadow special effect, and the corresponding shadow special effect is generated based on the collected user image; on the playback interface of the target audio, according to the audio intensity, a shadow special effect in which the shaking amplitude changes with the audio intensity is displayed;

[0201] If the audio parameters include a rhythm point timestamp, the target special effect corresponding to the rhythm point timestamp is a shadow effect, and the corresponding shadow effect is generated based on the collected user image; on the playback interface of the target audio, according to the rhythm point timestamp of the target audio, a shadow effect is displayed in which the shaking action changes with the rhythm point timestamp.

[0202] In a possible implementation, the playback interface of the target audio includes any one of a full-screen interface and a local interface.

[0203] In one possible implementation, the audio parameters include one or more of audio type, playback speed, audio intensity, rhythm point timestamp and rhythm point intensity; the target special effects include one or more of marquee effect, jitter effect, flashing line effect and shadow effect.

[0204] In a possible implementation, the acquisition module 1301 is used to:

[0205] If a play instruction for the target audio is received, the audio parameters of the target audio are determined based on the audio identifier of the target audio and the target correspondence, where the target correspondence is used to indicate the correspondence between the audio identifier and the audio parameters.

[0206] In a possible implementation, the acquisition module 1301 is used to:

[0207] If a play instruction for the target audio is received, an audio parameter acquisition request is sent to the server, where the audio parameter acquisition request carries the audio identifier of the target audio;

[0208] Receive the audio parameters returned by the server based on the audio ID.

[0209] The technical solution provided in the embodiment of the present application displays special effects corresponding to audio parameters of the audio on the audio playback interface during audio playback. Since the audio parameters can represent changes in the audio, the special effects determined based on the audio parameters can reflect the changes in the audio. By displaying special effects that change with the audio parameters, users can watch the special effects that reflect the changes in the audio while enjoying the audio, thereby enriching the display content during audio playback, providing users with a rich visual experience, and improving the user experience.

[0210] It should be noted that: the audio playback device provided in the above embodiment only uses the division of the above functional modules as an example when playing audio. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the audio playback device provided in the above embodiment and the audio playback method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0211] Fig.14 The structure block diagram of a terminal 1400 provided by an exemplary embodiment of the present application is shown. The terminal 1400 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) player, a laptop computer or a desktop computer. The terminal 1400 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.

[0212] Typically, the terminal 1400 includes a processor 1401 and a memory 1402 .

[0213] The processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1401 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 1401 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 1401 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 1401 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0214] The memory 1402 may include one or more computer-readable storage media, which may be non-transitory. The memory 1402 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 1402 is used to store at least one program code, which is used to be executed by the processor 1401 to implement the method performed by the terminal in the audio playback method provided in the method embodiment of the present application.

[0215] In some embodiments, the terminal 1400 may also optionally include: a peripheral device interface 1403 and at least one peripheral device. The processor 1401, the memory 1402 and the peripheral device interface 1403 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1403 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1404, a display screen 1405, a camera assembly 1406, an audio circuit 1407, a positioning assembly 1408 and a power supply 1409.

[0216] The peripheral device interface 1403 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1401 and the memory 1402. In some embodiments, the processor 1401, the memory 1402, and the peripheral device interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1401, the memory 1402, and the peripheral device interface 1403 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0217] The radio frequency circuit 1404 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1404 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1404 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1404 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, and the like. The radio frequency circuit 1404 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: a metropolitan area network, 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 1404 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0218] The display screen 1405 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1405 is a touch display screen, the display screen 1405 also has the ability to collect touch signals on the surface or above the surface of the display screen 1405. The touch signal can be input to the processor 1401 as a control signal for processing. At this time, the display screen 1405 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1405 can be one, set on the front panel of the terminal 1400; in other embodiments, the display screen 1405 can be at least two, respectively set on different surfaces of the terminal 1400 or in a folding design; in other embodiments, the display screen 1405 can be a flexible display screen, set on a curved surface or a folding surface of the terminal 1400. Even, the display screen 1405 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1405 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0219] The camera assembly 1406 is used to capture images or videos. Optionally, the camera assembly 1406 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1406 may also include a flash. The flash can be a monochrome 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.

[0220] The audio circuit 1407 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 1401 for processing, or input them into the radio frequency circuit 1404 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 terminal 1400. 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 1401 or the radio frequency circuit 1404 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 ranging. In some embodiments, the audio circuit 1407 may also include a headphone jack.

[0221] The positioning component 1408 is used to locate the current geographical location of the terminal 1400 to implement navigation or LBS (Location Based Service). The positioning component 1408 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system, Russia's Grenas system or the European Union's Galileo system.

[0222] The power supply 1409 is used to power various components in the terminal 1400. The power supply 1409 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1409 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0223] In some embodiments, the terminal 1400 further includes one or more sensors 1410 , including but not limited to: an acceleration sensor 1411 , a gyroscope sensor 1412 , a pressure sensor 1413 , a fingerprint sensor 1414 , an optical sensor 1415 , and a proximity sensor 1416 .

[0224] The acceleration sensor 1411 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1400. For example, the acceleration sensor 1411 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1401 can control the display screen 1405 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1411. The acceleration sensor 1411 can also be used for collecting game or user motion data.

[0225] The gyro sensor 1412 can detect the body direction and rotation angle of the terminal 1400, and the gyro sensor 1412 can cooperate with the acceleration sensor 1411 to collect the user's 3D actions on the terminal 1400. The processor 1401 can implement the following functions based on the data collected by the gyro sensor 1412: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0226] The pressure sensor 1413 may be provided at the side frame of the terminal 1400 and / or the lower layer of the display screen 1405. When the pressure sensor 1413 is provided at the side frame of the terminal 1400, it may detect the user's holding signal of the terminal 1400, and the processor 1401 may perform left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1413. When the pressure sensor 1413 is provided at the lower layer of the display screen 1405, the processor 1401 may control the operability control on the UI interface according to the user's pressure operation on the display screen 1405. The operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0227] The fingerprint sensor 1414 is used to collect the user's fingerprint, and the processor 1401 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 1414, or the fingerprint sensor 1414 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 1401 authorizes the user to perform relevant sensitive operations, which include unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 1414 can be set on the front, back, or side of the terminal 1400. When a physical button or a manufacturer logo is set on the terminal 1400, the fingerprint sensor 1414 can be integrated with the physical button or the manufacturer logo.

[0228] The optical sensor 1415 is used to collect the ambient light intensity. In one embodiment, the processor 1401 can control the display brightness of the display screen 1405 according to the ambient light intensity collected by the optical sensor 1415. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1405 is increased; when the ambient light intensity is low, the display brightness of the display screen 1405 is reduced. In another embodiment, the processor 1401 can also dynamically adjust the shooting parameters of the camera component 1406 according to the ambient light intensity collected by the optical sensor 1415.

[0229] The proximity sensor 1416, also called a distance sensor, is usually disposed on the front panel of the terminal 1400. The proximity sensor 1416 is used to collect the distance between the user and the front of the terminal 1400. In one embodiment, when the proximity sensor 1416 detects that the distance between the user and the front of the terminal 1400 is gradually decreasing, the processor 1401 controls the display screen 1405 to switch from the screen-on state to the screen-off state; when the proximity sensor 1416 detects that the distance between the user and the front of the terminal 1400 is gradually increasing, the processor 1401 controls the display screen 1405 to switch from the screen-off state to the screen-on state.

[0230] Those skilled in the art will understand that Fig.14 The structure shown in the figure does not constitute a limitation on the terminal 1400, and the terminal 1400 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.

[0231] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a program code, and the program code can be executed by a processor in a terminal to complete the audio playback method in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc (Compact-Disc Read-Only Memory), a magnetic tape, a floppy disk, and an optical data storage device.

[0232] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, 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.

[0233] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. An audio playback method, characterized in that: The method comprises: If a play instruction for the target audio is received, obtain audio parameters of the target audio; the audio parameters include at least one of a play speed, an audio intensity, and a rhythm point timestamp; Determine a target special effect corresponding to the audio parameter of the target audio; the target special effect includes a shadow special effect, and the shadow special effect refers to a special effect of a human-shaped shadow producing shaking; If the audio parameter includes a playback speed, the target special effect corresponding to the playback speed is a shadow special effect, and a corresponding shadow special effect is generated based on the collected user image; on the playback interface of the target audio, the shadow special effect whose shaking frequency changes with the playback speed is displayed according to the playback speed; If the audio parameter includes audio intensity, the target special effect corresponding to the audio intensity is a shadow special effect, and a corresponding shadow special effect is generated based on the collected user image; on the playback interface of the target audio, the shadow special effect whose shaking amplitude changes with the audio intensity is displayed according to the audio intensity; If the audio parameters include a rhythm point timestamp, the target special effect corresponding to the rhythm point timestamp is a shadow effect, and the corresponding shadow effect is generated based on the collected user image; on the playback interface of the target audio, according to the rhythm point timestamp of the target audio, the shadow effect in which the shaking action changes with the rhythm point timestamp is displayed.

2. The method according to claim 1, characterized in that The step of determining a target special effect corresponding to the audio parameter of the target audio includes: Based on the identifier of the audio parameter and the target correspondence, the target special effect corresponding to the audio parameter is determined, and the target correspondence includes the correspondence between the identifier of the audio parameter and the target special effect.

3. The method according to claim 1, characterized in that The step of determining a target special effect corresponding to the audio parameter of the target audio includes: Determining a special effect parameter corresponding to the audio parameter based on an identifier of the audio parameter of the target audio, a value of the audio parameter, and target relationship data, wherein the target relationship data includes data indicating a mapping relationship between the identifier of the audio parameter, the value of the audio parameter, and the special effect parameter; Based on the special effect parameters, the target special effect is generated.

4. The method according to claim 1, characterized in that: On the playback interface of the target audio, displaying the target special effect includes: On the playback interface of the target audio, the target special effects that change with the audio parameters are displayed according to the audio parameters of the target audio.

5. The method according to claim 1, characterized in that The audio parameter includes a playback speed, and the target special effect corresponding to the playback speed is a marquee special effect. On the playback interface of the target audio, displaying the target special effect includes: On the playback interface of the target audio, according to the playback speed of the target audio, the marquee special effect in which the scrolling speed changes with the playback speed is displayed.

6. The method according to claim 1, characterized in that The audio parameter includes audio intensity. The target special effect corresponding to the audio intensity is a marquee special effect. On the playback interface of the target audio, displaying the target special effect includes: On the playback interface of the target audio, according to the audio intensity of the target audio, the marquee special effect in which the shape of the scrolling line changes with the audio intensity is displayed.

7. The method according to claim 1, characterized in that The audio parameter includes a rhythm point timestamp, and the target special effect corresponding to the rhythm point timestamp is a jitter special effect. On the playback interface of the target audio, displaying the target special effect includes: If the target audio is played to the rhythm point timestamp, the jitter effect is displayed on the playback interface of the target audio.

8. The method according to claim 7, characterized in that The audio parameters also include the rhythm point strength, and the target special effect corresponding to the rhythm point strength is the flash line special effect. On the playback interface of the target audio, displaying the target special effect includes: If the target audio is played to the rhythm point timestamp, the flash line special effect in which the length of the flash line changes with the rhythm point strength is displayed on the playback interface of the target audio according to the rhythm point strength; Or, if the target audio is played to the rhythm point timestamp, the flashing line special effect in which the brightness of the flashing line changes with the rhythm point intensity is displayed on the playback interface of the target audio according to the rhythm point intensity; Or, if the target audio is played to the rhythm point timestamp, on the playback interface of the target audio, according to the rhythm point strength, the flashing line special effect in which the flashing line rotates at a changing angle as the rhythm point strength changes is displayed.

9. The method according to claim 1, characterized in that: The playback interface of the target audio includes any one of a full-screen interface and a local interface.

10. The method according to claim 1, characterized in that The audio parameters also include one or more of the audio type and the rhythm point strength; the target special effects also include one or more of the marquee special effects, the shaking special effects, and the flashing line special effects.

11. An audio playback device, characterized in that: The device comprises: An acquisition module, configured to acquire audio parameters of the target audio upon receiving a play instruction for the target audio; the audio parameters include at least one of a play speed, an audio intensity, and a rhythm point timestamp; A determination module, used to determine a target special effect corresponding to the audio parameter of the target audio; the target special effect includes a shadow special effect, and the shadow special effect refers to a special effect of a human-shaped shadow producing a shaking; A display module, for: if the audio parameter includes a playback speed, and the target special effect corresponding to the playback speed is a shadow effect, a corresponding shadow effect is generated based on the collected user image; on the playback interface of the target audio, according to the playback speed, the shadow effect in which the shaking frequency changes with the playback speed is displayed; if the audio parameter includes audio intensity, and the target special effect corresponding to the audio intensity is a shadow effect, a corresponding shadow effect is generated based on the collected user image; on the playback interface of the target audio, according to the audio intensity, the shadow effect in which the shaking amplitude changes with the audio intensity is displayed; if the audio parameter includes a rhythm point timestamp, and the target special effect corresponding to the rhythm point timestamp is a shadow effect, a corresponding shadow effect is generated based on the collected user image; on the playback interface of the target audio, according to the rhythm point timestamp of the target audio, the shadow effect in which the shaking action changes with the rhythm point timestamp is displayed.

12. A terminal, characterized in that: The terminal includes a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the audio playback method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program code, and the at least one program code is loaded and executed by a processor to implement the audio playback method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Special effect synchronization method and apparatus, and mobile terminal

    CN107770596A

  • Music style identification processing method and terminal

    CN108986842A

  • Song playing method and device

    CN109448761A

  • Visual audio playing method and device, electronic equipment and storage medium

    CN109635133A

  • Song playing method, device and system and computer storage medium

    CN111327928A