Audio processing method and device

By extracting and classifying melody audio feature sequences in social media data, a collection of melody fragments is generated, which solves the problem of low audio data organization and utilization efficiency in the existing technology, and realizes the need to quickly find similar melodies and video soundtracks.

CN112015942BActive Publication Date: 2024-08-30SHANGHAI CHENGTAN NETWORK TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010882466.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-28
Publication Date
2024-08-30
Estimated Expiration
2040-08-28

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively organize and utilize audio data uploaded by users on social platforms, especially melody fragments, resulting in slow search for similar melodies and difficulty in meeting users' video soundtrack needs.

Method used

By extracting melody audio feature sequences from social media data, classifying and indexing based on similarity, a collection of melody segments is generated, which improves the speed of finding similar melodies and enables effective use of users' favorite music.

Benefits of technology

It improves the search speed of melody fragments in collections, enhances the utilization of users' social data, improves the accuracy and efficiency of video soundtracks, and meets users' music preferences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112015942B
    Figure CN112015942B
Patent Text Reader

Abstract

The present application discloses an audio processing method and device, and relates to the field of audio processing technology. The specific implementation method includes: obtaining social media data of a specified user; extracting melody audio from the obtained social media data, and extracting the audio feature sequence of the melody segment of the melody audio; classifying the melody segment of the melody audio to obtain at least one category of melody segments; generating a segment set including the at least one category of melody segments, and indexing the melody segments of each category of the at least one category of melody segments. The present application can systematically organize and classify melody segments, which helps to improve the speed of finding similar melody segments in the segment set, and further realizes the effective use of the user's social data. In addition, the present application can collect the user's favorite music through the segment set, which helps to find the soundtrack that meets the user's wishes in the set later.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, specifically to the field of audio processing technology, and in particular to an audio processing method and device. Background Art

[0002] With the development of video platforms, more and more users not only use terminals to watch videos, but also upload their own videos and share them on the platform. For example, the platform here can be a social platform. In this way, the user's friends can watch the video made by the user, thereby promoting interaction between users on the platform.

[0003] In the prior art, when making a video, a user can add music to the video content to achieve a better playback effect. Summary of the invention

[0004] Provided are an audio processing method, an audio processing device, an electronic device, and a storage medium.

[0005] According to a first aspect, there is provided an audio processing method for a server, comprising: obtaining social media data of a designated user, wherein the social media data comprises video and / or audio, and the designated user comprises a target user corresponding to a terminal and / or an associated user of the target user on a social platform; extracting melody audio from the acquired social media data, and extracting an audio feature sequence of a melody segment of the melody audio; classifying the melody segments of the melody audio based on the similarity of the audio feature sequence to obtain melody segments of at least one category; generating a segment set comprising melody segments of at least one category, and establishing an index for each category of melody segments of at least one category.

[0006] According to a second aspect, there is provided an audio processing device for a terminal, the device comprising: an acquisition unit, configured to acquire social media data of a designated user, wherein the social media data comprises video and / or audio, and the designated user comprises a target user corresponding to the terminal and / or an associated user of the target user on a social platform; an extraction unit, configured to extract melody audio from the acquired social media data, and extract an audio feature sequence of a melody segment of the melody audio; a classification unit, configured to classify the melody segments of the melody audio based on the similarity of the audio feature sequence, and obtain melody segments of at least one category; a generation unit, configured to generate a segment set comprising melody segments of at least one category, and to establish an index for each category of melody segments of at least one category.

[0007] According to a third aspect, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement a method as in any embodiment of the audio processing method.

[0008] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the method of any embodiment of the audio processing method is implemented.

[0009] According to the scheme of the present application, melody fragments can be systematically sorted and classified by the similarity of audio features, which helps to improve the speed of finding similar melody fragments in the fragment collection, and further realizes the effective use of the user's social data. In addition, the possibility of related users liking the same music is greater. Therefore, in the collection of melody fragments established for the user's social media data, it is also likely that the user's favorite music exists, so that the collection can collect the user's favorite music. Furthermore, the present application helps to find the soundtrack that meets the user's wishes in the collection later. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0011] Figure 1 is an exemplary system architecture diagram to which some embodiments of the present application may be applied;

[0012] Figure 2 is a flow chart of an embodiment of an audio processing method for a server according to the present application;

[0013] Figure 3 is a schematic diagram of an application scenario of the audio processing method according to the present application;

