Audio playback method, device, and computer storage medium
By detecting user operations and utilizing historical playback information in the audio playback client, we predict user preferences and obtain audio preview segments from the target audio, which solves the problem of single extraction of audio preview segments in the existing technology and improves user experience and audio clicks. Rate.
Patent Information
- Application Number
- CN201911213418.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-02
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2039-12-02
AI Technical Summary
In existing audio playback methods, the extraction of audio preview clips is relatively simple and cannot be personalized according to the user's preferences, resulting in insufficient user experience.
By displaying the audio preview page of the audio playback client, it detects user operations, uses historical playback audio information and the attention mechanism to predict user preferences, and obtains audio preview clips that meet user preferences from the target audio.
It realizes the acquisition of satisfactory audio preview clips based on user preferences, improves user experience and audio click-through rate, and meets the preferences of different users.
Smart Images

Figure CN110968289B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an audio playback method, device, and computer storage medium. Background Art
[0002] Audio preview means playing a preview clip of audio before the user listens to the entire audio, so that the user can quickly preview the audio and form a first impression of the audio. Playing a suitable audio preview clip can increase the user's desire to listen to the entire audio, increase the audio's click-through rate, and user duration. However, currently, it is only possible to output a fixed climax clip corresponding to each audio through manual specification or algorithm calculation. The audio preview clip extracted by this audio playback method is relatively simple. Summary of the invention
[0003] The embodiments of the present application provide an audio playback method, device, and computer storage medium, which can obtain audio preview clips from target audio according to user preferences.
[0004] The present application provides an audio playback method, including:
[0005] Displaying an audio preview page of an audio playback client, wherein the audio preview page includes at least one audio identifier and an audio preview control corresponding to each audio identifier, wherein one audio identifier corresponds to one audio preview control, and the audio preview control is operated by a user to play an audio preview segment;
[0006] When a user's play preview operation on a target audio preview control is detected, the audio preview clip corresponding to the target audio preview control is played, wherein the audio preview clip is an audio clip selected from the target audio based on the user's historical playback audio, and the target audio is the audio indicated by the audio identifier corresponding to the target audio preview control.
[0007] Accordingly, the embodiment of the present application further provides an audio playback device, including:
[0008] A display module, used for displaying an audio preview page of the audio playback client, wherein the audio preview page includes at least one audio identifier and an audio preview control corresponding to each audio identifier, wherein one audio identifier corresponds to one audio preview control, and the audio preview control is operated by a user to play an audio preview segment;
[0009] A playback module is used to play the audio preview clip corresponding to the target audio preview control when a user's playback preview operation on the target audio preview control is detected, wherein the audio preview clip is an audio clip selected from the target audio based on the user's historical playback audio, and the target audio is the audio indicated by the audio identifier corresponding to the target audio preview control.
[0010] Optionally, in some embodiments, the playing module may include a determining submodule, a history obtaining submodule, a segment obtaining submodule and a playing submodule, as follows:
[0011] A determination submodule, configured to determine the target audio indicated by the audio identifier corresponding to the target audio preview control when a user's play preview operation on the target audio preview control is detected;
[0012] A history acquisition submodule, used to acquire multiple historical playback audios corresponding to the user;
[0013] A segment acquisition submodule, used to acquire an audio preview segment corresponding to the user from the target audio according to the historically played audio;
[0014] The playing submodule is used to play the audio preview clip.
[0015] Optionally, in some embodiments, the fragment acquisition submodule may include an information acquisition submodule, a set acquisition submodule, a fusion submodule, a prediction submodule and a first acquisition submodule, as follows:
[0016] An information acquisition submodule, used to acquire a set of audio information on multiple dimensions corresponding to the target audio, wherein the set of audio information includes audio feature information corresponding to multiple feature points on the dimensions;
[0017] A collection acquisition submodule is used to obtain a collection of historical audio information on multiple dimensions corresponding to each historically played audio;
[0018] A fusion submodule, for fusing multiple audio feature information in the audio information set for each dimension based on the historical audio information set, to obtain target audio feature information of the degree of correlation between the focus and the historical playback audio corresponding to each dimension;
[0019] A prediction submodule, configured to predict feature point preference information of the user for a plurality of feature points on each dimension of the target audio based on the target audio feature information corresponding to each dimension;
[0020] The first acquisition submodule is used to acquire an audio preview segment corresponding to the user from the target audio based on the feature point preference information of the multiple feature points in each dimension.
[0021] Optionally, in some embodiments, the information acquisition submodule may include a sampling submodule, a conversion submodule and a construction submodule, as follows:
[0022] A sampling submodule, used to sample the target audio in multiple dimensions to obtain an initial audio information set in multiple dimensions corresponding to the target audio;
[0023] A conversion submodule, used for converting a plurality of initial audio feature information in the initial audio information set to obtain a plurality of audio feature information;
[0024] A construction submodule is used to construct an audio information set on multiple dimensions corresponding to the target audio based on the audio feature information.
[0025] At this time, the sampling submodule can be specifically used to sample the target audio in the time dimension to obtain an initial audio information set corresponding to the target audio in the time dimension, transform the target audio in the frequency domain to obtain the transformed target audio, sample the transformed target audio in the frequency domain dimension to obtain an initial audio information set in the frequency domain dimension corresponding to the target audio.
[0026] Optionally, in some embodiments, the fusion submodule may include a first fusion submodule and a second fusion submodule, as follows:
[0027] The first fusion submodule is used to fuse multiple historical audio feature information in the historical audio information set corresponding to multiple historical playback audios for each dimension, so as to obtain fused historical audio information of multiple dimensions;
[0028] The second fusion submodule is used to fuse multiple audio feature information in the audio information set for each dimension based on the fused historical audio information to obtain target audio feature information corresponding to each dimension and the degree of correlation between the focus and the historical playback audio.
[0029] At this time, the first fusion sub-module can be specifically used to fuse multiple historical audio feature information in the historical audio information set corresponding to multiple historical playback audios in terms of time dimension to obtain the fused historical audio information in the time dimension, and to fuse multiple historical audio feature information in the historical audio information set corresponding to multiple historical playback audios in terms of frequency domain dimension to obtain the fused historical audio information in the frequency domain dimension, and to splice the fused historical audio information in the time dimension and the fused historical audio information in the frequency domain dimension to obtain the fused historical audio information in multiple dimensions.
[0030] Optionally, in some embodiments, the second fusion submodule may include a weight acquisition submodule and a third fusion submodule, as follows:
[0031] A weight acquisition submodule, used for acquiring, for each dimension, the weight corresponding to each audio feature information in the audio information set based on the fused historical audio information;
[0032] The third fusion submodule is used to fuse multiple audio feature information in the audio information set for each dimension based on the weight to obtain target audio feature information of the degree of correlation between the attention corresponding to each dimension and the historical playback audio.
[0033] At this time, the weight acquisition submodule can be specifically used to determine the similarity information between the fused historical audio information and each audio feature information in the audio information set for each dimension, and based on the similarity information, determine the weight corresponding to each audio feature information in the audio information set.
[0034] At this time, the prediction submodule can be specifically used to use the target audio feature information as the current input of the preference information prediction model for each dimension, and based on the preference information prediction model, perform a full connection operation on the target audio feature information to obtain the user's feature point preference information for multiple feature points on each dimension of the target audio.
[0035] Optionally, in some embodiments, the first acquisition submodule may include a division submodule, a fourth fusion submodule and a second acquisition submodule, as follows:
[0036] A division submodule, used for dividing the target audio into a plurality of initial audio segments based on a plurality of feature points in a time dimension;
[0037] A fourth fusion submodule, configured to fuse the feature point preference information of multiple dimensions corresponding to the initial audio segment to obtain fused preference information corresponding to the initial audio segment;
[0038] The second acquisition submodule is used to acquire an audio preview segment corresponding to the user from the target audio based on the fused preference information.
[0039] At this time, the fourth fusion submodule can be specifically used to fuse the feature point preference information corresponding to multiple feature points on the initial audio segment with respect to the time dimension, to obtain the fused time preference information corresponding to the initial audio segment, to perform frequency domain transformation on each initial audio segment, to obtain the transformed initial audio segment, to fuse the feature point preference information corresponding to multiple feature points on the initial audio segment with respect to the frequency domain dimension, to obtain the fused frequency domain preference information corresponding to the initial audio segment, to fuse the fused time preference information and the fused frequency domain preference information, to obtain the fused preference information corresponding to the initial audio segment.
[0040] At this time, the second acquisition sub-module can be specifically used to determine the length of the audio segment to be acquired, determine the number of segments of the initial audio segment corresponding to the audio segment length, construct a candidate audio segment corresponding to the initial audio segment based on the number of segments, determine the candidate preference information corresponding to the candidate audio segment based on the fused preference information, and acquire the audio preview segment corresponding to the user from the target audio based on the candidate preference information.
[0041] In addition, an embodiment of the present application further provides a computer storage medium, which stores a plurality of instructions, and the instructions are suitable for a processor to load to execute the steps in any one of the audio playback methods provided in the embodiments of the present application.
[0042] In addition, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in any audio playback method provided in the embodiment of the present invention are implemented.
[0043] The embodiment of the present application can display an audio preview page of an audio playback client, wherein the audio preview page includes at least one audio identifier and an audio preview control corresponding to each audio identifier, wherein one audio identifier corresponds to one audio preview control, and the audio preview control is operated by the user to play the audio preview segment, and when the user's play preview operation on the target audio preview control is detected, the audio preview segment corresponding to the target audio preview control is played, wherein the audio preview segment is an audio segment selected from the target audio based on the user's historical playback audio, and the target audio is the audio indicated by the audio identifier corresponding to the target audio preview control. The scheme can collect multiple historical playback audios corresponding to the user to understand the user's preference information, and add the information corresponding to the historical playback audio to the preference information prediction model through the attention mechanism, so as to obtain the audio preview segment that meets the user's preference in the target audio. Compared with the prior art, the scheme can understand the different preference information of different users when listening to audio based on the historical playback audio that the user has played, and obtain the audio preview segment according to the user's preference information. Therefore, through the audio playback method, audio preview segments that meet the preferences of different users can be obtained. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] 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 those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 is a schematic diagram of a scenario of an audio playback system provided in an embodiment of the present application;
[0046] Figure 2 is a first flow chart of the audio playback method provided in an embodiment of the present application;
[0047] Figure 3 is a second flow chart of the audio playback method provided in an embodiment of the present application;
[0048] Figure 4 is an information prediction flow chart of the preference information prediction model 1 provided in the embodiment of the present application;
[0049] Figure 5 is an information prediction flow chart of the preference information prediction model 2 provided in the embodiment of the present application;
[0050] Figure 6 It is a schematic diagram of a terminal page provided in an embodiment of the present application;
[0051] Figure 7is a structural diagram of an audio playback device provided in an embodiment of the present application;
[0052] Figure 8 It is a structural diagram of the network device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] Please refer to the drawings, where the same component symbols represent the same components, and the principles of the present application are illustrated by implementing them in an appropriate computing environment. The following description is based on the illustrated specific embodiments of the present application, which should not be considered as limiting other specific embodiments of the present application that are not described in detail herein.
[0054] In the following description, the specific embodiments of the present application will be described with reference to the steps and symbols performed by one or more computers, unless otherwise stated. Therefore, these steps and operations will be mentioned several times as being performed by a computer, and the computer execution referred to herein includes the operation of a computer processing unit by an electronic signal representing data in a structured form. This operation converts the data or maintains it at a location in the memory system of the computer, which can be reconfigured or otherwise change the operation of the computer in a manner familiar to testers in the field. The data structure maintained by the data is a physical location in the memory, which has specific characteristics defined by the data format. However, the principles of the present application are described in the above text, which does not represent a limitation, and testers in the field will understand that the various steps and operations described below can also be implemented in hardware.
[0055] The term "module" used herein can be regarded as a software object executed on the computing system. The different components, modules, engines and services described herein can be regarded as implementation objects on the computing system. The apparatus and method described herein can be implemented in software, and of course can also be implemented in hardware, all within the scope of protection of this application.
[0056] The terms "first", "second", and "third" in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or modules that are not listed, or some embodiments also include other steps or modules inherent to these processes, methods, products, or devices.
[0057] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0058] The embodiment of the present application provides an audio playback method, and the execution subject of the audio playback method can be the audio playback device provided in the embodiment of the present application, or a network device integrated with the audio playback device, wherein the audio playback device can be implemented in hardware or software. Among them, the network device can be a smart phone, a tablet computer, a handheld computer, a laptop computer, or a desktop computer. The network device includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets, or a cloud composed of multiple servers.
[0059] See also Figure 1 , Figure 1 A schematic diagram of an application scenario of the audio playback method provided in an embodiment of the present application, taking the audio playback device integrated in a network device as an example, the network device can display an audio preview page of the audio playback client, the audio preview page including at least one audio identifier, and an audio preview control corresponding to each audio identifier, wherein one audio identifier corresponds to one audio preview control, the audio preview control is operated by the user to play an audio preview segment, when a user's play preview operation on a target audio preview control is detected, the audio preview segment corresponding to the target audio preview control is played, wherein the audio preview segment is an audio segment selected from the target audio based on the user's historical playback audio, and the target audio is the audio indicated by the audio identifier corresponding to the target audio preview control.
[0060] The audio playback method provided in the embodiment of the present application relates to the natural language processing direction in the field of artificial intelligence. The embodiment of the present application can select audio clips according to the user's preferences by considering the characteristics of the historically played audio.
[0061] Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science. It attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making. Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level technology and software-level technology. Among them, artificial intelligence software technology mainly includes computer vision technology, machine learning / deep learning and other directions.
[0062] Among them, natural language processing (NLP) is the study of various theories and methods that can achieve effective communication between people and computers using natural language. Research in the field of natural language processing will involve natural language, that is, the language people use in daily life, so it is closely related to the study of linguistics. Natural language processing technology usually includes text processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies.
[0063] See also Figure 2 , Figure 2 The flowchart of the audio playback method provided in the embodiment of the present application is specifically described through the following embodiments:
[0064] 201. Display an audio preview page of the audio playback client.
[0065] Among them, the audio playback client is a client that can provide audio playback services to users. The audio playback client can be installed on the terminal and cooperate with the server to run. For example, the audio playback client can be an application or applet related to audio playback, etc. In addition, each audio playback client corresponds to a specific user. For example, user 1 can log in to audio playback client 1 through account 1, and user 2 can log in to audio playback client 2 through account 2. Then audio playback client 1 corresponds to user 1, audio playback client 2 corresponds to user 2, and so on.
[0066] The audio preview page may be a page located in the audio playback client that guides the user to play the audio preview clip. The audio preview page may include at least one audio identifier and an audio preview control corresponding to each audio identifier, and one audio identifier corresponds to one audio preview control. For example, the audio preview page may be as follows: Figure 6As shown, the audio preview page includes an audio list, which includes five audio identifiers, namely "Song 1", "Song 2", "Song 3", "Song 4", and "Song 5", and each audio identifier is followed by an audio preview control in the form of a button. Users can play the audio preview clip by clicking the audio preview control.
[0067] The audio identifier may be an identifier that can point to a specific audio, and the user can learn the specific audio corresponding to the audio identifier based on the audio identifier, and select the target audio based on the audio identifier. For example, the audio identifier corresponding to song 1 may be the audio name "song 1", or the audio thumbnail image corresponding to song 1, etc.
[0068] The audio preview control can be operated by the user to play the audio preview clip, and the audio preview control can have multiple forms of expression, such as the audio preview control can be a button, an icon, an input box, and the like.
[0069] In actual applications, for example, user 1 can log in to audio playback client 1 through account 1. At this time, the terminal can display the following information: Figure 6 The audio preview page shown includes an audio list, which includes five audio tags, namely, "Song 1", "Song 2", "Song 3", "Song 4", and "Song 5", and each audio tag corresponds to an audio preview control in the form of a button. For another example, the audio preview page may include an audio list, which includes five audio tags in the form of audio thumbnail images, each audio thumbnail image corresponds to an audio, and each audio tag corresponds to an audio preview control in the form of a button.
[0070] 202. When a play preview operation of a user on a target audio preview control is detected, an audio preview segment corresponding to the target audio preview control is played.
[0071] The target audio preview control may be the operated audio preview control, that is, the audio preview control targeted by the user's play preview operation. For example, when the user clicks the audio preview control corresponding to the audio identifier "Song 1" in the audio preview page, the audio preview control clicked by the user is the target audio preview control. The target audio preview control corresponds to the audio preview segment to be played, and the played audio preview segment is an audio segment selected from the target audio.
[0072] Among them, the target audio can be the audio indicated by the audio identifier corresponding to the target audio preview control, that is, the audio that needs to be previewed. For example, when the user clicks the audio preview control corresponding to the audio identifier "Song 1" in the audio preview page, the audio preview control clicked by the user is the target audio preview control, and the song 1 pointed to by the audio identifier "Song 1" corresponding to the target audio preview control is the target audio. In the embodiment of the present application, there are no excessive restrictions on the type, form, and content of the target audio. The target audio can be a song with lyrics, pure music without lyrics, a portion of audio intercepted from a song, a downloaded audio, or recorded audio, such as birdsong, speaking sounds, instrument sounds, etc., can all be used as target audio.
[0073] The audio preview clip is an audio clip selected from the target audio based on the user's historical playback audio. The audio preview clip corresponds to the user, that is, the audio preview clip played for different users can be different. By playing the audio preview clip, the user can quickly preview the target audio, saving the user's time and forming a first impression of the target audio, so that the user can quickly decide whether to listen to the complete target audio. For example, the audio preview clip can be the prelude part of the target audio, or the climax part of the target audio, and so on.
[0074] The play preview operation can be an operation performed by the user on the target audio preview control when the user needs to play the audio preview clip. The embodiment of the present application does not impose too many restrictions on the specific operation form of the play preview operation. The play preview operation can be a click operation on the target audio preview control in the form of a button, a sliding operation or a double-click operation on a preset area, and so on.
[0075] In actual applications, for example, user 1 can log in to audio playback client 1 through account 1, and the terminal displays the following information: Figure 6 The audio preview page shown. User 1 can click the audio preview control corresponding to "Song 2" on the audio preview page to implement the play preview operation. At this time, the terminal will detect the play preview operation of user 1. When the terminal detects the play preview operation, it can play the audio preview clip to implement the audio preview of song 2 by user 1. Among them, the audio preview clip is an audio clip in song 2, and the audio preview clip is the audio preview clip corresponding to user 1.
[0076] Among them, since the audio playback method can obtain audio preview clips according to the user's preference information, different audio preview clips may be obtained for different users. For example, user 1 logs in to audio playback client 1 through account 1, and user 2 logs in to audio playback client 2 through account 2, and both user 1 and user 2 choose to preview song 2. At this time, audio playback client 1 will obtain audio preview clip 1 corresponding to song 2 according to user 1's preference information, and play audio preview clip 1 to user 1; audio playback client 2 will obtain audio preview clip 2 corresponding to song 2 according to user 2's preference information, and play audio preview clip 2 to user 2.
[0077] In one embodiment, the user's preference information can be learned by obtaining the historical playback audio corresponding to the user, and the audio preview segment corresponding to the user's preference can be obtained. Specifically, the step of "when detecting the user's playback preview operation on the audio preview control, playing the audio preview segment for the user" may include:
[0078] When a play preview operation of a user on a target audio preview control is detected, determining a target audio indicated by an audio identifier corresponding to the target audio preview control;
[0079] Obtain multiple historical playback audios corresponding to the user;
[0080] According to the historically played audio, obtaining an audio preview segment corresponding to the user from the target audio;
[0081] Play the audio preview clip.
[0082] The historically played audio may be the audio that the user has played in the past. Since the audio playback method can obtain the audio preview segment from the target audio according to the user's preference, it is necessary to obtain the historically played audio corresponding to the user to understand the user's preference. For example, the multiple audios that user 1 has played in the past in audio playback client 1 can be used as the multiple historically played audios corresponding to user 1, and the multiple audios that user 2 has played in the past in audio playback client 2 can be used as the multiple historically played audios corresponding to user 2, and so on.
[0083] In actual applications, different users have different preferences for different clips in the audio. Some users like the prelude clip of the audio, some users like the climax clip of the audio, some users like the instrumental accompaniment clip of the audio, and some users like the vocal singing clip of the audio. Therefore, it is necessary to obtain the user's preference information and extract the audio preview clip from the target audio according to the different preference information of each user. For example, the terminal displays the audio preview page corresponding to the audio playback client 1. When it is detected that user 1 clicks the audio preview control corresponding to "Song 2" in the audio preview page, song 2 can be determined as the target audio, and multiple audios that user 1 has played historically in the audio playback client 1 are obtained as multiple historical playback audios corresponding to user 1. Then, according to the historical playback audio corresponding to user 1, the audio preview clip corresponding to user 1 is obtained from song 2, and the audio preview clip is played.
[0084] In one embodiment, the user's preference information can be considered based on the historical playback audio corresponding to the user by means of an attention mechanism. Specifically, the step of "obtaining an audio preview segment corresponding to the user from the target audio based on the historical playback audio" can include:
[0085] Acquire a set of audio information on multiple dimensions corresponding to the target audio, wherein the set of audio information includes audio feature information corresponding to multiple feature points on the dimensions;
[0086] Obtain a set of historical audio information on multiple dimensions corresponding to each historically played audio;
[0087] For each dimension, based on the historical audio information set, multiple audio feature information in the audio information set are fused to obtain target audio feature information of the correlation degree between the attention corresponding to each dimension and the historical playback audio;
[0088] Based on the target audio feature information corresponding to each dimension, predicting the user's feature point preference information for multiple feature points on each dimension of the target audio;
[0089] Based on the feature point preference information of the multiple feature points in each dimension, an audio preview segment corresponding to the user is obtained from the target audio.
[0090] In actual applications, the steps of obtaining the audio preview segment corresponding to the user from the target audio can be divided into five steps, as follows:
[0091] (1) Obtain a set of audio information on multiple dimensions corresponding to the target audio.
[0092] Among them, dimension is a thinking angle for observing, thinking and expressing something. In the embodiment of the present application, there can be multiple dimensions, for example, dimensions can include time dimension, frequency domain dimension, etc. Among them, the time dimension is a dimension that uses time as a description and expression of variable measurement scale. The frequency domain dimension is a dimension that describes and expresses variables in the frequency domain space.
[0093] The audio information set may be a set consisting of multiple audio feature information, and the audio information set may correspond to a dimension, for example, the audio information set may be a set corresponding to the time dimension; for another example, the audio information set may also be a set corresponding to the frequency domain dimension. Each audio feature information in the audio information set corresponds to a feature point on the corresponding dimension, for example, the audio information set on the time dimension includes audio feature information corresponding to multiple moments; for another example, the audio information set on the frequency domain dimension includes audio feature information corresponding to multiple frequency values.
[0094] The audio feature information may represent the feature information corresponding to a specific feature point of the audio in a certain dimension. For example, the audio feature information in the time dimension may represent the pitch of the audio at a certain moment. For another example, the audio feature information in the frequency domain dimension may represent the amplitude of the audio at a certain frequency value, and so on.
[0095] In practical applications, for example, song 1 can be used as the target audio, and the audio information set corresponding to song 1 in the time dimension and the audio information set corresponding to song 1 in the frequency domain dimension are obtained, wherein the audio information set corresponding to song 1 in the time dimension includes the pitch of song 1 at multiple moments. The audio information set corresponding to song 1 in the frequency domain dimension includes the amplitude of song 1 at multiple frequency values.
[0096] In one embodiment, obtaining audio information sets on multiple dimensions corresponding to the target audio may not be limited to obtaining audio information sets on the time dimension and frequency domain dimension corresponding to the target audio, but may also only obtain audio information sets on one dimension, such as only obtaining audio information sets on the time dimension corresponding to the target audio. Other types of audio information sets on dimensions may also be added according to actual conditions, and so on.
[0097] In one embodiment, the target audio may be sampled in multiple dimensions to obtain a set of audio information in multiple dimensions corresponding to the target audio. Specifically, the step of "obtaining a set of audio information in multiple dimensions corresponding to the target audio" may include:
[0098] Sampling the target audio in multiple dimensions to obtain a set of initial audio information in multiple dimensions corresponding to the target audio;
[0099] Converting a plurality of initial audio feature information in the initial audio information set to obtain a plurality of audio feature information;
[0100] Based on the audio feature information, an audio information set on multiple dimensions corresponding to the target audio is constructed.
[0101] In practical applications, for example, song 1 can be determined as the target audio, and then song 1 can be sampled in multiple dimensions to obtain an initial audio information set corresponding to each dimension of song 1, where the multiple dimensions can include a time dimension, a frequency dimension, etc. For the convenience of subsequent calculations, the acquired initial audio feature information can be converted into audio feature information of a fixed size, which can be in the form of a vector, and then the audio feature information corresponding to each dimension can be constructed into an audio information set corresponding to the dimension, thereby obtaining an audio information set corresponding to the target audio in multiple dimensions.
[0102] In one embodiment, the multiple dimensions may include a time dimension and a frequency domain dimension. Specifically, the step of “sampling the target audio in multiple dimensions to obtain an initial audio information set in multiple dimensions corresponding to the target audio” may include:
[0103] Sampling the target audio in a time dimension to obtain an initial audio information set in a time dimension corresponding to the target audio;
[0104] Performing frequency domain transformation on the target audio to obtain transformed target audio;
[0105] The transformed target audio is sampled in the frequency domain dimension to obtain an initial audio information set in the frequency domain dimension corresponding to the target audio.
[0106] In practical applications, for example, song 1 can be determined as the target audio, and then song 1 can be sampled in the time dimension to obtain an initial audio information set corresponding to song 1 in the time dimension, which includes a discrete time series T1 to T n , where T i represents the pitch of song 1 at the i-th moment. Then, song 1 can be transformed from the time domain to the frequency domain by continuous Fourier transform to obtain the transformed target audio, and the transformed target audio is sampled to obtain the initial audio information set on the frequency domain dimension corresponding to the target audio, which includes a discrete frequency sequence F1~F m , where F j Represents the amplitude of song 1 at the jth frequency value.
[0107] Among them, continuous Fourier transform is a transformation method that maps a set of functions to another set of functions. Through continuous Fourier transform, a function can be decomposed into a continuous frequency spectrum that constitutes the function. For example, through continuous Fourier transform, the target audio in the time dimension can be converted into the target audio in the frequency domain dimension.
[0108] In one embodiment, there may be multiple methods for converting target audio in the time dimension into target audio in the frequency domain dimension, not limited to the continuous Fourier transform given above. In the embodiment of the present application, any method that can convert the target audio from the time dimension to the frequency domain dimension may be used.
[0109] In one embodiment, the embodiment of the present application does not limit the sampling interval, that is, whether the target audio is sampled in the time dimension or in the frequency domain dimension, the sampling interval can be adjusted according to the actual situation. For example, when sampling song A in the time dimension, the sampling interval can be set to 1s. For another example, when sampling song A in the frequency domain dimension, the sampling interval can be set to 1Hz. If it is necessary to improve the accuracy of the audio clip acquisition method, a smaller sampling interval can be set.
[0110] Get the initial audio information set T1~T in the time dimension n , and the initial audio information set F1~F in the frequency domain dimension m Afterwards, the initial audio information set T1~T in the time dimension can be n , and the initial audio information set F1~F in the frequency domain dimension m In the example, each initial audio feature information is mapped to a vector of a fixed size to obtain multiple audio feature information, where the initial audio feature information T i The audio feature information obtained after conversion can be expressed as v(T i ), initial audio feature information F j The audio feature information obtained after conversion can be expressed as v(F j ). Get multiple audio feature information v(T1)~v(T n ), and v(F1)~v(F m ) can be obtained by v(T1)~v(T n ) constructs the audio information set on the time dimension corresponding to song 1, through v(F1)~v(F m )Construct the audio information set in the frequency domain dimension corresponding to song 1.
[0111] In one embodiment, there are multiple methods for converting the initial audio feature information into audio feature information. For example, the embedding method in natural language processing can be adopted to map each initial audio feature information to a vector of a fixed size to obtain multiple audio feature information. The embodiment of the present application does not limit the information conversion method, as long as the method can ensure that the initial audio feature information is converted into a feature vector form.
[0112] (2) Obtain a set of historical audio information in multiple dimensions corresponding to each historically played audio.
[0113] The historical audio information set may be a set composed of a plurality of historical audio feature information, and the historical audio information set is a set obtained based on the historical audio playback, and the historical audio information set may correspond to a dimension, for example, the historical audio information set may be a set corresponding to the time dimension; for another example, the historical audio information set may also be a set corresponding to the frequency domain dimension. Each historical audio feature information in the historical audio information set corresponds to a feature point on the corresponding dimension, for example, the historical audio feature information on the time dimension may represent: the pitch of the audio at a certain moment; for another example, the historical audio feature information on the frequency domain dimension may represent: the amplitude of the audio at a certain frequency value, and so on.
[0114] In practical applications, for example, user 1 can be identified as the user targeted by the audio playback method, and multiple historical playback audios corresponding to user 1 can be obtained. Then, the historical audio feature information on the time dimension and the historical audio feature information on the frequency domain dimension corresponding to each historical playback audio can be obtained respectively. Based on the obtained historical audio feature information, a historical audio information set on multiple dimensions can be constructed.
[0115] In one embodiment, multiple historical audio feature information may be fused to facilitate subsequent operations on the historical audio feature information. Specifically, the step of "for each dimension, based on the historical audio information set, fusion of multiple audio feature information in the audio information set to obtain target audio feature information corresponding to each dimension and the degree of correlation between the historical audio playback" may include:
[0116] For each dimension, multiple historical audio feature information in the historical audio information set corresponding to multiple historical playback audios are fused to obtain fused historical audio information of multiple dimensions;
[0117] For each dimension, based on the fused historical audio information, multiple audio feature information in the audio information set are fused to obtain target audio feature information corresponding to each dimension and the degree of correlation between the focus and the historical playback audio.
[0118] In practical applications, for example, the historical audio information sets of multiple dimensions corresponding to multiple historical playback audios can be fused according to the dimensions, that is, the multiple historical audio information sets corresponding to each dimension are fused to obtain the fused historical audio information corresponding to the dimension. Then, based on the fused historical audio information corresponding to a certain dimension, the multiple audio feature information in the audio information set corresponding to the dimension are fused to obtain the target audio feature information corresponding to the dimension, thereby obtaining the target audio feature information corresponding to multiple dimensions.
[0119] In one embodiment, the multiple dimensions may include a time dimension and a frequency domain dimension. Specifically, the step of “for each dimension, fusing multiple historical audio feature information in a historical audio information set corresponding to multiple historical playback audios to obtain fused historical audio information of multiple dimensions” may include:
[0120] With respect to the time dimension, multiple historical audio feature information in the historical audio information set corresponding to multiple historical playback audios are fused to obtain fused historical audio information in the time dimension;
[0121] In terms of the frequency domain dimension, multiple historical audio feature information in the historical audio information set corresponding to multiple historical playback audios are fused to obtain fused historical audio information in the frequency domain dimension;
[0122] The fused historical audio information of the time dimension and the fused historical audio information of the frequency domain dimension are spliced to obtain fused historical audio information of multiple dimensions.
[0123] In practical applications, for example, user 1 can be determined as the user targeted by the audio playback, and multiple historical playback audios corresponding to user 1 can be obtained: historical playback song 1, historical playback song 2, and historical playback song 3. Then, historical audio feature information on the time dimension and historical audio feature information on the frequency domain dimension corresponding to each historical playback audio can be obtained respectively. For example, historical audio feature information v1(T1)~v1(T2) on the time dimension corresponding to historical playback song 1 can be obtained. n ), the historical audio feature information v1(F1)~v1(F m ), historical audio feature information v2(T1)~v2(T n ), historical audio feature information v2(F1)~v2(F2) in the frequency domain corresponding to the historically played song 2 m ), historical audio feature information v3(T1)~v3(T n), and the historical audio feature information v3(F1) to v3(F2) in the frequency domain corresponding to the historically played song 3. m ).
[0124] After obtaining the historical audio feature information on the time dimension and the historical audio feature information on the frequency domain dimension corresponding to the multiple historical playback audios, the historical audio feature information on the same dimension can be fused, such as v1(T1)~v1(T n )、v2(T1)~v2(T n )、v3(T1)~v3(T n )…is fused into a whole feature vector, that is, fused into the fused historical audio information v(T user ), v1(F1)~v1(F m )、v2(F1)~v2(F m )、v3(F1)~v3(F m )…fused into a whole feature vector, that is, fused into the fused historical audio information v(F user Then, the fused historical audio information v(T user ), and the fused historical audio information v(F user ) are spliced together to obtain the feature vector v(user) corresponding to user A. Then, the target audio feature information is obtained based on the fused historical audio information.
[0125] In one embodiment, there may be multiple methods for fusing multiple historical audio feature information into fused historical audio information. For example, the information fusion method may include: taking an average value, taking a maximum value, taking a minimum value, and the like.
[0126] (iii) For each dimension, based on the historical audio information set, multiple audio feature information in the audio information set is fused to obtain target audio feature information corresponding to each dimension and the degree of correlation between the attention and the historical playback audio.
[0127] Among them, the attention mechanism can be applied to the preference information prediction model. When the input content is large, the information of the input sequence can be added to the preference information prediction model by adding the attention mechanism. For example, a weight can be assigned to each input, so that the input information can be added to the preference information prediction model for calculation, where each weight represents the amount of attention assigned to the corresponding input.
[0128] In practical applications, in order to take the user's preference information into account in the process of obtaining audio clips, so as to obtain the audio clips that the user prefers more, the user's preference information can be added to the model through the attention mechanism. For example, based on the fused historical audio information in the time dimension, multiple audio feature information in the audio information set in the time dimension can be fused to obtain the target audio feature information in the time dimension. And based on the fused historical audio information in the frequency domain dimension, multiple audio feature information in the audio information set in the frequency domain dimension can be fused to obtain the target audio feature information in the frequency domain dimension. Among them, the target audio feature information is information with the degree of correlation with the historically played audio added.
[0129] In one embodiment, the target audio feature information can be obtained by obtaining the weight corresponding to each audio feature information. Specifically, the step of "for each dimension, based on the fused historical audio information, fusing multiple audio feature information in the audio information set to obtain the target audio feature information of the correlation between the attention corresponding to each dimension and the historical playback audio" may include:
[0130] For each dimension, based on the fused historical audio information, respectively obtain the weight corresponding to each audio feature information in the audio information set;
[0131] For each dimension, based on the weight, multiple audio feature information in the audio information set are fused to obtain target audio feature information corresponding to each dimension and the degree of correlation between the attention and the historical playback audio.
[0132] In practical applications, for example, the fused historical audio information v(T user ), calculate each audio feature information v(T1)~v(T n ) corresponding to the weights α1~α n , where α1 is the weight corresponding to the audio feature information v(T1), α2 is the weight corresponding to the audio feature information v(T2)…α n is the audio feature information v(T n ) The weights corresponding to the time dimension are then added to the corresponding audio feature information, and the audio feature information is fused to obtain the target audio feature information of the time dimension, wherein the calculation formula of the target audio feature information of the time dimension can be as follows:
[0133] Target audio feature information in the time dimension = α1v(T1)+α2v(T2)+...+α n v(T n )
[0134] It is also possible to use the fused historical audio information v(F user ), calculate each audio feature information v(F1)~v(F m ) corresponding to the weights β1~β m , where β1 is the weight corresponding to the audio feature information v(F1), β2 is the weight corresponding to the audio feature information v(F2)…β m is the audio feature information v(F m ) corresponding weights. Then, the obtained weights can be added to the corresponding audio feature information, and the audio feature information can be fused to obtain the target audio feature information in the frequency domain dimension, wherein the calculation formula of the target audio feature information in the frequency domain dimension can be as follows:
[0135] Target audio feature information in frequency domain = β1v(F1)+β2v(F2)+...+β m v(F m )
[0136] In one embodiment, since the attention mechanism focuses on the correlation between the audio feature information and the historical audio playback, multiple audio feature information can be fused by calculating the similarity between the audio feature information and the fused historical audio information. Specifically, the step of "for each dimension, based on the fused historical audio information, respectively obtaining the weight corresponding to each audio feature information in the audio information set" may include:
[0137] For each dimension, determining similarity information between the fused historical audio information and each audio feature information in the audio information set;
[0138] Based on the similarity information, a weight corresponding to each audio feature information in the audio information set is determined.
[0139] In practical applications, for example, the fused historical audio information v(T user ), and each audio feature information v(T1)~v(T n ), and the calculated similarity is used as the weight α1~α corresponding to each audio feature information n You can also get the fused historical audio information v(F user ), and each audio feature information v(F1)~v(F m ), and the calculated similarity is used as the weight β1~β1 corresponding to each audio feature information m .
[0140] In one embodiment, there are multiple methods for obtaining the similarity between the fused historical audio information and each audio feature information in the audio information set. For example, since both the fused historical audio information and the audio feature information can be expressed in the form of feature vectors, the similarity value can be obtained by calculating the cosine similarity between the fused historical audio information and each audio feature information in the audio information set. For another example, the fused historical audio information and each audio feature information in the audio information set can be input into a single-layer neural network with parameters to obtain the similarity value between the fused historical audio information and each audio feature information in the audio information set, and so on.
[0141] (iv) based on the target audio feature information corresponding to each dimension, predicting the user's feature point preference information for multiple feature points on each dimension of the target audio.
[0142] The feature point preference information may be information that represents the user's preference for a certain feature point. For example, the larger the value of the feature point preference information is, the more the user likes the feature point. For example, the feature point preference information in the time dimension may represent the user's preference for a song at a certain moment. For another example, the feature point preference information in the frequency domain dimension may represent the user's preference for a song at a certain frequency value.
[0143] In practical applications, for example, the user's possible preference for multiple moments in the target audio can be predicted based on the target audio feature information corresponding to the time dimension, and this preference can be called the feature point preference information corresponding to the time dimension; and the user's possible preference for multiple frequency values corresponding to the target audio can be predicted based on the target audio feature information corresponding to the frequency domain dimension, and this preference can be called the feature point preference information corresponding to the frequency domain dimension.
[0144] In one embodiment, multiple preference information prediction models may be used to predict feature point preference information of multiple dimensions. Specifically, the step of "predicting the user's feature point preference information for multiple feature points on each dimension of the target audio based on the target audio feature information corresponding to each dimension" may include:
[0145] For each dimension, using the target audio feature information as current input of a preference information prediction model;
[0146] Based on the preference information prediction model, a full connection operation is performed on the target audio feature information to obtain feature point preference information of the user for multiple feature points on each dimension of the target audio.
[0147] Among them, the preference information prediction model can be a model in the field of natural language processing, through which the user's feature point preference information for multiple feature points on each dimension of the target audio can be predicted. There can be multiple preference information prediction models. For example, a summary model in the field of natural language processing can be used as a preference information prediction model, such as a summary model can be Sequence to Sequence. Among them, the preference information prediction model is not limited to an existing summary model, but can also be composed of multiple summary models. The preference information prediction model introduces the audio information of the user's corresponding historical playback audio through the attention mechanism, so that the audio preview clip can be obtained according to the user's preference.
[0148] Among them, Sequence to Sequence is a neural network with an Encoder (encoding)-Decoder (decoding) structure. Since its input is a sequence and its output is also a sequence, it is called Sequence to Sequence. Sequence to Sequence can generate an output sequence through a specific method based on a given input sequence. For example, Sequence to Sequence can be applied to the translation field. The input sequence can be "Hello", and the output will be "Hello"; for another example, Sequence to Sequence can also be applied to the human-computer dialogue field. The input sequence can be "Who are you?", and the output will be "I am so-and-so".
[0149] In practical applications, for example, a preference information prediction model can be obtained, and the target audio feature information can be input into the preference information prediction model. Then, based on the fully connected layer in the preference information prediction model, a fully connected operation is performed on the target audio feature information to obtain the user's feature point preference information for multiple feature points on each dimension of the target audio.
[0150] In one embodiment, since the target audio feature information involves feature information of different dimensions, it is necessary to use the preference information prediction model of the corresponding dimension to predict the preference information. Specifically, the step of "performing a full connection operation on the target audio feature information based on the preference information prediction model to obtain the user's feature point preference information for multiple feature points on each dimension of the target audio" may include:
[0151] Based on the preference information prediction model on the time dimension, a full connection operation is performed on the target audio feature information on the time dimension to obtain the feature point preference information of the user for multiple feature points on the time dimension of the target audio;
[0152] Based on the preference information prediction model in the frequency domain dimension, a full connection operation is performed on the target audio feature information in the frequency domain dimension to obtain the feature point preference information of the user for multiple feature points in the frequency domain dimension of the target audio.
[0153] In practical applications, for example, Figure 4 As shown, the preference information prediction model 1 in the time dimension can be obtained, and the obtained target audio feature information in the time dimension is used as the current input of the preference information prediction model 1. Then, according to the fully connected layer in the preference information prediction model 1, the target audio feature information in the time dimension is fully connected to obtain the user's preference information for feature points at multiple time points in the target audio. For example, the user's preference information P(T1) for the feature point at the first second in the target audio, the preference information P(T2) for the feature point at the second second, and the preference information P(T3) for the feature point at the ith second can be predicted. i )…The feature point preference information P(T) at the nth second n ). If the user is interested, it is set to 1, and the user is not interested, it is set to 0, the feature point preference information P(T i ) can be a probability value between 0 and 1.
[0154] like Figure 5 As shown, the preference information prediction model 2 in the frequency domain dimension can also be obtained, and the target audio feature information in the frequency domain dimension obtained is used as the current input of the preference information prediction model 2. Then, according to the fully connected layer in the preference information prediction model 2, the target audio feature information in the frequency domain dimension is fully connected to obtain the user's feature point preference information for multiple frequency values of the target audio. For example, the user's feature point preference information P(F1) for the 1Hz frequency value of the target audio, the feature point preference information P(F2) for the 2Hz frequency value…the feature point preference information P(F3) for the jHz frequency value can be predicted. j )...feature point preference information P(F) of mHz frequency value m ). Since the probability here is obtained by decomposing the target audio as a whole, the predicted feature point preference information P(F j ), indicating the user's preference for the i-th frequency component of the target audio. If the user is interested in the target audio, it is set to 1, and the user is not interested in the target audio, it is set to 0. j ) can be a probability value between 0 and 1.
[0155] In one embodiment, a preference information prediction model 1 and a preference information prediction model 2 that can accurately predict the preference information of feature points can be obtained through training. For example, a labeled song can be obtained as training sample 1, in which the user's preference for each moment of the song is labeled, and the interested song is labeled as 1, and the uninterested song is labeled as 0, and then the preference information prediction model 1 is trained until convergence. A labeled song can also be obtained as training sample 2, in which the user's preference for each frequency value of the song is labeled, and the interested song is labeled as 1, and the uninterested song is labeled as 0, and then the preference information prediction model 2 is trained until convergence.
[0156] Among them, the user's preference for the song at each moment in the training sample can be obtained through information such as the number of times the user listened to the song and the time when the user jumped. For example, if it is detected that the user jumps to the lyrics part of the song to start playing, it can be said that the user likes to skip the prelude and start listening to the song from the lyrics. Therefore, according to the user's jump operation, the prelude part can be marked as the user is not interested, and the lyrics part can be marked as the user is interested. For another example, if it is detected that the user stops playing the song at a certain moment, it can be said that the user does not like this part of the song. Therefore, this part can be marked as the user is not interested, and so on.
[0157] (V) Based on the feature point preference information of the multiple feature points in each dimension, an audio preview segment corresponding to the user is obtained from the target audio.
[0158] In practical applications, for example, obtaining feature point preference information P(T1)~P(T n ), and feature point preference information P(F1) to P(F m ) After that, the audio preview segment corresponding to the user can be obtained from the target audio according to the preference information of multiple feature points, and the audio preview segment can be output.
[0159] In one embodiment, the target audio may be divided into multiple segments and the preference information of each segment may be calculated respectively, thereby obtaining the audio preview segment. Specifically, the step of "obtaining the audio preview segment corresponding to the user from the target audio based on the feature point preference information of the multiple feature points on each dimension" may include:
[0160] Based on multiple feature points in the time dimension, dividing the target audio into multiple initial audio segments;
[0161] Fusing the feature point preference information of multiple dimensions corresponding to the initial audio segment to obtain fused preference information corresponding to the initial audio segment;
[0162] Based on the fused preference information, an audio preview segment corresponding to the user is obtained from the target audio.
[0163] In practical applications, for example, since the target audio includes multiple feature points in the time dimension, several feature points can be defined as a group to divide the target audio into multiple initial audio segments. Then, based on the preference information of the multiple feature points corresponding to each initial segment, the fused preference information corresponding to each initial audio segment is obtained, and based on the fused preference information, an audio preview segment corresponding to the user is obtained from the target audio.
[0164] In one embodiment, since each initial audio segment corresponds to feature point preference information of multiple dimensions, it is necessary to fuse the feature point preference information of multiple dimensions. Specifically, the step of "fusing the feature point preference information of multiple dimensions corresponding to the initial audio segment to obtain the fused preference information corresponding to the initial audio segment" may include:
[0165] With respect to the time dimension, the feature point preference information corresponding to the multiple feature points on the initial audio segment is fused to obtain fused time preference information corresponding to the initial audio segment;
[0166] Perform frequency domain transformation on each initial audio segment to obtain a transformed initial audio segment;
[0167] In the frequency domain dimension, the feature point preference information corresponding to the multiple feature points on the initial audio segment is fused to obtain fused frequency domain preference information corresponding to the initial audio segment;
[0168] The fused time preference information and the fused frequency domain preference information are fused to obtain fused preference information corresponding to the initial audio segment.
[0169] In practical applications, for example, multiple moments in the time dimension and the pitch corresponding to each moment can be obtained, such as T1-1s, T2-2s, T3-3s, T4-4s…T n -ns. Then according to the time series T1~T n , divide the target audio into multiple initial audio segments, such as dividing the target audio into G1~G q , q initial audio segments. The q initial audio segments obtained by division can be respectively expressed as: G1 = {T1, T2, T3, T4}, G2 = {T5, T6, T7, T8}…G q ={T n-3 ,T n-2 ,T n-1 ,T nThen, the q initial audio segments can be subjected to fast Fourier transform respectively to obtain the transformed initial audio segment corresponding to each initial audio segment. For example, G i Perform fast Fourier transform and get G i The corresponding spectrum F1-G i ~F m -G i Among them, F1-G i ~F m -G i With F1~F m The difference is that F1-G i ~F m -G i Indicates the spectrum corresponding to the time series contained in an initial audio clip, and F1~F m Indicates the frequency spectrum corresponding to the entire target audio.
[0170] Since T1~T n Each element in corresponds to a feature point preference information P(T1)~P(T n ), and F1-G i ~F m -G i Each element in corresponds to a feature point preference information P(F1)~P(F m ), therefore, G1~G q The fused temporal preference information P(TG i ), and the fused frequency domain preference information P(FG i ), where the fused time preference information P(TG i ) can represent the user's preference for the time period corresponding to the initial audio clip. The fused frequency domain preference information P(FG i ) can represent the user's preference for each frequency value corresponding to the initial audio segment. The fused time preference information P(TG i ), and the fused frequency domain preference information P(FG i ) can be calculated as follows:
[0171]
[0172]
[0173] Get G1~G q The fused temporal preference information P(TG i ), and the fused frequency domain preference information P(FG i ) After that, the feature point preference information of multiple dimensions can be fused to obtain G1~Gq The fused preference information P corresponding to each initial audio segment in final (G i ), where the fused preference information P final (G i ) can be calculated as follows:
[0174] P final (G i )=P(TG i )·P(FG i )
[0175] The fused preference information indicates the user's preference for the segment corresponding to the initial audio segment. final (G1)~P final (G q ). Then, according to the obtained multiple pieces of fused preference information, an audio preview segment can be obtained from the target audio, and the audio preview segment can be output.
[0176] In one embodiment, according to the time series T1-T n When the target audio is grouped, the number of elements in each initial audio segment can be adjusted according to the actual situation, that is, it is not limited to including 4 elements in an initial audio segment. When the number of elements in each initial audio segment is adjusted to a, the fused time preference information P(TG i ) can be calculated as follows:
[0177]
[0178] In one embodiment, since the embodiment of the present application divides the audio based on the time dimension, when obtaining the audio information sets on multiple dimensions corresponding to the target audio, it is sufficient to ensure that the audio information sets on the time dimension are obtained. That is, only the information on the time dimension can be considered in the audio playback method. In order to improve the accuracy of the audio playback method, the frequency domain dimension or other dimensions can also be considered.
[0179] In one embodiment, since the audio segment to be previewed is usually set to a certain duration, the audio preview segment can be obtained according to the preset duration. Specifically, the step of "obtaining the audio preview segment corresponding to the user from the target audio based on the fused preference information" may include:
[0180] Determine the duration of the audio clip to be obtained;
[0181] Determining the number of segments of the audio segment whose duration corresponds to the initial audio segment;
[0182] Based on the number of segments, construct candidate audio segments corresponding to the initial audio segments;
[0183] Based on the fused preference information, determining candidate preference information corresponding to the candidate audio segment;
[0184] Based on the candidate preference information, an audio preview segment corresponding to the user is obtained from the target audio.
[0185] In practical applications, since the duration of each initial audio segment is generally very short, the initial audio segments can be combined according to the duration of the audio segments to be obtained. For example, if the duration of each initial audio segment is 0.5s, and the duration of the audio segment to be obtained is predetermined to be 5s, then the duration of the audio segment is the same as the duration of the 10 initial audio segments, then according to G i ~G i+9 Construct the initial audio segment G i The corresponding candidate audio segment, and then according to P final (G i )~P final (G i+9 ), determine the candidate audio segment G i ~G i+9 The corresponding candidate preference information can be used as the candidate audio segment with the highest candidate preference information value as the final output audio preview segment. i ~G i+9 The corresponding calculation formula for candidate preference information can be as follows:
[0186] Candidate preference information = P final (G i )+P final (G i+1 )+...+P final (G i+9 )
[0187] There are multiple methods for calculating the candidate preference information corresponding to the candidate audio segment based on the fused preference information. For example, as shown above, the candidate preference information can be obtained by calculating the sum of multiple fused preference information. For another example, the candidate preference information can be obtained by calculating the average of multiple fused preference information, and so on.
[0188] In one embodiment, when selecting an audio preview segment based on candidate preference information, the audio segment with the highest value may be used as the audio preview segment. The method for selecting the audio preview segment may also be adjusted based on actual conditions, such as using the audio segment with the lowest value as the audio preview segment, or using the audio segment with the highest average value as the audio preview segment, and so on.
[0189] In one embodiment, the user's song preview is not limited to the above-mentioned method. For example, the user can also select the target audio from the audio list of the audio preview page. At this time, the terminal can display the page corresponding to the target audio, and then the user can send a song preview request by clicking the preset area on the page corresponding to the target audio, or the user can send a song preview request by shaking the phone, flipping the phone, etc. At this time, the terminal can play the audio preview clip corresponding to the target audio according to the song preview request, so that the user can preview the target audio. Among them, the embodiment of the present application does not limit the method of sending a song preview request.
[0190] In one embodiment, the audio playback method may not only be limited to the song preview scenario, but may also be applied to video, audio, and other segment selection scenarios. For example, when a user wants to play a part of a multimedia file to understand the entire multimedia file, or to display the selected segment to the public, the audio playback method may consider the user's needs and add the user's demand information to the model, thereby selecting a multimedia segment that meets the user's needs.
[0191] As can be seen from the above, the embodiment of the present application can display the audio preview page of the audio playback client, and the audio preview page includes at least one audio identifier and an audio preview control corresponding to each audio identifier, wherein one audio identifier corresponds to one audio preview control, and the audio preview control is operated by the user to play the audio preview segment, and when the user's play preview operation for the target audio preview control is detected, the audio preview segment corresponding to the target audio preview control is played, wherein the audio preview segment is an audio segment selected from the target audio based on the user's historical playback audio, and the target audio is the audio indicated by the audio identifier corresponding to the target audio preview control. The scheme can collect multiple historical playback audios corresponding to the user to understand the user's preference information, and add the information corresponding to the historical playback audio to the preference information prediction model through the attention mechanism, so as to obtain the audio preview segment that meets the user's preference in the target audio. Compared with the prior art, the scheme can understand the different preference information of different users when listening to audio based on the historical playback audio that the user has played, and obtain the audio preview segment according to the user's preference information. Therefore, through the audio playback method, audio preview segments that meet the preferences of different users can be obtained.
[0192] According to the method described in the above embodiment, the following will be further described in detail by taking the example of the audio playback device being specifically integrated into a network device.
[0193] refer to Figure 3 The specific process of the audio playback method of the embodiment of the present application can be as follows:
[0194] 301. The network device displays an audio preview page of the audio playback client.
[0195] In actual applications, for example, user 1 can log in to audio playback client 1 through account 1. At this time, the terminal can display the following information: Figure 6 The Audio Preview page is shown.
[0196] 302. When detecting a user's play preview operation on an audio preview control, the network device determines a target song.
[0197] In actual applications, for example, user 1 can log in to audio playback client 1 through account 1, and the terminal displays the following information: Figure 6 The audio preview page shown. User 1 can click the audio preview control corresponding to song 1 on the audio preview page to implement the play preview operation. At this time, the terminal will detect the play preview operation of user 1. When the terminal detects the play preview operation, song 1 can be determined as the target song.
[0198] 303. The network device obtains an audio information set in a time dimension and an audio information set in a frequency domain dimension corresponding to the target song.
[0199] In practical applications, for example, song 1 can be sampled in the time dimension to obtain an initial audio information set corresponding to song 1 in the time dimension, which includes a discrete time series T1 to T2. n , where T i represents the pitch of song 1 at the i-th moment. Then, song 1 can be transformed from the time domain to the frequency domain by continuous Fourier transform, and the song 1 in the transformed frequency domain is sampled to obtain the initial audio information set in the frequency domain dimension corresponding to song 1, which includes a discrete frequency sequence F1~F m , where F j Represents the amplitude of song 1 at the jth frequency value.
[0200] Get the initial audio information set T1~T in the time dimension n , and the initial audio information set F1~F in the frequency domain dimension m Afterwards, the initial audio information set T1~T in the time dimension can be n , and the initial audio information set F1~F in the frequency domain dimension m Each initial audio feature information is mapped to a vector of a fixed size to obtain multiple audio feature information, among which the initial audio feature information T i The audio feature information obtained after conversion can be expressed as v(T i), initial audio feature information F j The audio feature information obtained after conversion can be expressed as v(F j ). Get multiple audio feature information v(T1)~v(T n )、v(F1)~v(F m ) can be obtained by v(T1)~v(T n ) constructs the audio information set on the time dimension corresponding to song 1, through v(F1)~v(F m )Construct the audio information set in the frequency domain dimension corresponding to song 1.
[0201] 304. The network device obtains multiple historically played songs corresponding to the user.
[0202] In actual applications, for example, multiple songs that user 1 has played historically in audio playback client 1 can be used as multiple historically played songs corresponding to user 1.
[0203] 305. The network device obtains the fused historical audio information in the time dimension and the fused historical audio information in the frequency domain dimension corresponding to the multiple historically played songs.
[0204] In practical applications, for example, the historical audio feature information on the time dimension and the historical audio feature information on the frequency domain dimension corresponding to each historically played song can be obtained respectively. For example, the method of 303 can be used to obtain the historical audio feature information v1(T1)~v1(T2) on the time dimension corresponding to the historically played song 1. n ), the historical audio feature information v1(F1)~v1(F m ), historical audio feature information v2(T1)~v2(T n ), historical audio feature information v2(F1)~v2(F2) in the frequency domain corresponding to the historically played song 2 m ), historical audio feature information v3(T1)~v3(T n ), and the historical audio feature information v3(F1) to v3(F2) in the frequency domain corresponding to the historically played song 3. m ),etc.
[0205] After obtaining the historical audio feature information in the time dimension and the historical audio feature information in the frequency domain dimension corresponding to each historically played song, the historical audio feature information in the same dimension can be fused, such as v1(T1)~v1(T n )、v2(T1)~v2(T n )、v3(T1)~v3(T n)…is fused into a whole feature vector, that is, fused into the fused historical audio information v(T user ), v1(F1)~v1(F m )、v2(F1)~v2(F m )、v3(F1)~v3(F m )…fused into a whole feature vector, that is, fused into the fused historical audio information v(F user Then, the fused historical audio information v(T user ), and the fused historical audio information v(F user ) together to obtain the feature vector v(user) corresponding to user A.
[0206] 306. The network device fuses multiple audio feature information in the audio information set on the time dimension according to the fused historical audio information on the time dimension to obtain target audio feature information on the time dimension.
[0207] In practical applications, for example, the fused historical audio information v(T user ), calculate each audio feature information v(T1)~v(T n ) corresponding to the weights α1~α n , where α1 is the weight corresponding to the audio feature information v(T1), α2 is the weight corresponding to the audio feature information v(T2)…α n is the audio feature information v(T n ) The weights corresponding to the time dimension are then added to the corresponding audio feature information, and the audio feature information is fused to obtain the target audio feature information of the time dimension, wherein the calculation formula of the target audio feature information of the time dimension can be as follows:
[0208] Target audio feature information in the time dimension = α1v(T1)+α2v(T2)+...+α n v(T n )
[0209] 307. The network device predicts the user's preference information of feature points at multiple moments based on the target audio feature information in the time dimension and the preference information prediction model in the time dimension.
[0210] In practical applications, for example, the preference information prediction model 1 corresponding to the time dimension can be obtained, and the target audio feature information of the time dimension obtained can be used as the current input of the preference information prediction model 1. Then, according to the fully connected layer in the preference information prediction model 1, the target audio feature information of the time dimension is fully connected to obtain the user's preference information for feature points at multiple time points in the target audio. For example, the user's preference information P(T1) for the feature points at the first second of the target audio, the preference information P(T2) for the feature points at the second second, and the preference information P(T3) for the feature points at the ith second can be predicted. i )…The feature point preference information P(T) at the nth second n ). If the user is interested, it is set to 1, and the user is not interested, it is set to 0, the feature point preference information P(T i ) can be a probability value between 0 and 1.
[0211] 308. The network device fuses multiple audio feature information in the audio information set in the frequency domain dimension according to the fused historical audio information in the frequency domain dimension to obtain target audio feature information in the frequency domain dimension.
[0212] In practical applications, for example, the fused historical audio information v(F user ), calculate each audio feature information v(F1)~v(F m ) corresponding to the weights β1~β m , where β1 is the weight corresponding to the audio feature information v(F1), β2 is the weight corresponding to the audio feature information v(F2)…β m is the audio feature information v(F m ) corresponding weights. Then, the obtained weights can be added to the corresponding audio feature information, and the audio feature information can be fused to obtain the target audio feature information in the frequency domain dimension, wherein the calculation formula of the target audio feature information in the frequency domain dimension can be as follows:
[0213] Target audio feature information in frequency domain = β1v(F1)+β2v(F2)+...+β m v(F m )
[0214] 309. The network device predicts the user's feature point preference information for each frequency value based on the target audio feature information in the frequency domain dimension and the preference information prediction model in the frequency domain dimension.
[0215] In practical applications, for example, the preference information prediction model 2 corresponding to the frequency domain dimension can be obtained, and the target audio feature information of the obtained frequency domain dimension can be used as the current input of the preference information prediction model 2. Then, according to the fully connected layer in the preference information prediction model 2, the target audio feature information of the frequency domain dimension is fully connected to obtain the user's feature point preference information for multiple frequency values of the target audio. For example, the user's feature point preference information P(F1) for the 1Hz frequency value of the target audio, the feature point preference information P(F2) for the 2Hz frequency value…the feature point preference information P(F3) for the jHz frequency value can be predicted. j )...feature point preference information P(F) of mHz frequency value m ). Since the probability here is obtained by decomposing the target audio as a whole, the predicted feature point preference information P(F j ), indicating the user's preference for the i-th frequency component of the target audio. If the user is interested in the target audio, it is set to 1, and the user is not interested in the target audio, it is set to 0. j ) can be a probability value between 0 and 1.
[0216] 310. The network device obtains an audio preview segment from the target song according to the user's feature point preference information at multiple moments and the user's feature point preference information for each frequency value, and plays the audio preview segment.
[0217] In practical applications, for example, multiple moments in the time dimension and the pitch corresponding to each moment can be obtained, such as T1-1s, T2-2s, T3-3s, T4-4s…T n -ns. Then according to the time series T1~T n , divide the target audio into multiple initial audio segments, such as dividing the target audio into G1~G q , q initial audio segments. The q initial audio segments obtained by division can be expressed as: G1 = {T1, T2, T3, T4}, G2 = {T5, T6, T7, T8}…G q ={T n-3 ,T n-2 ,T n-1 ,T n Then, the q initial audio clips can be subjected to fast Fourier transform to obtain the spectrum corresponding to each initial audio clip. For example, i Perform fast Fourier transform and get G i The corresponding spectrum F1-G i ~F m -G i Among them, F1-G i ~F m -Gi With F1~F m The difference is that F1-G i ~F m -G i Indicates the spectrum corresponding to the time series contained in an initial audio clip, and F1~F m Indicates the frequency spectrum corresponding to the entire target audio.
[0218] Since T1~T n Each element in corresponds to a feature point preference information P(T1)~P(T n ), and F1-G i ~F m -G i Each element in corresponds to a feature point preference information P(F1)~P(F m ), therefore, G1~G q The fused temporal preference information P(TG i ), and the fused frequency domain preference information P(FG i ), where the fused time preference information P(TG i ) can represent the user's preference for the time period corresponding to the initial audio clip. The fused frequency domain preference information P(FG i ) can represent the user's preference for each frequency value corresponding to the initial audio segment. The fused time preference information P(TG i ), and the fused frequency domain preference information P(FG i ) can be calculated as follows:
[0219]
[0220]
[0221] Get G1~G q The fused temporal preference information P(TG i ), and the fused frequency domain preference information P(FG i ) After that, the feature point preference information of multiple dimensions can be fused to obtain G1~G q The fused preference information P corresponding to each initial audio segment in final (G i ), where the fused preference information P final (G i ) can be calculated as follows:
[0222] P final (G i )=P(TG i)·P(FG i )
[0223] The fused preference information indicates the user's preference for the segment corresponding to the initial audio segment. final (G1)~P final (G q ). Then, according to the obtained multiple pieces of fused preference information, an audio preview segment can be obtained from the target song, and the audio preview segment can be played.
[0224] If the duration of each initial audio segment is 0.5s, and the duration of the audio segment to be obtained is predetermined to be 5s, then the duration of the 10 initial audio segments is the same as the duration of the audio segment. i , according to G i ~G i+9 Construct the initial audio segment G i The corresponding candidate audio segment, and then according to P final (G i )~P final (G i+9 ), determine the candidate audio segment G i ~G i+9 The corresponding candidate preference information can be used as the candidate audio segment with the highest candidate preference information value as the final output audio preview segment. i ~G i+9 The corresponding calculation formula for candidate preference information can be as follows:
[0225] Candidate preference information = P final (G i )+P final (G i+1 )+...+P final (G i+9 )
[0226] As can be seen from the above, the embodiment of the present application can display the audio preview page of the audio playback client through a network device, and when the user's playback preview operation on the audio preview control is detected, the target song is determined, the audio information set on the time dimension and the audio information set on the frequency domain dimension corresponding to the target song are obtained, multiple historically played songs corresponding to the user are obtained, and the fused historical audio information on the time dimension and the fused historical audio information on the frequency domain dimension corresponding to the multiple historically played songs are obtained. According to the fused historical audio information on the time dimension, multiple audio feature information in the audio information set on the time dimension is fused to obtain the target audio feature information on the time dimension, and based on the fused historical audio information on the time dimension The target audio feature information in the time dimension and the preference information prediction model in the time dimension predict the user's feature point preference information for multiple moments, and according to the fused historical audio information in the frequency domain dimension, multiple audio feature information in the audio information set in the frequency domain dimension are fused to obtain the target audio feature information in the frequency domain dimension, and based on the target audio feature information in the frequency domain dimension and the preference information prediction model in the frequency domain dimension, the user's feature point preference information for each frequency value is predicted, and according to the user's feature point preference information for multiple moments and the user's feature point preference information for each frequency value, an audio preview segment is obtained from the target song, and the audio preview segment is played. The scheme can collect multiple historical playback audios corresponding to the user to understand the user's preference information, and add the information corresponding to the historical playback audio to the preference information prediction model through the attention mechanism, so as to obtain the audio preview segment that meets the user's preference in the target audio. Compared with the prior art, the scheme can understand the different preference information of different users when listening to audio based on the historical playback audio that the user has played, and obtain the audio preview segment based on the user's preference information. Therefore, through the audio playback method, audio preview segments that meet the preferences of different users can be obtained.
[0227] In order to better implement the above method, an embodiment of the present application may also provide an audio playback device, which may be specifically integrated in a network device, which may include a server, a terminal, etc., wherein the terminal may include: a mobile phone, a tablet computer, a laptop computer or a personal computer (PC, Personal Computer), etc.
[0228] For example, Figure 7 As shown, the audio playback device may include a display module 71 and a playback module 72, as follows:
[0229] A display module 71 is used to display an audio preview page of the audio playback client, wherein the audio preview page includes at least one audio identifier and an audio preview control corresponding to each audio identifier, wherein one audio identifier corresponds to one audio preview control, and the audio preview control is operated by a user to play an audio preview segment;
[0230] The playback module 72 is used to play the audio preview clip corresponding to the target audio preview control when a playback preview operation of the user on the target audio preview control is detected, wherein the audio preview clip is an audio clip selected from the target audio based on the user's historical playback audio, and the target audio is the audio indicated by the audio identifier corresponding to the target audio preview control.
[0231] In one embodiment, the playing module 72 may include a determining submodule 721, a history obtaining submodule 722, a segment obtaining submodule 723 and a playing submodule 724, as follows:
[0232] A determination submodule 721 is configured to determine the target audio indicated by the audio identifier corresponding to the target audio preview control when a user's play preview operation on the target audio preview control is detected;
[0233] A history acquisition submodule 722 is used to acquire multiple historical playback audios corresponding to the user;
[0234] The segment acquisition submodule 723 is used to acquire an audio preview segment corresponding to the user from the target audio according to the historically played audio;
[0235] The playing submodule 724 is used to play the audio preview segment.
[0236] In one embodiment, the segment acquisition submodule 723 may include an information acquisition submodule 7231, a set acquisition submodule 7232, a fusion submodule 7233, a prediction submodule 7234 and a first acquisition submodule 7235, as follows:
[0237] The information acquisition submodule 7231 is used to acquire a set of audio information on multiple dimensions corresponding to the target audio, wherein the set of audio information includes audio feature information corresponding to multiple feature points on the dimensions;
[0238] The set acquisition submodule 7232 is used to acquire a set of historical audio information in multiple dimensions corresponding to each historically played audio;
[0239] A fusion submodule 7233 is used to fuse multiple audio feature information in the audio information set for each dimension based on the historical audio information set to obtain target audio feature information of the correlation degree between the focus and the historical playback audio corresponding to each dimension;
[0240] A prediction submodule 7234 is used to predict the feature point preference information of the user for multiple feature points on each dimension of the target audio based on the target audio feature information corresponding to each dimension;
[0241] The first acquisition submodule 7235 is used to acquire an audio preview segment corresponding to the user from the target audio based on the feature point preference information of the multiple feature points on each dimension.
[0242] In one embodiment, the information acquisition submodule 7231 may include a sampling submodule 72311, a conversion submodule 72312, and a construction submodule 72313, as follows:
[0243] The sampling submodule 72311 is used to sample the target audio in multiple dimensions to obtain an initial audio information set in multiple dimensions corresponding to the target audio;
[0244] The conversion submodule 72312 is used to convert the multiple initial audio feature information in the initial audio information set to obtain multiple audio feature information;
[0245] The construction submodule 72313 is used to construct an audio information set on multiple dimensions corresponding to the target audio based on the audio feature information.
[0246] In one embodiment, the sampling submodule 72311 may be specifically used for:
[0247] Sampling the target audio in a time dimension to obtain an initial audio information set in a time dimension corresponding to the target audio;
[0248] Performing frequency domain transformation on the target audio to obtain transformed target audio;
[0249] The transformed target audio is sampled in the frequency domain dimension to obtain an initial audio information set in the frequency domain dimension corresponding to the target audio.
[0250] In one embodiment, the fusion submodule 7233 may include a first fusion submodule 72331 and a second fusion submodule 72332, as follows:
[0251] The first fusion submodule 72331 is used to fuse multiple historical audio feature information in the historical audio information set corresponding to multiple historical playback audios for each dimension, so as to obtain fused historical audio information of multiple dimensions;
[0252] The second fusion submodule 72332 is used to fuse multiple audio feature information in the audio information set for each dimension based on the fused historical audio information to obtain target audio feature information corresponding to each dimension and the degree of correlation between the focus and the historical playback audio.
[0253] In one embodiment, the first fusion submodule 72331 may be specifically used for:
[0254] With respect to the time dimension, multiple historical audio feature information in the historical audio information set corresponding to multiple historical playback audios are fused to obtain fused historical audio information in the time dimension;
[0255] In terms of the frequency domain dimension, multiple historical audio feature information in the historical audio information set corresponding to multiple historical playback audios are fused to obtain fused historical audio information in the frequency domain dimension;
[0256] The fused historical audio information of the time dimension and the fused historical audio information of the frequency domain dimension are spliced to obtain fused historical audio information of multiple dimensions.
[0257] In one embodiment, the second fusion submodule 72332 may include a weight acquisition submodule 723321 and a third fusion submodule 723322, as follows:
[0258] The weight acquisition submodule 723321 is used to obtain, for each dimension, the weight corresponding to each audio feature information in the audio information set based on the fused historical audio information;
[0259] The third fusion submodule 723322 is used to fuse multiple audio feature information in the audio information set based on the weight for each dimension, so as to obtain target audio feature information of the degree of correlation between the attention corresponding to each dimension and the historical playback audio.
[0260] In one embodiment, the weight acquisition submodule 723321 may be specifically used for:
[0261] For each dimension, determining similarity information between the fused historical audio information and each audio feature information in the audio information set;
[0262] Based on the similarity information, a weight corresponding to each audio feature information in the audio information set is determined.
[0263] In one embodiment, the prediction submodule 7234 may be specifically used for:
[0264] For each dimension, using the target audio feature information as current input of a preference information prediction model;
[0265] Based on the preference information prediction model, a full connection operation is performed on the target audio feature information to obtain feature point preference information of the user for multiple feature points on each dimension of the target audio.
[0266] In one embodiment, the first acquisition submodule 7235 may include a division submodule 72351, a fourth fusion submodule 72352 and a second acquisition submodule 72353, as follows:
[0267] A division submodule 72351 is used to divide the target audio into multiple initial audio segments based on multiple feature points in the time dimension;
[0268] The fourth fusion submodule 72352 is used to fuse the feature point preference information of multiple dimensions corresponding to the initial audio segment to obtain fused preference information corresponding to the initial audio segment;
[0269] The second acquisition submodule 72353 is used to acquire an audio preview segment corresponding to the user from the target audio based on the fused preference information.
[0270] In one embodiment, the fourth fusion submodule 72352 may be specifically used for:
[0271] With respect to the time dimension, the feature point preference information corresponding to the multiple feature points on the initial audio segment is fused to obtain fused time preference information corresponding to the initial audio segment;
[0272] Perform frequency domain transformation on each initial audio segment to obtain a transformed initial audio segment;
[0273] In the frequency domain dimension, the feature point preference information corresponding to the multiple feature points on the initial audio segment is fused to obtain fused frequency domain preference information corresponding to the initial audio segment;
[0274] The fused time preference information and the fused frequency domain preference information are fused to obtain fused preference information corresponding to the initial audio segment.
[0275] In one embodiment, the second acquisition submodule 72353 may be specifically used for:
[0276] Determine the duration of the audio clip to be obtained;
[0277] Determining the number of segments of the audio segment whose duration corresponds to the initial audio segment;
[0278] Based on the number of segments, construct candidate audio segments corresponding to the initial audio segments;
[0279] Based on the fused preference information, determining candidate preference information corresponding to the candidate audio segment;
[0280] Based on the candidate preference information, an audio preview segment corresponding to the user is obtained from the target audio.
[0281] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.
[0282] As can be seen from the above, the embodiment of the present application can display the audio preview page of the audio playback client through the display module 71, and the audio preview page includes at least one audio identifier and an audio preview control corresponding to each audio identifier, wherein one audio identifier corresponds to one audio preview control, and the audio preview control is operated by the user to play the audio preview segment, and when the user's play preview operation for the target audio preview control is detected, the audio preview segment corresponding to the target audio preview control is played through the playback module 72, wherein the audio preview segment is an audio segment selected from the target audio based on the user's historical playback audio, and the target audio is the audio indicated by the audio identifier corresponding to the target audio preview control. This scheme can collect multiple historical playback audios corresponding to the user to understand the user's preference information, and add the information corresponding to the historical playback audio to the preference information prediction model through the attention mechanism, so as to obtain the audio preview segment that meets the user's preference in the target audio. Compared with the prior art, this scheme can understand the different preference information of different users when listening to audio based on the historical playback audio that the user has played, and obtain the audio preview segment according to the user's preference information. Therefore, through this audio playback method, audio preview segments that meet the preferences of different users can be obtained.
[0283] The embodiment of the present application also provides a network device, which can integrate any audio playback device provided in the embodiment of the present application.
[0284] For example, Figure 8 As shown, it shows a schematic diagram of the structure of the network device involved in the embodiment of the present application, specifically:
[0285] The network device may include one or more processing core processors 81, one or more computer-readable storage media memories 82, a power supply 83, an input unit 84 and other components. Those skilled in the art will appreciate that Figure 8 The network device structure shown in the figure does not constitute a limitation on the network device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0286] The processor 81 is the control center of the network device. It uses various interfaces and lines to connect various parts of the entire network device. By running or executing software programs and / or modules stored in the memory 82 and calling data stored in the memory 82, it executes various functions of the network device and processes data, thereby performing overall detection of the network device. Optionally, the processor 81 may include one or more processing cores; preferably, the processor 81 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 81.
[0287] The memory 82 can be used to store software programs and modules. The processor 81 executes various functional applications and data processing by running the software programs and modules stored in the memory 82. The memory 82 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the network device, etc. In addition, the memory 82 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 82 may also include a memory controller to provide the processor 81 with access to the memory 82.
[0288] The network device also includes a power supply 83 for supplying power to each component. Preferably, the power supply 83 can be logically connected to the processor 81 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 83 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0289] The network device may further include an input unit 84, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0290] Although not shown, the network device may also include a display unit, etc., which will not be described in detail here. Specifically in this embodiment, the processor 81 in the network device will load the executable files corresponding to the processes of one or more applications into the memory 82 according to the following instructions, and the processor 81 will run the application stored in the memory 82, thereby realizing various functions, as follows:
[0291] An audio preview page of an audio playback client is displayed, wherein the audio preview page includes at least one audio identifier and an audio preview control corresponding to each audio identifier, wherein one audio identifier corresponds to one audio preview control, and the audio preview control is operated by a user to play an audio preview segment, and when a play preview operation of a target audio preview control by the user is detected, the audio preview segment corresponding to the target audio preview control is played, wherein the audio preview segment is an audio segment selected from the target audio based on the user's historical playback audio, and the target audio is the audio indicated by the audio identifier corresponding to the target audio preview control.
[0292] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0293] As can be seen from the above, the embodiment of the present application can display the audio preview page of the audio playback client, and the audio preview page includes at least one audio identifier and an audio preview control corresponding to each audio identifier, wherein one audio identifier corresponds to one audio preview control, and the audio preview control is operated by the user to play the audio preview segment, and when the user's play preview operation for the target audio preview control is detected, the audio preview segment corresponding to the target audio preview control is played, wherein the audio preview segment is an audio segment selected from the target audio based on the user's historical playback audio, and the target audio is the audio indicated by the audio identifier corresponding to the target audio preview control. The scheme can collect multiple historical playback audios corresponding to the user to understand the user's preference information, and add the information corresponding to the historical playback audio to the preference information prediction model through the attention mechanism, so as to obtain the audio preview segment that meets the user's preference in the target audio. Compared with the prior art, the scheme can understand the different preference information of different users when listening to audio based on the historical playback audio that the user has played, and obtain the audio preview segment according to the user's preference information. Therefore, through the audio playback method, audio preview segments that meet the preferences of different users can be obtained.
[0294] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0295] To this end, an embodiment of the present application provides a computer device, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any audio playback method provided in the embodiment of the present application. For example, the instructions can execute the following steps:
[0296] An audio preview page of an audio playback client is displayed, wherein the audio preview page includes at least one audio identifier and an audio preview control corresponding to each audio identifier, wherein one audio identifier corresponds to one audio preview control, and the audio preview control is operated by a user to play an audio preview segment, and when a play preview operation of a target audio preview control by the user is detected, the audio preview segment corresponding to the target audio preview control is played, wherein the audio preview segment is an audio segment selected from the target audio based on the user's historical playback audio, and the target audio is the audio indicated by the audio identifier corresponding to the target audio preview control.
[0297] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0298] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0299] Since the instructions stored in the storage medium can execute the steps in any audio playback method provided in the embodiments of the present application, the beneficial effects that can be achieved by any audio playback method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0300] The above is a detailed introduction to an audio playback method, device, and computer storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An audio playback method, characterized in that: include: Displaying an audio preview page of an audio playback client, wherein the audio preview page includes at least one audio identifier and an audio preview control corresponding to each audio identifier, wherein one audio identifier corresponds to one audio preview control, and the audio preview control is operated by a user to play an audio preview segment; When a user's play preview operation on a target audio preview control is detected, the target audio indicated by the audio identifier corresponding to the target audio preview control is determined; multiple historical playback audios corresponding to the user are obtained; an audio information set on multiple dimensions corresponding to the target audio is obtained, the audio information set including audio feature information corresponding to multiple feature points on the dimensions; a historical audio information set on multiple dimensions corresponding to each historical playback audio is obtained; for each dimension, based on the historical audio information set, multiple audio feature information in the audio information set are fused to obtain target audio feature information of the degree of correlation between each dimension and the historical playback audio; based on the target audio feature information corresponding to each dimension, feature point preference information of the user for multiple feature points on each dimension of the target audio is predicted; based on the feature point preference information of the multiple feature points on each dimension, an audio preview segment corresponding to the user is obtained from the target audio; and the audio preview segment is played.
2. The audio playback method according to claim 1, characterized in that: Acquiring a set of audio information on multiple dimensions corresponding to the target audio, including: Sampling the target audio in multiple dimensions to obtain a set of initial audio information in multiple dimensions corresponding to the target audio; Converting a plurality of initial audio feature information in the initial audio information set to obtain a plurality of audio feature information; Based on the audio feature information, an audio information set on multiple dimensions corresponding to the target audio is constructed.
3. The audio playback method according to claim 2, characterized in that: The multiple dimensions include a time dimension and a frequency domain dimension; Sampling the target audio in multiple dimensions to obtain a set of initial audio information in multiple dimensions corresponding to the target audio includes: Sampling the target audio in a time dimension to obtain an initial audio information set in a time dimension corresponding to the target audio; Performing frequency domain transformation on the target audio to obtain transformed target audio; The transformed target audio is sampled in the frequency domain dimension to obtain an initial audio information set in the frequency domain dimension corresponding to the target audio.
4. The audio playback method according to claim 1, characterized in that: For each dimension, based on the historical audio information set, multiple audio feature information in the audio information set is fused to obtain target audio feature information corresponding to each dimension and the degree of correlation between the historical playback audio, including: For each dimension, multiple historical audio feature information in the historical audio information set corresponding to multiple historical playback audios are fused to obtain fused historical audio information of multiple dimensions; For each dimension, based on the fused historical audio information, multiple audio feature information in the audio information set are fused to obtain target audio feature information corresponding to each dimension and the degree of correlation between the focus and the historical playback audio.
5. The audio playback method according to claim 4, characterized in that: The multiple dimensions include a time dimension and a frequency domain dimension; For each dimension, multiple historical audio feature information in the historical audio information set corresponding to multiple historical playback audios are fused to obtain fused historical audio information of multiple dimensions, including: In terms of the time dimension, multiple historical audio feature information in the historical audio information set corresponding to multiple historical playback audios are fused to obtain fused historical audio information in the time dimension; In terms of the frequency domain dimension, multiple historical audio feature information in the historical audio information set corresponding to multiple historical playback audios are fused to obtain fused historical audio information in the frequency domain dimension; The fused historical audio information of the time dimension and the fused historical audio information of the frequency domain dimension are spliced to obtain fused historical audio information of multiple dimensions.
6. The audio playback method according to claim 4, characterized in that: For each dimension, based on the fused historical audio information, multiple audio feature information in the audio information set is fused to obtain target audio feature information of the correlation between each dimension and the historical playback audio, including: For each dimension, based on the fused historical audio information, respectively obtain the weight corresponding to each audio feature information in the audio information set; For each dimension, based on the weight, multiple audio feature information in the audio information set are fused to obtain target audio feature information corresponding to each dimension and the degree of correlation between the attention and the historical playback audio.
7. The audio playback method according to claim 6, characterized in that: For each dimension, based on the fused historical audio information, respectively obtain the weight corresponding to each audio feature information in the audio information set, including: For each dimension, determining similarity information between the fused historical audio information and each audio feature information in the audio information set; Based on the similarity information, a weight corresponding to each audio feature information in the audio information set is determined.
8. The audio playback method according to claim 1, characterized in that: Based on the target audio feature information corresponding to each dimension, predicting the user's feature point preference information for multiple feature points on each dimension of the target audio, including: For each dimension, using the target audio feature information as current input of a preference information prediction model; Based on the preference information prediction model, a full connection operation is performed on the target audio feature information to obtain feature point preference information of the user for multiple feature points on each dimension of the target audio.
9. The audio playing method according to claim 1, characterized in that: The plurality of dimensions include a time dimension; Based on the feature point preference information of the multiple feature points in each dimension, acquiring an audio preview segment corresponding to the user from the target audio includes: Based on multiple feature points in the time dimension, dividing the target audio into multiple initial audio segments; Fusing the feature point preference information of multiple dimensions corresponding to the initial audio segment to obtain fused preference information corresponding to the initial audio segment; Based on the fused preference information, an audio preview segment corresponding to the user is obtained from the target audio.
10. The audio playing method according to claim 9, characterized in that: The multiple dimensions also include a frequency domain dimension; Fusing the feature point preference information of multiple dimensions corresponding to the initial audio segment to obtain fused preference information corresponding to the initial audio segment, including: With respect to the time dimension, the feature point preference information corresponding to the multiple feature points on the initial audio segment is fused to obtain fused time preference information corresponding to the initial audio segment; Perform frequency domain transformation on each initial audio segment to obtain a transformed initial audio segment; In the frequency domain dimension, the feature point preference information corresponding to the multiple feature points on the initial audio segment is fused to obtain fused frequency domain preference information corresponding to the initial audio segment; The fused time preference information and the fused frequency domain preference information are fused to obtain fused preference information corresponding to the initial audio segment.
11. The audio playing method according to claim 9, characterized in that: Based on the fused preference information, obtaining an audio preview segment corresponding to the user from the target audio includes: Determine the length of the audio clip to be obtained; Determining the number of segments of the audio segment whose duration corresponds to the initial audio segment; Based on the number of segments, construct candidate audio segments corresponding to the initial audio segments; Based on the fused preference information, determining candidate preference information corresponding to the candidate audio segment; Based on the candidate preference information, an audio preview segment corresponding to the user is obtained from the target audio.
12. An audio playback device, characterized in that: include: A display module, used for displaying an audio preview page of the audio playback client, wherein the audio preview page includes at least one audio identifier and an audio preview control corresponding to each audio identifier, wherein one audio identifier corresponds to one audio preview control, and the audio preview control is operated by a user to play an audio preview segment; A playback module is used to determine the target audio indicated by the audio identifier corresponding to the target audio preview control when a playback preview operation of the user on the target audio preview control is detected; obtain multiple historical playback audios corresponding to the user; obtain an audio information set on multiple dimensions corresponding to the target audio, the audio information set including audio feature information corresponding to multiple feature points on the dimensions; obtain a historical audio information set on multiple dimensions corresponding to each historical playback audio; for each dimension, based on the historical audio information set, fuse multiple audio feature information in the audio information set to obtain target audio feature information corresponding to each dimension and the degree of correlation between the historical playback audio; based on the target audio feature information corresponding to each dimension, predict the user's feature point preference information for multiple feature points on each dimension of the target audio; based on the feature point preference information for multiple feature points on each dimension, obtain an audio preview segment corresponding to the user from the target audio; and play the audio preview segment.
13. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed on a computer, the computer is enabled to execute the audio playing method according to any one of claims 1 to 11.