[0014] Figure 4 is a schematic diagram of another application scenario of the audio processing method according to the present application;

[0015] Figure 5 is a structural schematic diagram of an embodiment of an audio processing device according to the present application;

[0016] Figure 6 It is a block diagram of an electronic device used to implement the audio processing method of an embodiment of the present application. DETAILED DESCRIPTION

[0017] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0018] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0019] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of the audio processing method or audio processing device of the present application can be applied.

[0020] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0021] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as video applications, live broadcast applications, instant messaging tools, audio applications, social platform software, etc.

[0022] The terminal devices 101, 102, 103 here can be hardware or software. When the terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, e-book readers, laptop portable computers and desktop computers, etc. When the terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, multiple software or software modules for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0023] The server 105 may be a server that provides various services, such as a background server that provides support for the terminal devices 101, 102, and 103. The background server may analyze and process the received social media data and other data, and feed back the processing results (such as a collection of segments) to the terminal device.

[0024] It should be noted that the audio processing method provided in the embodiment of the present application can be executed by the server 105 or the terminal devices 101, 102, 103, and accordingly, the audio processing device can be set in the server 105 or the terminal devices 101, 102, 103.

[0025] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0026] Continue to refer Figure 2 , shows a process 200 of an embodiment of an audio processing method according to the present application. The audio processing method is used in a server, and the method comprises the following steps:

[0027] Step 201: obtaining social media data of a designated user, wherein the social media data includes video and / or audio, and the designated user includes a target user corresponding to the terminal and / or associated users of the target user on a social platform.

[0028] In this embodiment, the execution subject (eg Figure 1 The server shown in the figure can obtain video and audio from the electronic device or other electronic devices (such as terminals). In practice, the execution subject can directly obtain video and audio from the electronic device or other electronic devices. In addition, the user can also use the execution subject to record, so that the execution subject generates video and / or audio in real time. For example, the audio here can be a recording of a song hummed by a user using a terminal.

[0029] Specifically, social media data may contain a record of operations of a specified user on a video or audio. The operation here may be various operations, such as at least one of the following: like, comment, forward, favorite, follow, and original. Specifically, the above operation may be a positive operation, that is, the operation may indicate the operator's preference for the social media data.

[0030] The target user refers to the user who is currently using the terminal, or the user who logs in to the social platform using the terminal. The associated users here may include but are not limited to the target user's friend users, and may also be users who can have limited social interaction with the target user or users who have had online social activities with the target user, such as the target user forwarding the associated user's published information on the social platform. For example, the target user has collected and / or followed the associated user's published information on the social platform.

[0031] Step 202: extract melody audio from the acquired social media data, and extract an audio feature sequence of a melody segment of the melody audio.

[0032] In this embodiment, the execution subject can extract the melody audio in the social media data and extract the audio feature sequence of the melody segment from the melody audio. The melody audio includes the sound of the music in the social media data, and the melody audio does not include sounds such as human speech.

[0033] The melody segments of the melody audio can be obtained based on various methods. For example, the execution subject or other electronic device can use the interval of the melody as the interval between adjacent melody segments to obtain the melody segment. Or the melody segments can be further merged to generate the final melody segment, for example, based on the volume, adjacent melody segments with a small volume difference (less than a preset volume difference threshold) are merged into the same melody segment.

[0034] Step 203: classify the melody segments of the melody audio based on the similarity of the audio feature sequences to obtain melody segments of at least one category.

[0035] In this embodiment, the execution subject may classify audio feature sequences with high similarity into one category, thereby obtaining at least one category, each of which includes at least one melody segment.

[0036] In practice, the above-mentioned execution subject can classify the melody fragments based on the similarity of the audio feature sequences in various ways. For example, the above-mentioned execution subject can use a preset clustering algorithm (such as the k-means clustering algorithm) to cluster the audio feature sequences of each melody fragment, thereby obtaining audio feature sequences of each category, and then using the correspondence between the melody fragments and the audio feature sequences to obtain melody fragments of each category. In addition, the above-mentioned execution subject can obtain a similarity threshold, and use the audio feature sequences with a similarity greater than the similarity threshold as audio feature sequences of the same category to obtain melody fragments of the same category, and then obtain melody fragments of each category.

[0037] Step 204: Generate a segment set including at least one category of melody segments, and create an index for each category of the at least one category of melody segments.

[0038] In this embodiment, the execution subject may generate a segment set including the melody segments of the at least one category, and create an index for the segment set. The index may be in various forms, such as a key-value pair, wherein the value may be a melody segment, and the key may be an identifier such as a number, etc.

[0039] The audio collection includes various melody segments obtained by classification, and specifically, may include all melody segments obtained by dividing the melody audio.

[0040] In practice, the execution subject may generate a segment set from the melody segments included in the melody audio in various ways, such as melody segments included in all melody audios may be combined into a segment set, or some melody segments may be selected from the melody segments included in the melody audios to form a segment set. In addition, the execution subject may also combine the melody segments included in the melody audio and the melody segments of other specified audios into a segment set.

[0041] The method provided by the above-mentioned embodiment of the present application can systematically organize and classify melody fragments by the similarity of audio features, which helps to improve the speed of finding similar melody fragments in a fragment collection, and further realizes the effective use of the user's social data. In addition, it is more likely that the associated users like the same music. Therefore, in the collection of melody fragments established by the user's social media data, it is also more likely that the user's favorite music exists, so that the collection can collect the user's favorite music. Furthermore, the present application helps to find the soundtrack that meets the user's wishes in the collection later.

[0042] In some optional implementations of the present embodiment, the above method may also include: obtaining a recorded user recording; extracting an audio feature sequence of the user recording, and based on the audio feature sequence, searching for similar melody segments of the recording in a segment collection; sending the similar melody segments to the terminal, so that the terminal uses one of the similar melody segments as the soundtrack of the target video and synthesizes the target video and the soundtrack into a soundtrack video, wherein the soundtrack video is used for publishing on a social platform.

[0043] In these optional implementations, the execution subject may send similar melody segments to the terminal. In this way, the terminal may use one of the similar melody segments as the soundtrack of the target video, and synthesize the target video and the soundtrack to obtain a soundtrack video. In practice, the target video here may be a video indicated by the user among many videos, or may be a video uploaded by the user, such as a video shot by the user using the terminal.

[0044] In practice, an audio feature sequence is similar to the extracted audio feature sequence, which may refer to the similarity between the audio feature sequence and the extracted audio feature sequence, being ranked first by a preset number in descending order in a sorting sequence composed of the similarities between the audio feature sequences in the above-mentioned segment set and the extracted audio feature sequence. In addition, audio feature sequences are similar, which may also refer to the similarity between the audio feature sequences being greater than a preset similarity threshold.

[0045] These implementations can find audio similar to the user's recording, so that when the user is not sure what music to compose the soundtrack, the user can find the audio that meets the user's wishes. This also enriches the ways to obtain video dubbing and expands the space for users to play freely. These implementations can also find the melodies in the audio and video that the target user and its associated users have operated as alternatives for generating soundtracks, which can not only narrow the range of audio in the clip collection, but also better meet the user's preferences.

[0046] In some optional application scenarios of these implementations, sending similar melody fragments to a terminal in these implementations may include: sending the similar melody fragment, the identifier of the similar melody fragment, and the user identifier corresponding to the source user of the similar melody fragment to the terminal, so that the terminal displays the options corresponding to each similar melody fragment and regards the similar melody fragment indicated by the selection operation of one of the options as a similar melody fragment, each option including the identifier and user identifier of the similar melody fragment corresponding to the option, and the source user of the similar melody fragment is at least one designated user who has made an operation corresponding to the operation record on the social media data where the similar melody fragment is located.

[0047] In these optional application scenarios, the above-mentioned execution entity can not only send similar melody fragments to the terminal, but also send the identifier of each similar melody fragment and the identifier of the user who is the source of the similar melody fragment, that is, the user identifier, to the terminal. Here, the source user of the similar melody fragment refers to the designated user who operates on the social media data corresponding to the above-mentioned similar melody fragment. The social media data corresponding to the similar melody fragment here is the social media data where the similar melody fragment is located, and the similar melody fragment is a melody fragment in the melody audio of the social media data. The number of source users of similar melody fragments can be one or more. That is, there may be more than one user who has operated on the same social media data, and by displaying it on the terminal, the user can see the identifiers and user identifiers of these similar melody fragments.

[0048] like Figure 3 As shown, the terminal can display the identification of the similar melody segment, that is, the identification of the melody segment, such as "melody segment 1". In addition, the terminal can also display the identification of the source user of the similar melody segment.

[0049] These application scenarios not only allow users to select the melody clips they are interested in from various melody clips, but also allow users to select similar melody clips that have been played by their friends who are interested in them by displaying the user ID of the source user.

[0050] In some optional implementations of the present embodiment, the above method may also include: obtaining a recorded user recording; extracting an audio feature sequence of the user recording, and based on the audio feature sequence, searching for similar melody segments of the recording in a segment collection; obtaining a target video uploaded by the terminal, using similar melody segments as the soundtrack of the target video, and synthesizing the target video and the soundtrack into a soundtrack video, wherein the soundtrack video is used for publishing on a social platform.

[0051] In these optional implementations, the execution subject may synthesize the target video and the soundtrack to generate a soundtrack video. These implementations may allow the server to synthesize the soundtrack video, thereby increasing the synthesis speed of the soundtrack video and reducing the waiting time of the user.

[0052] In some optional application scenarios of any of these implementation methods, the above method may also include: obtaining an information release instruction from the target user, wherein the information release instruction is used to publish the soundtrack video on a social platform; based on a user identifier corresponding to a similar melody segment in the soundtrack video, sending a message reminder to a source user corresponding to the user identifier.

[0053] In these optional application scenarios, if the target user makes a publishing operation for the soundtrack video, the terminal can generate an information publishing instruction of the target user, thereby obtaining the information publishing instruction. Each melody segment has at least one user identifier, which is used to indicate the source user of the melody segment.

[0054] Here, the source user of the similar melody segment refers to a designated user who performs an operation on the social media data corresponding to the similar melody segment, wherein the operation is the operation corresponding to the operation record. The number of source users of the similar melody segment can be one or more. The user identifier can refer to a name and / or a number, etc.

[0055] These application scenarios can remind the source user of the music in the music video that other users have used the melody audio associated with the source user, and can remind the source user to watch the published music video.

[0056] In some optional implementations of this embodiment, before extracting the audio feature sequence of the melody segment of the melody audio, the method may further include: determining the spectrum of the melody audio; and dividing the melody audio into at least one melody segment based on the change of the frequency of the melody audio in the spectrum.

[0057] In these optional implementations, the above-mentioned execution entity can determine the spectrum of the melody audio (such as each melody audio) in the extracted melody audio, and divide the melody audio according to the change of frequency in the spectrum to obtain at least one melody segment corresponding to the melody audio.

[0058] In practice, the execution subject may divide the melody audio based on the frequency change in various ways. For example, when the frequency change of two syllables in the melody audio is greater than a preset threshold, the execution subject may use the interval between the two syllables as the division point for dividing the melody segments, and divide at least one melody segment. In addition, the execution subject may further divide the melody segments obtained by the above-mentioned frequency change division, such as using the interval between syllables with a pause greater than a preset pause threshold as the division point, and perform the above-mentioned further division.

[0059] These implementations can divide melody segments based on frequency changes, thereby distinguishing melodies with different rhythm speeds, avoiding the problem of large differences in the rhythm speed of the soundtrack in the synthesized soundtrack video, resulting in inconsistent soundtrack styles.

[0060] In some optional implementations of any of the above embodiments, the above-mentioned indexing of melody fragments of each category of at least one category of melody fragments may include: for each category of at least one category, generating a common feature sequence of audio feature sequences of each melody fragment of the category, wherein the similarity between the audio feature sequences of each melody fragment and the common feature sequence is greater than a specified threshold; based on the common feature sequence, constructing an index of the category in the fragment set.

[0061] In these optional implementations, the above-mentioned execution subject can generate an audio feature sequence that is similar to each melody segment in the category as a common feature sequence, and construct an index based on the common feature sequence. The above-mentioned execution subject can determine the common feature sequence in various ways. For example, the above-mentioned execution subject can first determine the length of the common feature sequence, and for each feature position of the common feature sequence of the length, determine the melody feature corresponding to the feature position, and the melody features corresponding to some feature positions here may be empty. In addition, the above-mentioned execution subject can also, for any category, use the audio feature sequence of a melody segment of the category as the sequence to be adjusted, and for each syllable, determine the audio features of each melody segment of the category at the feature position where the syllable is located, and use the audio features with the largest number as the audio features of the syllable. Afterwards, the above-mentioned execution subject can summarize the audio features of each syllable to obtain a common feature sequence.

[0062] In practice, the above execution entity may construct a category index based on the common feature sequence in various ways, such as directly using the common feature sequence as the category index.

[0063] When searching for similar melody segments, the execution subject may first match the extracted audio feature sequence with the common feature sequence in the index. Afterwards, the execution subject may use all audio feature sequences of the category as search results, or the execution subject may further match the audio feature sequences of the category to find the audio feature sequence of the similar melody segment.

[0064] The above-mentioned execution body in these optional cases can generate an index from a common feature sequence, so that when searching for similar melody fragments, it can first match the common feature sequence in the index, thereby avoiding traversing all melody fragments in the fragment set when searching for similar melody fragments, thereby improving the search efficiency.

[0065] like Figure 4 As shown in the figure, the social media data operated by the user of the terminal and each of the friends of the user are obtained, and the social media data here are video and audio. Afterwards, the above-mentioned execution subject can extract the melody audio in the social media data, and generate a melody segment, and then build an index to obtain a segment set for searching similar melody segments.

[0066] Optionally, in these cases, constructing an index of the category in the segment set based on the common feature sequence may include: determining the common feature sequence and a user identifier corresponding to a source user of the melody segment of the category as the index of the category in the segment set.

[0067] The execution subject may determine the common feature sequence corresponding to the category and the user identifier corresponding to the source user of the melody fragments of the category as the index of the category. In practice, the user identifier in the index may be the user identifier corresponding to the source user of all melody fragments of the category, or the user identifier corresponding to the source user of some melody fragments of the category. For example, the execution subject may select the user identifier corresponding to the user who has a high communication frequency (higher than the target frequency threshold or the highest) with the user of the terminal on the social platform.

[0068] The execution subject in these optional cases may use both the common feature sequence and the user identification as indexes, thereby improving the accuracy of searching for similar melody segments.

[0069] Further references Figure 5 As an implementation of the methods shown in the above figures, the present application provides an embodiment of an audio processing device, and the device embodiment is Figure 2 Corresponding to the method embodiment shown in FIG. 1 , in addition to the features described below, the device embodiment may also include Figure 2 The device can be applied to various electronic devices.

[0070] like Figure 5 As shown, the audio processing device 500 of this embodiment includes: an acquisition unit 501, an extraction unit 502, a classification unit 503 and a generation unit 504. The acquisition unit 501 is configured to acquire social media data of a specified user, wherein the social media data includes video and / or audio, and the specified user includes a target user corresponding to the terminal and / or an associated user of the target user on a social platform; the extraction unit 502 is configured to extract the melody audio from the acquired social media data, and extract the audio feature sequence of the melody segment of the melody audio; the classification unit 503 is configured to classify the melody segment of the melody audio based on the similarity of the audio feature sequence, and obtain at least one category of melody segments; the generation unit 504 is configured to generate a segment set including at least one category of melody segments, and to establish an index for each category of melody segments of at least one category of melody segments.

[0071] In this embodiment, the specific processing of the acquisition unit 501, the extraction unit 502, the classification unit 503 and the generation unit 504 of the audio processing device 500 and the technical effects thereof can be referred to in Figure 2 The relevant descriptions of step 201, step 202, step 203 and step 204 in the corresponding embodiment are not repeated here.

[0072] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.

[0073] like Figure 6 , is a block diagram of an electronic device according to an audio processing method according to an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0074] like Figure 6As shown, the electronic device includes: one or more processors 601, a memory 602, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 601 is taken as an example.

[0075] The memory 602 is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor to enable at least one processor to perform the audio processing method provided in the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to enable a computer to perform the audio processing method provided in the present application.

[0076] The memory 602 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the audio processing method in the embodiment of the present application (for example, the attached Figure 5 The processor 601 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 602, that is, the audio processing method in the above method embodiment is implemented.

[0077] The memory 602 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of the audio processing electronic device, etc. In addition, the memory 602 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 602 may optionally include a memory remotely arranged relative to the processor 601, and these remote memories may be connected to the audio processing electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0078] The electronic device of the audio processing method may further include: an input device 603 and an output device 604. The processor 601, the memory 602, the input device 603 and the output device 604 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0079] The input device 603 can receive input digital or character information, and generate key signal input related to user settings and function control of the audio processing electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a trackball, a joystick and other input devices. The output device 604 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.

[0080] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0081] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0082] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0083] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0084] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.

[0085] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0086] The units involved in the embodiments described in the present application may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes an acquisition unit 501, an extraction unit 502, a classification unit 503, and a generation unit 504. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the acquisition unit may also be described as a "unit for acquiring recordings of users".

[0087] As another aspect, the present application also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the device, the device: obtains social media data of a specified user, wherein the social media data includes video and / or audio, and the specified user includes a target user corresponding to the terminal and / or an associated user of the target user on the social platform; extracts melody audio from the obtained social media data, and extracts an audio feature sequence of a melody segment of the melody audio; classifies the melody segment of the melody audio based on the similarity of the audio feature sequence to obtain at least one category of melody segments; generates a segment set including at least one category of melody segments, and establishes an index for each category of melody segments of at least one category of melody segments.

[0088] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

Claims

1. An audio processing method, used in a server, the method comprising: Acquire social media data of a designated user, wherein the social media data includes video and / or audio, and the designated user includes a target user corresponding to the terminal and / or an associated user of the target user on a social platform; Extracting melody audio from the acquired social media data, and extracting an audio feature sequence of a melody segment of the melody audio; Based on the similarity of the audio feature sequence, classifying the melody segments of the melody audio to obtain at least one category of melody segments; generating a segment set including melody segments of the at least one category, and establishing an index for the melody segments of each category of the at least one category; Get recorded user audio; Extracting an audio feature sequence of the user recording, and searching for a similar melody segment of the recording in the segment set based on the audio feature sequence; A soundtrack video is synthesized according to the similar melody fragments and the target video.

2. The method according to claim 1, wherein: The synthesizing the soundtrack video according to the similar melody fragment and the target video comprises: The similar melody fragments are sent to a terminal, so that the terminal uses one of the similar melody fragments as the soundtrack of the target video and synthesizes the target video and the soundtrack into the soundtrack video, wherein the soundtrack video is used for publishing on the social platform.

3. The method according to claim 1, wherein: The synthesizing the soundtrack video according to the similar melody fragment and the target video comprises: The target video uploaded by the terminal is obtained, the similar melody fragment is used as the soundtrack of the target video, and the target video and the soundtrack are synthesized into the soundtrack video, wherein the soundtrack video is used for publishing on the social platform.

4. The method according to claim 2 or 3, wherein: The method further comprises: Obtaining an information publishing instruction of the target user, wherein the information publishing instruction is used to instruct to publish the music video on the social platform; Based on the user identifier corresponding to the similar melody segment in the music video, a message reminder is sent to the source user corresponding to the user identifier.

5. The method according to claim 2, wherein: The sending the similar melody fragment to the terminal comprises: sending the similar melody segment, the identifier of the similar melody segment, and the user identifier corresponding to the source user of the similar melody segment to the terminal, so that the terminal displays the options corresponding to each of the similar melody segments and regards the similar melody segment indicated by the selection operation of one of the options as a similar melody segment, wherein each option includes the identifier of the similar melody segment corresponding to the option and the user identifier, and the source user of the similar melody segment is at least one designated user who has made an operation corresponding to the operation record on the social media data where the similar melody segment is located; Each option includes an identifier of a similar melody segment corresponding to the option and a user identifier, and the source user of the similar melody segment is at least one designated user who has performed an operation corresponding to an operation record on the social media data where the similar melody segment is located.

6. The method according to claim 1, wherein: Before extracting the audio feature sequence of the melody segment of the melody audio, the method further includes: determining a frequency spectrum of the melody audio; The melody audio is divided into at least one melody segment based on a change in the frequency of the melody audio in the frequency spectrum.

7. The method according to claim 1, wherein: The step of indexing the melody segments of each category of the at least one category of melody segments comprises: For each of the at least one category, generating a common feature sequence of audio feature sequences of each melody segment of the category, wherein the similarity between the audio feature sequences of each melody segment and the common feature sequence is greater than a specified threshold; Based on the common feature sequence, an index of the category in an audio set is constructed, and the audio set includes all melody segments obtained by dividing the melody audio.

8. The method according to claim 7, wherein: The step of constructing an index of the category in the audio collection based on the common feature sequence includes: The common feature sequence and the user identifier corresponding to the source user of the melody fragment of this category are determined as the index of this category in the audio collection.

9. An electronic device, comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.

10. A computer-readable storage medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Mode-based audio retrieval method and system

    CN103853749A